Apache_Hadoop_Common_3.3.3.xml 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037
  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 Mon May 09 17:58:47 GMT 2022 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 3.3.3"
  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:/maven/org/apache/hadoop/thirdparty/hadoop-shaded-protobuf_3_7/1.1.1/hadoop-shaded-protobuf_3_7-1.1.1.jar:/build/source/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-3.3.3.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar:/maven/org/apache/hadoop/thirdparty/hadoop-shaded-guava/1.1.1/hadoop-shaded-guava-1.1.1.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/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.15/commons-codec-1.15.jar:/maven/commons-io/commons-io/2.8.0/commons-io-2.8.0.jar:/maven/commons-net/commons-net/3.6/commons-net-3.6.jar:/maven/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/maven/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/maven/org/eclipse/jetty/jetty-server/9.4.43.v20210629/jetty-server-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-http/9.4.43.v20210629/jetty-http-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-io/9.4.43.v20210629/jetty-io-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-util/9.4.43.v20210629/jetty-util-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-servlet/9.4.43.v20210629/jetty-servlet-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-security/9.4.43.v20210629/jetty-security-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-webapp/9.4.43.v20210629/jetty-webapp-9.4.43.v20210629.jar:/maven/org/eclipse/jetty/jetty-xml/9.4.43.v20210629/jetty-xml-9.4.43.v20210629.jar:/maven/com/sun/jersey/jersey-core/1.19/jersey-core-1.19.jar:/maven/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/maven/com/sun/jersey/jersey-servlet/1.19/jersey-servlet-1.19.jar:/maven/com/sun/jersey/jersey-json/1.19/jersey-json-1.19.jar:/maven/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/maven/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/maven/javax/xml/bind/jaxb-api/2.2.11/jaxb-api-2.2.11.jar:/maven/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/maven/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/maven/com/sun/jersey/jersey-server/1.19/jersey-server-1.19.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/ch/qos/reload4j/reload4j/1.2.18.3/reload4j-1.2.18.3.jar:/maven/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/maven/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/maven/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/maven/org/apache/commons/commons-text/1.4/commons-text-1.4.jar:/maven/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar:/maven/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.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/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.8.9/gson-2.8.9.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.3.3.jar:/maven/com/nimbusds/nimbus-jose-jwt/9.8.1/nimbus-jose-jwt-9.8.1.jar:/maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/maven/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar:/maven/net/minidev/accessors-smart/2.4.7/accessors-smart-2.4.7.jar:/maven/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/maven/org/apache/curator/curator-framework/4.2.0/curator-framework-4.2.0.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-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/jcraft/jsch/0.1.55/jsch-0.1.55.jar:/maven/org/apache/curator/curator-client/4.2.0/curator-client-4.2.0.jar:/maven/org/apache/curator/curator-recipes/4.2.0/curator-recipes-4.2.0.jar:/maven/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/maven/org/apache/zookeeper/zookeeper/3.5.6/zookeeper-3.5.6.jar:/maven/org/apache/zookeeper/zookeeper-jute/3.5.6/zookeeper-jute-3.5.6.jar:/maven/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/maven/org/apache/commons/commons-compress/1.21/commons-compress-1.21.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/com/fasterxml/jackson/core/jackson-databind/2.13.2.2/jackson-databind-2.13.2.2.jar:/maven/com/fasterxml/jackson/core/jackson-annotations/2.13.2/jackson-annotations-2.13.2.jar:/maven/com/fasterxml/jackson/core/jackson-core/2.13.2/jackson-core-2.13.2.jar:/maven/org/codehaus/woodstox/stax2-api/4.2.1/stax2-api-4.2.1.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.3.0/woodstox-core-5.3.0.jar:/maven/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar:/maven/org/wildfly/openssl/wildfly-openssl-java/1.0.7.Final/wildfly-openssl-java-1.0.7.Final.jar:/maven/org/xerial/snappy/snappy-java/1.1.8.2/snappy-java-1.1.8.2.jar:/maven/org/lz4/lz4-java/1.7.1/lz4-java-1.7.1.jar:/maven/xerces/xercesImpl/2.12.1/xercesImpl-2.12.1.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.3.3 -->
  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. @param conf configuration to be used]]>
  46. </doc>
  47. </method>
  48. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  49. abstract="true" native="false" synchronized="false"
  50. static="false" final="false" visibility="public"
  51. deprecated="not deprecated">
  52. <doc>
  53. <![CDATA[Return the configuration used by this object.
  54. @return Configuration]]>
  55. </doc>
  56. </method>
  57. <doc>
  58. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  59. </doc>
  60. </interface>
  61. <!-- end interface org.apache.hadoop.conf.Configurable -->
  62. <!-- start class org.apache.hadoop.conf.Configuration -->
  63. <class name="Configuration" extends="java.lang.Object"
  64. abstract="false"
  65. static="false" final="false" visibility="public"
  66. deprecated="not deprecated">
  67. <implements name="java.lang.Iterable"/>
  68. <implements name="org.apache.hadoop.io.Writable"/>
  69. <constructor name="Configuration"
  70. static="false" final="false" visibility="public"
  71. deprecated="not deprecated">
  72. <doc>
  73. <![CDATA[A new configuration.]]>
  74. </doc>
  75. </constructor>
  76. <constructor name="Configuration" type="boolean"
  77. static="false" final="false" visibility="public"
  78. deprecated="not deprecated">
  79. <doc>
  80. <![CDATA[A new configuration where the behavior of reading from the default
  81. resources can be turned off.
  82. If the parameter {@code loadDefaults} is false, the new instance
  83. will not load resources from the default files.
  84. @param loadDefaults specifies whether to load from the default files]]>
  85. </doc>
  86. </constructor>
  87. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  88. static="false" final="false" visibility="public"
  89. deprecated="not deprecated">
  90. <doc>
  91. <![CDATA[A new configuration with the same settings cloned from another.
  92. @param other the configuration from which to clone settings.]]>
  93. </doc>
  94. </constructor>
  95. <method name="addDeprecations"
  96. abstract="false" native="false" synchronized="false"
  97. static="true" final="false" visibility="public"
  98. deprecated="not deprecated">
  99. <param name="deltas" type="org.apache.hadoop.conf.Configuration.DeprecationDelta[]"/>
  100. <doc>
  101. <![CDATA[Adds a set of deprecated keys to the global deprecations.
  102. This method is lockless. It works by means of creating a new
  103. DeprecationContext based on the old one, and then atomically swapping in
  104. the new context. If someone else updated the context in between us reading
  105. the old context and swapping in the new one, we try again until we win the
  106. race.
  107. @param deltas The deprecations to add.]]>
  108. </doc>
  109. </method>
  110. <method name="addDeprecation"
  111. abstract="false" native="false" synchronized="false"
  112. static="true" final="false" visibility="public"
  113. deprecated="use {@link #addDeprecation(String key, String newKey,
  114. String customMessage)} instead">
  115. <param name="key" type="java.lang.String"/>
  116. <param name="newKeys" type="java.lang.String[]"/>
  117. <param name="customMessage" type="java.lang.String"/>
  118. <doc>
  119. <![CDATA[Adds the deprecated key to the global deprecation map.
  120. It does not override any existing entries in the deprecation map.
  121. This is to be used only by the developers in order to add deprecation of
  122. keys, and attempts to call this method after loading resources once,
  123. would lead to <tt>UnsupportedOperationException</tt>
  124. If a key is deprecated in favor of multiple keys, they are all treated as
  125. aliases of each other, and setting any one of them resets all the others
  126. to the new value.
  127. If you have multiple deprecation entries to add, it is more efficient to
  128. use #addDeprecations(DeprecationDelta[] deltas) instead.
  129. @param key to be deprecated
  130. @param newKeys list of keys that take up the values of deprecated key
  131. @param customMessage depcrication message
  132. @deprecated use {@link #addDeprecation(String key, String newKey,
  133. String customMessage)} instead]]>
  134. </doc>
  135. </method>
  136. <method name="addDeprecation"
  137. abstract="false" native="false" synchronized="false"
  138. static="true" final="false" visibility="public"
  139. deprecated="not deprecated">
  140. <param name="key" type="java.lang.String"/>
  141. <param name="newKey" type="java.lang.String"/>
  142. <param name="customMessage" type="java.lang.String"/>
  143. <doc>
  144. <![CDATA[Adds the deprecated key to the global deprecation map.
  145. It does not override any existing entries in the deprecation map.
  146. This is to be used only by the developers in order to add deprecation of
  147. keys, and attempts to call this method after loading resources once,
  148. would lead to <tt>UnsupportedOperationException</tt>
  149. If you have multiple deprecation entries to add, it is more efficient to
  150. use #addDeprecations(DeprecationDelta[] deltas) instead.
  151. @param key to be deprecated
  152. @param newKey key that take up the values of deprecated key
  153. @param customMessage deprecation message]]>
  154. </doc>
  155. </method>
  156. <method name="addDeprecation"
  157. abstract="false" native="false" synchronized="false"
  158. static="true" final="false" visibility="public"
  159. deprecated="use {@link #addDeprecation(String key, String newKey)} instead">
  160. <param name="key" type="java.lang.String"/>
  161. <param name="newKeys" type="java.lang.String[]"/>
  162. <doc>
  163. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  164. message is provided.
  165. It does not override any existing entries in the deprecation map.
  166. This is to be used only by the developers in order to add deprecation of
  167. keys, and attempts to call this method after loading resources once,
  168. would lead to <tt>UnsupportedOperationException</tt>
  169. If a key is deprecated in favor of multiple keys, they are all treated as
  170. aliases of each other, and setting any one of them resets all the others
  171. to the new value.
  172. If you have multiple deprecation entries to add, it is more efficient to
  173. use #addDeprecations(DeprecationDelta[] deltas) instead.
  174. @param key Key that is to be deprecated
  175. @param newKeys list of keys that take up the values of deprecated key
  176. @deprecated use {@link #addDeprecation(String key, String newKey)} instead]]>
  177. </doc>
  178. </method>
  179. <method name="addDeprecation"
  180. abstract="false" native="false" synchronized="false"
  181. static="true" final="false" visibility="public"
  182. deprecated="not deprecated">
  183. <param name="key" type="java.lang.String"/>
  184. <param name="newKey" type="java.lang.String"/>
  185. <doc>
  186. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  187. message is provided.
  188. It does not override any existing entries in the deprecation map.
  189. This is to be used only by the developers in order to add deprecation of
  190. keys, and attempts to call this method after loading resources once,
  191. would lead to <tt>UnsupportedOperationException</tt>
  192. If you have multiple deprecation entries to add, it is more efficient to
  193. use #addDeprecations(DeprecationDelta[] deltas) instead.
  194. @param key Key that is to be deprecated
  195. @param newKey key that takes up the value of deprecated key]]>
  196. </doc>
  197. </method>
  198. <method name="isDeprecated" return="boolean"
  199. abstract="false" native="false" synchronized="false"
  200. static="true" final="false" visibility="public"
  201. deprecated="not deprecated">
  202. <param name="key" type="java.lang.String"/>
  203. <doc>
  204. <![CDATA[checks whether the given <code>key</code> is deprecated.
  205. @param key the parameter which is to be checked for deprecation
  206. @return <code>true</code> if the key is deprecated and
  207. <code>false</code> otherwise.]]>
  208. </doc>
  209. </method>
  210. <method name="setDeprecatedProperties"
  211. abstract="false" native="false" synchronized="false"
  212. static="false" final="false" visibility="public"
  213. deprecated="not deprecated">
  214. <doc>
  215. <![CDATA[Sets all deprecated properties that are not currently set but have a
  216. corresponding new property that is set. Useful for iterating the
  217. properties when all deprecated properties for currently set properties
  218. need to be present.]]>
  219. </doc>
  220. </method>
  221. <method name="reloadExistingConfigurations"
  222. abstract="false" native="false" synchronized="true"
  223. static="true" final="false" visibility="public"
  224. deprecated="not deprecated">
  225. <doc>
  226. <![CDATA[Reload existing configuration instances.]]>
  227. </doc>
  228. </method>
  229. <method name="addDefaultResource"
  230. abstract="false" native="false" synchronized="true"
  231. static="true" final="false" visibility="public"
  232. deprecated="not deprecated">
  233. <param name="name" type="java.lang.String"/>
  234. <doc>
  235. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  236. added.
  237. @param name file name. File should be present in the classpath.]]>
  238. </doc>
  239. </method>
  240. <method name="setRestrictSystemPropertiesDefault"
  241. abstract="false" native="false" synchronized="false"
  242. static="true" final="false" visibility="public"
  243. deprecated="not deprecated">
  244. <param name="val" type="boolean"/>
  245. </method>
  246. <method name="setRestrictSystemProperties"
  247. abstract="false" native="false" synchronized="false"
  248. static="false" final="false" visibility="public"
  249. deprecated="not deprecated">
  250. <param name="val" type="boolean"/>
  251. </method>
  252. <method name="addResource"
  253. abstract="false" native="false" synchronized="false"
  254. static="false" final="false" visibility="public"
  255. deprecated="not deprecated">
  256. <param name="name" type="java.lang.String"/>
  257. <doc>
  258. <![CDATA[Add a configuration resource.
  259. The properties of this resource will override properties of previously
  260. added resources, unless they were marked <a href="#Final">final</a>.
  261. @param name resource to be added, the classpath is examined for a file
  262. with that name.]]>
  263. </doc>
  264. </method>
  265. <method name="addResource"
  266. abstract="false" native="false" synchronized="false"
  267. static="false" final="false" visibility="public"
  268. deprecated="not deprecated">
  269. <param name="name" type="java.lang.String"/>
  270. <param name="restrictedParser" type="boolean"/>
  271. </method>
  272. <method name="addResource"
  273. abstract="false" native="false" synchronized="false"
  274. static="false" final="false" visibility="public"
  275. deprecated="not deprecated">
  276. <param name="url" type="java.net.URL"/>
  277. <doc>
  278. <![CDATA[Add a configuration resource.
  279. The properties of this resource will override properties of previously
  280. added resources, unless they were marked <a href="#Final">final</a>.
  281. @param url url of the resource to be added, the local filesystem is
  282. examined directly to find the resource, without referring to
  283. the classpath.]]>
  284. </doc>
  285. </method>
  286. <method name="addResource"
  287. abstract="false" native="false" synchronized="false"
  288. static="false" final="false" visibility="public"
  289. deprecated="not deprecated">
  290. <param name="url" type="java.net.URL"/>
  291. <param name="restrictedParser" type="boolean"/>
  292. </method>
  293. <method name="addResource"
  294. abstract="false" native="false" synchronized="false"
  295. static="false" final="false" visibility="public"
  296. deprecated="not deprecated">
  297. <param name="file" type="org.apache.hadoop.fs.Path"/>
  298. <doc>
  299. <![CDATA[Add a configuration resource.
  300. The properties of this resource will override properties of previously
  301. added resources, unless they were marked <a href="#Final">final</a>.
  302. @param file file-path of resource to be added, the local filesystem is
  303. examined directly to find the resource, without referring to
  304. the classpath.]]>
  305. </doc>
  306. </method>
  307. <method name="addResource"
  308. abstract="false" native="false" synchronized="false"
  309. static="false" final="false" visibility="public"
  310. deprecated="not deprecated">
  311. <param name="file" type="org.apache.hadoop.fs.Path"/>
  312. <param name="restrictedParser" type="boolean"/>
  313. </method>
  314. <method name="addResource"
  315. abstract="false" native="false" synchronized="false"
  316. static="false" final="false" visibility="public"
  317. deprecated="not deprecated">
  318. <param name="in" type="java.io.InputStream"/>
  319. <doc>
  320. <![CDATA[Add a configuration resource.
  321. The properties of this resource will override properties of previously
  322. added resources, unless they were marked <a href="#Final">final</a>.
  323. WARNING: The contents of the InputStream will be cached, by this method.
  324. So use this sparingly because it does increase the memory consumption.
  325. @param in InputStream to deserialize the object from. In will be read from
  326. when a get or set is called next. After it is read the stream will be
  327. closed.]]>
  328. </doc>
  329. </method>
  330. <method name="addResource"
  331. abstract="false" native="false" synchronized="false"
  332. static="false" final="false" visibility="public"
  333. deprecated="not deprecated">
  334. <param name="in" type="java.io.InputStream"/>
  335. <param name="restrictedParser" type="boolean"/>
  336. </method>
  337. <method name="addResource"
  338. abstract="false" native="false" synchronized="false"
  339. static="false" final="false" visibility="public"
  340. deprecated="not deprecated">
  341. <param name="in" type="java.io.InputStream"/>
  342. <param name="name" type="java.lang.String"/>
  343. <doc>
  344. <![CDATA[Add a configuration resource.
  345. The properties of this resource will override properties of previously
  346. added resources, unless they were marked <a href="#Final">final</a>.
  347. @param in InputStream to deserialize the object from.
  348. @param name the name of the resource because InputStream.toString is not
  349. very descriptive some times.]]>
  350. </doc>
  351. </method>
  352. <method name="addResource"
  353. abstract="false" native="false" synchronized="false"
  354. static="false" final="false" visibility="public"
  355. deprecated="not deprecated">
  356. <param name="in" type="java.io.InputStream"/>
  357. <param name="name" type="java.lang.String"/>
  358. <param name="restrictedParser" type="boolean"/>
  359. </method>
  360. <method name="addResource"
  361. abstract="false" native="false" synchronized="false"
  362. static="false" final="false" visibility="public"
  363. deprecated="not deprecated">
  364. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  365. <doc>
  366. <![CDATA[Add a configuration resource.
  367. The properties of this resource will override properties of previously
  368. added resources, unless they were marked <a href="#Final">final</a>.
  369. @param conf Configuration object from which to load properties]]>
  370. </doc>
  371. </method>
  372. <method name="reloadConfiguration"
  373. abstract="false" native="false" synchronized="true"
  374. static="false" final="false" visibility="public"
  375. deprecated="not deprecated">
  376. <doc>
  377. <![CDATA[Reload configuration from previously added resources.
  378. This method will clear all the configuration read from the added
  379. resources, and final parameters. This will make the resources to
  380. be read again before accessing the values. Values that are added
  381. via set methods will overlay values read from the resources.]]>
  382. </doc>
  383. </method>
  384. <method name="get" return="java.lang.String"
  385. abstract="false" native="false" synchronized="false"
  386. static="false" final="false" visibility="public"
  387. deprecated="not deprecated">
  388. <param name="name" type="java.lang.String"/>
  389. <doc>
  390. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  391. no such property exists. If the key is deprecated, it returns the value of
  392. the first key which replaces the deprecated key and is not null.
  393. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  394. before being returned.
  395. As a side effect get loads the properties from the sources if called for
  396. the first time as a lazy init.
  397. @param name the property name, will be trimmed before get value.
  398. @return the value of the <code>name</code> or its replacing property,
  399. or null if no such property exists.]]>
  400. </doc>
  401. </method>
  402. <method name="setAllowNullValueProperties"
  403. abstract="false" native="false" synchronized="false"
  404. static="false" final="false" visibility="public"
  405. deprecated="not deprecated">
  406. <param name="val" type="boolean"/>
  407. <doc>
  408. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  409. for use during testing.
  410. @param val If true, will allow Configuration to store keys without values]]>
  411. </doc>
  412. </method>
  413. <method name="setRestrictSystemProps"
  414. abstract="false" native="false" synchronized="false"
  415. static="false" final="false" visibility="public"
  416. deprecated="not deprecated">
  417. <param name="val" type="boolean"/>
  418. </method>
  419. <method name="onlyKeyExists" return="boolean"
  420. abstract="false" native="false" synchronized="false"
  421. static="false" final="false" visibility="public"
  422. deprecated="not deprecated">
  423. <param name="name" type="java.lang.String"/>
  424. <doc>
  425. <![CDATA[Return existence of the <code>name</code> property, but only for
  426. names which have no valid value, usually non-existent or commented
  427. out in XML.
  428. @param name the property name
  429. @return true if the property <code>name</code> exists without value]]>
  430. </doc>
  431. </method>
  432. <method name="getTrimmed" return="java.lang.String"
  433. abstract="false" native="false" synchronized="false"
  434. static="false" final="false" visibility="public"
  435. deprecated="not deprecated">
  436. <param name="name" type="java.lang.String"/>
  437. <doc>
  438. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  439. <code>null</code> if no such property exists.
  440. If the key is deprecated, it returns the value of
  441. the first key which replaces the deprecated key and is not null
  442. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  443. before being returned.
  444. @param name the property name.
  445. @return the value of the <code>name</code> or its replacing property,
  446. or null if no such property exists.]]>
  447. </doc>
  448. </method>
  449. <method name="getTrimmed" return="java.lang.String"
  450. abstract="false" native="false" synchronized="false"
  451. static="false" final="false" visibility="public"
  452. deprecated="not deprecated">
  453. <param name="name" type="java.lang.String"/>
  454. <param name="defaultValue" type="java.lang.String"/>
  455. <doc>
  456. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  457. <code>defaultValue</code> if no such property exists.
  458. See @{Configuration#getTrimmed} for more details.
  459. @param name the property name.
  460. @param defaultValue the property default value.
  461. @return the value of the <code>name</code> or defaultValue
  462. if it is not set.]]>
  463. </doc>
  464. </method>
  465. <method name="getRaw" return="java.lang.String"
  466. abstract="false" native="false" synchronized="false"
  467. static="false" final="false" visibility="public"
  468. deprecated="not deprecated">
  469. <param name="name" type="java.lang.String"/>
  470. <doc>
  471. <![CDATA[Get the value of the <code>name</code> property, without doing
  472. <a href="#VariableExpansion">variable expansion</a>.If the key is
  473. deprecated, it returns the value of the first key which replaces
  474. the deprecated key and is not null.
  475. @param name the property name.
  476. @return the value of the <code>name</code> property or
  477. its replacing property and null if no such property exists.]]>
  478. </doc>
  479. </method>
  480. <method name="set"
  481. abstract="false" native="false" synchronized="false"
  482. static="false" final="false" visibility="public"
  483. deprecated="not deprecated">
  484. <param name="name" type="java.lang.String"/>
  485. <param name="value" type="java.lang.String"/>
  486. <doc>
  487. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  488. <code>name</code> is deprecated or there is a deprecated name associated to it,
  489. it sets the value to both names. Name will be trimmed before put into
  490. configuration.
  491. @param name property name.
  492. @param value property value.]]>
  493. </doc>
  494. </method>
  495. <method name="set"
  496. abstract="false" native="false" synchronized="false"
  497. static="false" final="false" visibility="public"
  498. deprecated="not deprecated">
  499. <param name="name" type="java.lang.String"/>
  500. <param name="value" type="java.lang.String"/>
  501. <param name="source" type="java.lang.String"/>
  502. <doc>
  503. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  504. <code>name</code> is deprecated, it also sets the <code>value</code> to
  505. the keys that replace the deprecated key. Name will be trimmed before put
  506. into configuration.
  507. @param name property name.
  508. @param value property value.
  509. @param source the place that this configuration value came from
  510. (For debugging).
  511. @throws IllegalArgumentException when the value or name is null.]]>
  512. </doc>
  513. </method>
  514. <method name="unset"
  515. abstract="false" native="false" synchronized="true"
  516. static="false" final="false" visibility="public"
  517. deprecated="not deprecated">
  518. <param name="name" type="java.lang.String"/>
  519. <doc>
  520. <![CDATA[Unset a previously set property.
  521. @param name the property name]]>
  522. </doc>
  523. </method>
  524. <method name="setIfUnset"
  525. abstract="false" native="false" synchronized="true"
  526. static="false" final="false" visibility="public"
  527. deprecated="not deprecated">
  528. <param name="name" type="java.lang.String"/>
  529. <param name="value" type="java.lang.String"/>
  530. <doc>
  531. <![CDATA[Sets a property if it is currently unset.
  532. @param name the property name
  533. @param value the new value]]>
  534. </doc>
  535. </method>
  536. <method name="get" return="java.lang.String"
  537. abstract="false" native="false" synchronized="false"
  538. static="false" final="false" visibility="public"
  539. deprecated="not deprecated">
  540. <param name="name" type="java.lang.String"/>
  541. <param name="defaultValue" type="java.lang.String"/>
  542. <doc>
  543. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  544. it returns the value of the first key which replaces the deprecated key
  545. and is not null.
  546. If no such property exists,
  547. then <code>defaultValue</code> is returned.
  548. @param name property name, will be trimmed before get value.
  549. @param defaultValue default value.
  550. @return property value, or <code>defaultValue</code> if the property
  551. doesn't exist.]]>
  552. </doc>
  553. </method>
  554. <method name="getInt" return="int"
  555. abstract="false" native="false" synchronized="false"
  556. static="false" final="false" visibility="public"
  557. deprecated="not deprecated">
  558. <param name="name" type="java.lang.String"/>
  559. <param name="defaultValue" type="int"/>
  560. <doc>
  561. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  562. If no such property exists, the provided default value is returned,
  563. or if the specified value is not a valid <code>int</code>,
  564. then an error is thrown.
  565. @param name property name.
  566. @param defaultValue default value.
  567. @throws NumberFormatException when the value is invalid
  568. @return property value as an <code>int</code>,
  569. or <code>defaultValue</code>.]]>
  570. </doc>
  571. </method>
  572. <method name="getInts" return="int[]"
  573. abstract="false" native="false" synchronized="false"
  574. static="false" final="false" visibility="public"
  575. deprecated="not deprecated">
  576. <param name="name" type="java.lang.String"/>
  577. <doc>
  578. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  579. <code>int</code> values.
  580. If no such property exists, an empty array is returned.
  581. @param name property name
  582. @return property value interpreted as an array of comma-delimited
  583. <code>int</code> values]]>
  584. </doc>
  585. </method>
  586. <method name="setInt"
  587. abstract="false" native="false" synchronized="false"
  588. static="false" final="false" visibility="public"
  589. deprecated="not deprecated">
  590. <param name="name" type="java.lang.String"/>
  591. <param name="value" type="int"/>
  592. <doc>
  593. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  594. @param name property name.
  595. @param value <code>int</code> value of the property.]]>
  596. </doc>
  597. </method>
  598. <method name="getLong" return="long"
  599. abstract="false" native="false" synchronized="false"
  600. static="false" final="false" visibility="public"
  601. deprecated="not deprecated">
  602. <param name="name" type="java.lang.String"/>
  603. <param name="defaultValue" type="long"/>
  604. <doc>
  605. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  606. If no such property exists, the provided default value is returned,
  607. or if the specified value is not a valid <code>long</code>,
  608. then an error is thrown.
  609. @param name property name.
  610. @param defaultValue default value.
  611. @throws NumberFormatException when the value is invalid
  612. @return property value as a <code>long</code>,
  613. or <code>defaultValue</code>.]]>
  614. </doc>
  615. </method>
  616. <method name="getLongBytes" return="long"
  617. abstract="false" native="false" synchronized="false"
  618. static="false" final="false" visibility="public"
  619. deprecated="not deprecated">
  620. <param name="name" type="java.lang.String"/>
  621. <param name="defaultValue" type="long"/>
  622. <doc>
  623. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  624. human readable format. If no such property exists, the provided default
  625. value is returned, or if the specified value is not a valid
  626. <code>long</code> or human readable format, then an error is thrown. You
  627. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  628. t(tera), p(peta), e(exa)
  629. @param name property name.
  630. @param defaultValue default value.
  631. @throws NumberFormatException when the value is invalid
  632. @return property value as a <code>long</code>,
  633. or <code>defaultValue</code>.]]>
  634. </doc>
  635. </method>
  636. <method name="setLong"
  637. abstract="false" native="false" synchronized="false"
  638. static="false" final="false" visibility="public"
  639. deprecated="not deprecated">
  640. <param name="name" type="java.lang.String"/>
  641. <param name="value" type="long"/>
  642. <doc>
  643. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  644. @param name property name.
  645. @param value <code>long</code> value of the property.]]>
  646. </doc>
  647. </method>
  648. <method name="getFloat" return="float"
  649. abstract="false" native="false" synchronized="false"
  650. static="false" final="false" visibility="public"
  651. deprecated="not deprecated">
  652. <param name="name" type="java.lang.String"/>
  653. <param name="defaultValue" type="float"/>
  654. <doc>
  655. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  656. If no such property exists, the provided default value is returned,
  657. or if the specified value is not a valid <code>float</code>,
  658. then an error is thrown.
  659. @param name property name.
  660. @param defaultValue default value.
  661. @throws NumberFormatException when the value is invalid
  662. @return property value as a <code>float</code>,
  663. or <code>defaultValue</code>.]]>
  664. </doc>
  665. </method>
  666. <method name="setFloat"
  667. abstract="false" native="false" synchronized="false"
  668. static="false" final="false" visibility="public"
  669. deprecated="not deprecated">
  670. <param name="name" type="java.lang.String"/>
  671. <param name="value" type="float"/>
  672. <doc>
  673. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  674. @param name property name.
  675. @param value property value.]]>
  676. </doc>
  677. </method>
  678. <method name="getDouble" return="double"
  679. abstract="false" native="false" synchronized="false"
  680. static="false" final="false" visibility="public"
  681. deprecated="not deprecated">
  682. <param name="name" type="java.lang.String"/>
  683. <param name="defaultValue" type="double"/>
  684. <doc>
  685. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  686. If no such property exists, the provided default value is returned,
  687. or if the specified value is not a valid <code>double</code>,
  688. then an error is thrown.
  689. @param name property name.
  690. @param defaultValue default value.
  691. @throws NumberFormatException when the value is invalid
  692. @return property value as a <code>double</code>,
  693. or <code>defaultValue</code>.]]>
  694. </doc>
  695. </method>
  696. <method name="setDouble"
  697. abstract="false" native="false" synchronized="false"
  698. static="false" final="false" visibility="public"
  699. deprecated="not deprecated">
  700. <param name="name" type="java.lang.String"/>
  701. <param name="value" type="double"/>
  702. <doc>
  703. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  704. @param name property name.
  705. @param value property value.]]>
  706. </doc>
  707. </method>
  708. <method name="getBoolean" return="boolean"
  709. abstract="false" native="false" synchronized="false"
  710. static="false" final="false" visibility="public"
  711. deprecated="not deprecated">
  712. <param name="name" type="java.lang.String"/>
  713. <param name="defaultValue" type="boolean"/>
  714. <doc>
  715. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  716. If no such property is specified, or if the specified value is not a valid
  717. <code>boolean</code>, then <code>defaultValue</code> is returned.
  718. @param name property name.
  719. @param defaultValue default value.
  720. @return property value as a <code>boolean</code>,
  721. or <code>defaultValue</code>.]]>
  722. </doc>
  723. </method>
  724. <method name="setBoolean"
  725. abstract="false" native="false" synchronized="false"
  726. static="false" final="false" visibility="public"
  727. deprecated="not deprecated">
  728. <param name="name" type="java.lang.String"/>
  729. <param name="value" type="boolean"/>
  730. <doc>
  731. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  732. @param name property name.
  733. @param value <code>boolean</code> value of the property.]]>
  734. </doc>
  735. </method>
  736. <method name="setBooleanIfUnset"
  737. abstract="false" native="false" synchronized="false"
  738. static="false" final="false" visibility="public"
  739. deprecated="not deprecated">
  740. <param name="name" type="java.lang.String"/>
  741. <param name="value" type="boolean"/>
  742. <doc>
  743. <![CDATA[Set the given property, if it is currently unset.
  744. @param name property name
  745. @param value new value]]>
  746. </doc>
  747. </method>
  748. <method name="setEnum"
  749. abstract="false" native="false" synchronized="false"
  750. static="false" final="false" visibility="public"
  751. deprecated="not deprecated">
  752. <param name="name" type="java.lang.String"/>
  753. <param name="value" type="T"/>
  754. <doc>
  755. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  756. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  757. @param name property name
  758. @param value new value
  759. @param <T> enumeration type]]>
  760. </doc>
  761. </method>
  762. <method name="getEnum" return="T"
  763. abstract="false" native="false" synchronized="false"
  764. static="false" final="false" visibility="public"
  765. deprecated="not deprecated">
  766. <param name="name" type="java.lang.String"/>
  767. <param name="defaultValue" type="T"/>
  768. <doc>
  769. <![CDATA[Return value matching this enumerated type.
  770. Note that the returned value is trimmed by this method.
  771. @param name Property name
  772. @param defaultValue Value returned if no mapping exists
  773. @param <T> enumeration type
  774. @throws IllegalArgumentException If mapping is illegal for the type
  775. provided
  776. @return enumeration type]]>
  777. </doc>
  778. </method>
  779. <method name="setTimeDuration"
  780. abstract="false" native="false" synchronized="false"
  781. static="false" final="false" visibility="public"
  782. deprecated="not deprecated">
  783. <param name="name" type="java.lang.String"/>
  784. <param name="value" type="long"/>
  785. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  786. <doc>
  787. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  788. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  789. @param name Property name
  790. @param value Time duration
  791. @param unit Unit of time]]>
  792. </doc>
  793. </method>
  794. <method name="getTimeDuration" return="long"
  795. abstract="false" native="false" synchronized="false"
  796. static="false" final="false" visibility="public"
  797. deprecated="not deprecated">
  798. <param name="name" type="java.lang.String"/>
  799. <param name="defaultValue" type="long"/>
  800. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  801. <doc>
  802. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  803. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  804. (ms), seconds (s), minutes (m), hours (h), and days (d).
  805. @param name Property name
  806. @param defaultValue Value returned if no mapping exists.
  807. @param unit Unit to convert the stored property, if it exists.
  808. @throws NumberFormatException If the property stripped of its unit is not
  809. a number
  810. @return time duration in given time unit]]>
  811. </doc>
  812. </method>
  813. <method name="getTimeDuration" return="long"
  814. abstract="false" native="false" synchronized="false"
  815. static="false" final="false" visibility="public"
  816. deprecated="not deprecated">
  817. <param name="name" type="java.lang.String"/>
  818. <param name="defaultValue" type="java.lang.String"/>
  819. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  820. </method>
  821. <method name="getTimeDuration" return="long"
  822. abstract="false" native="false" synchronized="false"
  823. static="false" final="false" visibility="public"
  824. deprecated="not deprecated">
  825. <param name="name" type="java.lang.String"/>
  826. <param name="defaultValue" type="long"/>
  827. <param name="defaultUnit" type="java.util.concurrent.TimeUnit"/>
  828. <param name="returnUnit" type="java.util.concurrent.TimeUnit"/>
  829. <doc>
  830. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  831. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  832. (ms), seconds (s), minutes (m), hours (h), and days (d). If no unit is
  833. provided, the default unit is applied.
  834. @param name Property name
  835. @param defaultValue Value returned if no mapping exists.
  836. @param defaultUnit Default time unit if no valid suffix is provided.
  837. @param returnUnit The unit used for the returned value.
  838. @throws NumberFormatException If the property stripped of its unit is not
  839. a number
  840. @return time duration in given time unit]]>
  841. </doc>
  842. </method>
  843. <method name="getTimeDuration" 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="defaultValue" type="java.lang.String"/>
  849. <param name="defaultUnit" type="java.util.concurrent.TimeUnit"/>
  850. <param name="returnUnit" type="java.util.concurrent.TimeUnit"/>
  851. </method>
  852. <method name="getTimeDurationHelper" return="long"
  853. abstract="false" native="false" synchronized="false"
  854. static="false" final="false" visibility="public"
  855. deprecated="not deprecated">
  856. <param name="name" type="java.lang.String"/>
  857. <param name="vStr" type="java.lang.String"/>
  858. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  859. <doc>
  860. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  861. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  862. (ms), seconds (s), minutes (m), hours (h), and days (d).
  863. @param name Property name
  864. @param vStr The string value with time unit suffix to be converted.
  865. @param unit Unit to convert the stored property, if it exists.]]>
  866. </doc>
  867. </method>
  868. <method name="getTimeDurations" return="long[]"
  869. abstract="false" native="false" synchronized="false"
  870. static="false" final="false" visibility="public"
  871. deprecated="not deprecated">
  872. <param name="name" type="java.lang.String"/>
  873. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  874. </method>
  875. <method name="getStorageSize" return="double"
  876. abstract="false" native="false" synchronized="false"
  877. static="false" final="false" visibility="public"
  878. deprecated="not deprecated">
  879. <param name="name" type="java.lang.String"/>
  880. <param name="defaultValue" type="java.lang.String"/>
  881. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  882. <doc>
  883. <![CDATA[Gets the Storage Size from the config, or returns the defaultValue. The
  884. unit of return value is specified in target unit.
  885. @param name - Key Name
  886. @param defaultValue - Default Value -- e.g. 100MB
  887. @param targetUnit - The units that we want result to be in.
  888. @return double -- formatted in target Units]]>
  889. </doc>
  890. </method>
  891. <method name="getStorageSize" return="double"
  892. abstract="false" native="false" synchronized="false"
  893. static="false" final="false" visibility="public"
  894. deprecated="not deprecated">
  895. <param name="name" type="java.lang.String"/>
  896. <param name="defaultValue" type="double"/>
  897. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  898. <doc>
  899. <![CDATA[Gets storage size from a config file.
  900. @param name - Key to read.
  901. @param defaultValue - The default value to return in case the key is
  902. not present.
  903. @param targetUnit - The Storage unit that should be used
  904. for the return value.
  905. @return - double value in the Storage Unit specified.]]>
  906. </doc>
  907. </method>
  908. <method name="setStorageSize"
  909. abstract="false" native="false" synchronized="false"
  910. static="false" final="false" visibility="public"
  911. deprecated="not deprecated">
  912. <param name="name" type="java.lang.String"/>
  913. <param name="value" type="double"/>
  914. <param name="unit" type="org.apache.hadoop.conf.StorageUnit"/>
  915. <doc>
  916. <![CDATA[Sets Storage Size for the specified key.
  917. @param name - Key to set.
  918. @param value - The numeric value to set.
  919. @param unit - Storage Unit to be used.]]>
  920. </doc>
  921. </method>
  922. <method name="getPattern" return="java.util.regex.Pattern"
  923. abstract="false" native="false" synchronized="false"
  924. static="false" final="false" visibility="public"
  925. deprecated="not deprecated">
  926. <param name="name" type="java.lang.String"/>
  927. <param name="defaultValue" type="java.util.regex.Pattern"/>
  928. <doc>
  929. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  930. If no such property is specified, or if the specified value is not a valid
  931. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  932. Note that the returned value is NOT trimmed by this method.
  933. @param name property name
  934. @param defaultValue default value
  935. @return property value as a compiled Pattern, or defaultValue]]>
  936. </doc>
  937. </method>
  938. <method name="setPattern"
  939. abstract="false" native="false" synchronized="false"
  940. static="false" final="false" visibility="public"
  941. deprecated="not deprecated">
  942. <param name="name" type="java.lang.String"/>
  943. <param name="pattern" type="java.util.regex.Pattern"/>
  944. <doc>
  945. <![CDATA[Set the given property to <code>Pattern</code>.
  946. If the pattern is passed as null, sets the empty pattern which results in
  947. further calls to getPattern(...) returning the default value.
  948. @param name property name
  949. @param pattern new value]]>
  950. </doc>
  951. </method>
  952. <method name="getPropertySources" return="java.lang.String[]"
  953. abstract="false" native="false" synchronized="true"
  954. static="false" final="false" visibility="public"
  955. deprecated="not deprecated">
  956. <param name="name" type="java.lang.String"/>
  957. <doc>
  958. <![CDATA[Gets information about why a property was set. Typically this is the
  959. path to the resource objects (file, URL, etc.) the property came from, but
  960. it can also indicate that it was set programmatically, or because of the
  961. command line.
  962. @param name - The property name to get the source of.
  963. @return null - If the property or its source wasn't found. Otherwise,
  964. returns a list of the sources of the resource. The older sources are
  965. the first ones in the list. So for example if a configuration is set from
  966. the command line, and then written out to a file that is read back in the
  967. first entry would indicate that it was set from the command line, while
  968. the second one would indicate the file that the new configuration was read
  969. in from.]]>
  970. </doc>
  971. </method>
  972. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  973. abstract="false" native="false" synchronized="false"
  974. static="false" final="false" visibility="public"
  975. deprecated="not deprecated">
  976. <param name="name" type="java.lang.String"/>
  977. <param name="defaultValue" type="java.lang.String"/>
  978. <doc>
  979. <![CDATA[Parse the given attribute as a set of integer ranges
  980. @param name the attribute name
  981. @param defaultValue the default value if it is not set
  982. @return a new set of ranges from the configured value]]>
  983. </doc>
  984. </method>
  985. <method name="getStringCollection" return="java.util.Collection"
  986. abstract="false" native="false" synchronized="false"
  987. static="false" final="false" visibility="public"
  988. deprecated="not deprecated">
  989. <param name="name" type="java.lang.String"/>
  990. <doc>
  991. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  992. a collection of <code>String</code>s.
  993. If no such property is specified then empty collection is returned.
  994. <p>
  995. This is an optimized version of {@link #getStrings(String)}
  996. @param name property name.
  997. @return property value as a collection of <code>String</code>s.]]>
  998. </doc>
  999. </method>
  1000. <method name="getStrings" return="java.lang.String[]"
  1001. abstract="false" native="false" synchronized="false"
  1002. static="false" final="false" visibility="public"
  1003. deprecated="not deprecated">
  1004. <param name="name" type="java.lang.String"/>
  1005. <doc>
  1006. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1007. an array of <code>String</code>s.
  1008. If no such property is specified then <code>null</code> is returned.
  1009. @param name property name.
  1010. @return property value as an array of <code>String</code>s,
  1011. or <code>null</code>.]]>
  1012. </doc>
  1013. </method>
  1014. <method name="getStrings" return="java.lang.String[]"
  1015. abstract="false" native="false" synchronized="false"
  1016. static="false" final="false" visibility="public"
  1017. deprecated="not deprecated">
  1018. <param name="name" type="java.lang.String"/>
  1019. <param name="defaultValue" type="java.lang.String[]"/>
  1020. <doc>
  1021. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1022. an array of <code>String</code>s.
  1023. If no such property is specified then default value is returned.
  1024. @param name property name.
  1025. @param defaultValue The default value
  1026. @return property value as an array of <code>String</code>s,
  1027. or default value.]]>
  1028. </doc>
  1029. </method>
  1030. <method name="getTrimmedStringCollection" return="java.util.Collection"
  1031. abstract="false" native="false" synchronized="false"
  1032. static="false" final="false" visibility="public"
  1033. deprecated="not deprecated">
  1034. <param name="name" type="java.lang.String"/>
  1035. <doc>
  1036. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1037. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1038. If no such property is specified then empty <code>Collection</code> is returned.
  1039. @param name property name.
  1040. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  1041. </doc>
  1042. </method>
  1043. <method name="getTrimmedStrings" return="java.lang.String[]"
  1044. abstract="false" native="false" synchronized="false"
  1045. static="false" final="false" visibility="public"
  1046. deprecated="not deprecated">
  1047. <param name="name" type="java.lang.String"/>
  1048. <doc>
  1049. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1050. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1051. If no such property is specified then an empty array is returned.
  1052. @param name property name.
  1053. @return property value as an array of trimmed <code>String</code>s,
  1054. or empty array.]]>
  1055. </doc>
  1056. </method>
  1057. <method name="getTrimmedStrings" return="java.lang.String[]"
  1058. abstract="false" native="false" synchronized="false"
  1059. static="false" final="false" visibility="public"
  1060. deprecated="not deprecated">
  1061. <param name="name" type="java.lang.String"/>
  1062. <param name="defaultValue" type="java.lang.String[]"/>
  1063. <doc>
  1064. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1065. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1066. If no such property is specified then default value is returned.
  1067. @param name property name.
  1068. @param defaultValue The default value
  1069. @return property value as an array of trimmed <code>String</code>s,
  1070. or default value.]]>
  1071. </doc>
  1072. </method>
  1073. <method name="setStrings"
  1074. abstract="false" native="false" synchronized="false"
  1075. static="false" final="false" visibility="public"
  1076. deprecated="not deprecated">
  1077. <param name="name" type="java.lang.String"/>
  1078. <param name="values" type="java.lang.String[]"/>
  1079. <doc>
  1080. <![CDATA[Set the array of string values for the <code>name</code> property as
  1081. as comma delimited values.
  1082. @param name property name.
  1083. @param values The values]]>
  1084. </doc>
  1085. </method>
  1086. <method name="getPassword" return="char[]"
  1087. abstract="false" native="false" synchronized="false"
  1088. static="false" final="false" visibility="public"
  1089. deprecated="not deprecated">
  1090. <param name="name" type="java.lang.String"/>
  1091. <exception name="IOException" type="java.io.IOException"/>
  1092. <doc>
  1093. <![CDATA[Get the value for a known password configuration element.
  1094. In order to enable the elimination of clear text passwords in config,
  1095. this method attempts to resolve the property name as an alias through
  1096. the CredentialProvider API and conditionally fallsback to config.
  1097. @param name property name
  1098. @return password
  1099. @throws IOException when error in fetching password]]>
  1100. </doc>
  1101. </method>
  1102. <method name="getPasswordFromCredentialProviders" return="char[]"
  1103. abstract="false" native="false" synchronized="false"
  1104. static="false" final="false" visibility="public"
  1105. deprecated="not deprecated">
  1106. <param name="name" type="java.lang.String"/>
  1107. <exception name="IOException" type="java.io.IOException"/>
  1108. <doc>
  1109. <![CDATA[Try and resolve the provided element name as a credential provider
  1110. alias.
  1111. @param name alias of the provisioned credential
  1112. @return password or null if not found
  1113. @throws IOException when error in fetching password]]>
  1114. </doc>
  1115. </method>
  1116. <method name="getPasswordFromConfig" return="char[]"
  1117. abstract="false" native="false" synchronized="false"
  1118. static="false" final="false" visibility="protected"
  1119. deprecated="not deprecated">
  1120. <param name="name" type="java.lang.String"/>
  1121. <doc>
  1122. <![CDATA[Fallback to clear text passwords in configuration.
  1123. @param name
  1124. @return clear text password or null]]>
  1125. </doc>
  1126. </method>
  1127. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1128. abstract="false" native="false" synchronized="false"
  1129. static="false" final="false" visibility="public"
  1130. deprecated="not deprecated">
  1131. <param name="hostProperty" type="java.lang.String"/>
  1132. <param name="addressProperty" type="java.lang.String"/>
  1133. <param name="defaultAddressValue" type="java.lang.String"/>
  1134. <param name="defaultPort" type="int"/>
  1135. <doc>
  1136. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  1137. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  1138. <code>null</code>, <code>addressProperty</code> will be used. This
  1139. is useful for cases where we want to differentiate between host
  1140. bind address and address clients should use to establish connection.
  1141. @param hostProperty bind host property name.
  1142. @param addressProperty address property name.
  1143. @param defaultAddressValue the default value
  1144. @param defaultPort the default port
  1145. @return InetSocketAddress]]>
  1146. </doc>
  1147. </method>
  1148. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1149. abstract="false" native="false" synchronized="false"
  1150. static="false" final="false" visibility="public"
  1151. deprecated="not deprecated">
  1152. <param name="name" type="java.lang.String"/>
  1153. <param name="defaultAddress" type="java.lang.String"/>
  1154. <param name="defaultPort" type="int"/>
  1155. <doc>
  1156. <![CDATA[Get the socket address for <code>name</code> property as a
  1157. <code>InetSocketAddress</code>.
  1158. @param name property name.
  1159. @param defaultAddress the default value
  1160. @param defaultPort the default port
  1161. @return InetSocketAddress]]>
  1162. </doc>
  1163. </method>
  1164. <method name="setSocketAddr"
  1165. abstract="false" native="false" synchronized="false"
  1166. static="false" final="false" visibility="public"
  1167. deprecated="not deprecated">
  1168. <param name="name" type="java.lang.String"/>
  1169. <param name="addr" type="java.net.InetSocketAddress"/>
  1170. <doc>
  1171. <![CDATA[Set the socket address for the <code>name</code> property as
  1172. a <code>host:port</code>.]]>
  1173. </doc>
  1174. </method>
  1175. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1176. abstract="false" native="false" synchronized="false"
  1177. static="false" final="false" visibility="public"
  1178. deprecated="not deprecated">
  1179. <param name="hostProperty" type="java.lang.String"/>
  1180. <param name="addressProperty" type="java.lang.String"/>
  1181. <param name="defaultAddressValue" type="java.lang.String"/>
  1182. <param name="addr" type="java.net.InetSocketAddress"/>
  1183. <doc>
  1184. <![CDATA[Set the socket address a client can use to connect for the
  1185. <code>name</code> property as a <code>host:port</code>. The wildcard
  1186. address is replaced with the local host's address. If the host and address
  1187. properties are configured the host component of the address will be combined
  1188. with the port component of the addr to generate the address. This is to allow
  1189. optional control over which host name is used in multi-home bind-host
  1190. cases where a host can have multiple names
  1191. @param hostProperty the bind-host configuration name
  1192. @param addressProperty the service address configuration name
  1193. @param defaultAddressValue the service default address configuration value
  1194. @param addr InetSocketAddress of the service listener
  1195. @return InetSocketAddress for clients to connect]]>
  1196. </doc>
  1197. </method>
  1198. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1199. abstract="false" native="false" synchronized="false"
  1200. static="false" final="false" visibility="public"
  1201. deprecated="not deprecated">
  1202. <param name="name" type="java.lang.String"/>
  1203. <param name="addr" type="java.net.InetSocketAddress"/>
  1204. <doc>
  1205. <![CDATA[Set the socket address a client can use to connect for the
  1206. <code>name</code> property as a <code>host:port</code>. The wildcard
  1207. address is replaced with the local host's address.
  1208. @param name property name.
  1209. @param addr InetSocketAddress of a listener to store in the given property
  1210. @return InetSocketAddress for clients to connect]]>
  1211. </doc>
  1212. </method>
  1213. <method name="getClassByName" return="java.lang.Class"
  1214. abstract="false" native="false" synchronized="false"
  1215. static="false" final="false" visibility="public"
  1216. deprecated="not deprecated">
  1217. <param name="name" type="java.lang.String"/>
  1218. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1219. <doc>
  1220. <![CDATA[Load a class by name.
  1221. @param name the class name.
  1222. @return the class object.
  1223. @throws ClassNotFoundException if the class is not found.]]>
  1224. </doc>
  1225. </method>
  1226. <method name="getClassByNameOrNull" return="java.lang.Class"
  1227. abstract="false" native="false" synchronized="false"
  1228. static="false" final="false" visibility="public"
  1229. deprecated="not deprecated">
  1230. <param name="name" type="java.lang.String"/>
  1231. <doc>
  1232. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1233. if it couldn't be loaded. This is to avoid the overhead of creating
  1234. an exception.
  1235. @param name the class name
  1236. @return the class object, or null if it could not be found.]]>
  1237. </doc>
  1238. </method>
  1239. <method name="getClasses" return="java.lang.Class[]"
  1240. abstract="false" native="false" synchronized="false"
  1241. static="false" final="false" visibility="public"
  1242. deprecated="not deprecated">
  1243. <param name="name" type="java.lang.String"/>
  1244. <param name="defaultValue" type="java.lang.Class[]"/>
  1245. <doc>
  1246. <![CDATA[Get the value of the <code>name</code> property
  1247. as an array of <code>Class</code>.
  1248. The value of the property specifies a list of comma separated class names.
  1249. If no such property is specified, then <code>defaultValue</code> is
  1250. returned.
  1251. @param name the property name.
  1252. @param defaultValue default value.
  1253. @return property value as a <code>Class[]</code>,
  1254. or <code>defaultValue</code>.]]>
  1255. </doc>
  1256. </method>
  1257. <method name="getClass" return="java.lang.Class"
  1258. abstract="false" native="false" synchronized="false"
  1259. static="false" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <param name="name" type="java.lang.String"/>
  1262. <param name="defaultValue" type="java.lang.Class"/>
  1263. <doc>
  1264. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1265. If no such property is specified, then <code>defaultValue</code> is
  1266. returned.
  1267. @param name the conf key name.
  1268. @param defaultValue default value.
  1269. @return property value as a <code>Class</code>,
  1270. or <code>defaultValue</code>.]]>
  1271. </doc>
  1272. </method>
  1273. <method name="getClass" return="java.lang.Class"
  1274. abstract="false" native="false" synchronized="false"
  1275. static="false" final="false" visibility="public"
  1276. deprecated="not deprecated">
  1277. <param name="name" type="java.lang.String"/>
  1278. <param name="defaultValue" type="java.lang.Class"/>
  1279. <param name="xface" type="java.lang.Class"/>
  1280. <doc>
  1281. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1282. implementing the interface specified by <code>xface</code>.
  1283. If no such property is specified, then <code>defaultValue</code> is
  1284. returned.
  1285. An exception is thrown if the returned class does not implement the named
  1286. interface.
  1287. @param name the conf key name.
  1288. @param defaultValue default value.
  1289. @param xface the interface implemented by the named class.
  1290. @return property value as a <code>Class</code>,
  1291. or <code>defaultValue</code>.]]>
  1292. </doc>
  1293. </method>
  1294. <method name="getInstances" return="java.util.List"
  1295. abstract="false" native="false" synchronized="false"
  1296. static="false" final="false" visibility="public"
  1297. deprecated="not deprecated">
  1298. <param name="name" type="java.lang.String"/>
  1299. <param name="xface" type="java.lang.Class"/>
  1300. <doc>
  1301. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1302. of objects implementing the interface specified by <code>xface</code>.
  1303. An exception is thrown if any of the classes does not exist, or if it does
  1304. not implement the named interface.
  1305. @param name the property name.
  1306. @param xface the interface implemented by the classes named by
  1307. <code>name</code>.
  1308. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1309. </doc>
  1310. </method>
  1311. <method name="setClass"
  1312. abstract="false" native="false" synchronized="false"
  1313. static="false" final="false" visibility="public"
  1314. deprecated="not deprecated">
  1315. <param name="name" type="java.lang.String"/>
  1316. <param name="theClass" type="java.lang.Class"/>
  1317. <param name="xface" type="java.lang.Class"/>
  1318. <doc>
  1319. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1320. <code>theClass</code> implementing the given interface <code>xface</code>.
  1321. An exception is thrown if <code>theClass</code> does not implement the
  1322. interface <code>xface</code>.
  1323. @param name property name.
  1324. @param theClass property value.
  1325. @param xface the interface implemented by the named class.]]>
  1326. </doc>
  1327. </method>
  1328. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1329. abstract="false" native="false" synchronized="false"
  1330. static="false" final="false" visibility="public"
  1331. deprecated="not deprecated">
  1332. <param name="dirsProp" type="java.lang.String"/>
  1333. <param name="path" type="java.lang.String"/>
  1334. <exception name="IOException" type="java.io.IOException"/>
  1335. <doc>
  1336. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1337. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1338. then one is chosen based on <i>path</i>'s hash code. If the selected
  1339. directory does not exist, an attempt is made to create it.
  1340. @param dirsProp directory in which to locate the file.
  1341. @param path file-path.
  1342. @return local file under the directory with the given path.]]>
  1343. </doc>
  1344. </method>
  1345. <method name="getFile" return="java.io.File"
  1346. abstract="false" native="false" synchronized="false"
  1347. static="false" final="false" visibility="public"
  1348. deprecated="not deprecated">
  1349. <param name="dirsProp" type="java.lang.String"/>
  1350. <param name="path" type="java.lang.String"/>
  1351. <exception name="IOException" type="java.io.IOException"/>
  1352. <doc>
  1353. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1354. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1355. then one is chosen based on <i>path</i>'s hash code. If the selected
  1356. directory does not exist, an attempt is made to create it.
  1357. @param dirsProp directory in which to locate the file.
  1358. @param path file-path.
  1359. @return local file under the directory with the given path.]]>
  1360. </doc>
  1361. </method>
  1362. <method name="getResource" return="java.net.URL"
  1363. abstract="false" native="false" synchronized="false"
  1364. static="false" final="false" visibility="public"
  1365. deprecated="not deprecated">
  1366. <param name="name" type="java.lang.String"/>
  1367. <doc>
  1368. <![CDATA[Get the {@link URL} for the named resource.
  1369. @param name resource name.
  1370. @return the url for the named resource.]]>
  1371. </doc>
  1372. </method>
  1373. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1374. abstract="false" native="false" synchronized="false"
  1375. static="false" final="false" visibility="public"
  1376. deprecated="not deprecated">
  1377. <param name="name" type="java.lang.String"/>
  1378. <doc>
  1379. <![CDATA[Get an input stream attached to the configuration resource with the
  1380. given <code>name</code>.
  1381. @param name configuration resource name.
  1382. @return an input stream attached to the resource.]]>
  1383. </doc>
  1384. </method>
  1385. <method name="getConfResourceAsReader" return="java.io.Reader"
  1386. abstract="false" native="false" synchronized="false"
  1387. static="false" final="false" visibility="public"
  1388. deprecated="not deprecated">
  1389. <param name="name" type="java.lang.String"/>
  1390. <doc>
  1391. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1392. given <code>name</code>.
  1393. @param name configuration resource name.
  1394. @return a reader attached to the resource.]]>
  1395. </doc>
  1396. </method>
  1397. <method name="getFinalParameters" return="java.util.Set"
  1398. abstract="false" native="false" synchronized="false"
  1399. static="false" final="false" visibility="public"
  1400. deprecated="not deprecated">
  1401. <doc>
  1402. <![CDATA[Get the set of parameters marked final.
  1403. @return final parameter set.]]>
  1404. </doc>
  1405. </method>
  1406. <method name="getProps" return="java.util.Properties"
  1407. abstract="false" native="false" synchronized="true"
  1408. static="false" final="false" visibility="protected"
  1409. deprecated="not deprecated">
  1410. </method>
  1411. <method name="size" return="int"
  1412. abstract="false" native="false" synchronized="false"
  1413. static="false" final="false" visibility="public"
  1414. deprecated="not deprecated">
  1415. <doc>
  1416. <![CDATA[Return the number of keys in the configuration.
  1417. @return number of keys in the configuration.]]>
  1418. </doc>
  1419. </method>
  1420. <method name="clear"
  1421. abstract="false" native="false" synchronized="false"
  1422. static="false" final="false" visibility="public"
  1423. deprecated="not deprecated">
  1424. <doc>
  1425. <![CDATA[Clears all keys from the configuration.]]>
  1426. </doc>
  1427. </method>
  1428. <method name="iterator" return="java.util.Iterator"
  1429. abstract="false" native="false" synchronized="false"
  1430. static="false" final="false" visibility="public"
  1431. deprecated="not deprecated">
  1432. <doc>
  1433. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1434. key-value pairs in the configuration.
  1435. @return an iterator over the entries.]]>
  1436. </doc>
  1437. </method>
  1438. <method name="getPropsWithPrefix" return="java.util.Map"
  1439. abstract="false" native="false" synchronized="false"
  1440. static="false" final="false" visibility="public"
  1441. deprecated="not deprecated">
  1442. <param name="confPrefix" type="java.lang.String"/>
  1443. <doc>
  1444. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1445. start with the specified configuration prefix. Property names in the
  1446. mapping are trimmed to remove the configuration prefix.
  1447. @param confPrefix configuration prefix
  1448. @return mapping of configuration properties with prefix stripped]]>
  1449. </doc>
  1450. </method>
  1451. <method name="addTags"
  1452. abstract="false" native="false" synchronized="false"
  1453. static="false" final="false" visibility="public"
  1454. deprecated="not deprecated">
  1455. <param name="prop" type="java.util.Properties"/>
  1456. <doc>
  1457. <![CDATA[Add tags defined in HADOOP_TAGS_SYSTEM, HADOOP_TAGS_CUSTOM.
  1458. @param prop]]>
  1459. </doc>
  1460. </method>
  1461. <method name="writeXml"
  1462. abstract="false" native="false" synchronized="false"
  1463. static="false" final="false" visibility="public"
  1464. deprecated="not deprecated">
  1465. <param name="out" type="java.io.OutputStream"/>
  1466. <exception name="IOException" type="java.io.IOException"/>
  1467. <doc>
  1468. <![CDATA[Write out the non-default properties in this configuration to the given
  1469. {@link OutputStream} using UTF-8 encoding.
  1470. @param out the output stream to write to.]]>
  1471. </doc>
  1472. </method>
  1473. <method name="writeXml"
  1474. abstract="false" native="false" synchronized="false"
  1475. static="false" final="false" visibility="public"
  1476. deprecated="not deprecated">
  1477. <param name="out" type="java.io.Writer"/>
  1478. <exception name="IOException" type="java.io.IOException"/>
  1479. </method>
  1480. <method name="writeXml"
  1481. abstract="false" native="false" synchronized="false"
  1482. static="false" final="false" visibility="public"
  1483. deprecated="not deprecated">
  1484. <param name="propertyName" type="java.lang.String"/>
  1485. <param name="out" type="java.io.Writer"/>
  1486. <exception name="IOException" type="java.io.IOException"/>
  1487. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  1488. <doc>
  1489. <![CDATA[Write out the non-default properties in this configuration to the
  1490. given {@link Writer}.
  1491. <ul>
  1492. <li>
  1493. When property name is not empty and the property exists in the
  1494. configuration, this method writes the property and its attributes
  1495. to the {@link Writer}.
  1496. </li>
  1497. <li>
  1498. When property name is null or empty, this method writes all the
  1499. configuration properties and their attributes to the {@link Writer}.
  1500. </li>
  1501. <li>
  1502. When property name is not empty but the property doesn't exist in
  1503. the configuration, this method throws an {@link IllegalArgumentException}.
  1504. </li>
  1505. </ul>
  1506. @param out the writer to write to.]]>
  1507. </doc>
  1508. </method>
  1509. <method name="dumpConfiguration"
  1510. abstract="false" native="false" synchronized="false"
  1511. static="true" final="false" visibility="public"
  1512. deprecated="not deprecated">
  1513. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1514. <param name="propertyName" type="java.lang.String"/>
  1515. <param name="out" type="java.io.Writer"/>
  1516. <exception name="IOException" type="java.io.IOException"/>
  1517. <doc>
  1518. <![CDATA[Writes properties and their attributes (final and resource)
  1519. to the given {@link Writer}.
  1520. <ul>
  1521. <li>
  1522. When propertyName is not empty, and the property exists
  1523. in the configuration, the format of the output would be,
  1524. <pre>
  1525. {
  1526. "property": {
  1527. "key" : "key1",
  1528. "value" : "value1",
  1529. "isFinal" : "key1.isFinal",
  1530. "resource" : "key1.resource"
  1531. }
  1532. }
  1533. </pre>
  1534. </li>
  1535. <li>
  1536. When propertyName is null or empty, it behaves same as
  1537. {@link #dumpConfiguration(Configuration, Writer)}, the
  1538. output would be,
  1539. <pre>
  1540. { "properties" :
  1541. [ { key : "key1",
  1542. value : "value1",
  1543. isFinal : "key1.isFinal",
  1544. resource : "key1.resource" },
  1545. { key : "key2",
  1546. value : "value2",
  1547. isFinal : "ke2.isFinal",
  1548. resource : "key2.resource" }
  1549. ]
  1550. }
  1551. </pre>
  1552. </li>
  1553. <li>
  1554. When propertyName is not empty, and the property is not
  1555. found in the configuration, this method will throw an
  1556. {@link IllegalArgumentException}.
  1557. </li>
  1558. </ul>
  1559. <p>
  1560. @param config the configuration
  1561. @param propertyName property name
  1562. @param out the Writer to write to
  1563. @throws IOException
  1564. @throws IllegalArgumentException when property name is not
  1565. empty and the property is not found in configuration]]>
  1566. </doc>
  1567. </method>
  1568. <method name="dumpConfiguration"
  1569. abstract="false" native="false" synchronized="false"
  1570. static="true" final="false" visibility="public"
  1571. deprecated="not deprecated">
  1572. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1573. <param name="out" type="java.io.Writer"/>
  1574. <exception name="IOException" type="java.io.IOException"/>
  1575. <doc>
  1576. <![CDATA[Writes out all properties and their attributes (final and resource) to
  1577. the given {@link Writer}, the format of the output would be,
  1578. <pre>
  1579. { "properties" :
  1580. [ { key : "key1",
  1581. value : "value1",
  1582. isFinal : "key1.isFinal",
  1583. resource : "key1.resource" },
  1584. { key : "key2",
  1585. value : "value2",
  1586. isFinal : "ke2.isFinal",
  1587. resource : "key2.resource" }
  1588. ]
  1589. }
  1590. </pre>
  1591. It does not output the properties of the configuration object which
  1592. is loaded from an input stream.
  1593. <p>
  1594. @param config the configuration
  1595. @param out the Writer to write to
  1596. @throws IOException]]>
  1597. </doc>
  1598. </method>
  1599. <method name="getClassLoader" return="java.lang.ClassLoader"
  1600. abstract="false" native="false" synchronized="false"
  1601. static="false" final="false" visibility="public"
  1602. deprecated="not deprecated">
  1603. <doc>
  1604. <![CDATA[Get the {@link ClassLoader} for this job.
  1605. @return the correct class loader.]]>
  1606. </doc>
  1607. </method>
  1608. <method name="setClassLoader"
  1609. abstract="false" native="false" synchronized="false"
  1610. static="false" final="false" visibility="public"
  1611. deprecated="not deprecated">
  1612. <param name="classLoader" type="java.lang.ClassLoader"/>
  1613. <doc>
  1614. <![CDATA[Set the class loader that will be used to load the various objects.
  1615. @param classLoader the new class loader.]]>
  1616. </doc>
  1617. </method>
  1618. <method name="toString" return="java.lang.String"
  1619. abstract="false" native="false" synchronized="false"
  1620. static="false" final="false" visibility="public"
  1621. deprecated="not deprecated">
  1622. </method>
  1623. <method name="setQuietMode"
  1624. abstract="false" native="false" synchronized="true"
  1625. static="false" final="false" visibility="public"
  1626. deprecated="not deprecated">
  1627. <param name="quietmode" type="boolean"/>
  1628. <doc>
  1629. <![CDATA[Set the quietness-mode.
  1630. In the quiet-mode, error and informational messages might not be logged.
  1631. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1632. to turn it off.]]>
  1633. </doc>
  1634. </method>
  1635. <method name="main"
  1636. abstract="false" native="false" synchronized="false"
  1637. static="true" final="false" visibility="public"
  1638. deprecated="not deprecated">
  1639. <param name="args" type="java.lang.String[]"/>
  1640. <exception name="Exception" type="java.lang.Exception"/>
  1641. <doc>
  1642. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1643. </doc>
  1644. </method>
  1645. <method name="readFields"
  1646. abstract="false" native="false" synchronized="false"
  1647. static="false" final="false" visibility="public"
  1648. deprecated="not deprecated">
  1649. <param name="in" type="java.io.DataInput"/>
  1650. <exception name="IOException" type="java.io.IOException"/>
  1651. </method>
  1652. <method name="write"
  1653. abstract="false" native="false" synchronized="false"
  1654. static="false" final="false" visibility="public"
  1655. deprecated="not deprecated">
  1656. <param name="out" type="java.io.DataOutput"/>
  1657. <exception name="IOException" type="java.io.IOException"/>
  1658. </method>
  1659. <method name="getValByRegex" return="java.util.Map"
  1660. abstract="false" native="false" synchronized="false"
  1661. static="false" final="false" visibility="public"
  1662. deprecated="not deprecated">
  1663. <param name="regex" type="java.lang.String"/>
  1664. <doc>
  1665. <![CDATA[get keys matching the the regex
  1666. @param regex
  1667. @return {@literal Map<String,String>} with matching keys]]>
  1668. </doc>
  1669. </method>
  1670. <method name="dumpDeprecatedKeys"
  1671. abstract="false" native="false" synchronized="false"
  1672. static="true" final="false" visibility="public"
  1673. deprecated="not deprecated">
  1674. </method>
  1675. <method name="hasWarnedDeprecation" return="boolean"
  1676. abstract="false" native="false" synchronized="false"
  1677. static="true" final="false" visibility="public"
  1678. deprecated="not deprecated">
  1679. <param name="name" type="java.lang.String"/>
  1680. <doc>
  1681. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1682. deprecated then always return false]]>
  1683. </doc>
  1684. </method>
  1685. <method name="getAllPropertiesByTag" 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="tag" type="java.lang.String"/>
  1690. <doc>
  1691. <![CDATA[Get all properties belonging to tag.
  1692. @param tag tag
  1693. @return Properties with matching tag]]>
  1694. </doc>
  1695. </method>
  1696. <method name="getAllPropertiesByTags" return="java.util.Properties"
  1697. abstract="false" native="false" synchronized="false"
  1698. static="false" final="false" visibility="public"
  1699. deprecated="not deprecated">
  1700. <param name="tagList" type="java.util.List"/>
  1701. <doc>
  1702. <![CDATA[Get all properties belonging to list of input tags. Calls
  1703. getAllPropertiesByTag internally.
  1704. @param tagList list of input tags
  1705. @return Properties with matching tags]]>
  1706. </doc>
  1707. </method>
  1708. <method name="isPropertyTag" return="boolean"
  1709. abstract="false" native="false" synchronized="false"
  1710. static="false" final="false" visibility="public"
  1711. deprecated="not deprecated">
  1712. <param name="tagStr" type="java.lang.String"/>
  1713. <doc>
  1714. <![CDATA[Get Property tag Enum corresponding to given source.
  1715. @param tagStr String representation of Enum
  1716. @return true if tagStr is a valid tag]]>
  1717. </doc>
  1718. </method>
  1719. <doc>
  1720. <![CDATA[Provides access to configuration parameters.
  1721. <h3 id="Resources">Resources</h3>
  1722. <p>Configurations are specified by resources. A resource contains a set of
  1723. name/value pairs as XML data. Each resource is named by either a
  1724. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1725. then the classpath is examined for a file with that name. If named by a
  1726. <code>Path</code>, then the local filesystem is examined directly, without
  1727. referring to the classpath.
  1728. <p>Unless explicitly turned off, Hadoop by default specifies two
  1729. resources, loaded in-order from the classpath: <ol>
  1730. <li><tt>
  1731. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1732. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1733. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1734. installation.</li>
  1735. </ol>
  1736. Applications may add additional resources, which are loaded
  1737. subsequent to these resources in the order they are added.
  1738. <h4 id="FinalParams">Final Parameters</h4>
  1739. <p>Configuration parameters may be declared <i>final</i>.
  1740. Once a resource declares a value final, no subsequently-loaded
  1741. resource can alter that value.
  1742. For example, one might define a final parameter with:
  1743. <pre><code>
  1744. &lt;property&gt;
  1745. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1746. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1747. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1748. &lt;/property&gt;</code></pre>
  1749. Administrators typically define parameters as final in
  1750. <tt>core-site.xml</tt> for values that user applications may not alter.
  1751. <h4 id="VariableExpansion">Variable Expansion</h4>
  1752. <p>Value strings are first processed for <i>variable expansion</i>. The
  1753. available properties are:<ol>
  1754. <li>Other properties defined in this Configuration; and, if a name is
  1755. undefined here,</li>
  1756. <li>Environment variables in {@link System#getenv()} if a name starts with
  1757. "env.", or</li>
  1758. <li>Properties in {@link System#getProperties()}.</li>
  1759. </ol>
  1760. <p>For example, if a configuration resource contains the following property
  1761. definitions:
  1762. <pre><code>
  1763. &lt;property&gt;
  1764. &lt;name&gt;basedir&lt;/name&gt;
  1765. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1766. &lt;/property&gt;
  1767. &lt;property&gt;
  1768. &lt;name&gt;tempdir&lt;/name&gt;
  1769. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1770. &lt;/property&gt;
  1771. &lt;property&gt;
  1772. &lt;name&gt;otherdir&lt;/name&gt;
  1773. &lt;value&gt;${<i>env.BASE_DIR</i>}/other&lt;/value&gt;
  1774. &lt;/property&gt;
  1775. </code></pre>
  1776. <p>When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1777. will be resolved to another property in this Configuration, while
  1778. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1779. of the System property with that name.
  1780. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1781. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1782. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1783. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1784. or its value is empty.
  1785. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1786. <p>By default, warnings will be given to any deprecated configuration
  1787. parameters and these are suppressible by configuring
  1788. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1789. log4j.properties file.
  1790. <h4 id="Tags">Tags</h4>
  1791. <p>Optionally we can tag related properties together by using tag
  1792. attributes. System tags are defined by hadoop.tags.system property. Users
  1793. can define there own custom tags in hadoop.tags.custom property.
  1794. <p>For example, we can tag existing property as:
  1795. <pre><code>
  1796. &lt;property&gt;
  1797. &lt;name&gt;dfs.replication&lt;/name&gt;
  1798. &lt;value&gt;3&lt;/value&gt;
  1799. &lt;tag&gt;HDFS,REQUIRED&lt;/tag&gt;
  1800. &lt;/property&gt;
  1801. &lt;property&gt;
  1802. &lt;name&gt;dfs.data.transfer.protection&lt;/name&gt;
  1803. &lt;value&gt;3&lt;/value&gt;
  1804. &lt;tag&gt;HDFS,SECURITY&lt;/tag&gt;
  1805. &lt;/property&gt;
  1806. </code></pre>
  1807. <p> Properties marked with tags can be retrieved with <tt>conf
  1808. .getAllPropertiesByTag("HDFS")</tt> or <tt>conf.getAllPropertiesByTags
  1809. (Arrays.asList("YARN","SECURITY"))</tt>.</p>]]>
  1810. </doc>
  1811. </class>
  1812. <!-- end class org.apache.hadoop.conf.Configuration -->
  1813. <!-- start class org.apache.hadoop.conf.Configured -->
  1814. <class name="Configured" extends="java.lang.Object"
  1815. abstract="false"
  1816. static="false" final="false" visibility="public"
  1817. deprecated="not deprecated">
  1818. <implements name="org.apache.hadoop.conf.Configurable"/>
  1819. <constructor name="Configured"
  1820. static="false" final="false" visibility="public"
  1821. deprecated="not deprecated">
  1822. <doc>
  1823. <![CDATA[Construct a Configured.]]>
  1824. </doc>
  1825. </constructor>
  1826. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1827. static="false" final="false" visibility="public"
  1828. deprecated="not deprecated">
  1829. <doc>
  1830. <![CDATA[Construct a Configured.]]>
  1831. </doc>
  1832. </constructor>
  1833. <method name="setConf"
  1834. abstract="false" native="false" synchronized="false"
  1835. static="false" final="false" visibility="public"
  1836. deprecated="not deprecated">
  1837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1838. </method>
  1839. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1840. abstract="false" native="false" synchronized="false"
  1841. static="false" final="false" visibility="public"
  1842. deprecated="not deprecated">
  1843. </method>
  1844. <doc>
  1845. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1846. </doc>
  1847. </class>
  1848. <!-- end class org.apache.hadoop.conf.Configured -->
  1849. <doc>
  1850. <![CDATA[Configuration of system parameters.]]>
  1851. </doc>
  1852. </package>
  1853. <package name="org.apache.hadoop.crypto">
  1854. </package>
  1855. <package name="org.apache.hadoop.crypto.key">
  1856. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1857. <class name="KeyProvider" extends="java.lang.Object"
  1858. abstract="true"
  1859. static="false" final="false" visibility="public"
  1860. deprecated="not deprecated">
  1861. <implements name="java.io.Closeable"/>
  1862. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1863. static="false" final="false" visibility="public"
  1864. deprecated="not deprecated">
  1865. <doc>
  1866. <![CDATA[Constructor.
  1867. @param conf configuration for the provider]]>
  1868. </doc>
  1869. </constructor>
  1870. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="false" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <doc>
  1875. <![CDATA[Return the provider configuration.
  1876. @return the provider configuration]]>
  1877. </doc>
  1878. </method>
  1879. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1880. abstract="false" native="false" synchronized="false"
  1881. static="true" final="false" visibility="public"
  1882. deprecated="not deprecated">
  1883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1884. <doc>
  1885. <![CDATA[A helper function to create an options object.
  1886. @param conf the configuration to use
  1887. @return a new options object]]>
  1888. </doc>
  1889. </method>
  1890. <method name="isTransient" return="boolean"
  1891. abstract="false" native="false" synchronized="false"
  1892. static="false" final="false" visibility="public"
  1893. deprecated="not deprecated">
  1894. <doc>
  1895. <![CDATA[Indicates whether this provider represents a store
  1896. that is intended for transient use - such as the UserProvider
  1897. is. These providers are generally used to provide access to
  1898. keying material rather than for long term storage.
  1899. @return true if transient, false otherwise]]>
  1900. </doc>
  1901. </method>
  1902. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1903. abstract="true" native="false" synchronized="false"
  1904. static="false" final="false" visibility="public"
  1905. deprecated="not deprecated">
  1906. <param name="versionName" type="java.lang.String"/>
  1907. <exception name="IOException" type="java.io.IOException"/>
  1908. <doc>
  1909. <![CDATA[Get the key material for a specific version of the key. This method is used
  1910. when decrypting data.
  1911. @param versionName the name of a specific version of the key
  1912. @return the key material
  1913. @throws IOException]]>
  1914. </doc>
  1915. </method>
  1916. <method name="getKeys" return="java.util.List"
  1917. abstract="true" native="false" synchronized="false"
  1918. static="false" final="false" visibility="public"
  1919. deprecated="not deprecated">
  1920. <exception name="IOException" type="java.io.IOException"/>
  1921. <doc>
  1922. <![CDATA[Get the key names for all keys.
  1923. @return the list of key names
  1924. @throws IOException]]>
  1925. </doc>
  1926. </method>
  1927. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1928. abstract="false" native="false" synchronized="false"
  1929. static="false" final="false" visibility="public"
  1930. deprecated="not deprecated">
  1931. <param name="names" type="java.lang.String[]"/>
  1932. <exception name="IOException" type="java.io.IOException"/>
  1933. <doc>
  1934. <![CDATA[Get key metadata in bulk.
  1935. @param names the names of the keys to get
  1936. @throws IOException]]>
  1937. </doc>
  1938. </method>
  1939. <method name="getKeyVersions" return="java.util.List"
  1940. abstract="true" native="false" synchronized="false"
  1941. static="false" final="false" visibility="public"
  1942. deprecated="not deprecated">
  1943. <param name="name" type="java.lang.String"/>
  1944. <exception name="IOException" type="java.io.IOException"/>
  1945. <doc>
  1946. <![CDATA[Get the key material for all versions of a specific key name.
  1947. @return the list of key material
  1948. @throws IOException]]>
  1949. </doc>
  1950. </method>
  1951. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1952. abstract="false" native="false" synchronized="false"
  1953. static="false" final="false" visibility="public"
  1954. deprecated="not deprecated">
  1955. <param name="name" type="java.lang.String"/>
  1956. <exception name="IOException" type="java.io.IOException"/>
  1957. <doc>
  1958. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1959. data.
  1960. @param name the base name of the key
  1961. @return the version name of the current version of the key or null if the
  1962. key version doesn't exist
  1963. @throws IOException]]>
  1964. </doc>
  1965. </method>
  1966. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1967. abstract="true" native="false" synchronized="false"
  1968. static="false" final="false" visibility="public"
  1969. deprecated="not deprecated">
  1970. <param name="name" type="java.lang.String"/>
  1971. <exception name="IOException" type="java.io.IOException"/>
  1972. <doc>
  1973. <![CDATA[Get metadata about the key.
  1974. @param name the basename of the key
  1975. @return the key's metadata or null if the key doesn't exist
  1976. @throws IOException]]>
  1977. </doc>
  1978. </method>
  1979. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1980. abstract="true" native="false" synchronized="false"
  1981. static="false" final="false" visibility="public"
  1982. deprecated="not deprecated">
  1983. <param name="name" type="java.lang.String"/>
  1984. <param name="material" type="byte[]"/>
  1985. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1986. <exception name="IOException" type="java.io.IOException"/>
  1987. <doc>
  1988. <![CDATA[Create a new key. The given key must not already exist.
  1989. @param name the base name of the key
  1990. @param material the key material for the first version of the key.
  1991. @param options the options for the new key.
  1992. @return the version name of the first version of the key.
  1993. @throws IOException]]>
  1994. </doc>
  1995. </method>
  1996. <method name="generateKey" return="byte[]"
  1997. abstract="false" native="false" synchronized="false"
  1998. static="false" final="false" visibility="protected"
  1999. deprecated="not deprecated">
  2000. <param name="size" type="int"/>
  2001. <param name="algorithm" type="java.lang.String"/>
  2002. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2003. <doc>
  2004. <![CDATA[Generates a key material.
  2005. @param size length of the key.
  2006. @param algorithm algorithm to use for generating the key.
  2007. @return the generated key.
  2008. @throws NoSuchAlgorithmException]]>
  2009. </doc>
  2010. </method>
  2011. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2012. abstract="false" native="false" synchronized="false"
  2013. static="false" final="false" visibility="public"
  2014. deprecated="not deprecated">
  2015. <param name="name" type="java.lang.String"/>
  2016. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2017. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2018. <exception name="IOException" type="java.io.IOException"/>
  2019. <doc>
  2020. <![CDATA[Create a new key generating the material for it.
  2021. The given key must not already exist.
  2022. <p>
  2023. This implementation generates the key material and calls the
  2024. {@link #createKey(String, byte[], Options)} method.
  2025. @param name the base name of the key
  2026. @param options the options for the new key.
  2027. @return the version name of the first version of the key.
  2028. @throws IOException
  2029. @throws NoSuchAlgorithmException]]>
  2030. </doc>
  2031. </method>
  2032. <method name="deleteKey"
  2033. abstract="true" native="false" synchronized="false"
  2034. static="false" final="false" visibility="public"
  2035. deprecated="not deprecated">
  2036. <param name="name" type="java.lang.String"/>
  2037. <exception name="IOException" type="java.io.IOException"/>
  2038. <doc>
  2039. <![CDATA[Delete the given key.
  2040. @param name the name of the key to delete
  2041. @throws IOException]]>
  2042. </doc>
  2043. </method>
  2044. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2045. abstract="true" native="false" synchronized="false"
  2046. static="false" final="false" visibility="public"
  2047. deprecated="not deprecated">
  2048. <param name="name" type="java.lang.String"/>
  2049. <param name="material" type="byte[]"/>
  2050. <exception name="IOException" type="java.io.IOException"/>
  2051. <doc>
  2052. <![CDATA[Roll a new version of the given key.
  2053. @param name the basename of the key
  2054. @param material the new key material
  2055. @return the name of the new version of the key
  2056. @throws IOException]]>
  2057. </doc>
  2058. </method>
  2059. <method name="close"
  2060. abstract="false" native="false" synchronized="false"
  2061. static="false" final="false" visibility="public"
  2062. deprecated="not deprecated">
  2063. <exception name="IOException" type="java.io.IOException"/>
  2064. <doc>
  2065. <![CDATA[Can be used by implementing classes to close any resources
  2066. that require closing]]>
  2067. </doc>
  2068. </method>
  2069. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2070. abstract="false" native="false" synchronized="false"
  2071. static="false" final="false" visibility="public"
  2072. deprecated="not deprecated">
  2073. <param name="name" type="java.lang.String"/>
  2074. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2075. <exception name="IOException" type="java.io.IOException"/>
  2076. <doc>
  2077. <![CDATA[Roll a new version of the given key generating the material for it.
  2078. <p>
  2079. This implementation generates the key material and calls the
  2080. {@link #rollNewVersion(String, byte[])} method.
  2081. @param name the basename of the key
  2082. @return the name of the new version of the key
  2083. @throws IOException]]>
  2084. </doc>
  2085. </method>
  2086. <method name="invalidateCache"
  2087. abstract="false" native="false" synchronized="false"
  2088. static="false" final="false" visibility="public"
  2089. deprecated="not deprecated">
  2090. <param name="name" type="java.lang.String"/>
  2091. <exception name="IOException" type="java.io.IOException"/>
  2092. <doc>
  2093. <![CDATA[Can be used by implementing classes to invalidate the caches. This could be
  2094. used after rollNewVersion to provide a strong guarantee to return the new
  2095. version of the given key.
  2096. @param name the basename of the key
  2097. @throws IOException]]>
  2098. </doc>
  2099. </method>
  2100. <method name="flush"
  2101. abstract="true" native="false" synchronized="false"
  2102. static="false" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. <exception name="IOException" type="java.io.IOException"/>
  2105. <doc>
  2106. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  2107. @throws IOException]]>
  2108. </doc>
  2109. </method>
  2110. <method name="getBaseName" return="java.lang.String"
  2111. abstract="false" native="false" synchronized="false"
  2112. static="true" final="false" visibility="public"
  2113. deprecated="not deprecated">
  2114. <param name="versionName" type="java.lang.String"/>
  2115. <exception name="IOException" type="java.io.IOException"/>
  2116. <doc>
  2117. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  2118. "/aaa/bbb".
  2119. @param versionName the version name to split
  2120. @return the base name of the key
  2121. @throws IOException]]>
  2122. </doc>
  2123. </method>
  2124. <method name="buildVersionName" return="java.lang.String"
  2125. abstract="false" native="false" synchronized="false"
  2126. static="true" final="false" visibility="protected"
  2127. deprecated="not deprecated">
  2128. <param name="name" type="java.lang.String"/>
  2129. <param name="version" type="int"/>
  2130. <doc>
  2131. <![CDATA[Build a version string from a basename and version number. Converts
  2132. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  2133. @param name the basename of the key
  2134. @param version the version of the key
  2135. @return the versionName of the key.]]>
  2136. </doc>
  2137. </method>
  2138. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2139. abstract="false" native="false" synchronized="false"
  2140. static="true" final="false" visibility="public"
  2141. deprecated="not deprecated">
  2142. <param name="providerList" type="java.util.List"/>
  2143. <param name="keyName" type="java.lang.String"/>
  2144. <exception name="IOException" type="java.io.IOException"/>
  2145. <doc>
  2146. <![CDATA[Find the provider with the given key.
  2147. @param providerList the list of providers
  2148. @param keyName the key name we are looking for
  2149. @return the KeyProvider that has the key]]>
  2150. </doc>
  2151. </method>
  2152. <method name="needsPassword" return="boolean"
  2153. abstract="false" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <exception name="IOException" type="java.io.IOException"/>
  2157. <doc>
  2158. <![CDATA[Does this provider require a password? This means that a password is
  2159. required for normal operation, and it has not been found through normal
  2160. means. If true, the password should be provided by the caller using
  2161. setPassword().
  2162. @return Whether or not the provider requires a password
  2163. @throws IOException]]>
  2164. </doc>
  2165. </method>
  2166. <method name="noPasswordWarning" 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 a warning and instructions for supplying said password to the
  2173. provider.
  2174. @return A warning and instructions for supplying the password]]>
  2175. </doc>
  2176. </method>
  2177. <method name="noPasswordError" return="java.lang.String"
  2178. abstract="false" native="false" synchronized="false"
  2179. static="false" final="false" visibility="public"
  2180. deprecated="not deprecated">
  2181. <doc>
  2182. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2183. return an error message and instructions for supplying said password to
  2184. the provider.
  2185. @return An error message and instructions for supplying the password]]>
  2186. </doc>
  2187. </method>
  2188. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2189. transient="false" volatile="false"
  2190. static="true" final="true" visibility="public"
  2191. deprecated="not deprecated">
  2192. </field>
  2193. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2194. transient="false" volatile="false"
  2195. static="true" final="true" visibility="public"
  2196. deprecated="not deprecated">
  2197. </field>
  2198. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2199. transient="false" volatile="false"
  2200. static="true" final="true" visibility="public"
  2201. deprecated="not deprecated">
  2202. </field>
  2203. <field name="DEFAULT_BITLENGTH" type="int"
  2204. transient="false" volatile="false"
  2205. static="true" final="true" visibility="public"
  2206. deprecated="not deprecated">
  2207. </field>
  2208. <field name="JCEKS_KEY_SERIALFILTER_DEFAULT" type="java.lang.String"
  2209. transient="false" volatile="false"
  2210. static="true" final="true" visibility="public"
  2211. deprecated="not deprecated">
  2212. </field>
  2213. <field name="JCEKS_KEY_SERIAL_FILTER" type="java.lang.String"
  2214. transient="false" volatile="false"
  2215. static="true" final="true" visibility="public"
  2216. deprecated="not deprecated">
  2217. </field>
  2218. <doc>
  2219. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2220. abstraction to separate key storage from users of encryption. It
  2221. is intended to support getting or storing keys in a variety of ways,
  2222. including third party bindings.
  2223. <p>
  2224. <code>KeyProvider</code> implementations must be thread safe.]]>
  2225. </doc>
  2226. </class>
  2227. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2228. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2229. <class name="KeyProviderFactory" extends="java.lang.Object"
  2230. abstract="true"
  2231. static="false" final="false" visibility="public"
  2232. deprecated="not deprecated">
  2233. <constructor name="KeyProviderFactory"
  2234. static="false" final="false" visibility="public"
  2235. deprecated="not deprecated">
  2236. </constructor>
  2237. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2238. abstract="true" native="false" synchronized="false"
  2239. static="false" final="false" visibility="public"
  2240. deprecated="not deprecated">
  2241. <param name="providerName" type="java.net.URI"/>
  2242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2243. <exception name="IOException" type="java.io.IOException"/>
  2244. </method>
  2245. <method name="getProviders" return="java.util.List"
  2246. abstract="false" native="false" synchronized="false"
  2247. static="true" final="false" visibility="public"
  2248. deprecated="not deprecated">
  2249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2250. <exception name="IOException" type="java.io.IOException"/>
  2251. </method>
  2252. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2253. abstract="false" native="false" synchronized="false"
  2254. static="true" final="false" visibility="public"
  2255. deprecated="not deprecated">
  2256. <param name="uri" type="java.net.URI"/>
  2257. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2258. <exception name="IOException" type="java.io.IOException"/>
  2259. <doc>
  2260. <![CDATA[Create a KeyProvider based on a provided URI.
  2261. @param uri key provider URI
  2262. @param conf configuration to initialize the key provider
  2263. @return the key provider for the specified URI, or <code>NULL</code> if
  2264. a provider for the specified URI scheme could not be found.
  2265. @throws IOException thrown if the provider failed to initialize.]]>
  2266. </doc>
  2267. </method>
  2268. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2269. transient="false" volatile="false"
  2270. static="true" final="true" visibility="public"
  2271. deprecated="not deprecated">
  2272. </field>
  2273. <doc>
  2274. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2275. Configuration. It uses a service loader interface to find the available
  2276. KeyProviders and create them based on the list of URIs.]]>
  2277. </doc>
  2278. </class>
  2279. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2280. </package>
  2281. <package name="org.apache.hadoop.crypto.key.kms">
  2282. </package>
  2283. <package name="org.apache.hadoop.crypto.random">
  2284. </package>
  2285. <package name="org.apache.hadoop.fs">
  2286. <!-- start interface org.apache.hadoop.fs.Abortable -->
  2287. <interface name="Abortable" abstract="true"
  2288. static="false" final="false" visibility="public"
  2289. deprecated="not deprecated">
  2290. <method name="abort" return="org.apache.hadoop.fs.Abortable.AbortableResult"
  2291. abstract="true" native="false" synchronized="false"
  2292. static="false" final="false" visibility="public"
  2293. deprecated="not deprecated">
  2294. <doc>
  2295. <![CDATA[Abort the active operation without the output becoming visible.
  2296. This is to provide ability to cancel the write on stream; once
  2297. a stream is aborted, the write MUST NOT become visible.
  2298. @throws UnsupportedOperationException if the operation is not supported.
  2299. @return the result.]]>
  2300. </doc>
  2301. </method>
  2302. <doc>
  2303. <![CDATA[Abort data being written to a stream, so that close() does
  2304. not write the data. It is implemented by output streams in
  2305. some object stores, and passed through {@link FSDataOutputStream}.]]>
  2306. </doc>
  2307. </interface>
  2308. <!-- end interface org.apache.hadoop.fs.Abortable -->
  2309. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  2310. <class name="AbstractFileSystem" extends="java.lang.Object"
  2311. abstract="true"
  2312. static="false" final="false" visibility="public"
  2313. deprecated="not deprecated">
  2314. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  2315. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  2316. static="false" final="false" visibility="public"
  2317. deprecated="not deprecated">
  2318. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  2319. <doc>
  2320. <![CDATA[Constructor to be called by subclasses.
  2321. @param uri for this file system.
  2322. @param supportedScheme the scheme supported by the implementor
  2323. @param authorityNeeded if true then theURI must have authority, if false
  2324. then the URI must have null authority.
  2325. @throws URISyntaxException <code>uri</code> has syntax error]]>
  2326. </doc>
  2327. </constructor>
  2328. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2329. abstract="false" native="false" synchronized="false"
  2330. static="false" final="false" visibility="public"
  2331. deprecated="not deprecated">
  2332. </method>
  2333. <method name="isValidName" return="boolean"
  2334. abstract="false" native="false" synchronized="false"
  2335. static="false" final="false" visibility="public"
  2336. deprecated="not deprecated">
  2337. <param name="src" type="java.lang.String"/>
  2338. <doc>
  2339. <![CDATA[Returns true if the specified string is considered valid in the path part
  2340. of a URI by this file system. The default implementation enforces the rules
  2341. of HDFS, but subclasses may override this method to implement specific
  2342. validation rules for specific file systems.
  2343. @param src String source filename to check, path part of the URI
  2344. @return boolean true if the specified string is considered valid]]>
  2345. </doc>
  2346. </method>
  2347. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2348. abstract="false" native="false" synchronized="false"
  2349. static="true" final="false" visibility="public"
  2350. deprecated="not deprecated">
  2351. <param name="uri" type="java.net.URI"/>
  2352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2353. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2354. <doc>
  2355. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2356. conf is used to find the class name that implements the file system. The
  2357. conf is also passed to the file system for its configuration.
  2358. @param uri URI of the file system
  2359. @param conf Configuration for the file system
  2360. @return Returns the file system for the given URI
  2361. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2362. not found]]>
  2363. </doc>
  2364. </method>
  2365. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2366. abstract="false" native="false" synchronized="true"
  2367. static="true" final="false" visibility="protected"
  2368. deprecated="not deprecated">
  2369. <param name="uri" type="java.net.URI"/>
  2370. <doc>
  2371. <![CDATA[Get the statistics for a particular file system.
  2372. @param uri
  2373. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2374. part of the uri are used.
  2375. @return a statistics object]]>
  2376. </doc>
  2377. </method>
  2378. <method name="clearStatistics"
  2379. abstract="false" native="false" synchronized="true"
  2380. static="true" final="false" visibility="public"
  2381. deprecated="not deprecated">
  2382. </method>
  2383. <method name="printStatistics"
  2384. abstract="false" native="false" synchronized="true"
  2385. static="true" final="false" visibility="public"
  2386. deprecated="not deprecated">
  2387. <doc>
  2388. <![CDATA[Prints statistics for all file systems.]]>
  2389. </doc>
  2390. </method>
  2391. <method name="getAllStatistics" return="java.util.Map"
  2392. abstract="false" native="false" synchronized="true"
  2393. static="true" final="false" visibility="protected"
  2394. deprecated="not deprecated">
  2395. </method>
  2396. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2397. abstract="false" native="false" synchronized="false"
  2398. static="true" final="false" visibility="public"
  2399. deprecated="not deprecated">
  2400. <param name="uri" type="java.net.URI"/>
  2401. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2402. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2403. <doc>
  2404. <![CDATA[The main factory method for creating a file system. Get a file system for
  2405. the URI's scheme and authority. The scheme of the <code>uri</code>
  2406. determines a configuration property name,
  2407. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2408. AbstractFileSystem class.
  2409. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2410. @param uri for the file system to be created.
  2411. @param conf which is passed to the file system impl.
  2412. @return file system for the given URI.
  2413. @throws UnsupportedFileSystemException if the file system for
  2414. <code>uri</code> is not supported.]]>
  2415. </doc>
  2416. </method>
  2417. <method name="checkScheme"
  2418. abstract="false" native="false" synchronized="false"
  2419. static="false" final="false" visibility="public"
  2420. deprecated="not deprecated">
  2421. <param name="uri" type="java.net.URI"/>
  2422. <param name="supportedScheme" type="java.lang.String"/>
  2423. <doc>
  2424. <![CDATA[Check that the Uri's scheme matches
  2425. @param uri
  2426. @param supportedScheme]]>
  2427. </doc>
  2428. </method>
  2429. <method name="getUriDefaultPort" return="int"
  2430. abstract="true" native="false" synchronized="false"
  2431. static="false" final="false" visibility="public"
  2432. deprecated="not deprecated">
  2433. <doc>
  2434. <![CDATA[The default port of this file system.
  2435. @return default port of this file system's Uri scheme
  2436. A uri with a port of -1 =&gt; default port;]]>
  2437. </doc>
  2438. </method>
  2439. <method name="getUri" return="java.net.URI"
  2440. abstract="false" native="false" synchronized="false"
  2441. static="false" final="false" visibility="public"
  2442. deprecated="not deprecated">
  2443. <doc>
  2444. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2445. @return the uri of this file system.]]>
  2446. </doc>
  2447. </method>
  2448. <method name="checkPath"
  2449. abstract="false" native="false" synchronized="false"
  2450. static="false" final="false" visibility="public"
  2451. deprecated="not deprecated">
  2452. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2453. <doc>
  2454. <![CDATA[Check that a Path belongs to this FileSystem.
  2455. If the path is fully qualified URI, then its scheme and authority
  2456. matches that of this file system. Otherwise the path must be
  2457. slash-relative name.
  2458. @throws InvalidPathException if the path is invalid]]>
  2459. </doc>
  2460. </method>
  2461. <method name="getUriPath" return="java.lang.String"
  2462. abstract="false" native="false" synchronized="false"
  2463. static="false" final="false" visibility="public"
  2464. deprecated="not deprecated">
  2465. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2466. <doc>
  2467. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2468. and that the path-part is a valid name.
  2469. @param p path
  2470. @return path-part of the Path p]]>
  2471. </doc>
  2472. </method>
  2473. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2474. abstract="false" native="false" synchronized="false"
  2475. static="false" final="false" visibility="public"
  2476. deprecated="not deprecated">
  2477. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2478. <doc>
  2479. <![CDATA[Make the path fully qualified to this file system
  2480. @param path
  2481. @return the qualified path]]>
  2482. </doc>
  2483. </method>
  2484. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2485. abstract="false" native="false" synchronized="false"
  2486. static="false" final="false" visibility="public"
  2487. deprecated="not deprecated">
  2488. <doc>
  2489. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2490. that is used as the starting workingDir. For other file systems
  2491. like HDFS there is no built in notion of an initial workingDir.
  2492. @return the initial workingDir if the file system has such a notion
  2493. otherwise return a null.]]>
  2494. </doc>
  2495. </method>
  2496. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2497. abstract="false" native="false" synchronized="false"
  2498. static="false" final="false" visibility="public"
  2499. deprecated="not deprecated">
  2500. <doc>
  2501. <![CDATA[Return the current user's home directory in this file system.
  2502. The default implementation returns "/user/$USER/".
  2503. @return current user's home directory.]]>
  2504. </doc>
  2505. </method>
  2506. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2507. abstract="true" native="false" synchronized="false"
  2508. static="false" final="false" visibility="public"
  2509. deprecated="use {@link #getServerDefaults(Path)} instead">
  2510. <exception name="IOException" type="java.io.IOException"/>
  2511. <doc>
  2512. <![CDATA[Return a set of server default configuration values.
  2513. @return server default configuration values
  2514. @throws IOException an I/O error occurred
  2515. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2516. </doc>
  2517. </method>
  2518. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2519. abstract="false" native="false" synchronized="false"
  2520. static="false" final="false" visibility="public"
  2521. deprecated="not deprecated">
  2522. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2523. <exception name="IOException" type="java.io.IOException"/>
  2524. <doc>
  2525. <![CDATA[Return a set of server default configuration values based on path.
  2526. @param f path to fetch server defaults
  2527. @return server default configuration values for path
  2528. @throws IOException an I/O error occurred]]>
  2529. </doc>
  2530. </method>
  2531. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2532. abstract="false" native="false" synchronized="false"
  2533. static="false" final="false" visibility="public"
  2534. deprecated="not deprecated">
  2535. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2536. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2537. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2538. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2539. <exception name="IOException" type="java.io.IOException"/>
  2540. <doc>
  2541. <![CDATA[Return the fully-qualified path of path f resolving the path
  2542. through any internal symlinks or mount point
  2543. @param p path to be resolved
  2544. @return fully qualified path
  2545. @throws FileNotFoundException
  2546. @throws AccessControlException
  2547. @throws IOException
  2548. @throws UnresolvedLinkException if symbolic link on path cannot be
  2549. resolved internally]]>
  2550. </doc>
  2551. </method>
  2552. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2553. abstract="false" native="false" synchronized="false"
  2554. static="false" final="true" visibility="public"
  2555. deprecated="not deprecated">
  2556. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2557. <param name="createFlag" type="java.util.EnumSet"/>
  2558. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2559. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2560. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2561. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2562. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2563. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2564. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2565. <exception name="IOException" type="java.io.IOException"/>
  2566. <doc>
  2567. <![CDATA[The specification of this method matches that of
  2568. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2569. that the Path f must be fully qualified and the permission is absolute
  2570. (i.e. umask has been applied).]]>
  2571. </doc>
  2572. </method>
  2573. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2574. abstract="true" native="false" synchronized="false"
  2575. static="false" final="false" visibility="public"
  2576. deprecated="not deprecated">
  2577. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2578. <param name="flag" type="java.util.EnumSet"/>
  2579. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2580. <param name="bufferSize" type="int"/>
  2581. <param name="replication" type="short"/>
  2582. <param name="blockSize" type="long"/>
  2583. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2584. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2585. <param name="createParent" type="boolean"/>
  2586. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2587. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2588. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2589. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2590. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2591. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2592. <exception name="IOException" type="java.io.IOException"/>
  2593. <doc>
  2594. <![CDATA[The specification of this method matches that of
  2595. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2596. have been declared explicitly.]]>
  2597. </doc>
  2598. </method>
  2599. <method name="mkdir"
  2600. abstract="true" native="false" synchronized="false"
  2601. static="false" final="false" visibility="public"
  2602. deprecated="not deprecated">
  2603. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2604. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2605. <param name="createParent" type="boolean"/>
  2606. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2607. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2608. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2609. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2610. <exception name="IOException" type="java.io.IOException"/>
  2611. <doc>
  2612. <![CDATA[The specification of this method matches that of
  2613. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2614. f must be fully qualified and the permission is absolute (i.e.
  2615. umask has been applied).]]>
  2616. </doc>
  2617. </method>
  2618. <method name="delete" return="boolean"
  2619. abstract="true" native="false" synchronized="false"
  2620. static="false" final="false" visibility="public"
  2621. deprecated="not deprecated">
  2622. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2623. <param name="recursive" type="boolean"/>
  2624. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2625. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2626. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2627. <exception name="IOException" type="java.io.IOException"/>
  2628. <doc>
  2629. <![CDATA[The specification of this method matches that of
  2630. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2631. this file system.]]>
  2632. </doc>
  2633. </method>
  2634. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2635. abstract="false" native="false" synchronized="false"
  2636. static="false" final="false" visibility="public"
  2637. deprecated="not deprecated">
  2638. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2639. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2640. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2641. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2642. <exception name="IOException" type="java.io.IOException"/>
  2643. <doc>
  2644. <![CDATA[The specification of this method matches that of
  2645. {@link FileContext#open(Path)} except that Path f must be for this
  2646. file system.]]>
  2647. </doc>
  2648. </method>
  2649. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2650. abstract="true" native="false" synchronized="false"
  2651. static="false" final="false" visibility="public"
  2652. deprecated="not deprecated">
  2653. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2654. <param name="bufferSize" type="int"/>
  2655. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2656. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2657. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2658. <exception name="IOException" type="java.io.IOException"/>
  2659. <doc>
  2660. <![CDATA[The specification of this method matches that of
  2661. {@link FileContext#open(Path, int)} except that Path f must be for this
  2662. file system.]]>
  2663. </doc>
  2664. </method>
  2665. <method name="truncate" return="boolean"
  2666. abstract="false" native="false" synchronized="false"
  2667. static="false" final="false" visibility="public"
  2668. deprecated="not deprecated">
  2669. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2670. <param name="newLength" type="long"/>
  2671. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2672. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2673. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2674. <exception name="IOException" type="java.io.IOException"/>
  2675. <doc>
  2676. <![CDATA[The specification of this method matches that of
  2677. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2678. this file system.]]>
  2679. </doc>
  2680. </method>
  2681. <method name="setReplication" return="boolean"
  2682. abstract="true" native="false" synchronized="false"
  2683. static="false" final="false" visibility="public"
  2684. deprecated="not deprecated">
  2685. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2686. <param name="replication" type="short"/>
  2687. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2688. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2689. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2690. <exception name="IOException" type="java.io.IOException"/>
  2691. <doc>
  2692. <![CDATA[The specification of this method matches that of
  2693. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2694. for this file system.]]>
  2695. </doc>
  2696. </method>
  2697. <method name="rename"
  2698. abstract="false" native="false" synchronized="false"
  2699. static="false" final="true" visibility="public"
  2700. deprecated="not deprecated">
  2701. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2702. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2703. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2704. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2705. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2706. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2707. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2708. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2709. <exception name="IOException" type="java.io.IOException"/>
  2710. <doc>
  2711. <![CDATA[The specification of this method matches that of
  2712. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2713. f must be for this file system.]]>
  2714. </doc>
  2715. </method>
  2716. <method name="renameInternal"
  2717. abstract="true" native="false" synchronized="false"
  2718. static="false" final="false" visibility="public"
  2719. deprecated="not deprecated">
  2720. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2721. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2722. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2723. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2724. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2725. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2726. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2727. <exception name="IOException" type="java.io.IOException"/>
  2728. <doc>
  2729. <![CDATA[The specification of this method matches that of
  2730. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2731. f must be for this file system and NO OVERWRITE is performed.
  2732. File systems that do not have a built in overwrite need implement only this
  2733. method and can take advantage of the default impl of the other
  2734. {@link #renameInternal(Path, Path, boolean)}]]>
  2735. </doc>
  2736. </method>
  2737. <method name="renameInternal"
  2738. abstract="false" native="false" synchronized="false"
  2739. static="false" final="false" visibility="public"
  2740. deprecated="not deprecated">
  2741. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2742. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2743. <param name="overwrite" type="boolean"/>
  2744. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2745. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2746. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2747. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2748. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2749. <exception name="IOException" type="java.io.IOException"/>
  2750. <doc>
  2751. <![CDATA[The specification of this method matches that of
  2752. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2753. f must be for this file system.]]>
  2754. </doc>
  2755. </method>
  2756. <method name="supportsSymlinks" return="boolean"
  2757. abstract="false" native="false" synchronized="false"
  2758. static="false" final="false" visibility="public"
  2759. deprecated="not deprecated">
  2760. <doc>
  2761. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2762. @return true if filesystem supports symlinks]]>
  2763. </doc>
  2764. </method>
  2765. <method name="createSymlink"
  2766. abstract="false" native="false" synchronized="false"
  2767. static="false" final="false" visibility="public"
  2768. deprecated="not deprecated">
  2769. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2770. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2771. <param name="createParent" type="boolean"/>
  2772. <exception name="IOException" type="java.io.IOException"/>
  2773. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2774. <doc>
  2775. <![CDATA[The specification of this method matches that of
  2776. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2777. </doc>
  2778. </method>
  2779. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2780. abstract="false" native="false" synchronized="false"
  2781. static="false" final="false" visibility="public"
  2782. deprecated="not deprecated">
  2783. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2784. <exception name="IOException" type="java.io.IOException"/>
  2785. <doc>
  2786. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2787. {@link FSLinkResolver}, and differs from the similarly named method
  2788. {@link FileContext#getLinkTarget(Path)}.
  2789. @throws IOException subclass implementations may throw IOException]]>
  2790. </doc>
  2791. </method>
  2792. <method name="setPermission"
  2793. abstract="true" native="false" synchronized="false"
  2794. static="false" final="false" visibility="public"
  2795. deprecated="not deprecated">
  2796. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2797. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2798. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2799. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2800. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2801. <exception name="IOException" type="java.io.IOException"/>
  2802. <doc>
  2803. <![CDATA[The specification of this method matches that of
  2804. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2805. must be for this file system.]]>
  2806. </doc>
  2807. </method>
  2808. <method name="setOwner"
  2809. abstract="true" native="false" synchronized="false"
  2810. static="false" final="false" visibility="public"
  2811. deprecated="not deprecated">
  2812. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2813. <param name="username" type="java.lang.String"/>
  2814. <param name="groupname" type="java.lang.String"/>
  2815. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2816. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2817. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2818. <exception name="IOException" type="java.io.IOException"/>
  2819. <doc>
  2820. <![CDATA[The specification of this method matches that of
  2821. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2822. be for this file system.]]>
  2823. </doc>
  2824. </method>
  2825. <method name="setTimes"
  2826. abstract="true" native="false" synchronized="false"
  2827. static="false" final="false" visibility="public"
  2828. deprecated="not deprecated">
  2829. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2830. <param name="mtime" type="long"/>
  2831. <param name="atime" type="long"/>
  2832. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2833. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2834. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2835. <exception name="IOException" type="java.io.IOException"/>
  2836. <doc>
  2837. <![CDATA[The specification of this method matches that of
  2838. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2839. for this file system.]]>
  2840. </doc>
  2841. </method>
  2842. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2843. abstract="true" native="false" synchronized="false"
  2844. static="false" final="false" visibility="public"
  2845. deprecated="not deprecated">
  2846. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2847. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2848. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2849. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2850. <exception name="IOException" type="java.io.IOException"/>
  2851. <doc>
  2852. <![CDATA[The specification of this method matches that of
  2853. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2854. this file system.]]>
  2855. </doc>
  2856. </method>
  2857. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2858. abstract="true" native="false" synchronized="false"
  2859. static="false" final="false" visibility="public"
  2860. deprecated="not deprecated">
  2861. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2862. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2863. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2864. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2865. <exception name="IOException" type="java.io.IOException"/>
  2866. <doc>
  2867. <![CDATA[The specification of this method matches that of
  2868. {@link FileContext#getFileStatus(Path)}
  2869. except that an UnresolvedLinkException may be thrown if a symlink is
  2870. encountered in the path.]]>
  2871. </doc>
  2872. </method>
  2873. <method name="msync"
  2874. abstract="false" native="false" synchronized="false"
  2875. static="false" final="false" visibility="public"
  2876. deprecated="not deprecated">
  2877. <exception name="IOException" type="java.io.IOException"/>
  2878. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  2879. <doc>
  2880. <![CDATA[Synchronize client metadata state.
  2881. <p>
  2882. In some FileSystem implementations such as HDFS metadata
  2883. synchronization is essential to guarantee consistency of read requests
  2884. particularly in HA setting.
  2885. @throws IOException
  2886. @throws UnsupportedOperationException]]>
  2887. </doc>
  2888. </method>
  2889. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2890. abstract="false" native="false" synchronized="false"
  2891. static="false" final="false" visibility="public"
  2892. deprecated="not deprecated">
  2893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2894. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2895. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2896. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2897. <exception name="IOException" type="java.io.IOException"/>
  2898. <doc>
  2899. <![CDATA[The specification of this method matches that of
  2900. {@link FileContext#getFileLinkStatus(Path)}
  2901. except that an UnresolvedLinkException may be thrown if a symlink is
  2902. encountered in the path leading up to the final path component.
  2903. If the file system does not support symlinks then the behavior is
  2904. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2905. </doc>
  2906. </method>
  2907. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2908. abstract="true" native="false" synchronized="false"
  2909. static="false" final="false" visibility="public"
  2910. deprecated="not deprecated">
  2911. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2912. <param name="start" type="long"/>
  2913. <param name="len" type="long"/>
  2914. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2915. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2916. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2917. <exception name="IOException" type="java.io.IOException"/>
  2918. <doc>
  2919. <![CDATA[The specification of this method matches that of
  2920. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2921. Path f must be for this file system.]]>
  2922. </doc>
  2923. </method>
  2924. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2925. abstract="false" native="false" synchronized="false"
  2926. static="false" final="false" visibility="public"
  2927. deprecated="not deprecated">
  2928. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2929. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2930. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2931. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2932. <exception name="IOException" type="java.io.IOException"/>
  2933. <doc>
  2934. <![CDATA[The specification of this method matches that of
  2935. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2936. file system.]]>
  2937. </doc>
  2938. </method>
  2939. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2940. abstract="true" native="false" synchronized="false"
  2941. static="false" final="false" visibility="public"
  2942. deprecated="not deprecated">
  2943. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2944. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2945. <exception name="IOException" type="java.io.IOException"/>
  2946. <doc>
  2947. <![CDATA[The specification of this method matches that of
  2948. {@link FileContext#getFsStatus(Path)}.]]>
  2949. </doc>
  2950. </method>
  2951. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2952. abstract="false" native="false" synchronized="false"
  2953. static="false" final="false" visibility="public"
  2954. deprecated="not deprecated">
  2955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2956. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2957. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2958. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2959. <exception name="IOException" type="java.io.IOException"/>
  2960. <doc>
  2961. <![CDATA[The specification of this method matches that of
  2962. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2963. file system.]]>
  2964. </doc>
  2965. </method>
  2966. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2967. abstract="false" native="false" synchronized="false"
  2968. static="false" final="false" visibility="public"
  2969. deprecated="not deprecated">
  2970. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2971. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2972. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2973. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2974. <exception name="IOException" type="java.io.IOException"/>
  2975. <doc>
  2976. <![CDATA[The specification of this method matches that of
  2977. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2978. must be for this file system.
  2979. In HDFS implementation, the BlockLocation of returned LocatedFileStatus
  2980. will have different formats for replicated and erasure coded file. Please
  2981. refer to {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  2982. for more details.]]>
  2983. </doc>
  2984. </method>
  2985. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2986. abstract="true" native="false" synchronized="false"
  2987. static="false" final="false" visibility="public"
  2988. deprecated="not deprecated">
  2989. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2990. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2991. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2992. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2993. <exception name="IOException" type="java.io.IOException"/>
  2994. <doc>
  2995. <![CDATA[The specification of this method matches that of
  2996. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2997. for this file system.]]>
  2998. </doc>
  2999. </method>
  3000. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  3001. abstract="false" native="false" synchronized="false"
  3002. static="false" final="false" visibility="public"
  3003. deprecated="not deprecated">
  3004. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3005. <exception name="IOException" type="java.io.IOException"/>
  3006. <doc>
  3007. <![CDATA[@return an iterator over the corrupt files under the given path
  3008. (may contain duplicates if a file has more than one corrupt block)
  3009. @throws IOException]]>
  3010. </doc>
  3011. </method>
  3012. <method name="setVerifyChecksum"
  3013. abstract="true" native="false" synchronized="false"
  3014. static="false" final="false" visibility="public"
  3015. deprecated="not deprecated">
  3016. <param name="verifyChecksum" type="boolean"/>
  3017. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3018. <exception name="IOException" type="java.io.IOException"/>
  3019. <doc>
  3020. <![CDATA[The specification of this method matches that of
  3021. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  3022. must be for this file system.]]>
  3023. </doc>
  3024. </method>
  3025. <method name="getCanonicalServiceName" return="java.lang.String"
  3026. abstract="false" native="false" synchronized="false"
  3027. static="false" final="false" visibility="public"
  3028. deprecated="not deprecated">
  3029. <doc>
  3030. <![CDATA[Get a canonical name for this file system.
  3031. @return a URI string that uniquely identifies this file system]]>
  3032. </doc>
  3033. </method>
  3034. <method name="modifyAclEntries"
  3035. abstract="false" native="false" synchronized="false"
  3036. static="false" final="false" visibility="public"
  3037. deprecated="not deprecated">
  3038. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3039. <param name="aclSpec" type="java.util.List"/>
  3040. <exception name="IOException" type="java.io.IOException"/>
  3041. <doc>
  3042. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  3043. entries or modify the permissions on existing ACL entries. All existing
  3044. ACL entries that are not specified in this call are retained without
  3045. changes. (Modifications are merged into the current ACL.)
  3046. @param path Path to modify
  3047. @param aclSpec List{@literal <AclEntry>} describing modifications
  3048. @throws IOException if an ACL could not be modified]]>
  3049. </doc>
  3050. </method>
  3051. <method name="removeAclEntries"
  3052. abstract="false" native="false" synchronized="false"
  3053. static="false" final="false" visibility="public"
  3054. deprecated="not deprecated">
  3055. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3056. <param name="aclSpec" type="java.util.List"/>
  3057. <exception name="IOException" type="java.io.IOException"/>
  3058. <doc>
  3059. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  3060. retained.
  3061. @param path Path to modify
  3062. @param aclSpec List{@literal <AclEntry>} describing entries to remove
  3063. @throws IOException if an ACL could not be modified]]>
  3064. </doc>
  3065. </method>
  3066. <method name="removeDefaultAcl"
  3067. abstract="false" native="false" synchronized="false"
  3068. static="false" final="false" visibility="public"
  3069. deprecated="not deprecated">
  3070. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3071. <exception name="IOException" type="java.io.IOException"/>
  3072. <doc>
  3073. <![CDATA[Removes all default ACL entries from files and directories.
  3074. @param path Path to modify
  3075. @throws IOException if an ACL could not be modified]]>
  3076. </doc>
  3077. </method>
  3078. <method name="removeAcl"
  3079. abstract="false" native="false" synchronized="false"
  3080. static="false" final="false" visibility="public"
  3081. deprecated="not deprecated">
  3082. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3083. <exception name="IOException" type="java.io.IOException"/>
  3084. <doc>
  3085. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  3086. for user, group, and others are retained for compatibility with permission
  3087. bits.
  3088. @param path Path to modify
  3089. @throws IOException if an ACL could not be removed]]>
  3090. </doc>
  3091. </method>
  3092. <method name="setAcl"
  3093. abstract="false" native="false" synchronized="false"
  3094. static="false" final="false" visibility="public"
  3095. deprecated="not deprecated">
  3096. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3097. <param name="aclSpec" type="java.util.List"/>
  3098. <exception name="IOException" type="java.io.IOException"/>
  3099. <doc>
  3100. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  3101. entries.
  3102. @param path Path to modify
  3103. @param aclSpec List{@literal <AclEntry>} describing modifications, must
  3104. include entries for user, group, and others for compatibility with
  3105. permission bits.
  3106. @throws IOException if an ACL could not be modified]]>
  3107. </doc>
  3108. </method>
  3109. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  3110. abstract="false" native="false" synchronized="false"
  3111. static="false" final="false" visibility="public"
  3112. deprecated="not deprecated">
  3113. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3114. <exception name="IOException" type="java.io.IOException"/>
  3115. <doc>
  3116. <![CDATA[Gets the ACLs of files and directories.
  3117. @param path Path to get
  3118. @return RemoteIterator{@literal <AclStatus>} which returns each AclStatus
  3119. @throws IOException if an ACL could not be read]]>
  3120. </doc>
  3121. </method>
  3122. <method name="setXAttr"
  3123. abstract="false" native="false" synchronized="false"
  3124. static="false" final="false" visibility="public"
  3125. deprecated="not deprecated">
  3126. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3127. <param name="name" type="java.lang.String"/>
  3128. <param name="value" type="byte[]"/>
  3129. <exception name="IOException" type="java.io.IOException"/>
  3130. <doc>
  3131. <![CDATA[Set an xattr of a file or directory.
  3132. The name must be prefixed with the namespace followed by ".". For example,
  3133. "user.attr".
  3134. <p>
  3135. Refer to the HDFS extended attributes user documentation for details.
  3136. @param path Path to modify
  3137. @param name xattr name.
  3138. @param value xattr value.
  3139. @throws IOException]]>
  3140. </doc>
  3141. </method>
  3142. <method name="setXAttr"
  3143. abstract="false" native="false" synchronized="false"
  3144. static="false" final="false" visibility="public"
  3145. deprecated="not deprecated">
  3146. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3147. <param name="name" type="java.lang.String"/>
  3148. <param name="value" type="byte[]"/>
  3149. <param name="flag" type="java.util.EnumSet"/>
  3150. <exception name="IOException" type="java.io.IOException"/>
  3151. <doc>
  3152. <![CDATA[Set an xattr of a file or directory.
  3153. The name must be prefixed with the namespace followed by ".". For example,
  3154. "user.attr".
  3155. <p>
  3156. Refer to the HDFS extended attributes user documentation for details.
  3157. @param path Path to modify
  3158. @param name xattr name.
  3159. @param value xattr value.
  3160. @param flag xattr set flag
  3161. @throws IOException]]>
  3162. </doc>
  3163. </method>
  3164. <method name="getXAttr" return="byte[]"
  3165. abstract="false" native="false" synchronized="false"
  3166. static="false" final="false" visibility="public"
  3167. deprecated="not deprecated">
  3168. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3169. <param name="name" type="java.lang.String"/>
  3170. <exception name="IOException" type="java.io.IOException"/>
  3171. <doc>
  3172. <![CDATA[Get an xattr for a file or directory.
  3173. The name must be prefixed with the namespace followed by ".". For example,
  3174. "user.attr".
  3175. <p>
  3176. Refer to the HDFS extended attributes user documentation for details.
  3177. @param path Path to get extended attribute
  3178. @param name xattr name.
  3179. @return byte[] xattr value.
  3180. @throws IOException]]>
  3181. </doc>
  3182. </method>
  3183. <method name="getXAttrs" return="java.util.Map"
  3184. abstract="false" native="false" synchronized="false"
  3185. static="false" final="false" visibility="public"
  3186. deprecated="not deprecated">
  3187. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3188. <exception name="IOException" type="java.io.IOException"/>
  3189. <doc>
  3190. <![CDATA[Get all of the xattrs for a file or directory.
  3191. Only those xattrs for which the logged-in user has permissions to view
  3192. are returned.
  3193. <p>
  3194. Refer to the HDFS extended attributes user documentation for details.
  3195. @param path Path to get extended attributes
  3196. @return {@literal Map<String, byte[]>} describing the XAttrs of the file
  3197. or directory
  3198. @throws IOException]]>
  3199. </doc>
  3200. </method>
  3201. <method name="getXAttrs" return="java.util.Map"
  3202. abstract="false" native="false" synchronized="false"
  3203. static="false" final="false" visibility="public"
  3204. deprecated="not deprecated">
  3205. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3206. <param name="names" type="java.util.List"/>
  3207. <exception name="IOException" type="java.io.IOException"/>
  3208. <doc>
  3209. <![CDATA[Get all of the xattrs for a file or directory.
  3210. Only those xattrs for which the logged-in user has permissions to view
  3211. are returned.
  3212. <p>
  3213. Refer to the HDFS extended attributes user documentation for details.
  3214. @param path Path to get extended attributes
  3215. @param names XAttr names.
  3216. @return {@literal Map<String, byte[]>} describing the XAttrs of the file
  3217. or directory
  3218. @throws IOException]]>
  3219. </doc>
  3220. </method>
  3221. <method name="listXAttrs" return="java.util.List"
  3222. abstract="false" native="false" synchronized="false"
  3223. static="false" final="false" visibility="public"
  3224. deprecated="not deprecated">
  3225. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3226. <exception name="IOException" type="java.io.IOException"/>
  3227. <doc>
  3228. <![CDATA[Get all of the xattr names for a file or directory.
  3229. Only the xattr names for which the logged-in user has permissions to view
  3230. are returned.
  3231. <p>
  3232. Refer to the HDFS extended attributes user documentation for details.
  3233. @param path Path to get extended attributes
  3234. @return {@literal Map<String, byte[]>} describing the XAttrs of the file
  3235. or directory
  3236. @throws IOException]]>
  3237. </doc>
  3238. </method>
  3239. <method name="removeXAttr"
  3240. abstract="false" native="false" synchronized="false"
  3241. static="false" final="false" visibility="public"
  3242. deprecated="not deprecated">
  3243. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3244. <param name="name" type="java.lang.String"/>
  3245. <exception name="IOException" type="java.io.IOException"/>
  3246. <doc>
  3247. <![CDATA[Remove an xattr of a file or directory.
  3248. The name must be prefixed with the namespace followed by ".". For example,
  3249. "user.attr".
  3250. <p>
  3251. Refer to the HDFS extended attributes user documentation for details.
  3252. @param path Path to remove extended attribute
  3253. @param name xattr name
  3254. @throws IOException]]>
  3255. </doc>
  3256. </method>
  3257. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  3258. abstract="false" native="false" synchronized="false"
  3259. static="false" final="false" visibility="public"
  3260. deprecated="not deprecated">
  3261. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3262. <param name="snapshotName" type="java.lang.String"/>
  3263. <exception name="IOException" type="java.io.IOException"/>
  3264. <doc>
  3265. <![CDATA[The specification of this method matches that of
  3266. {@link FileContext#createSnapshot(Path, String)}.]]>
  3267. </doc>
  3268. </method>
  3269. <method name="renameSnapshot"
  3270. abstract="false" native="false" synchronized="false"
  3271. static="false" final="false" visibility="public"
  3272. deprecated="not deprecated">
  3273. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3274. <param name="snapshotOldName" type="java.lang.String"/>
  3275. <param name="snapshotNewName" type="java.lang.String"/>
  3276. <exception name="IOException" type="java.io.IOException"/>
  3277. <doc>
  3278. <![CDATA[The specification of this method matches that of
  3279. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  3280. </doc>
  3281. </method>
  3282. <method name="deleteSnapshot"
  3283. abstract="false" native="false" synchronized="false"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  3287. <param name="snapshotName" type="java.lang.String"/>
  3288. <exception name="IOException" type="java.io.IOException"/>
  3289. <doc>
  3290. <![CDATA[The specification of this method matches that of
  3291. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  3292. </doc>
  3293. </method>
  3294. <method name="satisfyStoragePolicy"
  3295. abstract="false" native="false" synchronized="false"
  3296. static="false" final="false" visibility="public"
  3297. deprecated="not deprecated">
  3298. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3299. <exception name="IOException" type="java.io.IOException"/>
  3300. <doc>
  3301. <![CDATA[Set the source path to satisfy storage policy.
  3302. @param path The source path referring to either a directory or a file.
  3303. @throws IOException]]>
  3304. </doc>
  3305. </method>
  3306. <method name="setStoragePolicy"
  3307. abstract="false" native="false" synchronized="false"
  3308. static="false" final="false" visibility="public"
  3309. deprecated="not deprecated">
  3310. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3311. <param name="policyName" type="java.lang.String"/>
  3312. <exception name="IOException" type="java.io.IOException"/>
  3313. <doc>
  3314. <![CDATA[Set the storage policy for a given file or directory.
  3315. @param path file or directory path.
  3316. @param policyName the name of the target storage policy. The list
  3317. of supported Storage policies can be retrieved
  3318. via {@link #getAllStoragePolicies}.]]>
  3319. </doc>
  3320. </method>
  3321. <method name="unsetStoragePolicy"
  3322. abstract="false" native="false" synchronized="false"
  3323. static="false" final="false" visibility="public"
  3324. deprecated="not deprecated">
  3325. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3326. <exception name="IOException" type="java.io.IOException"/>
  3327. <doc>
  3328. <![CDATA[Unset the storage policy set for a given file or directory.
  3329. @param src file or directory path.
  3330. @throws IOException]]>
  3331. </doc>
  3332. </method>
  3333. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  3334. abstract="false" native="false" synchronized="false"
  3335. static="false" final="false" visibility="public"
  3336. deprecated="not deprecated">
  3337. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3338. <exception name="IOException" type="java.io.IOException"/>
  3339. <doc>
  3340. <![CDATA[Retrieve the storage policy for a given file or directory.
  3341. @param src file or directory path.
  3342. @return storage policy for give file.
  3343. @throws IOException]]>
  3344. </doc>
  3345. </method>
  3346. <method name="getAllStoragePolicies" return="java.util.Collection"
  3347. abstract="false" native="false" synchronized="false"
  3348. static="false" final="false" visibility="public"
  3349. deprecated="not deprecated">
  3350. <exception name="IOException" type="java.io.IOException"/>
  3351. <doc>
  3352. <![CDATA[Retrieve all the storage policies supported by this file system.
  3353. @return all storage policies supported by this filesystem.
  3354. @throws IOException]]>
  3355. </doc>
  3356. </method>
  3357. <method name="hashCode" return="int"
  3358. abstract="false" native="false" synchronized="false"
  3359. static="false" final="false" visibility="public"
  3360. deprecated="not deprecated">
  3361. </method>
  3362. <method name="equals" return="boolean"
  3363. abstract="false" native="false" synchronized="false"
  3364. static="false" final="false" visibility="public"
  3365. deprecated="not deprecated">
  3366. <param name="other" type="java.lang.Object"/>
  3367. </method>
  3368. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  3369. abstract="false" native="false" synchronized="false"
  3370. static="false" final="false" visibility="public"
  3371. deprecated="not deprecated">
  3372. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3373. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  3374. <exception name="IOException" type="java.io.IOException"/>
  3375. <doc>
  3376. <![CDATA[Open a file with the given set of options.
  3377. The base implementation performs a blocking
  3378. call to {@link #open(Path, int)}in this call;
  3379. the actual outcome is in the returned {@code CompletableFuture}.
  3380. This avoids having to create some thread pool, while still
  3381. setting up the expectation that the {@code get()} call
  3382. is needed to evaluate the result.
  3383. @param path path to the file
  3384. @param parameters open file parameters from the builder.
  3385. @return a future which will evaluate to the opened file.
  3386. @throws IOException failure to resolve the link.
  3387. @throws IllegalArgumentException unknown mandatory key]]>
  3388. </doc>
  3389. </method>
  3390. <method name="hasPathCapability" return="boolean"
  3391. abstract="false" native="false" synchronized="false"
  3392. static="false" final="false" visibility="public"
  3393. deprecated="not deprecated">
  3394. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3395. <param name="capability" type="java.lang.String"/>
  3396. <exception name="IOException" type="java.io.IOException"/>
  3397. </method>
  3398. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  3399. abstract="false" native="false" synchronized="false"
  3400. static="false" final="false" visibility="public"
  3401. deprecated="not deprecated">
  3402. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  3403. <exception name="IOException" type="java.io.IOException"/>
  3404. <doc>
  3405. <![CDATA[Create a multipart uploader.
  3406. @param basePath file path under which all files are uploaded
  3407. @return a MultipartUploaderBuilder object to build the uploader
  3408. @throws IOException if some early checks cause IO failures.
  3409. @throws UnsupportedOperationException if support is checked early.]]>
  3410. </doc>
  3411. </method>
  3412. <method name="methodNotSupported"
  3413. abstract="false" native="false" synchronized="false"
  3414. static="false" final="true" visibility="protected"
  3415. deprecated="not deprecated">
  3416. <doc>
  3417. <![CDATA[Helper method that throws an {@link UnsupportedOperationException} for the
  3418. current {@link FileSystem} method being called.]]>
  3419. </doc>
  3420. </method>
  3421. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3422. transient="false" volatile="false"
  3423. static="false" final="false" visibility="protected"
  3424. deprecated="not deprecated">
  3425. <doc>
  3426. <![CDATA[The statistics for this file system.]]>
  3427. </doc>
  3428. </field>
  3429. <doc>
  3430. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3431. (analogous to the VFS of Unix). Applications do not access this class;
  3432. instead they access files across all file systems using {@link FileContext}.
  3433. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3434. matches the "this" file system (ie same scheme and authority)
  3435. or a Slash-relative name that is assumed to be relative
  3436. to the root of the "this" file system .]]>
  3437. </doc>
  3438. </class>
  3439. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3440. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3441. <class name="AvroFSInput" extends="java.lang.Object"
  3442. abstract="false"
  3443. static="false" final="false" visibility="public"
  3444. deprecated="not deprecated">
  3445. <implements name="java.io.Closeable"/>
  3446. <implements name="org.apache.avro.file.SeekableInput"/>
  3447. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3448. static="false" final="false" visibility="public"
  3449. deprecated="not deprecated">
  3450. <doc>
  3451. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3452. </doc>
  3453. </constructor>
  3454. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3455. static="false" final="false" visibility="public"
  3456. deprecated="not deprecated">
  3457. <exception name="IOException" type="java.io.IOException"/>
  3458. <doc>
  3459. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3460. </doc>
  3461. </constructor>
  3462. <method name="length" return="long"
  3463. abstract="false" native="false" synchronized="false"
  3464. static="false" final="false" visibility="public"
  3465. deprecated="not deprecated">
  3466. </method>
  3467. <method name="read" return="int"
  3468. abstract="false" native="false" synchronized="false"
  3469. static="false" final="false" visibility="public"
  3470. deprecated="not deprecated">
  3471. <param name="b" type="byte[]"/>
  3472. <param name="off" type="int"/>
  3473. <param name="len" type="int"/>
  3474. <exception name="IOException" type="java.io.IOException"/>
  3475. </method>
  3476. <method name="seek"
  3477. abstract="false" native="false" synchronized="false"
  3478. static="false" final="false" visibility="public"
  3479. deprecated="not deprecated">
  3480. <param name="p" type="long"/>
  3481. <exception name="IOException" type="java.io.IOException"/>
  3482. </method>
  3483. <method name="tell" return="long"
  3484. abstract="false" native="false" synchronized="false"
  3485. static="false" final="false" visibility="public"
  3486. deprecated="not deprecated">
  3487. <exception name="IOException" type="java.io.IOException"/>
  3488. </method>
  3489. <method name="close"
  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. </method>
  3495. <doc>
  3496. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3497. </doc>
  3498. </class>
  3499. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3500. <!-- start interface org.apache.hadoop.fs.BatchListingOperations -->
  3501. <interface name="BatchListingOperations" abstract="true"
  3502. static="false" final="false" visibility="public"
  3503. deprecated="not deprecated">
  3504. <method name="batchedListStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  3505. abstract="true" native="false" synchronized="false"
  3506. static="false" final="false" visibility="public"
  3507. deprecated="not deprecated">
  3508. <param name="paths" type="java.util.List"/>
  3509. <exception name="IOException" type="java.io.IOException"/>
  3510. <doc>
  3511. <![CDATA[Batched listing API that returns {@link PartialListing}s for the
  3512. passed Paths.
  3513. @param paths List of paths to list.
  3514. @return RemoteIterator that returns corresponding PartialListings.
  3515. @throws IOException failure]]>
  3516. </doc>
  3517. </method>
  3518. <method name="batchedListLocatedStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  3519. abstract="true" native="false" synchronized="false"
  3520. static="false" final="false" visibility="public"
  3521. deprecated="not deprecated">
  3522. <param name="paths" type="java.util.List"/>
  3523. <exception name="IOException" type="java.io.IOException"/>
  3524. <doc>
  3525. <![CDATA[Batched listing API that returns {@link PartialListing}s for the passed
  3526. Paths. The PartialListing will contain {@link LocatedFileStatus} entries
  3527. with locations.
  3528. @param paths List of paths to list.
  3529. @return RemoteIterator that returns corresponding PartialListings.
  3530. @throws IOException failure]]>
  3531. </doc>
  3532. </method>
  3533. <doc>
  3534. <![CDATA[Interface filesystems MAY implement to offer a batched list.
  3535. If implemented, filesystems SHOULD declare
  3536. {@link CommonPathCapabilities#FS_EXPERIMENTAL_BATCH_LISTING} to be a supported
  3537. path capability.]]>
  3538. </doc>
  3539. </interface>
  3540. <!-- end interface org.apache.hadoop.fs.BatchListingOperations -->
  3541. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3542. <class name="BlockLocation" extends="java.lang.Object"
  3543. abstract="false"
  3544. static="false" final="false" visibility="public"
  3545. deprecated="not deprecated">
  3546. <implements name="java.io.Serializable"/>
  3547. <constructor name="BlockLocation"
  3548. static="false" final="false" visibility="public"
  3549. deprecated="not deprecated">
  3550. <doc>
  3551. <![CDATA[Default Constructor.]]>
  3552. </doc>
  3553. </constructor>
  3554. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3555. static="false" final="false" visibility="public"
  3556. deprecated="not deprecated">
  3557. <doc>
  3558. <![CDATA[Copy constructor.]]>
  3559. </doc>
  3560. </constructor>
  3561. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3562. static="false" final="false" visibility="public"
  3563. deprecated="not deprecated">
  3564. <doc>
  3565. <![CDATA[Constructor with host, name, offset and length.]]>
  3566. </doc>
  3567. </constructor>
  3568. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3569. static="false" final="false" visibility="public"
  3570. deprecated="not deprecated">
  3571. <doc>
  3572. <![CDATA[Constructor with host, name, offset, length and corrupt flag.]]>
  3573. </doc>
  3574. </constructor>
  3575. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3576. static="false" final="false" visibility="public"
  3577. deprecated="not deprecated">
  3578. <doc>
  3579. <![CDATA[Constructor with host, name, network topology, offset and length.]]>
  3580. </doc>
  3581. </constructor>
  3582. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3583. static="false" final="false" visibility="public"
  3584. deprecated="not deprecated">
  3585. <doc>
  3586. <![CDATA[Constructor with host, name, network topology, offset, length
  3587. and corrupt flag.]]>
  3588. </doc>
  3589. </constructor>
  3590. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3591. static="false" final="false" visibility="public"
  3592. deprecated="not deprecated">
  3593. </constructor>
  3594. <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"
  3595. static="false" final="false" visibility="public"
  3596. deprecated="not deprecated">
  3597. </constructor>
  3598. <method name="getHosts" return="java.lang.String[]"
  3599. abstract="false" native="false" synchronized="false"
  3600. static="false" final="false" visibility="public"
  3601. deprecated="not deprecated">
  3602. <exception name="IOException" type="java.io.IOException"/>
  3603. <doc>
  3604. <![CDATA[Get the list of hosts (hostname) hosting this block.]]>
  3605. </doc>
  3606. </method>
  3607. <method name="getCachedHosts" return="java.lang.String[]"
  3608. abstract="false" native="false" synchronized="false"
  3609. static="false" final="false" visibility="public"
  3610. deprecated="not deprecated">
  3611. <doc>
  3612. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block.]]>
  3613. </doc>
  3614. </method>
  3615. <method name="getNames" return="java.lang.String[]"
  3616. abstract="false" native="false" synchronized="false"
  3617. static="false" final="false" visibility="public"
  3618. deprecated="not deprecated">
  3619. <exception name="IOException" type="java.io.IOException"/>
  3620. <doc>
  3621. <![CDATA[Get the list of names (IP:xferPort) hosting this block.]]>
  3622. </doc>
  3623. </method>
  3624. <method name="getTopologyPaths" return="java.lang.String[]"
  3625. abstract="false" native="false" synchronized="false"
  3626. static="false" final="false" visibility="public"
  3627. deprecated="not deprecated">
  3628. <exception name="IOException" type="java.io.IOException"/>
  3629. <doc>
  3630. <![CDATA[Get the list of network topology paths for each of the hosts.
  3631. The last component of the path is the "name" (IP:xferPort).]]>
  3632. </doc>
  3633. </method>
  3634. <method name="getStorageIds" return="java.lang.String[]"
  3635. abstract="false" native="false" synchronized="false"
  3636. static="false" final="false" visibility="public"
  3637. deprecated="not deprecated">
  3638. <doc>
  3639. <![CDATA[Get the storageID of each replica of the block.]]>
  3640. </doc>
  3641. </method>
  3642. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3643. abstract="false" native="false" synchronized="false"
  3644. static="false" final="false" visibility="public"
  3645. deprecated="not deprecated">
  3646. <doc>
  3647. <![CDATA[Get the storage type of each replica of the block.]]>
  3648. </doc>
  3649. </method>
  3650. <method name="getOffset" return="long"
  3651. abstract="false" native="false" synchronized="false"
  3652. static="false" final="false" visibility="public"
  3653. deprecated="not deprecated">
  3654. <doc>
  3655. <![CDATA[Get the start offset of file associated with this block.]]>
  3656. </doc>
  3657. </method>
  3658. <method name="getLength" return="long"
  3659. abstract="false" native="false" synchronized="false"
  3660. static="false" final="false" visibility="public"
  3661. deprecated="not deprecated">
  3662. <doc>
  3663. <![CDATA[Get the length of the block.]]>
  3664. </doc>
  3665. </method>
  3666. <method name="isCorrupt" return="boolean"
  3667. abstract="false" native="false" synchronized="false"
  3668. static="false" final="false" visibility="public"
  3669. deprecated="not deprecated">
  3670. <doc>
  3671. <![CDATA[Get the corrupt flag.]]>
  3672. </doc>
  3673. </method>
  3674. <method name="isStriped" return="boolean"
  3675. abstract="false" native="false" synchronized="false"
  3676. static="false" final="false" visibility="public"
  3677. deprecated="not deprecated">
  3678. <doc>
  3679. <![CDATA[Return true if the block is striped (erasure coded).]]>
  3680. </doc>
  3681. </method>
  3682. <method name="setOffset"
  3683. abstract="false" native="false" synchronized="false"
  3684. static="false" final="false" visibility="public"
  3685. deprecated="not deprecated">
  3686. <param name="offset" type="long"/>
  3687. <doc>
  3688. <![CDATA[Set the start offset of file associated with this block.]]>
  3689. </doc>
  3690. </method>
  3691. <method name="setLength"
  3692. abstract="false" native="false" synchronized="false"
  3693. static="false" final="false" visibility="public"
  3694. deprecated="not deprecated">
  3695. <param name="length" type="long"/>
  3696. <doc>
  3697. <![CDATA[Set the length of block.]]>
  3698. </doc>
  3699. </method>
  3700. <method name="setCorrupt"
  3701. abstract="false" native="false" synchronized="false"
  3702. static="false" final="false" visibility="public"
  3703. deprecated="not deprecated">
  3704. <param name="corrupt" type="boolean"/>
  3705. <doc>
  3706. <![CDATA[Set the corrupt flag.]]>
  3707. </doc>
  3708. </method>
  3709. <method name="setHosts"
  3710. abstract="false" native="false" synchronized="false"
  3711. static="false" final="false" visibility="public"
  3712. deprecated="not deprecated">
  3713. <param name="hosts" type="java.lang.String[]"/>
  3714. <exception name="IOException" type="java.io.IOException"/>
  3715. <doc>
  3716. <![CDATA[Set the hosts hosting this block.]]>
  3717. </doc>
  3718. </method>
  3719. <method name="setCachedHosts"
  3720. abstract="false" native="false" synchronized="false"
  3721. static="false" final="false" visibility="public"
  3722. deprecated="not deprecated">
  3723. <param name="cachedHosts" type="java.lang.String[]"/>
  3724. <doc>
  3725. <![CDATA[Set the hosts hosting a cached replica of this block.]]>
  3726. </doc>
  3727. </method>
  3728. <method name="setNames"
  3729. abstract="false" native="false" synchronized="false"
  3730. static="false" final="false" visibility="public"
  3731. deprecated="not deprecated">
  3732. <param name="names" type="java.lang.String[]"/>
  3733. <exception name="IOException" type="java.io.IOException"/>
  3734. <doc>
  3735. <![CDATA[Set the names (host:port) hosting this block.]]>
  3736. </doc>
  3737. </method>
  3738. <method name="setTopologyPaths"
  3739. abstract="false" native="false" synchronized="false"
  3740. static="false" final="false" visibility="public"
  3741. deprecated="not deprecated">
  3742. <param name="topologyPaths" type="java.lang.String[]"/>
  3743. <exception name="IOException" type="java.io.IOException"/>
  3744. <doc>
  3745. <![CDATA[Set the network topology paths of the hosts.]]>
  3746. </doc>
  3747. </method>
  3748. <method name="setStorageIds"
  3749. abstract="false" native="false" synchronized="false"
  3750. static="false" final="false" visibility="public"
  3751. deprecated="not deprecated">
  3752. <param name="storageIds" type="java.lang.String[]"/>
  3753. </method>
  3754. <method name="setStorageTypes"
  3755. abstract="false" native="false" synchronized="false"
  3756. static="false" final="false" visibility="public"
  3757. deprecated="not deprecated">
  3758. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3759. </method>
  3760. <method name="toString" return="java.lang.String"
  3761. abstract="false" native="false" synchronized="false"
  3762. static="false" final="false" visibility="public"
  3763. deprecated="not deprecated">
  3764. </method>
  3765. <doc>
  3766. <![CDATA[Represents the network location of a block, information about the hosts
  3767. that contain block replicas, and other block metadata (E.g. the file
  3768. offset associated with the block, length, whether it is corrupt, etc).
  3769. For a single BlockLocation, it will have different meanings for replicated
  3770. and erasure coded files.
  3771. If the file is 3-replicated, offset and length of a BlockLocation represent
  3772. the absolute value in the file and the hosts are the 3 datanodes that
  3773. holding the replicas. Here is an example:
  3774. <pre>
  3775. BlockLocation(offset: 0, length: BLOCK_SIZE,
  3776. hosts: {"host1:9866", "host2:9866, host3:9866"})
  3777. </pre>
  3778. And if the file is erasure-coded, each BlockLocation represents a logical
  3779. block groups. Value offset is the offset of a block group in the file and
  3780. value length is the total length of a block group. Hosts of a BlockLocation
  3781. are the datanodes that holding all the data blocks and parity blocks of a
  3782. block group.
  3783. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  3784. A BlockLocation example will be like:
  3785. <pre>
  3786. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  3787. "host2:9866","host3:9866","host4:9866","host5:9866"})
  3788. </pre>
  3789. Please refer to
  3790. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)} or
  3791. {@link FileContext#getFileBlockLocations(Path, long, long)}
  3792. for more examples.]]>
  3793. </doc>
  3794. </class>
  3795. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3796. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3797. <interface name="BlockStoragePolicySpi" abstract="true"
  3798. static="false" final="false" visibility="public"
  3799. deprecated="not deprecated">
  3800. <method name="getName" return="java.lang.String"
  3801. abstract="true" native="false" synchronized="false"
  3802. static="false" final="false" visibility="public"
  3803. deprecated="not deprecated">
  3804. <doc>
  3805. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3806. identified by name.
  3807. @return the name of the storage policy.]]>
  3808. </doc>
  3809. </method>
  3810. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3811. abstract="true" native="false" synchronized="false"
  3812. static="false" final="false" visibility="public"
  3813. deprecated="not deprecated">
  3814. <doc>
  3815. <![CDATA[Return the preferred storage types associated with this policy. These
  3816. storage types are used sequentially for successive block replicas.
  3817. @return preferred storage types used for placing block replicas.]]>
  3818. </doc>
  3819. </method>
  3820. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3821. abstract="true" native="false" synchronized="false"
  3822. static="false" final="false" visibility="public"
  3823. deprecated="not deprecated">
  3824. <doc>
  3825. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3826. storage types are used if the preferred storage types are not available.
  3827. @return fallback storage types for new block replicas..]]>
  3828. </doc>
  3829. </method>
  3830. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3831. abstract="true" native="false" synchronized="false"
  3832. static="false" final="false" visibility="public"
  3833. deprecated="not deprecated">
  3834. <doc>
  3835. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3836. Fallback storage types are used if the preferred storage types are not
  3837. available.
  3838. @return fallback storage types for replicating existing block replicas.]]>
  3839. </doc>
  3840. </method>
  3841. <method name="isCopyOnCreateFile" return="boolean"
  3842. abstract="true" native="false" synchronized="false"
  3843. static="false" final="false" visibility="public"
  3844. deprecated="not deprecated">
  3845. <doc>
  3846. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3847. an existing file.
  3848. @return true if the policy is inherit-only.]]>
  3849. </doc>
  3850. </method>
  3851. <doc>
  3852. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3853. storage types.]]>
  3854. </doc>
  3855. </interface>
  3856. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3857. <!-- start interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  3858. <interface name="ByteBufferPositionedReadable" abstract="true"
  3859. static="false" final="false" visibility="public"
  3860. deprecated="not deprecated">
  3861. <method name="read" return="int"
  3862. abstract="true" native="false" synchronized="false"
  3863. static="false" final="false" visibility="public"
  3864. deprecated="not deprecated">
  3865. <param name="position" type="long"/>
  3866. <param name="buf" type="java.nio.ByteBuffer"/>
  3867. <exception name="IOException" type="java.io.IOException"/>
  3868. <doc>
  3869. <![CDATA[Reads up to {@code buf.remaining()} bytes into buf from a given position
  3870. in the file and returns the number of bytes read. Callers should use
  3871. {@code buf.limit(...)} to control the size of the desired read and
  3872. {@code buf.position(...)} to control the offset into the buffer the data
  3873. should be written to.
  3874. <p>
  3875. After a successful call, {@code buf.position()} will be advanced by the
  3876. number of bytes read and {@code buf.limit()} will be unchanged.
  3877. <p>
  3878. In the case of an exception, the state of the buffer (the contents of the
  3879. buffer, the {@code buf.position()}, the {@code buf.limit()}, etc.) is
  3880. undefined, and callers should be prepared to recover from this
  3881. eventuality.
  3882. <p>
  3883. Callers should use {@link StreamCapabilities#hasCapability(String)} with
  3884. {@link StreamCapabilities#PREADBYTEBUFFER} to check if the underlying
  3885. stream supports this interface, otherwise they might get a
  3886. {@link UnsupportedOperationException}.
  3887. <p>
  3888. Implementations should treat 0-length requests as legitimate, and must not
  3889. signal an error upon their receipt.
  3890. <p>
  3891. This does not change the current offset of a file, and is thread-safe.
  3892. @param position position within file
  3893. @param buf the ByteBuffer to receive the results of the read operation.
  3894. @return the number of bytes read, possibly zero, or -1 if reached
  3895. end-of-stream
  3896. @throws IOException if there is some error performing the read]]>
  3897. </doc>
  3898. </method>
  3899. <method name="readFully"
  3900. abstract="true" native="false" synchronized="false"
  3901. static="false" final="false" visibility="public"
  3902. deprecated="not deprecated">
  3903. <param name="position" type="long"/>
  3904. <param name="buf" type="java.nio.ByteBuffer"/>
  3905. <exception name="IOException" type="java.io.IOException"/>
  3906. <doc>
  3907. <![CDATA[Reads {@code buf.remaining()} bytes into buf from a given position in
  3908. the file or until the end of the data was reached before the read
  3909. operation completed. Callers should use {@code buf.limit(...)} to
  3910. control the size of the desired read and {@code buf.position(...)} to
  3911. control the offset into the buffer the data should be written to.
  3912. <p>
  3913. This operation provides similar semantics to
  3914. {@link #read(long, ByteBuffer)}, the difference is that this method is
  3915. guaranteed to read data until the {@link ByteBuffer} is full, or until
  3916. the end of the data stream is reached.
  3917. @param position position within file
  3918. @param buf the ByteBuffer to receive the results of the read operation.
  3919. @throws IOException if there is some error performing the read
  3920. @throws EOFException the end of the data was reached before
  3921. the read operation completed
  3922. @see #read(long, ByteBuffer)]]>
  3923. </doc>
  3924. </method>
  3925. <doc>
  3926. <![CDATA[Implementers of this interface provide a positioned read API that writes to a
  3927. {@link ByteBuffer} rather than a {@code byte[]}.
  3928. @see PositionedReadable
  3929. @see ByteBufferReadable]]>
  3930. </doc>
  3931. </interface>
  3932. <!-- end interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  3933. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3934. <interface name="ByteBufferReadable" abstract="true"
  3935. static="false" final="false" visibility="public"
  3936. deprecated="not deprecated">
  3937. <method name="read" return="int"
  3938. abstract="true" native="false" synchronized="false"
  3939. static="false" final="false" visibility="public"
  3940. deprecated="not deprecated">
  3941. <param name="buf" type="java.nio.ByteBuffer"/>
  3942. <exception name="IOException" type="java.io.IOException"/>
  3943. <doc>
  3944. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3945. buf.limit(..) to control the size of the desired read.
  3946. <p>
  3947. After a successful call, {@code buf.position()} will be advanced by the
  3948. number of bytes read and {@code buf.limit()} will be unchanged.
  3949. <p>
  3950. In the case of an exception, the state of the buffer (the contents of the
  3951. buffer, the {@code buf.position()}, the {@code buf.limit()}, etc.) is
  3952. undefined, and callers should be prepared to recover from this
  3953. eventuality.
  3954. <p>
  3955. Callers should use {@link StreamCapabilities#hasCapability(String)} with
  3956. {@link StreamCapabilities#READBYTEBUFFER} to check if the underlying
  3957. stream supports this interface, otherwise they might get a
  3958. {@link UnsupportedOperationException}.
  3959. <p>
  3960. Implementations should treat 0-length requests as legitimate, and must not
  3961. signal an error upon their receipt.
  3962. @param buf
  3963. the ByteBuffer to receive the results of the read operation.
  3964. @return the number of bytes read, possibly zero, or -1 if
  3965. reach end-of-stream
  3966. @throws IOException
  3967. if there is some error performing the read]]>
  3968. </doc>
  3969. </method>
  3970. <doc>
  3971. <![CDATA[Implementers of this interface provide a read API that writes to a
  3972. ByteBuffer, not a byte[].]]>
  3973. </doc>
  3974. </interface>
  3975. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3976. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3977. <interface name="CanSetDropBehind" abstract="true"
  3978. static="false" final="false" visibility="public"
  3979. deprecated="not deprecated">
  3980. <method name="setDropBehind"
  3981. abstract="true" native="false" synchronized="false"
  3982. static="false" final="false" visibility="public"
  3983. deprecated="not deprecated">
  3984. <param name="dropCache" type="java.lang.Boolean"/>
  3985. <exception name="IOException" type="java.io.IOException"/>
  3986. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3987. <doc>
  3988. <![CDATA[Configure whether the stream should drop the cache.
  3989. @param dropCache Whether to drop the cache. null means to use the
  3990. default value.
  3991. @throws IOException If there was an error changing the dropBehind
  3992. setting.
  3993. UnsupportedOperationException If this stream doesn't support
  3994. setting the drop-behind.]]>
  3995. </doc>
  3996. </method>
  3997. </interface>
  3998. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3999. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  4000. <interface name="CanSetReadahead" abstract="true"
  4001. static="false" final="false" visibility="public"
  4002. deprecated="not deprecated">
  4003. <method name="setReadahead"
  4004. abstract="true" native="false" synchronized="false"
  4005. static="false" final="false" visibility="public"
  4006. deprecated="not deprecated">
  4007. <param name="readahead" type="java.lang.Long"/>
  4008. <exception name="IOException" type="java.io.IOException"/>
  4009. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4010. <doc>
  4011. <![CDATA[Set the readahead on this stream.
  4012. @param readahead The readahead to use. null means to use the default.
  4013. @throws IOException If there was an error changing the dropBehind
  4014. setting.
  4015. UnsupportedOperationException If this stream doesn't support
  4016. setting readahead.]]>
  4017. </doc>
  4018. </method>
  4019. </interface>
  4020. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  4021. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  4022. <interface name="CanUnbuffer" abstract="true"
  4023. static="false" final="false" visibility="public"
  4024. deprecated="not deprecated">
  4025. <method name="unbuffer"
  4026. abstract="true" native="false" synchronized="false"
  4027. static="false" final="false" visibility="public"
  4028. deprecated="not deprecated">
  4029. <doc>
  4030. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  4031. held by the stream, if possible.]]>
  4032. </doc>
  4033. </method>
  4034. <doc>
  4035. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  4036. their buffers on request.]]>
  4037. </doc>
  4038. </interface>
  4039. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  4040. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  4041. <class name="ChecksumException" extends="java.io.IOException"
  4042. abstract="false"
  4043. static="false" final="false" visibility="public"
  4044. deprecated="not deprecated">
  4045. <constructor name="ChecksumException" type="java.lang.String, long"
  4046. static="false" final="false" visibility="public"
  4047. deprecated="not deprecated">
  4048. </constructor>
  4049. <method name="getPos" return="long"
  4050. abstract="false" native="false" synchronized="false"
  4051. static="false" final="false" visibility="public"
  4052. deprecated="not deprecated">
  4053. </method>
  4054. <doc>
  4055. <![CDATA[Thrown for checksum errors.]]>
  4056. </doc>
  4057. </class>
  4058. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  4059. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  4060. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  4061. abstract="true"
  4062. static="false" final="false" visibility="public"
  4063. deprecated="not deprecated">
  4064. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4065. static="false" final="false" visibility="public"
  4066. deprecated="not deprecated">
  4067. </constructor>
  4068. <method name="getApproxChkSumLength" return="double"
  4069. abstract="false" native="false" synchronized="false"
  4070. static="true" final="false" visibility="public"
  4071. deprecated="not deprecated">
  4072. <param name="size" type="long"/>
  4073. </method>
  4074. <method name="setConf"
  4075. abstract="false" native="false" synchronized="false"
  4076. static="false" final="false" visibility="public"
  4077. deprecated="not deprecated">
  4078. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4079. </method>
  4080. <method name="setVerifyChecksum"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="false" final="false" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="verifyChecksum" type="boolean"/>
  4085. <doc>
  4086. <![CDATA[Set whether to verify checksum.]]>
  4087. </doc>
  4088. </method>
  4089. <method name="setWriteChecksum"
  4090. abstract="false" native="false" synchronized="false"
  4091. static="false" final="false" visibility="public"
  4092. deprecated="not deprecated">
  4093. <param name="writeChecksum" type="boolean"/>
  4094. </method>
  4095. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  4096. abstract="false" native="false" synchronized="false"
  4097. static="false" final="false" visibility="public"
  4098. deprecated="not deprecated">
  4099. <doc>
  4100. <![CDATA[get the raw file system]]>
  4101. </doc>
  4102. </method>
  4103. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  4104. abstract="false" native="false" synchronized="false"
  4105. static="false" final="false" visibility="public"
  4106. deprecated="not deprecated">
  4107. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4108. <doc>
  4109. <![CDATA[Return the name of the checksum file associated with a file.]]>
  4110. </doc>
  4111. </method>
  4112. <method name="isChecksumFile" return="boolean"
  4113. abstract="false" native="false" synchronized="false"
  4114. static="true" final="false" visibility="public"
  4115. deprecated="not deprecated">
  4116. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4117. <doc>
  4118. <![CDATA[Return true iff file is a checksum file name.]]>
  4119. </doc>
  4120. </method>
  4121. <method name="getChecksumFileLength" return="long"
  4122. abstract="false" native="false" synchronized="false"
  4123. static="false" final="false" visibility="public"
  4124. deprecated="not deprecated">
  4125. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4126. <param name="fileSize" type="long"/>
  4127. <doc>
  4128. <![CDATA[Return the length of the checksum file given the size of the
  4129. actual file.]]>
  4130. </doc>
  4131. </method>
  4132. <method name="getBytesPerSum" return="int"
  4133. abstract="false" native="false" synchronized="false"
  4134. static="false" final="false" visibility="public"
  4135. deprecated="not deprecated">
  4136. <doc>
  4137. <![CDATA[Return the bytes Per Checksum]]>
  4138. </doc>
  4139. </method>
  4140. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4141. abstract="false" native="false" synchronized="false"
  4142. static="false" final="false" visibility="public"
  4143. deprecated="not deprecated">
  4144. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4145. <param name="bufferSize" type="int"/>
  4146. <exception name="IOException" type="java.io.IOException"/>
  4147. <doc>
  4148. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4149. @param f the file name to open
  4150. @param bufferSize the size of the buffer to be used.]]>
  4151. </doc>
  4152. </method>
  4153. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4154. abstract="false" native="false" synchronized="false"
  4155. static="false" final="false" visibility="public"
  4156. deprecated="not deprecated">
  4157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4158. <param name="bufferSize" type="int"/>
  4159. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4160. <exception name="IOException" type="java.io.IOException"/>
  4161. </method>
  4162. <method name="truncate" return="boolean"
  4163. abstract="false" native="false" synchronized="false"
  4164. static="false" final="false" visibility="public"
  4165. deprecated="not deprecated">
  4166. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4167. <param name="newLength" type="long"/>
  4168. <exception name="IOException" type="java.io.IOException"/>
  4169. </method>
  4170. <method name="concat"
  4171. abstract="false" native="false" synchronized="false"
  4172. static="false" final="false" visibility="public"
  4173. deprecated="not deprecated">
  4174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4175. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  4176. <exception name="IOException" type="java.io.IOException"/>
  4177. </method>
  4178. <method name="getChecksumLength" return="long"
  4179. abstract="false" native="false" synchronized="false"
  4180. static="true" final="false" visibility="public"
  4181. deprecated="not deprecated">
  4182. <param name="size" type="long"/>
  4183. <param name="bytesPerSum" type="int"/>
  4184. <doc>
  4185. <![CDATA[Calculated the length of the checksum file in bytes.
  4186. @param size the length of the data file in bytes
  4187. @param bytesPerSum the number of bytes in a checksum block
  4188. @return the number of bytes in the checksum file]]>
  4189. </doc>
  4190. </method>
  4191. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4192. abstract="false" native="false" synchronized="false"
  4193. static="false" final="false" visibility="public"
  4194. deprecated="not deprecated">
  4195. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4196. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4197. <param name="overwrite" type="boolean"/>
  4198. <param name="bufferSize" type="int"/>
  4199. <param name="replication" type="short"/>
  4200. <param name="blockSize" type="long"/>
  4201. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4202. <exception name="IOException" type="java.io.IOException"/>
  4203. </method>
  4204. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  4205. abstract="false" native="false" synchronized="false"
  4206. static="false" final="false" visibility="public"
  4207. deprecated="not deprecated">
  4208. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4209. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4210. <param name="overwrite" type="boolean"/>
  4211. <param name="bufferSize" type="int"/>
  4212. <param name="replication" type="short"/>
  4213. <param name="blockSize" type="long"/>
  4214. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4215. <exception name="IOException" type="java.io.IOException"/>
  4216. </method>
  4217. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4218. abstract="false" native="false" synchronized="false"
  4219. static="false" final="false" visibility="public"
  4220. deprecated="not deprecated">
  4221. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4222. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4223. <param name="flags" type="java.util.EnumSet"/>
  4224. <param name="bufferSize" type="int"/>
  4225. <param name="replication" type="short"/>
  4226. <param name="blockSize" type="long"/>
  4227. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4228. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  4229. <exception name="IOException" type="java.io.IOException"/>
  4230. </method>
  4231. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  4232. abstract="false" native="false" synchronized="false"
  4233. static="false" final="false" visibility="public"
  4234. deprecated="not deprecated">
  4235. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4236. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4237. <param name="flags" type="java.util.EnumSet"/>
  4238. <param name="bufferSize" type="int"/>
  4239. <param name="replication" type="short"/>
  4240. <param name="blockSize" type="long"/>
  4241. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4242. <exception name="IOException" type="java.io.IOException"/>
  4243. </method>
  4244. <method name="setPermission"
  4245. abstract="false" native="false" synchronized="false"
  4246. static="false" final="false" visibility="public"
  4247. deprecated="not deprecated">
  4248. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4249. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4250. <exception name="IOException" type="java.io.IOException"/>
  4251. </method>
  4252. <method name="setOwner"
  4253. abstract="false" native="false" synchronized="false"
  4254. static="false" final="false" visibility="public"
  4255. deprecated="not deprecated">
  4256. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4257. <param name="username" type="java.lang.String"/>
  4258. <param name="groupname" type="java.lang.String"/>
  4259. <exception name="IOException" type="java.io.IOException"/>
  4260. </method>
  4261. <method name="setAcl"
  4262. abstract="false" native="false" synchronized="false"
  4263. static="false" final="false" visibility="public"
  4264. deprecated="not deprecated">
  4265. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4266. <param name="aclSpec" type="java.util.List"/>
  4267. <exception name="IOException" type="java.io.IOException"/>
  4268. </method>
  4269. <method name="modifyAclEntries"
  4270. abstract="false" native="false" synchronized="false"
  4271. static="false" final="false" visibility="public"
  4272. deprecated="not deprecated">
  4273. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4274. <param name="aclSpec" type="java.util.List"/>
  4275. <exception name="IOException" type="java.io.IOException"/>
  4276. </method>
  4277. <method name="removeAcl"
  4278. abstract="false" native="false" synchronized="false"
  4279. static="false" final="false" visibility="public"
  4280. deprecated="not deprecated">
  4281. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4282. <exception name="IOException" type="java.io.IOException"/>
  4283. </method>
  4284. <method name="removeAclEntries"
  4285. abstract="false" native="false" synchronized="false"
  4286. static="false" final="false" visibility="public"
  4287. deprecated="not deprecated">
  4288. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4289. <param name="aclSpec" type="java.util.List"/>
  4290. <exception name="IOException" type="java.io.IOException"/>
  4291. </method>
  4292. <method name="removeDefaultAcl"
  4293. abstract="false" native="false" synchronized="false"
  4294. static="false" final="false" visibility="public"
  4295. deprecated="not deprecated">
  4296. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4297. <exception name="IOException" type="java.io.IOException"/>
  4298. </method>
  4299. <method name="setReplication" return="boolean"
  4300. abstract="false" native="false" synchronized="false"
  4301. static="false" final="false" visibility="public"
  4302. deprecated="not deprecated">
  4303. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4304. <param name="replication" type="short"/>
  4305. <exception name="IOException" type="java.io.IOException"/>
  4306. <doc>
  4307. <![CDATA[Set replication for an existing file.
  4308. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  4309. @param src file name
  4310. @param replication new replication
  4311. @throws IOException
  4312. @return true if successful;
  4313. false if file does not exist or is a directory]]>
  4314. </doc>
  4315. </method>
  4316. <method name="rename" return="boolean"
  4317. abstract="false" native="false" synchronized="false"
  4318. static="false" final="false" visibility="public"
  4319. deprecated="not deprecated">
  4320. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4321. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. <doc>
  4324. <![CDATA[Rename files/dirs]]>
  4325. </doc>
  4326. </method>
  4327. <method name="delete" return="boolean"
  4328. abstract="false" native="false" synchronized="false"
  4329. static="false" final="false" visibility="public"
  4330. deprecated="not deprecated">
  4331. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4332. <param name="recursive" type="boolean"/>
  4333. <exception name="IOException" type="java.io.IOException"/>
  4334. <doc>
  4335. <![CDATA[Implement the delete(Path, boolean) in checksum
  4336. file system.]]>
  4337. </doc>
  4338. </method>
  4339. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4340. abstract="false" native="false" synchronized="false"
  4341. static="false" final="false" visibility="public"
  4342. deprecated="not deprecated">
  4343. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4344. <exception name="IOException" type="java.io.IOException"/>
  4345. <doc>
  4346. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4347. a directory.
  4348. @param f
  4349. given path
  4350. @return the statuses of the files/directories in the given path
  4351. @throws IOException]]>
  4352. </doc>
  4353. </method>
  4354. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  4355. abstract="false" native="false" synchronized="false"
  4356. static="false" final="false" visibility="public"
  4357. deprecated="not deprecated">
  4358. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4359. <exception name="IOException" type="java.io.IOException"/>
  4360. </method>
  4361. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4362. abstract="false" native="false" synchronized="false"
  4363. static="false" final="false" visibility="public"
  4364. deprecated="not deprecated">
  4365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4366. <exception name="IOException" type="java.io.IOException"/>
  4367. <doc>
  4368. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4369. a directory.
  4370. @param f
  4371. given path
  4372. @return the statuses of the files/directories in the given patch
  4373. @throws IOException]]>
  4374. </doc>
  4375. </method>
  4376. <method name="mkdirs" return="boolean"
  4377. abstract="false" native="false" synchronized="false"
  4378. static="false" final="false" visibility="public"
  4379. deprecated="not deprecated">
  4380. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4381. <exception name="IOException" type="java.io.IOException"/>
  4382. </method>
  4383. <method name="copyFromLocalFile"
  4384. abstract="false" native="false" synchronized="false"
  4385. static="false" final="false" visibility="public"
  4386. deprecated="not deprecated">
  4387. <param name="delSrc" type="boolean"/>
  4388. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4389. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4390. <exception name="IOException" type="java.io.IOException"/>
  4391. </method>
  4392. <method name="copyToLocalFile"
  4393. abstract="false" native="false" synchronized="false"
  4394. static="false" final="false" visibility="public"
  4395. deprecated="not deprecated">
  4396. <param name="delSrc" type="boolean"/>
  4397. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4398. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4399. <exception name="IOException" type="java.io.IOException"/>
  4400. <doc>
  4401. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4402. Copy it from FS control to the local dst name.]]>
  4403. </doc>
  4404. </method>
  4405. <method name="copyToLocalFile"
  4406. abstract="false" native="false" synchronized="false"
  4407. static="false" final="false" visibility="public"
  4408. deprecated="not deprecated">
  4409. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4410. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4411. <param name="copyCrc" type="boolean"/>
  4412. <exception name="IOException" type="java.io.IOException"/>
  4413. <doc>
  4414. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4415. Copy it from FS control to the local dst name.
  4416. If src and dst are directories, the copyCrc parameter
  4417. determines whether to copy CRC files.]]>
  4418. </doc>
  4419. </method>
  4420. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4421. abstract="false" native="false" synchronized="false"
  4422. static="false" final="false" visibility="public"
  4423. deprecated="not deprecated">
  4424. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4425. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4426. <exception name="IOException" type="java.io.IOException"/>
  4427. </method>
  4428. <method name="completeLocalOutput"
  4429. abstract="false" native="false" synchronized="false"
  4430. static="false" final="false" visibility="public"
  4431. deprecated="not deprecated">
  4432. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4433. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4434. <exception name="IOException" type="java.io.IOException"/>
  4435. </method>
  4436. <method name="reportChecksumFailure" return="boolean"
  4437. abstract="false" native="false" synchronized="false"
  4438. static="false" final="false" visibility="public"
  4439. deprecated="not deprecated">
  4440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4441. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4442. <param name="inPos" type="long"/>
  4443. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4444. <param name="sumsPos" type="long"/>
  4445. <doc>
  4446. <![CDATA[Report a checksum error to the file system.
  4447. @param f the file name containing the error
  4448. @param in the stream open on the file
  4449. @param inPos the position of the beginning of the bad data in the file
  4450. @param sums the stream open on the checksum file
  4451. @param sumsPos the position of the beginning of the bad data in the checksum file
  4452. @return if retry is necessary]]>
  4453. </doc>
  4454. </method>
  4455. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  4456. abstract="false" native="false" synchronized="false"
  4457. static="false" final="false" visibility="public"
  4458. deprecated="not deprecated">
  4459. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4460. <exception name="IOException" type="java.io.IOException"/>
  4461. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4462. <doc>
  4463. <![CDATA[This is overridden to ensure that this class's
  4464. {@link #openFileWithOptions}() method is called, and so ultimately
  4465. its {@link #open(Path, int)}.
  4466. {@inheritDoc}]]>
  4467. </doc>
  4468. </method>
  4469. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  4470. abstract="false" native="false" synchronized="false"
  4471. static="false" final="false" visibility="protected"
  4472. deprecated="not deprecated">
  4473. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4474. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  4475. <exception name="IOException" type="java.io.IOException"/>
  4476. <doc>
  4477. <![CDATA[Open the file as a blocking call to {@link #open(Path, int)}.
  4478. {@inheritDoc}]]>
  4479. </doc>
  4480. </method>
  4481. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  4482. abstract="false" native="false" synchronized="false"
  4483. static="false" final="false" visibility="public"
  4484. deprecated="not deprecated">
  4485. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4486. <doc>
  4487. <![CDATA[This is overridden to ensure that this class's create() method is
  4488. ultimately called.
  4489. {@inheritDoc}]]>
  4490. </doc>
  4491. </method>
  4492. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  4493. abstract="false" native="false" synchronized="false"
  4494. static="false" final="false" visibility="public"
  4495. deprecated="not deprecated">
  4496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4497. <doc>
  4498. <![CDATA[This is overridden to ensure that this class's create() method is
  4499. ultimately called.
  4500. {@inheritDoc}]]>
  4501. </doc>
  4502. </method>
  4503. <method name="hasPathCapability" return="boolean"
  4504. abstract="false" native="false" synchronized="false"
  4505. static="false" final="false" visibility="public"
  4506. deprecated="not deprecated">
  4507. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4508. <param name="capability" type="java.lang.String"/>
  4509. <exception name="IOException" type="java.io.IOException"/>
  4510. <doc>
  4511. <![CDATA[Disable those operations which the checksummed FS blocks.
  4512. {@inheritDoc}]]>
  4513. </doc>
  4514. </method>
  4515. <doc>
  4516. <![CDATA[Abstract Checksumed FileSystem.
  4517. It provide a basic implementation of a Checksumed FileSystem,
  4518. which creates a checksum file for each raw file.
  4519. It generates &amp; verifies checksums at the client side.]]>
  4520. </doc>
  4521. </class>
  4522. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4523. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4524. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4525. abstract="false"
  4526. static="false" final="false" visibility="public"
  4527. deprecated="not deprecated">
  4528. <constructor name="CommonConfigurationKeysPublic"
  4529. static="false" final="false" visibility="public"
  4530. deprecated="not deprecated">
  4531. </constructor>
  4532. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4533. transient="false" volatile="false"
  4534. static="true" final="true" visibility="public"
  4535. deprecated="not deprecated">
  4536. <doc>
  4537. <![CDATA[@see
  4538. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4539. core-default.xml</a>]]>
  4540. </doc>
  4541. </field>
  4542. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4543. transient="false" volatile="false"
  4544. static="true" final="true" visibility="public"
  4545. deprecated="not deprecated">
  4546. <doc>
  4547. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4548. </doc>
  4549. </field>
  4550. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4551. transient="false" volatile="false"
  4552. static="true" final="true" visibility="public"
  4553. deprecated="not deprecated">
  4554. <doc>
  4555. <![CDATA[@see
  4556. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4557. core-default.xml</a>]]>
  4558. </doc>
  4559. </field>
  4560. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4561. transient="false" volatile="false"
  4562. static="true" final="true" visibility="public"
  4563. deprecated="not deprecated">
  4564. <doc>
  4565. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4566. </doc>
  4567. </field>
  4568. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4569. transient="false" volatile="false"
  4570. static="true" final="true" visibility="public"
  4571. deprecated="not deprecated">
  4572. <doc>
  4573. <![CDATA[@see
  4574. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4575. core-default.xml</a>]]>
  4576. </doc>
  4577. </field>
  4578. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4579. transient="false" volatile="false"
  4580. static="true" final="true" visibility="public"
  4581. deprecated="not deprecated">
  4582. <doc>
  4583. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4584. </doc>
  4585. </field>
  4586. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4587. transient="false" volatile="false"
  4588. static="true" final="true" visibility="public"
  4589. deprecated="not deprecated">
  4590. <doc>
  4591. <![CDATA[@see
  4592. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4593. core-default.xml</a>]]>
  4594. </doc>
  4595. </field>
  4596. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4597. transient="false" volatile="false"
  4598. static="true" final="true" visibility="public"
  4599. deprecated="not deprecated">
  4600. <doc>
  4601. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4602. </doc>
  4603. </field>
  4604. <field name="FS_GETSPACEUSED_CLASSNAME" type="java.lang.String"
  4605. transient="false" volatile="false"
  4606. static="true" final="true" visibility="public"
  4607. deprecated="not deprecated">
  4608. <doc>
  4609. <![CDATA[@see
  4610. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4611. core-default.xml</a>]]>
  4612. </doc>
  4613. </field>
  4614. <field name="FS_GETSPACEUSED_JITTER_KEY" type="java.lang.String"
  4615. transient="false" volatile="false"
  4616. static="true" final="true" visibility="public"
  4617. deprecated="not deprecated">
  4618. <doc>
  4619. <![CDATA[@see
  4620. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4621. core-default.xml</a>]]>
  4622. </doc>
  4623. </field>
  4624. <field name="FS_GETSPACEUSED_JITTER_DEFAULT" type="long"
  4625. transient="false" volatile="false"
  4626. static="true" final="true" visibility="public"
  4627. deprecated="not deprecated">
  4628. <doc>
  4629. <![CDATA[Default value for FS_GETSPACEUSED_JITTER_KEY]]>
  4630. </doc>
  4631. </field>
  4632. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  4633. transient="false" volatile="false"
  4634. static="true" final="true" visibility="public"
  4635. deprecated="not deprecated">
  4636. <doc>
  4637. <![CDATA[@see
  4638. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4639. core-default.xml</a>]]>
  4640. </doc>
  4641. </field>
  4642. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4643. transient="false" volatile="false"
  4644. static="true" final="true" visibility="public"
  4645. deprecated="not deprecated">
  4646. <doc>
  4647. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4648. </doc>
  4649. </field>
  4650. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4651. transient="false" volatile="false"
  4652. static="true" final="true" visibility="public"
  4653. deprecated="not deprecated">
  4654. <doc>
  4655. <![CDATA[@see
  4656. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4657. core-default.xml</a>]]>
  4658. </doc>
  4659. </field>
  4660. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4661. transient="false" volatile="false"
  4662. static="true" final="true" visibility="public"
  4663. deprecated="not deprecated">
  4664. <doc>
  4665. <![CDATA[@see
  4666. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4667. core-default.xml</a>]]>
  4668. </doc>
  4669. </field>
  4670. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  4671. transient="false" volatile="false"
  4672. static="true" final="true" visibility="public"
  4673. deprecated="not deprecated">
  4674. <doc>
  4675. <![CDATA[@see
  4676. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4677. core-default.xml</a>]]>
  4678. </doc>
  4679. </field>
  4680. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4681. transient="false" volatile="false"
  4682. static="true" final="true" visibility="public"
  4683. deprecated="not deprecated">
  4684. <doc>
  4685. <![CDATA[@see
  4686. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4687. core-default.xml</a>]]>
  4688. </doc>
  4689. </field>
  4690. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4691. transient="false" volatile="false"
  4692. static="true" final="true" visibility="public"
  4693. deprecated="not deprecated">
  4694. </field>
  4695. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4696. transient="false" volatile="false"
  4697. static="true" final="true" visibility="public"
  4698. deprecated="not deprecated">
  4699. <doc>
  4700. <![CDATA[@see
  4701. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4702. core-default.xml</a>]]>
  4703. </doc>
  4704. </field>
  4705. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4706. transient="false" volatile="false"
  4707. static="true" final="true" visibility="public"
  4708. deprecated="not deprecated">
  4709. <doc>
  4710. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4711. </doc>
  4712. </field>
  4713. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4714. transient="false" volatile="false"
  4715. static="true" final="true" visibility="public"
  4716. deprecated="not deprecated">
  4717. <doc>
  4718. <![CDATA[Directories that cannot be removed unless empty, even by an
  4719. administrator.]]>
  4720. </doc>
  4721. </field>
  4722. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4723. transient="false" volatile="false"
  4724. static="true" final="true" visibility="public"
  4725. deprecated="not deprecated">
  4726. <doc>
  4727. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4728. </doc>
  4729. </field>
  4730. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4731. transient="false" volatile="false"
  4732. static="true" final="true" visibility="public"
  4733. deprecated="not deprecated">
  4734. <doc>
  4735. <![CDATA[@see
  4736. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4737. core-default.xml</a>]]>
  4738. </doc>
  4739. </field>
  4740. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4741. transient="false" volatile="false"
  4742. static="true" final="true" visibility="public"
  4743. deprecated="not deprecated">
  4744. <doc>
  4745. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4746. </doc>
  4747. </field>
  4748. <field name="FS_CREATION_PARALLEL_COUNT" type="java.lang.String"
  4749. transient="false" volatile="false"
  4750. static="true" final="true" visibility="public"
  4751. deprecated="not deprecated">
  4752. <doc>
  4753. <![CDATA[Number of filesystems instances can be created in parallel.
  4754. <p></p>
  4755. A higher number here does not necessarily improve performance, especially
  4756. for object stores, where multiple threads may be attempting to create an FS
  4757. instance for the same URI.
  4758. <p></p>
  4759. Default value: {@value}.]]>
  4760. </doc>
  4761. </field>
  4762. <field name="FS_CREATION_PARALLEL_COUNT_DEFAULT" type="int"
  4763. transient="false" volatile="false"
  4764. static="true" final="true" visibility="public"
  4765. deprecated="not deprecated">
  4766. <doc>
  4767. <![CDATA[Default value for {@link #FS_CREATION_PARALLEL_COUNT}.
  4768. <p></p>
  4769. Default value: {@value}.]]>
  4770. </doc>
  4771. </field>
  4772. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4773. transient="false" volatile="false"
  4774. static="true" final="true" visibility="public"
  4775. deprecated="not deprecated">
  4776. <doc>
  4777. <![CDATA[@see
  4778. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4779. core-default.xml</a>]]>
  4780. </doc>
  4781. </field>
  4782. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4783. transient="false" volatile="false"
  4784. static="true" final="true" visibility="public"
  4785. deprecated="not deprecated">
  4786. <doc>
  4787. <![CDATA[@see
  4788. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4789. core-default.xml</a>]]>
  4790. </doc>
  4791. </field>
  4792. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  4793. transient="false" volatile="false"
  4794. static="true" final="true" visibility="public"
  4795. deprecated="not deprecated">
  4796. <doc>
  4797. <![CDATA[@see
  4798. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4799. core-default.xml</a>]]>
  4800. </doc>
  4801. </field>
  4802. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4803. transient="false" volatile="false"
  4804. static="true" final="true" visibility="public"
  4805. deprecated="not deprecated">
  4806. <doc>
  4807. <![CDATA[@see
  4808. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4809. core-default.xml</a>]]>
  4810. </doc>
  4811. </field>
  4812. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4813. transient="false" volatile="false"
  4814. static="true" final="true" visibility="public"
  4815. deprecated="not deprecated">
  4816. <doc>
  4817. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4818. </doc>
  4819. </field>
  4820. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED" type="java.lang.String"
  4821. transient="false" volatile="false"
  4822. static="true" final="true" visibility="public"
  4823. deprecated="not deprecated">
  4824. <doc>
  4825. <![CDATA[@see
  4826. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4827. core-default.xml</a>]]>
  4828. </doc>
  4829. </field>
  4830. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED_DEFAULT" type="boolean"
  4831. transient="false" volatile="false"
  4832. static="true" final="true" visibility="public"
  4833. deprecated="not deprecated">
  4834. <doc>
  4835. <![CDATA[Default value for FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED.]]>
  4836. </doc>
  4837. </field>
  4838. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4839. transient="false" volatile="false"
  4840. static="true" final="true" visibility="public"
  4841. deprecated="not deprecated">
  4842. <doc>
  4843. <![CDATA[@see
  4844. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4845. core-default.xml</a>]]>
  4846. </doc>
  4847. </field>
  4848. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4849. transient="false" volatile="false"
  4850. static="true" final="true" visibility="public"
  4851. deprecated="not deprecated">
  4852. <doc>
  4853. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4854. </doc>
  4855. </field>
  4856. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4857. transient="false" volatile="false"
  4858. static="true" final="true" visibility="public"
  4859. deprecated="not deprecated">
  4860. <doc>
  4861. <![CDATA[@see
  4862. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4863. core-default.xml</a>]]>
  4864. </doc>
  4865. </field>
  4866. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4867. transient="false" volatile="false"
  4868. static="true" final="true" visibility="public"
  4869. deprecated="not deprecated">
  4870. <doc>
  4871. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4872. </doc>
  4873. </field>
  4874. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4875. transient="false" volatile="false"
  4876. static="true" final="true" visibility="public"
  4877. deprecated="not deprecated">
  4878. <doc>
  4879. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4880. </doc>
  4881. </field>
  4882. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4883. transient="false" volatile="false"
  4884. static="true" final="true" visibility="public"
  4885. deprecated="not deprecated">
  4886. <doc>
  4887. <![CDATA[@see
  4888. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4889. core-default.xml</a>]]>
  4890. </doc>
  4891. </field>
  4892. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4893. transient="false" volatile="false"
  4894. static="true" final="true" visibility="public"
  4895. deprecated="not deprecated">
  4896. <doc>
  4897. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4898. </doc>
  4899. </field>
  4900. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4901. transient="false" volatile="false"
  4902. static="true" final="true" visibility="public"
  4903. deprecated="not deprecated">
  4904. <doc>
  4905. <![CDATA[@see
  4906. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4907. core-default.xml</a>]]>
  4908. </doc>
  4909. </field>
  4910. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4911. transient="false" volatile="false"
  4912. static="true" final="true" visibility="public"
  4913. deprecated="not deprecated">
  4914. <doc>
  4915. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4916. </doc>
  4917. </field>
  4918. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4919. transient="false" volatile="false"
  4920. static="true" final="true" visibility="public"
  4921. deprecated="not deprecated">
  4922. <doc>
  4923. <![CDATA[@see
  4924. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4925. core-default.xml</a>]]>
  4926. </doc>
  4927. </field>
  4928. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4929. transient="false" volatile="false"
  4930. static="true" final="true" visibility="public"
  4931. deprecated="not deprecated">
  4932. <doc>
  4933. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4934. </doc>
  4935. </field>
  4936. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4937. transient="false" volatile="false"
  4938. static="true" final="true" visibility="public"
  4939. deprecated="not deprecated">
  4940. <doc>
  4941. <![CDATA[@see
  4942. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4943. core-default.xml</a>]]>
  4944. </doc>
  4945. </field>
  4946. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4947. transient="false" volatile="false"
  4948. static="true" final="true" visibility="public"
  4949. deprecated="not deprecated">
  4950. <doc>
  4951. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4952. </doc>
  4953. </field>
  4954. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4955. transient="false" volatile="false"
  4956. static="true" final="true" visibility="public"
  4957. deprecated="not deprecated">
  4958. <doc>
  4959. <![CDATA[@see
  4960. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4961. core-default.xml</a>]]>
  4962. </doc>
  4963. </field>
  4964. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4965. transient="false" volatile="false"
  4966. static="true" final="true" visibility="public"
  4967. deprecated="not deprecated">
  4968. <doc>
  4969. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4970. </doc>
  4971. </field>
  4972. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4973. transient="false" volatile="false"
  4974. static="true" final="true" visibility="public"
  4975. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4976. in mapred-default.xml
  4977. See https://issues.apache.org/jira/browse/HADOOP-6801
  4978. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4979. instead, see {@link #SEQ_IO_SORT_MB_KEY}.">
  4980. <doc>
  4981. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4982. in mapred-default.xml
  4983. See https://issues.apache.org/jira/browse/HADOOP-6801
  4984. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4985. instead, see {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4986. </doc>
  4987. </field>
  4988. <field name="IO_SORT_MB_DEFAULT" type="int"
  4989. transient="false" volatile="false"
  4990. static="true" final="true" visibility="public"
  4991. deprecated="not deprecated">
  4992. <doc>
  4993. <![CDATA[Default value for {@link #IO_SORT_MB_KEY}.]]>
  4994. </doc>
  4995. </field>
  4996. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4997. transient="false" volatile="false"
  4998. static="true" final="true" visibility="public"
  4999. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  5000. in mapred-default.xml
  5001. See https://issues.apache.org/jira/browse/HADOOP-6801
  5002. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  5003. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.">
  5004. <doc>
  5005. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  5006. in mapred-default.xml
  5007. See https://issues.apache.org/jira/browse/HADOOP-6801
  5008. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  5009. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  5010. </doc>
  5011. </field>
  5012. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  5013. transient="false" volatile="false"
  5014. static="true" final="true" visibility="public"
  5015. deprecated="not deprecated">
  5016. <doc>
  5017. <![CDATA[Default value for {@link #IO_SORT_FACTOR_KEY}.]]>
  5018. </doc>
  5019. </field>
  5020. <field name="SEQ_IO_SORT_MB_KEY" type="java.lang.String"
  5021. transient="false" volatile="false"
  5022. static="true" final="true" visibility="public"
  5023. deprecated="not deprecated">
  5024. <doc>
  5025. <![CDATA[@see
  5026. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5027. core-default.xml</a>]]>
  5028. </doc>
  5029. </field>
  5030. <field name="SEQ_IO_SORT_MB_DEFAULT" type="int"
  5031. transient="false" volatile="false"
  5032. static="true" final="true" visibility="public"
  5033. deprecated="not deprecated">
  5034. <doc>
  5035. <![CDATA[Default value for {@link #SEQ_IO_SORT_MB_KEY}.]]>
  5036. </doc>
  5037. </field>
  5038. <field name="SEQ_IO_SORT_FACTOR_KEY" type="java.lang.String"
  5039. transient="false" volatile="false"
  5040. static="true" final="true" visibility="public"
  5041. deprecated="not deprecated">
  5042. <doc>
  5043. <![CDATA[@see
  5044. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5045. core-default.xml</a>]]>
  5046. </doc>
  5047. </field>
  5048. <field name="SEQ_IO_SORT_FACTOR_DEFAULT" type="int"
  5049. transient="false" volatile="false"
  5050. static="true" final="true" visibility="public"
  5051. deprecated="not deprecated">
  5052. <doc>
  5053. <![CDATA[Default value for {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  5054. </doc>
  5055. </field>
  5056. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  5057. transient="false" volatile="false"
  5058. static="true" final="true" visibility="public"
  5059. deprecated="not deprecated">
  5060. <doc>
  5061. <![CDATA[@see
  5062. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5063. core-default.xml</a>]]>
  5064. </doc>
  5065. </field>
  5066. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  5067. transient="false" volatile="false"
  5068. static="true" final="true" visibility="public"
  5069. deprecated="not deprecated">
  5070. <doc>
  5071. <![CDATA[@see
  5072. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5073. core-default.xml</a>]]>
  5074. </doc>
  5075. </field>
  5076. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  5077. transient="false" volatile="false"
  5078. static="true" final="true" visibility="public"
  5079. deprecated="not deprecated">
  5080. <doc>
  5081. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  5082. </doc>
  5083. </field>
  5084. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5085. transient="false" volatile="false"
  5086. static="true" final="true" visibility="public"
  5087. deprecated="not deprecated">
  5088. <doc>
  5089. <![CDATA[@see
  5090. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5091. core-default.xml</a>]]>
  5092. </doc>
  5093. </field>
  5094. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  5095. transient="false" volatile="false"
  5096. static="true" final="true" visibility="public"
  5097. deprecated="not deprecated">
  5098. <doc>
  5099. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  5100. </doc>
  5101. </field>
  5102. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5103. transient="false" volatile="false"
  5104. static="true" final="true" visibility="public"
  5105. deprecated="not deprecated">
  5106. <doc>
  5107. <![CDATA[@see
  5108. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5109. core-default.xml</a>]]>
  5110. </doc>
  5111. </field>
  5112. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  5113. transient="false" volatile="false"
  5114. static="true" final="true" visibility="public"
  5115. deprecated="not deprecated">
  5116. <doc>
  5117. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  5118. </doc>
  5119. </field>
  5120. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  5121. transient="false" volatile="false"
  5122. static="true" final="true" visibility="public"
  5123. deprecated="not deprecated">
  5124. </field>
  5125. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  5126. transient="false" volatile="false"
  5127. static="true" final="true" visibility="public"
  5128. deprecated="not deprecated">
  5129. </field>
  5130. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  5131. transient="false" volatile="false"
  5132. static="true" final="true" visibility="public"
  5133. deprecated="not deprecated">
  5134. </field>
  5135. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  5136. transient="false" volatile="false"
  5137. static="true" final="true" visibility="public"
  5138. deprecated="not deprecated">
  5139. </field>
  5140. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  5141. transient="false" volatile="false"
  5142. static="true" final="true" visibility="public"
  5143. deprecated="not deprecated">
  5144. </field>
  5145. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  5146. transient="false" volatile="false"
  5147. static="true" final="true" visibility="public"
  5148. deprecated="not deprecated">
  5149. </field>
  5150. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  5151. transient="false" volatile="false"
  5152. static="true" final="true" visibility="public"
  5153. deprecated="not deprecated">
  5154. <doc>
  5155. <![CDATA[@see
  5156. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5157. core-default.xml</a>]]>
  5158. </doc>
  5159. </field>
  5160. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  5161. transient="false" volatile="false"
  5162. static="true" final="true" visibility="public"
  5163. deprecated="not deprecated">
  5164. <doc>
  5165. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  5166. </doc>
  5167. </field>
  5168. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  5169. transient="false" volatile="false"
  5170. static="true" final="true" visibility="public"
  5171. deprecated="not deprecated">
  5172. <doc>
  5173. <![CDATA[@see
  5174. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5175. core-default.xml</a>]]>
  5176. </doc>
  5177. </field>
  5178. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  5179. transient="false" volatile="false"
  5180. static="true" final="true" visibility="public"
  5181. deprecated="not deprecated">
  5182. <doc>
  5183. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  5184. </doc>
  5185. </field>
  5186. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" 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="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  5197. transient="false" volatile="false"
  5198. static="true" final="true" visibility="public"
  5199. deprecated="not deprecated">
  5200. <doc>
  5201. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  5202. </doc>
  5203. </field>
  5204. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  5205. transient="false" volatile="false"
  5206. static="true" final="true" visibility="public"
  5207. deprecated="not deprecated">
  5208. <doc>
  5209. <![CDATA[@see
  5210. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5211. core-default.xml</a>]]>
  5212. </doc>
  5213. </field>
  5214. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  5215. transient="false" volatile="false"
  5216. static="true" final="true" visibility="public"
  5217. deprecated="not deprecated">
  5218. <doc>
  5219. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  5220. </doc>
  5221. </field>
  5222. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  5223. transient="false" volatile="false"
  5224. static="true" final="true" visibility="public"
  5225. deprecated="not deprecated">
  5226. <doc>
  5227. <![CDATA[@see
  5228. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5229. core-default.xml</a>]]>
  5230. </doc>
  5231. </field>
  5232. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  5233. transient="false" volatile="false"
  5234. static="true" final="true" visibility="public"
  5235. deprecated="not deprecated">
  5236. <doc>
  5237. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  5238. </doc>
  5239. </field>
  5240. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  5241. transient="false" volatile="false"
  5242. static="true" final="true" visibility="public"
  5243. deprecated="not deprecated">
  5244. <doc>
  5245. <![CDATA[@see
  5246. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5247. core-default.xml</a>]]>
  5248. </doc>
  5249. </field>
  5250. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  5251. transient="false" volatile="false"
  5252. static="true" final="true" visibility="public"
  5253. deprecated="not deprecated">
  5254. <doc>
  5255. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  5256. </doc>
  5257. </field>
  5258. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  5259. transient="false" volatile="false"
  5260. static="true" final="true" visibility="public"
  5261. deprecated="not deprecated">
  5262. <doc>
  5263. <![CDATA[Enable low-latency connections from the client]]>
  5264. </doc>
  5265. </field>
  5266. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  5267. transient="false" volatile="false"
  5268. static="true" final="true" visibility="public"
  5269. deprecated="not deprecated">
  5270. <doc>
  5271. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  5272. </doc>
  5273. </field>
  5274. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  5275. transient="false" volatile="false"
  5276. static="true" final="true" visibility="public"
  5277. deprecated="not deprecated">
  5278. <doc>
  5279. <![CDATA[@see
  5280. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5281. core-default.xml</a>]]>
  5282. </doc>
  5283. </field>
  5284. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  5285. transient="false" volatile="false"
  5286. static="true" final="true" visibility="public"
  5287. deprecated="not deprecated">
  5288. <doc>
  5289. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  5290. </doc>
  5291. </field>
  5292. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  5293. transient="false" volatile="false"
  5294. static="true" final="true" visibility="public"
  5295. deprecated="not deprecated">
  5296. <doc>
  5297. <![CDATA[@see
  5298. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5299. core-default.xml</a>]]>
  5300. </doc>
  5301. </field>
  5302. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  5303. transient="false" volatile="false"
  5304. static="true" final="true" visibility="public"
  5305. deprecated="not deprecated">
  5306. <doc>
  5307. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  5308. </doc>
  5309. </field>
  5310. <field name="IPC_CLIENT_IDLETHRESHOLD_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="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  5321. transient="false" volatile="false"
  5322. static="true" final="true" visibility="public"
  5323. deprecated="not deprecated">
  5324. <doc>
  5325. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  5326. </doc>
  5327. </field>
  5328. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  5329. transient="false" volatile="false"
  5330. static="true" final="true" visibility="public"
  5331. deprecated="not deprecated">
  5332. <doc>
  5333. <![CDATA[@see
  5334. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5335. core-default.xml</a>]]>
  5336. </doc>
  5337. </field>
  5338. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  5339. transient="false" volatile="false"
  5340. static="true" final="true" visibility="public"
  5341. deprecated="not deprecated">
  5342. <doc>
  5343. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  5344. </doc>
  5345. </field>
  5346. <field name="IPC_SERVER_REUSEADDR_KEY" type="java.lang.String"
  5347. transient="false" volatile="false"
  5348. static="true" final="true" visibility="public"
  5349. deprecated="not deprecated">
  5350. <doc>
  5351. <![CDATA[@see
  5352. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5353. core-default.xml</a>]]>
  5354. </doc>
  5355. </field>
  5356. <field name="IPC_SERVER_REUSEADDR_DEFAULT" type="boolean"
  5357. transient="false" volatile="false"
  5358. static="true" final="true" visibility="public"
  5359. deprecated="not deprecated">
  5360. <doc>
  5361. <![CDATA[Default value for IPC_SERVER_REUSEADDR_KEY.]]>
  5362. </doc>
  5363. </field>
  5364. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  5365. transient="false" volatile="false"
  5366. static="true" final="true" visibility="public"
  5367. deprecated="not deprecated">
  5368. <doc>
  5369. <![CDATA[@see
  5370. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5371. core-default.xml</a>]]>
  5372. </doc>
  5373. </field>
  5374. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  5375. transient="false" volatile="false"
  5376. static="true" final="true" visibility="public"
  5377. deprecated="not deprecated">
  5378. <doc>
  5379. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  5380. </doc>
  5381. </field>
  5382. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  5383. transient="false" volatile="false"
  5384. static="true" final="true" visibility="public"
  5385. deprecated="not deprecated">
  5386. <doc>
  5387. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  5388. </doc>
  5389. </field>
  5390. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  5391. transient="false" volatile="false"
  5392. static="true" final="true" visibility="public"
  5393. deprecated="not deprecated">
  5394. </field>
  5395. <field name="IPC_SERVER_PURGE_INTERVAL_MINUTES_KEY" type="java.lang.String"
  5396. transient="false" volatile="false"
  5397. static="true" final="true" visibility="public"
  5398. deprecated="not deprecated">
  5399. </field>
  5400. <field name="IPC_SERVER_PURGE_INTERVAL_MINUTES_DEFAULT" type="int"
  5401. transient="false" volatile="false"
  5402. static="true" final="true" visibility="public"
  5403. deprecated="not deprecated">
  5404. </field>
  5405. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  5406. transient="false" volatile="false"
  5407. static="true" final="true" visibility="public"
  5408. deprecated="not deprecated">
  5409. <doc>
  5410. <![CDATA[@see
  5411. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5412. core-default.xml</a>]]>
  5413. </doc>
  5414. </field>
  5415. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  5416. transient="false" volatile="false"
  5417. static="true" final="true" visibility="public"
  5418. deprecated="not deprecated">
  5419. </field>
  5420. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  5421. transient="false" volatile="false"
  5422. static="true" final="true" visibility="public"
  5423. deprecated="not deprecated">
  5424. <doc>
  5425. <![CDATA[@see
  5426. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5427. core-default.xml</a>]]>
  5428. </doc>
  5429. </field>
  5430. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  5431. transient="false" volatile="false"
  5432. static="true" final="true" visibility="public"
  5433. deprecated="not deprecated">
  5434. <doc>
  5435. <![CDATA[@see
  5436. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5437. core-default.xml</a>]]>
  5438. </doc>
  5439. </field>
  5440. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  5441. transient="false" volatile="false"
  5442. static="true" final="true" visibility="public"
  5443. deprecated="not deprecated">
  5444. <doc>
  5445. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  5446. </doc>
  5447. </field>
  5448. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  5449. transient="false" volatile="false"
  5450. static="true" final="true" visibility="public"
  5451. deprecated="not deprecated">
  5452. <doc>
  5453. <![CDATA[@see
  5454. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5455. core-default.xml</a>]]>
  5456. </doc>
  5457. </field>
  5458. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  5459. transient="false" volatile="false"
  5460. static="true" final="true" visibility="public"
  5461. deprecated="not deprecated">
  5462. <doc>
  5463. <![CDATA[@see
  5464. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5465. core-default.xml</a>]]>
  5466. </doc>
  5467. </field>
  5468. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  5469. transient="false" volatile="false"
  5470. static="true" final="true" visibility="public"
  5471. deprecated="not deprecated">
  5472. <doc>
  5473. <![CDATA[@see
  5474. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5475. core-default.xml</a>]]>
  5476. </doc>
  5477. </field>
  5478. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5479. transient="false" volatile="false"
  5480. static="true" final="true" visibility="public"
  5481. deprecated="not deprecated">
  5482. <doc>
  5483. <![CDATA[@see
  5484. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5485. core-default.xml</a>]]>
  5486. </doc>
  5487. </field>
  5488. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5489. transient="false" volatile="false"
  5490. static="true" final="true" visibility="public"
  5491. deprecated="not deprecated">
  5492. <doc>
  5493. <![CDATA[@see
  5494. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5495. core-default.xml</a>]]>
  5496. </doc>
  5497. </field>
  5498. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5499. transient="false" volatile="false"
  5500. static="true" final="true" visibility="public"
  5501. deprecated="not deprecated">
  5502. <doc>
  5503. <![CDATA[@see
  5504. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5505. core-default.xml</a>]]>
  5506. </doc>
  5507. </field>
  5508. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5509. transient="false" volatile="false"
  5510. static="true" final="true" visibility="public"
  5511. deprecated="not deprecated">
  5512. </field>
  5513. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5514. transient="false" volatile="false"
  5515. static="true" final="true" visibility="public"
  5516. deprecated="not deprecated">
  5517. <doc>
  5518. <![CDATA[@see
  5519. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5520. core-default.xml</a>]]>
  5521. </doc>
  5522. </field>
  5523. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  5524. transient="false" volatile="false"
  5525. static="true" final="true" visibility="public"
  5526. deprecated="not deprecated">
  5527. <doc>
  5528. <![CDATA[@see
  5529. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5530. core-default.xml</a>]]>
  5531. </doc>
  5532. </field>
  5533. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  5534. transient="false" volatile="false"
  5535. static="true" final="true" visibility="public"
  5536. deprecated="not deprecated">
  5537. <doc>
  5538. <![CDATA[@see
  5539. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5540. core-default.xml</a>]]>
  5541. </doc>
  5542. </field>
  5543. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  5544. transient="false" volatile="false"
  5545. static="true" final="true" visibility="public"
  5546. deprecated="not deprecated">
  5547. <doc>
  5548. <![CDATA[@see
  5549. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5550. core-default.xml</a>]]>
  5551. </doc>
  5552. </field>
  5553. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  5554. transient="false" volatile="false"
  5555. static="true" final="true" visibility="public"
  5556. deprecated="not deprecated">
  5557. <doc>
  5558. <![CDATA[@see
  5559. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5560. core-default.xml</a>]]>
  5561. </doc>
  5562. </field>
  5563. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS" type="java.lang.String"
  5564. transient="false" volatile="false"
  5565. static="true" final="true" visibility="public"
  5566. deprecated="use
  5567. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5568. instead.">
  5569. <doc>
  5570. <![CDATA[@deprecated use
  5571. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5572. instead.]]>
  5573. </doc>
  5574. </field>
  5575. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  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="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5586. transient="false" volatile="false"
  5587. static="true" final="true" visibility="public"
  5588. deprecated="use
  5589. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5590. instead.">
  5591. <doc>
  5592. <![CDATA[@deprecated use
  5593. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5594. instead.]]>
  5595. </doc>
  5596. </field>
  5597. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5598. transient="false" volatile="false"
  5599. static="true" final="true" visibility="public"
  5600. deprecated="not deprecated">
  5601. <doc>
  5602. <![CDATA[@see
  5603. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5604. core-default.xml</a>]]>
  5605. </doc>
  5606. </field>
  5607. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5608. transient="false" volatile="false"
  5609. static="true" final="true" visibility="public"
  5610. deprecated="not deprecated">
  5611. <doc>
  5612. <![CDATA[@see
  5613. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5614. core-default.xml</a>]]>
  5615. </doc>
  5616. </field>
  5617. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5618. transient="false" volatile="false"
  5619. static="true" final="true" visibility="public"
  5620. deprecated="not deprecated">
  5621. <doc>
  5622. <![CDATA[@see
  5623. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5624. core-default.xml</a>]]>
  5625. </doc>
  5626. </field>
  5627. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5628. transient="false" volatile="false"
  5629. static="true" final="true" visibility="public"
  5630. deprecated="not deprecated">
  5631. <doc>
  5632. <![CDATA[@see
  5633. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5634. core-default.xml</a>]]>
  5635. </doc>
  5636. </field>
  5637. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5638. transient="false" volatile="false"
  5639. static="true" final="true" visibility="public"
  5640. deprecated="not deprecated">
  5641. <doc>
  5642. <![CDATA[@see
  5643. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5644. core-default.xml</a>]]>
  5645. </doc>
  5646. </field>
  5647. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL_MECHANISM" type="java.lang.String"
  5648. transient="false" volatile="false"
  5649. static="true" final="true" visibility="public"
  5650. deprecated="not deprecated">
  5651. <doc>
  5652. <![CDATA[@see
  5653. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5654. core-default.xml</a>]]>
  5655. </doc>
  5656. </field>
  5657. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  5658. transient="false" volatile="false"
  5659. static="true" final="true" visibility="public"
  5660. deprecated="not deprecated">
  5661. <doc>
  5662. <![CDATA[@see
  5663. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5664. core-default.xml</a>]]>
  5665. </doc>
  5666. </field>
  5667. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  5668. transient="false" volatile="false"
  5669. static="true" final="true" visibility="public"
  5670. deprecated="not deprecated">
  5671. <doc>
  5672. <![CDATA[@see
  5673. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5674. core-default.xml</a>]]>
  5675. </doc>
  5676. </field>
  5677. <field name="HADOOP_TOKEN_FILES" 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_TOKENS" type="java.lang.String"
  5688. transient="false" volatile="false"
  5689. static="true" final="true" visibility="public"
  5690. deprecated="not deprecated">
  5691. </field>
  5692. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  5693. transient="false" volatile="false"
  5694. static="true" final="true" visibility="public"
  5695. deprecated="not deprecated">
  5696. </field>
  5697. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  5698. transient="false" volatile="false"
  5699. static="true" final="true" visibility="public"
  5700. deprecated="not deprecated">
  5701. <doc>
  5702. <![CDATA[@see
  5703. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5704. core-default.xml</a>]]>
  5705. </doc>
  5706. </field>
  5707. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  5708. transient="false" volatile="false"
  5709. static="true" final="true" visibility="public"
  5710. deprecated="not deprecated">
  5711. <doc>
  5712. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  5713. </doc>
  5714. </field>
  5715. <field name="HADOOP_KERBEROS_KEYTAB_LOGIN_AUTORENEWAL_ENABLED" type="java.lang.String"
  5716. transient="false" volatile="false"
  5717. static="true" final="true" visibility="public"
  5718. deprecated="not deprecated">
  5719. <doc>
  5720. <![CDATA[@see
  5721. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5722. core-default.xml</a>]]>
  5723. </doc>
  5724. </field>
  5725. <field name="HADOOP_KERBEROS_KEYTAB_LOGIN_AUTORENEWAL_ENABLED_DEFAULT" type="boolean"
  5726. transient="false" volatile="false"
  5727. static="true" final="true" visibility="public"
  5728. deprecated="not deprecated">
  5729. <doc>
  5730. <![CDATA[Default value for HADOOP_KERBEROS_KEYTAB_LOGIN_AUTORENEWAL_ENABLED.]]>
  5731. </doc>
  5732. </field>
  5733. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5734. transient="false" volatile="false"
  5735. static="true" final="true" visibility="public"
  5736. deprecated="not deprecated">
  5737. <doc>
  5738. <![CDATA[@see
  5739. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5740. core-default.xml</a>]]>
  5741. </doc>
  5742. </field>
  5743. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5744. transient="false" volatile="false"
  5745. static="true" final="true" visibility="public"
  5746. deprecated="not deprecated">
  5747. <doc>
  5748. <![CDATA[Class to override Sasl Properties for a connection]]>
  5749. </doc>
  5750. </field>
  5751. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5752. transient="false" volatile="false"
  5753. static="true" final="true" visibility="public"
  5754. deprecated="not deprecated">
  5755. </field>
  5756. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  5757. transient="false" volatile="false"
  5758. static="true" final="true" visibility="public"
  5759. deprecated="not deprecated">
  5760. </field>
  5761. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  5762. transient="false" volatile="false"
  5763. static="true" final="true" visibility="public"
  5764. deprecated="not deprecated">
  5765. </field>
  5766. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5767. transient="false" volatile="false"
  5768. static="true" final="true" visibility="public"
  5769. deprecated="not deprecated">
  5770. <doc>
  5771. <![CDATA[@see
  5772. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5773. core-default.xml</a>]]>
  5774. </doc>
  5775. </field>
  5776. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5777. transient="false" volatile="false"
  5778. static="true" final="true" visibility="public"
  5779. deprecated="not deprecated">
  5780. </field>
  5781. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5782. transient="false" volatile="false"
  5783. static="true" final="true" visibility="public"
  5784. deprecated="not deprecated">
  5785. <doc>
  5786. <![CDATA[@see
  5787. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5788. core-default.xml</a>]]>
  5789. </doc>
  5790. </field>
  5791. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" type="java.lang.String"
  5792. transient="false" volatile="false"
  5793. static="true" final="true" visibility="public"
  5794. deprecated="not deprecated">
  5795. <doc>
  5796. <![CDATA[@see
  5797. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5798. core-default.xml</a>]]>
  5799. </doc>
  5800. </field>
  5801. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5802. transient="false" volatile="false"
  5803. static="true" final="true" visibility="public"
  5804. deprecated="not deprecated">
  5805. <doc>
  5806. <![CDATA[@see
  5807. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5808. core-default.xml</a>]]>
  5809. </doc>
  5810. </field>
  5811. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5812. transient="false" volatile="false"
  5813. static="true" final="true" visibility="public"
  5814. deprecated="not deprecated">
  5815. <doc>
  5816. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5817. </doc>
  5818. </field>
  5819. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5820. transient="false" volatile="false"
  5821. static="true" final="true" visibility="public"
  5822. deprecated="not deprecated">
  5823. <doc>
  5824. <![CDATA[Class to override Impersonation provider]]>
  5825. </doc>
  5826. </field>
  5827. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  5828. transient="false" volatile="false"
  5829. static="true" final="true" visibility="public"
  5830. deprecated="not deprecated">
  5831. <doc>
  5832. <![CDATA[@see
  5833. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5834. core-default.xml</a>]]>
  5835. </doc>
  5836. </field>
  5837. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" type="java.lang.String"
  5838. transient="false" volatile="false"
  5839. static="true" final="true" visibility="public"
  5840. deprecated="not deprecated">
  5841. <doc>
  5842. <![CDATA[@see
  5843. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5844. core-default.xml</a>]]>
  5845. </doc>
  5846. </field>
  5847. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_DEFAULT" type="int"
  5848. transient="false" volatile="false"
  5849. static="true" final="true" visibility="public"
  5850. deprecated="not deprecated">
  5851. <doc>
  5852. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  5853. </doc>
  5854. </field>
  5855. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  5856. transient="false" volatile="false"
  5857. static="true" final="true" visibility="public"
  5858. deprecated="not deprecated">
  5859. <doc>
  5860. <![CDATA[@see
  5861. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5862. core-default.xml</a>]]>
  5863. </doc>
  5864. </field>
  5865. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  5866. transient="false" volatile="false"
  5867. static="true" final="true" visibility="public"
  5868. deprecated="not deprecated">
  5869. <doc>
  5870. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  5871. </doc>
  5872. </field>
  5873. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5874. transient="false" volatile="false"
  5875. static="true" final="true" visibility="public"
  5876. deprecated="not deprecated">
  5877. <doc>
  5878. <![CDATA[@see
  5879. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5880. core-default.xml</a>]]>
  5881. </doc>
  5882. </field>
  5883. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5884. transient="false" volatile="false"
  5885. static="true" final="true" visibility="public"
  5886. deprecated="not deprecated">
  5887. <doc>
  5888. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5889. </doc>
  5890. </field>
  5891. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5892. transient="false" volatile="false"
  5893. static="true" final="true" visibility="public"
  5894. deprecated="not deprecated">
  5895. <doc>
  5896. <![CDATA[@see
  5897. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5898. core-default.xml</a>]]>
  5899. </doc>
  5900. </field>
  5901. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5902. transient="false" volatile="false"
  5903. static="true" final="true" visibility="public"
  5904. deprecated="not deprecated">
  5905. <doc>
  5906. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5907. </doc>
  5908. </field>
  5909. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5910. transient="false" volatile="false"
  5911. static="true" final="true" visibility="public"
  5912. deprecated="not deprecated">
  5913. <doc>
  5914. <![CDATA[@see
  5915. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5916. core-default.xml</a>]]>
  5917. </doc>
  5918. </field>
  5919. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5920. transient="false" volatile="false"
  5921. static="true" final="true" visibility="public"
  5922. deprecated="not deprecated">
  5923. <doc>
  5924. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5925. </doc>
  5926. </field>
  5927. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5928. transient="false" volatile="false"
  5929. static="true" final="true" visibility="public"
  5930. deprecated="not deprecated">
  5931. <doc>
  5932. <![CDATA[@see
  5933. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5934. core-default.xml</a>]]>
  5935. </doc>
  5936. </field>
  5937. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5938. transient="false" volatile="false"
  5939. static="true" final="true" visibility="public"
  5940. deprecated="not deprecated">
  5941. <doc>
  5942. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5943. </doc>
  5944. </field>
  5945. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  5946. transient="false" volatile="false"
  5947. static="true" final="true" visibility="public"
  5948. deprecated="not deprecated">
  5949. <doc>
  5950. <![CDATA[@see
  5951. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5952. core-default.xml</a>]]>
  5953. </doc>
  5954. </field>
  5955. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  5956. transient="false" volatile="false"
  5957. static="true" final="true" visibility="public"
  5958. deprecated="not deprecated">
  5959. </field>
  5960. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  5961. transient="false" volatile="false"
  5962. static="true" final="true" visibility="public"
  5963. deprecated="not deprecated">
  5964. <doc>
  5965. <![CDATA[Default value is the number of providers specified.]]>
  5966. </doc>
  5967. </field>
  5968. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  5969. transient="false" volatile="false"
  5970. static="true" final="true" visibility="public"
  5971. deprecated="not deprecated">
  5972. <doc>
  5973. <![CDATA[@see
  5974. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5975. core-default.xml</a>]]>
  5976. </doc>
  5977. </field>
  5978. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  5979. transient="false" volatile="false"
  5980. static="true" final="true" visibility="public"
  5981. deprecated="not deprecated">
  5982. <doc>
  5983. <![CDATA[Default value is 100 ms.]]>
  5984. </doc>
  5985. </field>
  5986. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  5987. transient="false" volatile="false"
  5988. static="true" final="true" visibility="public"
  5989. deprecated="not deprecated">
  5990. <doc>
  5991. <![CDATA[@see
  5992. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5993. core-default.xml</a>]]>
  5994. </doc>
  5995. </field>
  5996. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  5997. transient="false" volatile="false"
  5998. static="true" final="true" visibility="public"
  5999. deprecated="not deprecated">
  6000. <doc>
  6001. <![CDATA[Default value is 2 secs.]]>
  6002. </doc>
  6003. </field>
  6004. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  6005. transient="false" volatile="false"
  6006. static="true" final="true" visibility="public"
  6007. deprecated="not deprecated">
  6008. <doc>
  6009. <![CDATA[@see
  6010. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6011. core-default.xml</a>]]>
  6012. </doc>
  6013. </field>
  6014. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  6015. transient="false" volatile="false"
  6016. static="true" final="true" visibility="public"
  6017. deprecated="not deprecated">
  6018. <doc>
  6019. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  6020. </doc>
  6021. </field>
  6022. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  6023. transient="false" volatile="false"
  6024. static="true" final="true" visibility="public"
  6025. deprecated="not deprecated">
  6026. <doc>
  6027. <![CDATA[@see
  6028. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6029. core-default.xml</a>]]>
  6030. </doc>
  6031. </field>
  6032. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  6033. transient="false" volatile="false"
  6034. static="true" final="true" visibility="public"
  6035. deprecated="not deprecated">
  6036. <doc>
  6037. <![CDATA[@see
  6038. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6039. core-default.xml</a>]]>
  6040. </doc>
  6041. </field>
  6042. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  6043. transient="false" volatile="false"
  6044. static="true" final="true" visibility="public"
  6045. deprecated="not deprecated">
  6046. </field>
  6047. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  6048. transient="false" volatile="false"
  6049. static="true" final="true" visibility="public"
  6050. deprecated="not deprecated">
  6051. <doc>
  6052. <![CDATA[@see
  6053. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6054. core-default.xml</a>]]>
  6055. </doc>
  6056. </field>
  6057. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  6058. transient="false" volatile="false"
  6059. static="true" final="true" visibility="public"
  6060. deprecated="not deprecated">
  6061. </field>
  6062. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  6063. transient="false" volatile="false"
  6064. static="true" final="true" visibility="public"
  6065. deprecated="not deprecated">
  6066. <doc>
  6067. <![CDATA[@see
  6068. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6069. core-default.xml</a>]]>
  6070. </doc>
  6071. </field>
  6072. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  6073. transient="false" volatile="false"
  6074. static="true" final="true" visibility="public"
  6075. deprecated="not deprecated">
  6076. </field>
  6077. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  6078. transient="false" volatile="false"
  6079. static="true" final="true" visibility="public"
  6080. deprecated="not deprecated">
  6081. <doc>
  6082. <![CDATA[@see
  6083. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6084. core-default.xml</a>]]>
  6085. </doc>
  6086. </field>
  6087. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  6088. transient="false" volatile="false"
  6089. static="true" final="true" visibility="public"
  6090. deprecated="not deprecated">
  6091. <doc>
  6092. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  6093. </doc>
  6094. </field>
  6095. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  6096. transient="false" volatile="false"
  6097. static="true" final="true" visibility="public"
  6098. deprecated="not deprecated">
  6099. <doc>
  6100. <![CDATA[@see
  6101. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6102. core-default.xml</a>]]>
  6103. </doc>
  6104. </field>
  6105. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" type="java.lang.String"
  6106. transient="false" volatile="false"
  6107. static="true" final="true" visibility="public"
  6108. deprecated="not deprecated">
  6109. <doc>
  6110. <![CDATA[@see
  6111. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6112. core-default.xml</a>]]>
  6113. </doc>
  6114. </field>
  6115. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK_DEFAULT" type="boolean"
  6116. transient="false" volatile="false"
  6117. static="true" final="true" visibility="public"
  6118. deprecated="not deprecated">
  6119. </field>
  6120. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  6121. transient="false" volatile="false"
  6122. static="true" final="true" visibility="public"
  6123. deprecated="not deprecated">
  6124. <doc>
  6125. <![CDATA[@see
  6126. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6127. core-default.xml</a>]]>
  6128. </doc>
  6129. </field>
  6130. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  6131. transient="false" volatile="false"
  6132. static="true" final="true" visibility="public"
  6133. deprecated="not deprecated">
  6134. <doc>
  6135. <![CDATA[@see
  6136. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6137. core-default.xml</a>]]>
  6138. </doc>
  6139. </field>
  6140. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  6141. transient="false" volatile="false"
  6142. static="true" final="true" visibility="public"
  6143. deprecated="not deprecated">
  6144. </field>
  6145. <field name="HADOOP_SYSTEM_TAGS" type="java.lang.String"
  6146. transient="false" volatile="false"
  6147. static="true" final="true" visibility="public"
  6148. deprecated="Please use
  6149. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  6150. See https://issues.apache.org/jira/browse/HADOOP-15474">
  6151. <doc>
  6152. <![CDATA[@deprecated Please use
  6153. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  6154. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  6155. </doc>
  6156. </field>
  6157. <field name="HADOOP_CUSTOM_TAGS" type="java.lang.String"
  6158. transient="false" volatile="false"
  6159. static="true" final="true" visibility="public"
  6160. deprecated="Please use
  6161. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  6162. See https://issues.apache.org/jira/browse/HADOOP-15474">
  6163. <doc>
  6164. <![CDATA[@deprecated Please use
  6165. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  6166. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  6167. </doc>
  6168. </field>
  6169. <field name="HADOOP_TAGS_SYSTEM" type="java.lang.String"
  6170. transient="false" volatile="false"
  6171. static="true" final="true" visibility="public"
  6172. deprecated="not deprecated">
  6173. </field>
  6174. <field name="HADOOP_TAGS_CUSTOM" type="java.lang.String"
  6175. transient="false" volatile="false"
  6176. static="true" final="true" visibility="public"
  6177. deprecated="not deprecated">
  6178. </field>
  6179. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  6180. transient="false" volatile="false"
  6181. static="true" final="true" visibility="public"
  6182. deprecated="not deprecated">
  6183. <doc>
  6184. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  6185. {@value}.]]>
  6186. </doc>
  6187. </field>
  6188. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  6189. transient="false" volatile="false"
  6190. static="true" final="true" visibility="public"
  6191. deprecated="not deprecated">
  6192. <doc>
  6193. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  6194. </doc>
  6195. </field>
  6196. <field name="HADOOP_PROMETHEUS_ENABLED" type="java.lang.String"
  6197. transient="false" volatile="false"
  6198. static="true" final="true" visibility="public"
  6199. deprecated="not deprecated">
  6200. <doc>
  6201. <![CDATA[@see
  6202. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6203. core-default.xml</a>]]>
  6204. </doc>
  6205. </field>
  6206. <field name="HADOOP_PROMETHEUS_ENABLED_DEFAULT" type="boolean"
  6207. transient="false" volatile="false"
  6208. static="true" final="true" visibility="public"
  6209. deprecated="not deprecated">
  6210. </field>
  6211. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY" type="java.lang.String"
  6212. transient="false" volatile="false"
  6213. static="true" final="true" visibility="public"
  6214. deprecated="not deprecated">
  6215. <doc>
  6216. <![CDATA[@see
  6217. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6218. core-default.xml</a>]]>
  6219. </doc>
  6220. </field>
  6221. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT" type="int"
  6222. transient="false" volatile="false"
  6223. static="true" final="true" visibility="public"
  6224. deprecated="not deprecated">
  6225. </field>
  6226. <doc>
  6227. <![CDATA[This class contains constants for configuration keys used
  6228. in the common code.
  6229. It includes all publicly documented configuration keys. In general
  6230. this class should not be used directly (use CommonConfigurationKeys
  6231. instead)]]>
  6232. </doc>
  6233. </class>
  6234. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  6235. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  6236. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  6237. abstract="false"
  6238. static="false" final="false" visibility="public"
  6239. deprecated="not deprecated">
  6240. <implements name="org.apache.hadoop.io.Writable"/>
  6241. <constructor name="ContentSummary"
  6242. static="false" final="false" visibility="public"
  6243. deprecated="not deprecated">
  6244. <doc>
  6245. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  6246. </doc>
  6247. </constructor>
  6248. <constructor name="ContentSummary" type="long, long, long"
  6249. static="false" final="false" visibility="public"
  6250. deprecated="not deprecated">
  6251. <doc>
  6252. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  6253. This constructor implicitly set spaceConsumed the same as length.
  6254. spaceConsumed and length must be set explicitly with
  6255. ContentSummary.Builder]]>
  6256. </doc>
  6257. </constructor>
  6258. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  6259. static="false" final="false" visibility="public"
  6260. deprecated="not deprecated">
  6261. <doc>
  6262. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  6263. </doc>
  6264. </constructor>
  6265. <method name="getLength" return="long"
  6266. abstract="false" native="false" synchronized="false"
  6267. static="false" final="false" visibility="public"
  6268. deprecated="not deprecated">
  6269. <doc>
  6270. <![CDATA[@return the length]]>
  6271. </doc>
  6272. </method>
  6273. <method name="getSnapshotLength" return="long"
  6274. abstract="false" native="false" synchronized="false"
  6275. static="false" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. </method>
  6278. <method name="getDirectoryCount" return="long"
  6279. abstract="false" native="false" synchronized="false"
  6280. static="false" final="false" visibility="public"
  6281. deprecated="not deprecated">
  6282. <doc>
  6283. <![CDATA[@return the directory count]]>
  6284. </doc>
  6285. </method>
  6286. <method name="getSnapshotDirectoryCount" return="long"
  6287. abstract="false" native="false" synchronized="false"
  6288. static="false" final="false" visibility="public"
  6289. deprecated="not deprecated">
  6290. </method>
  6291. <method name="getFileCount" return="long"
  6292. abstract="false" native="false" synchronized="false"
  6293. static="false" final="false" visibility="public"
  6294. deprecated="not deprecated">
  6295. <doc>
  6296. <![CDATA[@return the file count]]>
  6297. </doc>
  6298. </method>
  6299. <method name="getSnapshotFileCount" return="long"
  6300. abstract="false" native="false" synchronized="false"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. </method>
  6304. <method name="getSnapshotSpaceConsumed" return="long"
  6305. abstract="false" native="false" synchronized="false"
  6306. static="false" final="false" visibility="public"
  6307. deprecated="not deprecated">
  6308. </method>
  6309. <method name="getErasureCodingPolicy" return="java.lang.String"
  6310. abstract="false" native="false" synchronized="false"
  6311. static="false" final="false" visibility="public"
  6312. deprecated="not deprecated">
  6313. </method>
  6314. <method name="equals" return="boolean"
  6315. abstract="false" native="false" synchronized="false"
  6316. static="false" final="false" visibility="public"
  6317. deprecated="not deprecated">
  6318. <param name="to" type="java.lang.Object"/>
  6319. </method>
  6320. <method name="hashCode" return="int"
  6321. abstract="false" native="false" synchronized="false"
  6322. static="false" final="false" visibility="public"
  6323. deprecated="not deprecated">
  6324. </method>
  6325. <method name="getHeader" return="java.lang.String"
  6326. abstract="false" native="false" synchronized="false"
  6327. static="true" final="false" visibility="public"
  6328. deprecated="not deprecated">
  6329. <param name="qOption" type="boolean"/>
  6330. <doc>
  6331. <![CDATA[Return the header of the output.
  6332. if qOption is false, output directory count, file count, and content size;
  6333. if qOption is true, output quota and remaining quota as well.
  6334. @param qOption a flag indicating if quota needs to be printed or not
  6335. @return the header of the output]]>
  6336. </doc>
  6337. </method>
  6338. <method name="getSnapshotHeader" return="java.lang.String"
  6339. abstract="false" native="false" synchronized="false"
  6340. static="true" final="false" visibility="public"
  6341. deprecated="not deprecated">
  6342. </method>
  6343. <method name="getHeaderFields" return="java.lang.String[]"
  6344. abstract="false" native="false" synchronized="false"
  6345. static="true" final="false" visibility="public"
  6346. deprecated="not deprecated">
  6347. <doc>
  6348. <![CDATA[Returns the names of the fields from the summary header.
  6349. @return names of fields as displayed in the header]]>
  6350. </doc>
  6351. </method>
  6352. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  6353. abstract="false" native="false" synchronized="false"
  6354. static="true" final="false" visibility="public"
  6355. deprecated="not deprecated">
  6356. <doc>
  6357. <![CDATA[Returns the names of the fields used in the quota summary.
  6358. @return names of quota fields as displayed in the header]]>
  6359. </doc>
  6360. </method>
  6361. <method name="toString" return="java.lang.String"
  6362. abstract="false" native="false" synchronized="false"
  6363. static="false" final="false" visibility="public"
  6364. deprecated="not deprecated">
  6365. </method>
  6366. <method name="toString" return="java.lang.String"
  6367. abstract="false" native="false" synchronized="false"
  6368. static="false" final="false" visibility="public"
  6369. deprecated="not deprecated">
  6370. <param name="qOption" type="boolean"/>
  6371. <doc>
  6372. <![CDATA[Return the string representation of the object in the output format.
  6373. if qOption is false, output directory count, file count, and content size;
  6374. if qOption is true, output quota and remaining quota as well.
  6375. @param qOption a flag indicating if quota needs to be printed or not
  6376. @return the string representation of the object]]>
  6377. </doc>
  6378. </method>
  6379. <method name="toString" return="java.lang.String"
  6380. abstract="false" native="false" synchronized="false"
  6381. static="false" final="false" visibility="public"
  6382. deprecated="not deprecated">
  6383. <param name="qOption" type="boolean"/>
  6384. <param name="hOption" type="boolean"/>
  6385. <doc>
  6386. <![CDATA[Return the string representation of the object in the output format.
  6387. For description of the options,
  6388. @see #toString(boolean, boolean, boolean, boolean, List)
  6389. @param qOption a flag indicating if quota needs to be printed or not
  6390. @param hOption a flag indicating if human readable output if to be used
  6391. @return the string representation of the object]]>
  6392. </doc>
  6393. </method>
  6394. <method name="toString" return="java.lang.String"
  6395. abstract="false" native="false" synchronized="false"
  6396. static="false" final="false" visibility="public"
  6397. deprecated="not deprecated">
  6398. <param name="qOption" type="boolean"/>
  6399. <param name="hOption" type="boolean"/>
  6400. <param name="xOption" type="boolean"/>
  6401. <doc>
  6402. <![CDATA[Return the string representation of the object in the output format.
  6403. For description of the options,
  6404. @see #toString(boolean, boolean, boolean, boolean, List)
  6405. @param qOption a flag indicating if quota needs to be printed or not
  6406. @param hOption a flag indicating if human readable output is to be used
  6407. @param xOption a flag indicating if calculation from snapshots is to be
  6408. included in the output
  6409. @return the string representation of the object]]>
  6410. </doc>
  6411. </method>
  6412. <method name="toString" return="java.lang.String"
  6413. abstract="false" native="false" synchronized="false"
  6414. static="false" final="false" visibility="public"
  6415. deprecated="not deprecated">
  6416. <param name="qOption" type="boolean"/>
  6417. <param name="hOption" type="boolean"/>
  6418. <param name="tOption" type="boolean"/>
  6419. <param name="types" type="java.util.List"/>
  6420. <doc>
  6421. <![CDATA[Return the string representation of the object in the output format.
  6422. For description of the options,
  6423. @see #toString(boolean, boolean, boolean, boolean, List)
  6424. @param qOption a flag indicating if quota needs to be printed or not
  6425. @param hOption a flag indicating if human readable output if to be used
  6426. @param tOption a flag indicating if display quota by storage types
  6427. @param types Storage types to display
  6428. @return the string representation of the object]]>
  6429. </doc>
  6430. </method>
  6431. <method name="toString" return="java.lang.String"
  6432. abstract="false" native="false" synchronized="false"
  6433. static="false" final="false" visibility="public"
  6434. deprecated="not deprecated">
  6435. <param name="qOption" type="boolean"/>
  6436. <param name="hOption" type="boolean"/>
  6437. <param name="tOption" type="boolean"/>
  6438. <param name="xOption" type="boolean"/>
  6439. <param name="types" type="java.util.List"/>
  6440. <doc>
  6441. <![CDATA[Return the string representation of the object in the output format.
  6442. if qOption is false, output directory count, file count, and content size;
  6443. if qOption is true, output quota and remaining quota as well.
  6444. if hOption is false, file sizes are returned in bytes
  6445. if hOption is true, file sizes are returned in human readable
  6446. if tOption is true, display the quota by storage types
  6447. if tOption is false, same logic with #toString(boolean,boolean)
  6448. if xOption is false, output includes the calculation from snapshots
  6449. if xOption is true, output excludes the calculation from snapshots
  6450. @param qOption a flag indicating if quota needs to be printed or not
  6451. @param hOption a flag indicating if human readable output is to be used
  6452. @param tOption a flag indicating if display quota by storage types
  6453. @param xOption a flag indicating if calculation from snapshots is to be
  6454. included in the output
  6455. @param types Storage types to display
  6456. @return the string representation of the object]]>
  6457. </doc>
  6458. </method>
  6459. <method name="toSnapshot" return="java.lang.String"
  6460. abstract="false" native="false" synchronized="false"
  6461. static="false" final="false" visibility="public"
  6462. deprecated="not deprecated">
  6463. <param name="hOption" type="boolean"/>
  6464. <doc>
  6465. <![CDATA[Return the string representation of the snapshot counts in the output
  6466. format.
  6467. @param hOption flag indicating human readable or not
  6468. @return String representation of the snapshot counts]]>
  6469. </doc>
  6470. </method>
  6471. <doc>
  6472. <![CDATA[Store the summary of a content (a directory or a file).]]>
  6473. </doc>
  6474. </class>
  6475. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  6476. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  6477. <class name="CreateFlag" extends="java.lang.Enum"
  6478. abstract="false"
  6479. static="false" final="true" visibility="public"
  6480. deprecated="not deprecated">
  6481. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  6482. abstract="false" native="false" synchronized="false"
  6483. static="true" final="false" visibility="public"
  6484. deprecated="not deprecated">
  6485. </method>
  6486. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  6487. abstract="false" native="false" synchronized="false"
  6488. static="true" final="false" visibility="public"
  6489. deprecated="not deprecated">
  6490. <param name="name" type="java.lang.String"/>
  6491. </method>
  6492. <method name="validate"
  6493. abstract="false" native="false" synchronized="false"
  6494. static="true" final="false" visibility="public"
  6495. deprecated="not deprecated">
  6496. <param name="flag" type="java.util.EnumSet"/>
  6497. <doc>
  6498. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  6499. @param flag set of CreateFlag
  6500. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6501. </doc>
  6502. </method>
  6503. <method name="validate"
  6504. abstract="false" native="false" synchronized="false"
  6505. static="true" final="false" visibility="public"
  6506. deprecated="not deprecated">
  6507. <param name="path" type="java.lang.Object"/>
  6508. <param name="pathExists" type="boolean"/>
  6509. <param name="flag" type="java.util.EnumSet"/>
  6510. <exception name="IOException" type="java.io.IOException"/>
  6511. <doc>
  6512. <![CDATA[Validate the CreateFlag for create operation
  6513. @param path Object representing the path; usually String or {@link Path}
  6514. @param pathExists pass true if the path exists in the file system
  6515. @param flag set of CreateFlag
  6516. @throws IOException on error
  6517. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6518. </doc>
  6519. </method>
  6520. <method name="validateForAppend"
  6521. abstract="false" native="false" synchronized="false"
  6522. static="true" final="false" visibility="public"
  6523. deprecated="not deprecated">
  6524. <param name="flag" type="java.util.EnumSet"/>
  6525. <doc>
  6526. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  6527. APPEND, and cannot contain OVERWRITE.]]>
  6528. </doc>
  6529. </method>
  6530. <doc>
  6531. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  6532. <code>
  6533. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  6534. </code>
  6535. <p>
  6536. Use the CreateFlag as follows:
  6537. <ol>
  6538. <li> CREATE - to create a file if it does not exist,
  6539. else throw FileAlreadyExists.</li>
  6540. <li> APPEND - to append to a file if it exists,
  6541. else throw FileNotFoundException.</li>
  6542. <li> OVERWRITE - to truncate a file if it exists,
  6543. else throw FileNotFoundException.</li>
  6544. <li> CREATE|APPEND - to create a file if it does not exist,
  6545. else append to an existing file.</li>
  6546. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  6547. else overwrite an existing file.</li>
  6548. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  6549. In addition {@link Syncable#hsync()} should be called after each write,
  6550. if true synchronous behavior is required.</li>
  6551. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  6552. available.</li>
  6553. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  6554. partial block.</li>
  6555. </ol>
  6556. Following combinations are not valid and will result in
  6557. {@link HadoopIllegalArgumentException}:
  6558. <ol>
  6559. <li> APPEND|OVERWRITE</li>
  6560. <li> CREATE|APPEND|OVERWRITE</li>
  6561. </ol>]]>
  6562. </doc>
  6563. </class>
  6564. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  6565. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6566. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6567. abstract="false"
  6568. static="false" final="false" visibility="public"
  6569. deprecated="not deprecated">
  6570. <constructor name="FileAlreadyExistsException"
  6571. static="false" final="false" visibility="public"
  6572. deprecated="not deprecated">
  6573. </constructor>
  6574. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6575. static="false" final="false" visibility="public"
  6576. deprecated="not deprecated">
  6577. </constructor>
  6578. <doc>
  6579. <![CDATA[Used when target file already exists for any operation and
  6580. is not configured to be overwritten.]]>
  6581. </doc>
  6582. </class>
  6583. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6584. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6585. <class name="FileChecksum" extends="java.lang.Object"
  6586. abstract="true"
  6587. static="false" final="false" visibility="public"
  6588. deprecated="not deprecated">
  6589. <implements name="org.apache.hadoop.io.Writable"/>
  6590. <constructor name="FileChecksum"
  6591. static="false" final="false" visibility="public"
  6592. deprecated="not deprecated">
  6593. </constructor>
  6594. <method name="getAlgorithmName" return="java.lang.String"
  6595. abstract="true" native="false" synchronized="false"
  6596. static="false" final="false" visibility="public"
  6597. deprecated="not deprecated">
  6598. <doc>
  6599. <![CDATA[The checksum algorithm name]]>
  6600. </doc>
  6601. </method>
  6602. <method name="getLength" return="int"
  6603. abstract="true" native="false" synchronized="false"
  6604. static="false" final="false" visibility="public"
  6605. deprecated="not deprecated">
  6606. <doc>
  6607. <![CDATA[The length of the checksum in bytes]]>
  6608. </doc>
  6609. </method>
  6610. <method name="getBytes" return="byte[]"
  6611. abstract="true" native="false" synchronized="false"
  6612. static="false" final="false" visibility="public"
  6613. deprecated="not deprecated">
  6614. <doc>
  6615. <![CDATA[The value of the checksum in bytes]]>
  6616. </doc>
  6617. </method>
  6618. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6619. abstract="false" native="false" synchronized="false"
  6620. static="false" final="false" visibility="public"
  6621. deprecated="not deprecated">
  6622. </method>
  6623. <method name="equals" return="boolean"
  6624. abstract="false" native="false" synchronized="false"
  6625. static="false" final="false" visibility="public"
  6626. deprecated="not deprecated">
  6627. <param name="other" type="java.lang.Object"/>
  6628. <doc>
  6629. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6630. </doc>
  6631. </method>
  6632. <method name="hashCode" return="int"
  6633. abstract="false" native="false" synchronized="false"
  6634. static="false" final="false" visibility="public"
  6635. deprecated="not deprecated">
  6636. </method>
  6637. <doc>
  6638. <![CDATA[An abstract class representing file checksums for files.]]>
  6639. </doc>
  6640. </class>
  6641. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6642. <!-- start class org.apache.hadoop.fs.FileContext -->
  6643. <class name="FileContext" extends="java.lang.Object"
  6644. abstract="false"
  6645. static="false" final="false" visibility="public"
  6646. deprecated="not deprecated">
  6647. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  6648. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6649. abstract="false" native="false" synchronized="false"
  6650. static="false" final="false" visibility="protected"
  6651. deprecated="not deprecated">
  6652. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6653. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6654. <exception name="IOException" type="java.io.IOException"/>
  6655. <doc>
  6656. <![CDATA[Get the file system of supplied path.
  6657. @param absOrFqPath - absolute or fully qualified path
  6658. @return the file system of the path
  6659. @throws UnsupportedFileSystemException If the file system for
  6660. <code>absOrFqPath</code> is not supported.
  6661. @throws IOException If the file system for <code>absOrFqPath</code> could
  6662. not be instantiated.]]>
  6663. </doc>
  6664. </method>
  6665. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6666. abstract="false" native="false" synchronized="false"
  6667. static="true" final="false" visibility="public"
  6668. deprecated="not deprecated">
  6669. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6670. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6671. <doc>
  6672. <![CDATA[Create a FileContext with specified FS as default using the specified
  6673. config.
  6674. @param defFS
  6675. @param aConf
  6676. @return new FileContext with specified FS as default.]]>
  6677. </doc>
  6678. </method>
  6679. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6680. abstract="false" native="false" synchronized="false"
  6681. static="true" final="false" visibility="protected"
  6682. deprecated="not deprecated">
  6683. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6684. <doc>
  6685. <![CDATA[Create a FileContext for specified file system using the default config.
  6686. @param defaultFS
  6687. @return a FileContext with the specified AbstractFileSystem
  6688. as the default FS.]]>
  6689. </doc>
  6690. </method>
  6691. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6692. abstract="false" native="false" synchronized="false"
  6693. static="true" final="false" visibility="public"
  6694. deprecated="not deprecated">
  6695. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6696. <doc>
  6697. <![CDATA[Create a FileContext using the default config read from the
  6698. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6699. from core-defaults.xml in the release jar.
  6700. @throws UnsupportedFileSystemException If the file system from the default
  6701. configuration is not supported]]>
  6702. </doc>
  6703. </method>
  6704. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6705. abstract="false" native="false" synchronized="false"
  6706. static="true" final="false" visibility="public"
  6707. deprecated="not deprecated">
  6708. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6709. <doc>
  6710. <![CDATA[@return a FileContext for the local file system using the default config.
  6711. @throws UnsupportedFileSystemException If the file system for
  6712. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6713. </doc>
  6714. </method>
  6715. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6716. abstract="false" native="false" synchronized="false"
  6717. static="true" final="false" visibility="public"
  6718. deprecated="not deprecated">
  6719. <param name="defaultFsUri" type="java.net.URI"/>
  6720. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6721. <doc>
  6722. <![CDATA[Create a FileContext for specified URI using the default config.
  6723. @param defaultFsUri
  6724. @return a FileContext with the specified URI as the default FS.
  6725. @throws UnsupportedFileSystemException If the file system for
  6726. <code>defaultFsUri</code> is not supported]]>
  6727. </doc>
  6728. </method>
  6729. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6730. abstract="false" native="false" synchronized="false"
  6731. static="true" final="false" visibility="public"
  6732. deprecated="not deprecated">
  6733. <param name="defaultFsUri" type="java.net.URI"/>
  6734. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6735. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6736. <doc>
  6737. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6738. @param defaultFsUri
  6739. @param aConf
  6740. @return new FileContext for specified uri
  6741. @throws UnsupportedFileSystemException If the file system with specified is
  6742. not supported
  6743. @throws RuntimeException If the file system specified is supported but
  6744. could not be instantiated, or if login fails.]]>
  6745. </doc>
  6746. </method>
  6747. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6748. abstract="false" native="false" synchronized="false"
  6749. static="true" final="false" visibility="public"
  6750. deprecated="not deprecated">
  6751. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6752. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6753. <doc>
  6754. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6755. {@link #getFileContext(URI, Configuration)} instead of this one.
  6756. @param aConf
  6757. @return new FileContext
  6758. @throws UnsupportedFileSystemException If file system in the config
  6759. is not supported]]>
  6760. </doc>
  6761. </method>
  6762. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6763. abstract="false" native="false" synchronized="false"
  6764. static="true" final="false" visibility="public"
  6765. deprecated="not deprecated">
  6766. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6767. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6768. <doc>
  6769. <![CDATA[@param aConf - from which the FileContext is configured
  6770. @return a FileContext for the local file system using the specified config.
  6771. @throws UnsupportedFileSystemException If default file system in the config
  6772. is not supported]]>
  6773. </doc>
  6774. </method>
  6775. <method name="setWorkingDirectory"
  6776. abstract="false" native="false" synchronized="false"
  6777. static="false" final="false" visibility="public"
  6778. deprecated="not deprecated">
  6779. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6780. <exception name="IOException" type="java.io.IOException"/>
  6781. <doc>
  6782. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6783. directory feature is provided by simply prefixing relative names with the
  6784. working dir. Note this is different from Unix where the wd is actually set
  6785. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6786. better in a distributed environment that has multiple independent roots.
  6787. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6788. @param newWDir new working directory
  6789. @throws IOException
  6790. <br>
  6791. NewWdir can be one of:
  6792. <ul>
  6793. <li>relative path: "foo/bar";</li>
  6794. <li>absolute without scheme: "/foo/bar"</li>
  6795. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6796. </ul>
  6797. <br>
  6798. Illegal WDs:
  6799. <ul>
  6800. <li>relative with scheme: "xx:foo/bar"</li>
  6801. <li>non existent directory</li>
  6802. </ul>]]>
  6803. </doc>
  6804. </method>
  6805. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6806. abstract="false" native="false" synchronized="false"
  6807. static="false" final="false" visibility="public"
  6808. deprecated="not deprecated">
  6809. <doc>
  6810. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6811. </doc>
  6812. </method>
  6813. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6814. abstract="false" native="false" synchronized="false"
  6815. static="false" final="false" visibility="public"
  6816. deprecated="not deprecated">
  6817. <doc>
  6818. <![CDATA[Gets the ugi in the file-context
  6819. @return UserGroupInformation]]>
  6820. </doc>
  6821. </method>
  6822. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6823. abstract="false" native="false" synchronized="false"
  6824. static="false" final="false" visibility="public"
  6825. deprecated="not deprecated">
  6826. <doc>
  6827. <![CDATA[Return the current user's home directory in this file system.
  6828. The default implementation returns "/user/$USER/".
  6829. @return the home directory]]>
  6830. </doc>
  6831. </method>
  6832. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6833. abstract="false" native="false" synchronized="false"
  6834. static="false" final="false" visibility="public"
  6835. deprecated="not deprecated">
  6836. <doc>
  6837. <![CDATA[@return the umask of this FileContext]]>
  6838. </doc>
  6839. </method>
  6840. <method name="setUMask"
  6841. abstract="false" native="false" synchronized="false"
  6842. static="false" final="false" visibility="public"
  6843. deprecated="not deprecated">
  6844. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6845. <doc>
  6846. <![CDATA[Set umask to the supplied parameter.
  6847. @param newUmask the new umask]]>
  6848. </doc>
  6849. </method>
  6850. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6851. abstract="false" native="false" synchronized="false"
  6852. static="false" final="false" visibility="public"
  6853. deprecated="not deprecated">
  6854. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6855. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6856. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6857. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6858. <exception name="IOException" type="java.io.IOException"/>
  6859. <doc>
  6860. <![CDATA[Resolve the path following any symlinks or mount points
  6861. @param f to be resolved
  6862. @return fully qualified resolved path
  6863. @throws FileNotFoundException If <code>f</code> does not exist
  6864. @throws AccessControlException if access denied
  6865. @throws IOException If an IO Error occurred
  6866. Exceptions applicable to file systems accessed over RPC:
  6867. @throws RpcClientException If an exception occurred in the RPC client
  6868. @throws RpcServerException If an exception occurred in the RPC server
  6869. @throws UnexpectedServerException If server implementation throws
  6870. undeclared exception to RPC server
  6871. RuntimeExceptions:
  6872. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6873. </doc>
  6874. </method>
  6875. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6876. abstract="false" native="false" synchronized="false"
  6877. static="false" final="false" visibility="public"
  6878. deprecated="not deprecated">
  6879. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6880. <doc>
  6881. <![CDATA[Make the path fully qualified if it is isn't.
  6882. A Fully-qualified path has scheme and authority specified and an absolute
  6883. path.
  6884. Use the default file system and working dir in this FileContext to qualify.
  6885. @param path
  6886. @return qualified path]]>
  6887. </doc>
  6888. </method>
  6889. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6890. abstract="false" native="false" synchronized="false"
  6891. static="false" final="false" visibility="public"
  6892. deprecated="not deprecated">
  6893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6894. <param name="createFlag" type="java.util.EnumSet"/>
  6895. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6896. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6897. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6898. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6899. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6900. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6901. <exception name="IOException" type="java.io.IOException"/>
  6902. <doc>
  6903. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6904. writing into the file.
  6905. @param f the file name to open
  6906. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6907. @param opts file creation options; see {@link Options.CreateOpts}.
  6908. <ul>
  6909. <li>Progress - to report progress on the operation - default null
  6910. <li>Permission - umask is applied against permission: default is
  6911. FsPermissions:getDefault()
  6912. <li>CreateParent - create missing parent path; default is to not
  6913. to create parents
  6914. <li>The defaults for the following are SS defaults of the file
  6915. server implementing the target path. Not all parameters make sense
  6916. for all kinds of file system - eg. localFS ignores Blocksize,
  6917. replication, checksum
  6918. <ul>
  6919. <li>BufferSize - buffersize used in FSDataOutputStream
  6920. <li>Blocksize - block size for file blocks
  6921. <li>ReplicationFactor - replication for blocks
  6922. <li>ChecksumParam - Checksum parameters. server default is used
  6923. if not specified.
  6924. </ul>
  6925. </ul>
  6926. @return {@link FSDataOutputStream} for created file
  6927. @throws AccessControlException If access is denied
  6928. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6929. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6930. and <code>createParent</code> is false
  6931. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6932. directory.
  6933. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6934. not supported
  6935. @throws IOException If an I/O error occurred
  6936. Exceptions applicable to file systems accessed over RPC:
  6937. @throws RpcClientException If an exception occurred in the RPC client
  6938. @throws RpcServerException If an exception occurred in the RPC server
  6939. @throws UnexpectedServerException If server implementation throws
  6940. undeclared exception to RPC server
  6941. RuntimeExceptions:
  6942. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6943. </doc>
  6944. </method>
  6945. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  6946. abstract="false" native="false" synchronized="false"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6950. <exception name="IOException" type="java.io.IOException"/>
  6951. <doc>
  6952. <![CDATA[Create a {@link FSDataOutputStreamBuilder} for creating or overwriting
  6953. a file on indicated path.
  6954. @param f the file path to create builder for.
  6955. @return {@link FSDataOutputStreamBuilder} to build a
  6956. {@link FSDataOutputStream}.
  6957. Upon {@link FSDataOutputStreamBuilder#build()} being invoked,
  6958. builder parameters will be verified by {@link FileContext} and
  6959. {@link AbstractFileSystem#create}. And filesystem states will be modified.
  6960. Client should expect {@link FSDataOutputStreamBuilder#build()} throw the
  6961. same exceptions as create(Path, EnumSet, CreateOpts...).]]>
  6962. </doc>
  6963. </method>
  6964. <method name="mkdir"
  6965. abstract="false" native="false" synchronized="false"
  6966. static="false" final="false" visibility="public"
  6967. deprecated="not deprecated">
  6968. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6969. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6970. <param name="createParent" type="boolean"/>
  6971. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6972. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6973. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6974. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6975. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6976. <exception name="IOException" type="java.io.IOException"/>
  6977. <doc>
  6978. <![CDATA[Make(create) a directory and all the non-existent parents.
  6979. @param dir - the dir to make
  6980. @param permission - permissions is set permission{@literal &~}umask
  6981. @param createParent - if true then missing parent dirs are created if false
  6982. then parent must exist
  6983. @throws AccessControlException If access is denied
  6984. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6985. exists
  6986. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6987. and <code>createParent</code> is false
  6988. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6989. directory
  6990. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6991. is not supported
  6992. @throws IOException If an I/O error occurred
  6993. Exceptions applicable to file systems accessed over RPC:
  6994. @throws RpcClientException If an exception occurred in the RPC client
  6995. @throws UnexpectedServerException If server implementation throws
  6996. undeclared exception to RPC server
  6997. RuntimeExceptions:
  6998. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6999. </doc>
  7000. </method>
  7001. <method name="delete" return="boolean"
  7002. abstract="false" native="false" synchronized="false"
  7003. static="false" final="false" visibility="public"
  7004. deprecated="not deprecated">
  7005. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7006. <param name="recursive" type="boolean"/>
  7007. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7008. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7009. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7010. <exception name="IOException" type="java.io.IOException"/>
  7011. <doc>
  7012. <![CDATA[Delete a file.
  7013. @param f the path to delete.
  7014. @param recursive if path is a directory and set to
  7015. true, the directory is deleted else throws an exception. In
  7016. case of a file the recursive can be set to either true or false.
  7017. @throws AccessControlException If access is denied
  7018. @throws FileNotFoundException If <code>f</code> does not exist
  7019. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7020. not supported
  7021. @throws IOException If an I/O error occurred
  7022. Exceptions applicable to file systems accessed over RPC:
  7023. @throws RpcClientException If an exception occurred in the RPC client
  7024. @throws RpcServerException If an exception occurred in the RPC server
  7025. @throws UnexpectedServerException If server implementation throws
  7026. undeclared exception to RPC server
  7027. RuntimeExceptions:
  7028. @throws InvalidPathException If path <code>f</code> is invalid]]>
  7029. </doc>
  7030. </method>
  7031. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7032. abstract="false" native="false" synchronized="false"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7036. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7037. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7038. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7039. <exception name="IOException" type="java.io.IOException"/>
  7040. <doc>
  7041. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  7042. default buffersize.
  7043. @param f the file name to open
  7044. @throws AccessControlException If access is denied
  7045. @throws FileNotFoundException If file <code>f</code> does not exist
  7046. @throws UnsupportedFileSystemException If file system for <code>f</code>
  7047. is not supported
  7048. @throws IOException If an I/O error occurred
  7049. Exceptions applicable to file systems accessed over RPC:
  7050. @throws RpcClientException If an exception occurred in the RPC client
  7051. @throws RpcServerException If an exception occurred in the RPC server
  7052. @throws UnexpectedServerException If server implementation throws
  7053. undeclared exception to RPC server]]>
  7054. </doc>
  7055. </method>
  7056. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7057. abstract="false" native="false" synchronized="false"
  7058. static="false" final="false" visibility="public"
  7059. deprecated="not deprecated">
  7060. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7061. <param name="bufferSize" type="int"/>
  7062. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7063. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7064. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7065. <exception name="IOException" type="java.io.IOException"/>
  7066. <doc>
  7067. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7068. @param f the file name to open
  7069. @param bufferSize the size of the buffer to be used.
  7070. @throws AccessControlException If access is denied
  7071. @throws FileNotFoundException If file <code>f</code> does not exist
  7072. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7073. not supported
  7074. @throws IOException If an I/O error occurred
  7075. Exceptions applicable to file systems accessed over RPC:
  7076. @throws RpcClientException If an exception occurred in the RPC client
  7077. @throws RpcServerException If an exception occurred in the RPC server
  7078. @throws UnexpectedServerException If server implementation throws
  7079. undeclared exception to RPC server]]>
  7080. </doc>
  7081. </method>
  7082. <method name="truncate" return="boolean"
  7083. abstract="false" native="false" synchronized="false"
  7084. static="false" final="false" visibility="public"
  7085. deprecated="not deprecated">
  7086. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7087. <param name="newLength" type="long"/>
  7088. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7089. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7090. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7091. <exception name="IOException" type="java.io.IOException"/>
  7092. <doc>
  7093. <![CDATA[Truncate the file in the indicated path to the indicated size.
  7094. <ul>
  7095. <li>Fails if path is a directory.
  7096. <li>Fails if path does not exist.
  7097. <li>Fails if path is not closed.
  7098. <li>Fails if new size is greater than current size.
  7099. </ul>
  7100. @param f The path to the file to be truncated
  7101. @param newLength The size the file is to be truncated to
  7102. @return <code>true</code> if the file has been truncated to the desired
  7103. <code>newLength</code> and is immediately available to be reused for
  7104. write operations such as <code>append</code>, or
  7105. <code>false</code> if a background process of adjusting the length of
  7106. the last block has been started, and clients should wait for it to
  7107. complete before proceeding with further file updates.
  7108. @throws AccessControlException If access is denied
  7109. @throws FileNotFoundException If file <code>f</code> does not exist
  7110. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7111. not supported
  7112. @throws IOException If an I/O error occurred
  7113. Exceptions applicable to file systems accessed over RPC:
  7114. @throws RpcClientException If an exception occurred in the RPC client
  7115. @throws RpcServerException If an exception occurred in the RPC server
  7116. @throws UnexpectedServerException If server implementation throws
  7117. undeclared exception to RPC server]]>
  7118. </doc>
  7119. </method>
  7120. <method name="setReplication" return="boolean"
  7121. abstract="false" native="false" synchronized="false"
  7122. static="false" final="false" visibility="public"
  7123. deprecated="not deprecated">
  7124. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7125. <param name="replication" type="short"/>
  7126. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7127. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7128. <exception name="IOException" type="java.io.IOException"/>
  7129. <doc>
  7130. <![CDATA[Set replication for an existing file.
  7131. @param f file name
  7132. @param replication new replication
  7133. @return true if successful
  7134. @throws AccessControlException If access is denied
  7135. @throws FileNotFoundException If file <code>f</code> does not exist
  7136. @throws IOException If an I/O error occurred
  7137. Exceptions applicable to file systems accessed over RPC:
  7138. @throws RpcClientException If an exception occurred in the RPC client
  7139. @throws RpcServerException If an exception occurred in the RPC server
  7140. @throws UnexpectedServerException If server implementation throws
  7141. undeclared exception to RPC server]]>
  7142. </doc>
  7143. </method>
  7144. <method name="rename"
  7145. abstract="false" native="false" synchronized="false"
  7146. static="false" final="false" visibility="public"
  7147. deprecated="not deprecated">
  7148. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7149. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7150. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  7151. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7152. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7153. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7154. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7155. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7156. <exception name="IOException" type="java.io.IOException"/>
  7157. <doc>
  7158. <![CDATA[Renames Path src to Path dst
  7159. <ul>
  7160. <li>Fails if src is a file and dst is a directory.
  7161. <li>Fails if src is a directory and dst is a file.
  7162. <li>Fails if the parent of dst does not exist or is a file.
  7163. </ul>
  7164. <p>
  7165. If OVERWRITE option is not passed as an argument, rename fails if the dst
  7166. already exists.
  7167. <p>
  7168. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  7169. it is a file or an empty directory. Rename fails if dst is a non-empty
  7170. directory.
  7171. <p>
  7172. Note that atomicity of rename is dependent on the file system
  7173. implementation. Please refer to the file system documentation for details
  7174. <p>
  7175. @param src path to be renamed
  7176. @param dst new path after rename
  7177. @throws AccessControlException If access is denied
  7178. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  7179. <code>options</code> has {@link Options.Rename#OVERWRITE}
  7180. option false.
  7181. @throws FileNotFoundException If <code>src</code> does not exist
  7182. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  7183. directory
  7184. @throws UnsupportedFileSystemException If file system for <code>src</code>
  7185. and <code>dst</code> is not supported
  7186. @throws IOException If an I/O error occurred
  7187. Exceptions applicable to file systems accessed over RPC:
  7188. @throws RpcClientException If an exception occurred in the RPC client
  7189. @throws RpcServerException If an exception occurred in the RPC server
  7190. @throws UnexpectedServerException If server implementation throws
  7191. undeclared exception to RPC server]]>
  7192. </doc>
  7193. </method>
  7194. <method name="setPermission"
  7195. abstract="false" native="false" synchronized="false"
  7196. static="false" final="false" visibility="public"
  7197. deprecated="not deprecated">
  7198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7199. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7200. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7201. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7202. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7203. <exception name="IOException" type="java.io.IOException"/>
  7204. <doc>
  7205. <![CDATA[Set permission of a path.
  7206. @param f
  7207. @param permission - the new absolute permission (umask is not applied)
  7208. @throws AccessControlException If access is denied
  7209. @throws FileNotFoundException If <code>f</code> does not exist
  7210. @throws UnsupportedFileSystemException If file system for <code>f</code>
  7211. is not supported
  7212. @throws IOException If an I/O error occurred
  7213. Exceptions applicable to file systems accessed over RPC:
  7214. @throws RpcClientException If an exception occurred in the RPC client
  7215. @throws RpcServerException If an exception occurred in the RPC server
  7216. @throws UnexpectedServerException If server implementation throws
  7217. undeclared exception to RPC server]]>
  7218. </doc>
  7219. </method>
  7220. <method name="setOwner"
  7221. abstract="false" native="false" synchronized="false"
  7222. static="false" final="false" visibility="public"
  7223. deprecated="not deprecated">
  7224. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7225. <param name="username" type="java.lang.String"/>
  7226. <param name="groupname" type="java.lang.String"/>
  7227. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7228. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7229. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7230. <exception name="IOException" type="java.io.IOException"/>
  7231. <doc>
  7232. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  7233. and groupname cannot both be null.
  7234. @param f The path
  7235. @param username If it is null, the original username remains unchanged.
  7236. @param groupname If it is null, the original groupname remains unchanged.
  7237. @throws AccessControlException If access is denied
  7238. @throws FileNotFoundException If <code>f</code> does not exist
  7239. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7240. not supported
  7241. @throws IOException If an I/O error occurred
  7242. Exceptions applicable to file systems accessed over RPC:
  7243. @throws RpcClientException If an exception occurred in the RPC client
  7244. @throws RpcServerException If an exception occurred in the RPC server
  7245. @throws UnexpectedServerException If server implementation throws
  7246. undeclared exception to RPC server
  7247. RuntimeExceptions:
  7248. @throws HadoopIllegalArgumentException If <code>username</code> or
  7249. <code>groupname</code> is invalid.]]>
  7250. </doc>
  7251. </method>
  7252. <method name="setTimes"
  7253. abstract="false" native="false" synchronized="false"
  7254. static="false" final="false" visibility="public"
  7255. deprecated="not deprecated">
  7256. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7257. <param name="mtime" type="long"/>
  7258. <param name="atime" type="long"/>
  7259. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7260. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7261. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7262. <exception name="IOException" type="java.io.IOException"/>
  7263. <doc>
  7264. <![CDATA[Set access time of a file.
  7265. @param f The path
  7266. @param mtime Set the modification time of this file.
  7267. The number of milliseconds since epoch (Jan 1, 1970).
  7268. A value of -1 means that this call should not set modification time.
  7269. @param atime Set the access time of this file.
  7270. The number of milliseconds since Jan 1, 1970.
  7271. A value of -1 means that this call should not set access time.
  7272. @throws AccessControlException If access is denied
  7273. @throws FileNotFoundException If <code>f</code> does not exist
  7274. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7275. not supported
  7276. @throws IOException If an I/O error occurred
  7277. Exceptions applicable to file systems accessed over RPC:
  7278. @throws RpcClientException If an exception occurred in the RPC client
  7279. @throws RpcServerException If an exception occurred in the RPC server
  7280. @throws UnexpectedServerException If server implementation throws
  7281. undeclared exception to RPC server]]>
  7282. </doc>
  7283. </method>
  7284. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  7285. abstract="false" native="false" synchronized="false"
  7286. static="false" final="false" visibility="public"
  7287. deprecated="not deprecated">
  7288. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7289. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7290. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7291. <exception name="IOException" type="java.io.IOException"/>
  7292. <doc>
  7293. <![CDATA[Get the checksum of a file.
  7294. @param f file path
  7295. @return The file checksum. The default return value is null,
  7296. which indicates that no checksum algorithm is implemented
  7297. in the corresponding FileSystem.
  7298. @throws AccessControlException If access is denied
  7299. @throws FileNotFoundException If <code>f</code> does not exist
  7300. @throws IOException If an I/O error occurred
  7301. Exceptions applicable to file systems accessed over RPC:
  7302. @throws RpcClientException If an exception occurred in the RPC client
  7303. @throws RpcServerException If an exception occurred in the RPC server
  7304. @throws UnexpectedServerException If server implementation throws
  7305. undeclared exception to RPC server]]>
  7306. </doc>
  7307. </method>
  7308. <method name="setVerifyChecksum"
  7309. abstract="false" native="false" synchronized="false"
  7310. static="false" final="false" visibility="public"
  7311. deprecated="not deprecated">
  7312. <param name="verifyChecksum" type="boolean"/>
  7313. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7314. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7315. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7316. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7317. <exception name="IOException" type="java.io.IOException"/>
  7318. <doc>
  7319. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  7320. This is only applicable if the
  7321. corresponding FileSystem supports checksum. By default doesn't do anything.
  7322. @param verifyChecksum
  7323. @param f set the verifyChecksum for the Filesystem containing this path
  7324. @throws AccessControlException If access is denied
  7325. @throws FileNotFoundException If <code>f</code> does not exist
  7326. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7327. not supported
  7328. @throws IOException If an I/O error occurred
  7329. Exceptions applicable to file systems accessed over RPC:
  7330. @throws RpcClientException If an exception occurred in the RPC client
  7331. @throws RpcServerException If an exception occurred in the RPC server
  7332. @throws UnexpectedServerException If server implementation throws
  7333. undeclared exception to RPC server]]>
  7334. </doc>
  7335. </method>
  7336. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7337. abstract="false" native="false" synchronized="false"
  7338. static="false" final="false" visibility="public"
  7339. deprecated="not deprecated">
  7340. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7341. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7342. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7343. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7344. <exception name="IOException" type="java.io.IOException"/>
  7345. <doc>
  7346. <![CDATA[Return a file status object that represents the path.
  7347. @param f The path we want information from
  7348. @return a FileStatus object
  7349. @throws AccessControlException If access is denied
  7350. @throws FileNotFoundException If <code>f</code> does not exist
  7351. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7352. not supported
  7353. @throws IOException If an I/O error occurred
  7354. Exceptions applicable to file systems accessed over RPC:
  7355. @throws RpcClientException If an exception occurred in the RPC client
  7356. @throws RpcServerException If an exception occurred in the RPC server
  7357. @throws UnexpectedServerException If server implementation throws
  7358. undeclared exception to RPC server]]>
  7359. </doc>
  7360. </method>
  7361. <method name="msync"
  7362. abstract="false" native="false" synchronized="false"
  7363. static="false" final="false" visibility="public"
  7364. deprecated="not deprecated">
  7365. <exception name="IOException" type="java.io.IOException"/>
  7366. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  7367. <doc>
  7368. <![CDATA[Synchronize client metadata state.
  7369. @throws IOException
  7370. @throws UnsupportedOperationException]]>
  7371. </doc>
  7372. </method>
  7373. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  7374. abstract="false" native="false" synchronized="false"
  7375. static="false" final="false" visibility="public"
  7376. deprecated="not deprecated">
  7377. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7378. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7379. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7380. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7381. <exception name="IOException" type="java.io.IOException"/>
  7382. <doc>
  7383. <![CDATA[Return a file status object that represents the path. If the path
  7384. refers to a symlink then the FileStatus of the symlink is returned.
  7385. The behavior is equivalent to #getFileStatus() if the underlying
  7386. file system does not support symbolic links.
  7387. @param f The path we want information from.
  7388. @return A FileStatus object
  7389. @throws AccessControlException If access is denied
  7390. @throws FileNotFoundException If <code>f</code> does not exist
  7391. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7392. not supported
  7393. @throws IOException If an I/O error occurred]]>
  7394. </doc>
  7395. </method>
  7396. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  7397. abstract="false" native="false" synchronized="false"
  7398. static="false" final="false" visibility="public"
  7399. deprecated="not deprecated">
  7400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7401. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7402. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7403. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7404. <exception name="IOException" type="java.io.IOException"/>
  7405. <doc>
  7406. <![CDATA[Returns the target of the given symbolic link as it was specified
  7407. when the link was created. Links in the path leading up to the
  7408. final path component are resolved transparently.
  7409. @param f the path to return the target of
  7410. @return The un-interpreted target of the symbolic link.
  7411. @throws AccessControlException If access is denied
  7412. @throws FileNotFoundException If path <code>f</code> does not exist
  7413. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7414. not supported
  7415. @throws IOException If the given path does not refer to a symlink
  7416. or an I/O error occurred]]>
  7417. </doc>
  7418. </method>
  7419. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  7420. abstract="false" native="false" synchronized="false"
  7421. static="false" final="false" visibility="public"
  7422. deprecated="not deprecated">
  7423. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7424. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7425. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7426. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7427. <exception name="IOException" type="java.io.IOException"/>
  7428. <doc>
  7429. <![CDATA[Returns a status object describing the use and capacity of the
  7430. file system denoted by the Parh argument p.
  7431. If the file system has multiple partitions, the
  7432. use and capacity of the partition pointed to by the specified
  7433. path is reflected.
  7434. @param f Path for which status should be obtained. null means the
  7435. root partition of the default file system.
  7436. @return a FsStatus object
  7437. @throws AccessControlException If access is denied
  7438. @throws FileNotFoundException If <code>f</code> does not exist
  7439. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7440. not supported
  7441. @throws IOException If an I/O error occurred
  7442. Exceptions applicable to file systems accessed over RPC:
  7443. @throws RpcClientException If an exception occurred in the RPC client
  7444. @throws RpcServerException If an exception occurred in the RPC server
  7445. @throws UnexpectedServerException If server implementation throws
  7446. undeclared exception to RPC server]]>
  7447. </doc>
  7448. </method>
  7449. <method name="createSymlink"
  7450. abstract="false" native="false" synchronized="false"
  7451. static="false" final="false" visibility="public"
  7452. deprecated="not deprecated">
  7453. <param name="target" type="org.apache.hadoop.fs.Path"/>
  7454. <param name="link" type="org.apache.hadoop.fs.Path"/>
  7455. <param name="createParent" type="boolean"/>
  7456. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7457. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7458. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7459. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7460. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7461. <exception name="IOException" type="java.io.IOException"/>
  7462. <doc>
  7463. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  7464. the symlink exits, the user does not have permission to create symlink,
  7465. or the underlying file system does not support symlinks.
  7466. Symlink permissions are ignored, access to a symlink is determined by
  7467. the permissions of the symlink target.
  7468. Symlinks in paths leading up to the final path component are resolved
  7469. transparently. If the final path component refers to a symlink some
  7470. functions operate on the symlink itself, these are:
  7471. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  7472. - rename(src, dst) - If src refers to a symlink, the symlink is
  7473. renamed. If dst refers to a symlink, the symlink is over-written.
  7474. - getLinkTarget(f) - Returns the target of the symlink.
  7475. - getFileLinkStatus(f) - Returns a FileStatus object describing
  7476. the symlink.
  7477. Some functions, create() and mkdir(), expect the final path component
  7478. does not exist. If they are given a path that refers to a symlink that
  7479. does exist they behave as if the path referred to an existing file or
  7480. directory. All other functions fully resolve, ie follow, the symlink.
  7481. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  7482. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  7483. getFsStatus, getFileStatus, exists, and listStatus.
  7484. Symlink targets are stored as given to createSymlink, assuming the
  7485. underlying file system is capable of storing a fully qualified URI.
  7486. Dangling symlinks are permitted. FileContext supports four types of
  7487. symlink targets, and resolves them as follows
  7488. <pre>
  7489. Given a path referring to a symlink of form:
  7490. {@literal <---}X{@literal --->}
  7491. fs://host/A/B/link
  7492. {@literal <-----}Y{@literal ----->}
  7493. In this path X is the scheme and authority that identify the file system,
  7494. and Y is the path leading up to the final path component "link". If Y is
  7495. a symlink itself then let Y' be the target of Y and X' be the scheme and
  7496. authority of Y'. Symlink targets may:
  7497. 1. Fully qualified URIs
  7498. fs://hostX/A/B/file Resolved according to the target file system.
  7499. 2. Partially qualified URIs (eg scheme but no host)
  7500. fs:///A/B/file Resolved according to the target file system. Eg resolving
  7501. a symlink to hdfs:///A results in an exception because
  7502. HDFS URIs must be fully qualified, while a symlink to
  7503. file:///A will not since Hadoop's local file systems
  7504. require partially qualified URIs.
  7505. 3. Relative paths
  7506. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  7507. is "../B/file" then [Y'][path] is hdfs://host/B/file
  7508. 4. Absolute paths
  7509. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  7510. is "/file" then [X][path] is hdfs://host/file
  7511. </pre>
  7512. @param target the target of the symbolic link
  7513. @param link the path to be created that points to target
  7514. @param createParent if true then missing parent dirs are created if
  7515. false then parent must exist
  7516. @throws AccessControlException If access is denied
  7517. @throws FileAlreadyExistsException If file <code>link</code> already exists
  7518. @throws FileNotFoundException If <code>target</code> does not exist
  7519. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  7520. directory.
  7521. @throws UnsupportedFileSystemException If file system for
  7522. <code>target</code> or <code>link</code> is not supported
  7523. @throws IOException If an I/O error occurred]]>
  7524. </doc>
  7525. </method>
  7526. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7527. abstract="false" native="false" synchronized="false"
  7528. static="false" final="false" visibility="public"
  7529. deprecated="not deprecated">
  7530. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7531. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7532. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7533. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7534. <exception name="IOException" type="java.io.IOException"/>
  7535. <doc>
  7536. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7537. a directory.
  7538. @param f is the path
  7539. @return an iterator that traverses statuses of the files/directories
  7540. in the given path
  7541. @throws AccessControlException If access is denied
  7542. @throws FileNotFoundException If <code>f</code> does not exist
  7543. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7544. not supported
  7545. @throws IOException If an I/O error occurred
  7546. Exceptions applicable to file systems accessed over RPC:
  7547. @throws RpcClientException If an exception occurred in the RPC client
  7548. @throws RpcServerException If an exception occurred in the RPC server
  7549. @throws UnexpectedServerException If server implementation throws
  7550. undeclared exception to RPC server]]>
  7551. </doc>
  7552. </method>
  7553. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7554. abstract="false" native="false" synchronized="false"
  7555. static="false" final="false" visibility="public"
  7556. deprecated="not deprecated">
  7557. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7558. <exception name="IOException" type="java.io.IOException"/>
  7559. <doc>
  7560. <![CDATA[@return an iterator over the corrupt files under the given path
  7561. (may contain duplicates if a file has more than one corrupt block)
  7562. @throws IOException]]>
  7563. </doc>
  7564. </method>
  7565. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7566. abstract="false" native="false" synchronized="false"
  7567. static="false" final="false" visibility="public"
  7568. deprecated="not deprecated">
  7569. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7570. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7571. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7572. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7573. <exception name="IOException" type="java.io.IOException"/>
  7574. <doc>
  7575. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7576. a directory.
  7577. Return the file's status and block locations If the path is a file.
  7578. If a returned status is a file, it contains the file's block locations.
  7579. @param f is the path
  7580. @return an iterator that traverses statuses of the files/directories
  7581. in the given path
  7582. If any IO exception (for example the input directory gets deleted while
  7583. listing is being executed), next() or hasNext() of the returned iterator
  7584. may throw a RuntimeException with the io exception as the cause.
  7585. @throws AccessControlException If access is denied
  7586. @throws FileNotFoundException If <code>f</code> does not exist
  7587. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7588. not supported
  7589. @throws IOException If an I/O error occurred
  7590. Exceptions applicable to file systems accessed over RPC:
  7591. @throws RpcClientException If an exception occurred in the RPC client
  7592. @throws RpcServerException If an exception occurred in the RPC server
  7593. @throws UnexpectedServerException If server implementation throws
  7594. undeclared exception to RPC server]]>
  7595. </doc>
  7596. </method>
  7597. <method name="deleteOnExit" return="boolean"
  7598. abstract="false" native="false" synchronized="false"
  7599. static="false" final="false" visibility="public"
  7600. deprecated="not deprecated">
  7601. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7602. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7603. <exception name="IOException" type="java.io.IOException"/>
  7604. <doc>
  7605. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7606. @param f the existing path to delete.
  7607. @return true if deleteOnExit is successful, otherwise false.
  7608. @throws AccessControlException If access is denied
  7609. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7610. not supported
  7611. @throws IOException If an I/O error occurred
  7612. Exceptions applicable to file systems accessed over RPC:
  7613. @throws RpcClientException If an exception occurred in the RPC client
  7614. @throws RpcServerException If an exception occurred in the RPC server
  7615. @throws UnexpectedServerException If server implementation throws
  7616. undeclared exception to RPC server]]>
  7617. </doc>
  7618. </method>
  7619. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7620. abstract="false" native="false" synchronized="false"
  7621. static="false" final="false" visibility="public"
  7622. deprecated="not deprecated">
  7623. </method>
  7624. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7625. abstract="false" native="false" synchronized="false"
  7626. static="false" final="false" visibility="protected"
  7627. deprecated="not deprecated">
  7628. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7629. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7630. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7631. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7632. <exception name="IOException" type="java.io.IOException"/>
  7633. <doc>
  7634. <![CDATA[Resolves all symbolic links in the specified path.
  7635. Returns the new path object.]]>
  7636. </doc>
  7637. </method>
  7638. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7639. abstract="false" native="false" synchronized="false"
  7640. static="false" final="false" visibility="protected"
  7641. deprecated="not deprecated">
  7642. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7643. <exception name="IOException" type="java.io.IOException"/>
  7644. <doc>
  7645. <![CDATA[Resolves all symbolic links in the specified path leading up
  7646. to, but not including the final path component.
  7647. @param f path to resolve
  7648. @return the new path object.]]>
  7649. </doc>
  7650. </method>
  7651. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7652. abstract="false" native="false" synchronized="false"
  7653. static="true" final="false" visibility="public"
  7654. deprecated="not deprecated">
  7655. <param name="uri" type="java.net.URI"/>
  7656. <doc>
  7657. <![CDATA[Get the statistics for a particular file system
  7658. @param uri
  7659. the uri to lookup the statistics. Only scheme and authority part
  7660. of the uri are used as the key to store and lookup.
  7661. @return a statistics object]]>
  7662. </doc>
  7663. </method>
  7664. <method name="clearStatistics"
  7665. abstract="false" native="false" synchronized="false"
  7666. static="true" final="false" visibility="public"
  7667. deprecated="not deprecated">
  7668. <doc>
  7669. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7670. systems.]]>
  7671. </doc>
  7672. </method>
  7673. <method name="printStatistics"
  7674. abstract="false" native="false" synchronized="false"
  7675. static="true" final="false" visibility="public"
  7676. deprecated="not deprecated">
  7677. <doc>
  7678. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7679. scheme and authority.]]>
  7680. </doc>
  7681. </method>
  7682. <method name="getAllStatistics" return="java.util.Map"
  7683. abstract="false" native="false" synchronized="false"
  7684. static="true" final="false" visibility="public"
  7685. deprecated="not deprecated">
  7686. <doc>
  7687. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7688. consists of scheme and authority for the filesystem.]]>
  7689. </doc>
  7690. </method>
  7691. <method name="modifyAclEntries"
  7692. abstract="false" native="false" synchronized="false"
  7693. static="false" final="false" visibility="public"
  7694. deprecated="not deprecated">
  7695. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7696. <param name="aclSpec" type="java.util.List"/>
  7697. <exception name="IOException" type="java.io.IOException"/>
  7698. <doc>
  7699. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7700. entries or modify the permissions on existing ACL entries. All existing
  7701. ACL entries that are not specified in this call are retained without
  7702. changes. (Modifications are merged into the current ACL.)
  7703. @param path Path to modify
  7704. @param aclSpec List{@literal <}AclEntry{@literal >} describing
  7705. modifications
  7706. @throws IOException if an ACL could not be modified]]>
  7707. </doc>
  7708. </method>
  7709. <method name="removeAclEntries"
  7710. abstract="false" native="false" synchronized="false"
  7711. static="false" final="false" visibility="public"
  7712. deprecated="not deprecated">
  7713. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7714. <param name="aclSpec" type="java.util.List"/>
  7715. <exception name="IOException" type="java.io.IOException"/>
  7716. <doc>
  7717. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7718. retained.
  7719. @param path Path to modify
  7720. @param aclSpec List{@literal <}AclEntry{@literal >} describing entries
  7721. to remove
  7722. @throws IOException if an ACL could not be modified]]>
  7723. </doc>
  7724. </method>
  7725. <method name="removeDefaultAcl"
  7726. abstract="false" native="false" synchronized="false"
  7727. static="false" final="false" visibility="public"
  7728. deprecated="not deprecated">
  7729. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7730. <exception name="IOException" type="java.io.IOException"/>
  7731. <doc>
  7732. <![CDATA[Removes all default ACL entries from files and directories.
  7733. @param path Path to modify
  7734. @throws IOException if an ACL could not be modified]]>
  7735. </doc>
  7736. </method>
  7737. <method name="removeAcl"
  7738. abstract="false" native="false" synchronized="false"
  7739. static="false" final="false" visibility="public"
  7740. deprecated="not deprecated">
  7741. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7742. <exception name="IOException" type="java.io.IOException"/>
  7743. <doc>
  7744. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7745. for user, group, and others are retained for compatibility with permission
  7746. bits.
  7747. @param path Path to modify
  7748. @throws IOException if an ACL could not be removed]]>
  7749. </doc>
  7750. </method>
  7751. <method name="setAcl"
  7752. abstract="false" native="false" synchronized="false"
  7753. static="false" final="false" visibility="public"
  7754. deprecated="not deprecated">
  7755. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7756. <param name="aclSpec" type="java.util.List"/>
  7757. <exception name="IOException" type="java.io.IOException"/>
  7758. <doc>
  7759. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7760. entries.
  7761. @param path Path to modify
  7762. @param aclSpec List{@literal <}AclEntry{@literal >} describing
  7763. modifications, must include entries for user, group, and others for
  7764. compatibility with permission bits.
  7765. @throws IOException if an ACL could not be modified]]>
  7766. </doc>
  7767. </method>
  7768. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7769. abstract="false" native="false" synchronized="false"
  7770. static="false" final="false" visibility="public"
  7771. deprecated="not deprecated">
  7772. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7773. <exception name="IOException" type="java.io.IOException"/>
  7774. <doc>
  7775. <![CDATA[Gets the ACLs of files and directories.
  7776. @param path Path to get
  7777. @return RemoteIterator{@literal <}AclStatus{@literal >} which returns
  7778. each AclStatus
  7779. @throws IOException if an ACL could not be read]]>
  7780. </doc>
  7781. </method>
  7782. <method name="setXAttr"
  7783. abstract="false" native="false" synchronized="false"
  7784. static="false" final="false" visibility="public"
  7785. deprecated="not deprecated">
  7786. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7787. <param name="name" type="java.lang.String"/>
  7788. <param name="value" type="byte[]"/>
  7789. <exception name="IOException" type="java.io.IOException"/>
  7790. <doc>
  7791. <![CDATA[Set an xattr of a file or directory.
  7792. The name must be prefixed with the namespace followed by ".". For example,
  7793. "user.attr".
  7794. <p>
  7795. Refer to the HDFS extended attributes user documentation for details.
  7796. @param path Path to modify
  7797. @param name xattr name.
  7798. @param value xattr value.
  7799. @throws IOException]]>
  7800. </doc>
  7801. </method>
  7802. <method name="setXAttr"
  7803. abstract="false" native="false" synchronized="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7807. <param name="name" type="java.lang.String"/>
  7808. <param name="value" type="byte[]"/>
  7809. <param name="flag" type="java.util.EnumSet"/>
  7810. <exception name="IOException" type="java.io.IOException"/>
  7811. <doc>
  7812. <![CDATA[Set an xattr of a file or directory.
  7813. The name must be prefixed with the namespace followed by ".". For example,
  7814. "user.attr".
  7815. <p>
  7816. Refer to the HDFS extended attributes user documentation for details.
  7817. @param path Path to modify
  7818. @param name xattr name.
  7819. @param value xattr value.
  7820. @param flag xattr set flag
  7821. @throws IOException]]>
  7822. </doc>
  7823. </method>
  7824. <method name="getXAttr" return="byte[]"
  7825. abstract="false" native="false" synchronized="false"
  7826. static="false" final="false" visibility="public"
  7827. deprecated="not deprecated">
  7828. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7829. <param name="name" type="java.lang.String"/>
  7830. <exception name="IOException" type="java.io.IOException"/>
  7831. <doc>
  7832. <![CDATA[Get an xattr for a file or directory.
  7833. The name must be prefixed with the namespace followed by ".". For example,
  7834. "user.attr".
  7835. <p>
  7836. Refer to the HDFS extended attributes user documentation for details.
  7837. @param path Path to get extended attribute
  7838. @param name xattr name.
  7839. @return byte[] xattr value.
  7840. @throws IOException]]>
  7841. </doc>
  7842. </method>
  7843. <method name="getXAttrs" return="java.util.Map"
  7844. abstract="false" native="false" synchronized="false"
  7845. static="false" final="false" visibility="public"
  7846. deprecated="not deprecated">
  7847. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7848. <exception name="IOException" type="java.io.IOException"/>
  7849. <doc>
  7850. <![CDATA[Get all of the xattrs for a file or directory.
  7851. Only those xattrs for which the logged-in user has permissions to view
  7852. are returned.
  7853. <p>
  7854. Refer to the HDFS extended attributes user documentation for details.
  7855. @param path Path to get extended attributes
  7856. @return Map{@literal <}String, byte[]{@literal >} describing the XAttrs
  7857. of the file or directory
  7858. @throws IOException]]>
  7859. </doc>
  7860. </method>
  7861. <method name="getXAttrs" return="java.util.Map"
  7862. abstract="false" native="false" synchronized="false"
  7863. static="false" final="false" visibility="public"
  7864. deprecated="not deprecated">
  7865. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7866. <param name="names" type="java.util.List"/>
  7867. <exception name="IOException" type="java.io.IOException"/>
  7868. <doc>
  7869. <![CDATA[Get all of the xattrs for a file or directory.
  7870. Only those xattrs for which the logged-in user has permissions to view
  7871. are returned.
  7872. <p>
  7873. Refer to the HDFS extended attributes user documentation for details.
  7874. @param path Path to get extended attributes
  7875. @param names XAttr names.
  7876. @return Map{@literal <}String, byte[]{@literal >} describing the XAttrs
  7877. of the file or directory
  7878. @throws IOException]]>
  7879. </doc>
  7880. </method>
  7881. <method name="removeXAttr"
  7882. abstract="false" native="false" synchronized="false"
  7883. static="false" final="false" visibility="public"
  7884. deprecated="not deprecated">
  7885. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7886. <param name="name" type="java.lang.String"/>
  7887. <exception name="IOException" type="java.io.IOException"/>
  7888. <doc>
  7889. <![CDATA[Remove an xattr of a file or directory.
  7890. The name must be prefixed with the namespace followed by ".". For example,
  7891. "user.attr".
  7892. <p>
  7893. Refer to the HDFS extended attributes user documentation for details.
  7894. @param path Path to remove extended attribute
  7895. @param name xattr name
  7896. @throws IOException]]>
  7897. </doc>
  7898. </method>
  7899. <method name="listXAttrs" return="java.util.List"
  7900. abstract="false" native="false" synchronized="false"
  7901. static="false" final="false" visibility="public"
  7902. deprecated="not deprecated">
  7903. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7904. <exception name="IOException" type="java.io.IOException"/>
  7905. <doc>
  7906. <![CDATA[Get all of the xattr names for a file or directory.
  7907. Only those xattr names which the logged-in user has permissions to view
  7908. are returned.
  7909. <p>
  7910. Refer to the HDFS extended attributes user documentation for details.
  7911. @param path Path to get extended attributes
  7912. @return List{@literal <}String{@literal >} of the XAttr names of the
  7913. file or directory
  7914. @throws IOException]]>
  7915. </doc>
  7916. </method>
  7917. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7918. abstract="false" native="false" synchronized="false"
  7919. static="false" final="true" visibility="public"
  7920. deprecated="not deprecated">
  7921. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7922. <exception name="IOException" type="java.io.IOException"/>
  7923. <doc>
  7924. <![CDATA[Create a snapshot with a default name.
  7925. @param path The directory where snapshots will be taken.
  7926. @return the snapshot path.
  7927. @throws IOException If an I/O error occurred
  7928. <p>Exceptions applicable to file systems accessed over RPC:
  7929. @throws RpcClientException If an exception occurred in the RPC client
  7930. @throws RpcServerException If an exception occurred in the RPC server
  7931. @throws UnexpectedServerException If server implementation throws
  7932. undeclared exception to RPC server]]>
  7933. </doc>
  7934. </method>
  7935. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7936. abstract="false" native="false" synchronized="false"
  7937. static="false" final="false" visibility="public"
  7938. deprecated="not deprecated">
  7939. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7940. <param name="snapshotName" type="java.lang.String"/>
  7941. <exception name="IOException" type="java.io.IOException"/>
  7942. <doc>
  7943. <![CDATA[Create a snapshot.
  7944. @param path The directory where snapshots will be taken.
  7945. @param snapshotName The name of the snapshot
  7946. @return the snapshot path.
  7947. @throws IOException If an I/O error occurred
  7948. <p>Exceptions applicable to file systems accessed over RPC:
  7949. @throws RpcClientException If an exception occurred in the RPC client
  7950. @throws RpcServerException If an exception occurred in the RPC server
  7951. @throws UnexpectedServerException If server implementation throws
  7952. undeclared exception to RPC server]]>
  7953. </doc>
  7954. </method>
  7955. <method name="renameSnapshot"
  7956. abstract="false" native="false" synchronized="false"
  7957. static="false" final="false" visibility="public"
  7958. deprecated="not deprecated">
  7959. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7960. <param name="snapshotOldName" type="java.lang.String"/>
  7961. <param name="snapshotNewName" type="java.lang.String"/>
  7962. <exception name="IOException" type="java.io.IOException"/>
  7963. <doc>
  7964. <![CDATA[Rename a snapshot.
  7965. @param path The directory path where the snapshot was taken
  7966. @param snapshotOldName Old name of the snapshot
  7967. @param snapshotNewName New name of the snapshot
  7968. @throws IOException If an I/O error occurred
  7969. <p>Exceptions applicable to file systems accessed over RPC:
  7970. @throws RpcClientException If an exception occurred in the RPC client
  7971. @throws RpcServerException If an exception occurred in the RPC server
  7972. @throws UnexpectedServerException If server implementation throws
  7973. undeclared exception to RPC server]]>
  7974. </doc>
  7975. </method>
  7976. <method name="deleteSnapshot"
  7977. abstract="false" native="false" synchronized="false"
  7978. static="false" final="false" visibility="public"
  7979. deprecated="not deprecated">
  7980. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7981. <param name="snapshotName" type="java.lang.String"/>
  7982. <exception name="IOException" type="java.io.IOException"/>
  7983. <doc>
  7984. <![CDATA[Delete a snapshot of a directory.
  7985. @param path The directory that the to-be-deleted snapshot belongs to
  7986. @param snapshotName The name of the snapshot
  7987. @throws IOException If an I/O error occurred
  7988. <p>Exceptions applicable to file systems accessed over RPC:
  7989. @throws RpcClientException If an exception occurred in the RPC client
  7990. @throws RpcServerException If an exception occurred in the RPC server
  7991. @throws UnexpectedServerException If server implementation throws
  7992. undeclared exception to RPC server]]>
  7993. </doc>
  7994. </method>
  7995. <method name="satisfyStoragePolicy"
  7996. abstract="false" native="false" synchronized="false"
  7997. static="false" final="false" visibility="public"
  7998. deprecated="not deprecated">
  7999. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8000. <exception name="IOException" type="java.io.IOException"/>
  8001. <doc>
  8002. <![CDATA[Set the source path to satisfy storage policy.
  8003. @param path The source path referring to either a directory or a file.
  8004. @throws IOException]]>
  8005. </doc>
  8006. </method>
  8007. <method name="setStoragePolicy"
  8008. abstract="false" native="false" synchronized="false"
  8009. static="false" final="false" visibility="public"
  8010. deprecated="not deprecated">
  8011. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8012. <param name="policyName" type="java.lang.String"/>
  8013. <exception name="IOException" type="java.io.IOException"/>
  8014. <doc>
  8015. <![CDATA[Set the storage policy for a given file or directory.
  8016. @param path file or directory path.
  8017. @param policyName the name of the target storage policy. The list
  8018. of supported Storage policies can be retrieved
  8019. via {@link #getAllStoragePolicies}.]]>
  8020. </doc>
  8021. </method>
  8022. <method name="unsetStoragePolicy"
  8023. abstract="false" native="false" synchronized="false"
  8024. static="false" final="false" visibility="public"
  8025. deprecated="not deprecated">
  8026. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8027. <exception name="IOException" type="java.io.IOException"/>
  8028. <doc>
  8029. <![CDATA[Unset the storage policy set for a given file or directory.
  8030. @param src file or directory path.
  8031. @throws IOException]]>
  8032. </doc>
  8033. </method>
  8034. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  8035. abstract="false" native="false" synchronized="false"
  8036. static="false" final="false" visibility="public"
  8037. deprecated="not deprecated">
  8038. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8039. <exception name="IOException" type="java.io.IOException"/>
  8040. <doc>
  8041. <![CDATA[Query the effective storage policy ID for the given file or directory.
  8042. @param path file or directory path.
  8043. @return storage policy for give file.
  8044. @throws IOException]]>
  8045. </doc>
  8046. </method>
  8047. <method name="getAllStoragePolicies" return="java.util.Collection"
  8048. abstract="false" native="false" synchronized="false"
  8049. static="false" final="false" visibility="public"
  8050. deprecated="not deprecated">
  8051. <exception name="IOException" type="java.io.IOException"/>
  8052. <doc>
  8053. <![CDATA[Retrieve all the storage policies supported by this file system.
  8054. @return all storage policies supported by this filesystem.
  8055. @throws IOException]]>
  8056. </doc>
  8057. </method>
  8058. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  8059. abstract="false" native="false" synchronized="false"
  8060. static="false" final="false" visibility="public"
  8061. deprecated="not deprecated">
  8062. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8063. <exception name="IOException" type="java.io.IOException"/>
  8064. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  8065. <doc>
  8066. <![CDATA[Open a file for reading through a builder API.
  8067. Ultimately calls {@link #open(Path, int)} unless a subclass
  8068. executes the open command differently.
  8069. The semantics of this call are therefore the same as that of
  8070. {@link #open(Path, int)} with one special point: it is in
  8071. {@code FSDataInputStreamBuilder.build()} in which the open operation
  8072. takes place -it is there where all preconditions to the operation
  8073. are checked.
  8074. @param path file path
  8075. @return a FSDataInputStreamBuilder object to build the input stream
  8076. @throws IOException if some early checks cause IO failures.
  8077. @throws UnsupportedOperationException if support is checked early.]]>
  8078. </doc>
  8079. </method>
  8080. <method name="hasPathCapability" return="boolean"
  8081. abstract="false" native="false" synchronized="false"
  8082. static="false" final="false" visibility="public"
  8083. deprecated="not deprecated">
  8084. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8085. <param name="capability" type="java.lang.String"/>
  8086. <exception name="IOException" type="java.io.IOException"/>
  8087. <doc>
  8088. <![CDATA[Return the path capabilities of the bonded {@code AbstractFileSystem}.
  8089. @param path path to query the capability of.
  8090. @param capability string to query the stream support for.
  8091. @return true iff the capability is supported under that FS.
  8092. @throws IOException path resolution or other IO failure
  8093. @throws IllegalArgumentException invalid arguments]]>
  8094. </doc>
  8095. </method>
  8096. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8097. abstract="false" native="false" synchronized="false"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8101. <exception name="IOException" type="java.io.IOException"/>
  8102. <doc>
  8103. <![CDATA[Return a set of server default configuration values based on path.
  8104. @param path path to fetch server defaults
  8105. @return server default configuration values for path
  8106. @throws IOException an I/O error occurred]]>
  8107. </doc>
  8108. </method>
  8109. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  8110. abstract="false" native="false" synchronized="false"
  8111. static="false" final="false" visibility="public"
  8112. deprecated="not deprecated">
  8113. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  8114. <exception name="IOException" type="java.io.IOException"/>
  8115. <doc>
  8116. <![CDATA[Create a multipart uploader.
  8117. @param basePath file path under which all files are uploaded
  8118. @return a MultipartUploaderBuilder object to build the uploader
  8119. @throws IOException if some early checks cause IO failures.
  8120. @throws UnsupportedOperationException if support is checked early.]]>
  8121. </doc>
  8122. </method>
  8123. <field name="LOG" type="org.slf4j.Logger"
  8124. transient="false" volatile="false"
  8125. static="true" final="true" visibility="public"
  8126. deprecated="not deprecated">
  8127. </field>
  8128. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  8129. transient="false" volatile="false"
  8130. static="true" final="true" visibility="public"
  8131. deprecated="not deprecated">
  8132. <doc>
  8133. <![CDATA[Default permission for directory and symlink
  8134. In previous versions, this default permission was also used to
  8135. create files, so files created end up with ugo+x permission.
  8136. See HADOOP-9155 for detail.
  8137. Two new constants are added to solve this, please use
  8138. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  8139. {@link FileContext#FILE_DEFAULT_PERM} for file.
  8140. This constant is kept for compatibility.]]>
  8141. </doc>
  8142. </field>
  8143. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  8144. transient="false" volatile="false"
  8145. static="true" final="true" visibility="public"
  8146. deprecated="not deprecated">
  8147. <doc>
  8148. <![CDATA[Default permission for directory]]>
  8149. </doc>
  8150. </field>
  8151. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  8152. transient="false" volatile="false"
  8153. static="true" final="true" visibility="public"
  8154. deprecated="not deprecated">
  8155. <doc>
  8156. <![CDATA[Default permission for file]]>
  8157. </doc>
  8158. </field>
  8159. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  8160. transient="false" volatile="false"
  8161. static="true" final="true" visibility="public"
  8162. deprecated="not deprecated">
  8163. <doc>
  8164. <![CDATA[Priority of the FileContext shutdown hook.]]>
  8165. </doc>
  8166. </field>
  8167. <doc>
  8168. <![CDATA[The FileContext class provides an interface for users of the Hadoop
  8169. file system. It exposes a number of file system operations, e.g. create,
  8170. open, list.
  8171. <h2>Path Names</h2>
  8172. The Hadoop file system supports a URI namespace and URI names. This enables
  8173. multiple types of file systems to be referenced using fully-qualified URIs.
  8174. Two common Hadoop file system implementations are
  8175. <ul>
  8176. <li>the local file system: file:///path
  8177. <li>the HDFS file system: hdfs://nnAddress:nnPort/path
  8178. </ul>
  8179. The Hadoop file system also supports additional naming schemes besides URIs.
  8180. Hadoop has the concept of a <i>default file system</i>, which implies a
  8181. default URI scheme and authority. This enables <i>slash-relative names</i>
  8182. relative to the default FS, which are more convenient for users and
  8183. application writers. The default FS is typically set by the user's
  8184. environment, though it can also be manually specified.
  8185. <p>
  8186. Hadoop also supports <i>working-directory-relative</i> names, which are paths
  8187. relative to the current working directory (similar to Unix). The working
  8188. directory can be in a different file system than the default FS.
  8189. <p>
  8190. Thus, Hadoop path names can be specified as one of the following:
  8191. <ul>
  8192. <li>a fully-qualified URI: scheme://authority/path (e.g.
  8193. hdfs://nnAddress:nnPort/foo/bar)
  8194. <li>a slash-relative name: path relative to the default file system (e.g.
  8195. /foo/bar)
  8196. <li>a working-directory-relative name: path relative to the working dir (e.g.
  8197. foo/bar)
  8198. </ul>
  8199. Relative paths with scheme (scheme:foo/bar) are illegal.
  8200. <h2>Role of FileContext and Configuration Defaults</h2>
  8201. The FileContext is the analogue of per-process file-related state in Unix. It
  8202. contains two properties:
  8203. <ul>
  8204. <li>the default file system (for resolving slash-relative names)
  8205. <li>the umask (for file permissions)
  8206. </ul>
  8207. In general, these properties are obtained from the default configuration file
  8208. in the user's environment (see {@link Configuration}).
  8209. Further file system properties are specified on the server-side. File system
  8210. operations default to using these server-side defaults unless otherwise
  8211. specified.
  8212. <p>
  8213. The file system related server-side defaults are:
  8214. <ul>
  8215. <li> the home directory (default is "/user/userName")
  8216. <li> the initial wd (only for local fs)
  8217. <li> replication factor
  8218. <li> block size
  8219. <li> buffer size
  8220. <li> encryptDataTransfer
  8221. <li> checksum option. (checksumType and bytesPerChecksum)
  8222. </ul>
  8223. <h2>Example Usage</h2>
  8224. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  8225. Unspecified values come from core-defaults.xml in the release jar.
  8226. <ul>
  8227. <li> myFContext = FileContext.getFileContext(); // uses the default config
  8228. // which has your default FS
  8229. <li> myFContext.create(path, ...);
  8230. <li> myFContext.setWorkingDir(path);
  8231. <li> myFContext.open (path, ...);
  8232. <li>...
  8233. </ul>
  8234. Example 2: Get a FileContext with a specific URI as the default FS
  8235. <ul>
  8236. <li> myFContext = FileContext.getFileContext(URI);
  8237. <li> myFContext.create(path, ...);
  8238. <li>...
  8239. </ul>
  8240. Example 3: FileContext with local file system as the default
  8241. <ul>
  8242. <li> myFContext = FileContext.getLocalFSFileContext();
  8243. <li> myFContext.create(path, ...);
  8244. <li> ...
  8245. </ul>
  8246. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  8247. Generally you should not need use a config unless you are doing
  8248. <ul>
  8249. <li> configX = someConfigSomeOnePassedToYou;
  8250. <li> myFContext = getFileContext(configX); // configX is not changed,
  8251. // is passed down
  8252. <li> myFContext.create(path, ...);
  8253. <li>...
  8254. </ul>]]>
  8255. </doc>
  8256. </class>
  8257. <!-- end class org.apache.hadoop.fs.FileContext -->
  8258. <!-- start class org.apache.hadoop.fs.FileStatus -->
  8259. <class name="FileStatus" extends="java.lang.Object"
  8260. abstract="false"
  8261. static="false" final="false" visibility="public"
  8262. deprecated="not deprecated">
  8263. <implements name="org.apache.hadoop.io.Writable"/>
  8264. <implements name="java.lang.Comparable"/>
  8265. <implements name="java.io.Serializable"/>
  8266. <implements name="java.io.ObjectInputValidation"/>
  8267. <constructor name="FileStatus"
  8268. static="false" final="false" visibility="public"
  8269. deprecated="not deprecated">
  8270. </constructor>
  8271. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  8272. static="false" final="false" visibility="public"
  8273. deprecated="not deprecated">
  8274. </constructor>
  8275. <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"
  8276. static="false" final="false" visibility="public"
  8277. deprecated="not deprecated">
  8278. <doc>
  8279. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  8280. </doc>
  8281. </constructor>
  8282. <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"
  8283. static="false" final="false" visibility="public"
  8284. deprecated="not deprecated">
  8285. </constructor>
  8286. <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"
  8287. static="false" final="false" visibility="public"
  8288. deprecated="not deprecated">
  8289. </constructor>
  8290. <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"
  8291. static="false" final="false" visibility="public"
  8292. deprecated="not deprecated">
  8293. </constructor>
  8294. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  8295. static="false" final="false" visibility="public"
  8296. deprecated="not deprecated">
  8297. <exception name="IOException" type="java.io.IOException"/>
  8298. <doc>
  8299. <![CDATA[Copy constructor.
  8300. @param other FileStatus to copy]]>
  8301. </doc>
  8302. </constructor>
  8303. <method name="attributes" return="java.util.Set"
  8304. abstract="false" native="false" synchronized="false"
  8305. static="true" final="false" visibility="public"
  8306. deprecated="not deprecated">
  8307. <param name="acl" type="boolean"/>
  8308. <param name="crypt" type="boolean"/>
  8309. <param name="ec" type="boolean"/>
  8310. <param name="sn" type="boolean"/>
  8311. <doc>
  8312. <![CDATA[Convert boolean attributes to a set of flags.
  8313. @param acl See {@link AttrFlags#HAS_ACL}.
  8314. @param crypt See {@link AttrFlags#HAS_CRYPT}.
  8315. @param ec See {@link AttrFlags#HAS_EC}.
  8316. @param sn See {@link AttrFlags#SNAPSHOT_ENABLED}.
  8317. @return converted set of flags.]]>
  8318. </doc>
  8319. </method>
  8320. <method name="getLen" return="long"
  8321. abstract="false" native="false" synchronized="false"
  8322. static="false" final="false" visibility="public"
  8323. deprecated="not deprecated">
  8324. <doc>
  8325. <![CDATA[Get the length of this file, in bytes.
  8326. @return the length of this file, in bytes.]]>
  8327. </doc>
  8328. </method>
  8329. <method name="isFile" return="boolean"
  8330. abstract="false" native="false" synchronized="false"
  8331. static="false" final="false" visibility="public"
  8332. deprecated="not deprecated">
  8333. <doc>
  8334. <![CDATA[Is this a file?
  8335. @return true if this is a file]]>
  8336. </doc>
  8337. </method>
  8338. <method name="isDirectory" return="boolean"
  8339. abstract="false" native="false" synchronized="false"
  8340. static="false" final="false" visibility="public"
  8341. deprecated="not deprecated">
  8342. <doc>
  8343. <![CDATA[Is this a directory?
  8344. @return true if this is a directory]]>
  8345. </doc>
  8346. </method>
  8347. <method name="isDir" return="boolean"
  8348. abstract="false" native="false" synchronized="false"
  8349. static="false" final="true" visibility="public"
  8350. deprecated="Use {@link FileStatus#isFile()},
  8351. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8352. instead.">
  8353. <doc>
  8354. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  8355. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8356. @return true if this is a directory.
  8357. @deprecated Use {@link FileStatus#isFile()},
  8358. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8359. instead.]]>
  8360. </doc>
  8361. </method>
  8362. <method name="isSymlink" return="boolean"
  8363. abstract="false" native="false" synchronized="false"
  8364. static="false" final="false" visibility="public"
  8365. deprecated="not deprecated">
  8366. <doc>
  8367. <![CDATA[Is this a symbolic link?
  8368. @return true if this is a symbolic link]]>
  8369. </doc>
  8370. </method>
  8371. <method name="getBlockSize" return="long"
  8372. abstract="false" native="false" synchronized="false"
  8373. static="false" final="false" visibility="public"
  8374. deprecated="not deprecated">
  8375. <doc>
  8376. <![CDATA[Get the block size of the file.
  8377. @return the number of bytes]]>
  8378. </doc>
  8379. </method>
  8380. <method name="getReplication" return="short"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <doc>
  8385. <![CDATA[Get the replication factor of a file.
  8386. @return the replication factor of a file.]]>
  8387. </doc>
  8388. </method>
  8389. <method name="getModificationTime" return="long"
  8390. abstract="false" native="false" synchronized="false"
  8391. static="false" final="false" visibility="public"
  8392. deprecated="not deprecated">
  8393. <doc>
  8394. <![CDATA[Get the modification time of the file.
  8395. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  8396. </doc>
  8397. </method>
  8398. <method name="getAccessTime" return="long"
  8399. abstract="false" native="false" synchronized="false"
  8400. static="false" final="false" visibility="public"
  8401. deprecated="not deprecated">
  8402. <doc>
  8403. <![CDATA[Get the access time of the file.
  8404. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  8405. </doc>
  8406. </method>
  8407. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  8408. abstract="false" native="false" synchronized="false"
  8409. static="false" final="false" visibility="public"
  8410. deprecated="not deprecated">
  8411. <doc>
  8412. <![CDATA[Get FsPermission associated with the file.
  8413. @return permission. If a filesystem does not have a notion of permissions
  8414. or if permissions could not be determined, then default
  8415. permissions equivalent of "rwxrwxrwx" is returned.]]>
  8416. </doc>
  8417. </method>
  8418. <method name="hasAcl" return="boolean"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. <doc>
  8423. <![CDATA[Tell whether the underlying file or directory has ACLs set.
  8424. @return true if the underlying file or directory has ACLs set.]]>
  8425. </doc>
  8426. </method>
  8427. <method name="isEncrypted" return="boolean"
  8428. abstract="false" native="false" synchronized="false"
  8429. static="false" final="false" visibility="public"
  8430. deprecated="not deprecated">
  8431. <doc>
  8432. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  8433. @return true if the underlying file is encrypted.]]>
  8434. </doc>
  8435. </method>
  8436. <method name="isErasureCoded" return="boolean"
  8437. abstract="false" native="false" synchronized="false"
  8438. static="false" final="false" visibility="public"
  8439. deprecated="not deprecated">
  8440. <doc>
  8441. <![CDATA[Tell whether the underlying file or directory is erasure coded or not.
  8442. @return true if the underlying file or directory is erasure coded.]]>
  8443. </doc>
  8444. </method>
  8445. <method name="isSnapshotEnabled" return="boolean"
  8446. abstract="false" native="false" synchronized="false"
  8447. static="false" final="false" visibility="public"
  8448. deprecated="not deprecated">
  8449. <doc>
  8450. <![CDATA[Check if directory is Snapshot enabled or not.
  8451. @return true if directory is snapshot enabled]]>
  8452. </doc>
  8453. </method>
  8454. <method name="getOwner" return="java.lang.String"
  8455. abstract="false" native="false" synchronized="false"
  8456. static="false" final="false" visibility="public"
  8457. deprecated="not deprecated">
  8458. <doc>
  8459. <![CDATA[Get the owner of the file.
  8460. @return owner of the file. The string could be empty if there is no
  8461. notion of owner of a file in a filesystem or if it could not
  8462. be determined (rare).]]>
  8463. </doc>
  8464. </method>
  8465. <method name="getGroup" return="java.lang.String"
  8466. abstract="false" native="false" synchronized="false"
  8467. static="false" final="false" visibility="public"
  8468. deprecated="not deprecated">
  8469. <doc>
  8470. <![CDATA[Get the group associated with the file.
  8471. @return group for the file. The string could be empty if there is no
  8472. notion of group of a file in a filesystem or if it could not
  8473. be determined (rare).]]>
  8474. </doc>
  8475. </method>
  8476. <method name="getPath" return="org.apache.hadoop.fs.Path"
  8477. abstract="false" native="false" synchronized="false"
  8478. static="false" final="false" visibility="public"
  8479. deprecated="not deprecated">
  8480. </method>
  8481. <method name="setPath"
  8482. abstract="false" native="false" synchronized="false"
  8483. static="false" final="false" visibility="public"
  8484. deprecated="not deprecated">
  8485. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8486. </method>
  8487. <method name="setPermission"
  8488. abstract="false" native="false" synchronized="false"
  8489. static="false" final="false" visibility="protected"
  8490. deprecated="not deprecated">
  8491. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8492. <doc>
  8493. <![CDATA[Sets permission.
  8494. @param permission if permission is null, default value is set]]>
  8495. </doc>
  8496. </method>
  8497. <method name="setOwner"
  8498. abstract="false" native="false" synchronized="false"
  8499. static="false" final="false" visibility="protected"
  8500. deprecated="not deprecated">
  8501. <param name="owner" type="java.lang.String"/>
  8502. <doc>
  8503. <![CDATA[Sets owner.
  8504. @param owner if it is null, default value is set]]>
  8505. </doc>
  8506. </method>
  8507. <method name="setGroup"
  8508. abstract="false" native="false" synchronized="false"
  8509. static="false" final="false" visibility="protected"
  8510. deprecated="not deprecated">
  8511. <param name="group" type="java.lang.String"/>
  8512. <doc>
  8513. <![CDATA[Sets group.
  8514. @param group if it is null, default value is set]]>
  8515. </doc>
  8516. </method>
  8517. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  8518. abstract="false" native="false" synchronized="false"
  8519. static="false" final="false" visibility="public"
  8520. deprecated="not deprecated">
  8521. <exception name="IOException" type="java.io.IOException"/>
  8522. <doc>
  8523. <![CDATA[@return The contents of the symbolic link.]]>
  8524. </doc>
  8525. </method>
  8526. <method name="setSymlink"
  8527. abstract="false" native="false" synchronized="false"
  8528. static="false" final="false" visibility="public"
  8529. deprecated="not deprecated">
  8530. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8531. </method>
  8532. <method name="compareTo" return="int"
  8533. abstract="false" native="false" synchronized="false"
  8534. static="false" final="false" visibility="public"
  8535. deprecated="not deprecated">
  8536. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  8537. <doc>
  8538. <![CDATA[Compare this FileStatus to another FileStatus
  8539. @param o the FileStatus to be compared.
  8540. @return a negative integer, zero, or a positive integer as this object
  8541. is less than, equal to, or greater than the specified object.]]>
  8542. </doc>
  8543. </method>
  8544. <method name="compareTo" return="int"
  8545. abstract="false" native="false" synchronized="false"
  8546. static="false" final="false" visibility="public"
  8547. deprecated="not deprecated">
  8548. <param name="o" type="java.lang.Object"/>
  8549. <doc>
  8550. <![CDATA[Compare this FileStatus to another FileStatus.
  8551. This method was added back by HADOOP-14683 to keep binary compatibility.
  8552. @param o the FileStatus to be compared.
  8553. @return a negative integer, zero, or a positive integer as this object
  8554. is less than, equal to, or greater than the specified object.
  8555. @throws ClassCastException if the specified object is not FileStatus]]>
  8556. </doc>
  8557. </method>
  8558. <method name="equals" return="boolean"
  8559. abstract="false" native="false" synchronized="false"
  8560. static="false" final="false" visibility="public"
  8561. deprecated="not deprecated">
  8562. <param name="o" type="java.lang.Object"/>
  8563. <doc>
  8564. <![CDATA[Compare if this object is equal to another object
  8565. @param o the object to be compared.
  8566. @return true if two file status has the same path name; false if not.]]>
  8567. </doc>
  8568. </method>
  8569. <method name="hashCode" return="int"
  8570. abstract="false" native="false" synchronized="false"
  8571. static="false" final="false" visibility="public"
  8572. deprecated="not deprecated">
  8573. <doc>
  8574. <![CDATA[Returns a hash code value for the object, which is defined as
  8575. the hash code of the path name.
  8576. @return a hash code value for the path name.]]>
  8577. </doc>
  8578. </method>
  8579. <method name="toString" return="java.lang.String"
  8580. abstract="false" native="false" synchronized="false"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. </method>
  8584. <method name="readFields"
  8585. abstract="false" native="false" synchronized="false"
  8586. static="false" final="false" visibility="public"
  8587. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8588. <param name="in" type="java.io.DataInput"/>
  8589. <exception name="IOException" type="java.io.IOException"/>
  8590. <doc>
  8591. <![CDATA[Read instance encoded as protobuf from stream.
  8592. @param in Input stream
  8593. @see PBHelper#convert(FileStatus)
  8594. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8595. </doc>
  8596. </method>
  8597. <method name="write"
  8598. abstract="false" native="false" synchronized="false"
  8599. static="false" final="false" visibility="public"
  8600. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8601. <param name="out" type="java.io.DataOutput"/>
  8602. <exception name="IOException" type="java.io.IOException"/>
  8603. <doc>
  8604. <![CDATA[Write instance encoded as protobuf to stream.
  8605. @param out Output stream
  8606. @see PBHelper#convert(FileStatus)
  8607. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8608. </doc>
  8609. </method>
  8610. <method name="validateObject"
  8611. abstract="false" native="false" synchronized="false"
  8612. static="false" final="false" visibility="public"
  8613. deprecated="not deprecated">
  8614. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  8615. </method>
  8616. <field name="NONE" type="java.util.Set"
  8617. transient="false" volatile="false"
  8618. static="true" final="true" visibility="public"
  8619. deprecated="not deprecated">
  8620. <doc>
  8621. <![CDATA[Shared, empty set of attributes (a common case for FileStatus).]]>
  8622. </doc>
  8623. </field>
  8624. <doc>
  8625. <![CDATA[Interface that represents the client side information for a file.]]>
  8626. </doc>
  8627. </class>
  8628. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8629. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8630. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8631. abstract="true"
  8632. static="false" final="false" visibility="public"
  8633. deprecated="not deprecated">
  8634. <implements name="java.io.Closeable"/>
  8635. <implements name="org.apache.hadoop.security.token.DelegationTokenIssuer"/>
  8636. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  8637. <constructor name="FileSystem"
  8638. static="false" final="false" visibility="protected"
  8639. deprecated="not deprecated">
  8640. </constructor>
  8641. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8642. abstract="false" native="false" synchronized="false"
  8643. static="true" final="false" visibility="public"
  8644. deprecated="not deprecated">
  8645. <param name="uri" type="java.net.URI"/>
  8646. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8647. <param name="user" type="java.lang.String"/>
  8648. <exception name="IOException" type="java.io.IOException"/>
  8649. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8650. <doc>
  8651. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  8652. configuration and the user.
  8653. @param uri of the filesystem
  8654. @param conf the configuration to use
  8655. @param user to perform the get as
  8656. @return the filesystem instance
  8657. @throws IOException failure to load
  8658. @throws InterruptedException If the {@code UGI.doAs()} call was
  8659. somehow interrupted.]]>
  8660. </doc>
  8661. </method>
  8662. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8663. abstract="false" native="false" synchronized="false"
  8664. static="true" final="false" visibility="public"
  8665. deprecated="not deprecated">
  8666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8667. <exception name="IOException" type="java.io.IOException"/>
  8668. <doc>
  8669. <![CDATA[Returns the configured FileSystem implementation.
  8670. @param conf the configuration to use]]>
  8671. </doc>
  8672. </method>
  8673. <method name="getDefaultUri" return="java.net.URI"
  8674. abstract="false" native="false" synchronized="false"
  8675. static="true" final="false" visibility="public"
  8676. deprecated="not deprecated">
  8677. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8678. <doc>
  8679. <![CDATA[Get the default FileSystem URI from a configuration.
  8680. @param conf the configuration to use
  8681. @return the uri of the default filesystem]]>
  8682. </doc>
  8683. </method>
  8684. <method name="setDefaultUri"
  8685. abstract="false" native="false" synchronized="false"
  8686. static="true" final="false" visibility="public"
  8687. deprecated="not deprecated">
  8688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8689. <param name="uri" type="java.net.URI"/>
  8690. <doc>
  8691. <![CDATA[Set the default FileSystem URI in a configuration.
  8692. @param conf the configuration to alter
  8693. @param uri the new default filesystem uri]]>
  8694. </doc>
  8695. </method>
  8696. <method name="setDefaultUri"
  8697. abstract="false" native="false" synchronized="false"
  8698. static="true" final="false" visibility="public"
  8699. deprecated="not deprecated">
  8700. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8701. <param name="uri" type="java.lang.String"/>
  8702. <doc>
  8703. <![CDATA[Set the default FileSystem URI in a configuration.
  8704. @param conf the configuration to alter
  8705. @param uri the new default filesystem uri]]>
  8706. </doc>
  8707. </method>
  8708. <method name="initialize"
  8709. abstract="false" native="false" synchronized="false"
  8710. static="false" final="false" visibility="public"
  8711. deprecated="not deprecated">
  8712. <param name="name" type="java.net.URI"/>
  8713. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8714. <exception name="IOException" type="java.io.IOException"/>
  8715. <doc>
  8716. <![CDATA[Initialize a FileSystem.
  8717. Called after the new FileSystem instance is constructed, and before it
  8718. is ready for use.
  8719. FileSystem implementations overriding this method MUST forward it to
  8720. their superclass, though the order in which it is done, and whether
  8721. to alter the configuration before the invocation are options of the
  8722. subclass.
  8723. @param name a URI whose authority section names the host, port, etc.
  8724. for this FileSystem
  8725. @param conf the configuration
  8726. @throws IOException on any failure to initialize this instance.
  8727. @throws IllegalArgumentException if the URI is considered invalid.]]>
  8728. </doc>
  8729. </method>
  8730. <method name="getScheme" return="java.lang.String"
  8731. abstract="false" native="false" synchronized="false"
  8732. static="false" final="false" visibility="public"
  8733. deprecated="not deprecated">
  8734. <doc>
  8735. <![CDATA[Return the protocol scheme for this FileSystem.
  8736. <p>
  8737. This implementation throws an <code>UnsupportedOperationException</code>.
  8738. @return the protocol scheme for this FileSystem.
  8739. @throws UnsupportedOperationException if the operation is unsupported
  8740. (default).]]>
  8741. </doc>
  8742. </method>
  8743. <method name="getUri" return="java.net.URI"
  8744. abstract="true" native="false" synchronized="false"
  8745. static="false" final="false" visibility="public"
  8746. deprecated="not deprecated">
  8747. <doc>
  8748. <![CDATA[Returns a URI which identifies this FileSystem.
  8749. @return the URI of this filesystem.]]>
  8750. </doc>
  8751. </method>
  8752. <method name="getCanonicalUri" return="java.net.URI"
  8753. abstract="false" native="false" synchronized="false"
  8754. static="false" final="false" visibility="protected"
  8755. deprecated="not deprecated">
  8756. <doc>
  8757. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  8758. The default implementation simply calls {@link #canonicalizeUri(URI)}
  8759. on the filesystem's own URI, so subclasses typically only need to
  8760. implement that method.
  8761. @see #canonicalizeUri(URI)]]>
  8762. </doc>
  8763. </method>
  8764. <method name="canonicalizeUri" return="java.net.URI"
  8765. abstract="false" native="false" synchronized="false"
  8766. static="false" final="false" visibility="protected"
  8767. deprecated="not deprecated">
  8768. <param name="uri" type="java.net.URI"/>
  8769. <doc>
  8770. <![CDATA[Canonicalize the given URI.
  8771. This is implementation-dependent, and may for example consist of
  8772. canonicalizing the hostname using DNS and adding the default
  8773. port if not specified.
  8774. The default implementation simply fills in the default port if
  8775. not specified and if {@link #getDefaultPort()} returns a
  8776. default port.
  8777. @return URI
  8778. @see NetUtils#getCanonicalUri(URI, int)]]>
  8779. </doc>
  8780. </method>
  8781. <method name="getDefaultPort" return="int"
  8782. abstract="false" native="false" synchronized="false"
  8783. static="false" final="false" visibility="protected"
  8784. deprecated="not deprecated">
  8785. <doc>
  8786. <![CDATA[Get the default port for this FileSystem.
  8787. @return the default port or 0 if there isn't one]]>
  8788. </doc>
  8789. </method>
  8790. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8791. abstract="false" native="false" synchronized="false"
  8792. static="true" final="false" visibility="protected"
  8793. deprecated="not deprecated">
  8794. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8795. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8796. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8797. <exception name="IOException" type="java.io.IOException"/>
  8798. </method>
  8799. <method name="getCanonicalServiceName" return="java.lang.String"
  8800. abstract="false" native="false" synchronized="false"
  8801. static="false" final="false" visibility="public"
  8802. deprecated="not deprecated">
  8803. <doc>
  8804. <![CDATA[Get a canonical service name for this FileSystem.
  8805. The token cache is the only user of the canonical service name,
  8806. and uses it to lookup this FileSystem's service tokens.
  8807. If the file system provides a token of its own then it must have a
  8808. canonical name, otherwise the canonical name can be null.
  8809. Default implementation: If the FileSystem has child file systems
  8810. (such as an embedded file system) then it is assumed that the FS has no
  8811. tokens of its own and hence returns a null name; otherwise a service
  8812. name is built using Uri and port.
  8813. @return a service string that uniquely identifies this file system, null
  8814. if the filesystem does not implement tokens
  8815. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8816. </doc>
  8817. </method>
  8818. <method name="getName" return="java.lang.String"
  8819. abstract="false" native="false" synchronized="false"
  8820. static="false" final="false" visibility="public"
  8821. deprecated="call {@link #getUri()} instead.">
  8822. <doc>
  8823. <![CDATA[@deprecated call {@link #getUri()} instead.]]>
  8824. </doc>
  8825. </method>
  8826. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8827. abstract="false" native="false" synchronized="false"
  8828. static="true" final="false" visibility="public"
  8829. deprecated="call {@link #get(URI, Configuration)} instead.">
  8830. <param name="name" type="java.lang.String"/>
  8831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8832. <exception name="IOException" type="java.io.IOException"/>
  8833. <doc>
  8834. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.]]>
  8835. </doc>
  8836. </method>
  8837. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8838. abstract="false" native="false" synchronized="false"
  8839. static="true" final="false" visibility="public"
  8840. deprecated="not deprecated">
  8841. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8842. <exception name="IOException" type="java.io.IOException"/>
  8843. <doc>
  8844. <![CDATA[Get the local FileSystem.
  8845. @param conf the configuration to configure the FileSystem with
  8846. if it is newly instantiated.
  8847. @return a LocalFileSystem
  8848. @throws IOException if somehow the local FS cannot be instantiated.]]>
  8849. </doc>
  8850. </method>
  8851. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8852. abstract="false" native="false" synchronized="false"
  8853. static="true" final="false" visibility="public"
  8854. deprecated="not deprecated">
  8855. <param name="uri" type="java.net.URI"/>
  8856. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8857. <exception name="IOException" type="java.io.IOException"/>
  8858. <doc>
  8859. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  8860. <ol>
  8861. <li>
  8862. If the configuration has the property
  8863. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  8864. a new instance will be created, initialized with the supplied URI and
  8865. configuration, then returned without being cached.
  8866. </li>
  8867. <li>
  8868. If the there is a cached FS instance matching the same URI, it will
  8869. be returned.
  8870. </li>
  8871. <li>
  8872. Otherwise: a new FS instance will be created, initialized with the
  8873. configuration and URI, cached and returned to the caller.
  8874. </li>
  8875. </ol>
  8876. @throws IOException if the FileSystem cannot be instantiated.]]>
  8877. </doc>
  8878. </method>
  8879. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8880. abstract="false" native="false" synchronized="false"
  8881. static="true" final="false" visibility="public"
  8882. deprecated="not deprecated">
  8883. <param name="uri" type="java.net.URI"/>
  8884. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8885. <param name="user" type="java.lang.String"/>
  8886. <exception name="IOException" type="java.io.IOException"/>
  8887. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8888. <doc>
  8889. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8890. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  8891. @param uri of the filesystem
  8892. @param conf the configuration to use
  8893. @param user to perform the get as
  8894. @return filesystem instance
  8895. @throws IOException if the FileSystem cannot be instantiated.
  8896. @throws InterruptedException If the {@code UGI.doAs()} call was
  8897. somehow interrupted.]]>
  8898. </doc>
  8899. </method>
  8900. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8901. abstract="false" native="false" synchronized="false"
  8902. static="true" final="false" visibility="public"
  8903. deprecated="not deprecated">
  8904. <param name="uri" type="java.net.URI"/>
  8905. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  8906. <exception name="IOException" type="java.io.IOException"/>
  8907. <doc>
  8908. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  8909. The entire URI is passed to the FileSystem instance's initialize method.
  8910. This always returns a new FileSystem object.
  8911. @param uri FS URI
  8912. @param config configuration to use
  8913. @return the new FS instance
  8914. @throws IOException FS creation or initialization failure.]]>
  8915. </doc>
  8916. </method>
  8917. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8918. abstract="false" native="false" synchronized="false"
  8919. static="true" final="false" visibility="public"
  8920. deprecated="not deprecated">
  8921. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8922. <exception name="IOException" type="java.io.IOException"/>
  8923. <doc>
  8924. <![CDATA[Returns a unique configured FileSystem implementation for the default
  8925. filesystem of the supplied configuration.
  8926. This always returns a new FileSystem object.
  8927. @param conf the configuration to use
  8928. @return the new FS instance
  8929. @throws IOException FS creation or initialization failure.]]>
  8930. </doc>
  8931. </method>
  8932. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8933. abstract="false" native="false" synchronized="false"
  8934. static="true" final="false" visibility="public"
  8935. deprecated="not deprecated">
  8936. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8937. <exception name="IOException" type="java.io.IOException"/>
  8938. <doc>
  8939. <![CDATA[Get a unique local FileSystem object.
  8940. @param conf the configuration to configure the FileSystem with
  8941. @return a new LocalFileSystem object.
  8942. @throws IOException FS creation or initialization failure.]]>
  8943. </doc>
  8944. </method>
  8945. <method name="closeAll"
  8946. abstract="false" native="false" synchronized="false"
  8947. static="true" final="false" visibility="public"
  8948. deprecated="not deprecated">
  8949. <exception name="IOException" type="java.io.IOException"/>
  8950. <doc>
  8951. <![CDATA[Close all cached FileSystem instances. After this operation, they
  8952. may not be used in any operations.
  8953. @throws IOException a problem arose closing one or more filesystem.]]>
  8954. </doc>
  8955. </method>
  8956. <method name="closeAllForUGI"
  8957. abstract="false" native="false" synchronized="false"
  8958. static="true" final="false" visibility="public"
  8959. deprecated="not deprecated">
  8960. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8961. <exception name="IOException" type="java.io.IOException"/>
  8962. <doc>
  8963. <![CDATA[Close all cached FileSystem instances for a given UGI.
  8964. Be sure those filesystems are not used anymore.
  8965. @param ugi user group info to close
  8966. @throws IOException a problem arose closing one or more filesystem.]]>
  8967. </doc>
  8968. </method>
  8969. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8970. abstract="false" native="false" synchronized="false"
  8971. static="false" final="false" visibility="public"
  8972. deprecated="not deprecated">
  8973. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8974. <doc>
  8975. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  8976. made absolute.
  8977. @param path to qualify.
  8978. @return this path if it contains a scheme and authority and is absolute, or
  8979. a new path that includes a path and authority and is fully qualified
  8980. @see Path#makeQualified(URI, Path)
  8981. @throws IllegalArgumentException if the path has a schema/URI different
  8982. from this FileSystem.]]>
  8983. </doc>
  8984. </method>
  8985. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8986. abstract="false" native="false" synchronized="false"
  8987. static="true" final="false" visibility="public"
  8988. deprecated="not deprecated">
  8989. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8990. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8991. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8992. <exception name="IOException" type="java.io.IOException"/>
  8993. <doc>
  8994. <![CDATA[Create a file with the provided permission.
  8995. The permission of the file is set to be the provided permission as in
  8996. setPermission, not permission{@literal &~}umask
  8997. The HDFS implementation is implemented using two RPCs.
  8998. It is understood that it is inefficient,
  8999. but the implementation is thread-safe. The other option is to change the
  9000. value of umask in configuration to be 0, but it is not thread-safe.
  9001. @param fs FileSystem
  9002. @param file the name of the file to be created
  9003. @param permission the permission of the file
  9004. @return an output stream
  9005. @throws IOException IO failure]]>
  9006. </doc>
  9007. </method>
  9008. <method name="mkdirs" return="boolean"
  9009. abstract="false" native="false" synchronized="false"
  9010. static="true" final="false" visibility="public"
  9011. deprecated="not deprecated">
  9012. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9013. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9014. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9015. <exception name="IOException" type="java.io.IOException"/>
  9016. <doc>
  9017. <![CDATA[Create a directory with the provided permission.
  9018. The permission of the directory is set to be the provided permission as in
  9019. setPermission, not permission{@literal &~}umask
  9020. @see #create(FileSystem, Path, FsPermission)
  9021. @param fs FileSystem handle
  9022. @param dir the name of the directory to be created
  9023. @param permission the permission of the directory
  9024. @return true if the directory creation succeeds; false otherwise
  9025. @throws IOException A problem creating the directories.]]>
  9026. </doc>
  9027. </method>
  9028. <method name="checkPath"
  9029. abstract="false" native="false" synchronized="false"
  9030. static="false" final="false" visibility="protected"
  9031. deprecated="not deprecated">
  9032. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9033. <doc>
  9034. <![CDATA[Check that a Path belongs to this FileSystem.
  9035. The base implementation performs case insensitive equality checks
  9036. of the URIs' schemes and authorities. Subclasses may implement slightly
  9037. different checks.
  9038. @param path to check
  9039. @throws IllegalArgumentException if the path is not considered to be
  9040. part of this FileSystem.]]>
  9041. </doc>
  9042. </method>
  9043. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9044. abstract="false" native="false" synchronized="false"
  9045. static="false" final="false" visibility="public"
  9046. deprecated="not deprecated">
  9047. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  9048. <param name="start" type="long"/>
  9049. <param name="len" type="long"/>
  9050. <exception name="IOException" type="java.io.IOException"/>
  9051. <doc>
  9052. <![CDATA[Return an array containing hostnames, offset and size of
  9053. portions of the given file. For nonexistent
  9054. file or regions, {@code null} is returned.
  9055. <pre>
  9056. if f == null :
  9057. result = null
  9058. elif f.getLen() {@literal <=} start:
  9059. result = []
  9060. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  9061. </pre>
  9062. This call is most helpful with and distributed filesystem
  9063. where the hostnames of machines that contain blocks of the given file
  9064. can be determined.
  9065. The default implementation returns an array containing one element:
  9066. <pre>
  9067. BlockLocation( { "localhost:9866" }, { "localhost" }, 0, file.getLen())
  9068. </pre>
  9069. In HDFS, if file is three-replicated, the returned array contains
  9070. elements like:
  9071. <pre>
  9072. BlockLocation(offset: 0, length: BLOCK_SIZE,
  9073. hosts: {"host1:9866", "host2:9866, host3:9866"})
  9074. BlockLocation(offset: BLOCK_SIZE, length: BLOCK_SIZE,
  9075. hosts: {"host2:9866", "host3:9866, host4:9866"})
  9076. </pre>
  9077. And if a file is erasure-coded, the returned BlockLocation are logical
  9078. block groups.
  9079. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  9080. 1. If the file size is less than one stripe size, say 2 * CELL_SIZE, then
  9081. there will be one BlockLocation returned, with 0 offset, actual file size
  9082. and 4 hosts (2 data blocks and 2 parity blocks) hosting the actual blocks.
  9083. 3. If the file size is less than one group size but greater than one
  9084. stripe size, then there will be one BlockLocation returned, with 0 offset,
  9085. actual file size with 5 hosts (3 data blocks and 2 parity blocks) hosting
  9086. the actual blocks.
  9087. 4. If the file size is greater than one group size, 3 * BLOCK_SIZE + 123
  9088. for example, then the result will be like:
  9089. <pre>
  9090. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  9091. "host2:9866","host3:9866","host4:9866","host5:9866"})
  9092. BlockLocation(offset: 3 * BLOCK_SIZE, length: 123, hosts: {"host1:9866",
  9093. "host4:9866", "host5:9866"})
  9094. </pre>
  9095. @param file FilesStatus to get data from
  9096. @param start offset into the given file
  9097. @param len length for which to get locations for
  9098. @throws IOException IO failure]]>
  9099. </doc>
  9100. </method>
  9101. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9102. abstract="false" native="false" synchronized="false"
  9103. static="false" final="false" visibility="public"
  9104. deprecated="not deprecated">
  9105. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9106. <param name="start" type="long"/>
  9107. <param name="len" type="long"/>
  9108. <exception name="IOException" type="java.io.IOException"/>
  9109. <doc>
  9110. <![CDATA[Return an array containing hostnames, offset and size of
  9111. portions of the given file. For a nonexistent
  9112. file or regions, {@code null} is returned.
  9113. This call is most helpful with location-aware distributed
  9114. filesystems, where it returns hostnames of machines that
  9115. contain the given file.
  9116. A FileSystem will normally return the equivalent result
  9117. of passing the {@code FileStatus} of the path to
  9118. {@link #getFileBlockLocations(FileStatus, long, long)}
  9119. @param p path is used to identify an FS since an FS could have
  9120. another FS that it could be delegating the call to
  9121. @param start offset into the given file
  9122. @param len length for which to get locations for
  9123. @throws FileNotFoundException when the path does not exist
  9124. @throws IOException IO failure]]>
  9125. </doc>
  9126. </method>
  9127. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  9128. abstract="false" native="false" synchronized="false"
  9129. static="false" final="false" visibility="public"
  9130. deprecated="use {@link #getServerDefaults(Path)} instead">
  9131. <exception name="IOException" type="java.io.IOException"/>
  9132. <doc>
  9133. <![CDATA[Return a set of server default configuration values.
  9134. @return server default configuration values
  9135. @throws IOException IO failure
  9136. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  9137. </doc>
  9138. </method>
  9139. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  9140. abstract="false" native="false" synchronized="false"
  9141. static="false" final="false" visibility="public"
  9142. deprecated="not deprecated">
  9143. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9144. <exception name="IOException" type="java.io.IOException"/>
  9145. <doc>
  9146. <![CDATA[Return a set of server default configuration values.
  9147. @param p path is used to identify an FS since an FS could have
  9148. another FS that it could be delegating the call to
  9149. @return server default configuration values
  9150. @throws IOException IO failure]]>
  9151. </doc>
  9152. </method>
  9153. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  9154. abstract="false" native="false" synchronized="false"
  9155. static="false" final="false" visibility="public"
  9156. deprecated="not deprecated">
  9157. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9158. <exception name="IOException" type="java.io.IOException"/>
  9159. <doc>
  9160. <![CDATA[Return the fully-qualified path of path, resolving the path
  9161. through any symlinks or mount point.
  9162. @param p path to be resolved
  9163. @return fully qualified path
  9164. @throws FileNotFoundException if the path is not present
  9165. @throws IOException for any other error]]>
  9166. </doc>
  9167. </method>
  9168. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9169. abstract="true" native="false" synchronized="false"
  9170. static="false" final="false" visibility="public"
  9171. deprecated="not deprecated">
  9172. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9173. <param name="bufferSize" type="int"/>
  9174. <exception name="IOException" type="java.io.IOException"/>
  9175. <doc>
  9176. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9177. @param f the file name to open
  9178. @param bufferSize the size of the buffer to be used.
  9179. @throws IOException IO failure]]>
  9180. </doc>
  9181. </method>
  9182. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9183. abstract="false" native="false" synchronized="false"
  9184. static="false" final="false" visibility="public"
  9185. deprecated="not deprecated">
  9186. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9187. <exception name="IOException" type="java.io.IOException"/>
  9188. <doc>
  9189. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9190. @param f the file to open
  9191. @throws IOException IO failure]]>
  9192. </doc>
  9193. </method>
  9194. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9195. abstract="false" native="false" synchronized="false"
  9196. static="false" final="false" visibility="public"
  9197. deprecated="not deprecated">
  9198. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  9199. <exception name="IOException" type="java.io.IOException"/>
  9200. <doc>
  9201. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  9202. implementation may encode metadata in PathHandle to address the
  9203. resource directly and verify that the resource referenced
  9204. satisfies constraints specified at its construciton.
  9205. @param fd PathHandle object returned by the FS authority.
  9206. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  9207. not satisfied
  9208. @throws IOException IO failure
  9209. @throws UnsupportedOperationException If {@link #open(PathHandle, int)}
  9210. not overridden by subclass]]>
  9211. </doc>
  9212. </method>
  9213. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9214. abstract="false" native="false" synchronized="false"
  9215. static="false" final="false" visibility="public"
  9216. deprecated="not deprecated">
  9217. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  9218. <param name="bufferSize" type="int"/>
  9219. <exception name="IOException" type="java.io.IOException"/>
  9220. <doc>
  9221. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  9222. implementation may encode metadata in PathHandle to address the
  9223. resource directly and verify that the resource referenced
  9224. satisfies constraints specified at its construciton.
  9225. @param fd PathHandle object returned by the FS authority.
  9226. @param bufferSize the size of the buffer to use
  9227. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  9228. not satisfied
  9229. @throws IOException IO failure
  9230. @throws UnsupportedOperationException If not overridden by subclass]]>
  9231. </doc>
  9232. </method>
  9233. <method name="getPathHandle" return="org.apache.hadoop.fs.PathHandle"
  9234. abstract="false" native="false" synchronized="false"
  9235. static="false" final="true" visibility="public"
  9236. deprecated="not deprecated">
  9237. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  9238. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  9239. <doc>
  9240. <![CDATA[Create a durable, serializable handle to the referent of the given
  9241. entity.
  9242. @param stat Referent in the target FileSystem
  9243. @param opt If absent, assume {@link HandleOpt#path()}.
  9244. @throws IllegalArgumentException If the FileStatus does not belong to
  9245. this FileSystem
  9246. @throws UnsupportedOperationException If {@link #createPathHandle}
  9247. not overridden by subclass.
  9248. @throws UnsupportedOperationException If this FileSystem cannot enforce
  9249. the specified constraints.]]>
  9250. </doc>
  9251. </method>
  9252. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  9253. abstract="false" native="false" synchronized="false"
  9254. static="false" final="false" visibility="protected"
  9255. deprecated="not deprecated">
  9256. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  9257. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  9258. <doc>
  9259. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  9260. @param stat Referent in the target FileSystem
  9261. @param opt Constraints that determine the validity of the
  9262. {@link PathHandle} reference.]]>
  9263. </doc>
  9264. </method>
  9265. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9266. abstract="false" native="false" synchronized="false"
  9267. static="false" final="false" visibility="public"
  9268. deprecated="not deprecated">
  9269. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9270. <exception name="IOException" type="java.io.IOException"/>
  9271. <doc>
  9272. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9273. Files are overwritten by default.
  9274. @param f the file to create
  9275. @throws IOException IO failure]]>
  9276. </doc>
  9277. </method>
  9278. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9279. abstract="false" native="false" synchronized="false"
  9280. static="false" final="false" visibility="public"
  9281. deprecated="not deprecated">
  9282. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9283. <param name="overwrite" type="boolean"/>
  9284. <exception name="IOException" type="java.io.IOException"/>
  9285. <doc>
  9286. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9287. @param f the file to create
  9288. @param overwrite if a file with this name already exists, then if true,
  9289. the file will be overwritten, and if false an exception will be thrown.
  9290. @throws IOException IO failure]]>
  9291. </doc>
  9292. </method>
  9293. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9294. abstract="false" native="false" synchronized="false"
  9295. static="false" final="false" visibility="public"
  9296. deprecated="not deprecated">
  9297. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9298. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9299. <exception name="IOException" type="java.io.IOException"/>
  9300. <doc>
  9301. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9302. reporting.
  9303. Files are overwritten by default.
  9304. @param f the file to create
  9305. @param progress to report progress
  9306. @throws IOException IO failure]]>
  9307. </doc>
  9308. </method>
  9309. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9310. abstract="false" native="false" synchronized="false"
  9311. static="false" final="false" visibility="public"
  9312. deprecated="not deprecated">
  9313. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9314. <param name="replication" type="short"/>
  9315. <exception name="IOException" type="java.io.IOException"/>
  9316. <doc>
  9317. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9318. Files are overwritten by default.
  9319. @param f the file to create
  9320. @param replication the replication factor
  9321. @throws IOException IO failure]]>
  9322. </doc>
  9323. </method>
  9324. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9325. abstract="false" native="false" synchronized="false"
  9326. static="false" final="false" visibility="public"
  9327. deprecated="not deprecated">
  9328. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9329. <param name="replication" type="short"/>
  9330. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9331. <exception name="IOException" type="java.io.IOException"/>
  9332. <doc>
  9333. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9334. reporting.
  9335. Files are overwritten by default.
  9336. @param f the file to create
  9337. @param replication the replication factor
  9338. @param progress to report progress
  9339. @throws IOException IO failure]]>
  9340. </doc>
  9341. </method>
  9342. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9343. abstract="false" native="false" synchronized="false"
  9344. static="false" final="false" visibility="public"
  9345. deprecated="not deprecated">
  9346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9347. <param name="overwrite" type="boolean"/>
  9348. <param name="bufferSize" type="int"/>
  9349. <exception name="IOException" type="java.io.IOException"/>
  9350. <doc>
  9351. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9352. @param f the file to create
  9353. @param overwrite if a path with this name already exists, then if true,
  9354. the file will be overwritten, and if false an error will be thrown.
  9355. @param bufferSize the size of the buffer to be used.
  9356. @throws IOException IO failure]]>
  9357. </doc>
  9358. </method>
  9359. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9360. abstract="false" native="false" synchronized="false"
  9361. static="false" final="false" visibility="public"
  9362. deprecated="not deprecated">
  9363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9364. <param name="overwrite" type="boolean"/>
  9365. <param name="bufferSize" type="int"/>
  9366. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9367. <exception name="IOException" type="java.io.IOException"/>
  9368. <doc>
  9369. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  9370. with write-progress reporting.
  9371. The frequency of callbacks is implementation-specific; it may be "none".
  9372. @param f the path of the file to open
  9373. @param overwrite if a file with this name already exists, then if true,
  9374. the file will be overwritten, and if false an error will be thrown.
  9375. @param bufferSize the size of the buffer to be used.
  9376. @throws IOException IO failure]]>
  9377. </doc>
  9378. </method>
  9379. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9380. abstract="false" native="false" synchronized="false"
  9381. static="false" final="false" visibility="public"
  9382. deprecated="not deprecated">
  9383. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9384. <param name="overwrite" type="boolean"/>
  9385. <param name="bufferSize" type="int"/>
  9386. <param name="replication" type="short"/>
  9387. <param name="blockSize" type="long"/>
  9388. <exception name="IOException" type="java.io.IOException"/>
  9389. <doc>
  9390. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9391. @param f the file name to open
  9392. @param overwrite if a file with this name already exists, then if true,
  9393. the file will be overwritten, and if false an error will be thrown.
  9394. @param bufferSize the size of the buffer to be used.
  9395. @param replication required block replication for the file.
  9396. @throws IOException IO failure]]>
  9397. </doc>
  9398. </method>
  9399. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9400. abstract="false" native="false" synchronized="false"
  9401. static="false" final="false" visibility="public"
  9402. deprecated="not deprecated">
  9403. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9404. <param name="overwrite" type="boolean"/>
  9405. <param name="bufferSize" type="int"/>
  9406. <param name="replication" type="short"/>
  9407. <param name="blockSize" type="long"/>
  9408. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9409. <exception name="IOException" type="java.io.IOException"/>
  9410. <doc>
  9411. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9412. reporting.
  9413. @param f the file name to open
  9414. @param overwrite if a file with this name already exists, then if true,
  9415. the file will be overwritten, and if false an error will be thrown.
  9416. @param bufferSize the size of the buffer to be used.
  9417. @param replication required block replication for the file.
  9418. @throws IOException IO failure]]>
  9419. </doc>
  9420. </method>
  9421. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9422. abstract="true" native="false" synchronized="false"
  9423. static="false" final="false" visibility="public"
  9424. deprecated="not deprecated">
  9425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9426. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9427. <param name="overwrite" type="boolean"/>
  9428. <param name="bufferSize" type="int"/>
  9429. <param name="replication" type="short"/>
  9430. <param name="blockSize" type="long"/>
  9431. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9432. <exception name="IOException" type="java.io.IOException"/>
  9433. <doc>
  9434. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9435. reporting.
  9436. @param f the file name to open
  9437. @param permission file permission
  9438. @param overwrite if a file with this name already exists, then if true,
  9439. the file will be overwritten, and if false an error will be thrown.
  9440. @param bufferSize the size of the buffer to be used.
  9441. @param replication required block replication for the file.
  9442. @param blockSize block size
  9443. @param progress the progress reporter
  9444. @throws IOException IO failure
  9445. @see #setPermission(Path, FsPermission)]]>
  9446. </doc>
  9447. </method>
  9448. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9449. abstract="false" native="false" synchronized="false"
  9450. static="false" final="false" visibility="public"
  9451. deprecated="not deprecated">
  9452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9453. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9454. <param name="flags" type="java.util.EnumSet"/>
  9455. <param name="bufferSize" type="int"/>
  9456. <param name="replication" type="short"/>
  9457. <param name="blockSize" type="long"/>
  9458. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9459. <exception name="IOException" type="java.io.IOException"/>
  9460. <doc>
  9461. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9462. reporting.
  9463. @param f the file name to open
  9464. @param permission file permission
  9465. @param flags {@link CreateFlag}s to use for this stream.
  9466. @param bufferSize the size of the buffer to be used.
  9467. @param replication required block replication for the file.
  9468. @param blockSize block size
  9469. @param progress the progress reporter
  9470. @throws IOException IO failure
  9471. @see #setPermission(Path, FsPermission)]]>
  9472. </doc>
  9473. </method>
  9474. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9475. abstract="false" native="false" synchronized="false"
  9476. static="false" final="false" visibility="public"
  9477. deprecated="not deprecated">
  9478. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9479. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9480. <param name="flags" type="java.util.EnumSet"/>
  9481. <param name="bufferSize" type="int"/>
  9482. <param name="replication" type="short"/>
  9483. <param name="blockSize" type="long"/>
  9484. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9485. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9486. <exception name="IOException" type="java.io.IOException"/>
  9487. <doc>
  9488. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  9489. checksum option.
  9490. @param f the file name to open
  9491. @param permission file permission
  9492. @param flags {@link CreateFlag}s to use for this stream.
  9493. @param bufferSize the size of the buffer to be used.
  9494. @param replication required block replication for the file.
  9495. @param blockSize block size
  9496. @param progress the progress reporter
  9497. @param checksumOpt checksum parameter. If null, the values
  9498. found in conf will be used.
  9499. @throws IOException IO failure
  9500. @see #setPermission(Path, FsPermission)]]>
  9501. </doc>
  9502. </method>
  9503. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9504. abstract="false" native="false" synchronized="false"
  9505. static="false" final="false" visibility="protected"
  9506. deprecated="not deprecated">
  9507. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9508. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9509. <param name="flag" type="java.util.EnumSet"/>
  9510. <param name="bufferSize" type="int"/>
  9511. <param name="replication" type="short"/>
  9512. <param name="blockSize" type="long"/>
  9513. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9514. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9515. <exception name="IOException" type="java.io.IOException"/>
  9516. <doc>
  9517. <![CDATA[This create has been added to support the FileContext that processes
  9518. the permission with umask before calling this method.
  9519. This a temporary method added to support the transition from FileSystem
  9520. to FileContext for user applications.
  9521. @throws IOException IO failure]]>
  9522. </doc>
  9523. </method>
  9524. <method name="primitiveMkdir" return="boolean"
  9525. abstract="false" native="false" synchronized="false"
  9526. static="false" final="false" visibility="protected"
  9527. deprecated="not deprecated">
  9528. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9529. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9530. <exception name="IOException" type="java.io.IOException"/>
  9531. <doc>
  9532. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9533. It has been added to support the FileContext that processes the permission
  9534. with umask before calling this method.
  9535. This a temporary method added to support the transition from FileSystem
  9536. to FileContext for user applications.
  9537. @param f path
  9538. @param absolutePermission permissions
  9539. @return true if the directory was actually created.
  9540. @throws IOException IO failure
  9541. @see #mkdirs(Path, FsPermission)]]>
  9542. </doc>
  9543. </method>
  9544. <method name="primitiveMkdir"
  9545. abstract="false" native="false" synchronized="false"
  9546. static="false" final="false" visibility="protected"
  9547. deprecated="not deprecated">
  9548. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9549. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9550. <param name="createParent" type="boolean"/>
  9551. <exception name="IOException" type="java.io.IOException"/>
  9552. <doc>
  9553. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9554. It has been added to support the FileContext that processes the permission
  9555. with umask before calling this method.
  9556. This a temporary method added to support the transition from FileSystem
  9557. to FileContext for user applications.]]>
  9558. </doc>
  9559. </method>
  9560. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9561. abstract="false" native="false" synchronized="false"
  9562. static="false" final="false" visibility="public"
  9563. deprecated="not deprecated">
  9564. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9565. <param name="overwrite" type="boolean"/>
  9566. <param name="bufferSize" type="int"/>
  9567. <param name="replication" type="short"/>
  9568. <param name="blockSize" type="long"/>
  9569. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9570. <exception name="IOException" type="java.io.IOException"/>
  9571. <doc>
  9572. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9573. reporting. Same as create(), except fails if parent directory doesn't
  9574. already exist.
  9575. @param f the file name to open
  9576. @param overwrite if a file with this name already exists, then if true,
  9577. the file will be overwritten, and if false an error will be thrown.
  9578. @param bufferSize the size of the buffer to be used.
  9579. @param replication required block replication for the file.
  9580. @param blockSize block size
  9581. @param progress the progress reporter
  9582. @throws IOException IO failure
  9583. @see #setPermission(Path, FsPermission)]]>
  9584. </doc>
  9585. </method>
  9586. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9587. abstract="false" native="false" synchronized="false"
  9588. static="false" final="false" visibility="public"
  9589. deprecated="not deprecated">
  9590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9591. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9592. <param name="overwrite" type="boolean"/>
  9593. <param name="bufferSize" type="int"/>
  9594. <param name="replication" type="short"/>
  9595. <param name="blockSize" type="long"/>
  9596. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9597. <exception name="IOException" type="java.io.IOException"/>
  9598. <doc>
  9599. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9600. reporting. Same as create(), except fails if parent directory doesn't
  9601. already exist.
  9602. @param f the file name to open
  9603. @param permission file permission
  9604. @param overwrite if a file with this name already exists, then if true,
  9605. the file will be overwritten, and if false an error will be thrown.
  9606. @param bufferSize the size of the buffer to be used.
  9607. @param replication required block replication for the file.
  9608. @param blockSize block size
  9609. @param progress the progress reporter
  9610. @throws IOException IO failure
  9611. @see #setPermission(Path, FsPermission)]]>
  9612. </doc>
  9613. </method>
  9614. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9615. abstract="false" native="false" synchronized="false"
  9616. static="false" final="false" visibility="public"
  9617. deprecated="not deprecated">
  9618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9619. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9620. <param name="flags" type="java.util.EnumSet"/>
  9621. <param name="bufferSize" type="int"/>
  9622. <param name="replication" type="short"/>
  9623. <param name="blockSize" type="long"/>
  9624. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9625. <exception name="IOException" type="java.io.IOException"/>
  9626. <doc>
  9627. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9628. reporting. Same as create(), except fails if parent directory doesn't
  9629. already exist.
  9630. @param f the file name to open
  9631. @param permission file permission
  9632. @param flags {@link CreateFlag}s to use for this stream.
  9633. @param bufferSize the size of the buffer to be used.
  9634. @param replication required block replication for the file.
  9635. @param blockSize block size
  9636. @param progress the progress reporter
  9637. @throws IOException IO failure
  9638. @see #setPermission(Path, FsPermission)]]>
  9639. </doc>
  9640. </method>
  9641. <method name="createNewFile" return="boolean"
  9642. abstract="false" native="false" synchronized="false"
  9643. static="false" final="false" visibility="public"
  9644. deprecated="not deprecated">
  9645. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9646. <exception name="IOException" type="java.io.IOException"/>
  9647. <doc>
  9648. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  9649. create fails, or if it already existed, return false.
  9650. <i>Important: the default implementation is not atomic</i>
  9651. @param f path to use for create
  9652. @throws IOException IO failure]]>
  9653. </doc>
  9654. </method>
  9655. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9656. abstract="false" native="false" synchronized="false"
  9657. static="false" final="false" visibility="public"
  9658. deprecated="not deprecated">
  9659. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9660. <exception name="IOException" type="java.io.IOException"/>
  9661. <doc>
  9662. <![CDATA[Append to an existing file (optional operation).
  9663. Same as
  9664. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  9665. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  9666. @param f the existing file to be appended.
  9667. @throws IOException IO failure
  9668. @throws UnsupportedOperationException if the operation is unsupported
  9669. (default).]]>
  9670. </doc>
  9671. </method>
  9672. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9673. abstract="false" native="false" synchronized="false"
  9674. static="false" final="false" visibility="public"
  9675. deprecated="not deprecated">
  9676. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9677. <param name="bufferSize" type="int"/>
  9678. <exception name="IOException" type="java.io.IOException"/>
  9679. <doc>
  9680. <![CDATA[Append to an existing file (optional operation).
  9681. Same as append(f, bufferSize, null).
  9682. @param f the existing file to be appended.
  9683. @param bufferSize the size of the buffer to be used.
  9684. @throws IOException IO failure
  9685. @throws UnsupportedOperationException if the operation is unsupported
  9686. (default).]]>
  9687. </doc>
  9688. </method>
  9689. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9690. abstract="true" native="false" synchronized="false"
  9691. static="false" final="false" visibility="public"
  9692. deprecated="not deprecated">
  9693. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9694. <param name="bufferSize" type="int"/>
  9695. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9696. <exception name="IOException" type="java.io.IOException"/>
  9697. <doc>
  9698. <![CDATA[Append to an existing file (optional operation).
  9699. @param f the existing file to be appended.
  9700. @param bufferSize the size of the buffer to be used.
  9701. @param progress for reporting progress if it is not null.
  9702. @throws IOException IO failure
  9703. @throws UnsupportedOperationException if the operation is unsupported
  9704. (default).]]>
  9705. </doc>
  9706. </method>
  9707. <method name="concat"
  9708. abstract="false" native="false" synchronized="false"
  9709. static="false" final="false" visibility="public"
  9710. deprecated="not deprecated">
  9711. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  9712. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9713. <exception name="IOException" type="java.io.IOException"/>
  9714. <doc>
  9715. <![CDATA[Concat existing files together.
  9716. @param trg the path to the target destination.
  9717. @param psrcs the paths to the sources to use for the concatenation.
  9718. @throws IOException IO failure
  9719. @throws UnsupportedOperationException if the operation is unsupported
  9720. (default).]]>
  9721. </doc>
  9722. </method>
  9723. <method name="getReplication" return="short"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="Use {@link #getFileStatus(Path)} instead">
  9727. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9728. <exception name="IOException" type="java.io.IOException"/>
  9729. <doc>
  9730. <![CDATA[Get the replication factor.
  9731. @deprecated Use {@link #getFileStatus(Path)} instead
  9732. @param src file name
  9733. @return file replication
  9734. @throws FileNotFoundException if the path does not resolve.
  9735. @throws IOException an IO failure]]>
  9736. </doc>
  9737. </method>
  9738. <method name="setReplication" return="boolean"
  9739. abstract="false" native="false" synchronized="false"
  9740. static="false" final="false" visibility="public"
  9741. deprecated="not deprecated">
  9742. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9743. <param name="replication" type="short"/>
  9744. <exception name="IOException" type="java.io.IOException"/>
  9745. <doc>
  9746. <![CDATA[Set the replication for an existing file.
  9747. If a filesystem does not support replication, it will always
  9748. return true: the check for a file existing may be bypassed.
  9749. This is the default behavior.
  9750. @param src file name
  9751. @param replication new replication
  9752. @throws IOException
  9753. @return true if successful, or the feature in unsupported;
  9754. false if replication is supported but the file does not exist,
  9755. or is a directory]]>
  9756. </doc>
  9757. </method>
  9758. <method name="rename" return="boolean"
  9759. abstract="true" native="false" synchronized="false"
  9760. static="false" final="false" visibility="public"
  9761. deprecated="not deprecated">
  9762. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9763. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9764. <exception name="IOException" type="java.io.IOException"/>
  9765. <doc>
  9766. <![CDATA[Renames Path src to Path dst.
  9767. @param src path to be renamed
  9768. @param dst new path after rename
  9769. @throws IOException on failure
  9770. @return true if rename is successful]]>
  9771. </doc>
  9772. </method>
  9773. <method name="rename"
  9774. abstract="false" native="false" synchronized="false"
  9775. static="false" final="false" visibility="protected"
  9776. deprecated="not deprecated">
  9777. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9778. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9779. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  9780. <exception name="IOException" type="java.io.IOException"/>
  9781. <doc>
  9782. <![CDATA[Renames Path src to Path dst
  9783. <ul>
  9784. <li>Fails if src is a file and dst is a directory.</li>
  9785. <li>Fails if src is a directory and dst is a file.</li>
  9786. <li>Fails if the parent of dst does not exist or is a file.</li>
  9787. </ul>
  9788. <p>
  9789. If OVERWRITE option is not passed as an argument, rename fails
  9790. if the dst already exists.
  9791. <p>
  9792. If OVERWRITE option is passed as an argument, rename overwrites
  9793. the dst if it is a file or an empty directory. Rename fails if dst is
  9794. a non-empty directory.
  9795. <p>
  9796. Note that atomicity of rename is dependent on the file system
  9797. implementation. Please refer to the file system documentation for
  9798. details. This default implementation is non atomic.
  9799. <p>
  9800. This method is deprecated since it is a temporary method added to
  9801. support the transition from FileSystem to FileContext for user
  9802. applications.
  9803. @param src path to be renamed
  9804. @param dst new path after rename
  9805. @throws FileNotFoundException src path does not exist, or the parent
  9806. path of dst does not exist.
  9807. @throws FileAlreadyExistsException dest path exists and is a file
  9808. @throws ParentNotDirectoryException if the parent path of dest is not
  9809. a directory
  9810. @throws IOException on failure]]>
  9811. </doc>
  9812. </method>
  9813. <method name="truncate" return="boolean"
  9814. abstract="false" native="false" synchronized="false"
  9815. static="false" final="false" visibility="public"
  9816. deprecated="not deprecated">
  9817. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9818. <param name="newLength" type="long"/>
  9819. <exception name="IOException" type="java.io.IOException"/>
  9820. <doc>
  9821. <![CDATA[Truncate the file in the indicated path to the indicated size.
  9822. <ul>
  9823. <li>Fails if path is a directory.</li>
  9824. <li>Fails if path does not exist.</li>
  9825. <li>Fails if path is not closed.</li>
  9826. <li>Fails if new size is greater than current size.</li>
  9827. </ul>
  9828. @param f The path to the file to be truncated
  9829. @param newLength The size the file is to be truncated to
  9830. @return <code>true</code> if the file has been truncated to the desired
  9831. <code>newLength</code> and is immediately available to be reused for
  9832. write operations such as <code>append</code>, or
  9833. <code>false</code> if a background process of adjusting the length of
  9834. the last block has been started, and clients should wait for it to
  9835. complete before proceeding with further file updates.
  9836. @throws IOException IO failure
  9837. @throws UnsupportedOperationException if the operation is unsupported
  9838. (default).]]>
  9839. </doc>
  9840. </method>
  9841. <method name="delete" return="boolean"
  9842. abstract="false" native="false" synchronized="false"
  9843. static="false" final="false" visibility="public"
  9844. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9845. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9846. <exception name="IOException" type="java.io.IOException"/>
  9847. <doc>
  9848. <![CDATA[Delete a file/directory.
  9849. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9850. </doc>
  9851. </method>
  9852. <method name="delete" return="boolean"
  9853. abstract="true" native="false" synchronized="false"
  9854. static="false" final="false" visibility="public"
  9855. deprecated="not deprecated">
  9856. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9857. <param name="recursive" type="boolean"/>
  9858. <exception name="IOException" type="java.io.IOException"/>
  9859. <doc>
  9860. <![CDATA[Delete a file.
  9861. @param f the path to delete.
  9862. @param recursive if path is a directory and set to
  9863. true, the directory is deleted else throws an exception. In
  9864. case of a file the recursive can be set to either true or false.
  9865. @return true if delete is successful else false.
  9866. @throws IOException IO failure]]>
  9867. </doc>
  9868. </method>
  9869. <method name="deleteOnExit" return="boolean"
  9870. abstract="false" native="false" synchronized="false"
  9871. static="false" final="false" visibility="public"
  9872. deprecated="not deprecated">
  9873. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9874. <exception name="IOException" type="java.io.IOException"/>
  9875. <doc>
  9876. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  9877. When the JVM shuts down cleanly, all cached FileSystem objects will be
  9878. closed automatically. These the marked paths will be deleted as a result.
  9879. If a FileSystem instance is not cached, i.e. has been created with
  9880. {@link #createFileSystem(URI, Configuration)}, then the paths will
  9881. be deleted in when {@link #close()} is called on that instance.
  9882. The path must exist in the filesystem at the time of the method call;
  9883. it does not have to exist at the time of JVM shutdown.
  9884. Notes
  9885. <ol>
  9886. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  9887. <li>The time to shut down a FileSystem will depends on the number of
  9888. files to delete. For filesystems where the cost of checking
  9889. for the existence of a file/directory and the actual delete operation
  9890. (for example: object stores) is high, the time to shutdown the JVM can be
  9891. significantly extended by over-use of this feature.</li>
  9892. <li>Connectivity problems with a remote filesystem may delay shutdown
  9893. further, and may cause the files to not be deleted.</li>
  9894. </ol>
  9895. @param f the path to delete.
  9896. @return true if deleteOnExit is successful, otherwise false.
  9897. @throws IOException IO failure]]>
  9898. </doc>
  9899. </method>
  9900. <method name="cancelDeleteOnExit" return="boolean"
  9901. abstract="false" native="false" synchronized="false"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9905. <doc>
  9906. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  9907. @param f the path to cancel deletion
  9908. @return true if the path was found in the delete-on-exit list.]]>
  9909. </doc>
  9910. </method>
  9911. <method name="processDeleteOnExit"
  9912. abstract="false" native="false" synchronized="false"
  9913. static="false" final="false" visibility="protected"
  9914. deprecated="not deprecated">
  9915. <doc>
  9916. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  9917. deletes all files and directories in the specified paths.
  9918. The time to process this operation is {@code O(paths)}, with the actual
  9919. time dependent on the time for existence and deletion operations to
  9920. complete, successfully or not.]]>
  9921. </doc>
  9922. </method>
  9923. <method name="exists" return="boolean"
  9924. abstract="false" native="false" synchronized="false"
  9925. static="false" final="false" visibility="public"
  9926. deprecated="not deprecated">
  9927. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9928. <exception name="IOException" type="java.io.IOException"/>
  9929. <doc>
  9930. <![CDATA[Check if a path exists.
  9931. It is highly discouraged to call this method back to back with other
  9932. {@link #getFileStatus(Path)} calls, as this will involve multiple redundant
  9933. RPC calls in HDFS.
  9934. @param f source path
  9935. @return true if the path exists
  9936. @throws IOException IO failure]]>
  9937. </doc>
  9938. </method>
  9939. <method name="isDirectory" return="boolean"
  9940. abstract="false" native="false" synchronized="false"
  9941. static="false" final="false" visibility="public"
  9942. deprecated="Use {@link #getFileStatus(Path)} instead">
  9943. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9944. <exception name="IOException" type="java.io.IOException"/>
  9945. <doc>
  9946. <![CDATA[True iff the named path is a directory.
  9947. Note: Avoid using this method. Instead reuse the FileStatus
  9948. returned by getFileStatus() or listStatus() methods.
  9949. @param f path to check
  9950. @throws IOException IO failure
  9951. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9952. </doc>
  9953. </method>
  9954. <method name="isFile" return="boolean"
  9955. abstract="false" native="false" synchronized="false"
  9956. static="false" final="false" visibility="public"
  9957. deprecated="Use {@link #getFileStatus(Path)} instead">
  9958. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9959. <exception name="IOException" type="java.io.IOException"/>
  9960. <doc>
  9961. <![CDATA[True iff the named path is a regular file.
  9962. Note: Avoid using this method. Instead reuse the FileStatus
  9963. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  9964. @param f path to check
  9965. @throws IOException IO failure
  9966. @deprecated Use {@link #getFileStatus(Path)} instead]]>
  9967. </doc>
  9968. </method>
  9969. <method name="getLength" return="long"
  9970. abstract="false" native="false" synchronized="false"
  9971. static="false" final="false" visibility="public"
  9972. deprecated="Use {@link #getFileStatus(Path)} instead.">
  9973. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9974. <exception name="IOException" type="java.io.IOException"/>
  9975. <doc>
  9976. <![CDATA[The number of bytes in a file.
  9977. @return the number of bytes; 0 for a directory
  9978. @deprecated Use {@link #getFileStatus(Path)} instead.
  9979. @throws FileNotFoundException if the path does not resolve
  9980. @throws IOException IO failure]]>
  9981. </doc>
  9982. </method>
  9983. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9984. abstract="false" native="false" synchronized="false"
  9985. static="false" final="false" visibility="public"
  9986. deprecated="not deprecated">
  9987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9988. <exception name="IOException" type="java.io.IOException"/>
  9989. <doc>
  9990. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9991. @param f path to use
  9992. @throws FileNotFoundException if the path does not resolve
  9993. @throws IOException IO failure]]>
  9994. </doc>
  9995. </method>
  9996. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  9997. abstract="false" native="false" synchronized="false"
  9998. static="false" final="false" visibility="public"
  9999. deprecated="not deprecated">
  10000. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10001. <exception name="IOException" type="java.io.IOException"/>
  10002. <doc>
  10003. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  10004. @param f path to use
  10005. @return the quota usage
  10006. @throws IOException IO failure]]>
  10007. </doc>
  10008. </method>
  10009. <method name="setQuota"
  10010. abstract="false" native="false" synchronized="false"
  10011. static="false" final="false" visibility="public"
  10012. deprecated="not deprecated">
  10013. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10014. <param name="namespaceQuota" type="long"/>
  10015. <param name="storagespaceQuota" type="long"/>
  10016. <exception name="IOException" type="java.io.IOException"/>
  10017. <doc>
  10018. <![CDATA[Set quota for the given {@link Path}.
  10019. @param src the target path to set quota for
  10020. @param namespaceQuota the namespace quota (i.e., # of files/directories)
  10021. to set
  10022. @param storagespaceQuota the storage space quota to set
  10023. @throws IOException IO failure]]>
  10024. </doc>
  10025. </method>
  10026. <method name="setQuotaByStorageType"
  10027. abstract="false" native="false" synchronized="false"
  10028. static="false" final="false" visibility="public"
  10029. deprecated="not deprecated">
  10030. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10031. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  10032. <param name="quota" type="long"/>
  10033. <exception name="IOException" type="java.io.IOException"/>
  10034. <doc>
  10035. <![CDATA[Set per storage type quota for the given {@link Path}.
  10036. @param src the target path to set storage type quota for
  10037. @param type the storage type to set
  10038. @param quota the quota to set for the given storage type
  10039. @throws IOException IO failure]]>
  10040. </doc>
  10041. </method>
  10042. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10043. abstract="true" native="false" synchronized="false"
  10044. static="false" final="false" visibility="public"
  10045. deprecated="not deprecated">
  10046. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10047. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10048. <exception name="IOException" type="java.io.IOException"/>
  10049. <doc>
  10050. <![CDATA[List the statuses of the files/directories in the given path if the path is
  10051. a directory.
  10052. <p>
  10053. Does not guarantee to return the List of files/directories status in a
  10054. sorted order.
  10055. <p>
  10056. Will not return null. Expect IOException upon access error.
  10057. @param f given path
  10058. @return the statuses of the files/directories in the given patch
  10059. @throws FileNotFoundException when the path does not exist
  10060. @throws IOException see specific implementation]]>
  10061. </doc>
  10062. </method>
  10063. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  10064. abstract="false" native="false" synchronized="false"
  10065. static="false" final="false" visibility="public"
  10066. deprecated="not deprecated">
  10067. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10068. <exception name="IOException" type="java.io.IOException"/>
  10069. <doc>
  10070. <![CDATA[List corrupted file blocks.
  10071. @return an iterator over the corrupt files under the given path
  10072. (may contain duplicates if a file has more than one corrupt block)
  10073. @throws UnsupportedOperationException if the operation is unsupported
  10074. (default).
  10075. @throws IOException IO failure]]>
  10076. </doc>
  10077. </method>
  10078. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10079. abstract="false" native="false" synchronized="false"
  10080. static="false" final="false" visibility="public"
  10081. deprecated="not deprecated">
  10082. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10083. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10084. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10085. <exception name="IOException" type="java.io.IOException"/>
  10086. <doc>
  10087. <![CDATA[Filter files/directories in the given path using the user-supplied path
  10088. filter.
  10089. <p>
  10090. Does not guarantee to return the List of files/directories status in a
  10091. sorted order.
  10092. @param f
  10093. a path name
  10094. @param filter
  10095. the user-supplied path filter
  10096. @return an array of FileStatus objects for the files under the given path
  10097. after applying the filter
  10098. @throws FileNotFoundException when the path does not exist
  10099. @throws IOException see specific implementation]]>
  10100. </doc>
  10101. </method>
  10102. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10103. abstract="false" native="false" synchronized="false"
  10104. static="false" final="false" visibility="public"
  10105. deprecated="not deprecated">
  10106. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  10107. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10108. <exception name="IOException" type="java.io.IOException"/>
  10109. <doc>
  10110. <![CDATA[Filter files/directories in the given list of paths using default
  10111. path filter.
  10112. <p>
  10113. Does not guarantee to return the List of files/directories status in a
  10114. sorted order.
  10115. @param files
  10116. a list of paths
  10117. @return a list of statuses for the files under the given paths after
  10118. applying the filter default Path filter
  10119. @throws FileNotFoundException when the path does not exist
  10120. @throws IOException see specific implementation]]>
  10121. </doc>
  10122. </method>
  10123. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10124. abstract="false" native="false" synchronized="false"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  10128. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10129. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10130. <exception name="IOException" type="java.io.IOException"/>
  10131. <doc>
  10132. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  10133. path filter.
  10134. <p>
  10135. Does not guarantee to return the List of files/directories status in a
  10136. sorted order.
  10137. @param files
  10138. a list of paths
  10139. @param filter
  10140. the user-supplied path filter
  10141. @return a list of statuses for the files under the given paths after
  10142. applying the filter
  10143. @throws FileNotFoundException when the path does not exist
  10144. @throws IOException see specific implementation]]>
  10145. </doc>
  10146. </method>
  10147. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10148. abstract="false" native="false" synchronized="false"
  10149. static="false" final="false" visibility="public"
  10150. deprecated="not deprecated">
  10151. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  10152. <exception name="IOException" type="java.io.IOException"/>
  10153. <doc>
  10154. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  10155. files. Results are sorted by their names.
  10156. <p>
  10157. A filename pattern is composed of <i>regular</i> characters and
  10158. <i>special pattern matching</i> characters, which are:
  10159. <dl>
  10160. <dd>
  10161. <dl>
  10162. <dt> <tt> ? </tt>
  10163. <dd> Matches any single character.
  10164. <p>
  10165. <dt> <tt> * </tt>
  10166. <dd> Matches zero or more characters.
  10167. <p>
  10168. <dt> <tt> [<i>abc</i>] </tt>
  10169. <dd> Matches a single character from character set
  10170. <tt>{<i>a,b,c</i>}</tt>.
  10171. <p>
  10172. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  10173. <dd> Matches a single character from the character range
  10174. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  10175. lexicographically less than or equal to character <tt><i>b</i></tt>.
  10176. <p>
  10177. <dt> <tt> [^<i>a</i>] </tt>
  10178. <dd> Matches a single character that is not from character set or range
  10179. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  10180. immediately to the right of the opening bracket.
  10181. <p>
  10182. <dt> <tt> \<i>c</i> </tt>
  10183. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  10184. <p>
  10185. <dt> <tt> {ab,cd} </tt>
  10186. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  10187. <p>
  10188. <dt> <tt> {ab,c{de,fh}} </tt>
  10189. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  10190. </dl>
  10191. </dd>
  10192. </dl>
  10193. @param pathPattern a glob specifying a path pattern
  10194. @return an array of paths that match the path pattern
  10195. @throws IOException IO failure]]>
  10196. </doc>
  10197. </method>
  10198. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10199. abstract="false" native="false" synchronized="false"
  10200. static="false" final="false" visibility="public"
  10201. deprecated="not deprecated">
  10202. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  10203. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10204. <exception name="IOException" type="java.io.IOException"/>
  10205. <doc>
  10206. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  10207. {@code pathPattern} and is accepted by the user-supplied path filter.
  10208. Results are sorted by their path names.
  10209. @param pathPattern a glob specifying the path pattern
  10210. @param filter a user-supplied path filter
  10211. @return null if {@code pathPattern} has no glob and the path does not exist
  10212. an empty array if {@code pathPattern} has a glob and no path
  10213. matches it else an array of {@link FileStatus} objects matching the
  10214. pattern
  10215. @throws IOException if any I/O error occurs when fetching file status]]>
  10216. </doc>
  10217. </method>
  10218. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10219. abstract="false" native="false" synchronized="false"
  10220. static="false" final="false" visibility="public"
  10221. deprecated="not deprecated">
  10222. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10223. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10224. <exception name="IOException" type="java.io.IOException"/>
  10225. <doc>
  10226. <![CDATA[List the statuses of the files/directories in the given path if the path is
  10227. a directory.
  10228. Return the file's status and block locations If the path is a file.
  10229. If a returned status is a file, it contains the file's block locations.
  10230. @param f is the path
  10231. @return an iterator that traverses statuses of the files/directories
  10232. in the given path
  10233. @throws FileNotFoundException If <code>f</code> does not exist
  10234. @throws IOException If an I/O error occurred]]>
  10235. </doc>
  10236. </method>
  10237. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10238. abstract="false" native="false" synchronized="false"
  10239. static="false" final="false" visibility="protected"
  10240. deprecated="not deprecated">
  10241. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10242. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10243. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10244. <exception name="IOException" type="java.io.IOException"/>
  10245. <doc>
  10246. <![CDATA[List a directory.
  10247. The returned results include its block location if it is a file
  10248. The results are filtered by the given path filter
  10249. @param f a path
  10250. @param filter a path filter
  10251. @return an iterator that traverses statuses of the files/directories
  10252. in the given path
  10253. @throws FileNotFoundException if <code>f</code> does not exist
  10254. @throws IOException if any I/O error occurred]]>
  10255. </doc>
  10256. </method>
  10257. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  10258. abstract="false" native="false" synchronized="false"
  10259. static="false" final="false" visibility="public"
  10260. deprecated="not deprecated">
  10261. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10262. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10263. <exception name="IOException" type="java.io.IOException"/>
  10264. <doc>
  10265. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  10266. while consuming the entries. Each FileSystem implementation should
  10267. override this method and provide a more efficient implementation, if
  10268. possible.
  10269. Does not guarantee to return the iterator that traverses statuses
  10270. of the files in a sorted order.
  10271. @param p target path
  10272. @return remote iterator
  10273. @throws FileNotFoundException if <code>p</code> does not exist
  10274. @throws IOException if any I/O error occurred]]>
  10275. </doc>
  10276. </method>
  10277. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="false" final="false" visibility="public"
  10280. deprecated="not deprecated">
  10281. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10282. <param name="recursive" type="boolean"/>
  10283. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10284. <exception name="IOException" type="java.io.IOException"/>
  10285. <doc>
  10286. <![CDATA[List the statuses and block locations of the files in the given path.
  10287. Does not guarantee to return the iterator that traverses statuses
  10288. of the files in a sorted order.
  10289. <pre>
  10290. If the path is a directory,
  10291. if recursive is false, returns files in the directory;
  10292. if recursive is true, return files in the subtree rooted at the path.
  10293. If the path is a file, return the file's status and block locations.
  10294. </pre>
  10295. @param f is the path
  10296. @param recursive if the subdirectories need to be traversed recursively
  10297. @return an iterator that traverses statuses of the files
  10298. @throws FileNotFoundException when the path does not exist;
  10299. @throws IOException see specific implementation]]>
  10300. </doc>
  10301. </method>
  10302. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10303. abstract="false" native="false" synchronized="false"
  10304. static="false" final="false" visibility="public"
  10305. deprecated="not deprecated">
  10306. <doc>
  10307. <![CDATA[Return the current user's home directory in this FileSystem.
  10308. The default implementation returns {@code "/user/$USER/"}.]]>
  10309. </doc>
  10310. </method>
  10311. <method name="setWorkingDirectory"
  10312. abstract="true" native="false" synchronized="false"
  10313. static="false" final="false" visibility="public"
  10314. deprecated="not deprecated">
  10315. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  10316. <doc>
  10317. <![CDATA[Set the current working directory for the given FileSystem. All relative
  10318. paths will be resolved relative to it.
  10319. @param new_dir Path of new working directory]]>
  10320. </doc>
  10321. </method>
  10322. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10323. abstract="true" native="false" synchronized="false"
  10324. static="false" final="false" visibility="public"
  10325. deprecated="not deprecated">
  10326. <doc>
  10327. <![CDATA[Get the current working directory for the given FileSystem
  10328. @return the directory pathname]]>
  10329. </doc>
  10330. </method>
  10331. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10332. abstract="false" native="false" synchronized="false"
  10333. static="false" final="false" visibility="protected"
  10334. deprecated="not deprecated">
  10335. <doc>
  10336. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  10337. will be removed.
  10338. The working directory is implemented in FileContext.
  10339. Some FileSystems like LocalFileSystem have an initial workingDir
  10340. that we use as the starting workingDir. For other file systems
  10341. like HDFS there is no built in notion of an initial workingDir.
  10342. @return if there is built in notion of workingDir then it
  10343. is returned; else a null is returned.]]>
  10344. </doc>
  10345. </method>
  10346. <method name="mkdirs" return="boolean"
  10347. abstract="false" native="false" synchronized="false"
  10348. static="false" final="false" visibility="public"
  10349. deprecated="not deprecated">
  10350. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10351. <exception name="IOException" type="java.io.IOException"/>
  10352. <doc>
  10353. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  10354. @param f path
  10355. @return true if the directory was created
  10356. @throws IOException IO failure]]>
  10357. </doc>
  10358. </method>
  10359. <method name="mkdirs" return="boolean"
  10360. abstract="true" native="false" synchronized="false"
  10361. static="false" final="false" visibility="public"
  10362. deprecated="not deprecated">
  10363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10365. <exception name="IOException" type="java.io.IOException"/>
  10366. <doc>
  10367. <![CDATA[Make the given file and all non-existent parents into
  10368. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  10369. Existence of the directory hierarchy is not an error.
  10370. @param f path to create
  10371. @param permission to apply to f
  10372. @throws IOException IO failure]]>
  10373. </doc>
  10374. </method>
  10375. <method name="copyFromLocalFile"
  10376. abstract="false" native="false" synchronized="false"
  10377. static="false" final="false" visibility="public"
  10378. deprecated="not deprecated">
  10379. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10380. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10381. <exception name="IOException" type="java.io.IOException"/>
  10382. <doc>
  10383. <![CDATA[The src file is on the local disk. Add it to filesystem at
  10384. the given dst name and the source is kept intact afterwards
  10385. @param src path
  10386. @param dst path
  10387. @throws IOException IO failure]]>
  10388. </doc>
  10389. </method>
  10390. <method name="moveFromLocalFile"
  10391. abstract="false" native="false" synchronized="false"
  10392. static="false" final="false" visibility="public"
  10393. deprecated="not deprecated">
  10394. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10395. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10396. <exception name="IOException" type="java.io.IOException"/>
  10397. <doc>
  10398. <![CDATA[The src files is on the local disk. Add it to filesystem at
  10399. the given dst name, removing the source afterwards.
  10400. @param srcs source paths
  10401. @param dst path
  10402. @throws IOException IO failure]]>
  10403. </doc>
  10404. </method>
  10405. <method name="moveFromLocalFile"
  10406. abstract="false" native="false" synchronized="false"
  10407. static="false" final="false" visibility="public"
  10408. deprecated="not deprecated">
  10409. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10410. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10411. <exception name="IOException" type="java.io.IOException"/>
  10412. <doc>
  10413. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10414. the given dst name, removing the source afterwards.
  10415. @param src local path
  10416. @param dst path
  10417. @throws IOException IO failure]]>
  10418. </doc>
  10419. </method>
  10420. <method name="copyFromLocalFile"
  10421. abstract="false" native="false" synchronized="false"
  10422. static="false" final="false" visibility="public"
  10423. deprecated="not deprecated">
  10424. <param name="delSrc" type="boolean"/>
  10425. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10426. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10427. <exception name="IOException" type="java.io.IOException"/>
  10428. <doc>
  10429. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10430. the given dst name.
  10431. delSrc indicates if the source should be removed
  10432. @param delSrc whether to delete the src
  10433. @param src path
  10434. @param dst path]]>
  10435. </doc>
  10436. </method>
  10437. <method name="copyFromLocalFile"
  10438. abstract="false" native="false" synchronized="false"
  10439. static="false" final="false" visibility="public"
  10440. deprecated="not deprecated">
  10441. <param name="delSrc" type="boolean"/>
  10442. <param name="overwrite" type="boolean"/>
  10443. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10444. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10445. <exception name="IOException" type="java.io.IOException"/>
  10446. <doc>
  10447. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  10448. the given dst name.
  10449. delSrc indicates if the source should be removed
  10450. @param delSrc whether to delete the src
  10451. @param overwrite whether to overwrite an existing file
  10452. @param srcs array of paths which are source
  10453. @param dst path
  10454. @throws IOException IO failure]]>
  10455. </doc>
  10456. </method>
  10457. <method name="copyFromLocalFile"
  10458. abstract="false" native="false" synchronized="false"
  10459. static="false" final="false" visibility="public"
  10460. deprecated="not deprecated">
  10461. <param name="delSrc" type="boolean"/>
  10462. <param name="overwrite" type="boolean"/>
  10463. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10464. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10465. <exception name="IOException" type="java.io.IOException"/>
  10466. <doc>
  10467. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10468. the given dst name.
  10469. delSrc indicates if the source should be removed
  10470. @param delSrc whether to delete the src
  10471. @param overwrite whether to overwrite an existing file
  10472. @param src path
  10473. @param dst path
  10474. @throws IOException IO failure]]>
  10475. </doc>
  10476. </method>
  10477. <method name="copyToLocalFile"
  10478. abstract="false" native="false" synchronized="false"
  10479. static="false" final="false" visibility="public"
  10480. deprecated="not deprecated">
  10481. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10482. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10483. <exception name="IOException" type="java.io.IOException"/>
  10484. <doc>
  10485. <![CDATA[Copy it a file from the remote filesystem to the local one.
  10486. @param src path src file in the remote filesystem
  10487. @param dst path local destination
  10488. @throws IOException IO failure]]>
  10489. </doc>
  10490. </method>
  10491. <method name="moveToLocalFile"
  10492. abstract="false" native="false" synchronized="false"
  10493. static="false" final="false" visibility="public"
  10494. deprecated="not deprecated">
  10495. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10496. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10497. <exception name="IOException" type="java.io.IOException"/>
  10498. <doc>
  10499. <![CDATA[Copy a file to the local filesystem, then delete it from the
  10500. remote filesystem (if successfully copied).
  10501. @param src path src file in the remote filesystem
  10502. @param dst path local destination
  10503. @throws IOException IO failure]]>
  10504. </doc>
  10505. </method>
  10506. <method name="copyToLocalFile"
  10507. abstract="false" native="false" synchronized="false"
  10508. static="false" final="false" visibility="public"
  10509. deprecated="not deprecated">
  10510. <param name="delSrc" type="boolean"/>
  10511. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10512. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10513. <exception name="IOException" type="java.io.IOException"/>
  10514. <doc>
  10515. <![CDATA[Copy it a file from a remote filesystem to the local one.
  10516. delSrc indicates if the src will be removed or not.
  10517. @param delSrc whether to delete the src
  10518. @param src path src file in the remote filesystem
  10519. @param dst path local destination
  10520. @throws IOException IO failure]]>
  10521. </doc>
  10522. </method>
  10523. <method name="copyToLocalFile"
  10524. abstract="false" native="false" synchronized="false"
  10525. static="false" final="false" visibility="public"
  10526. deprecated="not deprecated">
  10527. <param name="delSrc" type="boolean"/>
  10528. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10529. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10530. <param name="useRawLocalFileSystem" type="boolean"/>
  10531. <exception name="IOException" type="java.io.IOException"/>
  10532. <doc>
  10533. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  10534. Copy it from the remote filesystem to the local dst name.
  10535. delSrc indicates if the src will be removed
  10536. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  10537. as the local file system or not. RawLocalFileSystem is non checksumming,
  10538. So, It will not create any crc files at local.
  10539. @param delSrc
  10540. whether to delete the src
  10541. @param src
  10542. path
  10543. @param dst
  10544. path
  10545. @param useRawLocalFileSystem
  10546. whether to use RawLocalFileSystem as local file system or not.
  10547. @throws IOException for any IO error]]>
  10548. </doc>
  10549. </method>
  10550. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10551. abstract="false" native="false" synchronized="false"
  10552. static="false" final="false" visibility="public"
  10553. deprecated="not deprecated">
  10554. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10555. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10556. <exception name="IOException" type="java.io.IOException"/>
  10557. <doc>
  10558. <![CDATA[Returns a local file that the user can write output to. The caller
  10559. provides both the eventual target name in this FileSystem
  10560. and the local working file path.
  10561. If this FileSystem is local, we write directly into the target. If
  10562. the FileSystem is not local, we write into the tmp local area.
  10563. @param fsOutputFile path of output file
  10564. @param tmpLocalFile path of local tmp file
  10565. @throws IOException IO failure]]>
  10566. </doc>
  10567. </method>
  10568. <method name="completeLocalOutput"
  10569. abstract="false" native="false" synchronized="false"
  10570. static="false" final="false" visibility="public"
  10571. deprecated="not deprecated">
  10572. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10573. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10574. <exception name="IOException" type="java.io.IOException"/>
  10575. <doc>
  10576. <![CDATA[Called when we're all done writing to the target.
  10577. A local FS will do nothing, because we've written to exactly the
  10578. right place.
  10579. A remote FS will copy the contents of tmpLocalFile to the correct target at
  10580. fsOutputFile.
  10581. @param fsOutputFile path of output file
  10582. @param tmpLocalFile path to local tmp file
  10583. @throws IOException IO failure]]>
  10584. </doc>
  10585. </method>
  10586. <method name="close"
  10587. abstract="false" native="false" synchronized="false"
  10588. static="false" final="false" visibility="public"
  10589. deprecated="not deprecated">
  10590. <exception name="IOException" type="java.io.IOException"/>
  10591. <doc>
  10592. <![CDATA[Close this FileSystem instance.
  10593. Will release any held locks, delete all files queued for deletion
  10594. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  10595. from the cache, if cached.
  10596. After this operation, the outcome of any method call on this FileSystem
  10597. instance, or any input/output stream created by it is <i>undefined</i>.
  10598. @throws IOException IO failure]]>
  10599. </doc>
  10600. </method>
  10601. <method name="getUsed" return="long"
  10602. abstract="false" native="false" synchronized="false"
  10603. static="false" final="false" visibility="public"
  10604. deprecated="not deprecated">
  10605. <exception name="IOException" type="java.io.IOException"/>
  10606. <doc>
  10607. <![CDATA[Return the total size of all files in the filesystem.
  10608. @throws IOException IO failure]]>
  10609. </doc>
  10610. </method>
  10611. <method name="getUsed" return="long"
  10612. abstract="false" native="false" synchronized="false"
  10613. static="false" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10616. <exception name="IOException" type="java.io.IOException"/>
  10617. <doc>
  10618. <![CDATA[Return the total size of all files from a specified path.
  10619. @throws IOException IO failure]]>
  10620. </doc>
  10621. </method>
  10622. <method name="getBlockSize" return="long"
  10623. abstract="false" native="false" synchronized="false"
  10624. static="false" final="false" visibility="public"
  10625. deprecated="Use {@link #getFileStatus(Path)} instead">
  10626. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10627. <exception name="IOException" type="java.io.IOException"/>
  10628. <doc>
  10629. <![CDATA[Get the block size for a particular file.
  10630. @param f the filename
  10631. @return the number of bytes in a block
  10632. @deprecated Use {@link #getFileStatus(Path)} instead
  10633. @throws FileNotFoundException if the path is not present
  10634. @throws IOException IO failure]]>
  10635. </doc>
  10636. </method>
  10637. <method name="getDefaultBlockSize" return="long"
  10638. abstract="false" native="false" synchronized="false"
  10639. static="false" final="false" visibility="public"
  10640. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  10641. <doc>
  10642. <![CDATA[Return the number of bytes that large input files should be optimally
  10643. be split into to minimize I/O time.
  10644. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  10645. </doc>
  10646. </method>
  10647. <method name="getDefaultBlockSize" return="long"
  10648. abstract="false" native="false" synchronized="false"
  10649. static="false" final="false" visibility="public"
  10650. deprecated="not deprecated">
  10651. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10652. <doc>
  10653. <![CDATA[Return the number of bytes that large input files should be optimally
  10654. be split into to minimize I/O time. The given path will be used to
  10655. locate the actual filesystem. The full path does not have to exist.
  10656. @param f path of file
  10657. @return the default block size for the path's filesystem]]>
  10658. </doc>
  10659. </method>
  10660. <method name="getDefaultReplication" return="short"
  10661. abstract="false" native="false" synchronized="false"
  10662. static="false" final="false" visibility="public"
  10663. deprecated="use {@link #getDefaultReplication(Path)} instead">
  10664. <doc>
  10665. <![CDATA[Get the default replication.
  10666. @return the replication; the default value is "1".
  10667. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  10668. </doc>
  10669. </method>
  10670. <method name="getDefaultReplication" return="short"
  10671. abstract="false" native="false" synchronized="false"
  10672. static="false" final="false" visibility="public"
  10673. deprecated="not deprecated">
  10674. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10675. <doc>
  10676. <![CDATA[Get the default replication for a path.
  10677. The given path will be used to locate the actual FileSystem to query.
  10678. The full path does not have to exist.
  10679. @param path of the file
  10680. @return default replication for the path's filesystem]]>
  10681. </doc>
  10682. </method>
  10683. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10684. abstract="true" native="false" synchronized="false"
  10685. static="false" final="false" visibility="public"
  10686. deprecated="not deprecated">
  10687. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10688. <exception name="IOException" type="java.io.IOException"/>
  10689. <doc>
  10690. <![CDATA[Return a file status object that represents the path.
  10691. @param f The path we want information from
  10692. @return a FileStatus object
  10693. @throws FileNotFoundException when the path does not exist
  10694. @throws IOException see specific implementation]]>
  10695. </doc>
  10696. </method>
  10697. <method name="msync"
  10698. abstract="false" native="false" synchronized="false"
  10699. static="false" final="false" visibility="public"
  10700. deprecated="not deprecated">
  10701. <exception name="IOException" type="java.io.IOException"/>
  10702. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10703. <doc>
  10704. <![CDATA[Synchronize client metadata state.
  10705. <p>
  10706. In some FileSystem implementations such as HDFS metadata
  10707. synchronization is essential to guarantee consistency of read requests
  10708. particularly in HA setting.
  10709. @throws IOException
  10710. @throws UnsupportedOperationException]]>
  10711. </doc>
  10712. </method>
  10713. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  10714. abstract="false" native="false" synchronized="false"
  10715. static="false" final="false" visibility="protected"
  10716. deprecated="not deprecated">
  10717. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10718. <doc>
  10719. <![CDATA[See {@link FileContext#fixRelativePart}.]]>
  10720. </doc>
  10721. </method>
  10722. <method name="createSymlink"
  10723. abstract="false" native="false" synchronized="false"
  10724. static="false" final="false" visibility="public"
  10725. deprecated="not deprecated">
  10726. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10727. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10728. <param name="createParent" type="boolean"/>
  10729. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10730. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10731. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10732. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10733. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10734. <exception name="IOException" type="java.io.IOException"/>
  10735. <doc>
  10736. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.]]>
  10737. </doc>
  10738. </method>
  10739. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10740. abstract="false" native="false" synchronized="false"
  10741. static="false" final="false" visibility="public"
  10742. deprecated="not deprecated">
  10743. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10744. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10745. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10746. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10747. <exception name="IOException" type="java.io.IOException"/>
  10748. <doc>
  10749. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  10750. @throws FileNotFoundException when the path does not exist
  10751. @throws IOException see specific implementation]]>
  10752. </doc>
  10753. </method>
  10754. <method name="supportsSymlinks" return="boolean"
  10755. abstract="false" native="false" synchronized="false"
  10756. static="false" final="false" visibility="public"
  10757. deprecated="not deprecated">
  10758. <doc>
  10759. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.]]>
  10760. </doc>
  10761. </method>
  10762. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10763. abstract="false" native="false" synchronized="false"
  10764. static="false" final="false" visibility="public"
  10765. deprecated="not deprecated">
  10766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10767. <exception name="IOException" type="java.io.IOException"/>
  10768. <doc>
  10769. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  10770. @throws UnsupportedOperationException if the operation is unsupported
  10771. (default outcome).]]>
  10772. </doc>
  10773. </method>
  10774. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10775. abstract="false" native="false" synchronized="false"
  10776. static="false" final="false" visibility="protected"
  10777. deprecated="not deprecated">
  10778. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10779. <exception name="IOException" type="java.io.IOException"/>
  10780. <doc>
  10781. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  10782. @throws UnsupportedOperationException if the operation is unsupported
  10783. (default outcome).]]>
  10784. </doc>
  10785. </method>
  10786. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10787. abstract="false" native="false" synchronized="false"
  10788. static="false" final="false" visibility="public"
  10789. deprecated="not deprecated">
  10790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10791. <exception name="IOException" type="java.io.IOException"/>
  10792. <doc>
  10793. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  10794. @param f The file path
  10795. @return The file checksum. The default return value is null,
  10796. which indicates that no checksum algorithm is implemented
  10797. in the corresponding FileSystem.
  10798. @throws IOException IO failure]]>
  10799. </doc>
  10800. </method>
  10801. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10802. abstract="false" native="false" synchronized="false"
  10803. static="false" final="false" visibility="public"
  10804. deprecated="not deprecated">
  10805. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10806. <param name="length" type="long"/>
  10807. <exception name="IOException" type="java.io.IOException"/>
  10808. <doc>
  10809. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  10810. specific length.
  10811. @param f The file path
  10812. @param length The length of the file range for checksum calculation
  10813. @return The file checksum or null if checksums are not supported.
  10814. @throws IOException IO failure]]>
  10815. </doc>
  10816. </method>
  10817. <method name="setVerifyChecksum"
  10818. abstract="false" native="false" synchronized="false"
  10819. static="false" final="false" visibility="public"
  10820. deprecated="not deprecated">
  10821. <param name="verifyChecksum" type="boolean"/>
  10822. <doc>
  10823. <![CDATA[Set the verify checksum flag. This is only applicable if the
  10824. corresponding filesystem supports checksums.
  10825. By default doesn't do anything.
  10826. @param verifyChecksum Verify checksum flag]]>
  10827. </doc>
  10828. </method>
  10829. <method name="setWriteChecksum"
  10830. abstract="false" native="false" synchronized="false"
  10831. static="false" final="false" visibility="public"
  10832. deprecated="not deprecated">
  10833. <param name="writeChecksum" type="boolean"/>
  10834. <doc>
  10835. <![CDATA[Set the write checksum flag. This is only applicable if the
  10836. corresponding filesystem supports checksums.
  10837. By default doesn't do anything.
  10838. @param writeChecksum Write checksum flag]]>
  10839. </doc>
  10840. </method>
  10841. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10842. abstract="false" native="false" synchronized="false"
  10843. static="false" final="false" visibility="public"
  10844. deprecated="not deprecated">
  10845. <exception name="IOException" type="java.io.IOException"/>
  10846. <doc>
  10847. <![CDATA[Returns a status object describing the use and capacity of the
  10848. filesystem. If the filesystem has multiple partitions, the
  10849. use and capacity of the root partition is reflected.
  10850. @return a FsStatus object
  10851. @throws IOException
  10852. see specific implementation]]>
  10853. </doc>
  10854. </method>
  10855. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10856. abstract="false" native="false" synchronized="false"
  10857. static="false" final="false" visibility="public"
  10858. deprecated="not deprecated">
  10859. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10860. <exception name="IOException" type="java.io.IOException"/>
  10861. <doc>
  10862. <![CDATA[Returns a status object describing the use and capacity of the
  10863. filesystem. If the filesystem has multiple partitions, the
  10864. use and capacity of the partition pointed to by the specified
  10865. path is reflected.
  10866. @param p Path for which status should be obtained. null means
  10867. the default partition.
  10868. @return a FsStatus object
  10869. @throws IOException
  10870. see specific implementation]]>
  10871. </doc>
  10872. </method>
  10873. <method name="setPermission"
  10874. abstract="false" native="false" synchronized="false"
  10875. static="false" final="false" visibility="public"
  10876. deprecated="not deprecated">
  10877. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10878. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10879. <exception name="IOException" type="java.io.IOException"/>
  10880. <doc>
  10881. <![CDATA[Set permission of a path.
  10882. @param p The path
  10883. @param permission permission
  10884. @throws IOException IO failure]]>
  10885. </doc>
  10886. </method>
  10887. <method name="setOwner"
  10888. abstract="false" native="false" synchronized="false"
  10889. static="false" final="false" visibility="public"
  10890. deprecated="not deprecated">
  10891. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10892. <param name="username" type="java.lang.String"/>
  10893. <param name="groupname" type="java.lang.String"/>
  10894. <exception name="IOException" type="java.io.IOException"/>
  10895. <doc>
  10896. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10897. The parameters username and groupname cannot both be null.
  10898. @param p The path
  10899. @param username If it is null, the original username remains unchanged.
  10900. @param groupname If it is null, the original groupname remains unchanged.
  10901. @throws IOException IO failure]]>
  10902. </doc>
  10903. </method>
  10904. <method name="setTimes"
  10905. abstract="false" native="false" synchronized="false"
  10906. static="false" final="false" visibility="public"
  10907. deprecated="not deprecated">
  10908. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10909. <param name="mtime" type="long"/>
  10910. <param name="atime" type="long"/>
  10911. <exception name="IOException" type="java.io.IOException"/>
  10912. <doc>
  10913. <![CDATA[Set access time of a file.
  10914. @param p The path
  10915. @param mtime Set the modification time of this file.
  10916. The number of milliseconds since Jan 1, 1970.
  10917. A value of -1 means that this call should not set modification time.
  10918. @param atime Set the access time of this file.
  10919. The number of milliseconds since Jan 1, 1970.
  10920. A value of -1 means that this call should not set access time.
  10921. @throws IOException IO failure]]>
  10922. </doc>
  10923. </method>
  10924. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10925. abstract="false" native="false" synchronized="false"
  10926. static="false" final="true" visibility="public"
  10927. deprecated="not deprecated">
  10928. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10929. <exception name="IOException" type="java.io.IOException"/>
  10930. <doc>
  10931. <![CDATA[Create a snapshot with a default name.
  10932. @param path The directory where snapshots will be taken.
  10933. @return the snapshot path.
  10934. @throws IOException IO failure
  10935. @throws UnsupportedOperationException if the operation is unsupported]]>
  10936. </doc>
  10937. </method>
  10938. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10939. abstract="false" native="false" synchronized="false"
  10940. static="false" final="false" visibility="public"
  10941. deprecated="not deprecated">
  10942. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10943. <param name="snapshotName" type="java.lang.String"/>
  10944. <exception name="IOException" type="java.io.IOException"/>
  10945. <doc>
  10946. <![CDATA[Create a snapshot.
  10947. @param path The directory where snapshots will be taken.
  10948. @param snapshotName The name of the snapshot
  10949. @return the snapshot path.
  10950. @throws IOException IO failure
  10951. @throws UnsupportedOperationException if the operation is unsupported]]>
  10952. </doc>
  10953. </method>
  10954. <method name="renameSnapshot"
  10955. abstract="false" native="false" synchronized="false"
  10956. static="false" final="false" visibility="public"
  10957. deprecated="not deprecated">
  10958. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10959. <param name="snapshotOldName" type="java.lang.String"/>
  10960. <param name="snapshotNewName" type="java.lang.String"/>
  10961. <exception name="IOException" type="java.io.IOException"/>
  10962. <doc>
  10963. <![CDATA[Rename a snapshot.
  10964. @param path The directory path where the snapshot was taken
  10965. @param snapshotOldName Old name of the snapshot
  10966. @param snapshotNewName New name of the snapshot
  10967. @throws IOException IO failure
  10968. @throws UnsupportedOperationException if the operation is unsupported
  10969. (default outcome).]]>
  10970. </doc>
  10971. </method>
  10972. <method name="deleteSnapshot"
  10973. abstract="false" native="false" synchronized="false"
  10974. static="false" final="false" visibility="public"
  10975. deprecated="not deprecated">
  10976. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10977. <param name="snapshotName" type="java.lang.String"/>
  10978. <exception name="IOException" type="java.io.IOException"/>
  10979. <doc>
  10980. <![CDATA[Delete a snapshot of a directory.
  10981. @param path The directory that the to-be-deleted snapshot belongs to
  10982. @param snapshotName The name of the snapshot
  10983. @throws IOException IO failure
  10984. @throws UnsupportedOperationException if the operation is unsupported
  10985. (default outcome).]]>
  10986. </doc>
  10987. </method>
  10988. <method name="modifyAclEntries"
  10989. abstract="false" native="false" synchronized="false"
  10990. static="false" final="false" visibility="public"
  10991. deprecated="not deprecated">
  10992. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10993. <param name="aclSpec" type="java.util.List"/>
  10994. <exception name="IOException" type="java.io.IOException"/>
  10995. <doc>
  10996. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10997. entries or modify the permissions on existing ACL entries. All existing
  10998. ACL entries that are not specified in this call are retained without
  10999. changes. (Modifications are merged into the current ACL.)
  11000. @param path Path to modify
  11001. @param aclSpec List&lt;AclEntry&gt; describing modifications
  11002. @throws IOException if an ACL could not be modified
  11003. @throws UnsupportedOperationException if the operation is unsupported
  11004. (default outcome).]]>
  11005. </doc>
  11006. </method>
  11007. <method name="removeAclEntries"
  11008. abstract="false" native="false" synchronized="false"
  11009. static="false" final="false" visibility="public"
  11010. deprecated="not deprecated">
  11011. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11012. <param name="aclSpec" type="java.util.List"/>
  11013. <exception name="IOException" type="java.io.IOException"/>
  11014. <doc>
  11015. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  11016. retained.
  11017. @param path Path to modify
  11018. @param aclSpec List describing entries to remove
  11019. @throws IOException if an ACL could not be modified
  11020. @throws UnsupportedOperationException if the operation is unsupported
  11021. (default outcome).]]>
  11022. </doc>
  11023. </method>
  11024. <method name="removeDefaultAcl"
  11025. abstract="false" native="false" synchronized="false"
  11026. static="false" final="false" visibility="public"
  11027. deprecated="not deprecated">
  11028. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11029. <exception name="IOException" type="java.io.IOException"/>
  11030. <doc>
  11031. <![CDATA[Removes all default ACL entries from files and directories.
  11032. @param path Path to modify
  11033. @throws IOException if an ACL could not be modified
  11034. @throws UnsupportedOperationException if the operation is unsupported
  11035. (default outcome).]]>
  11036. </doc>
  11037. </method>
  11038. <method name="removeAcl"
  11039. abstract="false" native="false" synchronized="false"
  11040. static="false" final="false" visibility="public"
  11041. deprecated="not deprecated">
  11042. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11043. <exception name="IOException" type="java.io.IOException"/>
  11044. <doc>
  11045. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  11046. for user, group, and others are retained for compatibility with permission
  11047. bits.
  11048. @param path Path to modify
  11049. @throws IOException if an ACL could not be removed
  11050. @throws UnsupportedOperationException if the operation is unsupported
  11051. (default outcome).]]>
  11052. </doc>
  11053. </method>
  11054. <method name="setAcl"
  11055. abstract="false" native="false" synchronized="false"
  11056. static="false" final="false" visibility="public"
  11057. deprecated="not deprecated">
  11058. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11059. <param name="aclSpec" type="java.util.List"/>
  11060. <exception name="IOException" type="java.io.IOException"/>
  11061. <doc>
  11062. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  11063. entries.
  11064. @param path Path to modify
  11065. @param aclSpec List describing modifications, which must include entries
  11066. for user, group, and others for compatibility with permission bits.
  11067. @throws IOException if an ACL could not be modified
  11068. @throws UnsupportedOperationException if the operation is unsupported
  11069. (default outcome).]]>
  11070. </doc>
  11071. </method>
  11072. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11073. abstract="false" native="false" synchronized="false"
  11074. static="false" final="false" visibility="public"
  11075. deprecated="not deprecated">
  11076. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11077. <exception name="IOException" type="java.io.IOException"/>
  11078. <doc>
  11079. <![CDATA[Gets the ACL of a file or directory.
  11080. @param path Path to get
  11081. @return AclStatus describing the ACL of the file or directory
  11082. @throws IOException if an ACL could not be read
  11083. @throws UnsupportedOperationException if the operation is unsupported
  11084. (default outcome).]]>
  11085. </doc>
  11086. </method>
  11087. <method name="setXAttr"
  11088. abstract="false" native="false" synchronized="false"
  11089. static="false" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11092. <param name="name" type="java.lang.String"/>
  11093. <param name="value" type="byte[]"/>
  11094. <exception name="IOException" type="java.io.IOException"/>
  11095. <doc>
  11096. <![CDATA[Set an xattr of a file or directory.
  11097. The name must be prefixed with the namespace followed by ".". For example,
  11098. "user.attr".
  11099. <p>
  11100. Refer to the HDFS extended attributes user documentation for details.
  11101. @param path Path to modify
  11102. @param name xattr name.
  11103. @param value xattr value.
  11104. @throws IOException IO failure
  11105. @throws UnsupportedOperationException if the operation is unsupported
  11106. (default outcome).]]>
  11107. </doc>
  11108. </method>
  11109. <method name="setXAttr"
  11110. abstract="false" native="false" synchronized="false"
  11111. static="false" final="false" visibility="public"
  11112. deprecated="not deprecated">
  11113. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11114. <param name="name" type="java.lang.String"/>
  11115. <param name="value" type="byte[]"/>
  11116. <param name="flag" type="java.util.EnumSet"/>
  11117. <exception name="IOException" type="java.io.IOException"/>
  11118. <doc>
  11119. <![CDATA[Set an xattr of a file or directory.
  11120. The name must be prefixed with the namespace followed by ".". For example,
  11121. "user.attr".
  11122. <p>
  11123. Refer to the HDFS extended attributes user documentation for details.
  11124. @param path Path to modify
  11125. @param name xattr name.
  11126. @param value xattr value.
  11127. @param flag xattr set flag
  11128. @throws IOException IO failure
  11129. @throws UnsupportedOperationException if the operation is unsupported
  11130. (default outcome).]]>
  11131. </doc>
  11132. </method>
  11133. <method name="getXAttr" return="byte[]"
  11134. abstract="false" native="false" synchronized="false"
  11135. static="false" final="false" visibility="public"
  11136. deprecated="not deprecated">
  11137. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11138. <param name="name" type="java.lang.String"/>
  11139. <exception name="IOException" type="java.io.IOException"/>
  11140. <doc>
  11141. <![CDATA[Get an xattr name and value for a file or directory.
  11142. The name must be prefixed with the namespace followed by ".". For example,
  11143. "user.attr".
  11144. <p>
  11145. Refer to the HDFS extended attributes user documentation for details.
  11146. @param path Path to get extended attribute
  11147. @param name xattr name.
  11148. @return byte[] xattr value.
  11149. @throws IOException IO failure
  11150. @throws UnsupportedOperationException if the operation is unsupported
  11151. (default outcome).]]>
  11152. </doc>
  11153. </method>
  11154. <method name="getXAttrs" return="java.util.Map"
  11155. abstract="false" native="false" synchronized="false"
  11156. static="false" final="false" visibility="public"
  11157. deprecated="not deprecated">
  11158. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11159. <exception name="IOException" type="java.io.IOException"/>
  11160. <doc>
  11161. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  11162. Only those xattrs which the logged-in user has permissions to view
  11163. are returned.
  11164. <p>
  11165. Refer to the HDFS extended attributes user documentation for details.
  11166. @param path Path to get extended attributes
  11167. @return Map describing the XAttrs of the file or directory
  11168. @throws IOException IO failure
  11169. @throws UnsupportedOperationException if the operation is unsupported
  11170. (default outcome).]]>
  11171. </doc>
  11172. </method>
  11173. <method name="getXAttrs" return="java.util.Map"
  11174. abstract="false" native="false" synchronized="false"
  11175. static="false" final="false" visibility="public"
  11176. deprecated="not deprecated">
  11177. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11178. <param name="names" type="java.util.List"/>
  11179. <exception name="IOException" type="java.io.IOException"/>
  11180. <doc>
  11181. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  11182. Only those xattrs which the logged-in user has permissions to view
  11183. are returned.
  11184. <p>
  11185. Refer to the HDFS extended attributes user documentation for details.
  11186. @param path Path to get extended attributes
  11187. @param names XAttr names.
  11188. @return Map describing the XAttrs of the file or directory
  11189. @throws IOException IO failure
  11190. @throws UnsupportedOperationException if the operation is unsupported
  11191. (default outcome).]]>
  11192. </doc>
  11193. </method>
  11194. <method name="listXAttrs" return="java.util.List"
  11195. abstract="false" native="false" synchronized="false"
  11196. static="false" final="false" visibility="public"
  11197. deprecated="not deprecated">
  11198. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11199. <exception name="IOException" type="java.io.IOException"/>
  11200. <doc>
  11201. <![CDATA[Get all of the xattr names for a file or directory.
  11202. Only those xattr names which the logged-in user has permissions to view
  11203. are returned.
  11204. <p>
  11205. Refer to the HDFS extended attributes user documentation for details.
  11206. @param path Path to get extended attributes
  11207. @return List{@literal <String>} of the XAttr names of the file or directory
  11208. @throws IOException IO failure
  11209. @throws UnsupportedOperationException if the operation is unsupported
  11210. (default outcome).]]>
  11211. </doc>
  11212. </method>
  11213. <method name="removeXAttr"
  11214. abstract="false" native="false" synchronized="false"
  11215. static="false" final="false" visibility="public"
  11216. deprecated="not deprecated">
  11217. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11218. <param name="name" type="java.lang.String"/>
  11219. <exception name="IOException" type="java.io.IOException"/>
  11220. <doc>
  11221. <![CDATA[Remove an xattr of a file or directory.
  11222. The name must be prefixed with the namespace followed by ".". For example,
  11223. "user.attr".
  11224. <p>
  11225. Refer to the HDFS extended attributes user documentation for details.
  11226. @param path Path to remove extended attribute
  11227. @param name xattr name
  11228. @throws IOException IO failure
  11229. @throws UnsupportedOperationException if the operation is unsupported
  11230. (default outcome).]]>
  11231. </doc>
  11232. </method>
  11233. <method name="satisfyStoragePolicy"
  11234. abstract="false" native="false" synchronized="false"
  11235. static="false" final="false" visibility="public"
  11236. deprecated="not deprecated">
  11237. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11238. <exception name="IOException" type="java.io.IOException"/>
  11239. <doc>
  11240. <![CDATA[Set the source path to satisfy storage policy.
  11241. @param path The source path referring to either a directory or a file.
  11242. @throws IOException]]>
  11243. </doc>
  11244. </method>
  11245. <method name="setStoragePolicy"
  11246. abstract="false" native="false" synchronized="false"
  11247. static="false" final="false" visibility="public"
  11248. deprecated="not deprecated">
  11249. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11250. <param name="policyName" type="java.lang.String"/>
  11251. <exception name="IOException" type="java.io.IOException"/>
  11252. <doc>
  11253. <![CDATA[Set the storage policy for a given file or directory.
  11254. @param src file or directory path.
  11255. @param policyName the name of the target storage policy. The list
  11256. of supported Storage policies can be retrieved
  11257. via {@link #getAllStoragePolicies}.
  11258. @throws IOException IO failure
  11259. @throws UnsupportedOperationException if the operation is unsupported
  11260. (default outcome).]]>
  11261. </doc>
  11262. </method>
  11263. <method name="unsetStoragePolicy"
  11264. abstract="false" native="false" synchronized="false"
  11265. static="false" final="false" visibility="public"
  11266. deprecated="not deprecated">
  11267. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11268. <exception name="IOException" type="java.io.IOException"/>
  11269. <doc>
  11270. <![CDATA[Unset the storage policy set for a given file or directory.
  11271. @param src file or directory path.
  11272. @throws IOException IO failure
  11273. @throws UnsupportedOperationException if the operation is unsupported
  11274. (default outcome).]]>
  11275. </doc>
  11276. </method>
  11277. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  11278. abstract="false" native="false" synchronized="false"
  11279. static="false" final="false" visibility="public"
  11280. deprecated="not deprecated">
  11281. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11282. <exception name="IOException" type="java.io.IOException"/>
  11283. <doc>
  11284. <![CDATA[Query the effective storage policy ID for the given file or directory.
  11285. @param src file or directory path.
  11286. @return storage policy for give file.
  11287. @throws IOException IO failure
  11288. @throws UnsupportedOperationException if the operation is unsupported
  11289. (default outcome).]]>
  11290. </doc>
  11291. </method>
  11292. <method name="getAllStoragePolicies" return="java.util.Collection"
  11293. abstract="false" native="false" synchronized="false"
  11294. static="false" final="false" visibility="public"
  11295. deprecated="not deprecated">
  11296. <exception name="IOException" type="java.io.IOException"/>
  11297. <doc>
  11298. <![CDATA[Retrieve all the storage policies supported by this file system.
  11299. @return all storage policies supported by this filesystem.
  11300. @throws IOException IO failure
  11301. @throws UnsupportedOperationException if the operation is unsupported
  11302. (default outcome).]]>
  11303. </doc>
  11304. </method>
  11305. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  11306. abstract="false" native="false" synchronized="false"
  11307. static="false" final="false" visibility="public"
  11308. deprecated="not deprecated">
  11309. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11310. <doc>
  11311. <![CDATA[Get the root directory of Trash for current user when the path specified
  11312. is deleted.
  11313. @param path the trash root of the path to be determined.
  11314. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  11315. </doc>
  11316. </method>
  11317. <method name="getTrashRoots" return="java.util.Collection"
  11318. abstract="false" native="false" synchronized="false"
  11319. static="false" final="false" visibility="public"
  11320. deprecated="not deprecated">
  11321. <param name="allUsers" type="boolean"/>
  11322. <doc>
  11323. <![CDATA[Get all the trash roots for current user or all users.
  11324. @param allUsers return trash roots for all users if true.
  11325. @return all the trash root directories.
  11326. Default FileSystem returns .Trash under users' home directories if
  11327. {@code /user/$USER/.Trash} exists.]]>
  11328. </doc>
  11329. </method>
  11330. <method name="hasPathCapability" return="boolean"
  11331. abstract="false" native="false" synchronized="false"
  11332. static="false" final="false" visibility="public"
  11333. deprecated="not deprecated">
  11334. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11335. <param name="capability" type="java.lang.String"/>
  11336. <exception name="IOException" type="java.io.IOException"/>
  11337. <doc>
  11338. <![CDATA[The base FileSystem implementation generally has no knowledge
  11339. of the capabilities of actual implementations.
  11340. Unless it has a way to explicitly determine the capabilities,
  11341. this method returns false.
  11342. {@inheritDoc}]]>
  11343. </doc>
  11344. </method>
  11345. <method name="getFileSystemClass" return="java.lang.Class"
  11346. abstract="false" native="false" synchronized="false"
  11347. static="true" final="false" visibility="public"
  11348. deprecated="not deprecated">
  11349. <param name="scheme" type="java.lang.String"/>
  11350. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11351. <exception name="IOException" type="java.io.IOException"/>
  11352. <doc>
  11353. <![CDATA[Get the FileSystem implementation class of a filesystem.
  11354. This triggers a scan and load of all FileSystem implementations listed as
  11355. services and discovered via the {@link ServiceLoader}
  11356. @param scheme URL scheme of FS
  11357. @param conf configuration: can be null, in which case the check for
  11358. a filesystem binding declaration in the configuration is skipped.
  11359. @return the filesystem
  11360. @throws UnsupportedFileSystemException if there was no known implementation
  11361. for the scheme.
  11362. @throws IOException if the filesystem could not be loaded]]>
  11363. </doc>
  11364. </method>
  11365. <method name="getStatistics" return="java.util.Map"
  11366. abstract="false" native="false" synchronized="true"
  11367. static="true" final="false" visibility="public"
  11368. deprecated="use {@link #getGlobalStorageStatistics()}">
  11369. <doc>
  11370. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  11371. @return a Map having a key as URI scheme and value as Statistics object
  11372. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11373. </doc>
  11374. </method>
  11375. <method name="getAllStatistics" return="java.util.List"
  11376. abstract="false" native="false" synchronized="true"
  11377. static="true" final="false" visibility="public"
  11378. deprecated="use {@link #getGlobalStorageStatistics()}">
  11379. <doc>
  11380. <![CDATA[Return the FileSystem classes that have Statistics.
  11381. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11382. </doc>
  11383. </method>
  11384. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  11385. abstract="false" native="false" synchronized="true"
  11386. static="true" final="false" visibility="public"
  11387. deprecated="use {@link #getGlobalStorageStatistics()}">
  11388. <param name="scheme" type="java.lang.String"/>
  11389. <param name="cls" type="java.lang.Class"/>
  11390. <doc>
  11391. <![CDATA[Get the statistics for a particular file system.
  11392. @param cls the class to lookup
  11393. @return a statistics object
  11394. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11395. </doc>
  11396. </method>
  11397. <method name="clearStatistics"
  11398. abstract="false" native="false" synchronized="true"
  11399. static="true" final="false" visibility="public"
  11400. deprecated="not deprecated">
  11401. <doc>
  11402. <![CDATA[Reset all statistics for all file systems.]]>
  11403. </doc>
  11404. </method>
  11405. <method name="printStatistics"
  11406. abstract="false" native="false" synchronized="true"
  11407. static="true" final="false" visibility="public"
  11408. deprecated="not deprecated">
  11409. <exception name="IOException" type="java.io.IOException"/>
  11410. <doc>
  11411. <![CDATA[Print all statistics for all file systems to {@code System.out}]]>
  11412. </doc>
  11413. </method>
  11414. <method name="areSymlinksEnabled" return="boolean"
  11415. abstract="false" native="false" synchronized="false"
  11416. static="true" final="false" visibility="public"
  11417. deprecated="not deprecated">
  11418. </method>
  11419. <method name="enableSymlinks"
  11420. abstract="false" native="false" synchronized="false"
  11421. static="true" final="false" visibility="public"
  11422. deprecated="not deprecated">
  11423. </method>
  11424. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  11425. abstract="false" native="false" synchronized="false"
  11426. static="false" final="false" visibility="public"
  11427. deprecated="not deprecated">
  11428. <doc>
  11429. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  11430. per-instance. They are not shared with any other FileSystem object.
  11431. <p>This is a default method which is intended to be overridden by
  11432. subclasses. The default implementation returns an empty storage statistics
  11433. object.</p>
  11434. @return The StorageStatistics for this FileSystem instance.
  11435. Will never be null.]]>
  11436. </doc>
  11437. </method>
  11438. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  11439. abstract="false" native="false" synchronized="false"
  11440. static="true" final="false" visibility="public"
  11441. deprecated="not deprecated">
  11442. <doc>
  11443. <![CDATA[Get the global storage statistics.]]>
  11444. </doc>
  11445. </method>
  11446. <method name="createDataOutputStreamBuilder" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11447. abstract="false" native="false" synchronized="false"
  11448. static="true" final="false" visibility="protected"
  11449. deprecated="not deprecated">
  11450. <param name="fileSystem" type="org.apache.hadoop.fs.FileSystem"/>
  11451. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11452. <doc>
  11453. <![CDATA[Create instance of the standard FSDataOutputStreamBuilder for the
  11454. given filesystem and path.
  11455. @param fileSystem owner
  11456. @param path path to create
  11457. @return a builder.]]>
  11458. </doc>
  11459. </method>
  11460. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11461. abstract="false" native="false" synchronized="false"
  11462. static="false" final="false" visibility="public"
  11463. deprecated="not deprecated">
  11464. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11465. <doc>
  11466. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  11467. Files are overwritten by default.
  11468. @param path file path
  11469. @return a FSDataOutputStreamBuilder object to build the file
  11470. HADOOP-14384. Temporarily reduce the visibility of method before the
  11471. builder interface becomes stable.]]>
  11472. </doc>
  11473. </method>
  11474. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11475. abstract="false" native="false" synchronized="false"
  11476. static="false" final="false" visibility="public"
  11477. deprecated="not deprecated">
  11478. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11479. <doc>
  11480. <![CDATA[Create a Builder to append a file.
  11481. @param path file path.
  11482. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  11483. </doc>
  11484. </method>
  11485. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  11486. abstract="false" native="false" synchronized="false"
  11487. static="false" final="false" visibility="public"
  11488. deprecated="not deprecated">
  11489. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11490. <exception name="IOException" type="java.io.IOException"/>
  11491. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11492. <doc>
  11493. <![CDATA[Open a file for reading through a builder API.
  11494. Ultimately calls {@link #open(Path, int)} unless a subclass
  11495. executes the open command differently.
  11496. The semantics of this call are therefore the same as that of
  11497. {@link #open(Path, int)} with one special point: it is in
  11498. {@code FSDataInputStreamBuilder.build()} in which the open operation
  11499. takes place -it is there where all preconditions to the operation
  11500. are checked.
  11501. @param path file path
  11502. @return a FSDataInputStreamBuilder object to build the input stream
  11503. @throws IOException if some early checks cause IO failures.
  11504. @throws UnsupportedOperationException if support is checked early.]]>
  11505. </doc>
  11506. </method>
  11507. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  11508. abstract="false" native="false" synchronized="false"
  11509. static="false" final="false" visibility="public"
  11510. deprecated="not deprecated">
  11511. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  11512. <exception name="IOException" type="java.io.IOException"/>
  11513. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11514. <doc>
  11515. <![CDATA[Open a file for reading through a builder API.
  11516. Ultimately calls {@link #open(PathHandle, int)} unless a subclass
  11517. executes the open command differently.
  11518. If PathHandles are unsupported, this may fail in the
  11519. {@code FSDataInputStreamBuilder.build()} command,
  11520. rather than in this {@code openFile()} operation.
  11521. @param pathHandle path handle.
  11522. @return a FSDataInputStreamBuilder object to build the input stream
  11523. @throws IOException if some early checks cause IO failures.
  11524. @throws UnsupportedOperationException if support is checked early.]]>
  11525. </doc>
  11526. </method>
  11527. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  11528. abstract="false" native="false" synchronized="false"
  11529. static="false" final="false" visibility="protected"
  11530. deprecated="not deprecated">
  11531. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11532. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  11533. <exception name="IOException" type="java.io.IOException"/>
  11534. <doc>
  11535. <![CDATA[Execute the actual open file operation.
  11536. This is invoked from {@code FSDataInputStreamBuilder.build()}
  11537. and from {@link DelegateToFileSystem} and is where
  11538. the action of opening the file should begin.
  11539. The base implementation performs a blocking
  11540. call to {@link #open(Path, int)} in this call;
  11541. the actual outcome is in the returned {@code CompletableFuture}.
  11542. This avoids having to create some thread pool, while still
  11543. setting up the expectation that the {@code get()} call
  11544. is needed to evaluate the result.
  11545. @param path path to the file
  11546. @param parameters open file parameters from the builder.
  11547. @return a future which will evaluate to the opened file.
  11548. @throws IOException failure to resolve the link.
  11549. @throws IllegalArgumentException unknown mandatory key]]>
  11550. </doc>
  11551. </method>
  11552. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  11553. abstract="false" native="false" synchronized="false"
  11554. static="false" final="false" visibility="protected"
  11555. deprecated="not deprecated">
  11556. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  11557. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  11558. <exception name="IOException" type="java.io.IOException"/>
  11559. <doc>
  11560. <![CDATA[Execute the actual open file operation.
  11561. The base implementation performs a blocking
  11562. call to {@link #open(Path, int)} in this call;
  11563. the actual outcome is in the returned {@code CompletableFuture}.
  11564. This avoids having to create some thread pool, while still
  11565. setting up the expectation that the {@code get()} call
  11566. is needed to evaluate the result.
  11567. @param pathHandle path to the file
  11568. @param parameters open file parameters from the builder.
  11569. @return a future which will evaluate to the opened file.
  11570. @throws IOException failure to resolve the link.
  11571. @throws IllegalArgumentException unknown mandatory key
  11572. @throws UnsupportedOperationException PathHandles are not supported.
  11573. This may be deferred until the future is evaluated.]]>
  11574. </doc>
  11575. </method>
  11576. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  11577. abstract="false" native="false" synchronized="false"
  11578. static="false" final="false" visibility="public"
  11579. deprecated="not deprecated">
  11580. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  11581. <exception name="IOException" type="java.io.IOException"/>
  11582. <doc>
  11583. <![CDATA[Create a multipart uploader.
  11584. @param basePath file path under which all files are uploaded
  11585. @return a MultipartUploaderBuilder object to build the uploader
  11586. @throws IOException if some early checks cause IO failures.
  11587. @throws UnsupportedOperationException if support is checked early.]]>
  11588. </doc>
  11589. </method>
  11590. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  11591. transient="false" volatile="false"
  11592. static="true" final="true" visibility="public"
  11593. deprecated="not deprecated">
  11594. </field>
  11595. <field name="DEFAULT_FS" type="java.lang.String"
  11596. transient="false" volatile="false"
  11597. static="true" final="true" visibility="public"
  11598. deprecated="not deprecated">
  11599. </field>
  11600. <field name="LOG" type="org.apache.commons.logging.Log"
  11601. transient="false" volatile="false"
  11602. static="true" final="true" visibility="public"
  11603. deprecated="not deprecated">
  11604. <doc>
  11605. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  11606. so must be considered something to only be changed with care.]]>
  11607. </doc>
  11608. </field>
  11609. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  11610. transient="false" volatile="false"
  11611. static="true" final="true" visibility="public"
  11612. deprecated="not deprecated">
  11613. <doc>
  11614. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  11615. </doc>
  11616. </field>
  11617. <field name="TRASH_PREFIX" type="java.lang.String"
  11618. transient="false" volatile="false"
  11619. static="true" final="true" visibility="public"
  11620. deprecated="not deprecated">
  11621. <doc>
  11622. <![CDATA[Prefix for trash directory: {@value}.]]>
  11623. </doc>
  11624. </field>
  11625. <field name="USER_HOME_PREFIX" type="java.lang.String"
  11626. transient="false" volatile="false"
  11627. static="true" final="true" visibility="public"
  11628. deprecated="not deprecated">
  11629. </field>
  11630. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  11631. transient="false" volatile="false"
  11632. static="false" final="false" visibility="protected"
  11633. deprecated="not deprecated">
  11634. <doc>
  11635. <![CDATA[The statistics for this file system.]]>
  11636. </doc>
  11637. </field>
  11638. <doc>
  11639. <![CDATA[An abstract base class for a fairly generic filesystem. It
  11640. may be implemented as a distributed filesystem, or as a "local"
  11641. one that reflects the locally-connected disk. The local version
  11642. exists for small Hadoop instances and for testing.
  11643. <p>
  11644. All user code that may potentially use the Hadoop Distributed
  11645. File System should be written to use a FileSystem object or its
  11646. successor, {@link FileContext}.
  11647. <p>
  11648. The local implementation is {@link LocalFileSystem} and distributed
  11649. implementation is DistributedFileSystem. There are other implementations
  11650. for object stores and (outside the Apache Hadoop codebase),
  11651. third party filesystems.
  11652. <p>
  11653. Notes
  11654. <ol>
  11655. <li>The behaviour of the filesystem is
  11656. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  11657. specified in the Hadoop documentation. </a>
  11658. However, the normative specification of the behavior of this class is
  11659. actually HDFS: if HDFS does not behave the way these Javadocs or
  11660. the specification in the Hadoop documentations define, assume that
  11661. the documentation is incorrect.
  11662. </li>
  11663. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  11664. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  11665. <li>The term {@code filesystem} refers to the distributed/local filesystem
  11666. itself, rather than the class used to interact with it.</li>
  11667. <li>The term "file" refers to a file in the remote filesystem,
  11668. rather than instances of {@code java.io.File}.</li>
  11669. </ol>
  11670. This is a carefully evolving class.
  11671. New methods may be marked as Unstable or Evolving for their initial release,
  11672. as a warning that they are new and may change based on the
  11673. experience of use in applications.
  11674. <p></p>
  11675. <b>Important note for developers</b>
  11676. <p></p>
  11677. If you are making changes here to the public API or protected methods,
  11678. you must review the following subclasses and make sure that
  11679. they are filtering/passing through new methods as appropriate.
  11680. <p></p>
  11681. {@link FilterFileSystem}: methods are passed through. If not,
  11682. then {@code TestFilterFileSystem.MustNotImplement} must be
  11683. updated with the unsupported interface.
  11684. Furthermore, if the new API's support is probed for via
  11685. {@link #hasPathCapability(Path, String)} then
  11686. {@link FilterFileSystem#hasPathCapability(Path, String)}
  11687. must return false, always.
  11688. <p></p>
  11689. {@link ChecksumFileSystem}: checksums are created and
  11690. verified.
  11691. <p></p>
  11692. {@code TestHarFileSystem} will need its {@code MustNotImplement}
  11693. interface updated.
  11694. <p></p>
  11695. There are some external places your changes will break things.
  11696. Do co-ordinate changes here.
  11697. <p></p>
  11698. HBase: HBoss
  11699. <p></p>
  11700. Hive: HiveShim23
  11701. {@code shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java}]]>
  11702. </doc>
  11703. </class>
  11704. <!-- end class org.apache.hadoop.fs.FileSystem -->
  11705. <!-- start class org.apache.hadoop.fs.FileUtil -->
  11706. <class name="FileUtil" extends="java.lang.Object"
  11707. abstract="false"
  11708. static="false" final="false" visibility="public"
  11709. deprecated="not deprecated">
  11710. <constructor name="FileUtil"
  11711. static="false" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. </constructor>
  11714. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11715. abstract="false" native="false" synchronized="false"
  11716. static="true" final="false" visibility="public"
  11717. deprecated="not deprecated">
  11718. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11719. <doc>
  11720. <![CDATA[convert an array of FileStatus to an array of Path
  11721. @param stats
  11722. an array of FileStatus objects
  11723. @return an array of paths corresponding to the input]]>
  11724. </doc>
  11725. </method>
  11726. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11727. abstract="false" native="false" synchronized="false"
  11728. static="true" final="false" visibility="public"
  11729. deprecated="not deprecated">
  11730. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11731. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11732. <doc>
  11733. <![CDATA[convert an array of FileStatus to an array of Path.
  11734. If stats if null, return path
  11735. @param stats
  11736. an array of FileStatus objects
  11737. @param path
  11738. default path to return in stats is null
  11739. @return an array of paths corresponding to the input]]>
  11740. </doc>
  11741. </method>
  11742. <method name="fullyDeleteOnExit"
  11743. abstract="false" native="false" synchronized="false"
  11744. static="true" final="false" visibility="public"
  11745. deprecated="not deprecated">
  11746. <param name="file" type="java.io.File"/>
  11747. <doc>
  11748. <![CDATA[Register all files recursively to be deleted on exit.
  11749. @param file File/directory to be deleted]]>
  11750. </doc>
  11751. </method>
  11752. <method name="fullyDelete" return="boolean"
  11753. abstract="false" native="false" synchronized="false"
  11754. static="true" final="false" visibility="public"
  11755. deprecated="not deprecated">
  11756. <param name="dir" type="java.io.File"/>
  11757. <doc>
  11758. <![CDATA[Delete a directory and all its contents. If
  11759. we return false, the directory may be partially-deleted.
  11760. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11761. to by the symlink is not deleted.
  11762. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11763. pointed to by symlink is not deleted.
  11764. (3) If dir is a normal file, it is deleted.
  11765. (4) If dir is a normal directory, then dir and all its contents recursively
  11766. are deleted.]]>
  11767. </doc>
  11768. </method>
  11769. <method name="fullyDelete" return="boolean"
  11770. abstract="false" native="false" synchronized="false"
  11771. static="true" final="false" visibility="public"
  11772. deprecated="not deprecated">
  11773. <param name="dir" type="java.io.File"/>
  11774. <param name="tryGrantPermissions" type="boolean"/>
  11775. <doc>
  11776. <![CDATA[Delete a directory and all its contents. If
  11777. we return false, the directory may be partially-deleted.
  11778. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11779. to by the symlink is not deleted.
  11780. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11781. pointed to by symlink is not deleted.
  11782. (3) If dir is a normal file, it is deleted.
  11783. (4) If dir is a normal directory, then dir and all its contents recursively
  11784. are deleted.
  11785. @param dir the file or directory to be deleted
  11786. @param tryGrantPermissions true if permissions should be modified to delete a file.
  11787. @return true on success false on failure.]]>
  11788. </doc>
  11789. </method>
  11790. <method name="readLink" return="java.lang.String"
  11791. abstract="false" native="false" synchronized="false"
  11792. static="true" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <param name="f" type="java.io.File"/>
  11795. <doc>
  11796. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  11797. the given path does not refer to a symlink or there is an error
  11798. accessing the symlink.
  11799. @param f File representing the symbolic link.
  11800. @return The target of the symbolic link, empty string on error or if not
  11801. a symlink.]]>
  11802. </doc>
  11803. </method>
  11804. <method name="fullyDeleteContents" return="boolean"
  11805. abstract="false" native="false" synchronized="false"
  11806. static="true" final="false" visibility="public"
  11807. deprecated="not deprecated">
  11808. <param name="dir" type="java.io.File"/>
  11809. <doc>
  11810. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11811. we return false, the directory may be partially-deleted.
  11812. If dir is a symlink to a directory, all the contents of the actual
  11813. directory pointed to by dir will be deleted.]]>
  11814. </doc>
  11815. </method>
  11816. <method name="fullyDeleteContents" return="boolean"
  11817. abstract="false" native="false" synchronized="false"
  11818. static="true" final="false" visibility="public"
  11819. deprecated="not deprecated">
  11820. <param name="dir" type="java.io.File"/>
  11821. <param name="tryGrantPermissions" type="boolean"/>
  11822. <doc>
  11823. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11824. we return false, the directory may be partially-deleted.
  11825. If dir is a symlink to a directory, all the contents of the actual
  11826. directory pointed to by dir will be deleted.
  11827. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  11828. and all the underlying directories before trying to delete their contents.]]>
  11829. </doc>
  11830. </method>
  11831. <method name="fullyDelete"
  11832. abstract="false" native="false" synchronized="false"
  11833. static="true" final="false" visibility="public"
  11834. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  11835. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11836. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11837. <exception name="IOException" type="java.io.IOException"/>
  11838. <doc>
  11839. <![CDATA[Recursively delete a directory.
  11840. @param fs {@link FileSystem} on which the path is present
  11841. @param dir directory to recursively delete
  11842. @throws IOException
  11843. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  11844. </doc>
  11845. </method>
  11846. <method name="copy" return="boolean"
  11847. abstract="false" native="false" synchronized="false"
  11848. static="true" final="false" visibility="public"
  11849. deprecated="not deprecated">
  11850. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11851. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11852. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11853. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11854. <param name="deleteSource" type="boolean"/>
  11855. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11856. <exception name="IOException" type="java.io.IOException"/>
  11857. <doc>
  11858. <![CDATA[Copy files between FileSystems.]]>
  11859. </doc>
  11860. </method>
  11861. <method name="copy" return="boolean"
  11862. abstract="false" native="false" synchronized="false"
  11863. static="true" final="false" visibility="public"
  11864. deprecated="not deprecated">
  11865. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11866. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11867. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11868. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11869. <param name="deleteSource" type="boolean"/>
  11870. <param name="overwrite" type="boolean"/>
  11871. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11872. <exception name="IOException" type="java.io.IOException"/>
  11873. </method>
  11874. <method name="copy" return="boolean"
  11875. abstract="false" native="false" synchronized="false"
  11876. static="true" final="false" visibility="public"
  11877. deprecated="not deprecated">
  11878. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11879. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11880. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11881. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11882. <param name="deleteSource" type="boolean"/>
  11883. <param name="overwrite" type="boolean"/>
  11884. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11885. <exception name="IOException" type="java.io.IOException"/>
  11886. <doc>
  11887. <![CDATA[Copy files between FileSystems.]]>
  11888. </doc>
  11889. </method>
  11890. <method name="copy" return="boolean"
  11891. abstract="false" native="false" synchronized="false"
  11892. static="true" final="false" visibility="public"
  11893. deprecated="not deprecated">
  11894. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11895. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  11896. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11897. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11898. <param name="deleteSource" type="boolean"/>
  11899. <param name="overwrite" type="boolean"/>
  11900. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11901. <exception name="IOException" type="java.io.IOException"/>
  11902. <doc>
  11903. <![CDATA[Copy files between FileSystems.]]>
  11904. </doc>
  11905. </method>
  11906. <method name="copy" return="boolean"
  11907. abstract="false" native="false" synchronized="false"
  11908. static="true" final="false" visibility="public"
  11909. deprecated="not deprecated">
  11910. <param name="src" type="java.io.File"/>
  11911. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11912. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11913. <param name="deleteSource" type="boolean"/>
  11914. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11915. <exception name="IOException" type="java.io.IOException"/>
  11916. <doc>
  11917. <![CDATA[Copy local files to a FileSystem.]]>
  11918. </doc>
  11919. </method>
  11920. <method name="copy" return="boolean"
  11921. abstract="false" native="false" synchronized="false"
  11922. static="true" final="false" visibility="public"
  11923. deprecated="not deprecated">
  11924. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11925. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11926. <param name="dst" type="java.io.File"/>
  11927. <param name="deleteSource" type="boolean"/>
  11928. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11929. <exception name="IOException" type="java.io.IOException"/>
  11930. <doc>
  11931. <![CDATA[Copy FileSystem files to local files.]]>
  11932. </doc>
  11933. </method>
  11934. <method name="makeShellPath" return="java.lang.String"
  11935. abstract="false" native="false" synchronized="false"
  11936. static="true" final="false" visibility="public"
  11937. deprecated="not deprecated">
  11938. <param name="filename" type="java.lang.String"/>
  11939. <exception name="IOException" type="java.io.IOException"/>
  11940. <doc>
  11941. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11942. @param filename The filename to convert
  11943. @return The unix pathname
  11944. @throws IOException on windows, there can be problems with the subprocess]]>
  11945. </doc>
  11946. </method>
  11947. <method name="makeShellPath" return="java.lang.String"
  11948. abstract="false" native="false" synchronized="false"
  11949. static="true" final="false" visibility="public"
  11950. deprecated="not deprecated">
  11951. <param name="file" type="java.io.File"/>
  11952. <exception name="IOException" type="java.io.IOException"/>
  11953. <doc>
  11954. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11955. @param file The filename to convert
  11956. @return The unix pathname
  11957. @throws IOException on windows, there can be problems with the subprocess]]>
  11958. </doc>
  11959. </method>
  11960. <method name="makeSecureShellPath" return="java.lang.String"
  11961. abstract="false" native="false" synchronized="false"
  11962. static="true" final="false" visibility="public"
  11963. deprecated="not deprecated">
  11964. <param name="file" type="java.io.File"/>
  11965. <exception name="IOException" type="java.io.IOException"/>
  11966. <doc>
  11967. <![CDATA[Convert a os-native filename to a path that works for the shell
  11968. and avoids script injection attacks.
  11969. @param file The filename to convert
  11970. @return The unix pathname
  11971. @throws IOException on windows, there can be problems with the subprocess]]>
  11972. </doc>
  11973. </method>
  11974. <method name="makeShellPath" return="java.lang.String"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="true" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <param name="file" type="java.io.File"/>
  11979. <param name="makeCanonicalPath" type="boolean"/>
  11980. <exception name="IOException" type="java.io.IOException"/>
  11981. <doc>
  11982. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11983. @param file The filename to convert
  11984. @param makeCanonicalPath
  11985. Whether to make canonical path for the file passed
  11986. @return The unix pathname
  11987. @throws IOException on windows, there can be problems with the subprocess]]>
  11988. </doc>
  11989. </method>
  11990. <method name="getDU" return="long"
  11991. abstract="false" native="false" synchronized="false"
  11992. static="true" final="false" visibility="public"
  11993. deprecated="not deprecated">
  11994. <param name="dir" type="java.io.File"/>
  11995. <doc>
  11996. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  11997. implementation.
  11998. @param dir
  11999. The input dir to get the disk space of this local dir
  12000. @return The total disk space of the input local directory]]>
  12001. </doc>
  12002. </method>
  12003. <method name="unZip"
  12004. abstract="false" native="false" synchronized="false"
  12005. static="true" final="false" visibility="public"
  12006. deprecated="not deprecated">
  12007. <param name="inputStream" type="java.io.InputStream"/>
  12008. <param name="toDir" type="java.io.File"/>
  12009. <exception name="IOException" type="java.io.IOException"/>
  12010. <doc>
  12011. <![CDATA[Given a stream input it will unzip the it in the unzip directory.
  12012. passed as the second parameter
  12013. @param inputStream The zip file as input
  12014. @param toDir The unzip directory where to unzip the zip file.
  12015. @throws IOException an exception occurred]]>
  12016. </doc>
  12017. </method>
  12018. <method name="unZip"
  12019. abstract="false" native="false" synchronized="false"
  12020. static="true" final="false" visibility="public"
  12021. deprecated="not deprecated">
  12022. <param name="inFile" type="java.io.File"/>
  12023. <param name="unzipDir" type="java.io.File"/>
  12024. <exception name="IOException" type="java.io.IOException"/>
  12025. <doc>
  12026. <![CDATA[Given a File input it will unzip it in the unzip directory.
  12027. passed as the second parameter
  12028. @param inFile The zip file as input
  12029. @param unzipDir The unzip directory where to unzip the zip file.
  12030. @throws IOException An I/O exception has occurred]]>
  12031. </doc>
  12032. </method>
  12033. <method name="unTar"
  12034. abstract="false" native="false" synchronized="false"
  12035. static="true" final="false" visibility="public"
  12036. deprecated="not deprecated">
  12037. <param name="inputStream" type="java.io.InputStream"/>
  12038. <param name="untarDir" type="java.io.File"/>
  12039. <param name="gzipped" type="boolean"/>
  12040. <exception name="IOException" type="java.io.IOException"/>
  12041. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  12042. <exception name="ExecutionException" type="java.util.concurrent.ExecutionException"/>
  12043. <doc>
  12044. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  12045. passed as the second parameter
  12046. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  12047. @param inputStream The tar file as input.
  12048. @param untarDir The untar directory where to untar the tar file.
  12049. @param gzipped The input stream is gzipped
  12050. TODO Use magic number and PusbackInputStream to identify
  12051. @throws IOException an exception occurred
  12052. @throws InterruptedException command interrupted
  12053. @throws ExecutionException task submit failed]]>
  12054. </doc>
  12055. </method>
  12056. <method name="unTar"
  12057. abstract="false" native="false" synchronized="false"
  12058. static="true" final="false" visibility="public"
  12059. deprecated="not deprecated">
  12060. <param name="inFile" type="java.io.File"/>
  12061. <param name="untarDir" type="java.io.File"/>
  12062. <exception name="IOException" type="java.io.IOException"/>
  12063. <doc>
  12064. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  12065. passed as the second parameter
  12066. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  12067. @param inFile The tar file as input.
  12068. @param untarDir The untar directory where to untar the tar file.
  12069. @throws IOException]]>
  12070. </doc>
  12071. </method>
  12072. <method name="symLink" return="int"
  12073. abstract="false" native="false" synchronized="false"
  12074. static="true" final="false" visibility="public"
  12075. deprecated="not deprecated">
  12076. <param name="target" type="java.lang.String"/>
  12077. <param name="linkname" type="java.lang.String"/>
  12078. <exception name="IOException" type="java.io.IOException"/>
  12079. <doc>
  12080. <![CDATA[Create a soft link between a src and destination
  12081. only on a local disk. HDFS does not support this.
  12082. On Windows, when symlink creation fails due to security
  12083. setting, we will log a warning. The return code in this
  12084. case is 2.
  12085. @param target the target for symlink
  12086. @param linkname the symlink
  12087. @return 0 on success]]>
  12088. </doc>
  12089. </method>
  12090. <method name="chmod" return="int"
  12091. abstract="false" native="false" synchronized="false"
  12092. static="true" final="false" visibility="public"
  12093. deprecated="not deprecated">
  12094. <param name="filename" type="java.lang.String"/>
  12095. <param name="perm" type="java.lang.String"/>
  12096. <exception name="IOException" type="java.io.IOException"/>
  12097. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  12098. <doc>
  12099. <![CDATA[Change the permissions on a filename.
  12100. @param filename the name of the file to change
  12101. @param perm the permission string
  12102. @return the exit code from the command
  12103. @throws IOException
  12104. @throws InterruptedException]]>
  12105. </doc>
  12106. </method>
  12107. <method name="chmod" return="int"
  12108. abstract="false" native="false" synchronized="false"
  12109. static="true" final="false" visibility="public"
  12110. deprecated="not deprecated">
  12111. <param name="filename" type="java.lang.String"/>
  12112. <param name="perm" type="java.lang.String"/>
  12113. <param name="recursive" type="boolean"/>
  12114. <exception name="IOException" type="java.io.IOException"/>
  12115. <doc>
  12116. <![CDATA[Change the permissions on a file / directory, recursively, if
  12117. needed.
  12118. @param filename name of the file whose permissions are to change
  12119. @param perm permission string
  12120. @param recursive true, if permissions should be changed recursively
  12121. @return the exit code from the command.
  12122. @throws IOException]]>
  12123. </doc>
  12124. </method>
  12125. <method name="setOwner"
  12126. abstract="false" native="false" synchronized="false"
  12127. static="true" final="false" visibility="public"
  12128. deprecated="not deprecated">
  12129. <param name="file" type="java.io.File"/>
  12130. <param name="username" type="java.lang.String"/>
  12131. <param name="groupname" type="java.lang.String"/>
  12132. <exception name="IOException" type="java.io.IOException"/>
  12133. <doc>
  12134. <![CDATA[Set the ownership on a file / directory. User name and group name
  12135. cannot both be null.
  12136. @param file the file to change
  12137. @param username the new user owner name
  12138. @param groupname the new group owner name
  12139. @throws IOException]]>
  12140. </doc>
  12141. </method>
  12142. <method name="setReadable" return="boolean"
  12143. abstract="false" native="false" synchronized="false"
  12144. static="true" final="false" visibility="public"
  12145. deprecated="not deprecated">
  12146. <param name="f" type="java.io.File"/>
  12147. <param name="readable" type="boolean"/>
  12148. <doc>
  12149. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  12150. File#setReadable does not work as expected on Windows.
  12151. @param f input file
  12152. @param readable
  12153. @return true on success, false otherwise]]>
  12154. </doc>
  12155. </method>
  12156. <method name="setWritable" return="boolean"
  12157. abstract="false" native="false" synchronized="false"
  12158. static="true" final="false" visibility="public"
  12159. deprecated="not deprecated">
  12160. <param name="f" type="java.io.File"/>
  12161. <param name="writable" type="boolean"/>
  12162. <doc>
  12163. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  12164. File#setWritable does not work as expected on Windows.
  12165. @param f input file
  12166. @param writable
  12167. @return true on success, false otherwise]]>
  12168. </doc>
  12169. </method>
  12170. <method name="setExecutable" return="boolean"
  12171. abstract="false" native="false" synchronized="false"
  12172. static="true" final="false" visibility="public"
  12173. deprecated="not deprecated">
  12174. <param name="f" type="java.io.File"/>
  12175. <param name="executable" type="boolean"/>
  12176. <doc>
  12177. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  12178. File#setExecutable does not work as expected on Windows.
  12179. Note: revoking execute permission on folders does not have the same
  12180. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  12181. a file within that folder will still succeed on Windows.
  12182. @param f input file
  12183. @param executable
  12184. @return true on success, false otherwise]]>
  12185. </doc>
  12186. </method>
  12187. <method name="canRead" return="boolean"
  12188. abstract="false" native="false" synchronized="false"
  12189. static="true" final="false" visibility="public"
  12190. deprecated="not deprecated">
  12191. <param name="f" type="java.io.File"/>
  12192. <doc>
  12193. <![CDATA[Platform independent implementation for {@link File#canRead()}
  12194. @param f input file
  12195. @return On Unix, same as {@link File#canRead()}
  12196. On Windows, true if process has read access on the path]]>
  12197. </doc>
  12198. </method>
  12199. <method name="canWrite" return="boolean"
  12200. abstract="false" native="false" synchronized="false"
  12201. static="true" final="false" visibility="public"
  12202. deprecated="not deprecated">
  12203. <param name="f" type="java.io.File"/>
  12204. <doc>
  12205. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  12206. @param f input file
  12207. @return On Unix, same as {@link File#canWrite()}
  12208. On Windows, true if process has write access on the path]]>
  12209. </doc>
  12210. </method>
  12211. <method name="canExecute" return="boolean"
  12212. abstract="false" native="false" synchronized="false"
  12213. static="true" final="false" visibility="public"
  12214. deprecated="not deprecated">
  12215. <param name="f" type="java.io.File"/>
  12216. <doc>
  12217. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  12218. @param f input file
  12219. @return On Unix, same as {@link File#canExecute()}
  12220. On Windows, true if process has execute access on the path]]>
  12221. </doc>
  12222. </method>
  12223. <method name="setPermission"
  12224. abstract="false" native="false" synchronized="false"
  12225. static="true" final="false" visibility="public"
  12226. deprecated="not deprecated">
  12227. <param name="f" type="java.io.File"/>
  12228. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12229. <exception name="IOException" type="java.io.IOException"/>
  12230. <doc>
  12231. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  12232. of forking if group == other.
  12233. @param f the file to change
  12234. @param permission the new permissions
  12235. @throws IOException]]>
  12236. </doc>
  12237. </method>
  12238. <method name="createLocalTempFile" return="java.io.File"
  12239. abstract="false" native="false" synchronized="false"
  12240. static="true" final="true" visibility="public"
  12241. deprecated="not deprecated">
  12242. <param name="basefile" type="java.io.File"/>
  12243. <param name="prefix" type="java.lang.String"/>
  12244. <param name="isDeleteOnExit" type="boolean"/>
  12245. <exception name="IOException" type="java.io.IOException"/>
  12246. <doc>
  12247. <![CDATA[Create a tmp file for a base file.
  12248. @param basefile the base file of the tmp
  12249. @param prefix file name prefix of tmp
  12250. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  12251. @return a newly created tmp file
  12252. @exception IOException If a tmp file cannot created
  12253. @see java.io.File#createTempFile(String, String, File)
  12254. @see java.io.File#deleteOnExit()]]>
  12255. </doc>
  12256. </method>
  12257. <method name="replaceFile"
  12258. abstract="false" native="false" synchronized="false"
  12259. static="true" final="false" visibility="public"
  12260. deprecated="not deprecated">
  12261. <param name="src" type="java.io.File"/>
  12262. <param name="target" type="java.io.File"/>
  12263. <exception name="IOException" type="java.io.IOException"/>
  12264. <doc>
  12265. <![CDATA[Move the src file to the name specified by target.
  12266. @param src the source file
  12267. @param target the target file
  12268. @exception IOException If this operation fails]]>
  12269. </doc>
  12270. </method>
  12271. <method name="listFiles" return="java.io.File[]"
  12272. abstract="false" native="false" synchronized="false"
  12273. static="true" final="false" visibility="public"
  12274. deprecated="not deprecated">
  12275. <param name="dir" type="java.io.File"/>
  12276. <exception name="IOException" type="java.io.IOException"/>
  12277. <doc>
  12278. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  12279. when a dir is not a directory or for any I/O error. Instead of having
  12280. null check everywhere File#listFiles() is used, we will add utility API
  12281. to get around this problem. For the majority of cases where we prefer
  12282. an IOException to be thrown.
  12283. @param dir directory for which listing should be performed
  12284. @return list of files or empty list
  12285. @exception IOException for invalid directory or for a bad disk.]]>
  12286. </doc>
  12287. </method>
  12288. <method name="list" return="java.lang.String[]"
  12289. abstract="false" native="false" synchronized="false"
  12290. static="true" final="false" visibility="public"
  12291. deprecated="not deprecated">
  12292. <param name="dir" type="java.io.File"/>
  12293. <exception name="IOException" type="java.io.IOException"/>
  12294. <doc>
  12295. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  12296. when a dir is not a directory or for any I/O error. Instead of having
  12297. null check everywhere File#list() is used, we will add utility API
  12298. to get around this problem. For the majority of cases where we prefer
  12299. an IOException to be thrown.
  12300. @param dir directory for which listing should be performed
  12301. @return list of file names or empty string list
  12302. @exception AccessDeniedException for unreadable directory
  12303. @exception IOException for invalid directory or for bad disk]]>
  12304. </doc>
  12305. </method>
  12306. <method name="createJarWithClassPath" return="java.lang.String[]"
  12307. abstract="false" native="false" synchronized="false"
  12308. static="true" final="false" visibility="public"
  12309. deprecated="not deprecated">
  12310. <param name="inputClassPath" type="java.lang.String"/>
  12311. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  12312. <param name="callerEnv" type="java.util.Map"/>
  12313. <exception name="IOException" type="java.io.IOException"/>
  12314. </method>
  12315. <method name="createJarWithClassPath" return="java.lang.String[]"
  12316. abstract="false" native="false" synchronized="false"
  12317. static="true" final="false" visibility="public"
  12318. deprecated="not deprecated">
  12319. <param name="inputClassPath" type="java.lang.String"/>
  12320. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  12321. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  12322. <param name="callerEnv" type="java.util.Map"/>
  12323. <exception name="IOException" type="java.io.IOException"/>
  12324. <doc>
  12325. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  12326. that references all specified entries.
  12327. Some platforms may have an upper limit on command line length. For example,
  12328. the maximum command line length on Windows is 8191 characters, but the
  12329. length of the classpath may exceed this. To work around this limitation,
  12330. use this method to create a small intermediate jar with a manifest that
  12331. contains the full classpath. It returns the absolute path to the new jar,
  12332. which the caller may set as the classpath for a new process.
  12333. Environment variable evaluation is not supported within a jar manifest, so
  12334. this method expands environment variables before inserting classpath entries
  12335. to the manifest. The method parses environment variables according to
  12336. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  12337. environment variables are case-insensitive. For example, %VAR% and %var%
  12338. evaluate to the same value.
  12339. Specifying the classpath in a jar manifest does not support wildcards, so
  12340. this method expands wildcards internally. Any classpath entry that ends
  12341. with * is translated to all files at that path with extension .jar or .JAR.
  12342. @param inputClassPath String input classpath to bundle into the jar manifest
  12343. @param pwd Path to working directory to save jar
  12344. @param targetDir path to where the jar execution will have its working dir
  12345. @param callerEnv Map {@literal <}String, String{@literal >} caller's
  12346. environment variables to use for expansion
  12347. @return String[] with absolute path to new jar in position 0 and
  12348. unexpanded wild card entry path in position 1
  12349. @throws IOException if there is an I/O error while writing the jar file]]>
  12350. </doc>
  12351. </method>
  12352. <method name="getJarsInDirectory" return="java.util.List"
  12353. abstract="false" native="false" synchronized="false"
  12354. static="true" final="false" visibility="public"
  12355. deprecated="not deprecated">
  12356. <param name="path" type="java.lang.String"/>
  12357. <doc>
  12358. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  12359. wildcard path to return all jars from the directory to use in a classpath.
  12360. It operates only on local paths.
  12361. @param path the path to the directory. The path may include the wildcard.
  12362. @return the list of jars as URLs, or an empty list if there are no jars, or
  12363. the directory does not exist locally]]>
  12364. </doc>
  12365. </method>
  12366. <method name="getJarsInDirectory" return="java.util.List"
  12367. abstract="false" native="false" synchronized="false"
  12368. static="true" final="false" visibility="public"
  12369. deprecated="not deprecated">
  12370. <param name="path" type="java.lang.String"/>
  12371. <param name="useLocal" type="boolean"/>
  12372. <doc>
  12373. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  12374. wildcard path to return all jars from the directory to use in a classpath.
  12375. @param path the path to the directory. The path may include the wildcard.
  12376. @return the list of jars as URLs, or an empty list if there are no jars, or
  12377. the directory does not exist]]>
  12378. </doc>
  12379. </method>
  12380. <method name="compareFs" return="boolean"
  12381. abstract="false" native="false" synchronized="false"
  12382. static="true" final="false" visibility="public"
  12383. deprecated="not deprecated">
  12384. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  12385. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  12386. </method>
  12387. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12388. abstract="false" native="false" synchronized="false"
  12389. static="true" final="false" visibility="public"
  12390. deprecated="not deprecated">
  12391. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12392. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12393. <param name="bytes" type="byte[]"/>
  12394. <exception name="IOException" type="java.io.IOException"/>
  12395. <doc>
  12396. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  12397. creating the file if it does not exist, or overwrites an existing file. All
  12398. bytes in the byte array are written to the file.
  12399. @param fs the file system with which to create the file
  12400. @param path the path to the file
  12401. @param bytes the byte array with the bytes to write
  12402. @return the file system
  12403. @throws NullPointerException if any of the arguments are {@code null}
  12404. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12405. </doc>
  12406. </method>
  12407. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12408. abstract="false" native="false" synchronized="false"
  12409. static="true" final="false" visibility="public"
  12410. deprecated="not deprecated">
  12411. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  12412. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12413. <param name="bytes" type="byte[]"/>
  12414. <exception name="IOException" type="java.io.IOException"/>
  12415. <doc>
  12416. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  12417. creating the file if it does not exist, or overwrites an existing file. All
  12418. bytes in the byte array are written to the file.
  12419. @param fileContext the file context with which to create the file
  12420. @param path the path to the file
  12421. @param bytes the byte array with the bytes to write
  12422. @return the file context
  12423. @throws NullPointerException if any of the arguments are {@code null}
  12424. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12425. </doc>
  12426. </method>
  12427. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12428. abstract="false" native="false" synchronized="false"
  12429. static="true" final="false" visibility="public"
  12430. deprecated="not deprecated">
  12431. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12432. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12433. <param name="lines" type="java.lang.Iterable"/>
  12434. <param name="cs" type="java.nio.charset.Charset"/>
  12435. <exception name="IOException" type="java.io.IOException"/>
  12436. <doc>
  12437. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  12438. to the file in sequence with each line terminated by the platform's line
  12439. separator, as defined by the system property {@code
  12440. line.separator}. Characters are encoded into bytes using the specified
  12441. charset. This utility method opens the file for writing, creating the file
  12442. if it does not exist, or overwrites an existing file.
  12443. @param fs the file system with which to create the file
  12444. @param path the path to the file
  12445. @param lines a Collection to iterate over the char sequences
  12446. @param cs the charset to use for encoding
  12447. @return the file system
  12448. @throws NullPointerException if any of the arguments are {@code null}
  12449. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12450. </doc>
  12451. </method>
  12452. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12453. abstract="false" native="false" synchronized="false"
  12454. static="true" final="false" visibility="public"
  12455. deprecated="not deprecated">
  12456. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  12457. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12458. <param name="lines" type="java.lang.Iterable"/>
  12459. <param name="cs" type="java.nio.charset.Charset"/>
  12460. <exception name="IOException" type="java.io.IOException"/>
  12461. <doc>
  12462. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  12463. to the file in sequence with each line terminated by the platform's line
  12464. separator, as defined by the system property {@code
  12465. line.separator}. Characters are encoded into bytes using the specified
  12466. charset. This utility method opens the file for writing, creating the file
  12467. if it does not exist, or overwrites an existing file.
  12468. @param fileContext the file context with which to create the file
  12469. @param path the path to the file
  12470. @param lines a Collection to iterate over the char sequences
  12471. @param cs the charset to use for encoding
  12472. @return the file context
  12473. @throws NullPointerException if any of the arguments are {@code null}
  12474. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12475. </doc>
  12476. </method>
  12477. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12478. abstract="false" native="false" synchronized="false"
  12479. static="true" final="false" visibility="public"
  12480. deprecated="not deprecated">
  12481. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12482. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12483. <param name="charseq" type="java.lang.CharSequence"/>
  12484. <param name="cs" type="java.nio.charset.Charset"/>
  12485. <exception name="IOException" type="java.io.IOException"/>
  12486. <doc>
  12487. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  12488. specified charset. This utility method opens the file for writing, creating
  12489. the file if it does not exist, or overwrites an existing file.
  12490. @param fs the file system with which to create the file
  12491. @param path the path to the file
  12492. @param charseq the char sequence to write to the file
  12493. @param cs the charset to use for encoding
  12494. @return the file system
  12495. @throws NullPointerException if any of the arguments are {@code null}
  12496. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12497. </doc>
  12498. </method>
  12499. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12500. abstract="false" native="false" synchronized="false"
  12501. static="true" final="false" visibility="public"
  12502. deprecated="not deprecated">
  12503. <param name="fs" type="org.apache.hadoop.fs.FileContext"/>
  12504. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12505. <param name="charseq" type="java.lang.CharSequence"/>
  12506. <param name="cs" type="java.nio.charset.Charset"/>
  12507. <exception name="IOException" type="java.io.IOException"/>
  12508. <doc>
  12509. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  12510. specified charset. This utility method opens the file for writing, creating
  12511. the file if it does not exist, or overwrites an existing file.
  12512. @param FileContext the file context with which to create the file
  12513. @param path the path to the file
  12514. @param charseq the char sequence to write to the file
  12515. @param cs the charset to use for encoding
  12516. @return the file context
  12517. @throws NullPointerException if any of the arguments are {@code null}
  12518. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12519. </doc>
  12520. </method>
  12521. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12522. abstract="false" native="false" synchronized="false"
  12523. static="true" final="false" visibility="public"
  12524. deprecated="not deprecated">
  12525. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12526. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12527. <param name="charseq" type="java.lang.CharSequence"/>
  12528. <exception name="IOException" type="java.io.IOException"/>
  12529. <doc>
  12530. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  12531. UTF-8. This utility method opens the file for writing, creating the file if
  12532. it does not exist, or overwrites an existing file.
  12533. @param fs the files system with which to create the file
  12534. @param path the path to the file
  12535. @param charseq the char sequence to write to the file
  12536. @return the file system
  12537. @throws NullPointerException if any of the arguments are {@code null}
  12538. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12539. </doc>
  12540. </method>
  12541. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12542. abstract="false" native="false" synchronized="false"
  12543. static="true" final="false" visibility="public"
  12544. deprecated="not deprecated">
  12545. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  12546. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12547. <param name="charseq" type="java.lang.CharSequence"/>
  12548. <exception name="IOException" type="java.io.IOException"/>
  12549. <doc>
  12550. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  12551. UTF-8. This utility method opens the file for writing, creating the file if
  12552. it does not exist, or overwrites an existing file.
  12553. @param fileContext the files system with which to create the file
  12554. @param path the path to the file
  12555. @param charseq the char sequence to write to the file
  12556. @return the file context
  12557. @throws NullPointerException if any of the arguments are {@code null}
  12558. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12559. </doc>
  12560. </method>
  12561. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  12562. transient="false" volatile="false"
  12563. static="true" final="true" visibility="public"
  12564. deprecated="not deprecated">
  12565. </field>
  12566. <doc>
  12567. <![CDATA[A collection of file-processing util methods]]>
  12568. </doc>
  12569. </class>
  12570. <!-- end class org.apache.hadoop.fs.FileUtil -->
  12571. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  12572. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  12573. abstract="false"
  12574. static="false" final="false" visibility="public"
  12575. deprecated="not deprecated">
  12576. <constructor name="FilterFileSystem"
  12577. static="false" final="false" visibility="public"
  12578. deprecated="not deprecated">
  12579. </constructor>
  12580. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  12581. static="false" final="false" visibility="public"
  12582. deprecated="not deprecated">
  12583. </constructor>
  12584. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  12585. abstract="false" native="false" synchronized="false"
  12586. static="false" final="false" visibility="public"
  12587. deprecated="not deprecated">
  12588. <doc>
  12589. <![CDATA[Get the raw file system
  12590. @return FileSystem being filtered]]>
  12591. </doc>
  12592. </method>
  12593. <method name="initialize"
  12594. abstract="false" native="false" synchronized="false"
  12595. static="false" final="false" visibility="public"
  12596. deprecated="not deprecated">
  12597. <param name="name" type="java.net.URI"/>
  12598. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12599. <exception name="IOException" type="java.io.IOException"/>
  12600. <doc>
  12601. <![CDATA[Called after a new FileSystem instance is constructed.
  12602. @param name a uri whose authority section names the host, port, etc.
  12603. for this FileSystem
  12604. @param conf the configuration]]>
  12605. </doc>
  12606. </method>
  12607. <method name="getUri" return="java.net.URI"
  12608. abstract="false" native="false" synchronized="false"
  12609. static="false" final="false" visibility="public"
  12610. deprecated="not deprecated">
  12611. <doc>
  12612. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  12613. </doc>
  12614. </method>
  12615. <method name="getCanonicalUri" return="java.net.URI"
  12616. abstract="false" native="false" synchronized="false"
  12617. static="false" final="false" visibility="protected"
  12618. deprecated="not deprecated">
  12619. </method>
  12620. <method name="canonicalizeUri" return="java.net.URI"
  12621. abstract="false" native="false" synchronized="false"
  12622. static="false" final="false" visibility="protected"
  12623. deprecated="not deprecated">
  12624. <param name="uri" type="java.net.URI"/>
  12625. </method>
  12626. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  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. <doc>
  12632. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  12633. </doc>
  12634. </method>
  12635. <method name="checkPath"
  12636. abstract="false" native="false" synchronized="false"
  12637. static="false" final="false" visibility="protected"
  12638. deprecated="not deprecated">
  12639. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12640. <doc>
  12641. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  12642. </doc>
  12643. </method>
  12644. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  12645. abstract="false" native="false" synchronized="false"
  12646. static="false" final="false" visibility="public"
  12647. deprecated="not deprecated">
  12648. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  12649. <param name="start" type="long"/>
  12650. <param name="len" type="long"/>
  12651. <exception name="IOException" type="java.io.IOException"/>
  12652. </method>
  12653. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  12654. abstract="false" native="false" synchronized="false"
  12655. static="false" final="false" visibility="public"
  12656. deprecated="not deprecated">
  12657. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12658. <exception name="IOException" type="java.io.IOException"/>
  12659. </method>
  12660. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12661. abstract="false" native="false" synchronized="false"
  12662. static="false" final="false" visibility="public"
  12663. deprecated="not deprecated">
  12664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12665. <param name="bufferSize" type="int"/>
  12666. <exception name="IOException" type="java.io.IOException"/>
  12667. <doc>
  12668. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  12669. @param f the file name to open
  12670. @param bufferSize the size of the buffer to be used.]]>
  12671. </doc>
  12672. </method>
  12673. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12674. abstract="false" native="false" synchronized="false"
  12675. static="false" final="false" visibility="public"
  12676. deprecated="not deprecated">
  12677. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  12678. <param name="bufferSize" type="int"/>
  12679. <exception name="IOException" type="java.io.IOException"/>
  12680. </method>
  12681. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  12682. abstract="false" native="false" synchronized="false"
  12683. static="false" final="false" visibility="protected"
  12684. deprecated="not deprecated">
  12685. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  12686. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  12687. </method>
  12688. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12689. abstract="false" native="false" synchronized="false"
  12690. static="false" final="false" visibility="public"
  12691. deprecated="not deprecated">
  12692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12693. <param name="bufferSize" type="int"/>
  12694. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12695. <exception name="IOException" type="java.io.IOException"/>
  12696. </method>
  12697. <method name="concat"
  12698. abstract="false" native="false" synchronized="false"
  12699. static="false" final="false" visibility="public"
  12700. deprecated="not deprecated">
  12701. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12702. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  12703. <exception name="IOException" type="java.io.IOException"/>
  12704. </method>
  12705. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12706. abstract="false" native="false" synchronized="false"
  12707. static="false" final="false" visibility="public"
  12708. deprecated="not deprecated">
  12709. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12710. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12711. <param name="overwrite" type="boolean"/>
  12712. <param name="bufferSize" type="int"/>
  12713. <param name="replication" type="short"/>
  12714. <param name="blockSize" type="long"/>
  12715. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12716. <exception name="IOException" type="java.io.IOException"/>
  12717. </method>
  12718. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12719. abstract="false" native="false" synchronized="false"
  12720. static="false" final="false" visibility="public"
  12721. deprecated="not deprecated">
  12722. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12723. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12724. <param name="flags" type="java.util.EnumSet"/>
  12725. <param name="bufferSize" type="int"/>
  12726. <param name="replication" type="short"/>
  12727. <param name="blockSize" type="long"/>
  12728. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12729. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12730. <exception name="IOException" type="java.io.IOException"/>
  12731. </method>
  12732. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12733. abstract="false" native="false" synchronized="false"
  12734. static="false" final="false" visibility="protected"
  12735. deprecated="not deprecated">
  12736. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12737. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  12738. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12739. <exception name="IOException" type="java.io.IOException"/>
  12740. </method>
  12741. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12742. abstract="false" native="false" synchronized="false"
  12743. static="false" final="false" visibility="public"
  12744. deprecated="not deprecated">
  12745. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12746. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12747. <param name="flags" type="java.util.EnumSet"/>
  12748. <param name="bufferSize" type="int"/>
  12749. <param name="replication" type="short"/>
  12750. <param name="blockSize" type="long"/>
  12751. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12752. <exception name="IOException" type="java.io.IOException"/>
  12753. </method>
  12754. <method name="setReplication" return="boolean"
  12755. abstract="false" native="false" synchronized="false"
  12756. static="false" final="false" visibility="public"
  12757. deprecated="not deprecated">
  12758. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12759. <param name="replication" type="short"/>
  12760. <exception name="IOException" type="java.io.IOException"/>
  12761. <doc>
  12762. <![CDATA[Set replication for an existing file.
  12763. @param src file name
  12764. @param replication new replication
  12765. @throws IOException
  12766. @return true if successful;
  12767. false if file does not exist or is a directory]]>
  12768. </doc>
  12769. </method>
  12770. <method name="rename" return="boolean"
  12771. abstract="false" native="false" synchronized="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12775. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12776. <exception name="IOException" type="java.io.IOException"/>
  12777. <doc>
  12778. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  12779. or remote DFS.]]>
  12780. </doc>
  12781. </method>
  12782. <method name="rename"
  12783. abstract="false" native="false" synchronized="false"
  12784. static="false" final="false" visibility="protected"
  12785. deprecated="not deprecated">
  12786. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12787. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12788. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  12789. <exception name="IOException" type="java.io.IOException"/>
  12790. </method>
  12791. <method name="truncate" return="boolean"
  12792. abstract="false" native="false" synchronized="false"
  12793. static="false" final="false" visibility="public"
  12794. deprecated="not deprecated">
  12795. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12796. <param name="newLength" type="long"/>
  12797. <exception name="IOException" type="java.io.IOException"/>
  12798. </method>
  12799. <method name="delete" return="boolean"
  12800. abstract="false" native="false" synchronized="false"
  12801. static="false" final="false" visibility="public"
  12802. deprecated="not deprecated">
  12803. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12804. <param name="recursive" type="boolean"/>
  12805. <exception name="IOException" type="java.io.IOException"/>
  12806. <doc>
  12807. <![CDATA[Delete a file]]>
  12808. </doc>
  12809. </method>
  12810. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12811. abstract="false" native="false" synchronized="false"
  12812. static="false" final="false" visibility="public"
  12813. deprecated="not deprecated">
  12814. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12815. <exception name="IOException" type="java.io.IOException"/>
  12816. <doc>
  12817. <![CDATA[List files in a directory.]]>
  12818. </doc>
  12819. </method>
  12820. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  12821. abstract="false" native="false" synchronized="false"
  12822. static="false" final="false" visibility="public"
  12823. deprecated="not deprecated">
  12824. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12825. <exception name="IOException" type="java.io.IOException"/>
  12826. </method>
  12827. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12828. abstract="false" native="false" synchronized="false"
  12829. static="false" final="false" visibility="public"
  12830. deprecated="not deprecated">
  12831. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12832. <exception name="IOException" type="java.io.IOException"/>
  12833. <doc>
  12834. <![CDATA[List files and its block locations in a directory.]]>
  12835. </doc>
  12836. </method>
  12837. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  12838. abstract="false" native="false" synchronized="false"
  12839. static="false" final="false" visibility="public"
  12840. deprecated="not deprecated">
  12841. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12842. <exception name="IOException" type="java.io.IOException"/>
  12843. <doc>
  12844. <![CDATA[Return a remote iterator for listing in a directory]]>
  12845. </doc>
  12846. </method>
  12847. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12848. abstract="false" native="false" synchronized="false"
  12849. static="false" final="false" visibility="public"
  12850. deprecated="not deprecated">
  12851. </method>
  12852. <method name="setWorkingDirectory"
  12853. abstract="false" native="false" synchronized="false"
  12854. static="false" final="false" visibility="public"
  12855. deprecated="not deprecated">
  12856. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  12857. <doc>
  12858. <![CDATA[Set the current working directory for the given file system. All relative
  12859. paths will be resolved relative to it.
  12860. @param newDir]]>
  12861. </doc>
  12862. </method>
  12863. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12864. abstract="false" native="false" synchronized="false"
  12865. static="false" final="false" visibility="public"
  12866. deprecated="not deprecated">
  12867. <doc>
  12868. <![CDATA[Get the current working directory for the given file system
  12869. @return the directory pathname]]>
  12870. </doc>
  12871. </method>
  12872. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12873. abstract="false" native="false" synchronized="false"
  12874. static="false" final="false" visibility="protected"
  12875. deprecated="not deprecated">
  12876. </method>
  12877. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  12878. abstract="false" native="false" synchronized="false"
  12879. static="false" final="false" visibility="public"
  12880. deprecated="not deprecated">
  12881. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12882. <exception name="IOException" type="java.io.IOException"/>
  12883. </method>
  12884. <method name="mkdirs" return="boolean"
  12885. abstract="false" native="false" synchronized="false"
  12886. static="false" final="false" visibility="public"
  12887. deprecated="not deprecated">
  12888. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12889. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12890. <exception name="IOException" type="java.io.IOException"/>
  12891. </method>
  12892. <method name="mkdirs" return="boolean"
  12893. abstract="false" native="false" synchronized="false"
  12894. static="false" final="false" visibility="public"
  12895. deprecated="not deprecated">
  12896. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12897. <exception name="IOException" type="java.io.IOException"/>
  12898. </method>
  12899. <method name="copyFromLocalFile"
  12900. abstract="false" native="false" synchronized="false"
  12901. static="false" final="false" visibility="public"
  12902. deprecated="not deprecated">
  12903. <param name="delSrc" type="boolean"/>
  12904. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12905. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12906. <exception name="IOException" type="java.io.IOException"/>
  12907. <doc>
  12908. <![CDATA[The src file is on the local disk. Add it to FS at
  12909. the given dst name.
  12910. delSrc indicates if the source should be removed]]>
  12911. </doc>
  12912. </method>
  12913. <method name="copyFromLocalFile"
  12914. abstract="false" native="false" synchronized="false"
  12915. static="false" final="false" visibility="public"
  12916. deprecated="not deprecated">
  12917. <param name="delSrc" type="boolean"/>
  12918. <param name="overwrite" type="boolean"/>
  12919. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  12920. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12921. <exception name="IOException" type="java.io.IOException"/>
  12922. <doc>
  12923. <![CDATA[The src files are on the local disk. Add it to FS at
  12924. the given dst name.
  12925. delSrc indicates if the source should be removed]]>
  12926. </doc>
  12927. </method>
  12928. <method name="copyFromLocalFile"
  12929. abstract="false" native="false" synchronized="false"
  12930. static="false" final="false" visibility="public"
  12931. deprecated="not deprecated">
  12932. <param name="delSrc" type="boolean"/>
  12933. <param name="overwrite" type="boolean"/>
  12934. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12935. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12936. <exception name="IOException" type="java.io.IOException"/>
  12937. <doc>
  12938. <![CDATA[The src file is on the local disk. Add it to FS at
  12939. the given dst name.
  12940. delSrc indicates if the source should be removed]]>
  12941. </doc>
  12942. </method>
  12943. <method name="copyToLocalFile"
  12944. abstract="false" native="false" synchronized="false"
  12945. static="false" final="false" visibility="public"
  12946. deprecated="not deprecated">
  12947. <param name="delSrc" type="boolean"/>
  12948. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12949. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12950. <exception name="IOException" type="java.io.IOException"/>
  12951. <doc>
  12952. <![CDATA[The src file is under FS, and the dst is on the local disk.
  12953. Copy it from FS control to the local dst name.
  12954. delSrc indicates if the src will be removed or not.]]>
  12955. </doc>
  12956. </method>
  12957. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12958. abstract="false" native="false" synchronized="false"
  12959. static="false" final="false" visibility="public"
  12960. deprecated="not deprecated">
  12961. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12962. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12963. <exception name="IOException" type="java.io.IOException"/>
  12964. <doc>
  12965. <![CDATA[Returns a local File that the user can write output to. The caller
  12966. provides both the eventual FS target name and the local working
  12967. file. If the FS is local, we write directly into the target. If
  12968. the FS is remote, we write into the tmp local area.]]>
  12969. </doc>
  12970. </method>
  12971. <method name="completeLocalOutput"
  12972. abstract="false" native="false" synchronized="false"
  12973. static="false" final="false" visibility="public"
  12974. deprecated="not deprecated">
  12975. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12976. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12977. <exception name="IOException" type="java.io.IOException"/>
  12978. <doc>
  12979. <![CDATA[Called when we're all done writing to the target. A local FS will
  12980. do nothing, because we've written to exactly the right place. A remote
  12981. FS will copy the contents of tmpLocalFile to the correct target at
  12982. fsOutputFile.]]>
  12983. </doc>
  12984. </method>
  12985. <method name="getUsed" return="long"
  12986. abstract="false" native="false" synchronized="false"
  12987. static="false" final="false" visibility="public"
  12988. deprecated="not deprecated">
  12989. <exception name="IOException" type="java.io.IOException"/>
  12990. <doc>
  12991. <![CDATA[Return the total size of all files in the filesystem.]]>
  12992. </doc>
  12993. </method>
  12994. <method name="getUsed" return="long"
  12995. abstract="false" native="false" synchronized="false"
  12996. static="false" final="false" visibility="public"
  12997. deprecated="not deprecated">
  12998. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12999. <exception name="IOException" type="java.io.IOException"/>
  13000. <doc>
  13001. <![CDATA[Return the total size of all files from a specified path.]]>
  13002. </doc>
  13003. </method>
  13004. <method name="getDefaultBlockSize" return="long"
  13005. abstract="false" native="false" synchronized="false"
  13006. static="false" final="false" visibility="public"
  13007. deprecated="not deprecated">
  13008. </method>
  13009. <method name="getDefaultReplication" return="short"
  13010. abstract="false" native="false" synchronized="false"
  13011. static="false" final="false" visibility="public"
  13012. deprecated="not deprecated">
  13013. </method>
  13014. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13015. abstract="false" native="false" synchronized="false"
  13016. static="false" final="false" visibility="public"
  13017. deprecated="not deprecated">
  13018. <exception name="IOException" type="java.io.IOException"/>
  13019. </method>
  13020. <method name="getDefaultBlockSize" return="long"
  13021. abstract="false" native="false" synchronized="false"
  13022. static="false" final="false" visibility="public"
  13023. deprecated="not deprecated">
  13024. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13025. </method>
  13026. <method name="getDefaultReplication" return="short"
  13027. abstract="false" native="false" synchronized="false"
  13028. static="false" final="false" visibility="public"
  13029. deprecated="not deprecated">
  13030. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13031. </method>
  13032. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13033. abstract="false" native="false" synchronized="false"
  13034. static="false" final="false" visibility="public"
  13035. deprecated="not deprecated">
  13036. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13037. <exception name="IOException" type="java.io.IOException"/>
  13038. </method>
  13039. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13040. abstract="false" native="false" synchronized="false"
  13041. static="false" final="false" visibility="public"
  13042. deprecated="not deprecated">
  13043. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13044. <exception name="IOException" type="java.io.IOException"/>
  13045. <doc>
  13046. <![CDATA[Get file status.]]>
  13047. </doc>
  13048. </method>
  13049. <method name="msync"
  13050. abstract="false" native="false" synchronized="false"
  13051. static="false" final="false" visibility="public"
  13052. deprecated="not deprecated">
  13053. <exception name="IOException" type="java.io.IOException"/>
  13054. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13055. </method>
  13056. <method name="access"
  13057. abstract="false" native="false" synchronized="false"
  13058. static="false" final="false" visibility="public"
  13059. deprecated="not deprecated">
  13060. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13061. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  13062. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13063. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13064. <exception name="IOException" type="java.io.IOException"/>
  13065. </method>
  13066. <method name="createSymlink"
  13067. abstract="false" native="false" synchronized="false"
  13068. static="false" final="false" visibility="public"
  13069. deprecated="not deprecated">
  13070. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13071. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13072. <param name="createParent" type="boolean"/>
  13073. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13074. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  13075. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13076. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  13077. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13078. <exception name="IOException" type="java.io.IOException"/>
  13079. </method>
  13080. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13081. abstract="false" native="false" synchronized="false"
  13082. static="false" final="false" visibility="public"
  13083. deprecated="not deprecated">
  13084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13085. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13086. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13087. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13088. <exception name="IOException" type="java.io.IOException"/>
  13089. </method>
  13090. <method name="supportsSymlinks" return="boolean"
  13091. abstract="false" native="false" synchronized="false"
  13092. static="false" final="false" visibility="public"
  13093. deprecated="not deprecated">
  13094. </method>
  13095. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13096. abstract="false" native="false" synchronized="false"
  13097. static="false" final="false" visibility="public"
  13098. deprecated="not deprecated">
  13099. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13100. <exception name="IOException" type="java.io.IOException"/>
  13101. </method>
  13102. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  13103. abstract="false" native="false" synchronized="false"
  13104. static="false" final="false" visibility="protected"
  13105. deprecated="not deprecated">
  13106. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13107. <exception name="IOException" type="java.io.IOException"/>
  13108. </method>
  13109. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13110. abstract="false" native="false" synchronized="false"
  13111. static="false" final="false" visibility="public"
  13112. deprecated="not deprecated">
  13113. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13114. <exception name="IOException" type="java.io.IOException"/>
  13115. </method>
  13116. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13117. abstract="false" native="false" synchronized="false"
  13118. static="false" final="false" visibility="public"
  13119. deprecated="not deprecated">
  13120. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13121. <param name="length" type="long"/>
  13122. <exception name="IOException" type="java.io.IOException"/>
  13123. </method>
  13124. <method name="setVerifyChecksum"
  13125. abstract="false" native="false" synchronized="false"
  13126. static="false" final="false" visibility="public"
  13127. deprecated="not deprecated">
  13128. <param name="verifyChecksum" type="boolean"/>
  13129. </method>
  13130. <method name="setWriteChecksum"
  13131. abstract="false" native="false" synchronized="false"
  13132. static="false" final="false" visibility="public"
  13133. deprecated="not deprecated">
  13134. <param name="writeChecksum" type="boolean"/>
  13135. </method>
  13136. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="false" final="false" visibility="public"
  13139. deprecated="not deprecated">
  13140. </method>
  13141. <method name="close"
  13142. abstract="false" native="false" synchronized="false"
  13143. static="false" final="false" visibility="public"
  13144. deprecated="not deprecated">
  13145. <exception name="IOException" type="java.io.IOException"/>
  13146. </method>
  13147. <method name="setOwner"
  13148. abstract="false" native="false" synchronized="false"
  13149. static="false" final="false" visibility="public"
  13150. deprecated="not deprecated">
  13151. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13152. <param name="username" type="java.lang.String"/>
  13153. <param name="groupname" type="java.lang.String"/>
  13154. <exception name="IOException" type="java.io.IOException"/>
  13155. </method>
  13156. <method name="setTimes"
  13157. abstract="false" native="false" synchronized="false"
  13158. static="false" final="false" visibility="public"
  13159. deprecated="not deprecated">
  13160. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13161. <param name="mtime" type="long"/>
  13162. <param name="atime" type="long"/>
  13163. <exception name="IOException" type="java.io.IOException"/>
  13164. </method>
  13165. <method name="setPermission"
  13166. abstract="false" native="false" synchronized="false"
  13167. static="false" final="false" visibility="public"
  13168. deprecated="not deprecated">
  13169. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13170. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13171. <exception name="IOException" type="java.io.IOException"/>
  13172. </method>
  13173. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  13174. abstract="false" native="false" synchronized="false"
  13175. static="false" final="false" visibility="protected"
  13176. deprecated="not deprecated">
  13177. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13178. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13179. <param name="flag" type="java.util.EnumSet"/>
  13180. <param name="bufferSize" type="int"/>
  13181. <param name="replication" type="short"/>
  13182. <param name="blockSize" type="long"/>
  13183. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13184. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13185. <exception name="IOException" type="java.io.IOException"/>
  13186. </method>
  13187. <method name="primitiveMkdir" return="boolean"
  13188. abstract="false" native="false" synchronized="false"
  13189. static="false" final="false" visibility="protected"
  13190. deprecated="not deprecated">
  13191. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13192. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13193. <exception name="IOException" type="java.io.IOException"/>
  13194. </method>
  13195. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  13196. abstract="false" native="false" synchronized="false"
  13197. static="false" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. </method>
  13200. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  13201. abstract="false" native="false" synchronized="false"
  13202. static="false" final="false" visibility="public"
  13203. deprecated="not deprecated">
  13204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13205. <param name="snapshotName" type="java.lang.String"/>
  13206. <exception name="IOException" type="java.io.IOException"/>
  13207. </method>
  13208. <method name="renameSnapshot"
  13209. abstract="false" native="false" synchronized="false"
  13210. static="false" final="false" visibility="public"
  13211. deprecated="not deprecated">
  13212. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13213. <param name="snapshotOldName" type="java.lang.String"/>
  13214. <param name="snapshotNewName" type="java.lang.String"/>
  13215. <exception name="IOException" type="java.io.IOException"/>
  13216. </method>
  13217. <method name="deleteSnapshot"
  13218. abstract="false" native="false" synchronized="false"
  13219. static="false" final="false" visibility="public"
  13220. deprecated="not deprecated">
  13221. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13222. <param name="snapshotName" type="java.lang.String"/>
  13223. <exception name="IOException" type="java.io.IOException"/>
  13224. </method>
  13225. <method name="modifyAclEntries"
  13226. abstract="false" native="false" synchronized="false"
  13227. static="false" final="false" visibility="public"
  13228. deprecated="not deprecated">
  13229. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13230. <param name="aclSpec" type="java.util.List"/>
  13231. <exception name="IOException" type="java.io.IOException"/>
  13232. </method>
  13233. <method name="removeAclEntries"
  13234. abstract="false" native="false" synchronized="false"
  13235. static="false" final="false" visibility="public"
  13236. deprecated="not deprecated">
  13237. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13238. <param name="aclSpec" type="java.util.List"/>
  13239. <exception name="IOException" type="java.io.IOException"/>
  13240. </method>
  13241. <method name="removeDefaultAcl"
  13242. abstract="false" native="false" synchronized="false"
  13243. static="false" final="false" visibility="public"
  13244. deprecated="not deprecated">
  13245. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13246. <exception name="IOException" type="java.io.IOException"/>
  13247. </method>
  13248. <method name="removeAcl"
  13249. abstract="false" native="false" synchronized="false"
  13250. static="false" final="false" visibility="public"
  13251. deprecated="not deprecated">
  13252. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13253. <exception name="IOException" type="java.io.IOException"/>
  13254. </method>
  13255. <method name="setAcl"
  13256. abstract="false" native="false" synchronized="false"
  13257. static="false" final="false" visibility="public"
  13258. deprecated="not deprecated">
  13259. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13260. <param name="aclSpec" type="java.util.List"/>
  13261. <exception name="IOException" type="java.io.IOException"/>
  13262. </method>
  13263. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  13264. abstract="false" native="false" synchronized="false"
  13265. static="false" final="false" visibility="public"
  13266. deprecated="not deprecated">
  13267. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13268. <exception name="IOException" type="java.io.IOException"/>
  13269. </method>
  13270. <method name="setXAttr"
  13271. abstract="false" native="false" synchronized="false"
  13272. static="false" final="false" visibility="public"
  13273. deprecated="not deprecated">
  13274. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13275. <param name="name" type="java.lang.String"/>
  13276. <param name="value" type="byte[]"/>
  13277. <exception name="IOException" type="java.io.IOException"/>
  13278. </method>
  13279. <method name="setXAttr"
  13280. abstract="false" native="false" synchronized="false"
  13281. static="false" final="false" visibility="public"
  13282. deprecated="not deprecated">
  13283. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13284. <param name="name" type="java.lang.String"/>
  13285. <param name="value" type="byte[]"/>
  13286. <param name="flag" type="java.util.EnumSet"/>
  13287. <exception name="IOException" type="java.io.IOException"/>
  13288. </method>
  13289. <method name="getXAttr" return="byte[]"
  13290. abstract="false" native="false" synchronized="false"
  13291. static="false" final="false" visibility="public"
  13292. deprecated="not deprecated">
  13293. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13294. <param name="name" type="java.lang.String"/>
  13295. <exception name="IOException" type="java.io.IOException"/>
  13296. </method>
  13297. <method name="getXAttrs" return="java.util.Map"
  13298. abstract="false" native="false" synchronized="false"
  13299. static="false" final="false" visibility="public"
  13300. deprecated="not deprecated">
  13301. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13302. <exception name="IOException" type="java.io.IOException"/>
  13303. </method>
  13304. <method name="getXAttrs" return="java.util.Map"
  13305. abstract="false" native="false" synchronized="false"
  13306. static="false" final="false" visibility="public"
  13307. deprecated="not deprecated">
  13308. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13309. <param name="names" type="java.util.List"/>
  13310. <exception name="IOException" type="java.io.IOException"/>
  13311. </method>
  13312. <method name="listXAttrs" return="java.util.List"
  13313. abstract="false" native="false" synchronized="false"
  13314. static="false" final="false" visibility="public"
  13315. deprecated="not deprecated">
  13316. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13317. <exception name="IOException" type="java.io.IOException"/>
  13318. </method>
  13319. <method name="removeXAttr"
  13320. abstract="false" native="false" synchronized="false"
  13321. static="false" final="false" visibility="public"
  13322. deprecated="not deprecated">
  13323. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13324. <param name="name" type="java.lang.String"/>
  13325. <exception name="IOException" type="java.io.IOException"/>
  13326. </method>
  13327. <method name="satisfyStoragePolicy"
  13328. abstract="false" native="false" synchronized="false"
  13329. static="false" final="false" visibility="public"
  13330. deprecated="not deprecated">
  13331. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13332. <exception name="IOException" type="java.io.IOException"/>
  13333. </method>
  13334. <method name="setStoragePolicy"
  13335. abstract="false" native="false" synchronized="false"
  13336. static="false" final="false" visibility="public"
  13337. deprecated="not deprecated">
  13338. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13339. <param name="policyName" type="java.lang.String"/>
  13340. <exception name="IOException" type="java.io.IOException"/>
  13341. </method>
  13342. <method name="unsetStoragePolicy"
  13343. abstract="false" native="false" synchronized="false"
  13344. static="false" final="false" visibility="public"
  13345. deprecated="not deprecated">
  13346. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13347. <exception name="IOException" type="java.io.IOException"/>
  13348. </method>
  13349. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  13350. abstract="false" native="false" synchronized="false"
  13351. static="false" final="false" visibility="public"
  13352. deprecated="not deprecated">
  13353. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13354. <exception name="IOException" type="java.io.IOException"/>
  13355. </method>
  13356. <method name="getAllStoragePolicies" return="java.util.Collection"
  13357. abstract="false" native="false" synchronized="false"
  13358. static="false" final="false" visibility="public"
  13359. deprecated="not deprecated">
  13360. <exception name="IOException" type="java.io.IOException"/>
  13361. </method>
  13362. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  13363. abstract="false" native="false" synchronized="false"
  13364. static="false" final="false" visibility="public"
  13365. deprecated="not deprecated">
  13366. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13367. </method>
  13368. <method name="getTrashRoots" return="java.util.Collection"
  13369. abstract="false" native="false" synchronized="false"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <param name="allUsers" type="boolean"/>
  13373. </method>
  13374. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  13375. abstract="false" native="false" synchronized="false"
  13376. static="false" final="false" visibility="public"
  13377. deprecated="not deprecated">
  13378. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13379. </method>
  13380. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  13381. abstract="false" native="false" synchronized="false"
  13382. static="false" final="false" visibility="public"
  13383. deprecated="not deprecated">
  13384. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13385. </method>
  13386. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  13387. abstract="false" native="false" synchronized="false"
  13388. static="false" final="false" visibility="public"
  13389. deprecated="not deprecated">
  13390. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13391. <exception name="IOException" type="java.io.IOException"/>
  13392. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13393. </method>
  13394. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  13395. abstract="false" native="false" synchronized="false"
  13396. static="false" final="false" visibility="public"
  13397. deprecated="not deprecated">
  13398. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  13399. <exception name="IOException" type="java.io.IOException"/>
  13400. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13401. </method>
  13402. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  13403. abstract="false" native="false" synchronized="false"
  13404. static="false" final="false" visibility="protected"
  13405. deprecated="not deprecated">
  13406. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13407. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  13408. <exception name="IOException" type="java.io.IOException"/>
  13409. </method>
  13410. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  13411. abstract="false" native="false" synchronized="false"
  13412. static="false" final="false" visibility="protected"
  13413. deprecated="not deprecated">
  13414. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  13415. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  13416. <exception name="IOException" type="java.io.IOException"/>
  13417. </method>
  13418. <method name="hasPathCapability" return="boolean"
  13419. abstract="false" native="false" synchronized="false"
  13420. static="false" final="false" visibility="public"
  13421. deprecated="not deprecated">
  13422. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13423. <param name="capability" type="java.lang.String"/>
  13424. <exception name="IOException" type="java.io.IOException"/>
  13425. </method>
  13426. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  13427. transient="false" volatile="false"
  13428. static="false" final="false" visibility="protected"
  13429. deprecated="not deprecated">
  13430. </field>
  13431. <field name="swapScheme" type="java.lang.String"
  13432. transient="false" volatile="false"
  13433. static="false" final="false" visibility="protected"
  13434. deprecated="not deprecated">
  13435. </field>
  13436. <doc>
  13437. <![CDATA[A <code>FilterFileSystem</code> contains
  13438. some other file system, which it uses as
  13439. its basic file system, possibly transforming
  13440. the data along the way or providing additional
  13441. functionality. The class <code>FilterFileSystem</code>
  13442. itself simply overrides all methods of
  13443. <code>FileSystem</code> with versions that
  13444. pass all requests to the contained file
  13445. system. Subclasses of <code>FilterFileSystem</code>
  13446. may further override some of these methods
  13447. and may also provide additional methods
  13448. and fields.]]>
  13449. </doc>
  13450. </class>
  13451. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  13452. <!-- start interface org.apache.hadoop.fs.FSBuilder -->
  13453. <interface name="FSBuilder" abstract="true"
  13454. static="false" final="false" visibility="public"
  13455. deprecated="not deprecated">
  13456. <method name="opt" return="B"
  13457. abstract="true" native="false" synchronized="false"
  13458. static="false" final="false" visibility="public"
  13459. deprecated="not deprecated">
  13460. <param name="key" type="java.lang.String"/>
  13461. <param name="value" type="java.lang.String"/>
  13462. <doc>
  13463. <![CDATA[Set optional Builder parameter.]]>
  13464. </doc>
  13465. </method>
  13466. <method name="opt" return="B"
  13467. abstract="true" native="false" synchronized="false"
  13468. static="false" final="false" visibility="public"
  13469. deprecated="not deprecated">
  13470. <param name="key" type="java.lang.String"/>
  13471. <param name="value" type="boolean"/>
  13472. <doc>
  13473. <![CDATA[Set optional boolean parameter for the Builder.
  13474. @see #opt(String, String)]]>
  13475. </doc>
  13476. </method>
  13477. <method name="opt" return="B"
  13478. abstract="true" native="false" synchronized="false"
  13479. static="false" final="false" visibility="public"
  13480. deprecated="not deprecated">
  13481. <param name="key" type="java.lang.String"/>
  13482. <param name="value" type="int"/>
  13483. <doc>
  13484. <![CDATA[Set optional int parameter for the Builder.
  13485. @see #opt(String, String)]]>
  13486. </doc>
  13487. </method>
  13488. <method name="opt" return="B"
  13489. abstract="true" native="false" synchronized="false"
  13490. static="false" final="false" visibility="public"
  13491. deprecated="not deprecated">
  13492. <param name="key" type="java.lang.String"/>
  13493. <param name="value" type="float"/>
  13494. <doc>
  13495. <![CDATA[Set optional float parameter for the Builder.
  13496. @see #opt(String, String)]]>
  13497. </doc>
  13498. </method>
  13499. <method name="opt" return="B"
  13500. abstract="true" native="false" synchronized="false"
  13501. static="false" final="false" visibility="public"
  13502. deprecated="not deprecated">
  13503. <param name="key" type="java.lang.String"/>
  13504. <param name="value" type="double"/>
  13505. <doc>
  13506. <![CDATA[Set optional double parameter for the Builder.
  13507. @see #opt(String, String)]]>
  13508. </doc>
  13509. </method>
  13510. <method name="opt" return="B"
  13511. abstract="true" native="false" synchronized="false"
  13512. static="false" final="false" visibility="public"
  13513. deprecated="not deprecated">
  13514. <param name="key" type="java.lang.String"/>
  13515. <param name="values" type="java.lang.String[]"/>
  13516. <doc>
  13517. <![CDATA[Set an array of string values as optional parameter for the Builder.
  13518. @see #opt(String, String)]]>
  13519. </doc>
  13520. </method>
  13521. <method name="must" return="B"
  13522. abstract="true" native="false" synchronized="false"
  13523. static="false" final="false" visibility="public"
  13524. deprecated="not deprecated">
  13525. <param name="key" type="java.lang.String"/>
  13526. <param name="value" type="java.lang.String"/>
  13527. <doc>
  13528. <![CDATA[Set mandatory option to the Builder.
  13529. If the option is not supported or unavailable,
  13530. the client should expect {@link #build()} throws IllegalArgumentException.]]>
  13531. </doc>
  13532. </method>
  13533. <method name="must" return="B"
  13534. abstract="true" native="false" synchronized="false"
  13535. static="false" final="false" visibility="public"
  13536. deprecated="not deprecated">
  13537. <param name="key" type="java.lang.String"/>
  13538. <param name="value" type="boolean"/>
  13539. <doc>
  13540. <![CDATA[Set mandatory boolean option.
  13541. @see #must(String, String)]]>
  13542. </doc>
  13543. </method>
  13544. <method name="must" return="B"
  13545. abstract="true" native="false" synchronized="false"
  13546. static="false" final="false" visibility="public"
  13547. deprecated="not deprecated">
  13548. <param name="key" type="java.lang.String"/>
  13549. <param name="value" type="int"/>
  13550. <doc>
  13551. <![CDATA[Set mandatory int option.
  13552. @see #must(String, String)]]>
  13553. </doc>
  13554. </method>
  13555. <method name="must" return="B"
  13556. abstract="true" native="false" synchronized="false"
  13557. static="false" final="false" visibility="public"
  13558. deprecated="not deprecated">
  13559. <param name="key" type="java.lang.String"/>
  13560. <param name="value" type="float"/>
  13561. <doc>
  13562. <![CDATA[Set mandatory float option.
  13563. @see #must(String, String)]]>
  13564. </doc>
  13565. </method>
  13566. <method name="must" return="B"
  13567. abstract="true" native="false" synchronized="false"
  13568. static="false" final="false" visibility="public"
  13569. deprecated="not deprecated">
  13570. <param name="key" type="java.lang.String"/>
  13571. <param name="value" type="double"/>
  13572. <doc>
  13573. <![CDATA[Set mandatory double option.
  13574. @see #must(String, String)]]>
  13575. </doc>
  13576. </method>
  13577. <method name="must" return="B"
  13578. abstract="true" native="false" synchronized="false"
  13579. static="false" final="false" visibility="public"
  13580. deprecated="not deprecated">
  13581. <param name="key" type="java.lang.String"/>
  13582. <param name="values" type="java.lang.String[]"/>
  13583. <doc>
  13584. <![CDATA[Set a string array as mandatory option.
  13585. @see #must(String, String)]]>
  13586. </doc>
  13587. </method>
  13588. <method name="build" return="S"
  13589. abstract="true" native="false" synchronized="false"
  13590. static="false" final="false" visibility="public"
  13591. deprecated="not deprecated">
  13592. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13593. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13594. <exception name="IOException" type="java.io.IOException"/>
  13595. <doc>
  13596. <![CDATA[Instantiate the object which was being built.
  13597. @throws IllegalArgumentException if the parameters are not valid.
  13598. @throws UnsupportedOperationException if the filesystem does not support
  13599. the specific operation.
  13600. @throws IOException on filesystem IO errors.]]>
  13601. </doc>
  13602. </method>
  13603. <doc>
  13604. <![CDATA[The base interface which various FileSystem FileContext Builder
  13605. interfaces can extend, and which underlying implementations
  13606. will then implement.
  13607. @param <S> Return type on the {@link #build()} call.
  13608. @param <B> type of builder itself.]]>
  13609. </doc>
  13610. </interface>
  13611. <!-- end interface org.apache.hadoop.fs.FSBuilder -->
  13612. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  13613. <interface name="FsConstants" abstract="true"
  13614. static="false" final="false" visibility="public"
  13615. deprecated="not deprecated">
  13616. <field name="LOCAL_FS_URI" type="java.net.URI"
  13617. transient="false" volatile="false"
  13618. static="true" final="true" visibility="public"
  13619. deprecated="not deprecated">
  13620. </field>
  13621. <field name="FTP_SCHEME" type="java.lang.String"
  13622. transient="false" volatile="false"
  13623. static="true" final="true" visibility="public"
  13624. deprecated="not deprecated">
  13625. </field>
  13626. <field name="MAX_PATH_LINKS" type="int"
  13627. transient="false" volatile="false"
  13628. static="true" final="true" visibility="public"
  13629. deprecated="not deprecated">
  13630. </field>
  13631. <field name="VIEWFS_URI" type="java.net.URI"
  13632. transient="false" volatile="false"
  13633. static="true" final="true" visibility="public"
  13634. deprecated="not deprecated">
  13635. <doc>
  13636. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  13637. </doc>
  13638. </field>
  13639. <field name="VIEWFS_SCHEME" type="java.lang.String"
  13640. transient="false" volatile="false"
  13641. static="true" final="true" visibility="public"
  13642. deprecated="not deprecated">
  13643. </field>
  13644. <field name="FS_VIEWFS_OVERLOAD_SCHEME_TARGET_FS_IMPL_PATTERN" type="java.lang.String"
  13645. transient="false" volatile="false"
  13646. static="true" final="true" visibility="public"
  13647. deprecated="not deprecated">
  13648. </field>
  13649. <field name="VIEWFS_TYPE" type="java.lang.String"
  13650. transient="false" volatile="false"
  13651. static="true" final="true" visibility="public"
  13652. deprecated="not deprecated">
  13653. </field>
  13654. <doc>
  13655. <![CDATA[FileSystem related constants.]]>
  13656. </doc>
  13657. </interface>
  13658. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  13659. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  13660. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  13661. abstract="false"
  13662. static="false" final="false" visibility="public"
  13663. deprecated="not deprecated">
  13664. <implements name="org.apache.hadoop.fs.Seekable"/>
  13665. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  13666. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  13667. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  13668. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  13669. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  13670. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  13671. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  13672. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  13673. <implements name="org.apache.hadoop.fs.ByteBufferPositionedReadable"/>
  13674. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  13675. <constructor name="FSDataInputStream" type="java.io.InputStream"
  13676. static="false" final="false" visibility="public"
  13677. deprecated="not deprecated">
  13678. </constructor>
  13679. <method name="seek"
  13680. abstract="false" native="false" synchronized="false"
  13681. static="false" final="false" visibility="public"
  13682. deprecated="not deprecated">
  13683. <param name="desired" type="long"/>
  13684. <exception name="IOException" type="java.io.IOException"/>
  13685. <doc>
  13686. <![CDATA[Seek to the given offset.
  13687. @param desired offset to seek to]]>
  13688. </doc>
  13689. </method>
  13690. <method name="getPos" return="long"
  13691. abstract="false" native="false" synchronized="false"
  13692. static="false" final="false" visibility="public"
  13693. deprecated="not deprecated">
  13694. <exception name="IOException" type="java.io.IOException"/>
  13695. <doc>
  13696. <![CDATA[Get the current position in the input stream.
  13697. @return current position in the input stream]]>
  13698. </doc>
  13699. </method>
  13700. <method name="read" return="int"
  13701. abstract="false" native="false" synchronized="false"
  13702. static="false" final="false" visibility="public"
  13703. deprecated="not deprecated">
  13704. <param name="position" type="long"/>
  13705. <param name="buffer" type="byte[]"/>
  13706. <param name="offset" type="int"/>
  13707. <param name="length" type="int"/>
  13708. <exception name="IOException" type="java.io.IOException"/>
  13709. <doc>
  13710. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  13711. @param position position in the input stream to seek
  13712. @param buffer buffer into which data is read
  13713. @param offset offset into the buffer in which data is written
  13714. @param length maximum number of bytes to read
  13715. @return total number of bytes read into the buffer, or <code>-1</code>
  13716. if there is no more data because the end of the stream has been
  13717. reached]]>
  13718. </doc>
  13719. </method>
  13720. <method name="readFully"
  13721. abstract="false" native="false" synchronized="false"
  13722. static="false" final="false" visibility="public"
  13723. deprecated="not deprecated">
  13724. <param name="position" type="long"/>
  13725. <param name="buffer" type="byte[]"/>
  13726. <param name="offset" type="int"/>
  13727. <param name="length" type="int"/>
  13728. <exception name="IOException" type="java.io.IOException"/>
  13729. <doc>
  13730. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  13731. Continues to read until <code>length</code> bytes have been read.
  13732. @param position position in the input stream to seek
  13733. @param buffer buffer into which data is read
  13734. @param offset offset into the buffer in which data is written
  13735. @param length the number of bytes to read
  13736. @throws IOException IO problems
  13737. @throws EOFException If the end of stream is reached while reading.
  13738. If an exception is thrown an undetermined number
  13739. of bytes in the buffer may have been written.]]>
  13740. </doc>
  13741. </method>
  13742. <method name="readFully"
  13743. abstract="false" native="false" synchronized="false"
  13744. static="false" final="false" visibility="public"
  13745. deprecated="not deprecated">
  13746. <param name="position" type="long"/>
  13747. <param name="buffer" type="byte[]"/>
  13748. <exception name="IOException" type="java.io.IOException"/>
  13749. <doc>
  13750. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  13751. </doc>
  13752. </method>
  13753. <method name="seekToNewSource" return="boolean"
  13754. abstract="false" native="false" synchronized="false"
  13755. static="false" final="false" visibility="public"
  13756. deprecated="not deprecated">
  13757. <param name="targetPos" type="long"/>
  13758. <exception name="IOException" type="java.io.IOException"/>
  13759. <doc>
  13760. <![CDATA[Seek to the given position on an alternate copy of the data.
  13761. @param targetPos position to seek to
  13762. @return true if a new source is found, false otherwise]]>
  13763. </doc>
  13764. </method>
  13765. <method name="read" return="int"
  13766. abstract="false" native="false" synchronized="false"
  13767. static="false" final="false" visibility="public"
  13768. deprecated="not deprecated">
  13769. <param name="buf" type="java.nio.ByteBuffer"/>
  13770. <exception name="IOException" type="java.io.IOException"/>
  13771. </method>
  13772. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  13773. abstract="false" native="false" synchronized="false"
  13774. static="false" final="false" visibility="public"
  13775. deprecated="not deprecated">
  13776. <exception name="IOException" type="java.io.IOException"/>
  13777. </method>
  13778. <method name="setReadahead"
  13779. abstract="false" native="false" synchronized="false"
  13780. static="false" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <param name="readahead" type="java.lang.Long"/>
  13783. <exception name="IOException" type="java.io.IOException"/>
  13784. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13785. </method>
  13786. <method name="setDropBehind"
  13787. abstract="false" native="false" synchronized="false"
  13788. static="false" final="false" visibility="public"
  13789. deprecated="not deprecated">
  13790. <param name="dropBehind" type="java.lang.Boolean"/>
  13791. <exception name="IOException" type="java.io.IOException"/>
  13792. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13793. </method>
  13794. <method name="read" return="java.nio.ByteBuffer"
  13795. abstract="false" native="false" synchronized="false"
  13796. static="false" final="false" visibility="public"
  13797. deprecated="not deprecated">
  13798. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  13799. <param name="maxLength" type="int"/>
  13800. <param name="opts" type="java.util.EnumSet"/>
  13801. <exception name="IOException" type="java.io.IOException"/>
  13802. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13803. </method>
  13804. <method name="read" return="java.nio.ByteBuffer"
  13805. abstract="false" native="false" synchronized="false"
  13806. static="false" final="true" visibility="public"
  13807. deprecated="not deprecated">
  13808. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  13809. <param name="maxLength" type="int"/>
  13810. <exception name="IOException" type="java.io.IOException"/>
  13811. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13812. </method>
  13813. <method name="releaseBuffer"
  13814. abstract="false" native="false" synchronized="false"
  13815. static="false" final="false" visibility="public"
  13816. deprecated="not deprecated">
  13817. <param name="buffer" type="java.nio.ByteBuffer"/>
  13818. </method>
  13819. <method name="unbuffer"
  13820. abstract="false" native="false" synchronized="false"
  13821. static="false" final="false" visibility="public"
  13822. deprecated="not deprecated">
  13823. </method>
  13824. <method name="hasCapability" return="boolean"
  13825. abstract="false" native="false" synchronized="false"
  13826. static="false" final="false" visibility="public"
  13827. deprecated="not deprecated">
  13828. <param name="capability" type="java.lang.String"/>
  13829. </method>
  13830. <method name="toString" return="java.lang.String"
  13831. abstract="false" native="false" synchronized="false"
  13832. static="false" final="false" visibility="public"
  13833. deprecated="not deprecated">
  13834. <doc>
  13835. <![CDATA[String value. Includes the string value of the inner stream
  13836. @return the stream]]>
  13837. </doc>
  13838. </method>
  13839. <method name="read" return="int"
  13840. abstract="false" native="false" synchronized="false"
  13841. static="false" final="false" visibility="public"
  13842. deprecated="not deprecated">
  13843. <param name="position" type="long"/>
  13844. <param name="buf" type="java.nio.ByteBuffer"/>
  13845. <exception name="IOException" type="java.io.IOException"/>
  13846. </method>
  13847. <method name="readFully"
  13848. abstract="false" native="false" synchronized="false"
  13849. static="false" final="false" visibility="public"
  13850. deprecated="not deprecated">
  13851. <param name="position" type="long"/>
  13852. <param name="buf" type="java.nio.ByteBuffer"/>
  13853. <exception name="IOException" type="java.io.IOException"/>
  13854. </method>
  13855. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  13856. abstract="false" native="false" synchronized="false"
  13857. static="false" final="false" visibility="public"
  13858. deprecated="not deprecated">
  13859. <doc>
  13860. <![CDATA[Get the IO Statistics of the nested stream, falling back to
  13861. null if the stream does not implement the interface
  13862. {@link IOStatisticsSource}.
  13863. @return an IOStatistics instance or null]]>
  13864. </doc>
  13865. </method>
  13866. <doc>
  13867. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  13868. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  13869. </doc>
  13870. </class>
  13871. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  13872. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  13873. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  13874. abstract="false"
  13875. static="false" final="false" visibility="public"
  13876. deprecated="not deprecated">
  13877. <implements name="org.apache.hadoop.fs.Syncable"/>
  13878. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  13879. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  13880. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  13881. <implements name="org.apache.hadoop.fs.Abortable"/>
  13882. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  13883. static="false" final="false" visibility="public"
  13884. deprecated="not deprecated">
  13885. </constructor>
  13886. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  13887. static="false" final="false" visibility="public"
  13888. deprecated="not deprecated">
  13889. </constructor>
  13890. <method name="getPos" return="long"
  13891. abstract="false" native="false" synchronized="false"
  13892. static="false" final="false" visibility="public"
  13893. deprecated="not deprecated">
  13894. <doc>
  13895. <![CDATA[Get the current position in the output stream.
  13896. @return the current position in the output stream]]>
  13897. </doc>
  13898. </method>
  13899. <method name="close"
  13900. abstract="false" native="false" synchronized="false"
  13901. static="false" final="false" visibility="public"
  13902. deprecated="not deprecated">
  13903. <exception name="IOException" type="java.io.IOException"/>
  13904. <doc>
  13905. <![CDATA[Close the underlying output stream.]]>
  13906. </doc>
  13907. </method>
  13908. <method name="toString" return="java.lang.String"
  13909. abstract="false" native="false" synchronized="false"
  13910. static="false" final="false" visibility="public"
  13911. deprecated="not deprecated">
  13912. </method>
  13913. <method name="hasCapability" return="boolean"
  13914. abstract="false" native="false" synchronized="false"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. <param name="capability" type="java.lang.String"/>
  13918. </method>
  13919. <method name="hflush"
  13920. abstract="false" native="false" synchronized="false"
  13921. static="false" final="false" visibility="public"
  13922. deprecated="not deprecated">
  13923. <exception name="IOException" type="java.io.IOException"/>
  13924. </method>
  13925. <method name="hsync"
  13926. abstract="false" native="false" synchronized="false"
  13927. static="false" final="false" visibility="public"
  13928. deprecated="not deprecated">
  13929. <exception name="IOException" type="java.io.IOException"/>
  13930. </method>
  13931. <method name="setDropBehind"
  13932. abstract="false" native="false" synchronized="false"
  13933. static="false" final="false" visibility="public"
  13934. deprecated="not deprecated">
  13935. <param name="dropBehind" type="java.lang.Boolean"/>
  13936. <exception name="IOException" type="java.io.IOException"/>
  13937. </method>
  13938. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  13939. abstract="false" native="false" synchronized="false"
  13940. static="false" final="false" visibility="public"
  13941. deprecated="not deprecated">
  13942. <doc>
  13943. <![CDATA[Get the IO Statistics of the nested stream, falling back to
  13944. empty statistics if the stream does not implement the interface
  13945. {@link IOStatisticsSource}.
  13946. @return an IOStatistics instance.]]>
  13947. </doc>
  13948. </method>
  13949. <method name="abort" return="org.apache.hadoop.fs.Abortable.AbortableResult"
  13950. abstract="false" native="false" synchronized="false"
  13951. static="false" final="false" visibility="public"
  13952. deprecated="not deprecated">
  13953. <doc>
  13954. <![CDATA[Invoke {@code abort()} on the wrapped stream if it
  13955. is Abortable, otherwise raise an
  13956. {@code UnsupportedOperationException}.
  13957. @throws UnsupportedOperationException if not available.
  13958. @return the result.]]>
  13959. </doc>
  13960. </method>
  13961. <doc>
  13962. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  13963. </doc>
  13964. </class>
  13965. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  13966. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  13967. <class name="FSDataOutputStreamBuilder" extends="org.apache.hadoop.fs.impl.AbstractFSBuilderImpl"
  13968. abstract="true"
  13969. static="false" final="false" visibility="public"
  13970. deprecated="not deprecated">
  13971. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  13972. static="false" final="false" visibility="protected"
  13973. deprecated="not deprecated">
  13974. <doc>
  13975. <![CDATA[Constructor.]]>
  13976. </doc>
  13977. </constructor>
  13978. <method name="getThisBuilder" return="B"
  13979. abstract="true" native="false" synchronized="false"
  13980. static="false" final="false" visibility="public"
  13981. deprecated="not deprecated">
  13982. <doc>
  13983. <![CDATA[Return the concrete implementation of the builder instance.]]>
  13984. </doc>
  13985. </method>
  13986. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  13987. abstract="false" native="false" synchronized="false"
  13988. static="false" final="false" visibility="protected"
  13989. deprecated="not deprecated">
  13990. </method>
  13991. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  13992. abstract="false" native="false" synchronized="false"
  13993. static="false" final="false" visibility="protected"
  13994. deprecated="not deprecated">
  13995. </method>
  13996. <method name="permission" return="B"
  13997. abstract="false" native="false" synchronized="false"
  13998. static="false" final="false" visibility="public"
  13999. deprecated="not deprecated">
  14000. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14001. <doc>
  14002. <![CDATA[Set permission for the file.]]>
  14003. </doc>
  14004. </method>
  14005. <method name="getBufferSize" return="int"
  14006. abstract="false" native="false" synchronized="false"
  14007. static="false" final="false" visibility="protected"
  14008. deprecated="not deprecated">
  14009. </method>
  14010. <method name="bufferSize" return="B"
  14011. abstract="false" native="false" synchronized="false"
  14012. static="false" final="false" visibility="public"
  14013. deprecated="not deprecated">
  14014. <param name="bufSize" type="int"/>
  14015. <doc>
  14016. <![CDATA[Set the size of the buffer to be used.]]>
  14017. </doc>
  14018. </method>
  14019. <method name="getReplication" return="short"
  14020. abstract="false" native="false" synchronized="false"
  14021. static="false" final="false" visibility="protected"
  14022. deprecated="not deprecated">
  14023. </method>
  14024. <method name="replication" return="B"
  14025. abstract="false" native="false" synchronized="false"
  14026. static="false" final="false" visibility="public"
  14027. deprecated="not deprecated">
  14028. <param name="replica" type="short"/>
  14029. <doc>
  14030. <![CDATA[Set replication factor.]]>
  14031. </doc>
  14032. </method>
  14033. <method name="getBlockSize" return="long"
  14034. abstract="false" native="false" synchronized="false"
  14035. static="false" final="false" visibility="protected"
  14036. deprecated="not deprecated">
  14037. </method>
  14038. <method name="blockSize" return="B"
  14039. abstract="false" native="false" synchronized="false"
  14040. static="false" final="false" visibility="public"
  14041. deprecated="not deprecated">
  14042. <param name="blkSize" type="long"/>
  14043. <doc>
  14044. <![CDATA[Set block size.]]>
  14045. </doc>
  14046. </method>
  14047. <method name="isRecursive" return="boolean"
  14048. abstract="false" native="false" synchronized="false"
  14049. static="false" final="false" visibility="protected"
  14050. deprecated="not deprecated">
  14051. <doc>
  14052. <![CDATA[Return true to create the parent directories if they do not exist.]]>
  14053. </doc>
  14054. </method>
  14055. <method name="recursive" return="B"
  14056. abstract="false" native="false" synchronized="false"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <doc>
  14060. <![CDATA[Create the parent directory if they do not exist.]]>
  14061. </doc>
  14062. </method>
  14063. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  14064. abstract="false" native="false" synchronized="false"
  14065. static="false" final="false" visibility="protected"
  14066. deprecated="not deprecated">
  14067. </method>
  14068. <method name="progress" return="B"
  14069. abstract="false" native="false" synchronized="false"
  14070. static="false" final="false" visibility="public"
  14071. deprecated="not deprecated">
  14072. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  14073. <doc>
  14074. <![CDATA[Set the facility of reporting progress.]]>
  14075. </doc>
  14076. </method>
  14077. <method name="getFlags" return="java.util.EnumSet"
  14078. abstract="false" native="false" synchronized="false"
  14079. static="false" final="false" visibility="protected"
  14080. deprecated="not deprecated">
  14081. </method>
  14082. <method name="create" return="B"
  14083. abstract="false" native="false" synchronized="false"
  14084. static="false" final="false" visibility="public"
  14085. deprecated="not deprecated">
  14086. <doc>
  14087. <![CDATA[Create an FSDataOutputStream at the specified path.]]>
  14088. </doc>
  14089. </method>
  14090. <method name="overwrite" return="B"
  14091. abstract="false" native="false" synchronized="false"
  14092. static="false" final="false" visibility="public"
  14093. deprecated="not deprecated">
  14094. <param name="overwrite" type="boolean"/>
  14095. <doc>
  14096. <![CDATA[Set to true to overwrite the existing file.
  14097. Set it to false, an exception will be thrown when calling {@link #build()}
  14098. if the file exists.]]>
  14099. </doc>
  14100. </method>
  14101. <method name="append" return="B"
  14102. abstract="false" native="false" synchronized="false"
  14103. static="false" final="false" visibility="public"
  14104. deprecated="not deprecated">
  14105. <doc>
  14106. <![CDATA[Append to an existing file (optional operation).]]>
  14107. </doc>
  14108. </method>
  14109. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14110. abstract="false" native="false" synchronized="false"
  14111. static="false" final="false" visibility="protected"
  14112. deprecated="not deprecated">
  14113. </method>
  14114. <method name="checksumOpt" return="B"
  14115. abstract="false" native="false" synchronized="false"
  14116. static="false" final="false" visibility="public"
  14117. deprecated="not deprecated">
  14118. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14119. <doc>
  14120. <![CDATA[Set checksum opt.]]>
  14121. </doc>
  14122. </method>
  14123. <method name="build" return="S"
  14124. abstract="true" native="false" synchronized="false"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14128. <exception name="IOException" type="java.io.IOException"/>
  14129. <doc>
  14130. <![CDATA[Create the FSDataOutputStream to write on the file system.
  14131. @throws IllegalArgumentException if the parameters are not valid.
  14132. @throws IOException on errors when file system creates or appends the file.]]>
  14133. </doc>
  14134. </method>
  14135. <doc>
  14136. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  14137. It is used to create {@link FSDataOutputStream} when creating a new file or
  14138. appending an existing file on {@link FileSystem}.
  14139. By default, it does not create parent directory that do not exist.
  14140. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  14141. Progressable)}.
  14142. To create missing parent directory, use {@link #recursive()}.
  14143. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  14144. variants provide implementation-agnostic way to customize the builder.
  14145. Each FS-specific builder implementation can interpret the FS-specific
  14146. options accordingly, for example:
  14147. <code>
  14148. // Don't
  14149. if (fs instanceof FooFileSystem) {
  14150. FooFileSystem fs = (FooFileSystem) fs;
  14151. OutputStream out = dfs.createFile(path)
  14152. .optionA()
  14153. .optionB("value")
  14154. .cache()
  14155. .build()
  14156. } else if (fs instanceof BarFileSystem) {
  14157. ...
  14158. }
  14159. // Do
  14160. OutputStream out = fs.createFile(path)
  14161. .permission(perm)
  14162. .bufferSize(bufSize)
  14163. .opt("foofs:option.a", true)
  14164. .opt("foofs:option.b", "value")
  14165. .opt("barfs:cache", true)
  14166. .must("foofs:cache", true)
  14167. .must("barfs:cache-size", 256 * 1024 * 1024)
  14168. .build();
  14169. </code>
  14170. If the option is not related to the file system, the option will be ignored.
  14171. If the option is must, but not supported by the file system, a
  14172. {@link IllegalArgumentException} will be thrown.]]>
  14173. </doc>
  14174. </class>
  14175. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  14176. <!-- start class org.apache.hadoop.fs.FSError -->
  14177. <class name="FSError" extends="java.lang.Error"
  14178. abstract="false"
  14179. static="false" final="false" visibility="public"
  14180. deprecated="not deprecated">
  14181. <doc>
  14182. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  14183. in the native filesystem.]]>
  14184. </doc>
  14185. </class>
  14186. <!-- end class org.apache.hadoop.fs.FSError -->
  14187. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  14188. <class name="FSInputStream" extends="java.io.InputStream"
  14189. abstract="true"
  14190. static="false" final="false" visibility="public"
  14191. deprecated="not deprecated">
  14192. <implements name="org.apache.hadoop.fs.Seekable"/>
  14193. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  14194. <constructor name="FSInputStream"
  14195. static="false" final="false" visibility="public"
  14196. deprecated="not deprecated">
  14197. </constructor>
  14198. <method name="seek"
  14199. abstract="true" native="false" synchronized="false"
  14200. static="false" final="false" visibility="public"
  14201. deprecated="not deprecated">
  14202. <param name="pos" type="long"/>
  14203. <exception name="IOException" type="java.io.IOException"/>
  14204. <doc>
  14205. <![CDATA[Seek to the given offset from the start of the file.
  14206. The next read() will be from that location. Can't
  14207. seek past the end of the file.]]>
  14208. </doc>
  14209. </method>
  14210. <method name="getPos" return="long"
  14211. abstract="true" native="false" synchronized="false"
  14212. static="false" final="false" visibility="public"
  14213. deprecated="not deprecated">
  14214. <exception name="IOException" type="java.io.IOException"/>
  14215. <doc>
  14216. <![CDATA[Return the current offset from the start of the file]]>
  14217. </doc>
  14218. </method>
  14219. <method name="seekToNewSource" return="boolean"
  14220. abstract="true" native="false" synchronized="false"
  14221. static="false" final="false" visibility="public"
  14222. deprecated="not deprecated">
  14223. <param name="targetPos" type="long"/>
  14224. <exception name="IOException" type="java.io.IOException"/>
  14225. <doc>
  14226. <![CDATA[Seeks a different copy of the data. Returns true if
  14227. found a new source, false otherwise.]]>
  14228. </doc>
  14229. </method>
  14230. <method name="read" return="int"
  14231. abstract="false" native="false" synchronized="false"
  14232. static="false" final="false" visibility="public"
  14233. deprecated="not deprecated">
  14234. <param name="position" type="long"/>
  14235. <param name="buffer" type="byte[]"/>
  14236. <param name="offset" type="int"/>
  14237. <param name="length" type="int"/>
  14238. <exception name="IOException" type="java.io.IOException"/>
  14239. </method>
  14240. <method name="validatePositionedReadArgs"
  14241. abstract="false" native="false" synchronized="false"
  14242. static="false" final="false" visibility="protected"
  14243. deprecated="not deprecated">
  14244. <param name="position" type="long"/>
  14245. <param name="buffer" type="byte[]"/>
  14246. <param name="offset" type="int"/>
  14247. <param name="length" type="int"/>
  14248. <exception name="EOFException" type="java.io.EOFException"/>
  14249. <doc>
  14250. <![CDATA[Validation code, available for use in subclasses.
  14251. @param position position: if negative an EOF exception is raised
  14252. @param buffer destination buffer
  14253. @param offset offset within the buffer
  14254. @param length length of bytes to read
  14255. @throws EOFException if the position is negative
  14256. @throws IndexOutOfBoundsException if there isn't space for the amount of
  14257. data requested.
  14258. @throws IllegalArgumentException other arguments are invalid.]]>
  14259. </doc>
  14260. </method>
  14261. <method name="readFully"
  14262. abstract="false" native="false" synchronized="false"
  14263. static="false" final="false" visibility="public"
  14264. deprecated="not deprecated">
  14265. <param name="position" type="long"/>
  14266. <param name="buffer" type="byte[]"/>
  14267. <param name="offset" type="int"/>
  14268. <param name="length" type="int"/>
  14269. <exception name="IOException" type="java.io.IOException"/>
  14270. </method>
  14271. <method name="readFully"
  14272. abstract="false" native="false" synchronized="false"
  14273. static="false" final="false" visibility="public"
  14274. deprecated="not deprecated">
  14275. <param name="position" type="long"/>
  14276. <param name="buffer" type="byte[]"/>
  14277. <exception name="IOException" type="java.io.IOException"/>
  14278. </method>
  14279. <method name="toString" return="java.lang.String"
  14280. abstract="false" native="false" synchronized="false"
  14281. static="false" final="false" visibility="public"
  14282. deprecated="not deprecated">
  14283. <doc>
  14284. <![CDATA[toString method returns the superclass toString, but if the subclass
  14285. implements {@link IOStatisticsSource} then those statistics are
  14286. extracted and included in the output.
  14287. That is: statistics of subclasses are automatically reported.
  14288. @return a string value.]]>
  14289. </doc>
  14290. </method>
  14291. <doc>
  14292. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  14293. of RAF-style seek ability.]]>
  14294. </doc>
  14295. </class>
  14296. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  14297. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  14298. <class name="FsServerDefaults" extends="java.lang.Object"
  14299. abstract="false"
  14300. static="false" final="false" visibility="public"
  14301. deprecated="not deprecated">
  14302. <implements name="org.apache.hadoop.io.Writable"/>
  14303. <constructor name="FsServerDefaults"
  14304. static="false" final="false" visibility="public"
  14305. deprecated="not deprecated">
  14306. </constructor>
  14307. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  14308. static="false" final="false" visibility="public"
  14309. deprecated="not deprecated">
  14310. </constructor>
  14311. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  14312. static="false" final="false" visibility="public"
  14313. deprecated="not deprecated">
  14314. </constructor>
  14315. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  14316. static="false" final="false" visibility="public"
  14317. deprecated="not deprecated">
  14318. </constructor>
  14319. <method name="getBlockSize" return="long"
  14320. abstract="false" native="false" synchronized="false"
  14321. static="false" final="false" visibility="public"
  14322. deprecated="not deprecated">
  14323. </method>
  14324. <method name="getBytesPerChecksum" return="int"
  14325. abstract="false" native="false" synchronized="false"
  14326. static="false" final="false" visibility="public"
  14327. deprecated="not deprecated">
  14328. </method>
  14329. <method name="getWritePacketSize" return="int"
  14330. abstract="false" native="false" synchronized="false"
  14331. static="false" final="false" visibility="public"
  14332. deprecated="not deprecated">
  14333. </method>
  14334. <method name="getReplication" return="short"
  14335. abstract="false" native="false" synchronized="false"
  14336. static="false" final="false" visibility="public"
  14337. deprecated="not deprecated">
  14338. </method>
  14339. <method name="getFileBufferSize" return="int"
  14340. abstract="false" native="false" synchronized="false"
  14341. static="false" final="false" visibility="public"
  14342. deprecated="not deprecated">
  14343. </method>
  14344. <method name="getEncryptDataTransfer" return="boolean"
  14345. abstract="false" native="false" synchronized="false"
  14346. static="false" final="false" visibility="public"
  14347. deprecated="not deprecated">
  14348. </method>
  14349. <method name="getTrashInterval" return="long"
  14350. abstract="false" native="false" synchronized="false"
  14351. static="false" final="false" visibility="public"
  14352. deprecated="not deprecated">
  14353. </method>
  14354. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  14355. abstract="false" native="false" synchronized="false"
  14356. static="false" final="false" visibility="public"
  14357. deprecated="not deprecated">
  14358. </method>
  14359. <method name="getKeyProviderUri" return="java.lang.String"
  14360. abstract="false" native="false" synchronized="false"
  14361. static="false" final="false" visibility="public"
  14362. deprecated="not deprecated">
  14363. </method>
  14364. <method name="getDefaultStoragePolicyId" return="byte"
  14365. abstract="false" native="false" synchronized="false"
  14366. static="false" final="false" visibility="public"
  14367. deprecated="not deprecated">
  14368. </method>
  14369. <doc>
  14370. <![CDATA[Provides server default configuration values to clients.]]>
  14371. </doc>
  14372. </class>
  14373. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  14374. <!-- start class org.apache.hadoop.fs.FsStatus -->
  14375. <class name="FsStatus" extends="java.lang.Object"
  14376. abstract="false"
  14377. static="false" final="false" visibility="public"
  14378. deprecated="not deprecated">
  14379. <implements name="org.apache.hadoop.io.Writable"/>
  14380. <constructor name="FsStatus" type="long, long, long"
  14381. static="false" final="false" visibility="public"
  14382. deprecated="not deprecated">
  14383. <doc>
  14384. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  14385. </doc>
  14386. </constructor>
  14387. <method name="getCapacity" return="long"
  14388. abstract="false" native="false" synchronized="false"
  14389. static="false" final="false" visibility="public"
  14390. deprecated="not deprecated">
  14391. <doc>
  14392. <![CDATA[Return the capacity in bytes of the file system]]>
  14393. </doc>
  14394. </method>
  14395. <method name="getUsed" return="long"
  14396. abstract="false" native="false" synchronized="false"
  14397. static="false" final="false" visibility="public"
  14398. deprecated="not deprecated">
  14399. <doc>
  14400. <![CDATA[Return the number of bytes used on the file system]]>
  14401. </doc>
  14402. </method>
  14403. <method name="getRemaining" return="long"
  14404. abstract="false" native="false" synchronized="false"
  14405. static="false" final="false" visibility="public"
  14406. deprecated="not deprecated">
  14407. <doc>
  14408. <![CDATA[Return the number of remaining bytes on the file system]]>
  14409. </doc>
  14410. </method>
  14411. <method name="write"
  14412. abstract="false" native="false" synchronized="false"
  14413. static="false" final="false" visibility="public"
  14414. deprecated="not deprecated">
  14415. <param name="out" type="java.io.DataOutput"/>
  14416. <exception name="IOException" type="java.io.IOException"/>
  14417. </method>
  14418. <method name="readFields"
  14419. abstract="false" native="false" synchronized="false"
  14420. static="false" final="false" visibility="public"
  14421. deprecated="not deprecated">
  14422. <param name="in" type="java.io.DataInput"/>
  14423. <exception name="IOException" type="java.io.IOException"/>
  14424. </method>
  14425. <doc>
  14426. <![CDATA[This class is used to represent the capacity, free and used space on a
  14427. {@link FileSystem}.]]>
  14428. </doc>
  14429. </class>
  14430. <!-- end class org.apache.hadoop.fs.FsStatus -->
  14431. <!-- start interface org.apache.hadoop.fs.FutureDataInputStreamBuilder -->
  14432. <interface name="FutureDataInputStreamBuilder" abstract="true"
  14433. static="false" final="false" visibility="public"
  14434. deprecated="not deprecated">
  14435. <implements name="org.apache.hadoop.fs.FSBuilder"/>
  14436. <method name="build" return="java.util.concurrent.CompletableFuture"
  14437. abstract="true" native="false" synchronized="false"
  14438. static="false" final="false" visibility="public"
  14439. deprecated="not deprecated">
  14440. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14441. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14442. <exception name="IOException" type="java.io.IOException"/>
  14443. </method>
  14444. <method name="withFileStatus" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  14445. abstract="false" native="false" synchronized="false"
  14446. static="false" final="false" visibility="public"
  14447. deprecated="not deprecated">
  14448. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  14449. <doc>
  14450. <![CDATA[A FileStatus may be provided to the open request.
  14451. It is up to the implementation whether to use this or not.
  14452. @param status status.
  14453. @return the builder.]]>
  14454. </doc>
  14455. </method>
  14456. <doc>
  14457. <![CDATA[Builder for input streams and subclasses whose return value is
  14458. actually a completable future: this allows for better asynchronous
  14459. operation.
  14460. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  14461. variants provide implementation-agnostic way to customize the builder.
  14462. Each FS-specific builder implementation can interpret the FS-specific
  14463. options accordingly, for example:
  14464. If the option is not related to the file system, the option will be ignored.
  14465. If the option is must, but not supported by the file system, a
  14466. {@link IllegalArgumentException} will be thrown.]]>
  14467. </doc>
  14468. </interface>
  14469. <!-- end interface org.apache.hadoop.fs.FutureDataInputStreamBuilder -->
  14470. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  14471. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  14472. abstract="false"
  14473. static="false" final="true" visibility="public"
  14474. deprecated="not deprecated">
  14475. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  14476. abstract="false" native="false" synchronized="false"
  14477. static="true" final="false" visibility="public"
  14478. deprecated="not deprecated">
  14479. </method>
  14480. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  14481. abstract="false" native="false" synchronized="false"
  14482. static="true" final="false" visibility="public"
  14483. deprecated="not deprecated">
  14484. <param name="name" type="java.lang.String"/>
  14485. </method>
  14486. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  14487. abstract="false" native="false" synchronized="true"
  14488. static="false" final="false" visibility="public"
  14489. deprecated="not deprecated">
  14490. <param name="name" type="java.lang.String"/>
  14491. <doc>
  14492. <![CDATA[Get the StorageStatistics object with the given name.
  14493. @param name The storage statistics object name.
  14494. @return The StorageStatistics object with the given name, or
  14495. null if there is none.]]>
  14496. </doc>
  14497. </method>
  14498. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  14499. abstract="false" native="false" synchronized="true"
  14500. static="false" final="false" visibility="public"
  14501. deprecated="not deprecated">
  14502. <param name="name" type="java.lang.String"/>
  14503. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  14504. <doc>
  14505. <![CDATA[Create or return the StorageStatistics object with the given name.
  14506. @param name The storage statistics object name.
  14507. @param provider An object which can create a new StorageStatistics
  14508. object if needed.
  14509. @return The StorageStatistics object with the given name.
  14510. @throws RuntimeException If the StorageStatisticsProvider provides a null
  14511. object or a new StorageStatistics object with the
  14512. wrong name.]]>
  14513. </doc>
  14514. </method>
  14515. <method name="reset"
  14516. abstract="false" native="false" synchronized="true"
  14517. static="false" final="false" visibility="public"
  14518. deprecated="not deprecated">
  14519. <doc>
  14520. <![CDATA[Reset all global storage statistics.]]>
  14521. </doc>
  14522. </method>
  14523. <method name="iterator" return="java.util.Iterator"
  14524. abstract="false" native="false" synchronized="true"
  14525. static="false" final="false" visibility="public"
  14526. deprecated="not deprecated">
  14527. <doc>
  14528. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  14529. statistics objects.]]>
  14530. </doc>
  14531. </method>
  14532. <doc>
  14533. <![CDATA[Stores global storage statistics objects.]]>
  14534. </doc>
  14535. </class>
  14536. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  14537. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  14538. <class name="GlobFilter" extends="java.lang.Object"
  14539. abstract="false"
  14540. static="false" final="false" visibility="public"
  14541. deprecated="not deprecated">
  14542. <implements name="org.apache.hadoop.fs.PathFilter"/>
  14543. <constructor name="GlobFilter" type="java.lang.String"
  14544. static="false" final="false" visibility="public"
  14545. deprecated="not deprecated">
  14546. <exception name="IOException" type="java.io.IOException"/>
  14547. <doc>
  14548. <![CDATA[Creates a glob filter with the specified file pattern.
  14549. @param filePattern the file pattern.
  14550. @throws IOException thrown if the file pattern is incorrect.]]>
  14551. </doc>
  14552. </constructor>
  14553. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  14554. static="false" final="false" visibility="public"
  14555. deprecated="not deprecated">
  14556. <exception name="IOException" type="java.io.IOException"/>
  14557. <doc>
  14558. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  14559. @param filePattern the file pattern.
  14560. @param filter user filter in addition to the glob pattern.
  14561. @throws IOException thrown if the file pattern is incorrect.]]>
  14562. </doc>
  14563. </constructor>
  14564. <method name="hasPattern" return="boolean"
  14565. abstract="false" native="false" synchronized="false"
  14566. static="false" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. </method>
  14569. <method name="accept" return="boolean"
  14570. abstract="false" native="false" synchronized="false"
  14571. static="false" final="false" visibility="public"
  14572. deprecated="not deprecated">
  14573. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14574. </method>
  14575. <doc>
  14576. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  14577. </doc>
  14578. </class>
  14579. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  14580. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  14581. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  14582. abstract="false"
  14583. static="false" final="false" visibility="public"
  14584. deprecated="not deprecated">
  14585. <constructor name="InvalidPathException" type="java.lang.String"
  14586. static="false" final="false" visibility="public"
  14587. deprecated="not deprecated">
  14588. <doc>
  14589. <![CDATA[Constructs exception with the specified detail message.
  14590. @param path invalid path.]]>
  14591. </doc>
  14592. </constructor>
  14593. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  14594. static="false" final="false" visibility="public"
  14595. deprecated="not deprecated">
  14596. <doc>
  14597. <![CDATA[Constructs exception with the specified detail message.
  14598. @param path invalid path.
  14599. @param reason Reason <code>path</code> is invalid]]>
  14600. </doc>
  14601. </constructor>
  14602. <doc>
  14603. <![CDATA[Path string is invalid either because it has invalid characters or due to
  14604. other file system specific reasons.]]>
  14605. </doc>
  14606. </class>
  14607. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  14608. <!-- start class org.apache.hadoop.fs.InvalidPathHandleException -->
  14609. <class name="InvalidPathHandleException" extends="java.io.IOException"
  14610. abstract="false"
  14611. static="false" final="false" visibility="public"
  14612. deprecated="not deprecated">
  14613. <constructor name="InvalidPathHandleException" type="java.lang.String"
  14614. static="false" final="false" visibility="public"
  14615. deprecated="not deprecated">
  14616. </constructor>
  14617. <constructor name="InvalidPathHandleException" type="java.lang.String, java.lang.Throwable"
  14618. static="false" final="false" visibility="public"
  14619. deprecated="not deprecated">
  14620. </constructor>
  14621. <doc>
  14622. <![CDATA[Thrown when the constraints enoded in a {@link PathHandle} do not hold.
  14623. For example, if a handle were created with the default
  14624. {@link Options.HandleOpt#path()} constraints, a call to
  14625. {@link FileSystem#open(PathHandle)} would succeed if the file were
  14626. modified, but if a different file was at that location then it would throw
  14627. this exception.]]>
  14628. </doc>
  14629. </class>
  14630. <!-- end class org.apache.hadoop.fs.InvalidPathHandleException -->
  14631. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  14632. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  14633. abstract="false"
  14634. static="false" final="false" visibility="public"
  14635. deprecated="not deprecated">
  14636. <constructor name="LocalFileSystem"
  14637. static="false" final="false" visibility="public"
  14638. deprecated="not deprecated">
  14639. </constructor>
  14640. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  14641. static="false" final="false" visibility="public"
  14642. deprecated="not deprecated">
  14643. </constructor>
  14644. <method name="initialize"
  14645. abstract="false" native="false" synchronized="false"
  14646. static="false" final="false" visibility="public"
  14647. deprecated="not deprecated">
  14648. <param name="name" type="java.net.URI"/>
  14649. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14650. <exception name="IOException" type="java.io.IOException"/>
  14651. </method>
  14652. <method name="getScheme" return="java.lang.String"
  14653. abstract="false" native="false" synchronized="false"
  14654. static="false" final="false" visibility="public"
  14655. deprecated="not deprecated">
  14656. <doc>
  14657. <![CDATA[Return the protocol scheme for the FileSystem.
  14658. <p>
  14659. @return <code>file</code>]]>
  14660. </doc>
  14661. </method>
  14662. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  14663. abstract="false" native="false" synchronized="false"
  14664. static="false" final="false" visibility="public"
  14665. deprecated="not deprecated">
  14666. </method>
  14667. <method name="pathToFile" return="java.io.File"
  14668. abstract="false" native="false" synchronized="false"
  14669. static="false" final="false" visibility="public"
  14670. deprecated="not deprecated">
  14671. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14672. <doc>
  14673. <![CDATA[Convert a path to a File.]]>
  14674. </doc>
  14675. </method>
  14676. <method name="copyFromLocalFile"
  14677. abstract="false" native="false" synchronized="false"
  14678. static="false" final="false" visibility="public"
  14679. deprecated="not deprecated">
  14680. <param name="delSrc" type="boolean"/>
  14681. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14682. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14683. <exception name="IOException" type="java.io.IOException"/>
  14684. </method>
  14685. <method name="copyToLocalFile"
  14686. abstract="false" native="false" synchronized="false"
  14687. static="false" final="false" visibility="public"
  14688. deprecated="not deprecated">
  14689. <param name="delSrc" type="boolean"/>
  14690. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14691. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14692. <exception name="IOException" type="java.io.IOException"/>
  14693. </method>
  14694. <method name="reportChecksumFailure" return="boolean"
  14695. abstract="false" native="false" synchronized="false"
  14696. static="false" final="false" visibility="public"
  14697. deprecated="not deprecated">
  14698. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14699. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  14700. <param name="inPos" type="long"/>
  14701. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  14702. <param name="sumsPos" type="long"/>
  14703. <doc>
  14704. <![CDATA[Moves files to a bad file directory on the same device, so that their
  14705. storage will not be reused.]]>
  14706. </doc>
  14707. </method>
  14708. <method name="supportsSymlinks" return="boolean"
  14709. abstract="false" native="false" synchronized="false"
  14710. static="false" final="false" visibility="public"
  14711. deprecated="not deprecated">
  14712. </method>
  14713. <method name="createSymlink"
  14714. abstract="false" native="false" synchronized="false"
  14715. static="false" final="false" visibility="public"
  14716. deprecated="not deprecated">
  14717. <param name="target" type="org.apache.hadoop.fs.Path"/>
  14718. <param name="link" type="org.apache.hadoop.fs.Path"/>
  14719. <param name="createParent" type="boolean"/>
  14720. <exception name="IOException" type="java.io.IOException"/>
  14721. </method>
  14722. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  14723. abstract="false" native="false" synchronized="false"
  14724. static="false" final="false" visibility="public"
  14725. deprecated="not deprecated">
  14726. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14727. <exception name="IOException" type="java.io.IOException"/>
  14728. </method>
  14729. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  14730. abstract="false" native="false" synchronized="false"
  14731. static="false" final="false" visibility="public"
  14732. deprecated="not deprecated">
  14733. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14734. <exception name="IOException" type="java.io.IOException"/>
  14735. </method>
  14736. <doc>
  14737. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  14738. </doc>
  14739. </class>
  14740. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  14741. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  14742. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  14743. abstract="false"
  14744. static="false" final="false" visibility="public"
  14745. deprecated="not deprecated">
  14746. <constructor name="LocatedFileStatus"
  14747. static="false" final="false" visibility="public"
  14748. deprecated="not deprecated">
  14749. </constructor>
  14750. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  14751. static="false" final="false" visibility="public"
  14752. deprecated="not deprecated">
  14753. <doc>
  14754. <![CDATA[Constructor
  14755. @param stat a file status
  14756. @param locations a file's block locations]]>
  14757. </doc>
  14758. </constructor>
  14759. <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[]"
  14760. static="false" final="false" visibility="public"
  14761. deprecated="not deprecated">
  14762. <doc>
  14763. <![CDATA[Constructor
  14764. @param length a file's length
  14765. @param isdir if the path is a directory
  14766. @param block_replication the file's replication factor
  14767. @param blocksize a file's block size
  14768. @param modification_time a file's modification time
  14769. @param access_time a file's access time
  14770. @param permission a file's permission
  14771. @param owner a file's owner
  14772. @param group a file's group
  14773. @param symlink symlink if the path is a symbolic link
  14774. @param path the path's qualified name
  14775. @param locations a file's block locations]]>
  14776. </doc>
  14777. </constructor>
  14778. <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[]"
  14779. static="false" final="false" visibility="public"
  14780. deprecated="not deprecated">
  14781. <doc>
  14782. <![CDATA[Constructor.
  14783. @param length a file's length
  14784. @param isdir if the path is a directory
  14785. @param block_replication the file's replication factor
  14786. @param blocksize a file's block size
  14787. @param modification_time a file's modification time
  14788. @param access_time a file's access time
  14789. @param permission a file's permission
  14790. @param owner a file's owner
  14791. @param group a file's group
  14792. @param symlink symlink if the path is a symbolic link
  14793. @param path the path's qualified name
  14794. @param hasAcl entity has associated ACLs
  14795. @param isEncrypted entity is encrypted
  14796. @param isErasureCoded entity is erasure coded
  14797. @param locations a file's block locations]]>
  14798. </doc>
  14799. </constructor>
  14800. <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[]"
  14801. static="false" final="false" visibility="public"
  14802. deprecated="not deprecated">
  14803. <doc>
  14804. <![CDATA[Constructor.
  14805. @param length a file's length
  14806. @param isdir if the path is a directory
  14807. @param block_replication the file's replication factor
  14808. @param blocksize a file's block size
  14809. @param modification_time a file's modification time
  14810. @param access_time a file's access time
  14811. @param permission a file's permission
  14812. @param owner a file's owner
  14813. @param group a file's group
  14814. @param symlink symlink if the path is a symbolic link
  14815. @param path the path's qualified name
  14816. @param attr Attribute flags (See {@link FileStatus.AttrFlags}).
  14817. @param locations a file's block locations]]>
  14818. </doc>
  14819. </constructor>
  14820. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  14821. abstract="false" native="false" synchronized="false"
  14822. static="false" final="false" visibility="public"
  14823. deprecated="not deprecated">
  14824. <doc>
  14825. <![CDATA[Get the file's block locations
  14826. In HDFS, the returned BlockLocation will have different formats for
  14827. replicated and erasure coded file.
  14828. Please refer to
  14829. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  14830. for more details.
  14831. @return the file's block locations]]>
  14832. </doc>
  14833. </method>
  14834. <method name="setBlockLocations"
  14835. abstract="false" native="false" synchronized="false"
  14836. static="false" final="false" visibility="protected"
  14837. deprecated="not deprecated">
  14838. <param name="locations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  14839. <doc>
  14840. <![CDATA[Hook for subclasses to lazily set block locations. The {@link #locations}
  14841. field should be null before this is called.
  14842. @param locations Block locations for this instance.]]>
  14843. </doc>
  14844. </method>
  14845. <method name="compareTo" return="int"
  14846. abstract="false" native="false" synchronized="false"
  14847. static="false" final="false" visibility="public"
  14848. deprecated="not deprecated">
  14849. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  14850. <doc>
  14851. <![CDATA[Compare this FileStatus to another FileStatus
  14852. @param o the FileStatus to be compared.
  14853. @return a negative integer, zero, or a positive integer as this object
  14854. is less than, equal to, or greater than the specified object.]]>
  14855. </doc>
  14856. </method>
  14857. <method name="equals" return="boolean"
  14858. abstract="false" native="false" synchronized="false"
  14859. static="false" final="false" visibility="public"
  14860. deprecated="not deprecated">
  14861. <param name="o" type="java.lang.Object"/>
  14862. <doc>
  14863. <![CDATA[Compare if this object is equal to another object
  14864. @param o the object to be compared.
  14865. @return true if two file status has the same path name; false if not.]]>
  14866. </doc>
  14867. </method>
  14868. <method name="hashCode" return="int"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="false" final="false" visibility="public"
  14871. deprecated="not deprecated">
  14872. <doc>
  14873. <![CDATA[Returns a hash code value for the object, which is defined as
  14874. the hash code of the path name.
  14875. @return a hash code value for the path name.]]>
  14876. </doc>
  14877. </method>
  14878. <doc>
  14879. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  14880. </doc>
  14881. </class>
  14882. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  14883. <!-- start interface org.apache.hadoop.fs.MultipartUploader -->
  14884. <interface name="MultipartUploader" abstract="true"
  14885. static="false" final="false" visibility="public"
  14886. deprecated="not deprecated">
  14887. <implements name="java.io.Closeable"/>
  14888. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  14889. <method name="startUpload" return="java.util.concurrent.CompletableFuture"
  14890. abstract="true" native="false" synchronized="false"
  14891. static="false" final="false" visibility="public"
  14892. deprecated="not deprecated">
  14893. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  14894. <exception name="IOException" type="java.io.IOException"/>
  14895. <doc>
  14896. <![CDATA[Initialize a multipart upload.
  14897. @param filePath Target path for upload.
  14898. @return unique identifier associating part uploads.
  14899. @throws IOException IO failure]]>
  14900. </doc>
  14901. </method>
  14902. <method name="putPart" return="java.util.concurrent.CompletableFuture"
  14903. abstract="true" native="false" synchronized="false"
  14904. static="false" final="false" visibility="public"
  14905. deprecated="not deprecated">
  14906. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  14907. <param name="partNumber" type="int"/>
  14908. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  14909. <param name="inputStream" type="java.io.InputStream"/>
  14910. <param name="lengthInBytes" type="long"/>
  14911. <exception name="IOException" type="java.io.IOException"/>
  14912. <doc>
  14913. <![CDATA[Put part as part of a multipart upload.
  14914. It is possible to have parts uploaded in any order (or in parallel).
  14915. @param uploadId Identifier from {@link #startUpload(Path)}.
  14916. @param partNumber Index of the part relative to others.
  14917. @param filePath Target path for upload (as {@link #startUpload(Path)}).
  14918. @param inputStream Data for this part. Implementations MUST close this
  14919. stream after reading in the data.
  14920. @param lengthInBytes Target length to read from the stream.
  14921. @return unique PartHandle identifier for the uploaded part.
  14922. @throws IOException IO failure]]>
  14923. </doc>
  14924. </method>
  14925. <method name="complete" return="java.util.concurrent.CompletableFuture"
  14926. abstract="true" native="false" synchronized="false"
  14927. static="false" final="false" visibility="public"
  14928. deprecated="not deprecated">
  14929. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  14930. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  14931. <param name="handles" type="java.util.Map"/>
  14932. <exception name="IOException" type="java.io.IOException"/>
  14933. <doc>
  14934. <![CDATA[Complete a multipart upload.
  14935. @param uploadId Identifier from {@link #startUpload(Path)}.
  14936. @param filePath Target path for upload (as {@link #startUpload(Path)}.
  14937. @param handles non-empty map of part number to part handle.
  14938. from {@link #putPart(UploadHandle, int, Path, InputStream, long)}.
  14939. @return unique PathHandle identifier for the uploaded file.
  14940. @throws IOException IO failure]]>
  14941. </doc>
  14942. </method>
  14943. <method name="abort" return="java.util.concurrent.CompletableFuture"
  14944. abstract="true" native="false" synchronized="false"
  14945. static="false" final="false" visibility="public"
  14946. deprecated="not deprecated">
  14947. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  14948. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  14949. <exception name="IOException" type="java.io.IOException"/>
  14950. <doc>
  14951. <![CDATA[Aborts a multipart upload.
  14952. @param uploadId Identifier from {@link #startUpload(Path)}.
  14953. @param filePath Target path for upload (same as {@link #startUpload(Path)}.
  14954. @throws IOException IO failure
  14955. @return a future; the operation will have completed]]>
  14956. </doc>
  14957. </method>
  14958. <method name="abortUploadsUnderPath" return="java.util.concurrent.CompletableFuture"
  14959. abstract="true" native="false" synchronized="false"
  14960. static="false" final="false" visibility="public"
  14961. deprecated="not deprecated">
  14962. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14963. <exception name="IOException" type="java.io.IOException"/>
  14964. <doc>
  14965. <![CDATA[Best effort attempt to aborts multipart uploads under a path.
  14966. Not all implementations support this, and those which do may
  14967. be vulnerable to eventually consistent listings of current uploads
  14968. -some may be missed.
  14969. @param path path to abort uploads under.
  14970. @return a future to the number of entries aborted;
  14971. -1 if aborting is unsupported
  14972. @throws IOException IO failure]]>
  14973. </doc>
  14974. </method>
  14975. <doc>
  14976. <![CDATA[MultipartUploader is an interface for copying files multipart and across
  14977. multiple nodes.
  14978. <p></p>
  14979. The interface extends {@link IOStatisticsSource} so that there is no
  14980. need to cast an instance to see if is a source of statistics.
  14981. However, implementations MAY return null for their actual statistics.]]>
  14982. </doc>
  14983. </interface>
  14984. <!-- end interface org.apache.hadoop.fs.MultipartUploader -->
  14985. <!-- start class org.apache.hadoop.fs.Options -->
  14986. <class name="Options" extends="java.lang.Object"
  14987. abstract="false"
  14988. static="false" final="true" visibility="public"
  14989. deprecated="not deprecated">
  14990. <constructor name="Options"
  14991. static="false" final="false" visibility="public"
  14992. deprecated="not deprecated">
  14993. </constructor>
  14994. <doc>
  14995. <![CDATA[This class contains options related to file system operations.]]>
  14996. </doc>
  14997. </class>
  14998. <!-- end class org.apache.hadoop.fs.Options -->
  14999. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  15000. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  15001. abstract="false"
  15002. static="false" final="false" visibility="public"
  15003. deprecated="not deprecated">
  15004. <constructor name="ParentNotDirectoryException"
  15005. static="false" final="false" visibility="public"
  15006. deprecated="not deprecated">
  15007. </constructor>
  15008. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  15009. static="false" final="false" visibility="public"
  15010. deprecated="not deprecated">
  15011. </constructor>
  15012. <doc>
  15013. <![CDATA[Indicates that the parent of specified Path is not a directory
  15014. as expected.]]>
  15015. </doc>
  15016. </class>
  15017. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  15018. <!-- start interface org.apache.hadoop.fs.PartHandle -->
  15019. <interface name="PartHandle" abstract="true"
  15020. static="false" final="false" visibility="public"
  15021. deprecated="not deprecated">
  15022. <implements name="java.io.Serializable"/>
  15023. <method name="toByteArray" return="byte[]"
  15024. abstract="false" native="false" synchronized="false"
  15025. static="false" final="false" visibility="public"
  15026. deprecated="not deprecated">
  15027. <doc>
  15028. <![CDATA[@return Serialized from in bytes.]]>
  15029. </doc>
  15030. </method>
  15031. <method name="bytes" return="java.nio.ByteBuffer"
  15032. abstract="true" native="false" synchronized="false"
  15033. static="false" final="false" visibility="public"
  15034. deprecated="not deprecated">
  15035. </method>
  15036. <method name="equals" return="boolean"
  15037. abstract="true" native="false" synchronized="false"
  15038. static="false" final="false" visibility="public"
  15039. deprecated="not deprecated">
  15040. <param name="other" type="java.lang.Object"/>
  15041. </method>
  15042. <doc>
  15043. <![CDATA[Opaque, serializable reference to a part id for multipart uploads.]]>
  15044. </doc>
  15045. </interface>
  15046. <!-- end interface org.apache.hadoop.fs.PartHandle -->
  15047. <!-- start class org.apache.hadoop.fs.PartialListing -->
  15048. <class name="PartialListing" extends="java.lang.Object"
  15049. abstract="false"
  15050. static="false" final="false" visibility="public"
  15051. deprecated="not deprecated">
  15052. <constructor name="PartialListing" type="org.apache.hadoop.fs.Path, java.util.List"
  15053. static="false" final="false" visibility="public"
  15054. deprecated="not deprecated">
  15055. </constructor>
  15056. <constructor name="PartialListing" type="org.apache.hadoop.fs.Path, org.apache.hadoop.ipc.RemoteException"
  15057. static="false" final="false" visibility="public"
  15058. deprecated="not deprecated">
  15059. </constructor>
  15060. <method name="get" return="java.util.List"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. <exception name="IOException" type="java.io.IOException"/>
  15065. <doc>
  15066. <![CDATA[Partial listing of the path being listed. In the case where the path is
  15067. a file. The list will be a singleton with the file itself.
  15068. @return Partial listing of the path being listed.
  15069. @throws IOException if there was an exception getting the listing.]]>
  15070. </doc>
  15071. </method>
  15072. <method name="getListedPath" return="org.apache.hadoop.fs.Path"
  15073. abstract="false" native="false" synchronized="false"
  15074. static="false" final="false" visibility="public"
  15075. deprecated="not deprecated">
  15076. <doc>
  15077. <![CDATA[Path being listed.
  15078. @return the path being listed.]]>
  15079. </doc>
  15080. </method>
  15081. <method name="toString" return="java.lang.String"
  15082. abstract="false" native="false" synchronized="false"
  15083. static="false" final="false" visibility="public"
  15084. deprecated="not deprecated">
  15085. </method>
  15086. <doc>
  15087. <![CDATA[A partial listing of the children of a parent directory. Since it is a
  15088. partial listing, multiple PartialListing may need to be combined to obtain
  15089. the full listing of a parent directory.
  15090. <p/>
  15091. ListingBatch behaves similar to a Future, in that getting the result via
  15092. {@link #get()} will throw an Exception if there was a failure.]]>
  15093. </doc>
  15094. </class>
  15095. <!-- end class org.apache.hadoop.fs.PartialListing -->
  15096. <!-- start class org.apache.hadoop.fs.Path -->
  15097. <class name="Path" extends="java.lang.Object"
  15098. abstract="false"
  15099. static="false" final="false" visibility="public"
  15100. deprecated="not deprecated">
  15101. <implements name="java.lang.Comparable"/>
  15102. <implements name="java.io.Serializable"/>
  15103. <implements name="java.io.ObjectInputValidation"/>
  15104. <constructor name="Path" type="java.lang.String, java.lang.String"
  15105. static="false" final="false" visibility="public"
  15106. deprecated="not deprecated">
  15107. <doc>
  15108. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15109. @param parent the parent path
  15110. @param child the child path]]>
  15111. </doc>
  15112. </constructor>
  15113. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  15114. static="false" final="false" visibility="public"
  15115. deprecated="not deprecated">
  15116. <doc>
  15117. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15118. @param parent the parent path
  15119. @param child the child path]]>
  15120. </doc>
  15121. </constructor>
  15122. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  15123. static="false" final="false" visibility="public"
  15124. deprecated="not deprecated">
  15125. <doc>
  15126. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15127. @param parent the parent path
  15128. @param child the child path]]>
  15129. </doc>
  15130. </constructor>
  15131. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  15132. static="false" final="false" visibility="public"
  15133. deprecated="not deprecated">
  15134. <doc>
  15135. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15136. @param parent the parent path
  15137. @param child the child path]]>
  15138. </doc>
  15139. </constructor>
  15140. <constructor name="Path" type="java.lang.String"
  15141. static="false" final="false" visibility="public"
  15142. deprecated="not deprecated">
  15143. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15144. <doc>
  15145. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  15146. unescaped elements and some additional normalization.
  15147. @param pathString the path string]]>
  15148. </doc>
  15149. </constructor>
  15150. <constructor name="Path" type="java.net.URI"
  15151. static="false" final="false" visibility="public"
  15152. deprecated="not deprecated">
  15153. <doc>
  15154. <![CDATA[Construct a path from a URI
  15155. @param aUri the source URI]]>
  15156. </doc>
  15157. </constructor>
  15158. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  15159. static="false" final="false" visibility="public"
  15160. deprecated="not deprecated">
  15161. <doc>
  15162. <![CDATA[Construct a Path from components.
  15163. @param scheme the scheme
  15164. @param authority the authority
  15165. @param path the path]]>
  15166. </doc>
  15167. </constructor>
  15168. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  15169. abstract="false" native="false" synchronized="false"
  15170. static="true" final="false" visibility="public"
  15171. deprecated="not deprecated">
  15172. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15173. <doc>
  15174. <![CDATA[Return a version of the given Path without the scheme information.
  15175. @param path the source Path
  15176. @return a copy of this Path without the scheme information]]>
  15177. </doc>
  15178. </method>
  15179. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  15180. abstract="false" native="false" synchronized="false"
  15181. static="true" final="false" visibility="public"
  15182. deprecated="not deprecated">
  15183. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  15184. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  15185. <doc>
  15186. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  15187. The returned path has the scheme and authority of the first path. On
  15188. Windows, the drive specification in the second path is discarded.
  15189. @param path1 the first path
  15190. @param path2 the second path, to be appended relative to path1
  15191. @return the merged path]]>
  15192. </doc>
  15193. </method>
  15194. <method name="isWindowsAbsolutePath" return="boolean"
  15195. abstract="false" native="false" synchronized="false"
  15196. static="true" final="false" visibility="public"
  15197. deprecated="not deprecated">
  15198. <param name="pathString" type="java.lang.String"/>
  15199. <param name="slashed" type="boolean"/>
  15200. <doc>
  15201. <![CDATA[Determine whether a given path string represents an absolute path on
  15202. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  15203. @param pathString the path string to evaluate
  15204. @param slashed true if the given path is prefixed with "/"
  15205. @return true if the supplied path looks like an absolute path with a Windows
  15206. drive-specifier]]>
  15207. </doc>
  15208. </method>
  15209. <method name="toUri" return="java.net.URI"
  15210. abstract="false" native="false" synchronized="false"
  15211. static="false" final="false" visibility="public"
  15212. deprecated="not deprecated">
  15213. <doc>
  15214. <![CDATA[Convert this Path to a URI.
  15215. @return this Path as a URI]]>
  15216. </doc>
  15217. </method>
  15218. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  15219. abstract="false" native="false" synchronized="false"
  15220. static="false" final="false" visibility="public"
  15221. deprecated="not deprecated">
  15222. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15223. <exception name="IOException" type="java.io.IOException"/>
  15224. <doc>
  15225. <![CDATA[Return the FileSystem that owns this Path.
  15226. @param conf the configuration to use when resolving the FileSystem
  15227. @return the FileSystem that owns this Path
  15228. @throws java.io.IOException thrown if there's an issue resolving the
  15229. FileSystem]]>
  15230. </doc>
  15231. </method>
  15232. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  15233. abstract="false" native="false" synchronized="false"
  15234. static="false" final="false" visibility="public"
  15235. deprecated="not deprecated">
  15236. <doc>
  15237. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  15238. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  15239. is null.
  15240. @return whether the path is absolute and the URI has no scheme nor
  15241. authority parts]]>
  15242. </doc>
  15243. </method>
  15244. <method name="isUriPathAbsolute" return="boolean"
  15245. abstract="false" native="false" synchronized="false"
  15246. static="false" final="false" visibility="public"
  15247. deprecated="not deprecated">
  15248. <doc>
  15249. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  15250. absolute.
  15251. @return whether this URI's path is absolute]]>
  15252. </doc>
  15253. </method>
  15254. <method name="isAbsolute" return="boolean"
  15255. abstract="false" native="false" synchronized="false"
  15256. static="false" final="false" visibility="public"
  15257. deprecated="not deprecated">
  15258. <doc>
  15259. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  15260. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  15261. @return whether this URI's path is absolute]]>
  15262. </doc>
  15263. </method>
  15264. <method name="isRoot" return="boolean"
  15265. abstract="false" native="false" synchronized="false"
  15266. static="false" final="false" visibility="public"
  15267. deprecated="not deprecated">
  15268. <doc>
  15269. <![CDATA[Returns true if and only if this path represents the root of a file system.
  15270. @return true if and only if this path represents the root of a file system]]>
  15271. </doc>
  15272. </method>
  15273. <method name="getName" return="java.lang.String"
  15274. abstract="false" native="false" synchronized="false"
  15275. static="false" final="false" visibility="public"
  15276. deprecated="not deprecated">
  15277. <doc>
  15278. <![CDATA[Returns the final component of this path.
  15279. @return the final component of this path]]>
  15280. </doc>
  15281. </method>
  15282. <method name="getParent" return="org.apache.hadoop.fs.Path"
  15283. abstract="false" native="false" synchronized="false"
  15284. static="false" final="false" visibility="public"
  15285. deprecated="not deprecated">
  15286. <doc>
  15287. <![CDATA[Returns the parent of a path or null if at root.
  15288. @return the parent of a path or null if at root]]>
  15289. </doc>
  15290. </method>
  15291. <method name="suffix" return="org.apache.hadoop.fs.Path"
  15292. abstract="false" native="false" synchronized="false"
  15293. static="false" final="false" visibility="public"
  15294. deprecated="not deprecated">
  15295. <param name="suffix" type="java.lang.String"/>
  15296. <doc>
  15297. <![CDATA[Adds a suffix to the final name in the path.
  15298. @param suffix the suffix to add
  15299. @return a new path with the suffix added]]>
  15300. </doc>
  15301. </method>
  15302. <method name="toString" return="java.lang.String"
  15303. abstract="false" native="false" synchronized="false"
  15304. static="false" final="false" visibility="public"
  15305. deprecated="not deprecated">
  15306. </method>
  15307. <method name="equals" return="boolean"
  15308. abstract="false" native="false" synchronized="false"
  15309. static="false" final="false" visibility="public"
  15310. deprecated="not deprecated">
  15311. <param name="o" type="java.lang.Object"/>
  15312. </method>
  15313. <method name="hashCode" return="int"
  15314. abstract="false" native="false" synchronized="false"
  15315. static="false" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. </method>
  15318. <method name="compareTo" return="int"
  15319. abstract="false" native="false" synchronized="false"
  15320. static="false" final="false" visibility="public"
  15321. deprecated="not deprecated">
  15322. <param name="o" type="org.apache.hadoop.fs.Path"/>
  15323. </method>
  15324. <method name="depth" return="int"
  15325. abstract="false" native="false" synchronized="false"
  15326. static="false" final="false" visibility="public"
  15327. deprecated="not deprecated">
  15328. <doc>
  15329. <![CDATA[Returns the number of elements in this path.
  15330. @return the number of elements in this path]]>
  15331. </doc>
  15332. </method>
  15333. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  15334. abstract="false" native="false" synchronized="false"
  15335. static="false" final="false" visibility="public"
  15336. deprecated="use {@link #makeQualified(URI, Path)}">
  15337. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15338. <doc>
  15339. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  15340. directory.
  15341. @param fs the target FileSystem
  15342. @return a qualified path object for the FileSystem's working directory
  15343. @deprecated use {@link #makeQualified(URI, Path)}]]>
  15344. </doc>
  15345. </method>
  15346. <method name="validateObject"
  15347. abstract="false" native="false" synchronized="false"
  15348. static="false" final="false" visibility="public"
  15349. deprecated="not deprecated">
  15350. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  15351. <doc>
  15352. <![CDATA[Validate the contents of a deserialized Path, so as
  15353. to defend against malicious object streams.
  15354. @throws InvalidObjectException if there's no URI]]>
  15355. </doc>
  15356. </method>
  15357. <field name="SEPARATOR" type="java.lang.String"
  15358. transient="false" volatile="false"
  15359. static="true" final="true" visibility="public"
  15360. deprecated="not deprecated">
  15361. <doc>
  15362. <![CDATA[The directory separator, a slash.]]>
  15363. </doc>
  15364. </field>
  15365. <field name="SEPARATOR_CHAR" type="char"
  15366. transient="false" volatile="false"
  15367. static="true" final="true" visibility="public"
  15368. deprecated="not deprecated">
  15369. <doc>
  15370. <![CDATA[The directory separator, a slash, as a character.]]>
  15371. </doc>
  15372. </field>
  15373. <field name="CUR_DIR" type="java.lang.String"
  15374. transient="false" volatile="false"
  15375. static="true" final="true" visibility="public"
  15376. deprecated="not deprecated">
  15377. <doc>
  15378. <![CDATA[The current directory, ".".]]>
  15379. </doc>
  15380. </field>
  15381. <field name="WINDOWS" type="boolean"
  15382. transient="false" volatile="false"
  15383. static="true" final="true" visibility="public"
  15384. deprecated="not deprecated">
  15385. <doc>
  15386. <![CDATA[Whether the current host is a Windows machine.]]>
  15387. </doc>
  15388. </field>
  15389. <doc>
  15390. <![CDATA[Names a file or directory in a {@link FileSystem}.
  15391. Path strings use slash as the directory separator.]]>
  15392. </doc>
  15393. </class>
  15394. <!-- end class org.apache.hadoop.fs.Path -->
  15395. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  15396. <interface name="PathFilter" abstract="true"
  15397. static="false" final="false" visibility="public"
  15398. deprecated="not deprecated">
  15399. <method name="accept" return="boolean"
  15400. abstract="true" native="false" synchronized="false"
  15401. static="false" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15404. <doc>
  15405. <![CDATA[Tests whether or not the specified abstract pathname should be
  15406. included in a pathname list.
  15407. @param path The abstract pathname to be tested
  15408. @return <code>true</code> if and only if <code>pathname</code>
  15409. should be included]]>
  15410. </doc>
  15411. </method>
  15412. </interface>
  15413. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  15414. <!-- start interface org.apache.hadoop.fs.PathHandle -->
  15415. <interface name="PathHandle" abstract="true"
  15416. static="false" final="false" visibility="public"
  15417. deprecated="not deprecated">
  15418. <implements name="java.io.Serializable"/>
  15419. <method name="toByteArray" return="byte[]"
  15420. abstract="false" native="false" synchronized="false"
  15421. static="false" final="false" visibility="public"
  15422. deprecated="not deprecated">
  15423. <doc>
  15424. <![CDATA[@return Serialized form in bytes.]]>
  15425. </doc>
  15426. </method>
  15427. <method name="bytes" return="java.nio.ByteBuffer"
  15428. abstract="true" native="false" synchronized="false"
  15429. static="false" final="false" visibility="public"
  15430. deprecated="not deprecated">
  15431. <doc>
  15432. <![CDATA[Get the bytes of this path handle.
  15433. @return the bytes to get to the process completing the upload.]]>
  15434. </doc>
  15435. </method>
  15436. <method name="equals" return="boolean"
  15437. abstract="true" native="false" synchronized="false"
  15438. static="false" final="false" visibility="public"
  15439. deprecated="not deprecated">
  15440. <param name="other" type="java.lang.Object"/>
  15441. </method>
  15442. <doc>
  15443. <![CDATA[Opaque, serializable reference to an entity in the FileSystem. May contain
  15444. metadata sufficient to resolve or verify subsequent accesses independent of
  15445. other modifications to the FileSystem.]]>
  15446. </doc>
  15447. </interface>
  15448. <!-- end interface org.apache.hadoop.fs.PathHandle -->
  15449. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  15450. <interface name="PositionedReadable" abstract="true"
  15451. static="false" final="false" visibility="public"
  15452. deprecated="not deprecated">
  15453. <method name="read" return="int"
  15454. abstract="true" native="false" synchronized="false"
  15455. static="false" final="false" visibility="public"
  15456. deprecated="not deprecated">
  15457. <param name="position" type="long"/>
  15458. <param name="buffer" type="byte[]"/>
  15459. <param name="offset" type="int"/>
  15460. <param name="length" type="int"/>
  15461. <exception name="IOException" type="java.io.IOException"/>
  15462. <doc>
  15463. <![CDATA[Read up to the specified number of bytes, from a given
  15464. position within a file, and return the number of bytes read. This does not
  15465. change the current offset of a file, and is thread-safe.
  15466. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  15467. @param position position within file
  15468. @param buffer destination buffer
  15469. @param offset offset in the buffer
  15470. @param length number of bytes to read
  15471. @return actual number of bytes read; -1 means "none"
  15472. @throws IOException IO problems.]]>
  15473. </doc>
  15474. </method>
  15475. <method name="readFully"
  15476. abstract="true" native="false" synchronized="false"
  15477. static="false" final="false" visibility="public"
  15478. deprecated="not deprecated">
  15479. <param name="position" type="long"/>
  15480. <param name="buffer" type="byte[]"/>
  15481. <param name="offset" type="int"/>
  15482. <param name="length" type="int"/>
  15483. <exception name="IOException" type="java.io.IOException"/>
  15484. <doc>
  15485. <![CDATA[Read the specified number of bytes, from a given
  15486. position within a file. This does not
  15487. change the current offset of a file, and is thread-safe.
  15488. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  15489. @param position position within file
  15490. @param buffer destination buffer
  15491. @param offset offset in the buffer
  15492. @param length number of bytes to read
  15493. @throws IOException IO problems.
  15494. @throws EOFException the end of the data was reached before
  15495. the read operation completed]]>
  15496. </doc>
  15497. </method>
  15498. <method name="readFully"
  15499. abstract="true" native="false" synchronized="false"
  15500. static="false" final="false" visibility="public"
  15501. deprecated="not deprecated">
  15502. <param name="position" type="long"/>
  15503. <param name="buffer" type="byte[]"/>
  15504. <exception name="IOException" type="java.io.IOException"/>
  15505. <doc>
  15506. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  15507. position within a file. This does not
  15508. change the current offset of a file, and is thread-safe.
  15509. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  15510. @param position position within file
  15511. @param buffer destination buffer
  15512. @throws IOException IO problems.
  15513. @throws EOFException the end of the data was reached before
  15514. the read operation completed]]>
  15515. </doc>
  15516. </method>
  15517. <doc>
  15518. <![CDATA[Stream that permits positional reading.
  15519. Implementations are required to implement thread-safe operations; this may
  15520. be supported by concurrent access to the data, or by using a synchronization
  15521. mechanism to serialize access.
  15522. Not all implementations meet this requirement. Those that do not cannot
  15523. be used as a backing store for some applications, such as Apache HBase.
  15524. Independent of whether or not they are thread safe, some implementations
  15525. may make the intermediate state of the system, specifically the position
  15526. obtained in {@code Seekable.getPos()} visible.]]>
  15527. </doc>
  15528. </interface>
  15529. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  15530. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  15531. <class name="QuotaUsage" extends="java.lang.Object"
  15532. abstract="false"
  15533. static="false" final="false" visibility="public"
  15534. deprecated="not deprecated">
  15535. <constructor name="QuotaUsage"
  15536. static="false" final="false" visibility="protected"
  15537. deprecated="not deprecated">
  15538. </constructor>
  15539. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  15540. static="false" final="false" visibility="protected"
  15541. deprecated="not deprecated">
  15542. <doc>
  15543. <![CDATA[Build the instance based on the builder.]]>
  15544. </doc>
  15545. </constructor>
  15546. <method name="setQuota"
  15547. abstract="false" native="false" synchronized="false"
  15548. static="false" final="false" visibility="protected"
  15549. deprecated="not deprecated">
  15550. <param name="quota" type="long"/>
  15551. </method>
  15552. <method name="setSpaceConsumed"
  15553. abstract="false" native="false" synchronized="false"
  15554. static="false" final="false" visibility="protected"
  15555. deprecated="not deprecated">
  15556. <param name="spaceConsumed" type="long"/>
  15557. </method>
  15558. <method name="setSpaceQuota"
  15559. abstract="false" native="false" synchronized="false"
  15560. static="false" final="false" visibility="protected"
  15561. deprecated="not deprecated">
  15562. <param name="spaceQuota" type="long"/>
  15563. </method>
  15564. <method name="getFileAndDirectoryCount" return="long"
  15565. abstract="false" native="false" synchronized="false"
  15566. static="false" final="false" visibility="public"
  15567. deprecated="not deprecated">
  15568. <doc>
  15569. <![CDATA[Return the directory count.]]>
  15570. </doc>
  15571. </method>
  15572. <method name="getQuota" return="long"
  15573. abstract="false" native="false" synchronized="false"
  15574. static="false" final="false" visibility="public"
  15575. deprecated="not deprecated">
  15576. <doc>
  15577. <![CDATA[Return the directory quota.]]>
  15578. </doc>
  15579. </method>
  15580. <method name="getSpaceConsumed" return="long"
  15581. abstract="false" native="false" synchronized="false"
  15582. static="false" final="false" visibility="public"
  15583. deprecated="not deprecated">
  15584. <doc>
  15585. <![CDATA[Return (disk) space consumed.]]>
  15586. </doc>
  15587. </method>
  15588. <method name="getSpaceQuota" return="long"
  15589. abstract="false" native="false" synchronized="false"
  15590. static="false" final="false" visibility="public"
  15591. deprecated="not deprecated">
  15592. <doc>
  15593. <![CDATA[Return (disk) space quota.]]>
  15594. </doc>
  15595. </method>
  15596. <method name="getTypeQuota" return="long"
  15597. abstract="false" native="false" synchronized="false"
  15598. static="false" final="false" visibility="public"
  15599. deprecated="not deprecated">
  15600. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  15601. <doc>
  15602. <![CDATA[Return storage type quota.]]>
  15603. </doc>
  15604. </method>
  15605. <method name="getTypeConsumed" return="long"
  15606. abstract="false" native="false" synchronized="false"
  15607. static="false" final="false" visibility="public"
  15608. deprecated="not deprecated">
  15609. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  15610. <doc>
  15611. <![CDATA[Return storage type consumed.]]>
  15612. </doc>
  15613. </method>
  15614. <method name="isTypeQuotaSet" return="boolean"
  15615. abstract="false" native="false" synchronized="false"
  15616. static="false" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. <doc>
  15619. <![CDATA[Return true if any storage type quota has been set.]]>
  15620. </doc>
  15621. </method>
  15622. <method name="isTypeConsumedAvailable" return="boolean"
  15623. abstract="false" native="false" synchronized="false"
  15624. static="false" final="false" visibility="public"
  15625. deprecated="not deprecated">
  15626. <doc>
  15627. <![CDATA[Return true if any storage type consumption information is available.]]>
  15628. </doc>
  15629. </method>
  15630. <method name="hashCode" return="int"
  15631. abstract="false" native="false" synchronized="false"
  15632. static="false" final="false" visibility="public"
  15633. deprecated="not deprecated">
  15634. </method>
  15635. <method name="equals" return="boolean"
  15636. abstract="false" native="false" synchronized="false"
  15637. static="false" final="false" visibility="public"
  15638. deprecated="not deprecated">
  15639. <param name="obj" type="java.lang.Object"/>
  15640. </method>
  15641. <method name="getHeader" return="java.lang.String"
  15642. abstract="false" native="false" synchronized="false"
  15643. static="true" final="false" visibility="public"
  15644. deprecated="not deprecated">
  15645. <doc>
  15646. <![CDATA[Return the header of the output.
  15647. @return the header of the output]]>
  15648. </doc>
  15649. </method>
  15650. <method name="toString" return="java.lang.String"
  15651. abstract="false" native="false" synchronized="false"
  15652. static="false" final="false" visibility="public"
  15653. deprecated="not deprecated">
  15654. </method>
  15655. <method name="toString" return="java.lang.String"
  15656. abstract="false" native="false" synchronized="false"
  15657. static="false" final="false" visibility="public"
  15658. deprecated="not deprecated">
  15659. <param name="hOption" type="boolean"/>
  15660. </method>
  15661. <method name="toString" return="java.lang.String"
  15662. abstract="false" native="false" synchronized="false"
  15663. static="false" final="false" visibility="public"
  15664. deprecated="not deprecated">
  15665. <param name="hOption" type="boolean"/>
  15666. <param name="tOption" type="boolean"/>
  15667. <param name="types" type="java.util.List"/>
  15668. <doc>
  15669. <![CDATA[Return the string representation of the object in the output format.
  15670. if hOption is false file sizes are returned in bytes
  15671. if hOption is true file sizes are returned in human readable
  15672. @param hOption a flag indicating if human readable output if to be used
  15673. @return the string representation of the object]]>
  15674. </doc>
  15675. </method>
  15676. <method name="getQuotaUsage" return="java.lang.String"
  15677. abstract="false" native="false" synchronized="false"
  15678. static="false" final="false" visibility="protected"
  15679. deprecated="not deprecated">
  15680. <param name="hOption" type="boolean"/>
  15681. </method>
  15682. <method name="getTypesQuotaUsage" return="java.lang.String"
  15683. abstract="false" native="false" synchronized="false"
  15684. static="false" final="false" visibility="protected"
  15685. deprecated="not deprecated">
  15686. <param name="hOption" type="boolean"/>
  15687. <param name="types" type="java.util.List"/>
  15688. </method>
  15689. <method name="getStorageTypeHeader" return="java.lang.String"
  15690. abstract="false" native="false" synchronized="false"
  15691. static="true" final="false" visibility="public"
  15692. deprecated="not deprecated">
  15693. <param name="storageTypes" type="java.util.List"/>
  15694. <doc>
  15695. <![CDATA[return the header of with the StorageTypes.
  15696. @param storageTypes
  15697. @return storage header string]]>
  15698. </doc>
  15699. </method>
  15700. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  15701. transient="false" volatile="false"
  15702. static="true" final="true" visibility="protected"
  15703. deprecated="not deprecated">
  15704. <doc>
  15705. <![CDATA[Output format:
  15706. |----12----| |----15----| |----15----| |----15----| |-------18-------|
  15707. QUOTA REMAINING_QUOTA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  15708. </doc>
  15709. </field>
  15710. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  15711. transient="false" volatile="false"
  15712. static="true" final="true" visibility="protected"
  15713. deprecated="not deprecated">
  15714. </field>
  15715. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  15716. transient="false" volatile="false"
  15717. static="true" final="true" visibility="protected"
  15718. deprecated="not deprecated">
  15719. </field>
  15720. <field name="QUOTA_HEADER" type="java.lang.String"
  15721. transient="false" volatile="false"
  15722. static="true" final="true" visibility="protected"
  15723. deprecated="not deprecated">
  15724. </field>
  15725. <doc>
  15726. <![CDATA[Store the quota usage of a directory.]]>
  15727. </doc>
  15728. </class>
  15729. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  15730. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  15731. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15732. abstract="false"
  15733. static="false" final="false" visibility="public"
  15734. deprecated="not deprecated">
  15735. <constructor name="RawLocalFileSystem"
  15736. static="false" final="false" visibility="public"
  15737. deprecated="not deprecated">
  15738. </constructor>
  15739. <method name="useStatIfAvailable"
  15740. abstract="false" native="false" synchronized="false"
  15741. static="true" final="false" visibility="public"
  15742. deprecated="not deprecated">
  15743. </method>
  15744. <method name="pathToFile" return="java.io.File"
  15745. abstract="false" native="false" synchronized="false"
  15746. static="false" final="false" visibility="public"
  15747. deprecated="not deprecated">
  15748. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15749. <doc>
  15750. <![CDATA[Convert a path to a File.]]>
  15751. </doc>
  15752. </method>
  15753. <method name="getUri" return="java.net.URI"
  15754. abstract="false" native="false" synchronized="false"
  15755. static="false" final="false" visibility="public"
  15756. deprecated="not deprecated">
  15757. </method>
  15758. <method name="initialize"
  15759. abstract="false" native="false" synchronized="false"
  15760. static="false" final="false" visibility="public"
  15761. deprecated="not deprecated">
  15762. <param name="uri" type="java.net.URI"/>
  15763. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15764. <exception name="IOException" type="java.io.IOException"/>
  15765. </method>
  15766. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15767. abstract="false" native="false" synchronized="false"
  15768. static="false" final="false" visibility="public"
  15769. deprecated="not deprecated">
  15770. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15771. <param name="bufferSize" type="int"/>
  15772. <exception name="IOException" type="java.io.IOException"/>
  15773. </method>
  15774. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15775. abstract="false" native="false" synchronized="false"
  15776. static="false" final="false" visibility="public"
  15777. deprecated="not deprecated">
  15778. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  15779. <param name="bufferSize" type="int"/>
  15780. <exception name="IOException" type="java.io.IOException"/>
  15781. </method>
  15782. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15783. abstract="false" native="false" synchronized="false"
  15784. static="false" final="false" visibility="public"
  15785. deprecated="not deprecated">
  15786. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15787. <param name="bufferSize" type="int"/>
  15788. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15789. <exception name="IOException" type="java.io.IOException"/>
  15790. </method>
  15791. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15792. abstract="false" native="false" synchronized="false"
  15793. static="false" final="false" visibility="public"
  15794. deprecated="not deprecated">
  15795. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15796. <param name="overwrite" type="boolean"/>
  15797. <param name="bufferSize" type="int"/>
  15798. <param name="replication" type="short"/>
  15799. <param name="blockSize" type="long"/>
  15800. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15801. <exception name="IOException" type="java.io.IOException"/>
  15802. </method>
  15803. <method name="createOutputStream" return="java.io.OutputStream"
  15804. abstract="false" native="false" synchronized="false"
  15805. static="false" final="false" visibility="protected"
  15806. deprecated="not deprecated">
  15807. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15808. <param name="append" type="boolean"/>
  15809. <exception name="IOException" type="java.io.IOException"/>
  15810. </method>
  15811. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  15812. abstract="false" native="false" synchronized="false"
  15813. static="false" final="false" visibility="protected"
  15814. deprecated="not deprecated">
  15815. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15816. <param name="append" type="boolean"/>
  15817. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15818. <exception name="IOException" type="java.io.IOException"/>
  15819. </method>
  15820. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  15821. abstract="false" native="false" synchronized="false"
  15822. static="false" final="false" visibility="public"
  15823. deprecated="not deprecated">
  15824. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15825. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15826. <param name="flags" type="java.util.EnumSet"/>
  15827. <param name="bufferSize" type="int"/>
  15828. <param name="replication" type="short"/>
  15829. <param name="blockSize" type="long"/>
  15830. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15831. <exception name="IOException" type="java.io.IOException"/>
  15832. </method>
  15833. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15834. abstract="false" native="false" synchronized="false"
  15835. static="false" final="false" visibility="public"
  15836. deprecated="not deprecated">
  15837. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15838. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15839. <param name="overwrite" type="boolean"/>
  15840. <param name="bufferSize" type="int"/>
  15841. <param name="replication" type="short"/>
  15842. <param name="blockSize" type="long"/>
  15843. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15844. <exception name="IOException" type="java.io.IOException"/>
  15845. </method>
  15846. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  15847. abstract="false" native="false" synchronized="false"
  15848. static="false" final="false" visibility="public"
  15849. deprecated="not deprecated">
  15850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15851. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15852. <param name="overwrite" type="boolean"/>
  15853. <param name="bufferSize" type="int"/>
  15854. <param name="replication" type="short"/>
  15855. <param name="blockSize" type="long"/>
  15856. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15857. <exception name="IOException" type="java.io.IOException"/>
  15858. </method>
  15859. <method name="concat"
  15860. abstract="false" native="false" synchronized="false"
  15861. static="false" final="false" visibility="public"
  15862. deprecated="not deprecated">
  15863. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  15864. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  15865. <exception name="IOException" type="java.io.IOException"/>
  15866. </method>
  15867. <method name="rename" return="boolean"
  15868. abstract="false" native="false" synchronized="false"
  15869. static="false" final="false" visibility="public"
  15870. deprecated="not deprecated">
  15871. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15872. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15873. <exception name="IOException" type="java.io.IOException"/>
  15874. </method>
  15875. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  15876. abstract="false" native="false" synchronized="false"
  15877. static="false" final="true" visibility="public"
  15878. deprecated="not deprecated">
  15879. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15880. <param name="srcFile" type="java.io.File"/>
  15881. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15882. <param name="dstFile" type="java.io.File"/>
  15883. <exception name="IOException" type="java.io.IOException"/>
  15884. </method>
  15885. <method name="truncate" return="boolean"
  15886. abstract="false" native="false" synchronized="false"
  15887. static="false" final="false" visibility="public"
  15888. deprecated="not deprecated">
  15889. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15890. <param name="newLength" type="long"/>
  15891. <exception name="IOException" type="java.io.IOException"/>
  15892. </method>
  15893. <method name="delete" return="boolean"
  15894. abstract="false" native="false" synchronized="false"
  15895. static="false" final="false" visibility="public"
  15896. deprecated="not deprecated">
  15897. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15898. <param name="recursive" type="boolean"/>
  15899. <exception name="IOException" type="java.io.IOException"/>
  15900. <doc>
  15901. <![CDATA[Delete the given path to a file or directory.
  15902. @param p the path to delete
  15903. @param recursive to delete sub-directories
  15904. @return true if the file or directory and all its contents were deleted
  15905. @throws IOException if p is non-empty and recursive is false]]>
  15906. </doc>
  15907. </method>
  15908. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15909. abstract="false" native="false" synchronized="false"
  15910. static="false" final="false" visibility="public"
  15911. deprecated="not deprecated">
  15912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15913. <exception name="IOException" type="java.io.IOException"/>
  15914. <doc>
  15915. <![CDATA[{@inheritDoc}
  15916. (<b>Note</b>: Returned list is not sorted in any given order,
  15917. due to reliance on Java's {@link File#list()} API.)]]>
  15918. </doc>
  15919. </method>
  15920. <method name="exists" return="boolean"
  15921. abstract="false" native="false" synchronized="false"
  15922. static="false" final="false" visibility="public"
  15923. deprecated="not deprecated">
  15924. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15925. <exception name="IOException" type="java.io.IOException"/>
  15926. </method>
  15927. <method name="mkOneDir" return="boolean"
  15928. abstract="false" native="false" synchronized="false"
  15929. static="false" final="false" visibility="protected"
  15930. deprecated="not deprecated">
  15931. <param name="p2f" type="java.io.File"/>
  15932. <exception name="IOException" type="java.io.IOException"/>
  15933. </method>
  15934. <method name="mkOneDirWithMode" return="boolean"
  15935. abstract="false" native="false" synchronized="false"
  15936. static="false" final="false" visibility="protected"
  15937. deprecated="not deprecated">
  15938. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15939. <param name="p2f" type="java.io.File"/>
  15940. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15941. <exception name="IOException" type="java.io.IOException"/>
  15942. </method>
  15943. <method name="mkdirs" return="boolean"
  15944. abstract="false" native="false" synchronized="false"
  15945. static="false" final="false" visibility="public"
  15946. deprecated="not deprecated">
  15947. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15948. <exception name="IOException" type="java.io.IOException"/>
  15949. <doc>
  15950. <![CDATA[Creates the specified directory hierarchy. Does not
  15951. treat existence as an error.]]>
  15952. </doc>
  15953. </method>
  15954. <method name="mkdirs" return="boolean"
  15955. abstract="false" native="false" synchronized="false"
  15956. static="false" final="false" visibility="public"
  15957. deprecated="not deprecated">
  15958. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15959. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15960. <exception name="IOException" type="java.io.IOException"/>
  15961. </method>
  15962. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15963. abstract="false" native="false" synchronized="false"
  15964. static="false" final="false" visibility="public"
  15965. deprecated="not deprecated">
  15966. </method>
  15967. <method name="setWorkingDirectory"
  15968. abstract="false" native="false" synchronized="false"
  15969. static="false" final="false" visibility="public"
  15970. deprecated="not deprecated">
  15971. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15972. <doc>
  15973. <![CDATA[Set the working directory to the given directory.]]>
  15974. </doc>
  15975. </method>
  15976. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15977. abstract="false" native="false" synchronized="false"
  15978. static="false" final="false" visibility="public"
  15979. deprecated="not deprecated">
  15980. </method>
  15981. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15982. abstract="false" native="false" synchronized="false"
  15983. static="false" final="false" visibility="protected"
  15984. deprecated="not deprecated">
  15985. </method>
  15986. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  15987. abstract="false" native="false" synchronized="false"
  15988. static="false" final="false" visibility="public"
  15989. deprecated="not deprecated">
  15990. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15991. <exception name="IOException" type="java.io.IOException"/>
  15992. </method>
  15993. <method name="moveFromLocalFile"
  15994. abstract="false" native="false" synchronized="false"
  15995. static="false" final="false" visibility="public"
  15996. deprecated="not deprecated">
  15997. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15998. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15999. <exception name="IOException" type="java.io.IOException"/>
  16000. </method>
  16001. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  16002. abstract="false" native="false" synchronized="false"
  16003. static="false" final="false" visibility="public"
  16004. deprecated="not deprecated">
  16005. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  16006. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  16007. <exception name="IOException" type="java.io.IOException"/>
  16008. </method>
  16009. <method name="completeLocalOutput"
  16010. abstract="false" native="false" synchronized="false"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  16014. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  16015. <exception name="IOException" type="java.io.IOException"/>
  16016. </method>
  16017. <method name="close"
  16018. abstract="false" native="false" synchronized="false"
  16019. static="false" final="false" visibility="public"
  16020. deprecated="not deprecated">
  16021. <exception name="IOException" type="java.io.IOException"/>
  16022. </method>
  16023. <method name="toString" return="java.lang.String"
  16024. abstract="false" native="false" synchronized="false"
  16025. static="false" final="false" visibility="public"
  16026. deprecated="not deprecated">
  16027. </method>
  16028. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16029. abstract="false" native="false" synchronized="false"
  16030. static="false" final="false" visibility="public"
  16031. deprecated="not deprecated">
  16032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16033. <exception name="IOException" type="java.io.IOException"/>
  16034. </method>
  16035. <method name="setOwner"
  16036. abstract="false" native="false" synchronized="false"
  16037. static="false" final="false" visibility="public"
  16038. deprecated="not deprecated">
  16039. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16040. <param name="username" type="java.lang.String"/>
  16041. <param name="groupname" type="java.lang.String"/>
  16042. <exception name="IOException" type="java.io.IOException"/>
  16043. <doc>
  16044. <![CDATA[Use the command chown to set owner.]]>
  16045. </doc>
  16046. </method>
  16047. <method name="setPermission"
  16048. abstract="false" native="false" synchronized="false"
  16049. static="false" final="false" visibility="public"
  16050. deprecated="not deprecated">
  16051. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16052. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16053. <exception name="IOException" type="java.io.IOException"/>
  16054. <doc>
  16055. <![CDATA[Use the command chmod to set permission.]]>
  16056. </doc>
  16057. </method>
  16058. <method name="setTimes"
  16059. abstract="false" native="false" synchronized="false"
  16060. static="false" final="false" visibility="public"
  16061. deprecated="not deprecated">
  16062. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16063. <param name="mtime" type="long"/>
  16064. <param name="atime" type="long"/>
  16065. <exception name="IOException" type="java.io.IOException"/>
  16066. <doc>
  16067. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  16068. the given valid times.
  16069. @param mtime the modification time to set (only if no less than zero).
  16070. @param atime the access time to set (only if no less than zero).
  16071. @throws IOException if setting the times fails.]]>
  16072. </doc>
  16073. </method>
  16074. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  16075. abstract="false" native="false" synchronized="false"
  16076. static="false" final="false" visibility="protected"
  16077. deprecated="not deprecated">
  16078. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  16079. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  16080. <doc>
  16081. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  16082. @param stat Referent in the target FileSystem
  16083. @param opts Constraints that determine the validity of the
  16084. {@link PathHandle} reference.]]>
  16085. </doc>
  16086. </method>
  16087. <method name="supportsSymlinks" return="boolean"
  16088. abstract="false" native="false" synchronized="false"
  16089. static="false" final="false" visibility="public"
  16090. deprecated="not deprecated">
  16091. </method>
  16092. <method name="createSymlink"
  16093. abstract="false" native="false" synchronized="false"
  16094. static="false" final="false" visibility="public"
  16095. deprecated="not deprecated">
  16096. <param name="target" type="org.apache.hadoop.fs.Path"/>
  16097. <param name="link" type="org.apache.hadoop.fs.Path"/>
  16098. <param name="createParent" type="boolean"/>
  16099. <exception name="IOException" type="java.io.IOException"/>
  16100. </method>
  16101. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  16102. abstract="false" native="false" synchronized="false"
  16103. static="false" final="false" visibility="public"
  16104. deprecated="not deprecated">
  16105. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16106. <exception name="IOException" type="java.io.IOException"/>
  16107. <doc>
  16108. <![CDATA[Return a FileStatus representing the given path. If the path refers
  16109. to a symlink return a FileStatus representing the link rather than
  16110. the object the link refers to.]]>
  16111. </doc>
  16112. </method>
  16113. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  16114. abstract="false" native="false" synchronized="false"
  16115. static="false" final="false" visibility="public"
  16116. deprecated="not deprecated">
  16117. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16118. <exception name="IOException" type="java.io.IOException"/>
  16119. </method>
  16120. <method name="hasPathCapability" return="boolean"
  16121. abstract="false" native="false" synchronized="false"
  16122. static="false" final="false" visibility="public"
  16123. deprecated="not deprecated">
  16124. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16125. <param name="capability" type="java.lang.String"/>
  16126. <exception name="IOException" type="java.io.IOException"/>
  16127. </method>
  16128. <doc>
  16129. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  16130. </doc>
  16131. </class>
  16132. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  16133. <!-- start class org.apache.hadoop.fs.ReadOption -->
  16134. <class name="ReadOption" extends="java.lang.Enum"
  16135. abstract="false"
  16136. static="false" final="true" visibility="public"
  16137. deprecated="not deprecated">
  16138. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  16139. abstract="false" native="false" synchronized="false"
  16140. static="true" final="false" visibility="public"
  16141. deprecated="not deprecated">
  16142. </method>
  16143. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  16144. abstract="false" native="false" synchronized="false"
  16145. static="true" final="false" visibility="public"
  16146. deprecated="not deprecated">
  16147. <param name="name" type="java.lang.String"/>
  16148. </method>
  16149. <doc>
  16150. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  16151. </doc>
  16152. </class>
  16153. <!-- end class org.apache.hadoop.fs.ReadOption -->
  16154. <!-- start interface org.apache.hadoop.fs.Seekable -->
  16155. <interface name="Seekable" abstract="true"
  16156. static="false" final="false" visibility="public"
  16157. deprecated="not deprecated">
  16158. <method name="seek"
  16159. abstract="true" native="false" synchronized="false"
  16160. static="false" final="false" visibility="public"
  16161. deprecated="not deprecated">
  16162. <param name="pos" type="long"/>
  16163. <exception name="IOException" type="java.io.IOException"/>
  16164. <doc>
  16165. <![CDATA[Seek to the given offset from the start of the file.
  16166. The next read() will be from that location. Can't
  16167. seek past the end of the file.]]>
  16168. </doc>
  16169. </method>
  16170. <method name="getPos" return="long"
  16171. abstract="true" native="false" synchronized="false"
  16172. static="false" final="false" visibility="public"
  16173. deprecated="not deprecated">
  16174. <exception name="IOException" type="java.io.IOException"/>
  16175. <doc>
  16176. <![CDATA[Return the current offset from the start of the file]]>
  16177. </doc>
  16178. </method>
  16179. <doc>
  16180. <![CDATA[Stream that permits seeking.]]>
  16181. </doc>
  16182. </interface>
  16183. <!-- end interface org.apache.hadoop.fs.Seekable -->
  16184. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  16185. <class name="StorageStatistics" extends="java.lang.Object"
  16186. abstract="true"
  16187. static="false" final="false" visibility="public"
  16188. deprecated="not deprecated">
  16189. <constructor name="StorageStatistics" type="java.lang.String"
  16190. static="false" final="false" visibility="public"
  16191. deprecated="not deprecated">
  16192. </constructor>
  16193. <method name="getName" return="java.lang.String"
  16194. abstract="false" native="false" synchronized="false"
  16195. static="false" final="false" visibility="public"
  16196. deprecated="not deprecated">
  16197. <doc>
  16198. <![CDATA[Get the name of this StorageStatistics object.]]>
  16199. </doc>
  16200. </method>
  16201. <method name="getScheme" return="java.lang.String"
  16202. abstract="false" native="false" synchronized="false"
  16203. static="false" final="false" visibility="public"
  16204. deprecated="not deprecated">
  16205. <doc>
  16206. <![CDATA[@return the associated file system scheme if this is scheme specific,
  16207. else return null.]]>
  16208. </doc>
  16209. </method>
  16210. <method name="getLongStatistics" return="java.util.Iterator"
  16211. abstract="true" native="false" synchronized="false"
  16212. static="false" final="false" visibility="public"
  16213. deprecated="not deprecated">
  16214. <doc>
  16215. <![CDATA[Get an iterator over all the currently tracked long statistics.
  16216. The values returned will depend on the type of FileSystem or FileContext
  16217. object. The values do not necessarily reflect a snapshot in time.]]>
  16218. </doc>
  16219. </method>
  16220. <method name="getLong" return="java.lang.Long"
  16221. abstract="true" native="false" synchronized="false"
  16222. static="false" final="false" visibility="public"
  16223. deprecated="not deprecated">
  16224. <param name="key" type="java.lang.String"/>
  16225. <doc>
  16226. <![CDATA[Get the value of a statistic.
  16227. @return null if the statistic is not being tracked or is not a
  16228. long statistic. The value of the statistic, otherwise.]]>
  16229. </doc>
  16230. </method>
  16231. <method name="isTracked" return="boolean"
  16232. abstract="true" native="false" synchronized="false"
  16233. static="false" final="false" visibility="public"
  16234. deprecated="not deprecated">
  16235. <param name="key" type="java.lang.String"/>
  16236. <doc>
  16237. <![CDATA[Return true if a statistic is being tracked.
  16238. @return True only if the statistic is being tracked.]]>
  16239. </doc>
  16240. </method>
  16241. <method name="reset"
  16242. abstract="true" native="false" synchronized="false"
  16243. static="false" final="false" visibility="public"
  16244. deprecated="not deprecated">
  16245. <doc>
  16246. <![CDATA[Reset all the statistic data.]]>
  16247. </doc>
  16248. </method>
  16249. <doc>
  16250. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  16251. instance.]]>
  16252. </doc>
  16253. </class>
  16254. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  16255. <!-- start class org.apache.hadoop.fs.StorageType -->
  16256. <class name="StorageType" extends="java.lang.Enum"
  16257. abstract="false"
  16258. static="false" final="true" visibility="public"
  16259. deprecated="not deprecated">
  16260. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  16261. abstract="false" native="false" synchronized="false"
  16262. static="true" final="false" visibility="public"
  16263. deprecated="not deprecated">
  16264. </method>
  16265. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  16266. abstract="false" native="false" synchronized="false"
  16267. static="true" final="false" visibility="public"
  16268. deprecated="not deprecated">
  16269. <param name="name" type="java.lang.String"/>
  16270. </method>
  16271. <method name="isTransient" return="boolean"
  16272. abstract="false" native="false" synchronized="false"
  16273. static="false" final="false" visibility="public"
  16274. deprecated="not deprecated">
  16275. </method>
  16276. <method name="supportTypeQuota" return="boolean"
  16277. abstract="false" native="false" synchronized="false"
  16278. static="false" final="false" visibility="public"
  16279. deprecated="not deprecated">
  16280. </method>
  16281. <method name="isMovable" return="boolean"
  16282. abstract="false" native="false" synchronized="false"
  16283. static="false" final="false" visibility="public"
  16284. deprecated="not deprecated">
  16285. </method>
  16286. <method name="asList" return="java.util.List"
  16287. abstract="false" native="false" synchronized="false"
  16288. static="true" final="false" visibility="public"
  16289. deprecated="not deprecated">
  16290. </method>
  16291. <method name="getMovableTypes" return="java.util.List"
  16292. abstract="false" native="false" synchronized="false"
  16293. static="true" final="false" visibility="public"
  16294. deprecated="not deprecated">
  16295. </method>
  16296. <method name="getTypesSupportingQuota" return="java.util.List"
  16297. abstract="false" native="false" synchronized="false"
  16298. static="true" final="false" visibility="public"
  16299. deprecated="not deprecated">
  16300. </method>
  16301. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  16302. abstract="false" native="false" synchronized="false"
  16303. static="true" final="false" visibility="public"
  16304. deprecated="not deprecated">
  16305. <param name="i" type="int"/>
  16306. </method>
  16307. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  16308. abstract="false" native="false" synchronized="false"
  16309. static="true" final="false" visibility="public"
  16310. deprecated="not deprecated">
  16311. <param name="s" type="java.lang.String"/>
  16312. </method>
  16313. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  16314. transient="false" volatile="false"
  16315. static="true" final="true" visibility="public"
  16316. deprecated="not deprecated">
  16317. </field>
  16318. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  16319. transient="false" volatile="false"
  16320. static="true" final="true" visibility="public"
  16321. deprecated="not deprecated">
  16322. </field>
  16323. <doc>
  16324. <![CDATA[Defines the types of supported storage media. The default storage
  16325. medium is assumed to be DISK.]]>
  16326. </doc>
  16327. </class>
  16328. <!-- end class org.apache.hadoop.fs.StorageType -->
  16329. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  16330. <interface name="StreamCapabilities" abstract="true"
  16331. static="false" final="false" visibility="public"
  16332. deprecated="not deprecated">
  16333. <method name="hasCapability" return="boolean"
  16334. abstract="true" native="false" synchronized="false"
  16335. static="false" final="false" visibility="public"
  16336. deprecated="not deprecated">
  16337. <param name="capability" type="java.lang.String"/>
  16338. <doc>
  16339. <![CDATA[Query the stream for a specific capability.
  16340. @param capability string to query the stream support for.
  16341. @return True if the stream supports capability.]]>
  16342. </doc>
  16343. </method>
  16344. <field name="HFLUSH" type="java.lang.String"
  16345. transient="false" volatile="false"
  16346. static="true" final="true" visibility="public"
  16347. deprecated="not deprecated">
  16348. <doc>
  16349. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.
  16350. Use the {@link #HSYNC} probe to check for the support of Syncable;
  16351. it's that presence of {@code hsync()} which matters.]]>
  16352. </doc>
  16353. </field>
  16354. <field name="HSYNC" type="java.lang.String"
  16355. transient="false" volatile="false"
  16356. static="true" final="true" visibility="public"
  16357. deprecated="not deprecated">
  16358. <doc>
  16359. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  16360. </doc>
  16361. </field>
  16362. <field name="READAHEAD" type="java.lang.String"
  16363. transient="false" volatile="false"
  16364. static="true" final="true" visibility="public"
  16365. deprecated="not deprecated">
  16366. <doc>
  16367. <![CDATA[Stream setReadahead capability implemented by
  16368. {@link CanSetReadahead#setReadahead(Long)}.]]>
  16369. </doc>
  16370. </field>
  16371. <field name="DROPBEHIND" type="java.lang.String"
  16372. transient="false" volatile="false"
  16373. static="true" final="true" visibility="public"
  16374. deprecated="not deprecated">
  16375. <doc>
  16376. <![CDATA[Stream setDropBehind capability implemented by
  16377. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  16378. </doc>
  16379. </field>
  16380. <field name="UNBUFFER" type="java.lang.String"
  16381. transient="false" volatile="false"
  16382. static="true" final="true" visibility="public"
  16383. deprecated="not deprecated">
  16384. <doc>
  16385. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  16386. </doc>
  16387. </field>
  16388. <field name="READBYTEBUFFER" type="java.lang.String"
  16389. transient="false" volatile="false"
  16390. static="true" final="true" visibility="public"
  16391. deprecated="not deprecated">
  16392. <doc>
  16393. <![CDATA[Stream read(ByteBuffer) capability implemented by
  16394. {@link ByteBufferReadable#read(java.nio.ByteBuffer)}.]]>
  16395. </doc>
  16396. </field>
  16397. <field name="PREADBYTEBUFFER" type="java.lang.String"
  16398. transient="false" volatile="false"
  16399. static="true" final="true" visibility="public"
  16400. deprecated="not deprecated">
  16401. <doc>
  16402. <![CDATA[Stream read(long, ByteBuffer) capability implemented by
  16403. {@link ByteBufferPositionedReadable#read(long, java.nio.ByteBuffer)}.]]>
  16404. </doc>
  16405. </field>
  16406. <field name="IOSTATISTICS" type="java.lang.String"
  16407. transient="false" volatile="false"
  16408. static="true" final="true" visibility="public"
  16409. deprecated="not deprecated">
  16410. <doc>
  16411. <![CDATA[IOStatisticsSource API.]]>
  16412. </doc>
  16413. </field>
  16414. <field name="ABORTABLE_STREAM" type="java.lang.String"
  16415. transient="false" volatile="false"
  16416. static="true" final="true" visibility="public"
  16417. deprecated="not deprecated">
  16418. <doc>
  16419. <![CDATA[Stream abort() capability implemented by {@link Abortable#abort()}.
  16420. This matches the Path Capability
  16421. {@link CommonPathCapabilities#ABORTABLE_STREAM}.]]>
  16422. </doc>
  16423. </field>
  16424. <doc>
  16425. <![CDATA[Interface to query streams for supported capabilities.
  16426. Capability strings must be in lower case.
  16427. Constant strings are chosen over enums in order to allow other file systems
  16428. to define their own capabilities.]]>
  16429. </doc>
  16430. </interface>
  16431. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  16432. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  16433. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  16434. abstract="false"
  16435. static="false" final="false" visibility="public"
  16436. deprecated="not deprecated">
  16437. <constructor name="StreamCapabilitiesPolicy"
  16438. static="false" final="false" visibility="public"
  16439. deprecated="not deprecated">
  16440. </constructor>
  16441. <method name="unbuffer"
  16442. abstract="false" native="false" synchronized="false"
  16443. static="true" final="false" visibility="public"
  16444. deprecated="not deprecated">
  16445. <param name="in" type="java.io.InputStream"/>
  16446. <doc>
  16447. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  16448. @param in the input stream]]>
  16449. </doc>
  16450. </method>
  16451. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  16452. transient="false" volatile="false"
  16453. static="true" final="true" visibility="public"
  16454. deprecated="not deprecated">
  16455. </field>
  16456. <doc>
  16457. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  16458. </doc>
  16459. </class>
  16460. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  16461. <!-- start interface org.apache.hadoop.fs.Syncable -->
  16462. <interface name="Syncable" abstract="true"
  16463. static="false" final="false" visibility="public"
  16464. deprecated="not deprecated">
  16465. <method name="hflush"
  16466. abstract="true" native="false" synchronized="false"
  16467. static="false" final="false" visibility="public"
  16468. deprecated="not deprecated">
  16469. <exception name="IOException" type="java.io.IOException"/>
  16470. <doc>
  16471. <![CDATA[Flush out the data in client's user buffer. After the return of
  16472. this call, new readers will see the data.
  16473. @throws IOException if any error occurs]]>
  16474. </doc>
  16475. </method>
  16476. <method name="hsync"
  16477. abstract="true" native="false" synchronized="false"
  16478. static="false" final="false" visibility="public"
  16479. deprecated="not deprecated">
  16480. <exception name="IOException" type="java.io.IOException"/>
  16481. <doc>
  16482. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  16483. all the way to the disk device (but the disk may have it in its cache).
  16484. @throws IOException if error occurs]]>
  16485. </doc>
  16486. </method>
  16487. <doc>
  16488. <![CDATA[This is the interface for flush/sync operations.
  16489. Consult the Hadoop filesystem specification for the definition of the
  16490. semantics of these operations.]]>
  16491. </doc>
  16492. </interface>
  16493. <!-- end interface org.apache.hadoop.fs.Syncable -->
  16494. <!-- start class org.apache.hadoop.fs.Trash -->
  16495. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  16496. abstract="false"
  16497. static="false" final="false" visibility="public"
  16498. deprecated="not deprecated">
  16499. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  16500. static="false" final="false" visibility="public"
  16501. deprecated="not deprecated">
  16502. <exception name="IOException" type="java.io.IOException"/>
  16503. <doc>
  16504. <![CDATA[Construct a trash can accessor.
  16505. @param conf a Configuration]]>
  16506. </doc>
  16507. </constructor>
  16508. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  16509. static="false" final="false" visibility="public"
  16510. deprecated="not deprecated">
  16511. <exception name="IOException" type="java.io.IOException"/>
  16512. <doc>
  16513. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  16514. @param fs the FileSystem
  16515. @param conf a Configuration]]>
  16516. </doc>
  16517. </constructor>
  16518. <method name="moveToAppropriateTrash" return="boolean"
  16519. abstract="false" native="false" synchronized="false"
  16520. static="true" final="false" visibility="public"
  16521. deprecated="not deprecated">
  16522. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16523. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16524. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16525. <exception name="IOException" type="java.io.IOException"/>
  16526. <doc>
  16527. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  16528. trashbin in the actual volume of the path p being deleted.
  16529. Hence we get the file system of the fully-qualified resolved-path and
  16530. then move the path p to the trashbin in that volume,
  16531. @param fs - the filesystem of path p
  16532. @param p - the path being deleted - to be moved to trasg
  16533. @param conf - configuration
  16534. @return false if the item is already in the trash or trash is disabled
  16535. @throws IOException on error]]>
  16536. </doc>
  16537. </method>
  16538. <method name="isEnabled" return="boolean"
  16539. abstract="false" native="false" synchronized="false"
  16540. static="false" final="false" visibility="public"
  16541. deprecated="not deprecated">
  16542. <doc>
  16543. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  16544. </doc>
  16545. </method>
  16546. <method name="moveToTrash" return="boolean"
  16547. abstract="false" native="false" synchronized="false"
  16548. static="false" final="false" visibility="public"
  16549. deprecated="not deprecated">
  16550. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16551. <exception name="IOException" type="java.io.IOException"/>
  16552. <doc>
  16553. <![CDATA[Move a file or directory to the current trash directory.
  16554. @return false if the item is already in the trash or trash is disabled]]>
  16555. </doc>
  16556. </method>
  16557. <method name="checkpoint"
  16558. abstract="false" native="false" synchronized="false"
  16559. static="false" final="false" visibility="public"
  16560. deprecated="not deprecated">
  16561. <exception name="IOException" type="java.io.IOException"/>
  16562. <doc>
  16563. <![CDATA[Create a trash checkpoint.]]>
  16564. </doc>
  16565. </method>
  16566. <method name="expunge"
  16567. abstract="false" native="false" synchronized="false"
  16568. static="false" final="false" visibility="public"
  16569. deprecated="not deprecated">
  16570. <exception name="IOException" type="java.io.IOException"/>
  16571. <doc>
  16572. <![CDATA[Delete old checkpoint(s).]]>
  16573. </doc>
  16574. </method>
  16575. <method name="expungeImmediately"
  16576. abstract="false" native="false" synchronized="false"
  16577. static="false" final="false" visibility="public"
  16578. deprecated="not deprecated">
  16579. <exception name="IOException" type="java.io.IOException"/>
  16580. <doc>
  16581. <![CDATA[Delete all trash immediately.]]>
  16582. </doc>
  16583. </method>
  16584. <method name="getEmptier" return="java.lang.Runnable"
  16585. abstract="false" native="false" synchronized="false"
  16586. static="false" final="false" visibility="public"
  16587. deprecated="not deprecated">
  16588. <exception name="IOException" type="java.io.IOException"/>
  16589. <doc>
  16590. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  16591. users, intended to be run by the superuser.]]>
  16592. </doc>
  16593. </method>
  16594. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="false" final="false" visibility="public"
  16597. deprecated="not deprecated">
  16598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16599. <exception name="IOException" type="java.io.IOException"/>
  16600. </method>
  16601. <doc>
  16602. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  16603. See the implementation of the configured TrashPolicy for more
  16604. details.]]>
  16605. </doc>
  16606. </class>
  16607. <!-- end class org.apache.hadoop.fs.Trash -->
  16608. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  16609. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  16610. abstract="true"
  16611. static="false" final="false" visibility="public"
  16612. deprecated="not deprecated">
  16613. <constructor name="TrashPolicy"
  16614. static="false" final="false" visibility="public"
  16615. deprecated="not deprecated">
  16616. </constructor>
  16617. <method name="initialize"
  16618. abstract="true" native="false" synchronized="false"
  16619. static="false" final="false" visibility="public"
  16620. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  16621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16622. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16623. <param name="home" type="org.apache.hadoop.fs.Path"/>
  16624. <doc>
  16625. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  16626. implementations.
  16627. @param conf the configuration to be used
  16628. @param fs the filesystem to be used
  16629. @param home the home directory
  16630. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  16631. </doc>
  16632. </method>
  16633. <method name="initialize"
  16634. abstract="false" native="false" synchronized="false"
  16635. static="false" final="false" visibility="public"
  16636. deprecated="not deprecated">
  16637. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16638. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16639. <doc>
  16640. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  16641. implementations. Different from initialize(conf, fs, home), this one does
  16642. not assume trash always under /user/$USER due to HDFS encryption zone.
  16643. @param conf the configuration to be used
  16644. @param fs the filesystem to be used]]>
  16645. </doc>
  16646. </method>
  16647. <method name="isEnabled" return="boolean"
  16648. abstract="true" native="false" synchronized="false"
  16649. static="false" final="false" visibility="public"
  16650. deprecated="not deprecated">
  16651. <doc>
  16652. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  16653. </doc>
  16654. </method>
  16655. <method name="moveToTrash" return="boolean"
  16656. abstract="true" native="false" synchronized="false"
  16657. static="false" final="false" visibility="public"
  16658. deprecated="not deprecated">
  16659. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16660. <exception name="IOException" type="java.io.IOException"/>
  16661. <doc>
  16662. <![CDATA[Move a file or directory to the current trash directory.
  16663. @return false if the item is already in the trash or trash is disabled]]>
  16664. </doc>
  16665. </method>
  16666. <method name="createCheckpoint"
  16667. abstract="true" native="false" synchronized="false"
  16668. static="false" final="false" visibility="public"
  16669. deprecated="not deprecated">
  16670. <exception name="IOException" type="java.io.IOException"/>
  16671. <doc>
  16672. <![CDATA[Create a trash checkpoint.]]>
  16673. </doc>
  16674. </method>
  16675. <method name="deleteCheckpoint"
  16676. abstract="true" native="false" synchronized="false"
  16677. static="false" final="false" visibility="public"
  16678. deprecated="not deprecated">
  16679. <exception name="IOException" type="java.io.IOException"/>
  16680. <doc>
  16681. <![CDATA[Delete old trash checkpoint(s).]]>
  16682. </doc>
  16683. </method>
  16684. <method name="deleteCheckpointsImmediately"
  16685. abstract="true" native="false" synchronized="false"
  16686. static="false" final="false" visibility="public"
  16687. deprecated="not deprecated">
  16688. <exception name="IOException" type="java.io.IOException"/>
  16689. <doc>
  16690. <![CDATA[Delete all checkpoints immediately, ie empty trash.]]>
  16691. </doc>
  16692. </method>
  16693. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  16694. abstract="true" native="false" synchronized="false"
  16695. static="false" final="false" visibility="public"
  16696. deprecated="not deprecated">
  16697. <doc>
  16698. <![CDATA[Get the current working directory of the Trash Policy
  16699. This API does not work with files deleted from encryption zone when HDFS
  16700. data encryption at rest feature is enabled as rename file between
  16701. encryption zones or encryption zone and non-encryption zone is not allowed.
  16702. The caller is recommend to use the new API
  16703. TrashPolicy#getCurrentTrashDir(Path path).
  16704. It returns the trash location correctly for the path specified no matter
  16705. the path is in encryption zone or not.]]>
  16706. </doc>
  16707. </method>
  16708. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  16709. abstract="false" native="false" synchronized="false"
  16710. static="false" final="false" visibility="public"
  16711. deprecated="not deprecated">
  16712. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16713. <exception name="IOException" type="java.io.IOException"/>
  16714. <doc>
  16715. <![CDATA[Get the current trash directory for path specified based on the Trash
  16716. Policy
  16717. @param path path to be deleted
  16718. @return current trash directory for the path to be deleted
  16719. @throws IOException]]>
  16720. </doc>
  16721. </method>
  16722. <method name="getEmptier" return="java.lang.Runnable"
  16723. abstract="true" native="false" synchronized="false"
  16724. static="false" final="false" visibility="public"
  16725. deprecated="not deprecated">
  16726. <exception name="IOException" type="java.io.IOException"/>
  16727. <doc>
  16728. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  16729. users, intended to be run by the superuser.]]>
  16730. </doc>
  16731. </method>
  16732. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  16733. abstract="false" native="false" synchronized="false"
  16734. static="true" final="false" visibility="public"
  16735. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  16736. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16737. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16738. <param name="home" type="org.apache.hadoop.fs.Path"/>
  16739. <doc>
  16740. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  16741. of the configuration parameter fs.trash.classname.
  16742. @param conf the configuration to be used
  16743. @param fs the file system to be used
  16744. @param home the home directory
  16745. @return an instance of TrashPolicy
  16746. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  16747. </doc>
  16748. </method>
  16749. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  16750. abstract="false" native="false" synchronized="false"
  16751. static="true" final="false" visibility="public"
  16752. deprecated="not deprecated">
  16753. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16754. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16755. <doc>
  16756. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  16757. of the configuration parameter fs.trash.classname.
  16758. @param conf the configuration to be used
  16759. @param fs the file system to be used
  16760. @return an instance of TrashPolicy]]>
  16761. </doc>
  16762. </method>
  16763. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  16764. transient="false" volatile="false"
  16765. static="false" final="false" visibility="protected"
  16766. deprecated="not deprecated">
  16767. </field>
  16768. <field name="trash" type="org.apache.hadoop.fs.Path"
  16769. transient="false" volatile="false"
  16770. static="false" final="false" visibility="protected"
  16771. deprecated="not deprecated">
  16772. </field>
  16773. <field name="deletionInterval" type="long"
  16774. transient="false" volatile="false"
  16775. static="false" final="false" visibility="protected"
  16776. deprecated="not deprecated">
  16777. </field>
  16778. <doc>
  16779. <![CDATA[This interface is used for implementing different Trash policies.
  16780. Provides factory method to create instances of the configured Trash policy.]]>
  16781. </doc>
  16782. </class>
  16783. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  16784. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  16785. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  16786. abstract="false"
  16787. static="false" final="false" visibility="public"
  16788. deprecated="not deprecated">
  16789. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  16790. static="false" final="false" visibility="public"
  16791. deprecated="not deprecated">
  16792. <doc>
  16793. <![CDATA[Constructs exception with the specified detail message.
  16794. @param message exception message.]]>
  16795. </doc>
  16796. </constructor>
  16797. <doc>
  16798. <![CDATA[File system for a given file system name/scheme is not supported]]>
  16799. </doc>
  16800. </class>
  16801. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  16802. <!-- start class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  16803. <class name="UnsupportedMultipartUploaderException" extends="java.io.IOException"
  16804. abstract="false"
  16805. static="false" final="false" visibility="public"
  16806. deprecated="not deprecated">
  16807. <constructor name="UnsupportedMultipartUploaderException" type="java.lang.String"
  16808. static="false" final="false" visibility="public"
  16809. deprecated="not deprecated">
  16810. <doc>
  16811. <![CDATA[Constructs exception with the specified detail message.
  16812. @param message exception message.]]>
  16813. </doc>
  16814. </constructor>
  16815. <doc>
  16816. <![CDATA[MultipartUploader for a given file system name/scheme is not supported.]]>
  16817. </doc>
  16818. </class>
  16819. <!-- end class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  16820. <!-- start interface org.apache.hadoop.fs.UploadHandle -->
  16821. <interface name="UploadHandle" abstract="true"
  16822. static="false" final="false" visibility="public"
  16823. deprecated="not deprecated">
  16824. <implements name="java.io.Serializable"/>
  16825. <method name="toByteArray" return="byte[]"
  16826. abstract="false" native="false" synchronized="false"
  16827. static="false" final="false" visibility="public"
  16828. deprecated="not deprecated">
  16829. <doc>
  16830. <![CDATA[@return Serialized from in bytes.]]>
  16831. </doc>
  16832. </method>
  16833. <method name="bytes" return="java.nio.ByteBuffer"
  16834. abstract="true" native="false" synchronized="false"
  16835. static="false" final="false" visibility="public"
  16836. deprecated="not deprecated">
  16837. </method>
  16838. <method name="equals" return="boolean"
  16839. abstract="true" native="false" synchronized="false"
  16840. static="false" final="false" visibility="public"
  16841. deprecated="not deprecated">
  16842. <param name="other" type="java.lang.Object"/>
  16843. </method>
  16844. <doc>
  16845. <![CDATA[Opaque, serializable reference to an uploadId for multipart uploads.]]>
  16846. </doc>
  16847. </interface>
  16848. <!-- end interface org.apache.hadoop.fs.UploadHandle -->
  16849. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  16850. <class name="XAttrCodec" extends="java.lang.Enum"
  16851. abstract="false"
  16852. static="false" final="true" visibility="public"
  16853. deprecated="not deprecated">
  16854. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  16855. abstract="false" native="false" synchronized="false"
  16856. static="true" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. </method>
  16859. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  16860. abstract="false" native="false" synchronized="false"
  16861. static="true" final="false" visibility="public"
  16862. deprecated="not deprecated">
  16863. <param name="name" type="java.lang.String"/>
  16864. </method>
  16865. <method name="decodeValue" return="byte[]"
  16866. abstract="false" native="false" synchronized="false"
  16867. static="true" final="false" visibility="public"
  16868. deprecated="not deprecated">
  16869. <param name="value" type="java.lang.String"/>
  16870. <exception name="IOException" type="java.io.IOException"/>
  16871. <doc>
  16872. <![CDATA[Decode string representation of a value and check whether it's
  16873. encoded. If the given string begins with 0x or 0X, it expresses
  16874. a hexadecimal number. If the given string begins with 0s or 0S,
  16875. base64 encoding is expected. If the given string is enclosed in
  16876. double quotes, the inner string is treated as text. Otherwise
  16877. the given string is treated as text.
  16878. @param value string representation of the value.
  16879. @return byte[] the value
  16880. @throws IOException]]>
  16881. </doc>
  16882. </method>
  16883. <method name="encodeValue" return="java.lang.String"
  16884. abstract="false" native="false" synchronized="false"
  16885. static="true" final="false" visibility="public"
  16886. deprecated="not deprecated">
  16887. <param name="value" type="byte[]"/>
  16888. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  16889. <exception name="IOException" type="java.io.IOException"/>
  16890. <doc>
  16891. <![CDATA[Encode byte[] value to string representation with encoding.
  16892. Values encoded as text strings are enclosed in double quotes (\"),
  16893. while strings encoded as hexadecimal and base64 are prefixed with
  16894. 0x and 0s, respectively.
  16895. @param value byte[] value
  16896. @param encoding
  16897. @return String string representation of value
  16898. @throws IOException]]>
  16899. </doc>
  16900. </method>
  16901. <doc>
  16902. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  16903. covert byte[] to some kind of string representation or convert back.
  16904. String representation is convenient for display and input. For example
  16905. display in screen as shell response and json response, input as http
  16906. or shell parameter.]]>
  16907. </doc>
  16908. </class>
  16909. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  16910. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  16911. <class name="XAttrSetFlag" extends="java.lang.Enum"
  16912. abstract="false"
  16913. static="false" final="true" visibility="public"
  16914. deprecated="not deprecated">
  16915. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  16916. abstract="false" native="false" synchronized="false"
  16917. static="true" final="false" visibility="public"
  16918. deprecated="not deprecated">
  16919. </method>
  16920. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  16921. abstract="false" native="false" synchronized="false"
  16922. static="true" final="false" visibility="public"
  16923. deprecated="not deprecated">
  16924. <param name="name" type="java.lang.String"/>
  16925. </method>
  16926. <method name="validate"
  16927. abstract="false" native="false" synchronized="false"
  16928. static="true" final="false" visibility="public"
  16929. deprecated="not deprecated">
  16930. <param name="xAttrName" type="java.lang.String"/>
  16931. <param name="xAttrExists" type="boolean"/>
  16932. <param name="flag" type="java.util.EnumSet"/>
  16933. <exception name="IOException" type="java.io.IOException"/>
  16934. </method>
  16935. </class>
  16936. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  16937. <doc>
  16938. <![CDATA[An abstract file system API.]]>
  16939. </doc>
  16940. </package>
  16941. <package name="org.apache.hadoop.fs.audit">
  16942. <!-- start class org.apache.hadoop.fs.audit.CommonAuditContext -->
  16943. <class name="CommonAuditContext" extends="java.lang.Object"
  16944. abstract="false"
  16945. static="false" final="true" visibility="public"
  16946. deprecated="not deprecated">
  16947. <method name="put" return="java.util.function.Supplier"
  16948. abstract="false" native="false" synchronized="false"
  16949. static="false" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <param name="key" type="java.lang.String"/>
  16952. <param name="value" type="java.lang.String"/>
  16953. <doc>
  16954. <![CDATA[Put a context entry.
  16955. @param key key
  16956. @param value new value
  16957. @return old value or null]]>
  16958. </doc>
  16959. </method>
  16960. <method name="put" return="java.util.function.Supplier"
  16961. abstract="false" native="false" synchronized="false"
  16962. static="false" final="false" visibility="public"
  16963. deprecated="not deprecated">
  16964. <param name="key" type="java.lang.String"/>
  16965. <param name="value" type="java.util.function.Supplier"/>
  16966. <doc>
  16967. <![CDATA[Put a context entry dynamically evaluated on demand.
  16968. @param key key
  16969. @param value new value
  16970. @return old value or null]]>
  16971. </doc>
  16972. </method>
  16973. <method name="remove"
  16974. abstract="false" native="false" synchronized="false"
  16975. static="false" final="false" visibility="public"
  16976. deprecated="not deprecated">
  16977. <param name="key" type="java.lang.String"/>
  16978. <doc>
  16979. <![CDATA[Remove a context entry.
  16980. @param key key]]>
  16981. </doc>
  16982. </method>
  16983. <method name="get" return="java.lang.String"
  16984. abstract="false" native="false" synchronized="false"
  16985. static="false" final="false" visibility="public"
  16986. deprecated="not deprecated">
  16987. <param name="key" type="java.lang.String"/>
  16988. <doc>
  16989. <![CDATA[Get a context entry.
  16990. @param key key
  16991. @return value or null]]>
  16992. </doc>
  16993. </method>
  16994. <method name="reset"
  16995. abstract="false" native="false" synchronized="false"
  16996. static="false" final="false" visibility="public"
  16997. deprecated="not deprecated">
  16998. <doc>
  16999. <![CDATA[Rest the context; will set the standard options again.
  17000. Primarily for testing.]]>
  17001. </doc>
  17002. </method>
  17003. <method name="containsKey" return="boolean"
  17004. abstract="false" native="false" synchronized="false"
  17005. static="false" final="false" visibility="public"
  17006. deprecated="not deprecated">
  17007. <param name="key" type="java.lang.String"/>
  17008. <doc>
  17009. <![CDATA[Does the context contain a specific key?
  17010. @param key key
  17011. @return true if it is in the context.]]>
  17012. </doc>
  17013. </method>
  17014. <method name="currentAuditContext" return="org.apache.hadoop.fs.audit.CommonAuditContext"
  17015. abstract="false" native="false" synchronized="false"
  17016. static="true" final="false" visibility="public"
  17017. deprecated="not deprecated">
  17018. <doc>
  17019. <![CDATA[Get the current common audit context. Thread local.
  17020. @return the audit context of this thread.]]>
  17021. </doc>
  17022. </method>
  17023. <method name="currentThreadID" return="java.lang.String"
  17024. abstract="false" native="false" synchronized="false"
  17025. static="true" final="false" visibility="public"
  17026. deprecated="not deprecated">
  17027. <doc>
  17028. <![CDATA[A thread ID which is unique for this process and shared across all
  17029. S3A clients on the same thread, even those using different FS instances.
  17030. @return a thread ID for reporting.]]>
  17031. </doc>
  17032. </method>
  17033. <method name="getEvaluatedEntries" return="java.util.Map"
  17034. abstract="false" native="false" synchronized="false"
  17035. static="false" final="false" visibility="public"
  17036. deprecated="not deprecated">
  17037. <doc>
  17038. <![CDATA[Get the evaluated operations.
  17039. This is the map unique to this context.
  17040. @return the operations map.]]>
  17041. </doc>
  17042. </method>
  17043. <method name="setGlobalContextEntry"
  17044. abstract="false" native="false" synchronized="false"
  17045. static="true" final="false" visibility="public"
  17046. deprecated="not deprecated">
  17047. <param name="key" type="java.lang.String"/>
  17048. <param name="value" type="java.lang.String"/>
  17049. <doc>
  17050. <![CDATA[Set a global entry.
  17051. @param key key
  17052. @param value value]]>
  17053. </doc>
  17054. </method>
  17055. <method name="getGlobalContextEntry" return="java.lang.String"
  17056. abstract="false" native="false" synchronized="false"
  17057. static="true" final="false" visibility="public"
  17058. deprecated="not deprecated">
  17059. <param name="key" type="java.lang.String"/>
  17060. <doc>
  17061. <![CDATA[Get a global entry.
  17062. @param key key
  17063. @return value or null]]>
  17064. </doc>
  17065. </method>
  17066. <method name="removeGlobalContextEntry"
  17067. abstract="false" native="false" synchronized="false"
  17068. static="true" final="false" visibility="public"
  17069. deprecated="not deprecated">
  17070. <param name="key" type="java.lang.String"/>
  17071. <doc>
  17072. <![CDATA[Remove a global entry.
  17073. @param key key to clear.]]>
  17074. </doc>
  17075. </method>
  17076. <method name="noteEntryPoint"
  17077. abstract="false" native="false" synchronized="false"
  17078. static="true" final="false" visibility="public"
  17079. deprecated="not deprecated">
  17080. <param name="tool" type="java.lang.Object"/>
  17081. <doc>
  17082. <![CDATA[Add the entry point as a context entry with the key
  17083. {@link AuditConstants#PARAM_COMMAND}
  17084. if it has not already been recorded.
  17085. This is called via ToolRunner but may be used at any
  17086. other entry point.
  17087. @param tool object loaded/being launched.]]>
  17088. </doc>
  17089. </method>
  17090. <method name="getGlobalContextEntries" return="java.lang.Iterable"
  17091. abstract="false" native="false" synchronized="false"
  17092. static="true" final="false" visibility="public"
  17093. deprecated="not deprecated">
  17094. <doc>
  17095. <![CDATA[Get an iterator over the global entries.
  17096. Thread safe.
  17097. @return an iterable to enumerate the values.]]>
  17098. </doc>
  17099. </method>
  17100. <field name="PROCESS_ID" type="java.lang.String"
  17101. transient="false" volatile="false"
  17102. static="true" final="true" visibility="public"
  17103. deprecated="not deprecated">
  17104. <doc>
  17105. <![CDATA[Process ID; currently built from UUID and timestamp.]]>
  17106. </doc>
  17107. </field>
  17108. <doc>
  17109. <![CDATA[The common audit context is a map of common context information
  17110. which can be used with any audit span.
  17111. This context is shared across all Filesystems within the
  17112. thread.
  17113. Audit spans will be created with a reference to the current
  17114. context of their thread;
  17115. That reference is retained even as they are moved across threads, so
  17116. context information (including thread ID Java runtime).
  17117. The Global context entries are a set of key-value pairs which span
  17118. all threads; the {@code HttpReferrerAuditHeader} picks these
  17119. up automatically. It is intended for minimal use of
  17120. shared constant values (process ID, entry point).
  17121. An attribute set in {@link #setGlobalContextEntry(String, String)}
  17122. will be set across all audit spans in all threads.
  17123. The {@link #noteEntryPoint(Object)} method should be
  17124. used in entry points (ToolRunner.run, etc). It extracts
  17125. the final element of the classname and attaches that
  17126. to the global context with the attribute key
  17127. {@link AuditConstants#PARAM_COMMAND}, if not already
  17128. set.
  17129. This helps identify the application being executued.
  17130. All other values set are specific to this context, which
  17131. is thread local.
  17132. The attributes which can be added to ths common context include
  17133. evaluator methods which will be evaluated in whichever thread
  17134. invokes {@link #getEvaluatedEntries()} and then evaluates them.
  17135. That map of evaluated options may evaluated later, in a different
  17136. thread.
  17137. For setting and clearing thread-level options, use
  17138. {@link #currentAuditContext()} to get the thread-local
  17139. context for the caller, which can then be manipulated.]]>
  17140. </doc>
  17141. </class>
  17142. <!-- end class org.apache.hadoop.fs.audit.CommonAuditContext -->
  17143. </package>
  17144. <package name="org.apache.hadoop.fs.crypto">
  17145. </package>
  17146. <package name="org.apache.hadoop.fs.ftp">
  17147. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  17148. <class name="FTPException" extends="java.lang.RuntimeException"
  17149. abstract="false"
  17150. static="false" final="false" visibility="public"
  17151. deprecated="not deprecated">
  17152. <constructor name="FTPException" type="java.lang.String"
  17153. static="false" final="false" visibility="public"
  17154. deprecated="not deprecated">
  17155. </constructor>
  17156. <constructor name="FTPException" type="java.lang.Throwable"
  17157. static="false" final="false" visibility="public"
  17158. deprecated="not deprecated">
  17159. </constructor>
  17160. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  17161. static="false" final="false" visibility="public"
  17162. deprecated="not deprecated">
  17163. </constructor>
  17164. <doc>
  17165. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  17166. </doc>
  17167. </class>
  17168. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  17169. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  17170. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  17171. abstract="false"
  17172. static="false" final="false" visibility="public"
  17173. deprecated="not deprecated">
  17174. <constructor name="FTPFileSystem"
  17175. static="false" final="false" visibility="public"
  17176. deprecated="not deprecated">
  17177. </constructor>
  17178. <method name="getScheme" return="java.lang.String"
  17179. abstract="false" native="false" synchronized="false"
  17180. static="false" final="false" visibility="public"
  17181. deprecated="not deprecated">
  17182. <doc>
  17183. <![CDATA[Return the protocol scheme for the FileSystem.
  17184. <p>
  17185. @return <code>ftp</code>]]>
  17186. </doc>
  17187. </method>
  17188. <method name="getDefaultPort" return="int"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="protected"
  17191. deprecated="not deprecated">
  17192. <doc>
  17193. <![CDATA[Get the default port for this FTPFileSystem.
  17194. @return the default port]]>
  17195. </doc>
  17196. </method>
  17197. <method name="initialize"
  17198. abstract="false" native="false" synchronized="false"
  17199. static="false" final="false" visibility="public"
  17200. deprecated="not deprecated">
  17201. <param name="uri" type="java.net.URI"/>
  17202. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17203. <exception name="IOException" type="java.io.IOException"/>
  17204. </method>
  17205. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  17206. abstract="false" native="false" synchronized="false"
  17207. static="false" final="false" visibility="public"
  17208. deprecated="not deprecated">
  17209. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17210. <param name="bufferSize" type="int"/>
  17211. <exception name="IOException" type="java.io.IOException"/>
  17212. </method>
  17213. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  17214. abstract="false" native="false" synchronized="false"
  17215. static="false" final="false" visibility="public"
  17216. deprecated="not deprecated">
  17217. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17218. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17219. <param name="overwrite" type="boolean"/>
  17220. <param name="bufferSize" type="int"/>
  17221. <param name="replication" type="short"/>
  17222. <param name="blockSize" type="long"/>
  17223. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17224. <exception name="IOException" type="java.io.IOException"/>
  17225. <doc>
  17226. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  17227. this class or else the invocation will block.]]>
  17228. </doc>
  17229. </method>
  17230. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  17231. abstract="false" native="false" synchronized="false"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17235. <param name="bufferSize" type="int"/>
  17236. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17237. <exception name="IOException" type="java.io.IOException"/>
  17238. <doc>
  17239. <![CDATA[This optional operation is not yet supported.]]>
  17240. </doc>
  17241. </method>
  17242. <method name="delete" return="boolean"
  17243. abstract="false" native="false" synchronized="false"
  17244. static="false" final="false" visibility="public"
  17245. deprecated="not deprecated">
  17246. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17247. <param name="recursive" type="boolean"/>
  17248. <exception name="IOException" type="java.io.IOException"/>
  17249. </method>
  17250. <method name="getUri" return="java.net.URI"
  17251. abstract="false" native="false" synchronized="false"
  17252. static="false" final="false" visibility="public"
  17253. deprecated="not deprecated">
  17254. </method>
  17255. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  17256. abstract="false" native="false" synchronized="false"
  17257. static="false" final="false" visibility="public"
  17258. deprecated="not deprecated">
  17259. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17260. <exception name="IOException" type="java.io.IOException"/>
  17261. </method>
  17262. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  17263. abstract="false" native="false" synchronized="false"
  17264. static="false" final="false" visibility="public"
  17265. deprecated="not deprecated">
  17266. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17267. <exception name="IOException" type="java.io.IOException"/>
  17268. </method>
  17269. <method name="mkdirs" return="boolean"
  17270. abstract="false" native="false" synchronized="false"
  17271. static="false" final="false" visibility="public"
  17272. deprecated="not deprecated">
  17273. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17274. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17275. <exception name="IOException" type="java.io.IOException"/>
  17276. </method>
  17277. <method name="rename" return="boolean"
  17278. abstract="false" native="false" synchronized="false"
  17279. static="false" final="false" visibility="public"
  17280. deprecated="not deprecated">
  17281. <param name="src" type="org.apache.hadoop.fs.Path"/>
  17282. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  17283. <exception name="IOException" type="java.io.IOException"/>
  17284. </method>
  17285. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  17286. abstract="false" native="false" synchronized="false"
  17287. static="false" final="false" visibility="public"
  17288. deprecated="not deprecated">
  17289. </method>
  17290. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  17291. abstract="false" native="false" synchronized="false"
  17292. static="false" final="false" visibility="public"
  17293. deprecated="not deprecated">
  17294. </method>
  17295. <method name="setWorkingDirectory"
  17296. abstract="false" native="false" synchronized="false"
  17297. static="false" final="false" visibility="public"
  17298. deprecated="not deprecated">
  17299. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  17300. </method>
  17301. <field name="LOG" type="org.slf4j.Logger"
  17302. transient="false" volatile="false"
  17303. static="true" final="true" visibility="public"
  17304. deprecated="not deprecated">
  17305. </field>
  17306. <field name="DEFAULT_BUFFER_SIZE" type="int"
  17307. transient="false" volatile="false"
  17308. static="true" final="true" visibility="public"
  17309. deprecated="not deprecated">
  17310. </field>
  17311. <field name="DEFAULT_BLOCK_SIZE" type="int"
  17312. transient="false" volatile="false"
  17313. static="true" final="true" visibility="public"
  17314. deprecated="not deprecated">
  17315. </field>
  17316. <field name="DEFAULT_TIMEOUT" type="long"
  17317. transient="false" volatile="false"
  17318. static="true" final="true" visibility="public"
  17319. deprecated="not deprecated">
  17320. </field>
  17321. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  17322. transient="false" volatile="false"
  17323. static="true" final="true" visibility="public"
  17324. deprecated="not deprecated">
  17325. </field>
  17326. <field name="FS_FTP_HOST" type="java.lang.String"
  17327. transient="false" volatile="false"
  17328. static="true" final="true" visibility="public"
  17329. deprecated="not deprecated">
  17330. </field>
  17331. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  17332. transient="false" volatile="false"
  17333. static="true" final="true" visibility="public"
  17334. deprecated="not deprecated">
  17335. </field>
  17336. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  17337. transient="false" volatile="false"
  17338. static="true" final="true" visibility="public"
  17339. deprecated="not deprecated">
  17340. </field>
  17341. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  17342. transient="false" volatile="false"
  17343. static="true" final="true" visibility="public"
  17344. deprecated="not deprecated">
  17345. </field>
  17346. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  17347. transient="false" volatile="false"
  17348. static="true" final="true" visibility="public"
  17349. deprecated="not deprecated">
  17350. </field>
  17351. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  17352. transient="false" volatile="false"
  17353. static="true" final="true" visibility="public"
  17354. deprecated="not deprecated">
  17355. </field>
  17356. <field name="FS_FTP_TIMEOUT" type="java.lang.String"
  17357. transient="false" volatile="false"
  17358. static="true" final="true" visibility="public"
  17359. deprecated="not deprecated">
  17360. </field>
  17361. <doc>
  17362. <![CDATA[<p>
  17363. A {@link FileSystem} backed by an FTP client provided by <a
  17364. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  17365. </p>]]>
  17366. </doc>
  17367. </class>
  17368. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  17369. </package>
  17370. <package name="org.apache.hadoop.fs.http">
  17371. </package>
  17372. <package name="org.apache.hadoop.fs.protocolPB">
  17373. </package>
  17374. <package name="org.apache.hadoop.fs.sftp">
  17375. </package>
  17376. <package name="org.apache.hadoop.fs.shell.find">
  17377. </package>
  17378. <package name="org.apache.hadoop.fs.statistics">
  17379. <!-- start class org.apache.hadoop.fs.statistics.DurationStatisticSummary -->
  17380. <class name="DurationStatisticSummary" extends="java.lang.Object"
  17381. abstract="false"
  17382. static="false" final="true" visibility="public"
  17383. deprecated="not deprecated">
  17384. <implements name="java.io.Serializable"/>
  17385. <constructor name="DurationStatisticSummary" type="java.lang.String, boolean, long, long, long, org.apache.hadoop.fs.statistics.MeanStatistic"
  17386. static="false" final="false" visibility="public"
  17387. deprecated="not deprecated">
  17388. <doc>
  17389. <![CDATA[Constructor.
  17390. @param key Statistic key.
  17391. @param success Are these success or failure statistics.
  17392. @param count Count of operation invocations.
  17393. @param max Max duration; -1 if unknown.
  17394. @param min Min duration; -1 if unknown.
  17395. @param mean Mean duration -may be null. (will be cloned)]]>
  17396. </doc>
  17397. </constructor>
  17398. <method name="getKey" return="java.lang.String"
  17399. abstract="false" native="false" synchronized="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. </method>
  17403. <method name="isSuccess" return="boolean"
  17404. abstract="false" native="false" synchronized="false"
  17405. static="false" final="false" visibility="public"
  17406. deprecated="not deprecated">
  17407. </method>
  17408. <method name="getCount" return="long"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. </method>
  17413. <method name="getMax" return="long"
  17414. abstract="false" native="false" synchronized="false"
  17415. static="false" final="false" visibility="public"
  17416. deprecated="not deprecated">
  17417. </method>
  17418. <method name="getMin" return="long"
  17419. abstract="false" native="false" synchronized="false"
  17420. static="false" final="false" visibility="public"
  17421. deprecated="not deprecated">
  17422. </method>
  17423. <method name="getMean" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  17424. abstract="false" native="false" synchronized="false"
  17425. static="false" final="false" visibility="public"
  17426. deprecated="not deprecated">
  17427. </method>
  17428. <method name="toString" return="java.lang.String"
  17429. abstract="false" native="false" synchronized="false"
  17430. static="false" final="false" visibility="public"
  17431. deprecated="not deprecated">
  17432. </method>
  17433. <method name="fetchDurationSummary" return="org.apache.hadoop.fs.statistics.DurationStatisticSummary"
  17434. abstract="false" native="false" synchronized="false"
  17435. static="true" final="false" visibility="public"
  17436. deprecated="not deprecated">
  17437. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17438. <param name="key" type="java.lang.String"/>
  17439. <param name="success" type="boolean"/>
  17440. <doc>
  17441. <![CDATA[Fetch the duration timing summary of success or failure operations
  17442. from an IO Statistics source.
  17443. If the duration key is unknown, the summary will be incomplete.
  17444. @param source source of data
  17445. @param key duration statistic key
  17446. @param success fetch success statistics, or if false, failure stats.
  17447. @return a summary of the statistics.]]>
  17448. </doc>
  17449. </method>
  17450. <method name="fetchSuccessSummary" return="org.apache.hadoop.fs.statistics.DurationStatisticSummary"
  17451. abstract="false" native="false" synchronized="false"
  17452. static="true" final="false" visibility="public"
  17453. deprecated="not deprecated">
  17454. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17455. <param name="key" type="java.lang.String"/>
  17456. <doc>
  17457. <![CDATA[Fetch the duration timing summary from an IOStatistics source.
  17458. If the duration key is unknown, the summary will be incomplete.
  17459. @param source source of data
  17460. @param key duration statistic key
  17461. @return a summary of the statistics.]]>
  17462. </doc>
  17463. </method>
  17464. <doc>
  17465. <![CDATA[Summary of duration tracking statistics
  17466. as extracted from an IOStatistics instance.
  17467. <p>
  17468. This is for reporting and testing.]]>
  17469. </doc>
  17470. </class>
  17471. <!-- end class org.apache.hadoop.fs.statistics.DurationStatisticSummary -->
  17472. <!-- start interface org.apache.hadoop.fs.statistics.IOStatistics -->
  17473. <interface name="IOStatistics" abstract="true"
  17474. static="false" final="false" visibility="public"
  17475. deprecated="not deprecated">
  17476. <method name="counters" return="java.util.Map"
  17477. abstract="true" native="false" synchronized="false"
  17478. static="false" final="false" visibility="public"
  17479. deprecated="not deprecated">
  17480. <doc>
  17481. <![CDATA[Map of counters.
  17482. @return the current map of counters.]]>
  17483. </doc>
  17484. </method>
  17485. <method name="gauges" return="java.util.Map"
  17486. abstract="true" native="false" synchronized="false"
  17487. static="false" final="false" visibility="public"
  17488. deprecated="not deprecated">
  17489. <doc>
  17490. <![CDATA[Map of gauges.
  17491. @return the current map of gauges.]]>
  17492. </doc>
  17493. </method>
  17494. <method name="minimums" return="java.util.Map"
  17495. abstract="true" native="false" synchronized="false"
  17496. static="false" final="false" visibility="public"
  17497. deprecated="not deprecated">
  17498. <doc>
  17499. <![CDATA[Map of minimums.
  17500. @return the current map of minimums.]]>
  17501. </doc>
  17502. </method>
  17503. <method name="maximums" return="java.util.Map"
  17504. abstract="true" native="false" synchronized="false"
  17505. static="false" final="false" visibility="public"
  17506. deprecated="not deprecated">
  17507. <doc>
  17508. <![CDATA[Map of maximums.
  17509. @return the current map of maximums.]]>
  17510. </doc>
  17511. </method>
  17512. <method name="meanStatistics" return="java.util.Map"
  17513. abstract="true" native="false" synchronized="false"
  17514. static="false" final="false" visibility="public"
  17515. deprecated="not deprecated">
  17516. <doc>
  17517. <![CDATA[Map of meanStatistics.
  17518. @return the current map of MeanStatistic statistics.]]>
  17519. </doc>
  17520. </method>
  17521. <field name="MIN_UNSET_VALUE" type="long"
  17522. transient="false" volatile="false"
  17523. static="true" final="true" visibility="public"
  17524. deprecated="not deprecated">
  17525. <doc>
  17526. <![CDATA[Value when a minimum value has never been set.]]>
  17527. </doc>
  17528. </field>
  17529. <field name="MAX_UNSET_VALUE" type="long"
  17530. transient="false" volatile="false"
  17531. static="true" final="true" visibility="public"
  17532. deprecated="not deprecated">
  17533. <doc>
  17534. <![CDATA[Value when a max value has never been set.]]>
  17535. </doc>
  17536. </field>
  17537. <doc>
  17538. <![CDATA[IO Statistics.
  17539. <p>
  17540. These are low-cost per-instance statistics provided by any Hadoop
  17541. I/O class instance.
  17542. <p>
  17543. Consult the filesystem specification document for the requirements
  17544. of an implementation of this interface.]]>
  17545. </doc>
  17546. </interface>
  17547. <!-- end interface org.apache.hadoop.fs.statistics.IOStatistics -->
  17548. <!-- start interface org.apache.hadoop.fs.statistics.IOStatisticsAggregator -->
  17549. <interface name="IOStatisticsAggregator" abstract="true"
  17550. static="false" final="false" visibility="public"
  17551. deprecated="not deprecated">
  17552. <method name="aggregate" return="boolean"
  17553. abstract="true" native="false" synchronized="false"
  17554. static="false" final="false" visibility="public"
  17555. deprecated="not deprecated">
  17556. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17557. <doc>
  17558. <![CDATA[Aggregate the supplied statistics into the current
  17559. set.
  17560. @param statistics statistics; may be null
  17561. @return true if the statistics reference was not null and
  17562. so aggregated.]]>
  17563. </doc>
  17564. </method>
  17565. <doc>
  17566. <![CDATA[Interface exported by classes which support
  17567. aggregation of {@link IOStatistics}.
  17568. Implementations MAY aggregate all statistics
  17569. exported by the IOStatistics reference passed in to
  17570. {@link #aggregate(IOStatistics)}, or they
  17571. may selectively aggregate specific values/classes
  17572. of statistics.]]>
  17573. </doc>
  17574. </interface>
  17575. <!-- end interface org.apache.hadoop.fs.statistics.IOStatisticsAggregator -->
  17576. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsLogging -->
  17577. <class name="IOStatisticsLogging" extends="java.lang.Object"
  17578. abstract="false"
  17579. static="false" final="true" visibility="public"
  17580. deprecated="not deprecated">
  17581. <method name="ioStatisticsSourceToString" return="java.lang.String"
  17582. abstract="false" native="false" synchronized="false"
  17583. static="true" final="false" visibility="public"
  17584. deprecated="not deprecated">
  17585. <param name="source" type="java.lang.Object"/>
  17586. <doc>
  17587. <![CDATA[Extract the statistics from a source object -or ""
  17588. if it is not an instance of {@link IOStatistics},
  17589. {@link IOStatisticsSource} or the retrieved
  17590. statistics are null.
  17591. <p>
  17592. Exceptions are caught and downgraded to debug logging.
  17593. @param source source of statistics.
  17594. @return a string for logging.]]>
  17595. </doc>
  17596. </method>
  17597. <method name="ioStatisticsToString" return="java.lang.String"
  17598. abstract="false" native="false" synchronized="false"
  17599. static="true" final="false" visibility="public"
  17600. deprecated="not deprecated">
  17601. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17602. <doc>
  17603. <![CDATA[Convert IOStatistics to a string form.
  17604. @param statistics A statistics instance.
  17605. @return string value or the empty string if null]]>
  17606. </doc>
  17607. </method>
  17608. <method name="ioStatisticsToPrettyString" return="java.lang.String"
  17609. abstract="false" native="false" synchronized="false"
  17610. static="true" final="false" visibility="public"
  17611. deprecated="not deprecated">
  17612. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17613. <doc>
  17614. <![CDATA[Convert IOStatistics to a string form, with all the metrics sorted
  17615. and empty value stripped.
  17616. This is more expensive than the simple conversion, so should only
  17617. be used for logging/output where it's known/highly likely that the
  17618. caller wants to see the values. Not for debug logging.
  17619. @param statistics A statistics instance.
  17620. @return string value or the empty string if null]]>
  17621. </doc>
  17622. </method>
  17623. <method name="demandStringifyIOStatisticsSource" return="java.lang.Object"
  17624. abstract="false" native="false" synchronized="false"
  17625. static="true" final="false" visibility="public"
  17626. deprecated="not deprecated">
  17627. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  17628. <doc>
  17629. <![CDATA[On demand stringifier of an IOStatisticsSource instance.
  17630. <p>
  17631. Whenever this object's toString() method is called, it evaluates the
  17632. statistics.
  17633. <p>
  17634. This is designed to affordable to use in log statements.
  17635. @param source source of statistics -may be null.
  17636. @return an object whose toString() operation returns the current values.]]>
  17637. </doc>
  17638. </method>
  17639. <method name="demandStringifyIOStatistics" return="java.lang.Object"
  17640. abstract="false" native="false" synchronized="false"
  17641. static="true" final="false" visibility="public"
  17642. deprecated="not deprecated">
  17643. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17644. <doc>
  17645. <![CDATA[On demand stringifier of an IOStatistics instance.
  17646. <p>
  17647. Whenever this object's toString() method is called, it evaluates the
  17648. statistics.
  17649. <p>
  17650. This is for use in log statements where for the cost of creation
  17651. of this entry is low; it is affordable to use in log statements.
  17652. @param statistics statistics to stringify -may be null.
  17653. @return an object whose toString() operation returns the current values.]]>
  17654. </doc>
  17655. </method>
  17656. <method name="logIOStatisticsAtDebug"
  17657. abstract="false" native="false" synchronized="false"
  17658. static="true" final="false" visibility="public"
  17659. deprecated="not deprecated">
  17660. <param name="log" type="org.slf4j.Logger"/>
  17661. <param name="message" type="java.lang.String"/>
  17662. <param name="source" type="java.lang.Object"/>
  17663. <doc>
  17664. <![CDATA[Extract any statistics from the source and log at debug, if
  17665. the log is set to log at debug.
  17666. No-op if logging is not at debug or the source is null/of
  17667. the wrong type/doesn't provide statistics.
  17668. @param log log to log to
  17669. @param message message for log -this must contain "{}" for the
  17670. statistics report to actually get logged.
  17671. @param source source object]]>
  17672. </doc>
  17673. </method>
  17674. <method name="logIOStatisticsAtDebug"
  17675. abstract="false" native="false" synchronized="false"
  17676. static="true" final="false" visibility="public"
  17677. deprecated="not deprecated">
  17678. <param name="message" type="java.lang.String"/>
  17679. <param name="source" type="java.lang.Object"/>
  17680. <doc>
  17681. <![CDATA[Extract any statistics from the source and log to
  17682. this class's log at debug, if
  17683. the log is set to log at debug.
  17684. No-op if logging is not at debug or the source is null/of
  17685. the wrong type/doesn't provide statistics.
  17686. @param message message for log -this must contain "{}" for the
  17687. statistics report to actually get logged.
  17688. @param source source object]]>
  17689. </doc>
  17690. </method>
  17691. <method name="logIOStatisticsAtLevel"
  17692. abstract="false" native="false" synchronized="false"
  17693. static="true" final="false" visibility="public"
  17694. deprecated="not deprecated">
  17695. <param name="log" type="org.slf4j.Logger"/>
  17696. <param name="level" type="java.lang.String"/>
  17697. <param name="source" type="java.lang.Object"/>
  17698. <doc>
  17699. <![CDATA[A method to log IOStatistics from a source at different levels.
  17700. @param log Logger for logging.
  17701. @param level LOG level.
  17702. @param source Source to LOG.]]>
  17703. </doc>
  17704. </method>
  17705. <doc>
  17706. <![CDATA[Utility operations convert IO Statistics sources/instances
  17707. to strings, especially for robustly logging.]]>
  17708. </doc>
  17709. </class>
  17710. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsLogging -->
  17711. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsSnapshot -->
  17712. <class name="IOStatisticsSnapshot" extends="java.lang.Object"
  17713. abstract="false"
  17714. static="false" final="true" visibility="public"
  17715. deprecated="not deprecated">
  17716. <implements name="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17717. <implements name="java.io.Serializable"/>
  17718. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsAggregator"/>
  17719. <constructor name="IOStatisticsSnapshot"
  17720. static="false" final="false" visibility="public"
  17721. deprecated="not deprecated">
  17722. <doc>
  17723. <![CDATA[Construct.]]>
  17724. </doc>
  17725. </constructor>
  17726. <constructor name="IOStatisticsSnapshot" type="org.apache.hadoop.fs.statistics.IOStatistics"
  17727. static="false" final="false" visibility="public"
  17728. deprecated="not deprecated">
  17729. <doc>
  17730. <![CDATA[Construct, taking a snapshot of the source statistics data
  17731. if the source is non-null.
  17732. If the source is null, the empty maps are created
  17733. @param source statistics source. Nullable.]]>
  17734. </doc>
  17735. </constructor>
  17736. <method name="clear"
  17737. abstract="false" native="false" synchronized="true"
  17738. static="false" final="false" visibility="public"
  17739. deprecated="not deprecated">
  17740. <doc>
  17741. <![CDATA[Clear all the maps.]]>
  17742. </doc>
  17743. </method>
  17744. <method name="snapshot"
  17745. abstract="false" native="false" synchronized="true"
  17746. static="false" final="false" visibility="public"
  17747. deprecated="not deprecated">
  17748. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17749. <doc>
  17750. <![CDATA[Take a snapshot.
  17751. This completely overwrites the map data with the statistics
  17752. from the source.
  17753. @param source statistics source.]]>
  17754. </doc>
  17755. </method>
  17756. <method name="aggregate" return="boolean"
  17757. abstract="false" native="false" synchronized="true"
  17758. static="false" final="false" visibility="public"
  17759. deprecated="not deprecated">
  17760. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17761. <doc>
  17762. <![CDATA[Aggregate the current statistics with the
  17763. source reference passed in.
  17764. The operation is synchronized.
  17765. @param source source; may be null
  17766. @return true if a merge took place.]]>
  17767. </doc>
  17768. </method>
  17769. <method name="counters" return="java.util.Map"
  17770. abstract="false" native="false" synchronized="true"
  17771. static="false" final="false" visibility="public"
  17772. deprecated="not deprecated">
  17773. </method>
  17774. <method name="gauges" return="java.util.Map"
  17775. abstract="false" native="false" synchronized="true"
  17776. static="false" final="false" visibility="public"
  17777. deprecated="not deprecated">
  17778. </method>
  17779. <method name="minimums" return="java.util.Map"
  17780. abstract="false" native="false" synchronized="true"
  17781. static="false" final="false" visibility="public"
  17782. deprecated="not deprecated">
  17783. </method>
  17784. <method name="maximums" return="java.util.Map"
  17785. abstract="false" native="false" synchronized="true"
  17786. static="false" final="false" visibility="public"
  17787. deprecated="not deprecated">
  17788. </method>
  17789. <method name="meanStatistics" return="java.util.Map"
  17790. abstract="false" native="false" synchronized="true"
  17791. static="false" final="false" visibility="public"
  17792. deprecated="not deprecated">
  17793. </method>
  17794. <method name="toString" return="java.lang.String"
  17795. abstract="false" native="false" synchronized="false"
  17796. static="false" final="false" visibility="public"
  17797. deprecated="not deprecated">
  17798. </method>
  17799. <method name="serializer" return="org.apache.hadoop.util.JsonSerialization"
  17800. abstract="false" native="false" synchronized="false"
  17801. static="true" final="false" visibility="public"
  17802. deprecated="not deprecated">
  17803. <doc>
  17804. <![CDATA[Get a JSON serializer for this class.
  17805. @return a serializer.]]>
  17806. </doc>
  17807. </method>
  17808. <method name="requiredSerializationClasses" return="java.util.List"
  17809. abstract="false" native="false" synchronized="false"
  17810. static="true" final="false" visibility="public"
  17811. deprecated="not deprecated">
  17812. <doc>
  17813. <![CDATA[What classes are needed to deserialize this class?
  17814. Needed to securely unmarshall this from untrusted sources.
  17815. @return a list of required classes to deserialize the data.]]>
  17816. </doc>
  17817. </method>
  17818. <doc>
  17819. <![CDATA[Snapshot of statistics from a different source.
  17820. <p>
  17821. It is serializable so that frameworks which can use java serialization
  17822. to propagate data (Spark, Flink...) can send the statistics
  17823. back. For this reason, TreeMaps are explicitly used as field types,
  17824. even though IDEs can recommend use of Map instead.
  17825. For security reasons, untrusted java object streams should never be
  17826. deserialized. If for some reason this is required, use
  17827. {@link #requiredSerializationClasses()} to get the list of classes
  17828. used when deserializing instances of this object.
  17829. <p>
  17830. <p>
  17831. It is annotated for correct serializations with jackson2.
  17832. </p>]]>
  17833. </doc>
  17834. </class>
  17835. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsSnapshot -->
  17836. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsSupport -->
  17837. <class name="IOStatisticsSupport" extends="java.lang.Object"
  17838. abstract="false"
  17839. static="false" final="true" visibility="public"
  17840. deprecated="not deprecated">
  17841. <method name="snapshotIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatisticsSnapshot"
  17842. abstract="false" native="false" synchronized="false"
  17843. static="true" final="false" visibility="public"
  17844. deprecated="not deprecated">
  17845. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  17846. <doc>
  17847. <![CDATA[Take a snapshot of the current statistics state.
  17848. <p>
  17849. This is not an atomic option.
  17850. <p>
  17851. The instance can be serialized, and its
  17852. {@code toString()} method lists all the values.
  17853. @param statistics statistics
  17854. @return a snapshot of the current values.]]>
  17855. </doc>
  17856. </method>
  17857. <method name="snapshotIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatisticsSnapshot"
  17858. abstract="false" native="false" synchronized="false"
  17859. static="true" final="false" visibility="public"
  17860. deprecated="not deprecated">
  17861. <doc>
  17862. <![CDATA[Create a snapshot statistics instance ready to aggregate data.
  17863. The instance can be serialized, and its
  17864. {@code toString()} method lists all the values.
  17865. @return an empty snapshot]]>
  17866. </doc>
  17867. </method>
  17868. <method name="retrieveIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  17869. abstract="false" native="false" synchronized="false"
  17870. static="true" final="false" visibility="public"
  17871. deprecated="not deprecated">
  17872. <param name="source" type="java.lang.Object"/>
  17873. <doc>
  17874. <![CDATA[Get the IOStatistics of the source, casting it
  17875. if it is of the relevant type, otherwise,
  17876. if it implements {@link IOStatisticsSource}
  17877. extracting the value.
  17878. Returns null if the source isn't of the write type
  17879. or the return value of
  17880. {@link IOStatisticsSource#getIOStatistics()} was null.
  17881. @return an IOStatistics instance or null]]>
  17882. </doc>
  17883. </method>
  17884. <method name="stubDurationTrackerFactory" return="org.apache.hadoop.fs.statistics.DurationTrackerFactory"
  17885. abstract="false" native="false" synchronized="false"
  17886. static="true" final="false" visibility="public"
  17887. deprecated="not deprecated">
  17888. <doc>
  17889. <![CDATA[Return a stub duration tracker factory whose returned trackers
  17890. are always no-ops.
  17891. As singletons are returned, this is very low-cost to use.
  17892. @return a duration tracker factory.]]>
  17893. </doc>
  17894. </method>
  17895. <method name="stubDurationTracker" return="org.apache.hadoop.fs.statistics.DurationTracker"
  17896. abstract="false" native="false" synchronized="false"
  17897. static="true" final="false" visibility="public"
  17898. deprecated="not deprecated">
  17899. <doc>
  17900. <![CDATA[Get a stub duration tracker.
  17901. @return a stub tracker.]]>
  17902. </doc>
  17903. </method>
  17904. <doc>
  17905. <![CDATA[Support for working with IOStatistics.]]>
  17906. </doc>
  17907. </class>
  17908. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsSupport -->
  17909. <!-- start class org.apache.hadoop.fs.statistics.MeanStatistic -->
  17910. <class name="MeanStatistic" extends="java.lang.Object"
  17911. abstract="false"
  17912. static="false" final="true" visibility="public"
  17913. deprecated="not deprecated">
  17914. <implements name="java.io.Serializable"/>
  17915. <implements name="java.lang.Cloneable"/>
  17916. <constructor name="MeanStatistic" type="long, long"
  17917. static="false" final="false" visibility="public"
  17918. deprecated="not deprecated">
  17919. <doc>
  17920. <![CDATA[Constructor, with some resilience against invalid sample counts.
  17921. If the sample count is 0 or less, the sum is set to 0 and
  17922. the sample count to 0.
  17923. @param samples sample count.
  17924. @param sum sum value]]>
  17925. </doc>
  17926. </constructor>
  17927. <constructor name="MeanStatistic" type="org.apache.hadoop.fs.statistics.MeanStatistic"
  17928. static="false" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. <doc>
  17931. <![CDATA[Create from another statistic.
  17932. @param that source]]>
  17933. </doc>
  17934. </constructor>
  17935. <constructor name="MeanStatistic"
  17936. static="false" final="false" visibility="public"
  17937. deprecated="not deprecated">
  17938. <doc>
  17939. <![CDATA[Create an empty statistic.]]>
  17940. </doc>
  17941. </constructor>
  17942. <method name="getSum" return="long"
  17943. abstract="false" native="false" synchronized="true"
  17944. static="false" final="false" visibility="public"
  17945. deprecated="not deprecated">
  17946. <doc>
  17947. <![CDATA[Get the sum of samples.
  17948. @return the sum]]>
  17949. </doc>
  17950. </method>
  17951. <method name="getSamples" return="long"
  17952. abstract="false" native="false" synchronized="true"
  17953. static="false" final="false" visibility="public"
  17954. deprecated="not deprecated">
  17955. <doc>
  17956. <![CDATA[Get the sample count.
  17957. @return the sample count; 0 means empty]]>
  17958. </doc>
  17959. </method>
  17960. <method name="isEmpty" return="boolean"
  17961. abstract="false" native="false" synchronized="true"
  17962. static="false" final="false" visibility="public"
  17963. deprecated="not deprecated">
  17964. <doc>
  17965. <![CDATA[Is a statistic empty?
  17966. @return true if the sample count is 0]]>
  17967. </doc>
  17968. </method>
  17969. <method name="clear"
  17970. abstract="false" native="false" synchronized="false"
  17971. static="false" final="false" visibility="public"
  17972. deprecated="not deprecated">
  17973. <doc>
  17974. <![CDATA[Set the values to 0.]]>
  17975. </doc>
  17976. </method>
  17977. <method name="setSamplesAndSum"
  17978. abstract="false" native="false" synchronized="true"
  17979. static="false" final="false" visibility="public"
  17980. deprecated="not deprecated">
  17981. <param name="sampleCount" type="long"/>
  17982. <param name="newSum" type="long"/>
  17983. <doc>
  17984. <![CDATA[Set the sum and samples.
  17985. Synchronized.
  17986. @param sampleCount new sample count.
  17987. @param newSum new sum]]>
  17988. </doc>
  17989. </method>
  17990. <method name="set"
  17991. abstract="false" native="false" synchronized="false"
  17992. static="false" final="false" visibility="public"
  17993. deprecated="not deprecated">
  17994. <param name="other" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  17995. <doc>
  17996. <![CDATA[Set the statistic to the values of another.
  17997. Synchronized.
  17998. @param other the source.]]>
  17999. </doc>
  18000. </method>
  18001. <method name="setSum"
  18002. abstract="false" native="false" synchronized="true"
  18003. static="false" final="false" visibility="public"
  18004. deprecated="not deprecated">
  18005. <param name="sum" type="long"/>
  18006. <doc>
  18007. <![CDATA[Set the sum.
  18008. @param sum new sum]]>
  18009. </doc>
  18010. </method>
  18011. <method name="setSamples"
  18012. abstract="false" native="false" synchronized="true"
  18013. static="false" final="false" visibility="public"
  18014. deprecated="not deprecated">
  18015. <param name="samples" type="long"/>
  18016. <doc>
  18017. <![CDATA[Set the sample count.
  18018. If this is less than zero, it is set to zero.
  18019. This stops an ill-formed JSON entry from
  18020. breaking deserialization, or get an invalid sample count
  18021. into an entry.
  18022. @param samples sample count.]]>
  18023. </doc>
  18024. </method>
  18025. <method name="mean" return="double"
  18026. abstract="false" native="false" synchronized="true"
  18027. static="false" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. <doc>
  18030. <![CDATA[Get the arithmetic mean value.
  18031. @return the mean]]>
  18032. </doc>
  18033. </method>
  18034. <method name="add" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18035. abstract="false" native="false" synchronized="true"
  18036. static="false" final="false" visibility="public"
  18037. deprecated="not deprecated">
  18038. <param name="other" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  18039. <doc>
  18040. <![CDATA[Add another MeanStatistic.
  18041. @param other other value]]>
  18042. </doc>
  18043. </method>
  18044. <method name="addSample"
  18045. abstract="false" native="false" synchronized="true"
  18046. static="false" final="false" visibility="public"
  18047. deprecated="not deprecated">
  18048. <param name="value" type="long"/>
  18049. <doc>
  18050. <![CDATA[Add a sample.
  18051. Thread safe.
  18052. @param value value to add to the sum]]>
  18053. </doc>
  18054. </method>
  18055. <method name="hashCode" return="int"
  18056. abstract="false" native="false" synchronized="true"
  18057. static="false" final="false" visibility="public"
  18058. deprecated="not deprecated">
  18059. <doc>
  18060. <![CDATA[The hash code is derived from the mean
  18061. and sample count: if either is changed
  18062. the statistic cannot be used as a key
  18063. for hash tables/maps.
  18064. @return a hash value]]>
  18065. </doc>
  18066. </method>
  18067. <method name="equals" return="boolean"
  18068. abstract="false" native="false" synchronized="true"
  18069. static="false" final="false" visibility="public"
  18070. deprecated="not deprecated">
  18071. <param name="o" type="java.lang.Object"/>
  18072. </method>
  18073. <method name="clone" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18074. abstract="false" native="false" synchronized="false"
  18075. static="false" final="false" visibility="public"
  18076. deprecated="not deprecated">
  18077. </method>
  18078. <method name="copy" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18079. abstract="false" native="false" synchronized="false"
  18080. static="false" final="false" visibility="public"
  18081. deprecated="not deprecated">
  18082. <doc>
  18083. <![CDATA[Create a copy of this instance.
  18084. @return copy.]]>
  18085. </doc>
  18086. </method>
  18087. <method name="toString" return="java.lang.String"
  18088. abstract="false" native="false" synchronized="false"
  18089. static="false" final="false" visibility="public"
  18090. deprecated="not deprecated">
  18091. </method>
  18092. <doc>
  18093. <![CDATA[A mean statistic represented as the sum and the sample count;
  18094. the mean is calculated on demand.
  18095. <p>
  18096. It can be used to accrue values so as to dynamically update
  18097. the mean. If so, know that there is no synchronization
  18098. on the methods.
  18099. </p>
  18100. <p>
  18101. If a statistic has 0 samples then it is considered to be empty.
  18102. </p>
  18103. <p>
  18104. All 'empty' statistics are equivalent, independent of the sum value.
  18105. </p>
  18106. <p>
  18107. For non-empty statistics, sum and sample values must match
  18108. for equality.
  18109. </p>
  18110. <p>
  18111. It is serializable and annotated for correct serializations with jackson2.
  18112. </p>
  18113. <p>
  18114. Thread safety. The operations to add/copy sample data, are thread safe.
  18115. </p>
  18116. <ol>
  18117. <li>{@link #add(MeanStatistic)}</li>
  18118. <li>{@link #addSample(long)} </li>
  18119. <li>{@link #clear()} </li>
  18120. <li>{@link #setSamplesAndSum(long, long)}</li>
  18121. <li>{@link #set(MeanStatistic)}</li>
  18122. <li>{@link #setSamples(long)} and {@link #setSum(long)}</li>
  18123. </ol>
  18124. <p>
  18125. So is the {@link #mean()} method. This ensures that when
  18126. used to aggregated statistics, the aggregate value and sample
  18127. count are set and evaluated consistently.
  18128. </p>
  18129. <p>
  18130. Other methods marked as synchronized because Findbugs overreacts
  18131. to the idea that some operations to update sum and sample count
  18132. are synchronized, but that things like equals are not.
  18133. </p>]]>
  18134. </doc>
  18135. </class>
  18136. <!-- end class org.apache.hadoop.fs.statistics.MeanStatistic -->
  18137. <!-- start class org.apache.hadoop.fs.statistics.StoreStatisticNames -->
  18138. <class name="StoreStatisticNames" extends="java.lang.Object"
  18139. abstract="false"
  18140. static="false" final="true" visibility="public"
  18141. deprecated="not deprecated">
  18142. <field name="OP_ABORT" type="java.lang.String"
  18143. transient="false" volatile="false"
  18144. static="true" final="true" visibility="public"
  18145. deprecated="not deprecated">
  18146. <doc>
  18147. <![CDATA[{@value}.]]>
  18148. </doc>
  18149. </field>
  18150. <field name="OP_ACCESS" type="java.lang.String"
  18151. transient="false" volatile="false"
  18152. static="true" final="true" visibility="public"
  18153. deprecated="not deprecated">
  18154. <doc>
  18155. <![CDATA[access() API call {@value}.]]>
  18156. </doc>
  18157. </field>
  18158. <field name="OP_APPEND" type="java.lang.String"
  18159. transient="false" volatile="false"
  18160. static="true" final="true" visibility="public"
  18161. deprecated="not deprecated">
  18162. <doc>
  18163. <![CDATA[{@value}.]]>
  18164. </doc>
  18165. </field>
  18166. <field name="OP_COPY_FROM_LOCAL_FILE" type="java.lang.String"
  18167. transient="false" volatile="false"
  18168. static="true" final="true" visibility="public"
  18169. deprecated="not deprecated">
  18170. <doc>
  18171. <![CDATA[{@value}.]]>
  18172. </doc>
  18173. </field>
  18174. <field name="OP_CREATE" type="java.lang.String"
  18175. transient="false" volatile="false"
  18176. static="true" final="true" visibility="public"
  18177. deprecated="not deprecated">
  18178. <doc>
  18179. <![CDATA[{@value}.]]>
  18180. </doc>
  18181. </field>
  18182. <field name="OP_CREATE_NON_RECURSIVE" type="java.lang.String"
  18183. transient="false" volatile="false"
  18184. static="true" final="true" visibility="public"
  18185. deprecated="not deprecated">
  18186. <doc>
  18187. <![CDATA[{@value}.]]>
  18188. </doc>
  18189. </field>
  18190. <field name="OP_DELETE" type="java.lang.String"
  18191. transient="false" volatile="false"
  18192. static="true" final="true" visibility="public"
  18193. deprecated="not deprecated">
  18194. <doc>
  18195. <![CDATA[{@value}.]]>
  18196. </doc>
  18197. </field>
  18198. <field name="OP_EXISTS" type="java.lang.String"
  18199. transient="false" volatile="false"
  18200. static="true" final="true" visibility="public"
  18201. deprecated="not deprecated">
  18202. <doc>
  18203. <![CDATA[{@value}.]]>
  18204. </doc>
  18205. </field>
  18206. <field name="OP_GET_CONTENT_SUMMARY" type="java.lang.String"
  18207. transient="false" volatile="false"
  18208. static="true" final="true" visibility="public"
  18209. deprecated="not deprecated">
  18210. <doc>
  18211. <![CDATA[{@value}.]]>
  18212. </doc>
  18213. </field>
  18214. <field name="OP_GET_DELEGATION_TOKEN" type="java.lang.String"
  18215. transient="false" volatile="false"
  18216. static="true" final="true" visibility="public"
  18217. deprecated="not deprecated">
  18218. <doc>
  18219. <![CDATA[{@value}.]]>
  18220. </doc>
  18221. </field>
  18222. <field name="OP_GET_FILE_CHECKSUM" type="java.lang.String"
  18223. transient="false" volatile="false"
  18224. static="true" final="true" visibility="public"
  18225. deprecated="not deprecated">
  18226. <doc>
  18227. <![CDATA[{@value}.]]>
  18228. </doc>
  18229. </field>
  18230. <field name="OP_GET_FILE_STATUS" type="java.lang.String"
  18231. transient="false" volatile="false"
  18232. static="true" final="true" visibility="public"
  18233. deprecated="not deprecated">
  18234. <doc>
  18235. <![CDATA[{@value}.]]>
  18236. </doc>
  18237. </field>
  18238. <field name="OP_GET_STATUS" type="java.lang.String"
  18239. transient="false" volatile="false"
  18240. static="true" final="true" visibility="public"
  18241. deprecated="not deprecated">
  18242. <doc>
  18243. <![CDATA[{@value}.]]>
  18244. </doc>
  18245. </field>
  18246. <field name="OP_GLOB_STATUS" type="java.lang.String"
  18247. transient="false" volatile="false"
  18248. static="true" final="true" visibility="public"
  18249. deprecated="not deprecated">
  18250. <doc>
  18251. <![CDATA[{@value}.]]>
  18252. </doc>
  18253. </field>
  18254. <field name="OP_IS_FILE" type="java.lang.String"
  18255. transient="false" volatile="false"
  18256. static="true" final="true" visibility="public"
  18257. deprecated="not deprecated">
  18258. <doc>
  18259. <![CDATA[{@value}.]]>
  18260. </doc>
  18261. </field>
  18262. <field name="OP_HFLUSH" type="java.lang.String"
  18263. transient="false" volatile="false"
  18264. static="true" final="true" visibility="public"
  18265. deprecated="not deprecated">
  18266. <doc>
  18267. <![CDATA[{@value}.]]>
  18268. </doc>
  18269. </field>
  18270. <field name="OP_HSYNC" type="java.lang.String"
  18271. transient="false" volatile="false"
  18272. static="true" final="true" visibility="public"
  18273. deprecated="not deprecated">
  18274. <doc>
  18275. <![CDATA[{@value}.]]>
  18276. </doc>
  18277. </field>
  18278. <field name="OP_IS_DIRECTORY" type="java.lang.String"
  18279. transient="false" volatile="false"
  18280. static="true" final="true" visibility="public"
  18281. deprecated="not deprecated">
  18282. <doc>
  18283. <![CDATA[{@value}.]]>
  18284. </doc>
  18285. </field>
  18286. <field name="OP_LIST_FILES" type="java.lang.String"
  18287. transient="false" volatile="false"
  18288. static="true" final="true" visibility="public"
  18289. deprecated="not deprecated">
  18290. <doc>
  18291. <![CDATA[{@value}.]]>
  18292. </doc>
  18293. </field>
  18294. <field name="OP_LIST_LOCATED_STATUS" type="java.lang.String"
  18295. transient="false" volatile="false"
  18296. static="true" final="true" visibility="public"
  18297. deprecated="not deprecated">
  18298. <doc>
  18299. <![CDATA[{@value}.]]>
  18300. </doc>
  18301. </field>
  18302. <field name="OP_LIST_STATUS" type="java.lang.String"
  18303. transient="false" volatile="false"
  18304. static="true" final="true" visibility="public"
  18305. deprecated="not deprecated">
  18306. <doc>
  18307. <![CDATA[{@value}.]]>
  18308. </doc>
  18309. </field>
  18310. <field name="OP_MKDIRS" type="java.lang.String"
  18311. transient="false" volatile="false"
  18312. static="true" final="true" visibility="public"
  18313. deprecated="not deprecated">
  18314. <doc>
  18315. <![CDATA[{@value}.]]>
  18316. </doc>
  18317. </field>
  18318. <field name="OP_MODIFY_ACL_ENTRIES" type="java.lang.String"
  18319. transient="false" volatile="false"
  18320. static="true" final="true" visibility="public"
  18321. deprecated="not deprecated">
  18322. <doc>
  18323. <![CDATA[{@value}.]]>
  18324. </doc>
  18325. </field>
  18326. <field name="OP_OPEN" type="java.lang.String"
  18327. transient="false" volatile="false"
  18328. static="true" final="true" visibility="public"
  18329. deprecated="not deprecated">
  18330. <doc>
  18331. <![CDATA[{@value}.]]>
  18332. </doc>
  18333. </field>
  18334. <field name="OP_REMOVE_ACL" type="java.lang.String"
  18335. transient="false" volatile="false"
  18336. static="true" final="true" visibility="public"
  18337. deprecated="not deprecated">
  18338. <doc>
  18339. <![CDATA[{@value}.]]>
  18340. </doc>
  18341. </field>
  18342. <field name="OP_REMOVE_ACL_ENTRIES" type="java.lang.String"
  18343. transient="false" volatile="false"
  18344. static="true" final="true" visibility="public"
  18345. deprecated="not deprecated">
  18346. <doc>
  18347. <![CDATA[{@value}.]]>
  18348. </doc>
  18349. </field>
  18350. <field name="OP_REMOVE_DEFAULT_ACL" type="java.lang.String"
  18351. transient="false" volatile="false"
  18352. static="true" final="true" visibility="public"
  18353. deprecated="not deprecated">
  18354. <doc>
  18355. <![CDATA[{@value}.]]>
  18356. </doc>
  18357. </field>
  18358. <field name="OP_RENAME" type="java.lang.String"
  18359. transient="false" volatile="false"
  18360. static="true" final="true" visibility="public"
  18361. deprecated="not deprecated">
  18362. <doc>
  18363. <![CDATA[{@value}.]]>
  18364. </doc>
  18365. </field>
  18366. <field name="OP_SET_ACL" type="java.lang.String"
  18367. transient="false" volatile="false"
  18368. static="true" final="true" visibility="public"
  18369. deprecated="not deprecated">
  18370. <doc>
  18371. <![CDATA[{@value}.]]>
  18372. </doc>
  18373. </field>
  18374. <field name="OP_SET_OWNER" type="java.lang.String"
  18375. transient="false" volatile="false"
  18376. static="true" final="true" visibility="public"
  18377. deprecated="not deprecated">
  18378. <doc>
  18379. <![CDATA[{@value}.]]>
  18380. </doc>
  18381. </field>
  18382. <field name="OP_SET_PERMISSION" type="java.lang.String"
  18383. transient="false" volatile="false"
  18384. static="true" final="true" visibility="public"
  18385. deprecated="not deprecated">
  18386. <doc>
  18387. <![CDATA[{@value}.]]>
  18388. </doc>
  18389. </field>
  18390. <field name="OP_SET_TIMES" type="java.lang.String"
  18391. transient="false" volatile="false"
  18392. static="true" final="true" visibility="public"
  18393. deprecated="not deprecated">
  18394. <doc>
  18395. <![CDATA[{@value}.]]>
  18396. </doc>
  18397. </field>
  18398. <field name="OP_TRUNCATE" type="java.lang.String"
  18399. transient="false" volatile="false"
  18400. static="true" final="true" visibility="public"
  18401. deprecated="not deprecated">
  18402. <doc>
  18403. <![CDATA[{@value}.]]>
  18404. </doc>
  18405. </field>
  18406. <field name="OP_XATTR_GET_MAP" type="java.lang.String"
  18407. transient="false" volatile="false"
  18408. static="true" final="true" visibility="public"
  18409. deprecated="not deprecated">
  18410. <doc>
  18411. <![CDATA[Invoke {@code getXAttrs(Path path)}: {@value}.]]>
  18412. </doc>
  18413. </field>
  18414. <field name="OP_XATTR_GET_NAMED" type="java.lang.String"
  18415. transient="false" volatile="false"
  18416. static="true" final="true" visibility="public"
  18417. deprecated="not deprecated">
  18418. <doc>
  18419. <![CDATA[Invoke {@code getXAttr(Path, String)}: {@value}.]]>
  18420. </doc>
  18421. </field>
  18422. <field name="OP_XATTR_GET_NAMED_MAP" type="java.lang.String"
  18423. transient="false" volatile="false"
  18424. static="true" final="true" visibility="public"
  18425. deprecated="not deprecated">
  18426. <doc>
  18427. <![CDATA[Invoke {@code getXAttrs(Path path, List<String> names)}: {@value}.]]>
  18428. </doc>
  18429. </field>
  18430. <field name="OP_XATTR_LIST" type="java.lang.String"
  18431. transient="false" volatile="false"
  18432. static="true" final="true" visibility="public"
  18433. deprecated="not deprecated">
  18434. <doc>
  18435. <![CDATA[Invoke {@code listXAttrs(Path path)}: {@value}.]]>
  18436. </doc>
  18437. </field>
  18438. <field name="DELEGATION_TOKENS_ISSUED" type="java.lang.String"
  18439. transient="false" volatile="false"
  18440. static="true" final="true" visibility="public"
  18441. deprecated="not deprecated">
  18442. <doc>
  18443. <![CDATA[{@value}.]]>
  18444. </doc>
  18445. </field>
  18446. <field name="STORE_EXISTS_PROBE" type="java.lang.String"
  18447. transient="false" volatile="false"
  18448. static="true" final="true" visibility="public"
  18449. deprecated="not deprecated">
  18450. <doc>
  18451. <![CDATA[Probe for store existing: {@value}.]]>
  18452. </doc>
  18453. </field>
  18454. <field name="STORE_IO_THROTTLED" type="java.lang.String"
  18455. transient="false" volatile="false"
  18456. static="true" final="true" visibility="public"
  18457. deprecated="not deprecated">
  18458. <doc>
  18459. <![CDATA[Requests throttled and retried: {@value}.]]>
  18460. </doc>
  18461. </field>
  18462. <field name="STORE_IO_REQUEST" type="java.lang.String"
  18463. transient="false" volatile="false"
  18464. static="true" final="true" visibility="public"
  18465. deprecated="not deprecated">
  18466. <doc>
  18467. <![CDATA[Requests made of a store: {@value}.]]>
  18468. </doc>
  18469. </field>
  18470. <field name="STORE_IO_RETRY" type="java.lang.String"
  18471. transient="false" volatile="false"
  18472. static="true" final="true" visibility="public"
  18473. deprecated="not deprecated">
  18474. <doc>
  18475. <![CDATA[IO retried: {@value}.]]>
  18476. </doc>
  18477. </field>
  18478. <field name="OBJECT_LIST_REQUEST" type="java.lang.String"
  18479. transient="false" volatile="false"
  18480. static="true" final="true" visibility="public"
  18481. deprecated="not deprecated">
  18482. <doc>
  18483. <![CDATA[A store's equivalent of a paged LIST request was initiated: {@value}.]]>
  18484. </doc>
  18485. </field>
  18486. <field name="OBJECT_CONTINUE_LIST_REQUEST" type="java.lang.String"
  18487. transient="false" volatile="false"
  18488. static="true" final="true" visibility="public"
  18489. deprecated="not deprecated">
  18490. <doc>
  18491. <![CDATA[Number of continued object listings made.
  18492. Value :{@value}.]]>
  18493. </doc>
  18494. </field>
  18495. <field name="OBJECT_BULK_DELETE_REQUEST" type="java.lang.String"
  18496. transient="false" volatile="false"
  18497. static="true" final="true" visibility="public"
  18498. deprecated="not deprecated">
  18499. <doc>
  18500. <![CDATA[A bulk DELETE request was made: {@value}.
  18501. A separate statistic from {@link #OBJECT_DELETE_REQUEST}
  18502. so that metrics on duration of the operations can
  18503. be distinguished.]]>
  18504. </doc>
  18505. </field>
  18506. <field name="OBJECT_DELETE_REQUEST" type="java.lang.String"
  18507. transient="false" volatile="false"
  18508. static="true" final="true" visibility="public"
  18509. deprecated="not deprecated">
  18510. <doc>
  18511. <![CDATA[A store's equivalent of a DELETE request was made: {@value}.
  18512. This may be an HTTP DELETE verb, or it may be some custom
  18513. operation which takes a list of objects to delete.]]>
  18514. </doc>
  18515. </field>
  18516. <field name="OBJECT_DELETE_OBJECTS" type="java.lang.String"
  18517. transient="false" volatile="false"
  18518. static="true" final="true" visibility="public"
  18519. deprecated="not deprecated">
  18520. <doc>
  18521. <![CDATA[The count of objects deleted in delete requests.]]>
  18522. </doc>
  18523. </field>
  18524. <field name="OBJECT_MULTIPART_UPLOAD_INITIATED" type="java.lang.String"
  18525. transient="false" volatile="false"
  18526. static="true" final="true" visibility="public"
  18527. deprecated="not deprecated">
  18528. <doc>
  18529. <![CDATA[Object multipart upload initiated.
  18530. Value :{@value}.]]>
  18531. </doc>
  18532. </field>
  18533. <field name="OBJECT_MULTIPART_UPLOAD_ABORTED" type="java.lang.String"
  18534. transient="false" volatile="false"
  18535. static="true" final="true" visibility="public"
  18536. deprecated="not deprecated">
  18537. <doc>
  18538. <![CDATA[Object multipart upload aborted.
  18539. Value :{@value}.]]>
  18540. </doc>
  18541. </field>
  18542. <field name="OBJECT_PUT_REQUEST" type="java.lang.String"
  18543. transient="false" volatile="false"
  18544. static="true" final="true" visibility="public"
  18545. deprecated="not deprecated">
  18546. <doc>
  18547. <![CDATA[Object put/multipart upload count.
  18548. Value :{@value}.]]>
  18549. </doc>
  18550. </field>
  18551. <field name="OBJECT_PUT_REQUEST_COMPLETED" type="java.lang.String"
  18552. transient="false" volatile="false"
  18553. static="true" final="true" visibility="public"
  18554. deprecated="not deprecated">
  18555. <doc>
  18556. <![CDATA[Object put/multipart upload completed count.
  18557. Value :{@value}.]]>
  18558. </doc>
  18559. </field>
  18560. <field name="OBJECT_PUT_REQUEST_ACTIVE" type="java.lang.String"
  18561. transient="false" volatile="false"
  18562. static="true" final="true" visibility="public"
  18563. deprecated="not deprecated">
  18564. <doc>
  18565. <![CDATA[Current number of active put requests.
  18566. Value :{@value}.]]>
  18567. </doc>
  18568. </field>
  18569. <field name="OBJECT_PUT_BYTES" type="java.lang.String"
  18570. transient="false" volatile="false"
  18571. static="true" final="true" visibility="public"
  18572. deprecated="not deprecated">
  18573. <doc>
  18574. <![CDATA[number of bytes uploaded.
  18575. Value :{@value}.]]>
  18576. </doc>
  18577. </field>
  18578. <field name="OBJECT_PUT_BYTES_PENDING" type="java.lang.String"
  18579. transient="false" volatile="false"
  18580. static="true" final="true" visibility="public"
  18581. deprecated="not deprecated">
  18582. <doc>
  18583. <![CDATA[number of bytes queued for upload/being actively uploaded.
  18584. Value :{@value}.]]>
  18585. </doc>
  18586. </field>
  18587. <field name="OBJECT_SELECT_REQUESTS" type="java.lang.String"
  18588. transient="false" volatile="false"
  18589. static="true" final="true" visibility="public"
  18590. deprecated="not deprecated">
  18591. <doc>
  18592. <![CDATA[Count of S3 Select (or similar) requests issued.
  18593. Value :{@value}.]]>
  18594. </doc>
  18595. </field>
  18596. <field name="SUFFIX_MIN" type="java.lang.String"
  18597. transient="false" volatile="false"
  18598. static="true" final="true" visibility="public"
  18599. deprecated="not deprecated">
  18600. <doc>
  18601. <![CDATA[Suffix to use for a minimum value when
  18602. the same key is shared across min/mean/max
  18603. statistics.
  18604. Value {@value}.]]>
  18605. </doc>
  18606. </field>
  18607. <field name="SUFFIX_MAX" type="java.lang.String"
  18608. transient="false" volatile="false"
  18609. static="true" final="true" visibility="public"
  18610. deprecated="not deprecated">
  18611. <doc>
  18612. <![CDATA[Suffix to use for a maximum value when
  18613. the same key is shared across max/mean/max
  18614. statistics.
  18615. Value {@value}.]]>
  18616. </doc>
  18617. </field>
  18618. <field name="SUFFIX_MEAN" type="java.lang.String"
  18619. transient="false" volatile="false"
  18620. static="true" final="true" visibility="public"
  18621. deprecated="not deprecated">
  18622. <doc>
  18623. <![CDATA[Suffix to use for a mean statistic value when
  18624. the same key is shared across mean/mean/max
  18625. statistics.
  18626. Value {@value}.]]>
  18627. </doc>
  18628. </field>
  18629. <field name="SUFFIX_FAILURES" type="java.lang.String"
  18630. transient="false" volatile="false"
  18631. static="true" final="true" visibility="public"
  18632. deprecated="not deprecated">
  18633. <doc>
  18634. <![CDATA[String to add to counters and other stats to track failures.
  18635. This comes before the .min/.mean//max suffixes.
  18636. Value {@value}.]]>
  18637. </doc>
  18638. </field>
  18639. <field name="ACTION_EXECUTOR_ACQUIRED" type="java.lang.String"
  18640. transient="false" volatile="false"
  18641. static="true" final="true" visibility="public"
  18642. deprecated="not deprecated">
  18643. <doc>
  18644. <![CDATA[The name of the statistic collected for executor acquisition if
  18645. a duration tracker factory is passed in to the constructor.
  18646. {@value}.]]>
  18647. </doc>
  18648. </field>
  18649. <field name="ACTION_HTTP_HEAD_REQUEST" type="java.lang.String"
  18650. transient="false" volatile="false"
  18651. static="true" final="true" visibility="public"
  18652. deprecated="not deprecated">
  18653. <doc>
  18654. <![CDATA[An HTTP HEAD request was made: {@value}.]]>
  18655. </doc>
  18656. </field>
  18657. <field name="ACTION_HTTP_GET_REQUEST" type="java.lang.String"
  18658. transient="false" volatile="false"
  18659. static="true" final="true" visibility="public"
  18660. deprecated="not deprecated">
  18661. <doc>
  18662. <![CDATA[An HTTP GET request was made: {@value}.]]>
  18663. </doc>
  18664. </field>
  18665. <field name="ACTION_HTTP_DELETE_REQUEST" type="java.lang.String"
  18666. transient="false" volatile="false"
  18667. static="true" final="true" visibility="public"
  18668. deprecated="not deprecated">
  18669. <doc>
  18670. <![CDATA[An HTTP DELETE request was made: {@value}.]]>
  18671. </doc>
  18672. </field>
  18673. <field name="ACTION_HTTP_PUT_REQUEST" type="java.lang.String"
  18674. transient="false" volatile="false"
  18675. static="true" final="true" visibility="public"
  18676. deprecated="not deprecated">
  18677. <doc>
  18678. <![CDATA[An HTTP PUT request was made: {@value}.]]>
  18679. </doc>
  18680. </field>
  18681. <field name="ACTION_HTTP_PATCH_REQUEST" type="java.lang.String"
  18682. transient="false" volatile="false"
  18683. static="true" final="true" visibility="public"
  18684. deprecated="not deprecated">
  18685. <doc>
  18686. <![CDATA[An HTTP PATCH request was made: {@value}.]]>
  18687. </doc>
  18688. </field>
  18689. <field name="ACTION_HTTP_POST_REQUEST" type="java.lang.String"
  18690. transient="false" volatile="false"
  18691. static="true" final="true" visibility="public"
  18692. deprecated="not deprecated">
  18693. <doc>
  18694. <![CDATA[An HTTP POST request was made: {@value}.]]>
  18695. </doc>
  18696. </field>
  18697. <field name="OBJECT_METADATA_REQUESTS" type="java.lang.String"
  18698. transient="false" volatile="false"
  18699. static="true" final="true" visibility="public"
  18700. deprecated="not deprecated">
  18701. <doc>
  18702. <![CDATA[An HTTP HEAD request was made: {@value}.]]>
  18703. </doc>
  18704. </field>
  18705. <field name="OBJECT_COPY_REQUESTS" type="java.lang.String"
  18706. transient="false" volatile="false"
  18707. static="true" final="true" visibility="public"
  18708. deprecated="not deprecated">
  18709. </field>
  18710. <field name="STORE_IO_THROTTLE_RATE" type="java.lang.String"
  18711. transient="false" volatile="false"
  18712. static="true" final="true" visibility="public"
  18713. deprecated="not deprecated">
  18714. </field>
  18715. <field name="MULTIPART_UPLOAD_INSTANTIATED" type="java.lang.String"
  18716. transient="false" volatile="false"
  18717. static="true" final="true" visibility="public"
  18718. deprecated="not deprecated">
  18719. </field>
  18720. <field name="MULTIPART_UPLOAD_PART_PUT" type="java.lang.String"
  18721. transient="false" volatile="false"
  18722. static="true" final="true" visibility="public"
  18723. deprecated="not deprecated">
  18724. </field>
  18725. <field name="MULTIPART_UPLOAD_PART_PUT_BYTES" type="java.lang.String"
  18726. transient="false" volatile="false"
  18727. static="true" final="true" visibility="public"
  18728. deprecated="not deprecated">
  18729. </field>
  18730. <field name="MULTIPART_UPLOAD_ABORTED" type="java.lang.String"
  18731. transient="false" volatile="false"
  18732. static="true" final="true" visibility="public"
  18733. deprecated="not deprecated">
  18734. </field>
  18735. <field name="MULTIPART_UPLOAD_ABORT_UNDER_PATH_INVOKED" type="java.lang.String"
  18736. transient="false" volatile="false"
  18737. static="true" final="true" visibility="public"
  18738. deprecated="not deprecated">
  18739. </field>
  18740. <field name="MULTIPART_UPLOAD_COMPLETED" type="java.lang.String"
  18741. transient="false" volatile="false"
  18742. static="true" final="true" visibility="public"
  18743. deprecated="not deprecated">
  18744. </field>
  18745. <field name="MULTIPART_UPLOAD_STARTED" type="java.lang.String"
  18746. transient="false" volatile="false"
  18747. static="true" final="true" visibility="public"
  18748. deprecated="not deprecated">
  18749. </field>
  18750. <field name="MULTIPART_UPLOAD_LIST" type="java.lang.String"
  18751. transient="false" volatile="false"
  18752. static="true" final="true" visibility="public"
  18753. deprecated="not deprecated">
  18754. </field>
  18755. <doc>
  18756. <![CDATA[Common statistic names for object store operations..
  18757. <p>
  18758. When adding new common statistic name constants, please make them unique.
  18759. By convention:
  18760. </p>
  18761. <ul>
  18762. <li>the name of the constants are uppercase, words separated by
  18763. underscores.</li>
  18764. <li>the value of the constants are lowercase of the constant names.</li>
  18765. </ul>]]>
  18766. </doc>
  18767. </class>
  18768. <!-- end class org.apache.hadoop.fs.statistics.StoreStatisticNames -->
  18769. <!-- start class org.apache.hadoop.fs.statistics.StreamStatisticNames -->
  18770. <class name="StreamStatisticNames" extends="java.lang.Object"
  18771. abstract="false"
  18772. static="false" final="true" visibility="public"
  18773. deprecated="not deprecated">
  18774. <field name="STREAM_READ_ABORTED" type="java.lang.String"
  18775. transient="false" volatile="false"
  18776. static="true" final="true" visibility="public"
  18777. deprecated="not deprecated">
  18778. <doc>
  18779. <![CDATA[Count of times the TCP stream was aborted.
  18780. Value: {@value}.]]>
  18781. </doc>
  18782. </field>
  18783. <field name="STREAM_READ_BYTES" type="java.lang.String"
  18784. transient="false" volatile="false"
  18785. static="true" final="true" visibility="public"
  18786. deprecated="not deprecated">
  18787. <doc>
  18788. <![CDATA[Bytes read from an input stream in read() calls.
  18789. Does not include bytes read and then discarded in seek/close etc.
  18790. These are the bytes returned to the caller.
  18791. Value: {@value}.]]>
  18792. </doc>
  18793. </field>
  18794. <field name="STREAM_READ_BYTES_DISCARDED_ABORT" type="java.lang.String"
  18795. transient="false" volatile="false"
  18796. static="true" final="true" visibility="public"
  18797. deprecated="not deprecated">
  18798. <doc>
  18799. <![CDATA[Count of bytes discarded by aborting an input stream .
  18800. Value: {@value}.]]>
  18801. </doc>
  18802. </field>
  18803. <field name="STREAM_READ_BYTES_DISCARDED_CLOSE" type="java.lang.String"
  18804. transient="false" volatile="false"
  18805. static="true" final="true" visibility="public"
  18806. deprecated="not deprecated">
  18807. <doc>
  18808. <![CDATA[Count of bytes read and discarded when closing an input stream.
  18809. Value: {@value}.]]>
  18810. </doc>
  18811. </field>
  18812. <field name="STREAM_READ_CLOSED" type="java.lang.String"
  18813. transient="false" volatile="false"
  18814. static="true" final="true" visibility="public"
  18815. deprecated="not deprecated">
  18816. <doc>
  18817. <![CDATA[Count of times the TCP stream was closed.
  18818. Value: {@value}.]]>
  18819. </doc>
  18820. </field>
  18821. <field name="STREAM_READ_CLOSE_OPERATIONS" type="java.lang.String"
  18822. transient="false" volatile="false"
  18823. static="true" final="true" visibility="public"
  18824. deprecated="not deprecated">
  18825. <doc>
  18826. <![CDATA[Total count of times an attempt to close an input stream was made
  18827. Value: {@value}.]]>
  18828. </doc>
  18829. </field>
  18830. <field name="STREAM_READ_OPENED" type="java.lang.String"
  18831. transient="false" volatile="false"
  18832. static="true" final="true" visibility="public"
  18833. deprecated="not deprecated">
  18834. <doc>
  18835. <![CDATA[Total count of times an input stream to was opened.
  18836. For object stores, that means the count a GET request was initiated.
  18837. Value: {@value}.]]>
  18838. </doc>
  18839. </field>
  18840. <field name="STREAM_READ_EXCEPTIONS" type="java.lang.String"
  18841. transient="false" volatile="false"
  18842. static="true" final="true" visibility="public"
  18843. deprecated="not deprecated">
  18844. <doc>
  18845. <![CDATA[Count of exceptions raised during input stream reads.
  18846. Value: {@value}.]]>
  18847. </doc>
  18848. </field>
  18849. <field name="STREAM_READ_FULLY_OPERATIONS" type="java.lang.String"
  18850. transient="false" volatile="false"
  18851. static="true" final="true" visibility="public"
  18852. deprecated="not deprecated">
  18853. <doc>
  18854. <![CDATA[Count of readFully() operations in an input stream.
  18855. Value: {@value}.]]>
  18856. </doc>
  18857. </field>
  18858. <field name="STREAM_READ_OPERATIONS" type="java.lang.String"
  18859. transient="false" volatile="false"
  18860. static="true" final="true" visibility="public"
  18861. deprecated="not deprecated">
  18862. <doc>
  18863. <![CDATA[Count of read() operations in an input stream.
  18864. Value: {@value}.]]>
  18865. </doc>
  18866. </field>
  18867. <field name="STREAM_READ_OPERATIONS_INCOMPLETE" type="java.lang.String"
  18868. transient="false" volatile="false"
  18869. static="true" final="true" visibility="public"
  18870. deprecated="not deprecated">
  18871. <doc>
  18872. <![CDATA[Count of incomplete read() operations in an input stream,
  18873. that is, when the bytes returned were less than that requested.
  18874. Value: {@value}.]]>
  18875. </doc>
  18876. </field>
  18877. <field name="STREAM_READ_VERSION_MISMATCHES" type="java.lang.String"
  18878. transient="false" volatile="false"
  18879. static="true" final="true" visibility="public"
  18880. deprecated="not deprecated">
  18881. <doc>
  18882. <![CDATA[Count of version mismatches encountered while reading an input stream.
  18883. Value: {@value}.]]>
  18884. </doc>
  18885. </field>
  18886. <field name="STREAM_READ_SEEK_BACKWARD_OPERATIONS" type="java.lang.String"
  18887. transient="false" volatile="false"
  18888. static="true" final="true" visibility="public"
  18889. deprecated="not deprecated">
  18890. <doc>
  18891. <![CDATA[Count of executed seek operations which went backwards in a stream.
  18892. Value: {@value}.]]>
  18893. </doc>
  18894. </field>
  18895. <field name="STREAM_READ_SEEK_BYTES_BACKWARDS" type="java.lang.String"
  18896. transient="false" volatile="false"
  18897. static="true" final="true" visibility="public"
  18898. deprecated="not deprecated">
  18899. <doc>
  18900. <![CDATA[Count of bytes moved backwards during seek operations
  18901. in an input stream.
  18902. Value: {@value}.]]>
  18903. </doc>
  18904. </field>
  18905. <field name="STREAM_READ_SEEK_BYTES_DISCARDED" type="java.lang.String"
  18906. transient="false" volatile="false"
  18907. static="true" final="true" visibility="public"
  18908. deprecated="not deprecated">
  18909. <doc>
  18910. <![CDATA[Count of bytes read and discarded during seek() in an input stream.
  18911. Value: {@value}.]]>
  18912. </doc>
  18913. </field>
  18914. <field name="STREAM_READ_SEEK_BYTES_SKIPPED" type="java.lang.String"
  18915. transient="false" volatile="false"
  18916. static="true" final="true" visibility="public"
  18917. deprecated="not deprecated">
  18918. <doc>
  18919. <![CDATA[Count of bytes skipped during forward seek operations.
  18920. Value: {@value}.]]>
  18921. </doc>
  18922. </field>
  18923. <field name="STREAM_READ_SEEK_FORWARD_OPERATIONS" type="java.lang.String"
  18924. transient="false" volatile="false"
  18925. static="true" final="true" visibility="public"
  18926. deprecated="not deprecated">
  18927. <doc>
  18928. <![CDATA[Count of executed seek operations which went forward in
  18929. an input stream.
  18930. Value: {@value}.]]>
  18931. </doc>
  18932. </field>
  18933. <field name="STREAM_READ_SEEK_POLICY_CHANGED" type="java.lang.String"
  18934. transient="false" volatile="false"
  18935. static="true" final="true" visibility="public"
  18936. deprecated="not deprecated">
  18937. <doc>
  18938. <![CDATA[Count of times the seek policy was dynamically changed
  18939. in an input stream.
  18940. Value: {@value}.]]>
  18941. </doc>
  18942. </field>
  18943. <field name="STREAM_READ_SEEK_OPERATIONS" type="java.lang.String"
  18944. transient="false" volatile="false"
  18945. static="true" final="true" visibility="public"
  18946. deprecated="not deprecated">
  18947. <doc>
  18948. <![CDATA[Count of seek operations in an input stream.
  18949. Value: {@value}.]]>
  18950. </doc>
  18951. </field>
  18952. <field name="STREAM_READ_SKIP_OPERATIONS" type="java.lang.String"
  18953. transient="false" volatile="false"
  18954. static="true" final="true" visibility="public"
  18955. deprecated="not deprecated">
  18956. <doc>
  18957. <![CDATA[Count of {@code InputStream.skip()} calls.
  18958. Value: {@value}.]]>
  18959. </doc>
  18960. </field>
  18961. <field name="STREAM_READ_SKIP_BYTES" type="java.lang.String"
  18962. transient="false" volatile="false"
  18963. static="true" final="true" visibility="public"
  18964. deprecated="not deprecated">
  18965. <doc>
  18966. <![CDATA[Count bytes skipped in {@code InputStream.skip()} calls.
  18967. Value: {@value}.]]>
  18968. </doc>
  18969. </field>
  18970. <field name="STREAM_READ_TOTAL_BYTES" type="java.lang.String"
  18971. transient="false" volatile="false"
  18972. static="true" final="true" visibility="public"
  18973. deprecated="not deprecated">
  18974. <doc>
  18975. <![CDATA[Total count of bytes read from an input stream.
  18976. Value: {@value}.]]>
  18977. </doc>
  18978. </field>
  18979. <field name="STREAM_READ_UNBUFFERED" type="java.lang.String"
  18980. transient="false" volatile="false"
  18981. static="true" final="true" visibility="public"
  18982. deprecated="not deprecated">
  18983. <doc>
  18984. <![CDATA[Count of calls of {@code CanUnbuffer.unbuffer()}.
  18985. Value: {@value}.]]>
  18986. </doc>
  18987. </field>
  18988. <field name="STREAM_WRITE_EXCEPTIONS" type="java.lang.String"
  18989. transient="false" volatile="false"
  18990. static="true" final="true" visibility="public"
  18991. deprecated="not deprecated">
  18992. <doc>
  18993. <![CDATA["Count of stream write failures reported.
  18994. Value: {@value}.]]>
  18995. </doc>
  18996. </field>
  18997. <field name="STREAM_WRITE_EXCEPTIONS_COMPLETING_UPLOADS" type="java.lang.String"
  18998. transient="false" volatile="false"
  18999. static="true" final="true" visibility="public"
  19000. deprecated="not deprecated">
  19001. <doc>
  19002. <![CDATA[Count of failures when finalizing a multipart upload:
  19003. {@value}.]]>
  19004. </doc>
  19005. </field>
  19006. <field name="STREAM_WRITE_BLOCK_UPLOADS" type="java.lang.String"
  19007. transient="false" volatile="false"
  19008. static="true" final="true" visibility="public"
  19009. deprecated="not deprecated">
  19010. <doc>
  19011. <![CDATA[Count of block/partition uploads complete.
  19012. Value: {@value}.]]>
  19013. </doc>
  19014. </field>
  19015. <field name="STREAM_WRITE_BLOCK_UPLOADS_ABORTED" type="java.lang.String"
  19016. transient="false" volatile="false"
  19017. static="true" final="true" visibility="public"
  19018. deprecated="not deprecated">
  19019. <doc>
  19020. <![CDATA[Count of number of block uploads aborted.
  19021. Value: {@value}.]]>
  19022. </doc>
  19023. </field>
  19024. <field name="STREAM_WRITE_BLOCK_UPLOADS_ACTIVE" type="java.lang.String"
  19025. transient="false" volatile="false"
  19026. static="true" final="true" visibility="public"
  19027. deprecated="not deprecated">
  19028. <doc>
  19029. <![CDATA[Count of block/partition uploads active.
  19030. Value: {@value}.]]>
  19031. </doc>
  19032. </field>
  19033. <field name="STREAM_WRITE_BLOCK_UPLOADS_BYTES_PENDING" type="java.lang.String"
  19034. transient="false" volatile="false"
  19035. static="true" final="true" visibility="public"
  19036. deprecated="not deprecated">
  19037. <doc>
  19038. <![CDATA[Gauge of data queued to be written.
  19039. Value: {@value}.]]>
  19040. </doc>
  19041. </field>
  19042. <field name="STREAM_WRITE_BLOCK_UPLOADS_COMMITTED" type="java.lang.String"
  19043. transient="false" volatile="false"
  19044. static="true" final="true" visibility="public"
  19045. deprecated="not deprecated">
  19046. <doc>
  19047. <![CDATA[Count of number of block uploads committed.
  19048. Value: {@value}.]]>
  19049. </doc>
  19050. </field>
  19051. <field name="STREAM_WRITE_BLOCK_UPLOADS_PENDING" type="java.lang.String"
  19052. transient="false" volatile="false"
  19053. static="true" final="true" visibility="public"
  19054. deprecated="not deprecated">
  19055. <doc>
  19056. <![CDATA[Gauge of block/partitions uploads queued to be written.
  19057. Value: {@value}.]]>
  19058. </doc>
  19059. </field>
  19060. <field name="STREAM_WRITE_BYTES" type="java.lang.String"
  19061. transient="false" volatile="false"
  19062. static="true" final="true" visibility="public"
  19063. deprecated="not deprecated">
  19064. <doc>
  19065. <![CDATA["Count of bytes written to output stream including all not yet uploaded.
  19066. {@value}.]]>
  19067. </doc>
  19068. </field>
  19069. <field name="STREAM_WRITE_TOTAL_TIME" type="java.lang.String"
  19070. transient="false" volatile="false"
  19071. static="true" final="true" visibility="public"
  19072. deprecated="not deprecated">
  19073. <doc>
  19074. <![CDATA[Count of total time taken for uploads to complete.
  19075. {@value}.]]>
  19076. </doc>
  19077. </field>
  19078. <field name="STREAM_WRITE_QUEUE_DURATION" type="java.lang.String"
  19079. transient="false" volatile="false"
  19080. static="true" final="true" visibility="public"
  19081. deprecated="not deprecated">
  19082. <doc>
  19083. <![CDATA[Total queue duration of all block uploads.
  19084. {@value}.]]>
  19085. </doc>
  19086. </field>
  19087. <field name="STREAM_WRITE_TOTAL_DATA" type="java.lang.String"
  19088. transient="false" volatile="false"
  19089. static="true" final="true" visibility="public"
  19090. deprecated="not deprecated">
  19091. </field>
  19092. <field name="BYTES_TO_UPLOAD" type="java.lang.String"
  19093. transient="false" volatile="false"
  19094. static="true" final="true" visibility="public"
  19095. deprecated="not deprecated">
  19096. <doc>
  19097. <![CDATA[Number of bytes to upload from an OutputStream.]]>
  19098. </doc>
  19099. </field>
  19100. <field name="BYTES_UPLOAD_SUCCESSFUL" type="java.lang.String"
  19101. transient="false" volatile="false"
  19102. static="true" final="true" visibility="public"
  19103. deprecated="not deprecated">
  19104. <doc>
  19105. <![CDATA[Number of bytes uploaded successfully to the object store.]]>
  19106. </doc>
  19107. </field>
  19108. <field name="BYTES_UPLOAD_FAILED" type="java.lang.String"
  19109. transient="false" volatile="false"
  19110. static="true" final="true" visibility="public"
  19111. deprecated="not deprecated">
  19112. <doc>
  19113. <![CDATA[Number of bytes failed to upload to the object store.]]>
  19114. </doc>
  19115. </field>
  19116. <field name="TIME_SPENT_ON_TASK_WAIT" type="java.lang.String"
  19117. transient="false" volatile="false"
  19118. static="true" final="true" visibility="public"
  19119. deprecated="not deprecated">
  19120. <doc>
  19121. <![CDATA[Total time spent on waiting for a task to complete.]]>
  19122. </doc>
  19123. </field>
  19124. <field name="QUEUE_SHRUNK_OPS" type="java.lang.String"
  19125. transient="false" volatile="false"
  19126. static="true" final="true" visibility="public"
  19127. deprecated="not deprecated">
  19128. <doc>
  19129. <![CDATA[Number of task queue shrunk operations.]]>
  19130. </doc>
  19131. </field>
  19132. <field name="WRITE_CURRENT_BUFFER_OPERATIONS" type="java.lang.String"
  19133. transient="false" volatile="false"
  19134. static="true" final="true" visibility="public"
  19135. deprecated="not deprecated">
  19136. <doc>
  19137. <![CDATA[Number of times current buffer is written to the service.]]>
  19138. </doc>
  19139. </field>
  19140. <field name="TIME_SPENT_ON_PUT_REQUEST" type="java.lang.String"
  19141. transient="false" volatile="false"
  19142. static="true" final="true" visibility="public"
  19143. deprecated="not deprecated">
  19144. <doc>
  19145. <![CDATA[Total time spent on completing a PUT request.]]>
  19146. </doc>
  19147. </field>
  19148. <field name="SEEK_IN_BUFFER" type="java.lang.String"
  19149. transient="false" volatile="false"
  19150. static="true" final="true" visibility="public"
  19151. deprecated="not deprecated">
  19152. <doc>
  19153. <![CDATA[Number of seeks in buffer.]]>
  19154. </doc>
  19155. </field>
  19156. <field name="BYTES_READ_BUFFER" type="java.lang.String"
  19157. transient="false" volatile="false"
  19158. static="true" final="true" visibility="public"
  19159. deprecated="not deprecated">
  19160. <doc>
  19161. <![CDATA[Number of bytes read from the buffer.]]>
  19162. </doc>
  19163. </field>
  19164. <field name="REMOTE_READ_OP" type="java.lang.String"
  19165. transient="false" volatile="false"
  19166. static="true" final="true" visibility="public"
  19167. deprecated="not deprecated">
  19168. <doc>
  19169. <![CDATA[Total number of remote read operations performed.]]>
  19170. </doc>
  19171. </field>
  19172. <field name="READ_AHEAD_BYTES_READ" type="java.lang.String"
  19173. transient="false" volatile="false"
  19174. static="true" final="true" visibility="public"
  19175. deprecated="not deprecated">
  19176. <doc>
  19177. <![CDATA[Total number of bytes read from readAhead.]]>
  19178. </doc>
  19179. </field>
  19180. <field name="REMOTE_BYTES_READ" type="java.lang.String"
  19181. transient="false" volatile="false"
  19182. static="true" final="true" visibility="public"
  19183. deprecated="not deprecated">
  19184. <doc>
  19185. <![CDATA[Total number of bytes read from remote operations.]]>
  19186. </doc>
  19187. </field>
  19188. <field name="BLOCKS_ALLOCATED" type="java.lang.String"
  19189. transient="false" volatile="false"
  19190. static="true" final="true" visibility="public"
  19191. deprecated="not deprecated">
  19192. <doc>
  19193. <![CDATA[Total number of Data blocks allocated by an outputStream.]]>
  19194. </doc>
  19195. </field>
  19196. <field name="BLOCKS_RELEASED" type="java.lang.String"
  19197. transient="false" volatile="false"
  19198. static="true" final="true" visibility="public"
  19199. deprecated="not deprecated">
  19200. <doc>
  19201. <![CDATA[Total number of Data blocks released by an outputStream.]]>
  19202. </doc>
  19203. </field>
  19204. <doc>
  19205. <![CDATA[These are common statistic names.
  19206. <p>
  19207. When adding new common statistic name constants, please make them unique.
  19208. By convention, they are implicitly unique:
  19209. <ul>
  19210. <li>
  19211. The name of the constants are uppercase, words separated by
  19212. underscores.
  19213. </li>
  19214. <li>
  19215. The value of the constants are lowercase of the constant names.
  19216. </li>
  19217. </ul>]]>
  19218. </doc>
  19219. </class>
  19220. <!-- end class org.apache.hadoop.fs.statistics.StreamStatisticNames -->
  19221. </package>
  19222. <package name="org.apache.hadoop.ha">
  19223. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  19224. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  19225. abstract="false"
  19226. static="false" final="false" visibility="public"
  19227. deprecated="not deprecated">
  19228. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  19229. static="false" final="false" visibility="public"
  19230. deprecated="not deprecated">
  19231. </constructor>
  19232. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. </constructor>
  19236. <doc>
  19237. <![CDATA[Indicates that the operator has specified an invalid configuration
  19238. for fencing methods.]]>
  19239. </doc>
  19240. </class>
  19241. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  19242. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  19243. <class name="FailoverFailedException" extends="java.lang.Exception"
  19244. abstract="false"
  19245. static="false" final="false" visibility="public"
  19246. deprecated="not deprecated">
  19247. <constructor name="FailoverFailedException" type="java.lang.String"
  19248. static="false" final="false" visibility="public"
  19249. deprecated="not deprecated">
  19250. </constructor>
  19251. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  19252. static="false" final="false" visibility="public"
  19253. deprecated="not deprecated">
  19254. </constructor>
  19255. <doc>
  19256. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  19257. </doc>
  19258. </class>
  19259. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  19260. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  19261. <interface name="FenceMethod" abstract="true"
  19262. static="false" final="false" visibility="public"
  19263. deprecated="not deprecated">
  19264. <method name="checkArgs"
  19265. abstract="true" native="false" synchronized="false"
  19266. static="false" final="false" visibility="public"
  19267. deprecated="not deprecated">
  19268. <param name="args" type="java.lang.String"/>
  19269. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19270. <doc>
  19271. <![CDATA[Verify that the given fencing method's arguments are valid.
  19272. @param args the arguments provided in the configuration. This may
  19273. be null if the operator did not configure any arguments.
  19274. @throws BadFencingConfigurationException if the arguments are invalid]]>
  19275. </doc>
  19276. </method>
  19277. <method name="tryFence" return="boolean"
  19278. abstract="true" native="false" synchronized="false"
  19279. static="false" final="false" visibility="public"
  19280. deprecated="not deprecated">
  19281. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  19282. <param name="args" type="java.lang.String"/>
  19283. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19284. <doc>
  19285. <![CDATA[Attempt to fence the target node.
  19286. @param target the target of the service to fence
  19287. @param args the configured arguments, which were checked at startup by
  19288. {@link #checkArgs(String)}
  19289. @return true if fencing was successful, false if unsuccessful or
  19290. indeterminate
  19291. @throws BadFencingConfigurationException if the configuration was
  19292. determined to be invalid only at runtime]]>
  19293. </doc>
  19294. </method>
  19295. <doc>
  19296. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  19297. another node from making continued progress. This might be implemented
  19298. by killing a process on the other node, by denying the other node's
  19299. access to shared storage, or by accessing a PDU to cut the other node's
  19300. power.
  19301. <p>
  19302. Since these methods are often vendor- or device-specific, operators
  19303. may implement this interface in order to achieve fencing.
  19304. <p>
  19305. Fencing is configured by the operator as an ordered list of methods to
  19306. attempt. Each method will be tried in turn, and the next in the list
  19307. will only be attempted if the previous one fails. See {@link NodeFencer}
  19308. for more information.
  19309. <p>
  19310. If an implementation also implements {@link Configurable} then its
  19311. <code>setConf</code> method will be called upon instantiation.]]>
  19312. </doc>
  19313. </interface>
  19314. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  19315. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  19316. <interface name="HAServiceProtocol" abstract="true"
  19317. static="false" final="false" visibility="public"
  19318. deprecated="not deprecated">
  19319. <method name="monitorHealth"
  19320. abstract="true" native="false" synchronized="false"
  19321. static="false" final="false" visibility="public"
  19322. deprecated="not deprecated">
  19323. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  19324. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19325. <exception name="IOException" type="java.io.IOException"/>
  19326. <doc>
  19327. <![CDATA[Monitor the health of service. This periodically called by the HA
  19328. frameworks to monitor the health of the service.
  19329. Service is expected to perform checks to ensure it is functional.
  19330. If the service is not healthy due to failure or partial failure,
  19331. it is expected to throw {@link HealthCheckFailedException}.
  19332. The definition of service not healthy is left to the service.
  19333. Note that when health check of an Active service fails,
  19334. failover to standby may be done.
  19335. @throws HealthCheckFailedException
  19336. if the health check of a service fails.
  19337. @throws AccessControlException
  19338. if access is denied.
  19339. @throws IOException
  19340. if other errors happen]]>
  19341. </doc>
  19342. </method>
  19343. <method name="transitionToActive"
  19344. abstract="true" native="false" synchronized="false"
  19345. static="false" final="false" visibility="public"
  19346. deprecated="not deprecated">
  19347. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19348. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  19349. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19350. <exception name="IOException" type="java.io.IOException"/>
  19351. <doc>
  19352. <![CDATA[Request service to transition to active state. No operation, if the
  19353. service is already in active state.
  19354. @throws ServiceFailedException
  19355. if transition from standby to active fails.
  19356. @throws AccessControlException
  19357. if access is denied.
  19358. @throws IOException
  19359. if other errors happen]]>
  19360. </doc>
  19361. </method>
  19362. <method name="transitionToStandby"
  19363. abstract="true" native="false" synchronized="false"
  19364. static="false" final="false" visibility="public"
  19365. deprecated="not deprecated">
  19366. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19367. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  19368. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19369. <exception name="IOException" type="java.io.IOException"/>
  19370. <doc>
  19371. <![CDATA[Request service to transition to standby state. No operation, if the
  19372. service is already in standby state.
  19373. @throws ServiceFailedException
  19374. if transition from active to standby fails.
  19375. @throws AccessControlException
  19376. if access is denied.
  19377. @throws IOException
  19378. if other errors happen]]>
  19379. </doc>
  19380. </method>
  19381. <method name="transitionToObserver"
  19382. abstract="true" native="false" synchronized="false"
  19383. static="false" final="false" visibility="public"
  19384. deprecated="not deprecated">
  19385. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19386. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  19387. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19388. <exception name="IOException" type="java.io.IOException"/>
  19389. <doc>
  19390. <![CDATA[Request service to transition to observer state. No operation, if the
  19391. service is already in observer state.
  19392. @throws ServiceFailedException
  19393. if transition from standby to observer fails.
  19394. @throws AccessControlException
  19395. if access is denied.
  19396. @throws IOException
  19397. if other errors happen]]>
  19398. </doc>
  19399. </method>
  19400. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  19401. abstract="true" native="false" synchronized="false"
  19402. static="false" final="false" visibility="public"
  19403. deprecated="not deprecated">
  19404. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19405. <exception name="IOException" type="java.io.IOException"/>
  19406. <doc>
  19407. <![CDATA[Return the current status of the service. The status indicates
  19408. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  19409. some additional information.
  19410. @throws AccessControlException
  19411. if access is denied.
  19412. @throws IOException
  19413. if other errors happen
  19414. @see HAServiceStatus]]>
  19415. </doc>
  19416. </method>
  19417. <field name="versionID" type="long"
  19418. transient="false" volatile="false"
  19419. static="true" final="true" visibility="public"
  19420. deprecated="not deprecated">
  19421. <doc>
  19422. <![CDATA[Initial version of the protocol]]>
  19423. </doc>
  19424. </field>
  19425. <doc>
  19426. <![CDATA[Protocol interface that provides High Availability related primitives to
  19427. monitor and fail-over the service.
  19428. This interface could be used by HA frameworks to manage the service.]]>
  19429. </doc>
  19430. </interface>
  19431. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  19432. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  19433. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  19434. abstract="false"
  19435. static="false" final="false" visibility="public"
  19436. deprecated="not deprecated">
  19437. <constructor name="HAServiceProtocolHelper"
  19438. static="false" final="false" visibility="public"
  19439. deprecated="not deprecated">
  19440. </constructor>
  19441. <method name="monitorHealth"
  19442. abstract="false" native="false" synchronized="false"
  19443. static="true" final="false" visibility="public"
  19444. deprecated="not deprecated">
  19445. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19446. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19447. <exception name="IOException" type="java.io.IOException"/>
  19448. </method>
  19449. <method name="transitionToActive"
  19450. abstract="false" native="false" synchronized="false"
  19451. static="true" final="false" visibility="public"
  19452. deprecated="not deprecated">
  19453. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19454. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19455. <exception name="IOException" type="java.io.IOException"/>
  19456. </method>
  19457. <method name="transitionToStandby"
  19458. abstract="false" native="false" synchronized="false"
  19459. static="true" final="false" visibility="public"
  19460. deprecated="not deprecated">
  19461. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19462. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19463. <exception name="IOException" type="java.io.IOException"/>
  19464. </method>
  19465. <method name="transitionToObserver"
  19466. abstract="false" native="false" synchronized="false"
  19467. static="true" final="false" visibility="public"
  19468. deprecated="not deprecated">
  19469. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19470. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19471. <exception name="IOException" type="java.io.IOException"/>
  19472. </method>
  19473. <doc>
  19474. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  19475. unwraps the {@link RemoteException} to specific exceptions.]]>
  19476. </doc>
  19477. </class>
  19478. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  19479. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  19480. <class name="HAServiceTarget" extends="java.lang.Object"
  19481. abstract="true"
  19482. static="false" final="false" visibility="public"
  19483. deprecated="not deprecated">
  19484. <constructor name="HAServiceTarget"
  19485. static="false" final="false" visibility="public"
  19486. deprecated="not deprecated">
  19487. </constructor>
  19488. <method name="getAddress" return="java.net.InetSocketAddress"
  19489. abstract="true" native="false" synchronized="false"
  19490. static="false" final="false" visibility="public"
  19491. deprecated="not deprecated">
  19492. <doc>
  19493. <![CDATA[@return the IPC address of the target node.]]>
  19494. </doc>
  19495. </method>
  19496. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  19497. abstract="false" native="false" synchronized="false"
  19498. static="false" final="false" visibility="public"
  19499. deprecated="not deprecated">
  19500. <doc>
  19501. <![CDATA[Returns an optional separate RPC server address for health checks at the
  19502. target node. If defined, then this address is used by the health monitor
  19503. for the {@link HAServiceProtocol#monitorHealth()} and
  19504. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  19505. separating out these calls onto separate RPC handlers to protect against
  19506. resource exhaustion in the main RPC handler pool. If null (which is the
  19507. default implementation), then all RPC calls go to the address defined by
  19508. {@link #getAddress()}.
  19509. @return IPC address of the lifeline RPC server on the target node, or null
  19510. if no lifeline RPC server is used]]>
  19511. </doc>
  19512. </method>
  19513. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  19514. abstract="true" native="false" synchronized="false"
  19515. static="false" final="false" visibility="public"
  19516. deprecated="not deprecated">
  19517. <doc>
  19518. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  19519. </doc>
  19520. </method>
  19521. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  19522. abstract="true" native="false" synchronized="false"
  19523. static="false" final="false" visibility="public"
  19524. deprecated="not deprecated">
  19525. <doc>
  19526. <![CDATA[@return a Fencer implementation configured for this target node]]>
  19527. </doc>
  19528. </method>
  19529. <method name="checkFencingConfigured"
  19530. abstract="true" native="false" synchronized="false"
  19531. static="false" final="false" visibility="public"
  19532. deprecated="not deprecated">
  19533. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19534. <doc>
  19535. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  19536. appears to be invalid. This is divorced from the above
  19537. {@link #getFencer()} method so that the configuration can be checked
  19538. during the pre-flight phase of failover.]]>
  19539. </doc>
  19540. </method>
  19541. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  19542. abstract="false" native="false" synchronized="false"
  19543. static="false" final="false" visibility="public"
  19544. deprecated="not deprecated">
  19545. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19546. <param name="timeoutMs" type="int"/>
  19547. <exception name="IOException" type="java.io.IOException"/>
  19548. <doc>
  19549. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  19550. </doc>
  19551. </method>
  19552. <method name="setTransitionTargetHAStatus"
  19553. abstract="false" native="false" synchronized="false"
  19554. static="false" final="false" visibility="public"
  19555. deprecated="not deprecated">
  19556. <param name="status" type="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"/>
  19557. </method>
  19558. <method name="getTransitionTargetHAStatus" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  19559. abstract="false" native="false" synchronized="false"
  19560. static="false" final="false" visibility="public"
  19561. deprecated="not deprecated">
  19562. </method>
  19563. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  19564. abstract="false" native="false" synchronized="false"
  19565. static="false" final="false" visibility="public"
  19566. deprecated="not deprecated">
  19567. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19568. <param name="timeoutMs" type="int"/>
  19569. <exception name="IOException" type="java.io.IOException"/>
  19570. <doc>
  19571. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  19572. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  19573. address, then this proxy will connect to that address. Otherwise, the
  19574. returned proxy defaults to using {@link #getAddress()}, which means this
  19575. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  19576. @param conf Configuration
  19577. @param timeoutMs timeout in milliseconds
  19578. @return a proxy to connect to the target HA service for health monitoring
  19579. @throws IOException if there is an error]]>
  19580. </doc>
  19581. </method>
  19582. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  19583. abstract="false" native="false" synchronized="false"
  19584. static="false" final="false" visibility="public"
  19585. deprecated="not deprecated">
  19586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19587. <param name="timeoutMs" type="int"/>
  19588. <param name="retries" type="int"/>
  19589. <exception name="IOException" type="java.io.IOException"/>
  19590. </method>
  19591. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  19592. abstract="false" native="false" synchronized="false"
  19593. static="false" final="false" visibility="public"
  19594. deprecated="not deprecated">
  19595. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19596. <param name="timeoutMs" type="int"/>
  19597. <exception name="IOException" type="java.io.IOException"/>
  19598. <doc>
  19599. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  19600. </doc>
  19601. </method>
  19602. <method name="getFencingParameters" return="java.util.Map"
  19603. abstract="false" native="false" synchronized="false"
  19604. static="false" final="true" visibility="public"
  19605. deprecated="not deprecated">
  19606. </method>
  19607. <method name="addFencingParameters"
  19608. abstract="false" native="false" synchronized="false"
  19609. static="false" final="false" visibility="protected"
  19610. deprecated="not deprecated">
  19611. <param name="ret" type="java.util.Map"/>
  19612. <doc>
  19613. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  19614. expose to fencing implementations/scripts. Fencing methods are free
  19615. to use this map as they see fit -- notably, the shell script
  19616. implementation takes each entry, prepends 'target_', substitutes
  19617. '_' for '.', and adds it to the environment of the script.
  19618. Subclass implementations should be sure to delegate to the superclass
  19619. implementation as well as adding their own keys.
  19620. @param ret map which can be mutated to pass parameters to the fencer]]>
  19621. </doc>
  19622. </method>
  19623. <method name="isAutoFailoverEnabled" return="boolean"
  19624. abstract="false" native="false" synchronized="false"
  19625. static="false" final="false" visibility="public"
  19626. deprecated="not deprecated">
  19627. <doc>
  19628. <![CDATA[@return true if auto failover should be considered enabled]]>
  19629. </doc>
  19630. </method>
  19631. <method name="supportObserver" return="boolean"
  19632. abstract="false" native="false" synchronized="false"
  19633. static="false" final="false" visibility="public"
  19634. deprecated="not deprecated">
  19635. <doc>
  19636. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  19637. </doc>
  19638. </method>
  19639. <doc>
  19640. <![CDATA[Represents a target of the client side HA administration commands.]]>
  19641. </doc>
  19642. </class>
  19643. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  19644. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  19645. <class name="HealthCheckFailedException" extends="java.io.IOException"
  19646. abstract="false"
  19647. static="false" final="false" visibility="public"
  19648. deprecated="not deprecated">
  19649. <constructor name="HealthCheckFailedException" type="java.lang.String"
  19650. static="false" final="false" visibility="public"
  19651. deprecated="not deprecated">
  19652. </constructor>
  19653. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  19654. static="false" final="false" visibility="public"
  19655. deprecated="not deprecated">
  19656. </constructor>
  19657. <doc>
  19658. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  19659. </doc>
  19660. </class>
  19661. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  19662. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  19663. <class name="ServiceFailedException" extends="java.io.IOException"
  19664. abstract="false"
  19665. static="false" final="false" visibility="public"
  19666. deprecated="not deprecated">
  19667. <constructor name="ServiceFailedException" type="java.lang.String"
  19668. static="false" final="false" visibility="public"
  19669. deprecated="not deprecated">
  19670. </constructor>
  19671. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  19672. static="false" final="false" visibility="public"
  19673. deprecated="not deprecated">
  19674. </constructor>
  19675. <doc>
  19676. <![CDATA[Exception thrown to indicate that an operation performed
  19677. to modify the state of a service or application failed.]]>
  19678. </doc>
  19679. </class>
  19680. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  19681. </package>
  19682. <package name="org.apache.hadoop.ha.protocolPB">
  19683. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  19684. <interface name="HAServiceProtocolPB" abstract="true"
  19685. static="false" final="false" visibility="public"
  19686. deprecated="not deprecated">
  19687. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  19688. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  19689. </interface>
  19690. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  19691. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  19692. <interface name="ZKFCProtocolPB" abstract="true"
  19693. static="false" final="false" visibility="public"
  19694. deprecated="not deprecated">
  19695. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  19696. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  19697. </interface>
  19698. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  19699. </package>
  19700. <package name="org.apache.hadoop.http.lib">
  19701. <doc>
  19702. <![CDATA[This package provides user-selectable (via configuration) classes that add
  19703. functionality to the web UI. They are configured as a list of classes in the
  19704. configuration parameter <b>hadoop.http.filter.initializers</b>.
  19705. <ul>
  19706. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  19707. users a static configured user.
  19708. </ul>]]>
  19709. </doc>
  19710. </package>
  19711. <package name="org.apache.hadoop.io">
  19712. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  19713. <class name="AbstractMapWritable" extends="java.lang.Object"
  19714. abstract="true"
  19715. static="false" final="false" visibility="public"
  19716. deprecated="not deprecated">
  19717. <implements name="org.apache.hadoop.io.Writable"/>
  19718. <implements name="org.apache.hadoop.conf.Configurable"/>
  19719. <constructor name="AbstractMapWritable"
  19720. static="false" final="false" visibility="protected"
  19721. deprecated="not deprecated">
  19722. <doc>
  19723. <![CDATA[constructor.]]>
  19724. </doc>
  19725. </constructor>
  19726. <method name="addToMap"
  19727. abstract="false" native="false" synchronized="true"
  19728. static="false" final="false" visibility="protected"
  19729. deprecated="not deprecated">
  19730. <param name="clazz" type="java.lang.Class"/>
  19731. <doc>
  19732. <![CDATA[Add a Class to the maps if it is not already present.]]>
  19733. </doc>
  19734. </method>
  19735. <method name="getClass" return="java.lang.Class"
  19736. abstract="false" native="false" synchronized="false"
  19737. static="false" final="false" visibility="protected"
  19738. deprecated="not deprecated">
  19739. <param name="id" type="byte"/>
  19740. <doc>
  19741. <![CDATA[@return the Class class for the specified id]]>
  19742. </doc>
  19743. </method>
  19744. <method name="getId" return="byte"
  19745. abstract="false" native="false" synchronized="false"
  19746. static="false" final="false" visibility="protected"
  19747. deprecated="not deprecated">
  19748. <param name="clazz" type="java.lang.Class"/>
  19749. <doc>
  19750. <![CDATA[@return the id for the specified Class]]>
  19751. </doc>
  19752. </method>
  19753. <method name="copy"
  19754. abstract="false" native="false" synchronized="true"
  19755. static="false" final="false" visibility="protected"
  19756. deprecated="not deprecated">
  19757. <param name="other" type="org.apache.hadoop.io.Writable"/>
  19758. <doc>
  19759. <![CDATA[Used by child copy constructors.]]>
  19760. </doc>
  19761. </method>
  19762. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19763. abstract="false" native="false" synchronized="false"
  19764. static="false" final="false" visibility="public"
  19765. deprecated="not deprecated">
  19766. <doc>
  19767. <![CDATA[@return the conf]]>
  19768. </doc>
  19769. </method>
  19770. <method name="setConf"
  19771. abstract="false" native="false" synchronized="false"
  19772. static="false" final="false" visibility="public"
  19773. deprecated="not deprecated">
  19774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19775. <doc>
  19776. <![CDATA[@param conf the conf to set]]>
  19777. </doc>
  19778. </method>
  19779. <method name="write"
  19780. abstract="false" native="false" synchronized="false"
  19781. static="false" final="false" visibility="public"
  19782. deprecated="not deprecated">
  19783. <param name="out" type="java.io.DataOutput"/>
  19784. <exception name="IOException" type="java.io.IOException"/>
  19785. </method>
  19786. <method name="readFields"
  19787. abstract="false" native="false" synchronized="false"
  19788. static="false" final="false" visibility="public"
  19789. deprecated="not deprecated">
  19790. <param name="in" type="java.io.DataInput"/>
  19791. <exception name="IOException" type="java.io.IOException"/>
  19792. </method>
  19793. <doc>
  19794. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  19795. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  19796. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  19797. maps travel with the class instead of being static.
  19798. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  19799. in any specific map instance.]]>
  19800. </doc>
  19801. </class>
  19802. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  19803. <!-- start class org.apache.hadoop.io.ArrayFile -->
  19804. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  19805. abstract="false"
  19806. static="false" final="false" visibility="public"
  19807. deprecated="not deprecated">
  19808. <constructor name="ArrayFile"
  19809. static="false" final="false" visibility="protected"
  19810. deprecated="not deprecated">
  19811. </constructor>
  19812. <doc>
  19813. <![CDATA[A dense file-based mapping from integers to values.]]>
  19814. </doc>
  19815. </class>
  19816. <!-- end class org.apache.hadoop.io.ArrayFile -->
  19817. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  19818. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  19819. abstract="false"
  19820. static="false" final="false" visibility="public"
  19821. deprecated="not deprecated">
  19822. <implements name="org.apache.hadoop.io.Writable"/>
  19823. <constructor name="ArrayPrimitiveWritable"
  19824. static="false" final="false" visibility="public"
  19825. deprecated="not deprecated">
  19826. <doc>
  19827. <![CDATA[Construct an empty instance, for use during Writable read]]>
  19828. </doc>
  19829. </constructor>
  19830. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  19831. static="false" final="false" visibility="public"
  19832. deprecated="not deprecated">
  19833. <doc>
  19834. <![CDATA[Construct an instance of known type but no value yet
  19835. for use with type-specific wrapper classes]]>
  19836. </doc>
  19837. </constructor>
  19838. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  19839. static="false" final="false" visibility="public"
  19840. deprecated="not deprecated">
  19841. <doc>
  19842. <![CDATA[Wrap an existing array of primitives
  19843. @param value - array of primitives]]>
  19844. </doc>
  19845. </constructor>
  19846. <method name="get" return="java.lang.Object"
  19847. abstract="false" native="false" synchronized="false"
  19848. static="false" final="false" visibility="public"
  19849. deprecated="not deprecated">
  19850. <doc>
  19851. <![CDATA[Get the original array.
  19852. Client must cast it back to type componentType[]
  19853. (or may use type-specific wrapper classes).
  19854. @return - original array as Object]]>
  19855. </doc>
  19856. </method>
  19857. <method name="getComponentType" return="java.lang.Class"
  19858. abstract="false" native="false" synchronized="false"
  19859. static="false" final="false" visibility="public"
  19860. deprecated="not deprecated">
  19861. </method>
  19862. <method name="getDeclaredComponentType" return="java.lang.Class"
  19863. abstract="false" native="false" synchronized="false"
  19864. static="false" final="false" visibility="public"
  19865. deprecated="not deprecated">
  19866. </method>
  19867. <method name="isDeclaredComponentType" return="boolean"
  19868. abstract="false" native="false" synchronized="false"
  19869. static="false" final="false" visibility="public"
  19870. deprecated="not deprecated">
  19871. <param name="componentType" type="java.lang.Class"/>
  19872. </method>
  19873. <method name="set"
  19874. abstract="false" native="false" synchronized="false"
  19875. static="false" final="false" visibility="public"
  19876. deprecated="not deprecated">
  19877. <param name="value" type="java.lang.Object"/>
  19878. </method>
  19879. <method name="write"
  19880. abstract="false" native="false" synchronized="false"
  19881. static="false" final="false" visibility="public"
  19882. deprecated="not deprecated">
  19883. <param name="out" type="java.io.DataOutput"/>
  19884. <exception name="IOException" type="java.io.IOException"/>
  19885. </method>
  19886. <method name="readFields"
  19887. abstract="false" native="false" synchronized="false"
  19888. static="false" final="false" visibility="public"
  19889. deprecated="not deprecated">
  19890. <param name="in" type="java.io.DataInput"/>
  19891. <exception name="IOException" type="java.io.IOException"/>
  19892. </method>
  19893. <doc>
  19894. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  19895. an array of primitives (e.g., int[], long[], etc.), with optimized
  19896. wire format, and without creating new objects per element.
  19897. This is a wrapper class only; it does not make a copy of the
  19898. underlying array.]]>
  19899. </doc>
  19900. </class>
  19901. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  19902. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  19903. <class name="ArrayWritable" extends="java.lang.Object"
  19904. abstract="false"
  19905. static="false" final="false" visibility="public"
  19906. deprecated="not deprecated">
  19907. <implements name="org.apache.hadoop.io.Writable"/>
  19908. <constructor name="ArrayWritable" type="java.lang.Class"
  19909. static="false" final="false" visibility="public"
  19910. deprecated="not deprecated">
  19911. </constructor>
  19912. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  19913. static="false" final="false" visibility="public"
  19914. deprecated="not deprecated">
  19915. </constructor>
  19916. <constructor name="ArrayWritable" type="java.lang.String[]"
  19917. static="false" final="false" visibility="public"
  19918. deprecated="not deprecated">
  19919. </constructor>
  19920. <method name="getValueClass" return="java.lang.Class"
  19921. abstract="false" native="false" synchronized="false"
  19922. static="false" final="false" visibility="public"
  19923. deprecated="not deprecated">
  19924. </method>
  19925. <method name="toStrings" return="java.lang.String[]"
  19926. abstract="false" native="false" synchronized="false"
  19927. static="false" final="false" visibility="public"
  19928. deprecated="not deprecated">
  19929. </method>
  19930. <method name="toArray" return="java.lang.Object"
  19931. abstract="false" native="false" synchronized="false"
  19932. static="false" final="false" visibility="public"
  19933. deprecated="not deprecated">
  19934. </method>
  19935. <method name="set"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="false" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  19940. </method>
  19941. <method name="get" return="org.apache.hadoop.io.Writable[]"
  19942. abstract="false" native="false" synchronized="false"
  19943. static="false" final="false" visibility="public"
  19944. deprecated="not deprecated">
  19945. </method>
  19946. <method name="readFields"
  19947. abstract="false" native="false" synchronized="false"
  19948. static="false" final="false" visibility="public"
  19949. deprecated="not deprecated">
  19950. <param name="in" type="java.io.DataInput"/>
  19951. <exception name="IOException" type="java.io.IOException"/>
  19952. </method>
  19953. <method name="write"
  19954. abstract="false" native="false" synchronized="false"
  19955. static="false" final="false" visibility="public"
  19956. deprecated="not deprecated">
  19957. <param name="out" type="java.io.DataOutput"/>
  19958. <exception name="IOException" type="java.io.IOException"/>
  19959. </method>
  19960. <method name="toString" return="java.lang.String"
  19961. abstract="false" native="false" synchronized="false"
  19962. static="false" final="false" visibility="public"
  19963. deprecated="not deprecated">
  19964. </method>
  19965. <doc>
  19966. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  19967. writable must all be instances of the same class. If this writable will be
  19968. the input for a Reducer, you will need to create a subclass that sets the
  19969. value to be of the proper type.
  19970. For example:
  19971. <code>
  19972. public class IntArrayWritable extends ArrayWritable {
  19973. public IntArrayWritable() {
  19974. super(IntWritable.class);
  19975. }
  19976. }
  19977. </code>]]>
  19978. </doc>
  19979. </class>
  19980. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  19981. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  19982. <class name="BinaryComparable" extends="java.lang.Object"
  19983. abstract="true"
  19984. static="false" final="false" visibility="public"
  19985. deprecated="not deprecated">
  19986. <implements name="java.lang.Comparable"/>
  19987. <constructor name="BinaryComparable"
  19988. static="false" final="false" visibility="public"
  19989. deprecated="not deprecated">
  19990. </constructor>
  19991. <method name="getLength" return="int"
  19992. abstract="true" native="false" synchronized="false"
  19993. static="false" final="false" visibility="public"
  19994. deprecated="not deprecated">
  19995. <doc>
  19996. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  19997. </doc>
  19998. </method>
  19999. <method name="getBytes" return="byte[]"
  20000. abstract="true" native="false" synchronized="false"
  20001. static="false" final="false" visibility="public"
  20002. deprecated="not deprecated">
  20003. <doc>
  20004. <![CDATA[Return representative byte array for this instance.]]>
  20005. </doc>
  20006. </method>
  20007. <method name="compareTo" return="int"
  20008. abstract="false" native="false" synchronized="false"
  20009. static="false" final="false" visibility="public"
  20010. deprecated="not deprecated">
  20011. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  20012. <doc>
  20013. <![CDATA[Compare bytes from {#getBytes()}.
  20014. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  20015. </doc>
  20016. </method>
  20017. <method name="compareTo" return="int"
  20018. abstract="false" native="false" synchronized="false"
  20019. static="false" final="false" visibility="public"
  20020. deprecated="not deprecated">
  20021. <param name="other" type="byte[]"/>
  20022. <param name="off" type="int"/>
  20023. <param name="len" type="int"/>
  20024. <doc>
  20025. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  20026. </doc>
  20027. </method>
  20028. <method name="equals" return="boolean"
  20029. abstract="false" native="false" synchronized="false"
  20030. static="false" final="false" visibility="public"
  20031. deprecated="not deprecated">
  20032. <param name="other" type="java.lang.Object"/>
  20033. <doc>
  20034. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  20035. </doc>
  20036. </method>
  20037. <method name="hashCode" return="int"
  20038. abstract="false" native="false" synchronized="false"
  20039. static="false" final="false" visibility="public"
  20040. deprecated="not deprecated">
  20041. <doc>
  20042. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  20043. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  20044. </doc>
  20045. </method>
  20046. <doc>
  20047. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  20048. types supporting ordering/permutation by a representative set of bytes.]]>
  20049. </doc>
  20050. </class>
  20051. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  20052. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  20053. <class name="BloomMapFile" extends="java.lang.Object"
  20054. abstract="false"
  20055. static="false" final="false" visibility="public"
  20056. deprecated="not deprecated">
  20057. <constructor name="BloomMapFile"
  20058. static="false" final="false" visibility="public"
  20059. deprecated="not deprecated">
  20060. </constructor>
  20061. <method name="delete"
  20062. abstract="false" native="false" synchronized="false"
  20063. static="true" final="false" visibility="public"
  20064. deprecated="not deprecated">
  20065. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20066. <param name="name" type="java.lang.String"/>
  20067. <exception name="IOException" type="java.io.IOException"/>
  20068. </method>
  20069. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  20070. transient="false" volatile="false"
  20071. static="true" final="true" visibility="public"
  20072. deprecated="not deprecated">
  20073. </field>
  20074. <field name="HASH_COUNT" type="int"
  20075. transient="false" volatile="false"
  20076. static="true" final="true" visibility="public"
  20077. deprecated="not deprecated">
  20078. </field>
  20079. <doc>
  20080. <![CDATA[This class extends {@link MapFile} and provides very much the same
  20081. functionality. However, it uses dynamic Bloom filters to provide
  20082. quick membership test for keys, and it offers a fast version of
  20083. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  20084. case of sparsely populated MapFile-s.]]>
  20085. </doc>
  20086. </class>
  20087. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  20088. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  20089. <class name="BooleanWritable" extends="java.lang.Object"
  20090. abstract="false"
  20091. static="false" final="false" visibility="public"
  20092. deprecated="not deprecated">
  20093. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20094. <constructor name="BooleanWritable"
  20095. static="false" final="false" visibility="public"
  20096. deprecated="not deprecated">
  20097. </constructor>
  20098. <constructor name="BooleanWritable" type="boolean"
  20099. static="false" final="false" visibility="public"
  20100. deprecated="not deprecated">
  20101. </constructor>
  20102. <method name="set"
  20103. abstract="false" native="false" synchronized="false"
  20104. static="false" final="false" visibility="public"
  20105. deprecated="not deprecated">
  20106. <param name="value" type="boolean"/>
  20107. <doc>
  20108. <![CDATA[Set the value of the BooleanWritable]]>
  20109. </doc>
  20110. </method>
  20111. <method name="get" return="boolean"
  20112. abstract="false" native="false" synchronized="false"
  20113. static="false" final="false" visibility="public"
  20114. deprecated="not deprecated">
  20115. <doc>
  20116. <![CDATA[Returns the value of the BooleanWritable]]>
  20117. </doc>
  20118. </method>
  20119. <method name="readFields"
  20120. abstract="false" native="false" synchronized="false"
  20121. static="false" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. <param name="in" type="java.io.DataInput"/>
  20124. <exception name="IOException" type="java.io.IOException"/>
  20125. </method>
  20126. <method name="write"
  20127. abstract="false" native="false" synchronized="false"
  20128. static="false" final="false" visibility="public"
  20129. deprecated="not deprecated">
  20130. <param name="out" type="java.io.DataOutput"/>
  20131. <exception name="IOException" type="java.io.IOException"/>
  20132. </method>
  20133. <method name="equals" return="boolean"
  20134. abstract="false" native="false" synchronized="false"
  20135. static="false" final="false" visibility="public"
  20136. deprecated="not deprecated">
  20137. <param name="o" type="java.lang.Object"/>
  20138. </method>
  20139. <method name="hashCode" return="int"
  20140. abstract="false" native="false" synchronized="false"
  20141. static="false" final="false" visibility="public"
  20142. deprecated="not deprecated">
  20143. </method>
  20144. <method name="compareTo" return="int"
  20145. abstract="false" native="false" synchronized="false"
  20146. static="false" final="false" visibility="public"
  20147. deprecated="not deprecated">
  20148. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  20149. </method>
  20150. <method name="toString" return="java.lang.String"
  20151. abstract="false" native="false" synchronized="false"
  20152. static="false" final="false" visibility="public"
  20153. deprecated="not deprecated">
  20154. </method>
  20155. <doc>
  20156. <![CDATA[A WritableComparable for booleans.]]>
  20157. </doc>
  20158. </class>
  20159. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  20160. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  20161. <interface name="ByteBufferPool" abstract="true"
  20162. static="false" final="false" visibility="public"
  20163. deprecated="not deprecated">
  20164. <method name="getBuffer" return="java.nio.ByteBuffer"
  20165. abstract="true" native="false" synchronized="false"
  20166. static="false" final="false" visibility="public"
  20167. deprecated="not deprecated">
  20168. <param name="direct" type="boolean"/>
  20169. <param name="length" type="int"/>
  20170. <doc>
  20171. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  20172. removing a buffer from its internal cache, or by allocating a
  20173. new buffer.
  20174. @param direct Whether the buffer should be direct.
  20175. @param length The minimum length the buffer will have.
  20176. @return A new ByteBuffer. This ByteBuffer must be direct.
  20177. Its capacity can be less than what was requested, but
  20178. must be at least 1 byte.]]>
  20179. </doc>
  20180. </method>
  20181. <method name="putBuffer"
  20182. abstract="true" native="false" synchronized="false"
  20183. static="false" final="false" visibility="public"
  20184. deprecated="not deprecated">
  20185. <param name="buffer" type="java.nio.ByteBuffer"/>
  20186. <doc>
  20187. <![CDATA[Release a buffer back to the pool.
  20188. The pool may choose to put this buffer into its cache.
  20189. @param buffer a direct bytebuffer]]>
  20190. </doc>
  20191. </method>
  20192. </interface>
  20193. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  20194. <!-- start class org.apache.hadoop.io.BytesWritable -->
  20195. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  20196. abstract="false"
  20197. static="false" final="false" visibility="public"
  20198. deprecated="not deprecated">
  20199. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20200. <constructor name="BytesWritable"
  20201. static="false" final="false" visibility="public"
  20202. deprecated="not deprecated">
  20203. <doc>
  20204. <![CDATA[Create a zero-size sequence.]]>
  20205. </doc>
  20206. </constructor>
  20207. <constructor name="BytesWritable" type="byte[]"
  20208. static="false" final="false" visibility="public"
  20209. deprecated="not deprecated">
  20210. <doc>
  20211. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  20212. @param bytes This array becomes the backing storage for the object.]]>
  20213. </doc>
  20214. </constructor>
  20215. <constructor name="BytesWritable" type="byte[], int"
  20216. static="false" final="false" visibility="public"
  20217. deprecated="not deprecated">
  20218. <doc>
  20219. <![CDATA[Create a BytesWritable using the byte array as the initial value
  20220. and length as the length. Use this constructor if the array is larger
  20221. than the value it represents.
  20222. @param bytes This array becomes the backing storage for the object.
  20223. @param length The number of bytes to use from array.]]>
  20224. </doc>
  20225. </constructor>
  20226. <method name="copyBytes" return="byte[]"
  20227. abstract="false" native="false" synchronized="false"
  20228. static="false" final="false" visibility="public"
  20229. deprecated="not deprecated">
  20230. <doc>
  20231. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20232. See {@link #getBytes()} for faster access to the underlying array.]]>
  20233. </doc>
  20234. </method>
  20235. <method name="getBytes" return="byte[]"
  20236. abstract="false" native="false" synchronized="false"
  20237. static="false" final="false" visibility="public"
  20238. deprecated="not deprecated">
  20239. <doc>
  20240. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  20241. if you need the returned array to be precisely the length of the data.
  20242. @return The data is only valid between 0 and getLength() - 1.]]>
  20243. </doc>
  20244. </method>
  20245. <method name="get" return="byte[]"
  20246. abstract="false" native="false" synchronized="false"
  20247. static="false" final="false" visibility="public"
  20248. deprecated="Use {@link #getBytes()} instead.">
  20249. <doc>
  20250. <![CDATA[Get the data from the BytesWritable.
  20251. @deprecated Use {@link #getBytes()} instead.]]>
  20252. </doc>
  20253. </method>
  20254. <method name="getLength" return="int"
  20255. abstract="false" native="false" synchronized="false"
  20256. static="false" final="false" visibility="public"
  20257. deprecated="not deprecated">
  20258. <doc>
  20259. <![CDATA[Get the current size of the buffer.]]>
  20260. </doc>
  20261. </method>
  20262. <method name="getSize" return="int"
  20263. abstract="false" native="false" synchronized="false"
  20264. static="false" final="false" visibility="public"
  20265. deprecated="Use {@link #getLength()} instead.">
  20266. <doc>
  20267. <![CDATA[Get the current size of the buffer.
  20268. @deprecated Use {@link #getLength()} instead.]]>
  20269. </doc>
  20270. </method>
  20271. <method name="setSize"
  20272. abstract="false" native="false" synchronized="false"
  20273. static="false" final="false" visibility="public"
  20274. deprecated="not deprecated">
  20275. <param name="size" type="int"/>
  20276. <doc>
  20277. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  20278. and any new values are undefined. The capacity is changed if it is
  20279. necessary.
  20280. @param size The new number of bytes]]>
  20281. </doc>
  20282. </method>
  20283. <method name="getCapacity" return="int"
  20284. abstract="false" native="false" synchronized="false"
  20285. static="false" final="false" visibility="public"
  20286. deprecated="not deprecated">
  20287. <doc>
  20288. <![CDATA[Get the capacity, which is the maximum size that could handled without
  20289. resizing the backing storage.
  20290. @return The number of bytes]]>
  20291. </doc>
  20292. </method>
  20293. <method name="setCapacity"
  20294. abstract="false" native="false" synchronized="false"
  20295. static="false" final="false" visibility="public"
  20296. deprecated="not deprecated">
  20297. <param name="new_cap" type="int"/>
  20298. <doc>
  20299. <![CDATA[Change the capacity of the backing storage.
  20300. The data is preserved.
  20301. @param new_cap The new capacity in bytes.]]>
  20302. </doc>
  20303. </method>
  20304. <method name="set"
  20305. abstract="false" native="false" synchronized="false"
  20306. static="false" final="false" visibility="public"
  20307. deprecated="not deprecated">
  20308. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  20309. <doc>
  20310. <![CDATA[Set the BytesWritable to the contents of the given newData.
  20311. @param newData the value to set this BytesWritable to.]]>
  20312. </doc>
  20313. </method>
  20314. <method name="set"
  20315. abstract="false" native="false" synchronized="false"
  20316. static="false" final="false" visibility="public"
  20317. deprecated="not deprecated">
  20318. <param name="newData" type="byte[]"/>
  20319. <param name="offset" type="int"/>
  20320. <param name="length" type="int"/>
  20321. <doc>
  20322. <![CDATA[Set the value to a copy of the given byte range
  20323. @param newData the new values to copy in
  20324. @param offset the offset in newData to start at
  20325. @param length the number of bytes to copy]]>
  20326. </doc>
  20327. </method>
  20328. <method name="readFields"
  20329. abstract="false" native="false" synchronized="false"
  20330. static="false" final="false" visibility="public"
  20331. deprecated="not deprecated">
  20332. <param name="in" type="java.io.DataInput"/>
  20333. <exception name="IOException" type="java.io.IOException"/>
  20334. </method>
  20335. <method name="write"
  20336. abstract="false" native="false" synchronized="false"
  20337. static="false" final="false" visibility="public"
  20338. deprecated="not deprecated">
  20339. <param name="out" type="java.io.DataOutput"/>
  20340. <exception name="IOException" type="java.io.IOException"/>
  20341. </method>
  20342. <method name="hashCode" return="int"
  20343. abstract="false" native="false" synchronized="false"
  20344. static="false" final="false" visibility="public"
  20345. deprecated="not deprecated">
  20346. </method>
  20347. <method name="equals" return="boolean"
  20348. abstract="false" native="false" synchronized="false"
  20349. static="false" final="false" visibility="public"
  20350. deprecated="not deprecated">
  20351. <param name="right_obj" type="java.lang.Object"/>
  20352. <doc>
  20353. <![CDATA[Are the two byte sequences equal?]]>
  20354. </doc>
  20355. </method>
  20356. <method name="toString" return="java.lang.String"
  20357. abstract="false" native="false" synchronized="false"
  20358. static="false" final="false" visibility="public"
  20359. deprecated="not deprecated">
  20360. <doc>
  20361. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  20362. </doc>
  20363. </method>
  20364. <doc>
  20365. <![CDATA[A byte sequence that is usable as a key or value.
  20366. It is resizable and distinguishes between the size of the sequence and
  20367. the current capacity. The hash function is the front of the md5 of the
  20368. buffer. The sort order is the same as memcmp.]]>
  20369. </doc>
  20370. </class>
  20371. <!-- end class org.apache.hadoop.io.BytesWritable -->
  20372. <!-- start class org.apache.hadoop.io.ByteWritable -->
  20373. <class name="ByteWritable" extends="java.lang.Object"
  20374. abstract="false"
  20375. static="false" final="false" visibility="public"
  20376. deprecated="not deprecated">
  20377. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20378. <constructor name="ByteWritable"
  20379. static="false" final="false" visibility="public"
  20380. deprecated="not deprecated">
  20381. </constructor>
  20382. <constructor name="ByteWritable" type="byte"
  20383. static="false" final="false" visibility="public"
  20384. deprecated="not deprecated">
  20385. </constructor>
  20386. <method name="set"
  20387. abstract="false" native="false" synchronized="false"
  20388. static="false" final="false" visibility="public"
  20389. deprecated="not deprecated">
  20390. <param name="value" type="byte"/>
  20391. <doc>
  20392. <![CDATA[Set the value of this ByteWritable.]]>
  20393. </doc>
  20394. </method>
  20395. <method name="get" return="byte"
  20396. abstract="false" native="false" synchronized="false"
  20397. static="false" final="false" visibility="public"
  20398. deprecated="not deprecated">
  20399. <doc>
  20400. <![CDATA[Return the value of this ByteWritable.]]>
  20401. </doc>
  20402. </method>
  20403. <method name="readFields"
  20404. abstract="false" native="false" synchronized="false"
  20405. static="false" final="false" visibility="public"
  20406. deprecated="not deprecated">
  20407. <param name="in" type="java.io.DataInput"/>
  20408. <exception name="IOException" type="java.io.IOException"/>
  20409. </method>
  20410. <method name="write"
  20411. abstract="false" native="false" synchronized="false"
  20412. static="false" final="false" visibility="public"
  20413. deprecated="not deprecated">
  20414. <param name="out" type="java.io.DataOutput"/>
  20415. <exception name="IOException" type="java.io.IOException"/>
  20416. </method>
  20417. <method name="equals" return="boolean"
  20418. abstract="false" native="false" synchronized="false"
  20419. static="false" final="false" visibility="public"
  20420. deprecated="not deprecated">
  20421. <param name="o" type="java.lang.Object"/>
  20422. <doc>
  20423. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  20424. </doc>
  20425. </method>
  20426. <method name="hashCode" return="int"
  20427. abstract="false" native="false" synchronized="false"
  20428. static="false" final="false" visibility="public"
  20429. deprecated="not deprecated">
  20430. </method>
  20431. <method name="compareTo" return="int"
  20432. abstract="false" native="false" synchronized="false"
  20433. static="false" final="false" visibility="public"
  20434. deprecated="not deprecated">
  20435. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  20436. <doc>
  20437. <![CDATA[Compares two ByteWritables.]]>
  20438. </doc>
  20439. </method>
  20440. <method name="toString" return="java.lang.String"
  20441. abstract="false" native="false" synchronized="false"
  20442. static="false" final="false" visibility="public"
  20443. deprecated="not deprecated">
  20444. </method>
  20445. <doc>
  20446. <![CDATA[A WritableComparable for a single byte.]]>
  20447. </doc>
  20448. </class>
  20449. <!-- end class org.apache.hadoop.io.ByteWritable -->
  20450. <!-- start interface org.apache.hadoop.io.Closeable -->
  20451. <interface name="Closeable" abstract="true"
  20452. static="false" final="false" visibility="public"
  20453. deprecated="use java.io.Closeable">
  20454. <implements name="java.io.Closeable"/>
  20455. <doc>
  20456. <![CDATA[@deprecated use java.io.Closeable]]>
  20457. </doc>
  20458. </interface>
  20459. <!-- end interface org.apache.hadoop.io.Closeable -->
  20460. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  20461. <class name="CompressedWritable" extends="java.lang.Object"
  20462. abstract="true"
  20463. static="false" final="false" visibility="public"
  20464. deprecated="not deprecated">
  20465. <implements name="org.apache.hadoop.io.Writable"/>
  20466. <constructor name="CompressedWritable"
  20467. static="false" final="false" visibility="public"
  20468. deprecated="not deprecated">
  20469. </constructor>
  20470. <method name="readFields"
  20471. abstract="false" native="false" synchronized="false"
  20472. static="false" final="true" visibility="public"
  20473. deprecated="not deprecated">
  20474. <param name="in" type="java.io.DataInput"/>
  20475. <exception name="IOException" type="java.io.IOException"/>
  20476. </method>
  20477. <method name="ensureInflated"
  20478. abstract="false" native="false" synchronized="false"
  20479. static="false" final="false" visibility="protected"
  20480. deprecated="not deprecated">
  20481. <doc>
  20482. <![CDATA[Must be called by all methods which access fields to ensure that the data
  20483. has been uncompressed.]]>
  20484. </doc>
  20485. </method>
  20486. <method name="readFieldsCompressed"
  20487. abstract="true" native="false" synchronized="false"
  20488. static="false" final="false" visibility="protected"
  20489. deprecated="not deprecated">
  20490. <param name="in" type="java.io.DataInput"/>
  20491. <exception name="IOException" type="java.io.IOException"/>
  20492. <doc>
  20493. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  20494. </doc>
  20495. </method>
  20496. <method name="write"
  20497. abstract="false" native="false" synchronized="false"
  20498. static="false" final="true" visibility="public"
  20499. deprecated="not deprecated">
  20500. <param name="out" type="java.io.DataOutput"/>
  20501. <exception name="IOException" type="java.io.IOException"/>
  20502. </method>
  20503. <method name="writeCompressed"
  20504. abstract="true" native="false" synchronized="false"
  20505. static="false" final="false" visibility="protected"
  20506. deprecated="not deprecated">
  20507. <param name="out" type="java.io.DataOutput"/>
  20508. <exception name="IOException" type="java.io.IOException"/>
  20509. <doc>
  20510. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  20511. </doc>
  20512. </method>
  20513. <doc>
  20514. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  20515. inflate on field access. This is useful for large objects whose fields are
  20516. not be altered during a map or reduce operation: leaving the field data
  20517. compressed makes copying the instance from one file to another much
  20518. faster.]]>
  20519. </doc>
  20520. </class>
  20521. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  20522. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  20523. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  20524. abstract="false"
  20525. static="false" final="false" visibility="public"
  20526. deprecated="not deprecated">
  20527. <method name="constructOutputStream" return="java.io.OutputStream"
  20528. abstract="false" native="false" synchronized="false"
  20529. static="true" final="false" visibility="public"
  20530. deprecated="not deprecated">
  20531. <param name="out" type="java.io.DataOutput"/>
  20532. <doc>
  20533. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  20534. is already an OutputStream, simply returns it. Otherwise, wraps
  20535. it in an OutputStream.
  20536. @param out the DataOutput to wrap
  20537. @return an OutputStream instance that outputs to 'out']]>
  20538. </doc>
  20539. </method>
  20540. <method name="write"
  20541. abstract="false" native="false" synchronized="false"
  20542. static="false" final="false" visibility="public"
  20543. deprecated="not deprecated">
  20544. <param name="b" type="int"/>
  20545. <exception name="IOException" type="java.io.IOException"/>
  20546. </method>
  20547. <method name="write"
  20548. abstract="false" native="false" synchronized="false"
  20549. static="false" final="false" visibility="public"
  20550. deprecated="not deprecated">
  20551. <param name="b" type="byte[]"/>
  20552. <param name="off" type="int"/>
  20553. <param name="len" type="int"/>
  20554. <exception name="IOException" type="java.io.IOException"/>
  20555. </method>
  20556. <method name="write"
  20557. abstract="false" native="false" synchronized="false"
  20558. static="false" final="false" visibility="public"
  20559. deprecated="not deprecated">
  20560. <param name="b" type="byte[]"/>
  20561. <exception name="IOException" type="java.io.IOException"/>
  20562. </method>
  20563. <doc>
  20564. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  20565. </doc>
  20566. </class>
  20567. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  20568. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  20569. <class name="DefaultStringifier" extends="java.lang.Object"
  20570. abstract="false"
  20571. static="false" final="false" visibility="public"
  20572. deprecated="not deprecated">
  20573. <implements name="org.apache.hadoop.io.Stringifier"/>
  20574. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  20575. static="false" final="false" visibility="public"
  20576. deprecated="not deprecated">
  20577. </constructor>
  20578. <method name="fromString" return="T"
  20579. abstract="false" native="false" synchronized="false"
  20580. static="false" final="false" visibility="public"
  20581. deprecated="not deprecated">
  20582. <param name="str" type="java.lang.String"/>
  20583. <exception name="IOException" type="java.io.IOException"/>
  20584. </method>
  20585. <method name="toString" return="java.lang.String"
  20586. abstract="false" native="false" synchronized="false"
  20587. static="false" final="false" visibility="public"
  20588. deprecated="not deprecated">
  20589. <param name="obj" type="T"/>
  20590. <exception name="IOException" type="java.io.IOException"/>
  20591. </method>
  20592. <method name="close"
  20593. abstract="false" native="false" synchronized="false"
  20594. static="false" final="false" visibility="public"
  20595. deprecated="not deprecated">
  20596. <exception name="IOException" type="java.io.IOException"/>
  20597. </method>
  20598. <method name="store"
  20599. abstract="false" native="false" synchronized="false"
  20600. static="true" final="false" visibility="public"
  20601. deprecated="not deprecated">
  20602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20603. <param name="item" type="K"/>
  20604. <param name="keyName" type="java.lang.String"/>
  20605. <exception name="IOException" type="java.io.IOException"/>
  20606. <doc>
  20607. <![CDATA[Stores the item in the configuration with the given keyName.
  20608. @param <K> the class of the item
  20609. @param conf the configuration to store
  20610. @param item the object to be stored
  20611. @param keyName the name of the key to use
  20612. @throws IOException : forwards Exceptions from the underlying
  20613. {@link Serialization} classes.]]>
  20614. </doc>
  20615. </method>
  20616. <method name="load" return="K"
  20617. abstract="false" native="false" synchronized="false"
  20618. static="true" final="false" visibility="public"
  20619. deprecated="not deprecated">
  20620. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20621. <param name="keyName" type="java.lang.String"/>
  20622. <param name="itemClass" type="java.lang.Class"/>
  20623. <exception name="IOException" type="java.io.IOException"/>
  20624. <doc>
  20625. <![CDATA[Restores the object from the configuration.
  20626. @param <K> the class of the item
  20627. @param conf the configuration to use
  20628. @param keyName the name of the key to use
  20629. @param itemClass the class of the item
  20630. @return restored object
  20631. @throws IOException : forwards Exceptions from the underlying
  20632. {@link Serialization} classes.]]>
  20633. </doc>
  20634. </method>
  20635. <method name="storeArray"
  20636. abstract="false" native="false" synchronized="false"
  20637. static="true" final="false" visibility="public"
  20638. deprecated="not deprecated">
  20639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20640. <param name="items" type="K[]"/>
  20641. <param name="keyName" type="java.lang.String"/>
  20642. <exception name="IOException" type="java.io.IOException"/>
  20643. <doc>
  20644. <![CDATA[Stores the array of items in the configuration with the given keyName.
  20645. @param <K> the class of the item
  20646. @param conf the configuration to use
  20647. @param items the objects to be stored
  20648. @param keyName the name of the key to use
  20649. @throws IndexOutOfBoundsException if the items array is empty
  20650. @throws IOException : forwards Exceptions from the underlying
  20651. {@link Serialization} classes.]]>
  20652. </doc>
  20653. </method>
  20654. <method name="loadArray" return="K[]"
  20655. abstract="false" native="false" synchronized="false"
  20656. static="true" final="false" visibility="public"
  20657. deprecated="not deprecated">
  20658. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20659. <param name="keyName" type="java.lang.String"/>
  20660. <param name="itemClass" type="java.lang.Class"/>
  20661. <exception name="IOException" type="java.io.IOException"/>
  20662. <doc>
  20663. <![CDATA[Restores the array of objects from the configuration.
  20664. @param <K> the class of the item
  20665. @param conf the configuration to use
  20666. @param keyName the name of the key to use
  20667. @param itemClass the class of the item
  20668. @return restored object
  20669. @throws IOException : forwards Exceptions from the underlying
  20670. {@link Serialization} classes.]]>
  20671. </doc>
  20672. </method>
  20673. <doc>
  20674. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  20675. interface which stringifies the objects using base64 encoding of the
  20676. serialized version of the objects. The {@link Serializer} and
  20677. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  20678. <br>
  20679. DefaultStringifier offers convenience methods to store/load objects to/from
  20680. the configuration.
  20681. @param <T> the class of the objects to stringify]]>
  20682. </doc>
  20683. </class>
  20684. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  20685. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  20686. <class name="DoubleWritable" extends="java.lang.Object"
  20687. abstract="false"
  20688. static="false" final="false" visibility="public"
  20689. deprecated="not deprecated">
  20690. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20691. <constructor name="DoubleWritable"
  20692. static="false" final="false" visibility="public"
  20693. deprecated="not deprecated">
  20694. </constructor>
  20695. <constructor name="DoubleWritable" type="double"
  20696. static="false" final="false" visibility="public"
  20697. deprecated="not deprecated">
  20698. </constructor>
  20699. <method name="readFields"
  20700. abstract="false" native="false" synchronized="false"
  20701. static="false" final="false" visibility="public"
  20702. deprecated="not deprecated">
  20703. <param name="in" type="java.io.DataInput"/>
  20704. <exception name="IOException" type="java.io.IOException"/>
  20705. </method>
  20706. <method name="write"
  20707. abstract="false" native="false" synchronized="false"
  20708. static="false" final="false" visibility="public"
  20709. deprecated="not deprecated">
  20710. <param name="out" type="java.io.DataOutput"/>
  20711. <exception name="IOException" type="java.io.IOException"/>
  20712. </method>
  20713. <method name="set"
  20714. abstract="false" native="false" synchronized="false"
  20715. static="false" final="false" visibility="public"
  20716. deprecated="not deprecated">
  20717. <param name="value" type="double"/>
  20718. </method>
  20719. <method name="get" return="double"
  20720. abstract="false" native="false" synchronized="false"
  20721. static="false" final="false" visibility="public"
  20722. deprecated="not deprecated">
  20723. </method>
  20724. <method name="equals" return="boolean"
  20725. abstract="false" native="false" synchronized="false"
  20726. static="false" final="false" visibility="public"
  20727. deprecated="not deprecated">
  20728. <param name="o" type="java.lang.Object"/>
  20729. <doc>
  20730. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  20731. </doc>
  20732. </method>
  20733. <method name="hashCode" return="int"
  20734. abstract="false" native="false" synchronized="false"
  20735. static="false" final="false" visibility="public"
  20736. deprecated="not deprecated">
  20737. </method>
  20738. <method name="compareTo" return="int"
  20739. abstract="false" native="false" synchronized="false"
  20740. static="false" final="false" visibility="public"
  20741. deprecated="not deprecated">
  20742. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  20743. </method>
  20744. <method name="toString" return="java.lang.String"
  20745. abstract="false" native="false" synchronized="false"
  20746. static="false" final="false" visibility="public"
  20747. deprecated="not deprecated">
  20748. </method>
  20749. <doc>
  20750. <![CDATA[Writable for Double values.]]>
  20751. </doc>
  20752. </class>
  20753. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  20754. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  20755. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  20756. abstract="false"
  20757. static="false" final="true" visibility="public"
  20758. deprecated="not deprecated">
  20759. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  20760. <constructor name="ElasticByteBufferPool"
  20761. static="false" final="false" visibility="public"
  20762. deprecated="not deprecated">
  20763. </constructor>
  20764. <method name="getBuffer" return="java.nio.ByteBuffer"
  20765. abstract="false" native="false" synchronized="true"
  20766. static="false" final="false" visibility="public"
  20767. deprecated="not deprecated">
  20768. <param name="direct" type="boolean"/>
  20769. <param name="length" type="int"/>
  20770. </method>
  20771. <method name="putBuffer"
  20772. abstract="false" native="false" synchronized="true"
  20773. static="false" final="false" visibility="public"
  20774. deprecated="not deprecated">
  20775. <param name="buffer" type="java.nio.ByteBuffer"/>
  20776. </method>
  20777. <doc>
  20778. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  20779. It also caches ByteBuffers after they're released. It will always return
  20780. the smallest cached buffer with at least the capacity you request.
  20781. We don't try to do anything clever here like try to limit the maximum cache
  20782. size.]]>
  20783. </doc>
  20784. </class>
  20785. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  20786. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  20787. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  20788. abstract="false"
  20789. static="false" final="false" visibility="public"
  20790. deprecated="not deprecated">
  20791. <implements name="org.apache.hadoop.io.Writable"/>
  20792. <implements name="org.apache.hadoop.conf.Configurable"/>
  20793. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  20794. static="false" final="false" visibility="public"
  20795. deprecated="not deprecated">
  20796. <doc>
  20797. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  20798. its size is zero, the <tt>elementType</tt> argument must not be null. If
  20799. the argument <tt>value</tt>'s size is bigger than zero, the argument
  20800. <tt>elementType</tt> is not be used.
  20801. @param value
  20802. @param elementType]]>
  20803. </doc>
  20804. </constructor>
  20805. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  20806. static="false" final="false" visibility="public"
  20807. deprecated="not deprecated">
  20808. <doc>
  20809. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  20810. or empty.
  20811. @param value]]>
  20812. </doc>
  20813. </constructor>
  20814. <method name="iterator" return="java.util.Iterator"
  20815. abstract="false" native="false" synchronized="false"
  20816. static="false" final="false" visibility="public"
  20817. deprecated="not deprecated">
  20818. </method>
  20819. <method name="size" return="int"
  20820. abstract="false" native="false" synchronized="false"
  20821. static="false" final="false" visibility="public"
  20822. deprecated="not deprecated">
  20823. </method>
  20824. <method name="add" return="boolean"
  20825. abstract="false" native="false" synchronized="false"
  20826. static="false" final="false" visibility="public"
  20827. deprecated="not deprecated">
  20828. <param name="e" type="E"/>
  20829. </method>
  20830. <method name="set"
  20831. abstract="false" native="false" synchronized="false"
  20832. static="false" final="false" visibility="public"
  20833. deprecated="not deprecated">
  20834. <param name="value" type="java.util.EnumSet"/>
  20835. <param name="elementType" type="java.lang.Class"/>
  20836. <doc>
  20837. <![CDATA[reset the EnumSetWritable with specified
  20838. <tt>value</tt> and <tt>elementType</tt>. If the <tt>value</tt> argument
  20839. is null or its size is zero, the <tt>elementType</tt> argument must not be
  20840. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  20841. argument <tt>elementType</tt> is not be used.
  20842. @param value
  20843. @param elementType]]>
  20844. </doc>
  20845. </method>
  20846. <method name="get" return="java.util.EnumSet"
  20847. abstract="false" native="false" synchronized="false"
  20848. static="false" final="false" visibility="public"
  20849. deprecated="not deprecated">
  20850. <doc>
  20851. <![CDATA[Return the value of this EnumSetWritable.]]>
  20852. </doc>
  20853. </method>
  20854. <method name="readFields"
  20855. abstract="false" native="false" synchronized="false"
  20856. static="false" final="false" visibility="public"
  20857. deprecated="not deprecated">
  20858. <param name="in" type="java.io.DataInput"/>
  20859. <exception name="IOException" type="java.io.IOException"/>
  20860. </method>
  20861. <method name="write"
  20862. abstract="false" native="false" synchronized="false"
  20863. static="false" final="false" visibility="public"
  20864. deprecated="not deprecated">
  20865. <param name="out" type="java.io.DataOutput"/>
  20866. <exception name="IOException" type="java.io.IOException"/>
  20867. </method>
  20868. <method name="equals" return="boolean"
  20869. abstract="false" native="false" synchronized="false"
  20870. static="false" final="false" visibility="public"
  20871. deprecated="not deprecated">
  20872. <param name="o" type="java.lang.Object"/>
  20873. <doc>
  20874. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  20875. or both are null.]]>
  20876. </doc>
  20877. </method>
  20878. <method name="getElementType" return="java.lang.Class"
  20879. abstract="false" native="false" synchronized="false"
  20880. static="false" final="false" visibility="public"
  20881. deprecated="not deprecated">
  20882. <doc>
  20883. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  20884. may return null.
  20885. @return the element class]]>
  20886. </doc>
  20887. </method>
  20888. <method name="hashCode" return="int"
  20889. abstract="false" native="false" synchronized="false"
  20890. static="false" final="false" visibility="public"
  20891. deprecated="not deprecated">
  20892. </method>
  20893. <method name="toString" return="java.lang.String"
  20894. abstract="false" native="false" synchronized="false"
  20895. static="false" final="false" visibility="public"
  20896. deprecated="not deprecated">
  20897. </method>
  20898. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20899. abstract="false" native="false" synchronized="false"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. </method>
  20903. <method name="setConf"
  20904. abstract="false" native="false" synchronized="false"
  20905. static="false" final="false" visibility="public"
  20906. deprecated="not deprecated">
  20907. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20908. </method>
  20909. <doc>
  20910. <![CDATA[A Writable wrapper for EnumSet.]]>
  20911. </doc>
  20912. </class>
  20913. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  20914. <!-- start class org.apache.hadoop.io.FloatWritable -->
  20915. <class name="FloatWritable" extends="java.lang.Object"
  20916. abstract="false"
  20917. static="false" final="false" visibility="public"
  20918. deprecated="not deprecated">
  20919. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20920. <constructor name="FloatWritable"
  20921. static="false" final="false" visibility="public"
  20922. deprecated="not deprecated">
  20923. </constructor>
  20924. <constructor name="FloatWritable" type="float"
  20925. static="false" final="false" visibility="public"
  20926. deprecated="not deprecated">
  20927. </constructor>
  20928. <method name="set"
  20929. abstract="false" native="false" synchronized="false"
  20930. static="false" final="false" visibility="public"
  20931. deprecated="not deprecated">
  20932. <param name="value" type="float"/>
  20933. <doc>
  20934. <![CDATA[Set the value of this FloatWritable.]]>
  20935. </doc>
  20936. </method>
  20937. <method name="get" return="float"
  20938. abstract="false" native="false" synchronized="false"
  20939. static="false" final="false" visibility="public"
  20940. deprecated="not deprecated">
  20941. <doc>
  20942. <![CDATA[Return the value of this FloatWritable.]]>
  20943. </doc>
  20944. </method>
  20945. <method name="readFields"
  20946. abstract="false" native="false" synchronized="false"
  20947. static="false" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. <param name="in" type="java.io.DataInput"/>
  20950. <exception name="IOException" type="java.io.IOException"/>
  20951. </method>
  20952. <method name="write"
  20953. abstract="false" native="false" synchronized="false"
  20954. static="false" final="false" visibility="public"
  20955. deprecated="not deprecated">
  20956. <param name="out" type="java.io.DataOutput"/>
  20957. <exception name="IOException" type="java.io.IOException"/>
  20958. </method>
  20959. <method name="equals" return="boolean"
  20960. abstract="false" native="false" synchronized="false"
  20961. static="false" final="false" visibility="public"
  20962. deprecated="not deprecated">
  20963. <param name="o" type="java.lang.Object"/>
  20964. <doc>
  20965. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  20966. </doc>
  20967. </method>
  20968. <method name="hashCode" return="int"
  20969. abstract="false" native="false" synchronized="false"
  20970. static="false" final="false" visibility="public"
  20971. deprecated="not deprecated">
  20972. </method>
  20973. <method name="compareTo" return="int"
  20974. abstract="false" native="false" synchronized="false"
  20975. static="false" final="false" visibility="public"
  20976. deprecated="not deprecated">
  20977. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  20978. <doc>
  20979. <![CDATA[Compares two FloatWritables.]]>
  20980. </doc>
  20981. </method>
  20982. <method name="toString" return="java.lang.String"
  20983. abstract="false" native="false" synchronized="false"
  20984. static="false" final="false" visibility="public"
  20985. deprecated="not deprecated">
  20986. </method>
  20987. <doc>
  20988. <![CDATA[A WritableComparable for floats.]]>
  20989. </doc>
  20990. </class>
  20991. <!-- end class org.apache.hadoop.io.FloatWritable -->
  20992. <!-- start class org.apache.hadoop.io.GenericWritable -->
  20993. <class name="GenericWritable" extends="java.lang.Object"
  20994. abstract="true"
  20995. static="false" final="false" visibility="public"
  20996. deprecated="not deprecated">
  20997. <implements name="org.apache.hadoop.io.Writable"/>
  20998. <implements name="org.apache.hadoop.conf.Configurable"/>
  20999. <constructor name="GenericWritable"
  21000. static="false" final="false" visibility="public"
  21001. deprecated="not deprecated">
  21002. </constructor>
  21003. <method name="set"
  21004. abstract="false" native="false" synchronized="false"
  21005. static="false" final="false" visibility="public"
  21006. deprecated="not deprecated">
  21007. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  21008. <doc>
  21009. <![CDATA[Set the instance that is wrapped.
  21010. @param obj]]>
  21011. </doc>
  21012. </method>
  21013. <method name="get" return="org.apache.hadoop.io.Writable"
  21014. abstract="false" native="false" synchronized="false"
  21015. static="false" final="false" visibility="public"
  21016. deprecated="not deprecated">
  21017. <doc>
  21018. <![CDATA[Return the wrapped instance.]]>
  21019. </doc>
  21020. </method>
  21021. <method name="toString" return="java.lang.String"
  21022. abstract="false" native="false" synchronized="false"
  21023. static="false" final="false" visibility="public"
  21024. deprecated="not deprecated">
  21025. </method>
  21026. <method name="readFields"
  21027. abstract="false" native="false" synchronized="false"
  21028. static="false" final="false" visibility="public"
  21029. deprecated="not deprecated">
  21030. <param name="in" type="java.io.DataInput"/>
  21031. <exception name="IOException" type="java.io.IOException"/>
  21032. </method>
  21033. <method name="write"
  21034. abstract="false" native="false" synchronized="false"
  21035. static="false" final="false" visibility="public"
  21036. deprecated="not deprecated">
  21037. <param name="out" type="java.io.DataOutput"/>
  21038. <exception name="IOException" type="java.io.IOException"/>
  21039. </method>
  21040. <method name="getTypes" return="java.lang.Class[]"
  21041. abstract="true" native="false" synchronized="false"
  21042. static="false" final="false" visibility="protected"
  21043. deprecated="not deprecated">
  21044. <doc>
  21045. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  21046. to return a constant array of classes.]]>
  21047. </doc>
  21048. </method>
  21049. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21050. abstract="false" native="false" synchronized="false"
  21051. static="false" final="false" visibility="public"
  21052. deprecated="not deprecated">
  21053. </method>
  21054. <method name="setConf"
  21055. abstract="false" native="false" synchronized="false"
  21056. static="false" final="false" visibility="public"
  21057. deprecated="not deprecated">
  21058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21059. </method>
  21060. <doc>
  21061. <![CDATA[A wrapper for Writable instances.
  21062. <p>
  21063. When two sequence files, which have same Key type but different Value
  21064. types, are mapped out to reduce, multiple Value types is not allowed.
  21065. In this case, this class can help you wrap instances with different types.
  21066. </p>
  21067. <p>
  21068. Compared with <code>ObjectWritable</code>, this class is much more effective,
  21069. because <code>ObjectWritable</code> will append the class declaration as a String
  21070. into the output file in every Key-Value pair.
  21071. </p>
  21072. <p>
  21073. Generic Writable implements {@link Configurable} interface, so that it will be
  21074. configured by the framework. The configuration is passed to the wrapped objects
  21075. implementing {@link Configurable} interface <i>before deserialization</i>.
  21076. </p>
  21077. how to use it: <br>
  21078. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  21079. 2. Implements the abstract method <code>getTypes()</code>, defines
  21080. the classes which will be wrapped in GenericObject in application.
  21081. Attention: this classes defined in <code>getTypes()</code> method, must
  21082. implement <code>Writable</code> interface.
  21083. <br><br>
  21084. The code looks like this:
  21085. <blockquote><pre>
  21086. public class GenericObject extends GenericWritable {
  21087. private static Class[] CLASSES = {
  21088. ClassType1.class,
  21089. ClassType2.class,
  21090. ClassType3.class,
  21091. };
  21092. protected Class[] getTypes() {
  21093. return CLASSES;
  21094. }
  21095. }
  21096. </pre></blockquote>
  21097. @since Nov 8, 2006]]>
  21098. </doc>
  21099. </class>
  21100. <!-- end class org.apache.hadoop.io.GenericWritable -->
  21101. <!-- start class org.apache.hadoop.io.IntWritable -->
  21102. <class name="IntWritable" extends="java.lang.Object"
  21103. abstract="false"
  21104. static="false" final="false" visibility="public"
  21105. deprecated="not deprecated">
  21106. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21107. <constructor name="IntWritable"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. </constructor>
  21111. <constructor name="IntWritable" type="int"
  21112. static="false" final="false" visibility="public"
  21113. deprecated="not deprecated">
  21114. </constructor>
  21115. <method name="set"
  21116. abstract="false" native="false" synchronized="false"
  21117. static="false" final="false" visibility="public"
  21118. deprecated="not deprecated">
  21119. <param name="value" type="int"/>
  21120. <doc>
  21121. <![CDATA[Set the value of this IntWritable.]]>
  21122. </doc>
  21123. </method>
  21124. <method name="get" return="int"
  21125. abstract="false" native="false" synchronized="false"
  21126. static="false" final="false" visibility="public"
  21127. deprecated="not deprecated">
  21128. <doc>
  21129. <![CDATA[Return the value of this IntWritable.]]>
  21130. </doc>
  21131. </method>
  21132. <method name="readFields"
  21133. abstract="false" native="false" synchronized="false"
  21134. static="false" final="false" visibility="public"
  21135. deprecated="not deprecated">
  21136. <param name="in" type="java.io.DataInput"/>
  21137. <exception name="IOException" type="java.io.IOException"/>
  21138. </method>
  21139. <method name="write"
  21140. abstract="false" native="false" synchronized="false"
  21141. static="false" final="false" visibility="public"
  21142. deprecated="not deprecated">
  21143. <param name="out" type="java.io.DataOutput"/>
  21144. <exception name="IOException" type="java.io.IOException"/>
  21145. </method>
  21146. <method name="equals" return="boolean"
  21147. abstract="false" native="false" synchronized="false"
  21148. static="false" final="false" visibility="public"
  21149. deprecated="not deprecated">
  21150. <param name="o" type="java.lang.Object"/>
  21151. <doc>
  21152. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  21153. </doc>
  21154. </method>
  21155. <method name="hashCode" return="int"
  21156. abstract="false" native="false" synchronized="false"
  21157. static="false" final="false" visibility="public"
  21158. deprecated="not deprecated">
  21159. </method>
  21160. <method name="compareTo" return="int"
  21161. abstract="false" native="false" synchronized="false"
  21162. static="false" final="false" visibility="public"
  21163. deprecated="not deprecated">
  21164. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  21165. <doc>
  21166. <![CDATA[Compares two IntWritables.]]>
  21167. </doc>
  21168. </method>
  21169. <method name="toString" return="java.lang.String"
  21170. abstract="false" native="false" synchronized="false"
  21171. static="false" final="false" visibility="public"
  21172. deprecated="not deprecated">
  21173. </method>
  21174. <doc>
  21175. <![CDATA[A WritableComparable for ints.]]>
  21176. </doc>
  21177. </class>
  21178. <!-- end class org.apache.hadoop.io.IntWritable -->
  21179. <!-- start class org.apache.hadoop.io.IOUtils -->
  21180. <class name="IOUtils" extends="java.lang.Object"
  21181. abstract="false"
  21182. static="false" final="false" visibility="public"
  21183. deprecated="not deprecated">
  21184. <constructor name="IOUtils"
  21185. static="false" final="false" visibility="public"
  21186. deprecated="not deprecated">
  21187. </constructor>
  21188. <method name="copyBytes"
  21189. abstract="false" native="false" synchronized="false"
  21190. static="true" final="false" visibility="public"
  21191. deprecated="not deprecated">
  21192. <param name="in" type="java.io.InputStream"/>
  21193. <param name="out" type="java.io.OutputStream"/>
  21194. <param name="buffSize" type="int"/>
  21195. <param name="close" type="boolean"/>
  21196. <exception name="IOException" type="java.io.IOException"/>
  21197. <doc>
  21198. <![CDATA[Copies from one stream to another.
  21199. @param in InputStrem to read from
  21200. @param out OutputStream to write to
  21201. @param buffSize the size of the buffer
  21202. @param close whether or not close the InputStream and
  21203. OutputStream at the end. The streams are closed in the finally clause.]]>
  21204. </doc>
  21205. </method>
  21206. <method name="copyBytes"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="true" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. <param name="in" type="java.io.InputStream"/>
  21211. <param name="out" type="java.io.OutputStream"/>
  21212. <param name="buffSize" type="int"/>
  21213. <exception name="IOException" type="java.io.IOException"/>
  21214. <doc>
  21215. <![CDATA[Copies from one stream to another.
  21216. @param in InputStrem to read from
  21217. @param out OutputStream to write to
  21218. @param buffSize the size of the buffer]]>
  21219. </doc>
  21220. </method>
  21221. <method name="copyBytes"
  21222. abstract="false" native="false" synchronized="false"
  21223. static="true" final="false" visibility="public"
  21224. deprecated="not deprecated">
  21225. <param name="in" type="java.io.InputStream"/>
  21226. <param name="out" type="java.io.OutputStream"/>
  21227. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21228. <exception name="IOException" type="java.io.IOException"/>
  21229. <doc>
  21230. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  21231. at the end</strong>.
  21232. @param in InputStrem to read from
  21233. @param out OutputStream to write to
  21234. @param conf the Configuration object]]>
  21235. </doc>
  21236. </method>
  21237. <method name="copyBytes"
  21238. abstract="false" native="false" synchronized="false"
  21239. static="true" final="false" visibility="public"
  21240. deprecated="not deprecated">
  21241. <param name="in" type="java.io.InputStream"/>
  21242. <param name="out" type="java.io.OutputStream"/>
  21243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21244. <param name="close" type="boolean"/>
  21245. <exception name="IOException" type="java.io.IOException"/>
  21246. <doc>
  21247. <![CDATA[Copies from one stream to another.
  21248. @param in InputStream to read from
  21249. @param out OutputStream to write to
  21250. @param conf the Configuration object
  21251. @param close whether or not close the InputStream and
  21252. OutputStream at the end. The streams are closed in the finally clause.]]>
  21253. </doc>
  21254. </method>
  21255. <method name="copyBytes"
  21256. abstract="false" native="false" synchronized="false"
  21257. static="true" final="false" visibility="public"
  21258. deprecated="not deprecated">
  21259. <param name="in" type="java.io.InputStream"/>
  21260. <param name="out" type="java.io.OutputStream"/>
  21261. <param name="count" type="long"/>
  21262. <param name="close" type="boolean"/>
  21263. <exception name="IOException" type="java.io.IOException"/>
  21264. <doc>
  21265. <![CDATA[Copies count bytes from one stream to another.
  21266. @param in InputStream to read from
  21267. @param out OutputStream to write to
  21268. @param count number of bytes to copy
  21269. @param close whether to close the streams
  21270. @throws IOException if bytes can not be read or written]]>
  21271. </doc>
  21272. </method>
  21273. <method name="wrappedReadForCompressedData" return="int"
  21274. abstract="false" native="false" synchronized="false"
  21275. static="true" final="false" visibility="public"
  21276. deprecated="not deprecated">
  21277. <param name="is" type="java.io.InputStream"/>
  21278. <param name="buf" type="byte[]"/>
  21279. <param name="off" type="int"/>
  21280. <param name="len" type="int"/>
  21281. <exception name="IOException" type="java.io.IOException"/>
  21282. <doc>
  21283. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  21284. thrown by the underlying stream (either IO or decompression-related), and
  21285. re-throws as an IOException.
  21286. @param is - InputStream to be read from
  21287. @param buf - buffer the data is read into
  21288. @param off - offset within buf
  21289. @param len - amount of data to be read
  21290. @return number of bytes read]]>
  21291. </doc>
  21292. </method>
  21293. <method name="readFully"
  21294. abstract="false" native="false" synchronized="false"
  21295. static="true" final="false" visibility="public"
  21296. deprecated="not deprecated">
  21297. <param name="in" type="java.io.InputStream"/>
  21298. <param name="buf" type="byte[]"/>
  21299. <param name="off" type="int"/>
  21300. <param name="len" type="int"/>
  21301. <exception name="IOException" type="java.io.IOException"/>
  21302. <doc>
  21303. <![CDATA[Reads len bytes in a loop.
  21304. @param in InputStream to read from
  21305. @param buf The buffer to fill
  21306. @param off offset from the buffer
  21307. @param len the length of bytes to read
  21308. @throws IOException if it could not read requested number of bytes
  21309. for any reason (including EOF)]]>
  21310. </doc>
  21311. </method>
  21312. <method name="skipFully"
  21313. abstract="false" native="false" synchronized="false"
  21314. static="true" final="false" visibility="public"
  21315. deprecated="not deprecated">
  21316. <param name="in" type="java.io.InputStream"/>
  21317. <param name="len" type="long"/>
  21318. <exception name="IOException" type="java.io.IOException"/>
  21319. <doc>
  21320. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  21321. @param in The InputStream to skip bytes from
  21322. @param len number of bytes to skip.
  21323. @throws IOException if it could not skip requested number of bytes
  21324. for any reason (including EOF)]]>
  21325. </doc>
  21326. </method>
  21327. <method name="cleanup"
  21328. abstract="false" native="false" synchronized="false"
  21329. static="true" final="false" visibility="public"
  21330. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  21331. instead">
  21332. <param name="log" type="org.apache.commons.logging.Log"/>
  21333. <param name="closeables" type="java.io.Closeable[]"/>
  21334. <doc>
  21335. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  21336. null pointers. Must only be used for cleanup in exception handlers.
  21337. @param log the log to record problems to at debug level. Can be null.
  21338. @param closeables the objects to close
  21339. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  21340. instead]]>
  21341. </doc>
  21342. </method>
  21343. <method name="cleanupWithLogger"
  21344. abstract="false" native="false" synchronized="false"
  21345. static="true" final="false" visibility="public"
  21346. deprecated="not deprecated">
  21347. <param name="logger" type="org.slf4j.Logger"/>
  21348. <param name="closeables" type="java.io.Closeable[]"/>
  21349. <doc>
  21350. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  21351. null pointers. Must only be used for cleanup in exception handlers.
  21352. @param logger the log to record problems to at debug level. Can be null.
  21353. @param closeables the objects to close]]>
  21354. </doc>
  21355. </method>
  21356. <method name="closeStream"
  21357. abstract="false" native="false" synchronized="false"
  21358. static="true" final="false" visibility="public"
  21359. deprecated="not deprecated">
  21360. <param name="stream" type="java.io.Closeable"/>
  21361. <doc>
  21362. <![CDATA[Closes the stream ignoring {@link Throwable}.
  21363. Must only be called in cleaning up from exception handlers.
  21364. @param stream the Stream to close]]>
  21365. </doc>
  21366. </method>
  21367. <method name="closeStreams"
  21368. abstract="false" native="false" synchronized="false"
  21369. static="true" final="false" visibility="public"
  21370. deprecated="not deprecated">
  21371. <param name="streams" type="java.io.Closeable[]"/>
  21372. <doc>
  21373. <![CDATA[Closes the streams ignoring {@link Throwable}.
  21374. Must only be called in cleaning up from exception handlers.
  21375. @param streams the Streams to close]]>
  21376. </doc>
  21377. </method>
  21378. <method name="closeSocket"
  21379. abstract="false" native="false" synchronized="false"
  21380. static="true" final="false" visibility="public"
  21381. deprecated="not deprecated">
  21382. <param name="sock" type="java.net.Socket"/>
  21383. <doc>
  21384. <![CDATA[Closes the socket ignoring {@link IOException}
  21385. @param sock the Socket to close]]>
  21386. </doc>
  21387. </method>
  21388. <method name="writeFully"
  21389. abstract="false" native="false" synchronized="false"
  21390. static="true" final="false" visibility="public"
  21391. deprecated="not deprecated">
  21392. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  21393. <param name="buf" type="java.nio.ByteBuffer"/>
  21394. <exception name="IOException" type="java.io.IOException"/>
  21395. <doc>
  21396. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  21397. @param bc The WritableByteChannel to write to
  21398. @param buf The input buffer
  21399. @throws IOException On I/O error]]>
  21400. </doc>
  21401. </method>
  21402. <method name="writeFully"
  21403. abstract="false" native="false" synchronized="false"
  21404. static="true" final="false" visibility="public"
  21405. deprecated="not deprecated">
  21406. <param name="fc" type="java.nio.channels.FileChannel"/>
  21407. <param name="buf" type="java.nio.ByteBuffer"/>
  21408. <param name="offset" type="long"/>
  21409. <exception name="IOException" type="java.io.IOException"/>
  21410. <doc>
  21411. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  21412. handling short writes.
  21413. @param fc The FileChannel to write to
  21414. @param buf The input buffer
  21415. @param offset The offset in the file to start writing at
  21416. @throws IOException On I/O error]]>
  21417. </doc>
  21418. </method>
  21419. <method name="listDirectory" return="java.util.List"
  21420. abstract="false" native="false" synchronized="false"
  21421. static="true" final="false" visibility="public"
  21422. deprecated="not deprecated">
  21423. <param name="dir" type="java.io.File"/>
  21424. <param name="filter" type="java.io.FilenameFilter"/>
  21425. <exception name="IOException" type="java.io.IOException"/>
  21426. <doc>
  21427. <![CDATA[Return the complete list of files in a directory as strings.<p>
  21428. This is better than File#listDir because it does not ignore IOExceptions.
  21429. @param dir The directory to list.
  21430. @param filter If non-null, the filter to use when listing
  21431. this directory.
  21432. @return The list of files in the directory.
  21433. @throws IOException On I/O error]]>
  21434. </doc>
  21435. </method>
  21436. <method name="fsync"
  21437. abstract="false" native="false" synchronized="false"
  21438. static="true" final="false" visibility="public"
  21439. deprecated="not deprecated">
  21440. <param name="fileToSync" type="java.io.File"/>
  21441. <exception name="IOException" type="java.io.IOException"/>
  21442. <doc>
  21443. <![CDATA[Ensure that any writes to the given file is written to the storage device
  21444. that contains it. This method opens channel on given File and closes it
  21445. once the sync is done.<br>
  21446. Borrowed from Uwe Schindler in LUCENE-5588
  21447. @param fileToSync the file to fsync]]>
  21448. </doc>
  21449. </method>
  21450. <method name="fsync"
  21451. abstract="false" native="false" synchronized="false"
  21452. static="true" final="false" visibility="public"
  21453. deprecated="not deprecated">
  21454. <param name="channel" type="java.nio.channels.FileChannel"/>
  21455. <param name="isDir" type="boolean"/>
  21456. <exception name="IOException" type="java.io.IOException"/>
  21457. <doc>
  21458. <![CDATA[Ensure that any writes to the given file is written to the storage device
  21459. that contains it. This method opens channel on given File and closes it
  21460. once the sync is done.
  21461. Borrowed from Uwe Schindler in LUCENE-5588
  21462. @param channel Channel to sync
  21463. @param isDir if true, the given file is a directory (Channel should be
  21464. opened for read and ignore IOExceptions, because not all file
  21465. systems and operating systems allow to fsync on a directory)
  21466. @throws IOException]]>
  21467. </doc>
  21468. </method>
  21469. <method name="wrapException" return="java.io.IOException"
  21470. abstract="false" native="false" synchronized="false"
  21471. static="true" final="false" visibility="public"
  21472. deprecated="not deprecated">
  21473. <param name="path" type="java.lang.String"/>
  21474. <param name="methodName" type="java.lang.String"/>
  21475. <param name="exception" type="java.io.IOException"/>
  21476. <doc>
  21477. <![CDATA[Takes an IOException, file/directory path, and method name and returns an
  21478. IOException with the input exception as the cause and also include the
  21479. file,method details. The new exception provides the stack trace of the
  21480. place where the exception is thrown and some extra diagnostics
  21481. information.
  21482. Return instance of same exception if exception class has a public string
  21483. constructor; Otherwise return an PathIOException.
  21484. InterruptedIOException and PathIOException are returned unwrapped.
  21485. @param path file/directory path
  21486. @param methodName method name
  21487. @param exception the caught exception.
  21488. @return an exception to throw]]>
  21489. </doc>
  21490. </method>
  21491. <method name="readFullyToByteArray" return="byte[]"
  21492. abstract="false" native="false" synchronized="false"
  21493. static="true" final="false" visibility="public"
  21494. deprecated="not deprecated">
  21495. <param name="in" type="java.io.DataInput"/>
  21496. <exception name="IOException" type="java.io.IOException"/>
  21497. <doc>
  21498. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  21499. pass in an infinite DataInput or this will never return.
  21500. @param in A DataInput
  21501. @return a byte array containing the data from the DataInput
  21502. @throws IOException on I/O error, other than EOF]]>
  21503. </doc>
  21504. </method>
  21505. <field name="LOG" type="org.slf4j.Logger"
  21506. transient="false" volatile="false"
  21507. static="true" final="true" visibility="public"
  21508. deprecated="not deprecated">
  21509. </field>
  21510. <doc>
  21511. <![CDATA[An utility class for I/O related functionality.]]>
  21512. </doc>
  21513. </class>
  21514. <!-- end class org.apache.hadoop.io.IOUtils -->
  21515. <!-- start class org.apache.hadoop.io.LongWritable -->
  21516. <class name="LongWritable" extends="java.lang.Object"
  21517. abstract="false"
  21518. static="false" final="false" visibility="public"
  21519. deprecated="not deprecated">
  21520. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21521. <constructor name="LongWritable"
  21522. static="false" final="false" visibility="public"
  21523. deprecated="not deprecated">
  21524. </constructor>
  21525. <constructor name="LongWritable" type="long"
  21526. static="false" final="false" visibility="public"
  21527. deprecated="not deprecated">
  21528. </constructor>
  21529. <method name="set"
  21530. abstract="false" native="false" synchronized="false"
  21531. static="false" final="false" visibility="public"
  21532. deprecated="not deprecated">
  21533. <param name="value" type="long"/>
  21534. <doc>
  21535. <![CDATA[Set the value of this LongWritable.]]>
  21536. </doc>
  21537. </method>
  21538. <method name="get" return="long"
  21539. abstract="false" native="false" synchronized="false"
  21540. static="false" final="false" visibility="public"
  21541. deprecated="not deprecated">
  21542. <doc>
  21543. <![CDATA[Return the value of this LongWritable.]]>
  21544. </doc>
  21545. </method>
  21546. <method name="readFields"
  21547. abstract="false" native="false" synchronized="false"
  21548. static="false" final="false" visibility="public"
  21549. deprecated="not deprecated">
  21550. <param name="in" type="java.io.DataInput"/>
  21551. <exception name="IOException" type="java.io.IOException"/>
  21552. </method>
  21553. <method name="write"
  21554. abstract="false" native="false" synchronized="false"
  21555. static="false" final="false" visibility="public"
  21556. deprecated="not deprecated">
  21557. <param name="out" type="java.io.DataOutput"/>
  21558. <exception name="IOException" type="java.io.IOException"/>
  21559. </method>
  21560. <method name="equals" return="boolean"
  21561. abstract="false" native="false" synchronized="false"
  21562. static="false" final="false" visibility="public"
  21563. deprecated="not deprecated">
  21564. <param name="o" type="java.lang.Object"/>
  21565. <doc>
  21566. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  21567. </doc>
  21568. </method>
  21569. <method name="hashCode" return="int"
  21570. abstract="false" native="false" synchronized="false"
  21571. static="false" final="false" visibility="public"
  21572. deprecated="not deprecated">
  21573. </method>
  21574. <method name="compareTo" return="int"
  21575. abstract="false" native="false" synchronized="false"
  21576. static="false" final="false" visibility="public"
  21577. deprecated="not deprecated">
  21578. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  21579. <doc>
  21580. <![CDATA[Compares two LongWritables.]]>
  21581. </doc>
  21582. </method>
  21583. <method name="toString" return="java.lang.String"
  21584. abstract="false" native="false" synchronized="false"
  21585. static="false" final="false" visibility="public"
  21586. deprecated="not deprecated">
  21587. </method>
  21588. <doc>
  21589. <![CDATA[A WritableComparable for longs.]]>
  21590. </doc>
  21591. </class>
  21592. <!-- end class org.apache.hadoop.io.LongWritable -->
  21593. <!-- start class org.apache.hadoop.io.MapFile -->
  21594. <class name="MapFile" extends="java.lang.Object"
  21595. abstract="false"
  21596. static="false" final="false" visibility="public"
  21597. deprecated="not deprecated">
  21598. <constructor name="MapFile"
  21599. static="false" final="false" visibility="protected"
  21600. deprecated="not deprecated">
  21601. </constructor>
  21602. <method name="rename"
  21603. abstract="false" native="false" synchronized="false"
  21604. static="true" final="false" visibility="public"
  21605. deprecated="not deprecated">
  21606. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21607. <param name="oldName" type="java.lang.String"/>
  21608. <param name="newName" type="java.lang.String"/>
  21609. <exception name="IOException" type="java.io.IOException"/>
  21610. <doc>
  21611. <![CDATA[Renames an existing map directory.]]>
  21612. </doc>
  21613. </method>
  21614. <method name="delete"
  21615. abstract="false" native="false" synchronized="false"
  21616. static="true" final="false" visibility="public"
  21617. deprecated="not deprecated">
  21618. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21619. <param name="name" type="java.lang.String"/>
  21620. <exception name="IOException" type="java.io.IOException"/>
  21621. <doc>
  21622. <![CDATA[Deletes the named map file.]]>
  21623. </doc>
  21624. </method>
  21625. <method name="fix" return="long"
  21626. abstract="false" native="false" synchronized="false"
  21627. static="true" final="false" visibility="public"
  21628. deprecated="not deprecated">
  21629. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21630. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  21631. <param name="keyClass" type="java.lang.Class"/>
  21632. <param name="valueClass" type="java.lang.Class"/>
  21633. <param name="dryrun" type="boolean"/>
  21634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21635. <exception name="Exception" type="java.lang.Exception"/>
  21636. <doc>
  21637. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  21638. @param fs filesystem
  21639. @param dir directory containing the MapFile data and index
  21640. @param keyClass key class (has to be a subclass of Writable)
  21641. @param valueClass value class (has to be a subclass of Writable)
  21642. @param dryrun do not perform any changes, just report what needs to be done
  21643. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  21644. @throws Exception]]>
  21645. </doc>
  21646. </method>
  21647. <method name="main"
  21648. abstract="false" native="false" synchronized="false"
  21649. static="true" final="false" visibility="public"
  21650. deprecated="not deprecated">
  21651. <param name="args" type="java.lang.String[]"/>
  21652. <exception name="Exception" type="java.lang.Exception"/>
  21653. </method>
  21654. <field name="INDEX_FILE_NAME" type="java.lang.String"
  21655. transient="false" volatile="false"
  21656. static="true" final="true" visibility="public"
  21657. deprecated="not deprecated">
  21658. <doc>
  21659. <![CDATA[The name of the index file.]]>
  21660. </doc>
  21661. </field>
  21662. <field name="DATA_FILE_NAME" type="java.lang.String"
  21663. transient="false" volatile="false"
  21664. static="true" final="true" visibility="public"
  21665. deprecated="not deprecated">
  21666. <doc>
  21667. <![CDATA[The name of the data file.]]>
  21668. </doc>
  21669. </field>
  21670. <doc>
  21671. <![CDATA[A file-based map from keys to values.
  21672. <p>A map is a directory containing two files, the <code>data</code> file,
  21673. containing all keys and values in the map, and a smaller <code>index</code>
  21674. file, containing a fraction of the keys. The fraction is determined by
  21675. {@link Writer#getIndexInterval()}.
  21676. <p>The index file is read entirely into memory. Thus key implementations
  21677. should try to keep themselves small.
  21678. <p>Map files are created by adding entries in-order. To maintain a large
  21679. database, perform updates by copying the previous version of a database and
  21680. merging in a sorted change list, to create a new version of the database in
  21681. a new file. Sorting large change lists can be done with {@link
  21682. SequenceFile.Sorter}.]]>
  21683. </doc>
  21684. </class>
  21685. <!-- end class org.apache.hadoop.io.MapFile -->
  21686. <!-- start class org.apache.hadoop.io.MapWritable -->
  21687. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  21688. abstract="false"
  21689. static="false" final="false" visibility="public"
  21690. deprecated="not deprecated">
  21691. <implements name="java.util.Map"/>
  21692. <constructor name="MapWritable"
  21693. static="false" final="false" visibility="public"
  21694. deprecated="not deprecated">
  21695. <doc>
  21696. <![CDATA[Default constructor.]]>
  21697. </doc>
  21698. </constructor>
  21699. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  21700. static="false" final="false" visibility="public"
  21701. deprecated="not deprecated">
  21702. <doc>
  21703. <![CDATA[Copy constructor.
  21704. @param other the map to copy from]]>
  21705. </doc>
  21706. </constructor>
  21707. <method name="clear"
  21708. abstract="false" native="false" synchronized="false"
  21709. static="false" final="false" visibility="public"
  21710. deprecated="not deprecated">
  21711. </method>
  21712. <method name="containsKey" return="boolean"
  21713. abstract="false" native="false" synchronized="false"
  21714. static="false" final="false" visibility="public"
  21715. deprecated="not deprecated">
  21716. <param name="key" type="java.lang.Object"/>
  21717. </method>
  21718. <method name="containsValue" return="boolean"
  21719. abstract="false" native="false" synchronized="false"
  21720. static="false" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. <param name="value" type="java.lang.Object"/>
  21723. </method>
  21724. <method name="entrySet" return="java.util.Set"
  21725. abstract="false" native="false" synchronized="false"
  21726. static="false" final="false" visibility="public"
  21727. deprecated="not deprecated">
  21728. </method>
  21729. <method name="equals" return="boolean"
  21730. abstract="false" native="false" synchronized="false"
  21731. static="false" final="false" visibility="public"
  21732. deprecated="not deprecated">
  21733. <param name="obj" type="java.lang.Object"/>
  21734. </method>
  21735. <method name="get" return="org.apache.hadoop.io.Writable"
  21736. abstract="false" native="false" synchronized="false"
  21737. static="false" final="false" visibility="public"
  21738. deprecated="not deprecated">
  21739. <param name="key" type="java.lang.Object"/>
  21740. </method>
  21741. <method name="hashCode" return="int"
  21742. abstract="false" native="false" synchronized="false"
  21743. static="false" final="false" visibility="public"
  21744. deprecated="not deprecated">
  21745. </method>
  21746. <method name="isEmpty" return="boolean"
  21747. abstract="false" native="false" synchronized="false"
  21748. static="false" final="false" visibility="public"
  21749. deprecated="not deprecated">
  21750. </method>
  21751. <method name="keySet" return="java.util.Set"
  21752. abstract="false" native="false" synchronized="false"
  21753. static="false" final="false" visibility="public"
  21754. deprecated="not deprecated">
  21755. </method>
  21756. <method name="put" return="org.apache.hadoop.io.Writable"
  21757. abstract="false" native="false" synchronized="false"
  21758. static="false" final="false" visibility="public"
  21759. deprecated="not deprecated">
  21760. <param name="key" type="org.apache.hadoop.io.Writable"/>
  21761. <param name="value" type="org.apache.hadoop.io.Writable"/>
  21762. </method>
  21763. <method name="putAll"
  21764. abstract="false" native="false" synchronized="false"
  21765. static="false" final="false" visibility="public"
  21766. deprecated="not deprecated">
  21767. <param name="t" type="java.util.Map"/>
  21768. </method>
  21769. <method name="remove" return="org.apache.hadoop.io.Writable"
  21770. abstract="false" native="false" synchronized="false"
  21771. static="false" final="false" visibility="public"
  21772. deprecated="not deprecated">
  21773. <param name="key" type="java.lang.Object"/>
  21774. </method>
  21775. <method name="size" return="int"
  21776. abstract="false" native="false" synchronized="false"
  21777. static="false" final="false" visibility="public"
  21778. deprecated="not deprecated">
  21779. </method>
  21780. <method name="values" return="java.util.Collection"
  21781. abstract="false" native="false" synchronized="false"
  21782. static="false" final="false" visibility="public"
  21783. deprecated="not deprecated">
  21784. </method>
  21785. <method name="write"
  21786. abstract="false" native="false" synchronized="false"
  21787. static="false" final="false" visibility="public"
  21788. deprecated="not deprecated">
  21789. <param name="out" type="java.io.DataOutput"/>
  21790. <exception name="IOException" type="java.io.IOException"/>
  21791. </method>
  21792. <method name="readFields"
  21793. abstract="false" native="false" synchronized="false"
  21794. static="false" final="false" visibility="public"
  21795. deprecated="not deprecated">
  21796. <param name="in" type="java.io.DataInput"/>
  21797. <exception name="IOException" type="java.io.IOException"/>
  21798. </method>
  21799. <method name="toString" return="java.lang.String"
  21800. abstract="false" native="false" synchronized="false"
  21801. static="false" final="false" visibility="public"
  21802. deprecated="not deprecated">
  21803. </method>
  21804. <doc>
  21805. <![CDATA[A Writable Map.]]>
  21806. </doc>
  21807. </class>
  21808. <!-- end class org.apache.hadoop.io.MapWritable -->
  21809. <!-- start class org.apache.hadoop.io.MD5Hash -->
  21810. <class name="MD5Hash" extends="java.lang.Object"
  21811. abstract="false"
  21812. static="false" final="false" visibility="public"
  21813. deprecated="not deprecated">
  21814. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21815. <constructor name="MD5Hash"
  21816. static="false" final="false" visibility="public"
  21817. deprecated="not deprecated">
  21818. <doc>
  21819. <![CDATA[Constructs an MD5Hash.]]>
  21820. </doc>
  21821. </constructor>
  21822. <constructor name="MD5Hash" type="java.lang.String"
  21823. static="false" final="false" visibility="public"
  21824. deprecated="not deprecated">
  21825. <doc>
  21826. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  21827. </doc>
  21828. </constructor>
  21829. <constructor name="MD5Hash" type="byte[]"
  21830. static="false" final="false" visibility="public"
  21831. deprecated="not deprecated">
  21832. <doc>
  21833. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  21834. </doc>
  21835. </constructor>
  21836. <method name="readFields"
  21837. abstract="false" native="false" synchronized="false"
  21838. static="false" final="false" visibility="public"
  21839. deprecated="not deprecated">
  21840. <param name="in" type="java.io.DataInput"/>
  21841. <exception name="IOException" type="java.io.IOException"/>
  21842. </method>
  21843. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  21844. abstract="false" native="false" synchronized="false"
  21845. static="true" final="false" visibility="public"
  21846. deprecated="not deprecated">
  21847. <param name="in" type="java.io.DataInput"/>
  21848. <exception name="IOException" type="java.io.IOException"/>
  21849. <doc>
  21850. <![CDATA[Constructs, reads and returns an instance.]]>
  21851. </doc>
  21852. </method>
  21853. <method name="write"
  21854. abstract="false" native="false" synchronized="false"
  21855. static="false" final="false" visibility="public"
  21856. deprecated="not deprecated">
  21857. <param name="out" type="java.io.DataOutput"/>
  21858. <exception name="IOException" type="java.io.IOException"/>
  21859. </method>
  21860. <method name="set"
  21861. abstract="false" native="false" synchronized="false"
  21862. static="false" final="false" visibility="public"
  21863. deprecated="not deprecated">
  21864. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  21865. <doc>
  21866. <![CDATA[Copy the contents of another instance into this instance.]]>
  21867. </doc>
  21868. </method>
  21869. <method name="getDigest" return="byte[]"
  21870. abstract="false" native="false" synchronized="false"
  21871. static="false" final="false" visibility="public"
  21872. deprecated="not deprecated">
  21873. <doc>
  21874. <![CDATA[Returns the digest bytes.]]>
  21875. </doc>
  21876. </method>
  21877. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21878. abstract="false" native="false" synchronized="false"
  21879. static="true" final="false" visibility="public"
  21880. deprecated="not deprecated">
  21881. <param name="data" type="byte[]"/>
  21882. <doc>
  21883. <![CDATA[Construct a hash value for a byte array.]]>
  21884. </doc>
  21885. </method>
  21886. <method name="getDigester" return="java.security.MessageDigest"
  21887. abstract="false" native="false" synchronized="false"
  21888. static="true" final="false" visibility="public"
  21889. deprecated="not deprecated">
  21890. <doc>
  21891. <![CDATA[Create a thread local MD5 digester]]>
  21892. </doc>
  21893. </method>
  21894. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21895. abstract="false" native="false" synchronized="false"
  21896. static="true" final="false" visibility="public"
  21897. deprecated="not deprecated">
  21898. <param name="in" type="java.io.InputStream"/>
  21899. <exception name="IOException" type="java.io.IOException"/>
  21900. <doc>
  21901. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  21902. </doc>
  21903. </method>
  21904. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21905. abstract="false" native="false" synchronized="false"
  21906. static="true" final="false" visibility="public"
  21907. deprecated="not deprecated">
  21908. <param name="data" type="byte[]"/>
  21909. <param name="start" type="int"/>
  21910. <param name="len" type="int"/>
  21911. <doc>
  21912. <![CDATA[Construct a hash value for a byte array.]]>
  21913. </doc>
  21914. </method>
  21915. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21916. abstract="false" native="false" synchronized="false"
  21917. static="true" final="false" visibility="public"
  21918. deprecated="not deprecated">
  21919. <param name="dataArr" type="byte[][]"/>
  21920. <param name="start" type="int"/>
  21921. <param name="len" type="int"/>
  21922. <doc>
  21923. <![CDATA[Construct a hash value for an array of byte array.]]>
  21924. </doc>
  21925. </method>
  21926. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21927. abstract="false" native="false" synchronized="false"
  21928. static="true" final="false" visibility="public"
  21929. deprecated="not deprecated">
  21930. <param name="string" type="java.lang.String"/>
  21931. <doc>
  21932. <![CDATA[Construct a hash value for a String.]]>
  21933. </doc>
  21934. </method>
  21935. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21936. abstract="false" native="false" synchronized="false"
  21937. static="true" final="false" visibility="public"
  21938. deprecated="not deprecated">
  21939. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  21940. <doc>
  21941. <![CDATA[Construct a hash value for a String.]]>
  21942. </doc>
  21943. </method>
  21944. <method name="halfDigest" return="long"
  21945. abstract="false" native="false" synchronized="false"
  21946. static="false" final="false" visibility="public"
  21947. deprecated="not deprecated">
  21948. <doc>
  21949. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  21950. </doc>
  21951. </method>
  21952. <method name="quarterDigest" return="int"
  21953. abstract="false" native="false" synchronized="false"
  21954. static="false" final="false" visibility="public"
  21955. deprecated="not deprecated">
  21956. <doc>
  21957. <![CDATA[Return a 32-bit digest of the MD5.
  21958. @return the first 4 bytes of the md5]]>
  21959. </doc>
  21960. </method>
  21961. <method name="equals" return="boolean"
  21962. abstract="false" native="false" synchronized="false"
  21963. static="false" final="false" visibility="public"
  21964. deprecated="not deprecated">
  21965. <param name="o" type="java.lang.Object"/>
  21966. <doc>
  21967. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  21968. same values.]]>
  21969. </doc>
  21970. </method>
  21971. <method name="hashCode" return="int"
  21972. abstract="false" native="false" synchronized="false"
  21973. static="false" final="false" visibility="public"
  21974. deprecated="not deprecated">
  21975. <doc>
  21976. <![CDATA[Returns a hash code value for this object.
  21977. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  21978. </doc>
  21979. </method>
  21980. <method name="compareTo" return="int"
  21981. abstract="false" native="false" synchronized="false"
  21982. static="false" final="false" visibility="public"
  21983. deprecated="not deprecated">
  21984. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  21985. <doc>
  21986. <![CDATA[Compares this object with the specified object for order.]]>
  21987. </doc>
  21988. </method>
  21989. <method name="toString" return="java.lang.String"
  21990. abstract="false" native="false" synchronized="false"
  21991. static="false" final="false" visibility="public"
  21992. deprecated="not deprecated">
  21993. <doc>
  21994. <![CDATA[Returns a string representation of this object.]]>
  21995. </doc>
  21996. </method>
  21997. <method name="setDigest"
  21998. abstract="false" native="false" synchronized="false"
  21999. static="false" final="false" visibility="public"
  22000. deprecated="not deprecated">
  22001. <param name="hex" type="java.lang.String"/>
  22002. <doc>
  22003. <![CDATA[Sets the digest value from a hex string.]]>
  22004. </doc>
  22005. </method>
  22006. <field name="MD5_LEN" type="int"
  22007. transient="false" volatile="false"
  22008. static="true" final="true" visibility="public"
  22009. deprecated="not deprecated">
  22010. </field>
  22011. <doc>
  22012. <![CDATA[A Writable for MD5 hash values.]]>
  22013. </doc>
  22014. </class>
  22015. <!-- end class org.apache.hadoop.io.MD5Hash -->
  22016. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  22017. <class name="MultipleIOException" extends="java.io.IOException"
  22018. abstract="false"
  22019. static="false" final="false" visibility="public"
  22020. deprecated="not deprecated">
  22021. <method name="getExceptions" return="java.util.List"
  22022. abstract="false" native="false" synchronized="false"
  22023. static="false" final="false" visibility="public"
  22024. deprecated="not deprecated">
  22025. <doc>
  22026. <![CDATA[@return the underlying exceptions]]>
  22027. </doc>
  22028. </method>
  22029. <method name="createIOException" return="java.io.IOException"
  22030. abstract="false" native="false" synchronized="false"
  22031. static="true" final="false" visibility="public"
  22032. deprecated="not deprecated">
  22033. <param name="exceptions" type="java.util.List"/>
  22034. <doc>
  22035. <![CDATA[A convenient method to create an {@link IOException}.]]>
  22036. </doc>
  22037. </method>
  22038. <doc>
  22039. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  22040. </doc>
  22041. </class>
  22042. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  22043. <!-- start class org.apache.hadoop.io.NullWritable -->
  22044. <class name="NullWritable" extends="java.lang.Object"
  22045. abstract="false"
  22046. static="false" final="false" visibility="public"
  22047. deprecated="not deprecated">
  22048. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22049. <method name="get" return="org.apache.hadoop.io.NullWritable"
  22050. abstract="false" native="false" synchronized="false"
  22051. static="true" final="false" visibility="public"
  22052. deprecated="not deprecated">
  22053. <doc>
  22054. <![CDATA[Returns the single instance of this class.]]>
  22055. </doc>
  22056. </method>
  22057. <method name="toString" return="java.lang.String"
  22058. abstract="false" native="false" synchronized="false"
  22059. static="false" final="false" visibility="public"
  22060. deprecated="not deprecated">
  22061. </method>
  22062. <method name="hashCode" return="int"
  22063. abstract="false" native="false" synchronized="false"
  22064. static="false" final="false" visibility="public"
  22065. deprecated="not deprecated">
  22066. </method>
  22067. <method name="compareTo" return="int"
  22068. abstract="false" native="false" synchronized="false"
  22069. static="false" final="false" visibility="public"
  22070. deprecated="not deprecated">
  22071. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  22072. </method>
  22073. <method name="equals" return="boolean"
  22074. abstract="false" native="false" synchronized="false"
  22075. static="false" final="false" visibility="public"
  22076. deprecated="not deprecated">
  22077. <param name="other" type="java.lang.Object"/>
  22078. </method>
  22079. <method name="readFields"
  22080. abstract="false" native="false" synchronized="false"
  22081. static="false" final="false" visibility="public"
  22082. deprecated="not deprecated">
  22083. <param name="in" type="java.io.DataInput"/>
  22084. <exception name="IOException" type="java.io.IOException"/>
  22085. </method>
  22086. <method name="write"
  22087. abstract="false" native="false" synchronized="false"
  22088. static="false" final="false" visibility="public"
  22089. deprecated="not deprecated">
  22090. <param name="out" type="java.io.DataOutput"/>
  22091. <exception name="IOException" type="java.io.IOException"/>
  22092. </method>
  22093. <doc>
  22094. <![CDATA[Singleton Writable with no data.]]>
  22095. </doc>
  22096. </class>
  22097. <!-- end class org.apache.hadoop.io.NullWritable -->
  22098. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  22099. <class name="ObjectWritable" extends="java.lang.Object"
  22100. abstract="false"
  22101. static="false" final="false" visibility="public"
  22102. deprecated="not deprecated">
  22103. <implements name="org.apache.hadoop.io.Writable"/>
  22104. <implements name="org.apache.hadoop.conf.Configurable"/>
  22105. <constructor name="ObjectWritable"
  22106. static="false" final="false" visibility="public"
  22107. deprecated="not deprecated">
  22108. </constructor>
  22109. <constructor name="ObjectWritable" type="java.lang.Object"
  22110. static="false" final="false" visibility="public"
  22111. deprecated="not deprecated">
  22112. </constructor>
  22113. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  22114. static="false" final="false" visibility="public"
  22115. deprecated="not deprecated">
  22116. </constructor>
  22117. <method name="get" return="java.lang.Object"
  22118. abstract="false" native="false" synchronized="false"
  22119. static="false" final="false" visibility="public"
  22120. deprecated="not deprecated">
  22121. <doc>
  22122. <![CDATA[Return the instance, or null if none.]]>
  22123. </doc>
  22124. </method>
  22125. <method name="getDeclaredClass" return="java.lang.Class"
  22126. abstract="false" native="false" synchronized="false"
  22127. static="false" final="false" visibility="public"
  22128. deprecated="not deprecated">
  22129. <doc>
  22130. <![CDATA[Return the class this is meant to be.]]>
  22131. </doc>
  22132. </method>
  22133. <method name="set"
  22134. abstract="false" native="false" synchronized="false"
  22135. static="false" final="false" visibility="public"
  22136. deprecated="not deprecated">
  22137. <param name="instance" type="java.lang.Object"/>
  22138. <doc>
  22139. <![CDATA[Reset the instance.]]>
  22140. </doc>
  22141. </method>
  22142. <method name="toString" return="java.lang.String"
  22143. abstract="false" native="false" synchronized="false"
  22144. static="false" final="false" visibility="public"
  22145. deprecated="not deprecated">
  22146. </method>
  22147. <method name="readFields"
  22148. abstract="false" native="false" synchronized="false"
  22149. static="false" final="false" visibility="public"
  22150. deprecated="not deprecated">
  22151. <param name="in" type="java.io.DataInput"/>
  22152. <exception name="IOException" type="java.io.IOException"/>
  22153. </method>
  22154. <method name="write"
  22155. abstract="false" native="false" synchronized="false"
  22156. static="false" final="false" visibility="public"
  22157. deprecated="not deprecated">
  22158. <param name="out" type="java.io.DataOutput"/>
  22159. <exception name="IOException" type="java.io.IOException"/>
  22160. </method>
  22161. <method name="writeObject"
  22162. abstract="false" native="false" synchronized="false"
  22163. static="true" final="false" visibility="public"
  22164. deprecated="not deprecated">
  22165. <param name="out" type="java.io.DataOutput"/>
  22166. <param name="instance" type="java.lang.Object"/>
  22167. <param name="declaredClass" type="java.lang.Class"/>
  22168. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22169. <exception name="IOException" type="java.io.IOException"/>
  22170. <doc>
  22171. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  22172. the preceding.]]>
  22173. </doc>
  22174. </method>
  22175. <method name="writeObject"
  22176. abstract="false" native="false" synchronized="false"
  22177. static="true" final="false" visibility="public"
  22178. deprecated="not deprecated">
  22179. <param name="out" type="java.io.DataOutput"/>
  22180. <param name="instance" type="java.lang.Object"/>
  22181. <param name="declaredClass" type="java.lang.Class"/>
  22182. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22183. <param name="allowCompactArrays" type="boolean"/>
  22184. <exception name="IOException" type="java.io.IOException"/>
  22185. <doc>
  22186. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  22187. the preceding.
  22188. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  22189. usages. Set false for inter-cluster, File, and other persisted output
  22190. usages, to preserve the ability to interchange files with other clusters
  22191. that may not be running the same version of software. Sometime in ~2013
  22192. we can consider removing this parameter and always using the compact format.]]>
  22193. </doc>
  22194. </method>
  22195. <method name="readObject" return="java.lang.Object"
  22196. abstract="false" native="false" synchronized="false"
  22197. static="true" final="false" visibility="public"
  22198. deprecated="not deprecated">
  22199. <param name="in" type="java.io.DataInput"/>
  22200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22201. <exception name="IOException" type="java.io.IOException"/>
  22202. <doc>
  22203. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  22204. the preceding.]]>
  22205. </doc>
  22206. </method>
  22207. <method name="readObject" return="java.lang.Object"
  22208. abstract="false" native="false" synchronized="false"
  22209. static="true" final="false" visibility="public"
  22210. deprecated="not deprecated">
  22211. <param name="in" type="java.io.DataInput"/>
  22212. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  22213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22214. <exception name="IOException" type="java.io.IOException"/>
  22215. <doc>
  22216. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  22217. the preceding.]]>
  22218. </doc>
  22219. </method>
  22220. <method name="loadClass" return="java.lang.Class"
  22221. abstract="false" native="false" synchronized="false"
  22222. static="true" final="false" visibility="public"
  22223. deprecated="not deprecated">
  22224. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22225. <param name="className" type="java.lang.String"/>
  22226. <doc>
  22227. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  22228. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  22229. try load it directly.]]>
  22230. </doc>
  22231. </method>
  22232. <method name="setConf"
  22233. abstract="false" native="false" synchronized="false"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22237. </method>
  22238. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22239. abstract="false" native="false" synchronized="false"
  22240. static="false" final="false" visibility="public"
  22241. deprecated="not deprecated">
  22242. </method>
  22243. <doc>
  22244. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  22245. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  22246. </doc>
  22247. </class>
  22248. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  22249. <!-- start interface org.apache.hadoop.io.RawComparator -->
  22250. <interface name="RawComparator" abstract="true"
  22251. static="false" final="false" visibility="public"
  22252. deprecated="not deprecated">
  22253. <implements name="java.util.Comparator"/>
  22254. <method name="compare" return="int"
  22255. abstract="true" native="false" synchronized="false"
  22256. static="false" final="false" visibility="public"
  22257. deprecated="not deprecated">
  22258. <param name="b1" type="byte[]"/>
  22259. <param name="s1" type="int"/>
  22260. <param name="l1" type="int"/>
  22261. <param name="b2" type="byte[]"/>
  22262. <param name="s2" type="int"/>
  22263. <param name="l2" type="int"/>
  22264. <doc>
  22265. <![CDATA[Compare two objects in binary.
  22266. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  22267. @param b1 The first byte array.
  22268. @param s1 The position index in b1. The object under comparison's starting index.
  22269. @param l1 The length of the object in b1.
  22270. @param b2 The second byte array.
  22271. @param s2 The position index in b2. The object under comparison's starting index.
  22272. @param l2 The length of the object under comparison in b2.
  22273. @return An integer result of the comparison.]]>
  22274. </doc>
  22275. </method>
  22276. <doc>
  22277. <![CDATA[<p>
  22278. A {@link Comparator} that operates directly on byte representations of
  22279. objects.
  22280. </p>
  22281. @param <T>
  22282. @see DeserializerComparator]]>
  22283. </doc>
  22284. </interface>
  22285. <!-- end interface org.apache.hadoop.io.RawComparator -->
  22286. <!-- start class org.apache.hadoop.io.SequenceFile -->
  22287. <class name="SequenceFile" extends="java.lang.Object"
  22288. abstract="false"
  22289. static="false" final="false" visibility="public"
  22290. deprecated="not deprecated">
  22291. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  22292. abstract="false" native="false" synchronized="false"
  22293. static="true" final="false" visibility="public"
  22294. deprecated="not deprecated">
  22295. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  22296. <doc>
  22297. <![CDATA[Get the compression type for the reduce outputs
  22298. @param job the job config to look in
  22299. @return the kind of compression to use]]>
  22300. </doc>
  22301. </method>
  22302. <method name="setDefaultCompressionType"
  22303. abstract="false" native="false" synchronized="false"
  22304. static="true" final="false" visibility="public"
  22305. deprecated="not deprecated">
  22306. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  22307. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22308. <doc>
  22309. <![CDATA[Set the default compression type for sequence files.
  22310. @param job the configuration to modify
  22311. @param val the new compression type (none, block, record)]]>
  22312. </doc>
  22313. </method>
  22314. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22315. abstract="false" native="false" synchronized="false"
  22316. static="true" final="false" visibility="public"
  22317. deprecated="not deprecated">
  22318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22319. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  22320. <exception name="IOException" type="java.io.IOException"/>
  22321. <doc>
  22322. <![CDATA[Create a new Writer with the given options.
  22323. @param conf the configuration to use
  22324. @param opts the options to create the file with
  22325. @return a new Writer
  22326. @throws IOException]]>
  22327. </doc>
  22328. </method>
  22329. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22330. abstract="false" native="false" synchronized="false"
  22331. static="true" final="false" visibility="public"
  22332. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22333. instead.">
  22334. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22335. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22336. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22337. <param name="keyClass" type="java.lang.Class"/>
  22338. <param name="valClass" type="java.lang.Class"/>
  22339. <exception name="IOException" type="java.io.IOException"/>
  22340. <doc>
  22341. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22342. @param fs The configured filesystem.
  22343. @param conf The configuration.
  22344. @param name The name of the file.
  22345. @param keyClass The 'key' type.
  22346. @param valClass The 'value' type.
  22347. @return Returns the handle to the constructed SequenceFile Writer.
  22348. @throws IOException
  22349. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22350. instead.]]>
  22351. </doc>
  22352. </method>
  22353. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22354. abstract="false" native="false" synchronized="false"
  22355. static="true" final="false" visibility="public"
  22356. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22357. instead.">
  22358. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22359. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22360. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22361. <param name="keyClass" type="java.lang.Class"/>
  22362. <param name="valClass" type="java.lang.Class"/>
  22363. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22364. <exception name="IOException" type="java.io.IOException"/>
  22365. <doc>
  22366. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22367. @param fs The configured filesystem.
  22368. @param conf The configuration.
  22369. @param name The name of the file.
  22370. @param keyClass The 'key' type.
  22371. @param valClass The 'value' type.
  22372. @param compressionType The compression type.
  22373. @return Returns the handle to the constructed SequenceFile Writer.
  22374. @throws IOException
  22375. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22376. instead.]]>
  22377. </doc>
  22378. </method>
  22379. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22380. abstract="false" native="false" synchronized="false"
  22381. static="true" final="false" visibility="public"
  22382. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22383. instead.">
  22384. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22386. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22387. <param name="keyClass" type="java.lang.Class"/>
  22388. <param name="valClass" type="java.lang.Class"/>
  22389. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22390. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22391. <exception name="IOException" type="java.io.IOException"/>
  22392. <doc>
  22393. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22394. @param fs The configured filesystem.
  22395. @param conf The configuration.
  22396. @param name The name of the file.
  22397. @param keyClass The 'key' type.
  22398. @param valClass The 'value' type.
  22399. @param compressionType The compression type.
  22400. @param progress The Progressable object to track progress.
  22401. @return Returns the handle to the constructed SequenceFile Writer.
  22402. @throws IOException
  22403. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22404. instead.]]>
  22405. </doc>
  22406. </method>
  22407. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22408. abstract="false" native="false" synchronized="false"
  22409. static="true" final="false" visibility="public"
  22410. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22411. instead.">
  22412. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22413. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22414. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22415. <param name="keyClass" type="java.lang.Class"/>
  22416. <param name="valClass" type="java.lang.Class"/>
  22417. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22418. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22419. <exception name="IOException" type="java.io.IOException"/>
  22420. <doc>
  22421. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22422. @param fs The configured filesystem.
  22423. @param conf The configuration.
  22424. @param name The name of the file.
  22425. @param keyClass The 'key' type.
  22426. @param valClass The 'value' type.
  22427. @param compressionType The compression type.
  22428. @param codec The compression codec.
  22429. @return Returns the handle to the constructed SequenceFile Writer.
  22430. @throws IOException
  22431. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22432. instead.]]>
  22433. </doc>
  22434. </method>
  22435. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22436. abstract="false" native="false" synchronized="false"
  22437. static="true" final="false" visibility="public"
  22438. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22439. instead.">
  22440. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22442. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22443. <param name="keyClass" type="java.lang.Class"/>
  22444. <param name="valClass" type="java.lang.Class"/>
  22445. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22446. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22447. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22448. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22449. <exception name="IOException" type="java.io.IOException"/>
  22450. <doc>
  22451. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22452. @param fs The configured filesystem.
  22453. @param conf The configuration.
  22454. @param name The name of the file.
  22455. @param keyClass The 'key' type.
  22456. @param valClass The 'value' type.
  22457. @param compressionType The compression type.
  22458. @param codec The compression codec.
  22459. @param progress The Progressable object to track progress.
  22460. @param metadata The metadata of the file.
  22461. @return Returns the handle to the constructed SequenceFile Writer.
  22462. @throws IOException
  22463. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22464. instead.]]>
  22465. </doc>
  22466. </method>
  22467. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22468. abstract="false" native="false" synchronized="false"
  22469. static="true" final="false" visibility="public"
  22470. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22471. instead.">
  22472. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22473. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22474. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22475. <param name="keyClass" type="java.lang.Class"/>
  22476. <param name="valClass" type="java.lang.Class"/>
  22477. <param name="bufferSize" type="int"/>
  22478. <param name="replication" type="short"/>
  22479. <param name="blockSize" type="long"/>
  22480. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22481. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22482. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22483. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22484. <exception name="IOException" type="java.io.IOException"/>
  22485. <doc>
  22486. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22487. @param fs The configured filesystem.
  22488. @param conf The configuration.
  22489. @param name The name of the file.
  22490. @param keyClass The 'key' type.
  22491. @param valClass The 'value' type.
  22492. @param bufferSize buffer size for the underlaying outputstream.
  22493. @param replication replication factor for the file.
  22494. @param blockSize block size for the file.
  22495. @param compressionType The compression type.
  22496. @param codec The compression codec.
  22497. @param progress The Progressable object to track progress.
  22498. @param metadata The metadata of the file.
  22499. @return Returns the handle to the constructed SequenceFile Writer.
  22500. @throws IOException
  22501. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22502. instead.]]>
  22503. </doc>
  22504. </method>
  22505. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22506. abstract="false" native="false" synchronized="false"
  22507. static="true" final="false" visibility="public"
  22508. deprecated="not deprecated">
  22509. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22510. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22511. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22512. <param name="keyClass" type="java.lang.Class"/>
  22513. <param name="valClass" type="java.lang.Class"/>
  22514. <param name="bufferSize" type="int"/>
  22515. <param name="replication" type="short"/>
  22516. <param name="blockSize" type="long"/>
  22517. <param name="createParent" type="boolean"/>
  22518. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22519. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22520. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22521. <exception name="IOException" type="java.io.IOException"/>
  22522. <doc>
  22523. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22524. @param fs The configured filesystem.
  22525. @param conf The configuration.
  22526. @param name The name of the file.
  22527. @param keyClass The 'key' type.
  22528. @param valClass The 'value' type.
  22529. @param bufferSize buffer size for the underlaying outputstream.
  22530. @param replication replication factor for the file.
  22531. @param blockSize block size for the file.
  22532. @param createParent create parent directory if non-existent
  22533. @param compressionType The compression type.
  22534. @param codec The compression codec.
  22535. @param metadata The metadata of the file.
  22536. @return Returns the handle to the constructed SequenceFile Writer.
  22537. @throws IOException]]>
  22538. </doc>
  22539. </method>
  22540. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22541. abstract="false" native="false" synchronized="false"
  22542. static="true" final="false" visibility="public"
  22543. deprecated="not deprecated">
  22544. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  22545. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22546. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22547. <param name="keyClass" type="java.lang.Class"/>
  22548. <param name="valClass" type="java.lang.Class"/>
  22549. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22550. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22551. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22552. <param name="createFlag" type="java.util.EnumSet"/>
  22553. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  22554. <exception name="IOException" type="java.io.IOException"/>
  22555. <doc>
  22556. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22557. @param fc The context for the specified file.
  22558. @param conf The configuration.
  22559. @param name The name of the file.
  22560. @param keyClass The 'key' type.
  22561. @param valClass The 'value' type.
  22562. @param compressionType The compression type.
  22563. @param codec The compression codec.
  22564. @param metadata The metadata of the file.
  22565. @param createFlag gives the semantics of create: overwrite, append etc.
  22566. @param opts file creation options; see {@link CreateOpts}.
  22567. @return Returns the handle to the constructed SequenceFile Writer.
  22568. @throws IOException]]>
  22569. </doc>
  22570. </method>
  22571. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22572. abstract="false" native="false" synchronized="false"
  22573. static="true" final="false" visibility="public"
  22574. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22575. instead.">
  22576. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22578. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22579. <param name="keyClass" type="java.lang.Class"/>
  22580. <param name="valClass" type="java.lang.Class"/>
  22581. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22582. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22583. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22584. <exception name="IOException" type="java.io.IOException"/>
  22585. <doc>
  22586. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22587. @param fs The configured filesystem.
  22588. @param conf The configuration.
  22589. @param name The name of the file.
  22590. @param keyClass The 'key' type.
  22591. @param valClass The 'value' type.
  22592. @param compressionType The compression type.
  22593. @param codec The compression codec.
  22594. @param progress The Progressable object to track progress.
  22595. @return Returns the handle to the constructed SequenceFile Writer.
  22596. @throws IOException
  22597. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22598. instead.]]>
  22599. </doc>
  22600. </method>
  22601. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22602. abstract="false" native="false" synchronized="false"
  22603. static="true" final="false" visibility="public"
  22604. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22605. instead.">
  22606. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22607. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  22608. <param name="keyClass" type="java.lang.Class"/>
  22609. <param name="valClass" type="java.lang.Class"/>
  22610. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22611. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22612. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22613. <exception name="IOException" type="java.io.IOException"/>
  22614. <doc>
  22615. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  22616. @param conf The configuration.
  22617. @param out The stream on top which the writer is to be constructed.
  22618. @param keyClass The 'key' type.
  22619. @param valClass The 'value' type.
  22620. @param compressionType The compression type.
  22621. @param codec The compression codec.
  22622. @param metadata The metadata of the file.
  22623. @return Returns the handle to the constructed SequenceFile Writer.
  22624. @throws IOException
  22625. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22626. instead.]]>
  22627. </doc>
  22628. </method>
  22629. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22630. abstract="false" native="false" synchronized="false"
  22631. static="true" final="false" visibility="public"
  22632. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22633. instead.">
  22634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22635. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  22636. <param name="keyClass" type="java.lang.Class"/>
  22637. <param name="valClass" type="java.lang.Class"/>
  22638. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22639. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22640. <exception name="IOException" type="java.io.IOException"/>
  22641. <doc>
  22642. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  22643. @param conf The configuration.
  22644. @param out The stream on top which the writer is to be constructed.
  22645. @param keyClass The 'key' type.
  22646. @param valClass The 'value' type.
  22647. @param compressionType The compression type.
  22648. @param codec The compression codec.
  22649. @return Returns the handle to the constructed SequenceFile Writer.
  22650. @throws IOException
  22651. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22652. instead.]]>
  22653. </doc>
  22654. </method>
  22655. <field name="SYNC_INTERVAL" type="int"
  22656. transient="false" volatile="false"
  22657. static="true" final="true" visibility="public"
  22658. deprecated="not deprecated">
  22659. <doc>
  22660. <![CDATA[The number of bytes between sync points. 100 KB, default.
  22661. Computed as 5 KB * 20 = 100 KB]]>
  22662. </doc>
  22663. </field>
  22664. <doc>
  22665. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  22666. pairs.
  22667. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  22668. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  22669. reading and sorting respectively.</p>
  22670. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  22671. {@link CompressionType} used to compress key/value pairs:
  22672. <ol>
  22673. <li>
  22674. <code>Writer</code> : Uncompressed records.
  22675. </li>
  22676. <li>
  22677. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  22678. values.
  22679. </li>
  22680. <li>
  22681. <code>BlockCompressWriter</code> : Block-compressed files, both keys &amp;
  22682. values are collected in 'blocks'
  22683. separately and compressed. The size of
  22684. the 'block' is configurable.
  22685. </ol>
  22686. <p>The actual compression algorithm used to compress key and/or values can be
  22687. specified by using the appropriate {@link CompressionCodec}.</p>
  22688. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  22689. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  22690. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  22691. above <code>SequenceFile</code> formats.</p>
  22692. <h3 id="Formats">SequenceFile Formats</h3>
  22693. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  22694. depending on the <code>CompressionType</code> specified. All of them share a
  22695. <a href="#Header">common header</a> described below.
  22696. <h4 id="Header">SequenceFile Header</h4>
  22697. <ul>
  22698. <li>
  22699. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  22700. version number (e.g. SEQ4 or SEQ6)
  22701. </li>
  22702. <li>
  22703. keyClassName -key class
  22704. </li>
  22705. <li>
  22706. valueClassName - value class
  22707. </li>
  22708. <li>
  22709. compression - A boolean which specifies if compression is turned on for
  22710. keys/values in this file.
  22711. </li>
  22712. <li>
  22713. blockCompression - A boolean which specifies if block-compression is
  22714. turned on for keys/values in this file.
  22715. </li>
  22716. <li>
  22717. compression codec - <code>CompressionCodec</code> class which is used for
  22718. compression of keys and/or values (if compression is
  22719. enabled).
  22720. </li>
  22721. <li>
  22722. metadata - {@link Metadata} for this file.
  22723. </li>
  22724. <li>
  22725. sync - A sync marker to denote end of the header.
  22726. </li>
  22727. </ul>
  22728. <h5>Uncompressed SequenceFile Format</h5>
  22729. <ul>
  22730. <li>
  22731. <a href="#Header">Header</a>
  22732. </li>
  22733. <li>
  22734. Record
  22735. <ul>
  22736. <li>Record length</li>
  22737. <li>Key length</li>
  22738. <li>Key</li>
  22739. <li>Value</li>
  22740. </ul>
  22741. </li>
  22742. <li>
  22743. A sync-marker every few <code>100</code> kilobytes or so.
  22744. </li>
  22745. </ul>
  22746. <h5>Record-Compressed SequenceFile Format</h5>
  22747. <ul>
  22748. <li>
  22749. <a href="#Header">Header</a>
  22750. </li>
  22751. <li>
  22752. Record
  22753. <ul>
  22754. <li>Record length</li>
  22755. <li>Key length</li>
  22756. <li>Key</li>
  22757. <li><i>Compressed</i> Value</li>
  22758. </ul>
  22759. </li>
  22760. <li>
  22761. A sync-marker every few <code>100</code> kilobytes or so.
  22762. </li>
  22763. </ul>
  22764. <h5>Block-Compressed SequenceFile Format</h5>
  22765. <ul>
  22766. <li>
  22767. <a href="#Header">Header</a>
  22768. </li>
  22769. <li>
  22770. Record <i>Block</i>
  22771. <ul>
  22772. <li>Uncompressed number of records in the block</li>
  22773. <li>Compressed key-lengths block-size</li>
  22774. <li>Compressed key-lengths block</li>
  22775. <li>Compressed keys block-size</li>
  22776. <li>Compressed keys block</li>
  22777. <li>Compressed value-lengths block-size</li>
  22778. <li>Compressed value-lengths block</li>
  22779. <li>Compressed values block-size</li>
  22780. <li>Compressed values block</li>
  22781. </ul>
  22782. </li>
  22783. <li>
  22784. A sync-marker every block.
  22785. </li>
  22786. </ul>
  22787. <p>The compressed blocks of key lengths and value lengths consist of the
  22788. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  22789. format.</p>
  22790. @see CompressionCodec]]>
  22791. </doc>
  22792. </class>
  22793. <!-- end class org.apache.hadoop.io.SequenceFile -->
  22794. <!-- start class org.apache.hadoop.io.SetFile -->
  22795. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  22796. abstract="false"
  22797. static="false" final="false" visibility="public"
  22798. deprecated="not deprecated">
  22799. <constructor name="SetFile"
  22800. static="false" final="false" visibility="protected"
  22801. deprecated="not deprecated">
  22802. </constructor>
  22803. <doc>
  22804. <![CDATA[A file-based set of keys.]]>
  22805. </doc>
  22806. </class>
  22807. <!-- end class org.apache.hadoop.io.SetFile -->
  22808. <!-- start class org.apache.hadoop.io.ShortWritable -->
  22809. <class name="ShortWritable" extends="java.lang.Object"
  22810. abstract="false"
  22811. static="false" final="false" visibility="public"
  22812. deprecated="not deprecated">
  22813. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22814. <constructor name="ShortWritable"
  22815. static="false" final="false" visibility="public"
  22816. deprecated="not deprecated">
  22817. </constructor>
  22818. <constructor name="ShortWritable" type="short"
  22819. static="false" final="false" visibility="public"
  22820. deprecated="not deprecated">
  22821. </constructor>
  22822. <method name="set"
  22823. abstract="false" native="false" synchronized="false"
  22824. static="false" final="false" visibility="public"
  22825. deprecated="not deprecated">
  22826. <param name="value" type="short"/>
  22827. <doc>
  22828. <![CDATA[Set the value of this ShortWritable.]]>
  22829. </doc>
  22830. </method>
  22831. <method name="get" return="short"
  22832. abstract="false" native="false" synchronized="false"
  22833. static="false" final="false" visibility="public"
  22834. deprecated="not deprecated">
  22835. <doc>
  22836. <![CDATA[Return the value of this ShortWritable.]]>
  22837. </doc>
  22838. </method>
  22839. <method name="readFields"
  22840. abstract="false" native="false" synchronized="false"
  22841. static="false" final="false" visibility="public"
  22842. deprecated="not deprecated">
  22843. <param name="in" type="java.io.DataInput"/>
  22844. <exception name="IOException" type="java.io.IOException"/>
  22845. <doc>
  22846. <![CDATA[read the short value]]>
  22847. </doc>
  22848. </method>
  22849. <method name="write"
  22850. abstract="false" native="false" synchronized="false"
  22851. static="false" final="false" visibility="public"
  22852. deprecated="not deprecated">
  22853. <param name="out" type="java.io.DataOutput"/>
  22854. <exception name="IOException" type="java.io.IOException"/>
  22855. <doc>
  22856. <![CDATA[write short value]]>
  22857. </doc>
  22858. </method>
  22859. <method name="equals" return="boolean"
  22860. abstract="false" native="false" synchronized="false"
  22861. static="false" final="false" visibility="public"
  22862. deprecated="not deprecated">
  22863. <param name="o" type="java.lang.Object"/>
  22864. <doc>
  22865. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  22866. </doc>
  22867. </method>
  22868. <method name="hashCode" return="int"
  22869. abstract="false" native="false" synchronized="false"
  22870. static="false" final="false" visibility="public"
  22871. deprecated="not deprecated">
  22872. <doc>
  22873. <![CDATA[hash code]]>
  22874. </doc>
  22875. </method>
  22876. <method name="compareTo" return="int"
  22877. abstract="false" native="false" synchronized="false"
  22878. static="false" final="false" visibility="public"
  22879. deprecated="not deprecated">
  22880. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  22881. <doc>
  22882. <![CDATA[Compares two ShortWritable.]]>
  22883. </doc>
  22884. </method>
  22885. <method name="toString" return="java.lang.String"
  22886. abstract="false" native="false" synchronized="false"
  22887. static="false" final="false" visibility="public"
  22888. deprecated="not deprecated">
  22889. <doc>
  22890. <![CDATA[Short values in string format]]>
  22891. </doc>
  22892. </method>
  22893. <doc>
  22894. <![CDATA[A WritableComparable for shorts.]]>
  22895. </doc>
  22896. </class>
  22897. <!-- end class org.apache.hadoop.io.ShortWritable -->
  22898. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  22899. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  22900. abstract="false"
  22901. static="false" final="false" visibility="public"
  22902. deprecated="not deprecated">
  22903. <implements name="java.util.SortedMap"/>
  22904. <constructor name="SortedMapWritable"
  22905. static="false" final="false" visibility="public"
  22906. deprecated="not deprecated">
  22907. <doc>
  22908. <![CDATA[default constructor.]]>
  22909. </doc>
  22910. </constructor>
  22911. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  22912. static="false" final="false" visibility="public"
  22913. deprecated="not deprecated">
  22914. <doc>
  22915. <![CDATA[Copy constructor.
  22916. @param other the map to copy from]]>
  22917. </doc>
  22918. </constructor>
  22919. <method name="comparator" return="java.util.Comparator"
  22920. abstract="false" native="false" synchronized="false"
  22921. static="false" final="false" visibility="public"
  22922. deprecated="not deprecated">
  22923. </method>
  22924. <method name="firstKey" return="K"
  22925. abstract="false" native="false" synchronized="false"
  22926. static="false" final="false" visibility="public"
  22927. deprecated="not deprecated">
  22928. </method>
  22929. <method name="headMap" return="java.util.SortedMap"
  22930. abstract="false" native="false" synchronized="false"
  22931. static="false" final="false" visibility="public"
  22932. deprecated="not deprecated">
  22933. <param name="toKey" type="K"/>
  22934. </method>
  22935. <method name="lastKey" return="K"
  22936. abstract="false" native="false" synchronized="false"
  22937. static="false" final="false" visibility="public"
  22938. deprecated="not deprecated">
  22939. </method>
  22940. <method name="subMap" return="java.util.SortedMap"
  22941. abstract="false" native="false" synchronized="false"
  22942. static="false" final="false" visibility="public"
  22943. deprecated="not deprecated">
  22944. <param name="fromKey" type="K"/>
  22945. <param name="toKey" type="K"/>
  22946. </method>
  22947. <method name="tailMap" return="java.util.SortedMap"
  22948. abstract="false" native="false" synchronized="false"
  22949. static="false" final="false" visibility="public"
  22950. deprecated="not deprecated">
  22951. <param name="fromKey" type="K"/>
  22952. </method>
  22953. <method name="clear"
  22954. abstract="false" native="false" synchronized="false"
  22955. static="false" final="false" visibility="public"
  22956. deprecated="not deprecated">
  22957. </method>
  22958. <method name="containsKey" return="boolean"
  22959. abstract="false" native="false" synchronized="false"
  22960. static="false" final="false" visibility="public"
  22961. deprecated="not deprecated">
  22962. <param name="key" type="java.lang.Object"/>
  22963. </method>
  22964. <method name="containsValue" return="boolean"
  22965. abstract="false" native="false" synchronized="false"
  22966. static="false" final="false" visibility="public"
  22967. deprecated="not deprecated">
  22968. <param name="value" type="java.lang.Object"/>
  22969. </method>
  22970. <method name="entrySet" return="java.util.Set"
  22971. abstract="false" native="false" synchronized="false"
  22972. static="false" final="false" visibility="public"
  22973. deprecated="not deprecated">
  22974. </method>
  22975. <method name="get" return="org.apache.hadoop.io.Writable"
  22976. abstract="false" native="false" synchronized="false"
  22977. static="false" final="false" visibility="public"
  22978. deprecated="not deprecated">
  22979. <param name="key" type="java.lang.Object"/>
  22980. </method>
  22981. <method name="isEmpty" return="boolean"
  22982. abstract="false" native="false" synchronized="false"
  22983. static="false" final="false" visibility="public"
  22984. deprecated="not deprecated">
  22985. </method>
  22986. <method name="keySet" return="java.util.Set"
  22987. abstract="false" native="false" synchronized="false"
  22988. static="false" final="false" visibility="public"
  22989. deprecated="not deprecated">
  22990. </method>
  22991. <method name="put" return="org.apache.hadoop.io.Writable"
  22992. abstract="false" native="false" synchronized="false"
  22993. static="false" final="false" visibility="public"
  22994. deprecated="not deprecated">
  22995. <param name="key" type="K"/>
  22996. <param name="value" type="org.apache.hadoop.io.Writable"/>
  22997. </method>
  22998. <method name="putAll"
  22999. abstract="false" native="false" synchronized="false"
  23000. static="false" final="false" visibility="public"
  23001. deprecated="not deprecated">
  23002. <param name="t" type="java.util.Map"/>
  23003. </method>
  23004. <method name="remove" return="org.apache.hadoop.io.Writable"
  23005. abstract="false" native="false" synchronized="false"
  23006. static="false" final="false" visibility="public"
  23007. deprecated="not deprecated">
  23008. <param name="key" type="java.lang.Object"/>
  23009. </method>
  23010. <method name="size" return="int"
  23011. abstract="false" native="false" synchronized="false"
  23012. static="false" final="false" visibility="public"
  23013. deprecated="not deprecated">
  23014. </method>
  23015. <method name="values" return="java.util.Collection"
  23016. abstract="false" native="false" synchronized="false"
  23017. static="false" final="false" visibility="public"
  23018. deprecated="not deprecated">
  23019. </method>
  23020. <method name="readFields"
  23021. abstract="false" native="false" synchronized="false"
  23022. static="false" final="false" visibility="public"
  23023. deprecated="not deprecated">
  23024. <param name="in" type="java.io.DataInput"/>
  23025. <exception name="IOException" type="java.io.IOException"/>
  23026. </method>
  23027. <method name="write"
  23028. abstract="false" native="false" synchronized="false"
  23029. static="false" final="false" visibility="public"
  23030. deprecated="not deprecated">
  23031. <param name="out" type="java.io.DataOutput"/>
  23032. <exception name="IOException" type="java.io.IOException"/>
  23033. </method>
  23034. <method name="equals" return="boolean"
  23035. abstract="false" native="false" synchronized="false"
  23036. static="false" final="false" visibility="public"
  23037. deprecated="not deprecated">
  23038. <param name="obj" type="java.lang.Object"/>
  23039. </method>
  23040. <method name="hashCode" return="int"
  23041. abstract="false" native="false" synchronized="false"
  23042. static="false" final="false" visibility="public"
  23043. deprecated="not deprecated">
  23044. </method>
  23045. <doc>
  23046. <![CDATA[A Writable SortedMap.]]>
  23047. </doc>
  23048. </class>
  23049. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  23050. <!-- start interface org.apache.hadoop.io.Stringifier -->
  23051. <interface name="Stringifier" abstract="true"
  23052. static="false" final="false" visibility="public"
  23053. deprecated="not deprecated">
  23054. <implements name="java.io.Closeable"/>
  23055. <method name="toString" return="java.lang.String"
  23056. abstract="true" native="false" synchronized="false"
  23057. static="false" final="false" visibility="public"
  23058. deprecated="not deprecated">
  23059. <param name="obj" type="T"/>
  23060. <exception name="IOException" type="java.io.IOException"/>
  23061. <doc>
  23062. <![CDATA[Converts the object to a string representation
  23063. @param obj the object to convert
  23064. @return the string representation of the object
  23065. @throws IOException if the object cannot be converted]]>
  23066. </doc>
  23067. </method>
  23068. <method name="fromString" return="T"
  23069. abstract="true" native="false" synchronized="false"
  23070. static="false" final="false" visibility="public"
  23071. deprecated="not deprecated">
  23072. <param name="str" type="java.lang.String"/>
  23073. <exception name="IOException" type="java.io.IOException"/>
  23074. <doc>
  23075. <![CDATA[Restores the object from its string representation.
  23076. @param str the string representation of the object
  23077. @return restored object
  23078. @throws IOException if the object cannot be restored]]>
  23079. </doc>
  23080. </method>
  23081. <method name="close"
  23082. abstract="true" native="false" synchronized="false"
  23083. static="false" final="false" visibility="public"
  23084. deprecated="not deprecated">
  23085. <exception name="IOException" type="java.io.IOException"/>
  23086. <doc>
  23087. <![CDATA[Closes this object.
  23088. @throws IOException if an I/O error occurs]]>
  23089. </doc>
  23090. </method>
  23091. <doc>
  23092. <![CDATA[Stringifier interface offers two methods to convert an object
  23093. to a string representation and restore the object given its
  23094. string representation.
  23095. @param <T> the class of the objects to stringify]]>
  23096. </doc>
  23097. </interface>
  23098. <!-- end interface org.apache.hadoop.io.Stringifier -->
  23099. <!-- start class org.apache.hadoop.io.Text -->
  23100. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  23101. abstract="false"
  23102. static="false" final="false" visibility="public"
  23103. deprecated="not deprecated">
  23104. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23105. <constructor name="Text"
  23106. static="false" final="false" visibility="public"
  23107. deprecated="not deprecated">
  23108. </constructor>
  23109. <constructor name="Text" type="java.lang.String"
  23110. static="false" final="false" visibility="public"
  23111. deprecated="not deprecated">
  23112. <doc>
  23113. <![CDATA[Construct from a string.]]>
  23114. </doc>
  23115. </constructor>
  23116. <constructor name="Text" type="org.apache.hadoop.io.Text"
  23117. static="false" final="false" visibility="public"
  23118. deprecated="not deprecated">
  23119. <doc>
  23120. <![CDATA[Construct from another text.]]>
  23121. </doc>
  23122. </constructor>
  23123. <constructor name="Text" type="byte[]"
  23124. static="false" final="false" visibility="public"
  23125. deprecated="not deprecated">
  23126. <doc>
  23127. <![CDATA[Construct from a byte array.]]>
  23128. </doc>
  23129. </constructor>
  23130. <method name="copyBytes" return="byte[]"
  23131. abstract="false" native="false" synchronized="false"
  23132. static="false" final="false" visibility="public"
  23133. deprecated="not deprecated">
  23134. <doc>
  23135. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  23136. See {@link #getBytes()} for faster access to the underlying array.]]>
  23137. </doc>
  23138. </method>
  23139. <method name="getBytes" return="byte[]"
  23140. abstract="false" native="false" synchronized="false"
  23141. static="false" final="false" visibility="public"
  23142. deprecated="not deprecated">
  23143. <doc>
  23144. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  23145. valid. Please use {@link #copyBytes()} if you
  23146. need the returned array to be precisely the length of the data.]]>
  23147. </doc>
  23148. </method>
  23149. <method name="getLength" return="int"
  23150. abstract="false" native="false" synchronized="false"
  23151. static="false" final="false" visibility="public"
  23152. deprecated="not deprecated">
  23153. <doc>
  23154. <![CDATA[Returns the number of bytes in the byte array]]>
  23155. </doc>
  23156. </method>
  23157. <method name="charAt" return="int"
  23158. abstract="false" native="false" synchronized="false"
  23159. static="false" final="false" visibility="public"
  23160. deprecated="not deprecated">
  23161. <param name="position" type="int"/>
  23162. <doc>
  23163. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  23164. for the character at <code>position</code>. Note that this
  23165. method avoids using the converter or doing String instantiation
  23166. @return the Unicode scalar value at position or -1
  23167. if the position is invalid or points to a
  23168. trailing byte]]>
  23169. </doc>
  23170. </method>
  23171. <method name="find" return="int"
  23172. abstract="false" native="false" synchronized="false"
  23173. static="false" final="false" visibility="public"
  23174. deprecated="not deprecated">
  23175. <param name="what" type="java.lang.String"/>
  23176. </method>
  23177. <method name="find" return="int"
  23178. abstract="false" native="false" synchronized="false"
  23179. static="false" final="false" visibility="public"
  23180. deprecated="not deprecated">
  23181. <param name="what" type="java.lang.String"/>
  23182. <param name="start" type="int"/>
  23183. <doc>
  23184. <![CDATA[Finds any occurrence of <code>what</code> in the backing
  23185. buffer, starting as position <code>start</code>. The starting
  23186. position is measured in bytes and the return value is in
  23187. terms of byte position in the buffer. The backing buffer is
  23188. not converted to a string for this operation.
  23189. @return byte position of the first occurrence of the search
  23190. string in the UTF-8 buffer or -1 if not found]]>
  23191. </doc>
  23192. </method>
  23193. <method name="set"
  23194. abstract="false" native="false" synchronized="false"
  23195. static="false" final="false" visibility="public"
  23196. deprecated="not deprecated">
  23197. <param name="string" type="java.lang.String"/>
  23198. <doc>
  23199. <![CDATA[Set to contain the contents of a string.]]>
  23200. </doc>
  23201. </method>
  23202. <method name="set"
  23203. abstract="false" native="false" synchronized="false"
  23204. static="false" final="false" visibility="public"
  23205. deprecated="not deprecated">
  23206. <param name="utf8" type="byte[]"/>
  23207. <doc>
  23208. <![CDATA[Set to a utf8 byte array]]>
  23209. </doc>
  23210. </method>
  23211. <method name="set"
  23212. abstract="false" native="false" synchronized="false"
  23213. static="false" final="false" visibility="public"
  23214. deprecated="not deprecated">
  23215. <param name="other" type="org.apache.hadoop.io.Text"/>
  23216. <doc>
  23217. <![CDATA[copy a text.]]>
  23218. </doc>
  23219. </method>
  23220. <method name="set"
  23221. abstract="false" native="false" synchronized="false"
  23222. static="false" final="false" visibility="public"
  23223. deprecated="not deprecated">
  23224. <param name="utf8" type="byte[]"/>
  23225. <param name="start" type="int"/>
  23226. <param name="len" type="int"/>
  23227. <doc>
  23228. <![CDATA[Set the Text to range of bytes
  23229. @param utf8 the data to copy from
  23230. @param start the first position of the new string
  23231. @param len the number of bytes of the new string]]>
  23232. </doc>
  23233. </method>
  23234. <method name="append"
  23235. abstract="false" native="false" synchronized="false"
  23236. static="false" final="false" visibility="public"
  23237. deprecated="not deprecated">
  23238. <param name="utf8" type="byte[]"/>
  23239. <param name="start" type="int"/>
  23240. <param name="len" type="int"/>
  23241. <doc>
  23242. <![CDATA[Append a range of bytes to the end of the given text
  23243. @param utf8 the data to copy from
  23244. @param start the first position to append from utf8
  23245. @param len the number of bytes to append]]>
  23246. </doc>
  23247. </method>
  23248. <method name="clear"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="false" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <doc>
  23253. <![CDATA[Clear the string to empty.
  23254. <em>Note</em>: For performance reasons, this call does not clear the
  23255. underlying byte array that is retrievable via {@link #getBytes()}.
  23256. In order to free the byte-array memory, call {@link #set(byte[])}
  23257. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  23258. </doc>
  23259. </method>
  23260. <method name="toString" return="java.lang.String"
  23261. abstract="false" native="false" synchronized="false"
  23262. static="false" final="false" visibility="public"
  23263. deprecated="not deprecated">
  23264. <doc>
  23265. <![CDATA[Convert text back to string
  23266. @see java.lang.Object#toString()]]>
  23267. </doc>
  23268. </method>
  23269. <method name="readFields"
  23270. abstract="false" native="false" synchronized="false"
  23271. static="false" final="false" visibility="public"
  23272. deprecated="not deprecated">
  23273. <param name="in" type="java.io.DataInput"/>
  23274. <exception name="IOException" type="java.io.IOException"/>
  23275. <doc>
  23276. <![CDATA[deserialize]]>
  23277. </doc>
  23278. </method>
  23279. <method name="readFields"
  23280. abstract="false" native="false" synchronized="false"
  23281. static="false" final="false" visibility="public"
  23282. deprecated="not deprecated">
  23283. <param name="in" type="java.io.DataInput"/>
  23284. <param name="maxLength" type="int"/>
  23285. <exception name="IOException" type="java.io.IOException"/>
  23286. </method>
  23287. <method name="skip"
  23288. abstract="false" native="false" synchronized="false"
  23289. static="true" final="false" visibility="public"
  23290. deprecated="not deprecated">
  23291. <param name="in" type="java.io.DataInput"/>
  23292. <exception name="IOException" type="java.io.IOException"/>
  23293. <doc>
  23294. <![CDATA[Skips over one Text in the input.]]>
  23295. </doc>
  23296. </method>
  23297. <method name="readWithKnownLength"
  23298. abstract="false" native="false" synchronized="false"
  23299. static="false" final="false" visibility="public"
  23300. deprecated="not deprecated">
  23301. <param name="in" type="java.io.DataInput"/>
  23302. <param name="len" type="int"/>
  23303. <exception name="IOException" type="java.io.IOException"/>
  23304. <doc>
  23305. <![CDATA[Read a Text object whose length is already known.
  23306. This allows creating Text from a stream which uses a different serialization
  23307. format.]]>
  23308. </doc>
  23309. </method>
  23310. <method name="write"
  23311. abstract="false" native="false" synchronized="false"
  23312. static="false" final="false" visibility="public"
  23313. deprecated="not deprecated">
  23314. <param name="out" type="java.io.DataOutput"/>
  23315. <exception name="IOException" type="java.io.IOException"/>
  23316. <doc>
  23317. <![CDATA[serialize
  23318. write this object to out
  23319. length uses zero-compressed encoding
  23320. @see Writable#write(DataOutput)]]>
  23321. </doc>
  23322. </method>
  23323. <method name="write"
  23324. abstract="false" native="false" synchronized="false"
  23325. static="false" final="false" visibility="public"
  23326. deprecated="not deprecated">
  23327. <param name="out" type="java.io.DataOutput"/>
  23328. <param name="maxLength" type="int"/>
  23329. <exception name="IOException" type="java.io.IOException"/>
  23330. </method>
  23331. <method name="equals" return="boolean"
  23332. abstract="false" native="false" synchronized="false"
  23333. static="false" final="false" visibility="public"
  23334. deprecated="not deprecated">
  23335. <param name="o" type="java.lang.Object"/>
  23336. <doc>
  23337. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  23338. </doc>
  23339. </method>
  23340. <method name="hashCode" return="int"
  23341. abstract="false" native="false" synchronized="false"
  23342. static="false" final="false" visibility="public"
  23343. deprecated="not deprecated">
  23344. </method>
  23345. <method name="decode" return="java.lang.String"
  23346. abstract="false" native="false" synchronized="false"
  23347. static="true" final="false" visibility="public"
  23348. deprecated="not deprecated">
  23349. <param name="utf8" type="byte[]"/>
  23350. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  23351. <doc>
  23352. <![CDATA[Converts the provided byte array to a String using the
  23353. UTF-8 encoding. If the input is malformed,
  23354. replace by a default value.]]>
  23355. </doc>
  23356. </method>
  23357. <method name="decode" return="java.lang.String"
  23358. abstract="false" native="false" synchronized="false"
  23359. static="true" final="false" visibility="public"
  23360. deprecated="not deprecated">
  23361. <param name="utf8" type="byte[]"/>
  23362. <param name="start" type="int"/>
  23363. <param name="length" type="int"/>
  23364. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  23365. </method>
  23366. <method name="decode" return="java.lang.String"
  23367. abstract="false" native="false" synchronized="false"
  23368. static="true" final="false" visibility="public"
  23369. deprecated="not deprecated">
  23370. <param name="utf8" type="byte[]"/>
  23371. <param name="start" type="int"/>
  23372. <param name="length" type="int"/>
  23373. <param name="replace" type="boolean"/>
  23374. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  23375. <doc>
  23376. <![CDATA[Converts the provided byte array to a String using the
  23377. UTF-8 encoding. If <code>replace</code> is true, then
  23378. malformed input is replaced with the
  23379. substitution character, which is U+FFFD. Otherwise the
  23380. method throws a MalformedInputException.]]>
  23381. </doc>
  23382. </method>
  23383. <method name="encode" return="java.nio.ByteBuffer"
  23384. abstract="false" native="false" synchronized="false"
  23385. static="true" final="false" visibility="public"
  23386. deprecated="not deprecated">
  23387. <param name="string" type="java.lang.String"/>
  23388. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  23389. <doc>
  23390. <![CDATA[Converts the provided String to bytes using the
  23391. UTF-8 encoding. If the input is malformed,
  23392. invalid chars are replaced by a default value.
  23393. @return ByteBuffer: bytes stores at ByteBuffer.array()
  23394. and length is ByteBuffer.limit()]]>
  23395. </doc>
  23396. </method>
  23397. <method name="encode" return="java.nio.ByteBuffer"
  23398. abstract="false" native="false" synchronized="false"
  23399. static="true" final="false" visibility="public"
  23400. deprecated="not deprecated">
  23401. <param name="string" type="java.lang.String"/>
  23402. <param name="replace" type="boolean"/>
  23403. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  23404. <doc>
  23405. <![CDATA[Converts the provided String to bytes using the
  23406. UTF-8 encoding. If <code>replace</code> is true, then
  23407. malformed input is replaced with the
  23408. substitution character, which is U+FFFD. Otherwise the
  23409. method throws a MalformedInputException.
  23410. @return ByteBuffer: bytes stores at ByteBuffer.array()
  23411. and length is ByteBuffer.limit()]]>
  23412. </doc>
  23413. </method>
  23414. <method name="readString" return="java.lang.String"
  23415. abstract="false" native="false" synchronized="false"
  23416. static="true" final="false" visibility="public"
  23417. deprecated="not deprecated">
  23418. <param name="in" type="java.io.DataInput"/>
  23419. <exception name="IOException" type="java.io.IOException"/>
  23420. <doc>
  23421. <![CDATA[Read a UTF8 encoded string from in]]>
  23422. </doc>
  23423. </method>
  23424. <method name="readString" return="java.lang.String"
  23425. abstract="false" native="false" synchronized="false"
  23426. static="true" final="false" visibility="public"
  23427. deprecated="not deprecated">
  23428. <param name="in" type="java.io.DataInput"/>
  23429. <param name="maxLength" type="int"/>
  23430. <exception name="IOException" type="java.io.IOException"/>
  23431. <doc>
  23432. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  23433. </doc>
  23434. </method>
  23435. <method name="writeString" return="int"
  23436. abstract="false" native="false" synchronized="false"
  23437. static="true" final="false" visibility="public"
  23438. deprecated="not deprecated">
  23439. <param name="out" type="java.io.DataOutput"/>
  23440. <param name="s" type="java.lang.String"/>
  23441. <exception name="IOException" type="java.io.IOException"/>
  23442. <doc>
  23443. <![CDATA[Write a UTF8 encoded string to out]]>
  23444. </doc>
  23445. </method>
  23446. <method name="writeString" return="int"
  23447. abstract="false" native="false" synchronized="false"
  23448. static="true" final="false" visibility="public"
  23449. deprecated="not deprecated">
  23450. <param name="out" type="java.io.DataOutput"/>
  23451. <param name="s" type="java.lang.String"/>
  23452. <param name="maxLength" type="int"/>
  23453. <exception name="IOException" type="java.io.IOException"/>
  23454. <doc>
  23455. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  23456. </doc>
  23457. </method>
  23458. <method name="validateUTF8"
  23459. abstract="false" native="false" synchronized="false"
  23460. static="true" final="false" visibility="public"
  23461. deprecated="not deprecated">
  23462. <param name="utf8" type="byte[]"/>
  23463. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  23464. <doc>
  23465. <![CDATA[Check if a byte array contains valid utf-8
  23466. @param utf8 byte array
  23467. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  23468. </doc>
  23469. </method>
  23470. <method name="validateUTF8"
  23471. abstract="false" native="false" synchronized="false"
  23472. static="true" final="false" visibility="public"
  23473. deprecated="not deprecated">
  23474. <param name="utf8" type="byte[]"/>
  23475. <param name="start" type="int"/>
  23476. <param name="len" type="int"/>
  23477. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  23478. <doc>
  23479. <![CDATA[Check to see if a byte array is valid utf-8
  23480. @param utf8 the array of bytes
  23481. @param start the offset of the first byte in the array
  23482. @param len the length of the byte sequence
  23483. @throws MalformedInputException if the byte array contains invalid bytes]]>
  23484. </doc>
  23485. </method>
  23486. <method name="bytesToCodePoint" return="int"
  23487. abstract="false" native="false" synchronized="false"
  23488. static="true" final="false" visibility="public"
  23489. deprecated="not deprecated">
  23490. <param name="bytes" type="java.nio.ByteBuffer"/>
  23491. <doc>
  23492. <![CDATA[Returns the next code point at the current position in
  23493. the buffer. The buffer's position will be incremented.
  23494. Any mark set on this buffer will be changed by this method!]]>
  23495. </doc>
  23496. </method>
  23497. <method name="utf8Length" return="int"
  23498. abstract="false" native="false" synchronized="false"
  23499. static="true" final="false" visibility="public"
  23500. deprecated="not deprecated">
  23501. <param name="string" type="java.lang.String"/>
  23502. <doc>
  23503. <![CDATA[For the given string, returns the number of UTF-8 bytes
  23504. required to encode the string.
  23505. @param string text to encode
  23506. @return number of UTF-8 bytes required to encode]]>
  23507. </doc>
  23508. </method>
  23509. <field name="DEFAULT_MAX_LEN" type="int"
  23510. transient="false" volatile="false"
  23511. static="true" final="true" visibility="public"
  23512. deprecated="not deprecated">
  23513. </field>
  23514. <doc>
  23515. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  23516. to serialize, deserialize, and compare texts at byte level. The type of
  23517. length is integer and is serialized using zero-compressed format. <p>In
  23518. addition, it provides methods for string traversal without converting the
  23519. byte array to a string. <p>Also includes utilities for
  23520. serializing/deserialing a string, coding/decoding a string, checking if a
  23521. byte array contains valid UTF8 code, calculating the length of an encoded
  23522. string.]]>
  23523. </doc>
  23524. </class>
  23525. <!-- end class org.apache.hadoop.io.Text -->
  23526. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  23527. <class name="TwoDArrayWritable" extends="java.lang.Object"
  23528. abstract="false"
  23529. static="false" final="false" visibility="public"
  23530. deprecated="not deprecated">
  23531. <implements name="org.apache.hadoop.io.Writable"/>
  23532. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  23533. static="false" final="false" visibility="public"
  23534. deprecated="not deprecated">
  23535. </constructor>
  23536. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  23537. static="false" final="false" visibility="public"
  23538. deprecated="not deprecated">
  23539. </constructor>
  23540. <method name="toArray" return="java.lang.Object"
  23541. abstract="false" native="false" synchronized="false"
  23542. static="false" final="false" visibility="public"
  23543. deprecated="not deprecated">
  23544. </method>
  23545. <method name="set"
  23546. abstract="false" native="false" synchronized="false"
  23547. static="false" final="false" visibility="public"
  23548. deprecated="not deprecated">
  23549. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  23550. </method>
  23551. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  23552. abstract="false" native="false" synchronized="false"
  23553. static="false" final="false" visibility="public"
  23554. deprecated="not deprecated">
  23555. </method>
  23556. <method name="readFields"
  23557. abstract="false" native="false" synchronized="false"
  23558. static="false" final="false" visibility="public"
  23559. deprecated="not deprecated">
  23560. <param name="in" type="java.io.DataInput"/>
  23561. <exception name="IOException" type="java.io.IOException"/>
  23562. </method>
  23563. <method name="write"
  23564. abstract="false" native="false" synchronized="false"
  23565. static="false" final="false" visibility="public"
  23566. deprecated="not deprecated">
  23567. <param name="out" type="java.io.DataOutput"/>
  23568. <exception name="IOException" type="java.io.IOException"/>
  23569. </method>
  23570. <doc>
  23571. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  23572. </doc>
  23573. </class>
  23574. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  23575. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  23576. <class name="VersionedWritable" extends="java.lang.Object"
  23577. abstract="true"
  23578. static="false" final="false" visibility="public"
  23579. deprecated="not deprecated">
  23580. <implements name="org.apache.hadoop.io.Writable"/>
  23581. <constructor name="VersionedWritable"
  23582. static="false" final="false" visibility="public"
  23583. deprecated="not deprecated">
  23584. </constructor>
  23585. <method name="getVersion" return="byte"
  23586. abstract="true" native="false" synchronized="false"
  23587. static="false" final="false" visibility="public"
  23588. deprecated="not deprecated">
  23589. <doc>
  23590. <![CDATA[Return the version number of the current implementation.]]>
  23591. </doc>
  23592. </method>
  23593. <method name="write"
  23594. abstract="false" native="false" synchronized="false"
  23595. static="false" final="false" visibility="public"
  23596. deprecated="not deprecated">
  23597. <param name="out" type="java.io.DataOutput"/>
  23598. <exception name="IOException" type="java.io.IOException"/>
  23599. </method>
  23600. <method name="readFields"
  23601. abstract="false" native="false" synchronized="false"
  23602. static="false" final="false" visibility="public"
  23603. deprecated="not deprecated">
  23604. <param name="in" type="java.io.DataInput"/>
  23605. <exception name="IOException" type="java.io.IOException"/>
  23606. </method>
  23607. <doc>
  23608. <![CDATA[A base class for Writables that provides version checking.
  23609. <p>This is useful when a class may evolve, so that instances written by the
  23610. old version of the class may still be processed by the new version. To
  23611. handle this situation, {@link #readFields(DataInput)}
  23612. implementations should catch {@link VersionMismatchException}.]]>
  23613. </doc>
  23614. </class>
  23615. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  23616. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  23617. <class name="VersionMismatchException" extends="java.io.IOException"
  23618. abstract="false"
  23619. static="false" final="false" visibility="public"
  23620. deprecated="not deprecated">
  23621. <constructor name="VersionMismatchException" type="byte, byte"
  23622. static="false" final="false" visibility="public"
  23623. deprecated="not deprecated">
  23624. </constructor>
  23625. <method name="toString" return="java.lang.String"
  23626. abstract="false" native="false" synchronized="false"
  23627. static="false" final="false" visibility="public"
  23628. deprecated="not deprecated">
  23629. <doc>
  23630. <![CDATA[Returns a string representation of this object.]]>
  23631. </doc>
  23632. </method>
  23633. <doc>
  23634. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  23635. version of an object being read does not match the current implementation
  23636. version as returned by {@link VersionedWritable#getVersion()}.]]>
  23637. </doc>
  23638. </class>
  23639. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  23640. <!-- start class org.apache.hadoop.io.VIntWritable -->
  23641. <class name="VIntWritable" extends="java.lang.Object"
  23642. abstract="false"
  23643. static="false" final="false" visibility="public"
  23644. deprecated="not deprecated">
  23645. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23646. <constructor name="VIntWritable"
  23647. static="false" final="false" visibility="public"
  23648. deprecated="not deprecated">
  23649. </constructor>
  23650. <constructor name="VIntWritable" type="int"
  23651. static="false" final="false" visibility="public"
  23652. deprecated="not deprecated">
  23653. </constructor>
  23654. <method name="set"
  23655. abstract="false" native="false" synchronized="false"
  23656. static="false" final="false" visibility="public"
  23657. deprecated="not deprecated">
  23658. <param name="value" type="int"/>
  23659. <doc>
  23660. <![CDATA[Set the value of this VIntWritable.]]>
  23661. </doc>
  23662. </method>
  23663. <method name="get" return="int"
  23664. abstract="false" native="false" synchronized="false"
  23665. static="false" final="false" visibility="public"
  23666. deprecated="not deprecated">
  23667. <doc>
  23668. <![CDATA[Return the value of this VIntWritable.]]>
  23669. </doc>
  23670. </method>
  23671. <method name="readFields"
  23672. abstract="false" native="false" synchronized="false"
  23673. static="false" final="false" visibility="public"
  23674. deprecated="not deprecated">
  23675. <param name="in" type="java.io.DataInput"/>
  23676. <exception name="IOException" type="java.io.IOException"/>
  23677. </method>
  23678. <method name="write"
  23679. abstract="false" native="false" synchronized="false"
  23680. static="false" final="false" visibility="public"
  23681. deprecated="not deprecated">
  23682. <param name="out" type="java.io.DataOutput"/>
  23683. <exception name="IOException" type="java.io.IOException"/>
  23684. </method>
  23685. <method name="equals" return="boolean"
  23686. abstract="false" native="false" synchronized="false"
  23687. static="false" final="false" visibility="public"
  23688. deprecated="not deprecated">
  23689. <param name="o" type="java.lang.Object"/>
  23690. <doc>
  23691. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  23692. </doc>
  23693. </method>
  23694. <method name="hashCode" return="int"
  23695. abstract="false" native="false" synchronized="false"
  23696. static="false" final="false" visibility="public"
  23697. deprecated="not deprecated">
  23698. </method>
  23699. <method name="compareTo" return="int"
  23700. abstract="false" native="false" synchronized="false"
  23701. static="false" final="false" visibility="public"
  23702. deprecated="not deprecated">
  23703. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  23704. <doc>
  23705. <![CDATA[Compares two VIntWritables.]]>
  23706. </doc>
  23707. </method>
  23708. <method name="toString" return="java.lang.String"
  23709. abstract="false" native="false" synchronized="false"
  23710. static="false" final="false" visibility="public"
  23711. deprecated="not deprecated">
  23712. </method>
  23713. <doc>
  23714. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  23715. Such values take between one and five bytes. Smaller values take fewer bytes.
  23716. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  23717. </doc>
  23718. </class>
  23719. <!-- end class org.apache.hadoop.io.VIntWritable -->
  23720. <!-- start class org.apache.hadoop.io.VLongWritable -->
  23721. <class name="VLongWritable" extends="java.lang.Object"
  23722. abstract="false"
  23723. static="false" final="false" visibility="public"
  23724. deprecated="not deprecated">
  23725. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23726. <constructor name="VLongWritable"
  23727. static="false" final="false" visibility="public"
  23728. deprecated="not deprecated">
  23729. </constructor>
  23730. <constructor name="VLongWritable" type="long"
  23731. static="false" final="false" visibility="public"
  23732. deprecated="not deprecated">
  23733. </constructor>
  23734. <method name="set"
  23735. abstract="false" native="false" synchronized="false"
  23736. static="false" final="false" visibility="public"
  23737. deprecated="not deprecated">
  23738. <param name="value" type="long"/>
  23739. <doc>
  23740. <![CDATA[Set the value of this LongWritable.]]>
  23741. </doc>
  23742. </method>
  23743. <method name="get" return="long"
  23744. abstract="false" native="false" synchronized="false"
  23745. static="false" final="false" visibility="public"
  23746. deprecated="not deprecated">
  23747. <doc>
  23748. <![CDATA[Return the value of this LongWritable.]]>
  23749. </doc>
  23750. </method>
  23751. <method name="readFields"
  23752. abstract="false" native="false" synchronized="false"
  23753. static="false" final="false" visibility="public"
  23754. deprecated="not deprecated">
  23755. <param name="in" type="java.io.DataInput"/>
  23756. <exception name="IOException" type="java.io.IOException"/>
  23757. </method>
  23758. <method name="write"
  23759. abstract="false" native="false" synchronized="false"
  23760. static="false" final="false" visibility="public"
  23761. deprecated="not deprecated">
  23762. <param name="out" type="java.io.DataOutput"/>
  23763. <exception name="IOException" type="java.io.IOException"/>
  23764. </method>
  23765. <method name="equals" return="boolean"
  23766. abstract="false" native="false" synchronized="false"
  23767. static="false" final="false" visibility="public"
  23768. deprecated="not deprecated">
  23769. <param name="o" type="java.lang.Object"/>
  23770. <doc>
  23771. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  23772. </doc>
  23773. </method>
  23774. <method name="hashCode" return="int"
  23775. abstract="false" native="false" synchronized="false"
  23776. static="false" final="false" visibility="public"
  23777. deprecated="not deprecated">
  23778. </method>
  23779. <method name="compareTo" return="int"
  23780. abstract="false" native="false" synchronized="false"
  23781. static="false" final="false" visibility="public"
  23782. deprecated="not deprecated">
  23783. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  23784. <doc>
  23785. <![CDATA[Compares two VLongWritables.]]>
  23786. </doc>
  23787. </method>
  23788. <method name="toString" return="java.lang.String"
  23789. abstract="false" native="false" synchronized="false"
  23790. static="false" final="false" visibility="public"
  23791. deprecated="not deprecated">
  23792. </method>
  23793. <doc>
  23794. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  23795. between one and five bytes. Smaller values take fewer bytes.
  23796. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  23797. </doc>
  23798. </class>
  23799. <!-- end class org.apache.hadoop.io.VLongWritable -->
  23800. <!-- start interface org.apache.hadoop.io.Writable -->
  23801. <interface name="Writable" abstract="true"
  23802. static="false" final="false" visibility="public"
  23803. deprecated="not deprecated">
  23804. <method name="write"
  23805. abstract="true" native="false" synchronized="false"
  23806. static="false" final="false" visibility="public"
  23807. deprecated="not deprecated">
  23808. <param name="out" type="java.io.DataOutput"/>
  23809. <exception name="IOException" type="java.io.IOException"/>
  23810. <doc>
  23811. <![CDATA[Serialize the fields of this object to <code>out</code>.
  23812. @param out <code>DataOuput</code> to serialize this object into.
  23813. @throws IOException]]>
  23814. </doc>
  23815. </method>
  23816. <method name="readFields"
  23817. abstract="true" native="false" synchronized="false"
  23818. static="false" final="false" visibility="public"
  23819. deprecated="not deprecated">
  23820. <param name="in" type="java.io.DataInput"/>
  23821. <exception name="IOException" type="java.io.IOException"/>
  23822. <doc>
  23823. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  23824. <p>For efficiency, implementations should attempt to re-use storage in the
  23825. existing object where possible.</p>
  23826. @param in <code>DataInput</code> to deseriablize this object from.
  23827. @throws IOException]]>
  23828. </doc>
  23829. </method>
  23830. <doc>
  23831. <![CDATA[A serializable object which implements a simple, efficient, serialization
  23832. protocol, based on {@link DataInput} and {@link DataOutput}.
  23833. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  23834. framework implements this interface.</p>
  23835. <p>Implementations typically implement a static <code>read(DataInput)</code>
  23836. method which constructs a new instance, calls {@link #readFields(DataInput)}
  23837. and returns the instance.</p>
  23838. <p>Example:</p>
  23839. <blockquote><pre>
  23840. public class MyWritable implements Writable {
  23841. // Some data
  23842. private int counter;
  23843. private long timestamp;
  23844. // Default constructor to allow (de)serialization
  23845. MyWritable() { }
  23846. public void write(DataOutput out) throws IOException {
  23847. out.writeInt(counter);
  23848. out.writeLong(timestamp);
  23849. }
  23850. public void readFields(DataInput in) throws IOException {
  23851. counter = in.readInt();
  23852. timestamp = in.readLong();
  23853. }
  23854. public static MyWritable read(DataInput in) throws IOException {
  23855. MyWritable w = new MyWritable();
  23856. w.readFields(in);
  23857. return w;
  23858. }
  23859. }
  23860. </pre></blockquote>]]>
  23861. </doc>
  23862. </interface>
  23863. <!-- end interface org.apache.hadoop.io.Writable -->
  23864. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  23865. <interface name="WritableComparable" abstract="true"
  23866. static="false" final="false" visibility="public"
  23867. deprecated="not deprecated">
  23868. <implements name="org.apache.hadoop.io.Writable"/>
  23869. <implements name="java.lang.Comparable"/>
  23870. <doc>
  23871. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  23872. <p><code>WritableComparable</code>s can be compared to each other, typically
  23873. via <code>Comparator</code>s. Any type which is to be used as a
  23874. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  23875. interface.</p>
  23876. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  23877. keys. It's important that your implementation of hashCode() returns the same
  23878. result across different instances of the JVM. Note also that the default
  23879. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  23880. satisfy this property.</p>
  23881. <p>Example:</p>
  23882. <blockquote><pre>
  23883. public class MyWritableComparable implements
  23884. WritableComparable{@literal <MyWritableComparable>} {
  23885. // Some data
  23886. private int counter;
  23887. private long timestamp;
  23888. public void write(DataOutput out) throws IOException {
  23889. out.writeInt(counter);
  23890. out.writeLong(timestamp);
  23891. }
  23892. public void readFields(DataInput in) throws IOException {
  23893. counter = in.readInt();
  23894. timestamp = in.readLong();
  23895. }
  23896. public int compareTo(MyWritableComparable o) {
  23897. int thisValue = this.value;
  23898. int thatValue = o.value;
  23899. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  23900. }
  23901. public int hashCode() {
  23902. final int prime = 31;
  23903. int result = 1;
  23904. result = prime * result + counter;
  23905. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  23906. return result
  23907. }
  23908. }
  23909. </pre></blockquote>]]>
  23910. </doc>
  23911. </interface>
  23912. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  23913. <!-- start class org.apache.hadoop.io.WritableComparator -->
  23914. <class name="WritableComparator" extends="java.lang.Object"
  23915. abstract="false"
  23916. static="false" final="false" visibility="public"
  23917. deprecated="not deprecated">
  23918. <implements name="org.apache.hadoop.io.RawComparator"/>
  23919. <implements name="org.apache.hadoop.conf.Configurable"/>
  23920. <constructor name="WritableComparator"
  23921. static="false" final="false" visibility="protected"
  23922. deprecated="not deprecated">
  23923. </constructor>
  23924. <constructor name="WritableComparator" type="java.lang.Class"
  23925. static="false" final="false" visibility="protected"
  23926. deprecated="not deprecated">
  23927. <doc>
  23928. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  23929. </doc>
  23930. </constructor>
  23931. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  23932. static="false" final="false" visibility="protected"
  23933. deprecated="not deprecated">
  23934. </constructor>
  23935. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  23936. static="false" final="false" visibility="protected"
  23937. deprecated="not deprecated">
  23938. </constructor>
  23939. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  23940. abstract="false" native="false" synchronized="false"
  23941. static="true" final="false" visibility="public"
  23942. deprecated="not deprecated">
  23943. <param name="c" type="java.lang.Class"/>
  23944. <doc>
  23945. <![CDATA[For backwards compatibility.]]>
  23946. </doc>
  23947. </method>
  23948. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  23949. abstract="false" native="false" synchronized="false"
  23950. static="true" final="false" visibility="public"
  23951. deprecated="not deprecated">
  23952. <param name="c" type="java.lang.Class"/>
  23953. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23954. <doc>
  23955. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  23956. </doc>
  23957. </method>
  23958. <method name="setConf"
  23959. abstract="false" native="false" synchronized="false"
  23960. static="false" final="false" visibility="public"
  23961. deprecated="not deprecated">
  23962. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23963. </method>
  23964. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23965. abstract="false" native="false" synchronized="false"
  23966. static="false" final="false" visibility="public"
  23967. deprecated="not deprecated">
  23968. </method>
  23969. <method name="define"
  23970. abstract="false" native="false" synchronized="false"
  23971. static="true" final="false" visibility="public"
  23972. deprecated="not deprecated">
  23973. <param name="c" type="java.lang.Class"/>
  23974. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  23975. <doc>
  23976. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  23977. implementation. Comparators registered with this method must be
  23978. thread-safe.]]>
  23979. </doc>
  23980. </method>
  23981. <method name="getKeyClass" return="java.lang.Class"
  23982. abstract="false" native="false" synchronized="false"
  23983. static="false" final="false" visibility="public"
  23984. deprecated="not deprecated">
  23985. <doc>
  23986. <![CDATA[Returns the WritableComparable implementation class.]]>
  23987. </doc>
  23988. </method>
  23989. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  23990. abstract="false" native="false" synchronized="false"
  23991. static="false" final="false" visibility="public"
  23992. deprecated="not deprecated">
  23993. <doc>
  23994. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  23995. </doc>
  23996. </method>
  23997. <method name="compare" return="int"
  23998. abstract="false" native="false" synchronized="false"
  23999. static="false" final="false" visibility="public"
  24000. deprecated="not deprecated">
  24001. <param name="b1" type="byte[]"/>
  24002. <param name="s1" type="int"/>
  24003. <param name="l1" type="int"/>
  24004. <param name="b2" type="byte[]"/>
  24005. <param name="s2" type="int"/>
  24006. <param name="l2" type="int"/>
  24007. <doc>
  24008. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  24009. <p>The default implementation reads the data into two {@link
  24010. WritableComparable}s (using {@link
  24011. Writable#readFields(DataInput)}, then calls {@link
  24012. #compare(WritableComparable,WritableComparable)}.]]>
  24013. </doc>
  24014. </method>
  24015. <method name="compare" return="int"
  24016. abstract="false" native="false" synchronized="false"
  24017. static="false" final="false" visibility="public"
  24018. deprecated="not deprecated">
  24019. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  24020. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  24021. <doc>
  24022. <![CDATA[Compare two WritableComparables.
  24023. <p> The default implementation uses the natural ordering, calling {@link
  24024. Comparable#compareTo(Object)}.]]>
  24025. </doc>
  24026. </method>
  24027. <method name="compare" return="int"
  24028. abstract="false" native="false" synchronized="false"
  24029. static="false" final="false" visibility="public"
  24030. deprecated="not deprecated">
  24031. <param name="a" type="java.lang.Object"/>
  24032. <param name="b" type="java.lang.Object"/>
  24033. </method>
  24034. <method name="compareBytes" return="int"
  24035. abstract="false" native="false" synchronized="false"
  24036. static="true" final="false" visibility="public"
  24037. deprecated="not deprecated">
  24038. <param name="b1" type="byte[]"/>
  24039. <param name="s1" type="int"/>
  24040. <param name="l1" type="int"/>
  24041. <param name="b2" type="byte[]"/>
  24042. <param name="s2" type="int"/>
  24043. <param name="l2" type="int"/>
  24044. <doc>
  24045. <![CDATA[Lexicographic order of binary data.]]>
  24046. </doc>
  24047. </method>
  24048. <method name="hashBytes" return="int"
  24049. abstract="false" native="false" synchronized="false"
  24050. static="true" final="false" visibility="public"
  24051. deprecated="not deprecated">
  24052. <param name="bytes" type="byte[]"/>
  24053. <param name="offset" type="int"/>
  24054. <param name="length" type="int"/>
  24055. <doc>
  24056. <![CDATA[Compute hash for binary data.]]>
  24057. </doc>
  24058. </method>
  24059. <method name="hashBytes" return="int"
  24060. abstract="false" native="false" synchronized="false"
  24061. static="true" final="false" visibility="public"
  24062. deprecated="not deprecated">
  24063. <param name="bytes" type="byte[]"/>
  24064. <param name="length" type="int"/>
  24065. <doc>
  24066. <![CDATA[Compute hash for binary data.]]>
  24067. </doc>
  24068. </method>
  24069. <method name="readUnsignedShort" return="int"
  24070. abstract="false" native="false" synchronized="false"
  24071. static="true" final="false" visibility="public"
  24072. deprecated="not deprecated">
  24073. <param name="bytes" type="byte[]"/>
  24074. <param name="start" type="int"/>
  24075. <doc>
  24076. <![CDATA[Parse an unsigned short from a byte array.]]>
  24077. </doc>
  24078. </method>
  24079. <method name="readInt" return="int"
  24080. abstract="false" native="false" synchronized="false"
  24081. static="true" final="false" visibility="public"
  24082. deprecated="not deprecated">
  24083. <param name="bytes" type="byte[]"/>
  24084. <param name="start" type="int"/>
  24085. <doc>
  24086. <![CDATA[Parse an integer from a byte array.]]>
  24087. </doc>
  24088. </method>
  24089. <method name="readFloat" return="float"
  24090. abstract="false" native="false" synchronized="false"
  24091. static="true" final="false" visibility="public"
  24092. deprecated="not deprecated">
  24093. <param name="bytes" type="byte[]"/>
  24094. <param name="start" type="int"/>
  24095. <doc>
  24096. <![CDATA[Parse a float from a byte array.]]>
  24097. </doc>
  24098. </method>
  24099. <method name="readLong" return="long"
  24100. abstract="false" native="false" synchronized="false"
  24101. static="true" final="false" visibility="public"
  24102. deprecated="not deprecated">
  24103. <param name="bytes" type="byte[]"/>
  24104. <param name="start" type="int"/>
  24105. <doc>
  24106. <![CDATA[Parse a long from a byte array.]]>
  24107. </doc>
  24108. </method>
  24109. <method name="readDouble" return="double"
  24110. abstract="false" native="false" synchronized="false"
  24111. static="true" final="false" visibility="public"
  24112. deprecated="not deprecated">
  24113. <param name="bytes" type="byte[]"/>
  24114. <param name="start" type="int"/>
  24115. <doc>
  24116. <![CDATA[Parse a double from a byte array.]]>
  24117. </doc>
  24118. </method>
  24119. <method name="readVLong" return="long"
  24120. abstract="false" native="false" synchronized="false"
  24121. static="true" final="false" visibility="public"
  24122. deprecated="not deprecated">
  24123. <param name="bytes" type="byte[]"/>
  24124. <param name="start" type="int"/>
  24125. <exception name="IOException" type="java.io.IOException"/>
  24126. <doc>
  24127. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  24128. @param bytes byte array with decode long
  24129. @param start starting index
  24130. @throws java.io.IOException
  24131. @return deserialized long]]>
  24132. </doc>
  24133. </method>
  24134. <method name="readVInt" return="int"
  24135. abstract="false" native="false" synchronized="false"
  24136. static="true" final="false" visibility="public"
  24137. deprecated="not deprecated">
  24138. <param name="bytes" type="byte[]"/>
  24139. <param name="start" type="int"/>
  24140. <exception name="IOException" type="java.io.IOException"/>
  24141. <doc>
  24142. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  24143. @param bytes byte array with the encoded integer
  24144. @param start start index
  24145. @throws java.io.IOException
  24146. @return deserialized integer]]>
  24147. </doc>
  24148. </method>
  24149. <doc>
  24150. <![CDATA[A Comparator for {@link WritableComparable}s.
  24151. <p>This base implementation uses the natural ordering. To define alternate
  24152. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  24153. <p>One may optimize compare-intensive operations by overriding
  24154. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  24155. provided to assist in optimized implementations of this method.]]>
  24156. </doc>
  24157. </class>
  24158. <!-- end class org.apache.hadoop.io.WritableComparator -->
  24159. <!-- start class org.apache.hadoop.io.WritableFactories -->
  24160. <class name="WritableFactories" extends="java.lang.Object"
  24161. abstract="false"
  24162. static="false" final="false" visibility="public"
  24163. deprecated="not deprecated">
  24164. <method name="setFactory"
  24165. abstract="false" native="false" synchronized="false"
  24166. static="true" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. <param name="c" type="java.lang.Class"/>
  24169. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  24170. <doc>
  24171. <![CDATA[Define a factory for a class.]]>
  24172. </doc>
  24173. </method>
  24174. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  24175. abstract="false" native="false" synchronized="false"
  24176. static="true" final="false" visibility="public"
  24177. deprecated="not deprecated">
  24178. <param name="c" type="java.lang.Class"/>
  24179. <doc>
  24180. <![CDATA[Define a factory for a class.]]>
  24181. </doc>
  24182. </method>
  24183. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  24184. abstract="false" native="false" synchronized="false"
  24185. static="true" final="false" visibility="public"
  24186. deprecated="not deprecated">
  24187. <param name="c" type="java.lang.Class"/>
  24188. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24189. <doc>
  24190. <![CDATA[Create a new instance of a class with a defined factory.]]>
  24191. </doc>
  24192. </method>
  24193. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  24194. abstract="false" native="false" synchronized="false"
  24195. static="true" final="false" visibility="public"
  24196. deprecated="not deprecated">
  24197. <param name="c" type="java.lang.Class"/>
  24198. <doc>
  24199. <![CDATA[Create a new instance of a class with a defined factory.]]>
  24200. </doc>
  24201. </method>
  24202. <doc>
  24203. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  24204. ObjectWritable} to be able to construct instances of non-public classes.]]>
  24205. </doc>
  24206. </class>
  24207. <!-- end class org.apache.hadoop.io.WritableFactories -->
  24208. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  24209. <interface name="WritableFactory" abstract="true"
  24210. static="false" final="false" visibility="public"
  24211. deprecated="not deprecated">
  24212. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  24213. abstract="true" native="false" synchronized="false"
  24214. static="false" final="false" visibility="public"
  24215. deprecated="not deprecated">
  24216. <doc>
  24217. <![CDATA[Return a new instance.]]>
  24218. </doc>
  24219. </method>
  24220. <doc>
  24221. <![CDATA[A factory for a class of Writable.
  24222. @see WritableFactories]]>
  24223. </doc>
  24224. </interface>
  24225. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  24226. <!-- start class org.apache.hadoop.io.WritableUtils -->
  24227. <class name="WritableUtils" extends="java.lang.Object"
  24228. abstract="false"
  24229. static="false" final="true" visibility="public"
  24230. deprecated="not deprecated">
  24231. <constructor name="WritableUtils"
  24232. static="false" final="false" visibility="public"
  24233. deprecated="not deprecated">
  24234. </constructor>
  24235. <method name="readCompressedByteArray" return="byte[]"
  24236. abstract="false" native="false" synchronized="false"
  24237. static="true" final="false" visibility="public"
  24238. deprecated="not deprecated">
  24239. <param name="in" type="java.io.DataInput"/>
  24240. <exception name="IOException" type="java.io.IOException"/>
  24241. </method>
  24242. <method name="skipCompressedByteArray"
  24243. abstract="false" native="false" synchronized="false"
  24244. static="true" final="false" visibility="public"
  24245. deprecated="not deprecated">
  24246. <param name="in" type="java.io.DataInput"/>
  24247. <exception name="IOException" type="java.io.IOException"/>
  24248. </method>
  24249. <method name="writeCompressedByteArray" return="int"
  24250. abstract="false" native="false" synchronized="false"
  24251. static="true" final="false" visibility="public"
  24252. deprecated="not deprecated">
  24253. <param name="out" type="java.io.DataOutput"/>
  24254. <param name="bytes" type="byte[]"/>
  24255. <exception name="IOException" type="java.io.IOException"/>
  24256. </method>
  24257. <method name="readCompressedString" return="java.lang.String"
  24258. abstract="false" native="false" synchronized="false"
  24259. static="true" final="false" visibility="public"
  24260. deprecated="not deprecated">
  24261. <param name="in" type="java.io.DataInput"/>
  24262. <exception name="IOException" type="java.io.IOException"/>
  24263. </method>
  24264. <method name="writeCompressedString" return="int"
  24265. abstract="false" native="false" synchronized="false"
  24266. static="true" final="false" visibility="public"
  24267. deprecated="not deprecated">
  24268. <param name="out" type="java.io.DataOutput"/>
  24269. <param name="s" type="java.lang.String"/>
  24270. <exception name="IOException" type="java.io.IOException"/>
  24271. </method>
  24272. <method name="writeString"
  24273. abstract="false" native="false" synchronized="false"
  24274. static="true" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <param name="out" type="java.io.DataOutput"/>
  24277. <param name="s" type="java.lang.String"/>
  24278. <exception name="IOException" type="java.io.IOException"/>
  24279. </method>
  24280. <method name="readString" return="java.lang.String"
  24281. abstract="false" native="false" synchronized="false"
  24282. static="true" final="false" visibility="public"
  24283. deprecated="not deprecated">
  24284. <param name="in" type="java.io.DataInput"/>
  24285. <exception name="IOException" type="java.io.IOException"/>
  24286. </method>
  24287. <method name="writeStringArray"
  24288. abstract="false" native="false" synchronized="false"
  24289. static="true" final="false" visibility="public"
  24290. deprecated="not deprecated">
  24291. <param name="out" type="java.io.DataOutput"/>
  24292. <param name="s" type="java.lang.String[]"/>
  24293. <exception name="IOException" type="java.io.IOException"/>
  24294. </method>
  24295. <method name="writeCompressedStringArray"
  24296. abstract="false" native="false" synchronized="false"
  24297. static="true" final="false" visibility="public"
  24298. deprecated="not deprecated">
  24299. <param name="out" type="java.io.DataOutput"/>
  24300. <param name="s" type="java.lang.String[]"/>
  24301. <exception name="IOException" type="java.io.IOException"/>
  24302. </method>
  24303. <method name="readStringArray" return="java.lang.String[]"
  24304. abstract="false" native="false" synchronized="false"
  24305. static="true" final="false" visibility="public"
  24306. deprecated="not deprecated">
  24307. <param name="in" type="java.io.DataInput"/>
  24308. <exception name="IOException" type="java.io.IOException"/>
  24309. </method>
  24310. <method name="readCompressedStringArray" return="java.lang.String[]"
  24311. abstract="false" native="false" synchronized="false"
  24312. static="true" final="false" visibility="public"
  24313. deprecated="not deprecated">
  24314. <param name="in" type="java.io.DataInput"/>
  24315. <exception name="IOException" type="java.io.IOException"/>
  24316. </method>
  24317. <method name="displayByteArray"
  24318. abstract="false" native="false" synchronized="false"
  24319. static="true" final="false" visibility="public"
  24320. deprecated="not deprecated">
  24321. <param name="record" type="byte[]"/>
  24322. </method>
  24323. <method name="clone" return="T"
  24324. abstract="false" native="false" synchronized="false"
  24325. static="true" final="false" visibility="public"
  24326. deprecated="not deprecated">
  24327. <param name="orig" type="T"/>
  24328. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24329. <doc>
  24330. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  24331. @param orig The object to copy
  24332. @return The copied object]]>
  24333. </doc>
  24334. </method>
  24335. <method name="cloneInto"
  24336. abstract="false" native="false" synchronized="false"
  24337. static="true" final="false" visibility="public"
  24338. deprecated="use ReflectionUtils.cloneInto instead.">
  24339. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  24340. <param name="src" type="org.apache.hadoop.io.Writable"/>
  24341. <exception name="IOException" type="java.io.IOException"/>
  24342. <doc>
  24343. <![CDATA[Make a copy of the writable object using serialization to a buffer
  24344. @param dst the object to copy from
  24345. @param src the object to copy into, which is destroyed
  24346. @throws IOException
  24347. @deprecated use ReflectionUtils.cloneInto instead.]]>
  24348. </doc>
  24349. </method>
  24350. <method name="writeVInt"
  24351. abstract="false" native="false" synchronized="false"
  24352. static="true" final="false" visibility="public"
  24353. deprecated="not deprecated">
  24354. <param name="stream" type="java.io.DataOutput"/>
  24355. <param name="i" type="int"/>
  24356. <exception name="IOException" type="java.io.IOException"/>
  24357. <doc>
  24358. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  24359. For -112 {@literal <=} i {@literal <=} 127, only one byte is used with the
  24360. actual value.
  24361. For other values of i, the first byte value indicates whether the
  24362. integer is positive or negative, and the number of bytes that follow.
  24363. If the first byte value v is between -113 and -116, the following integer
  24364. is positive, with number of bytes that follow are -(v+112).
  24365. If the first byte value v is between -121 and -124, the following integer
  24366. is negative, with number of bytes that follow are -(v+120). Bytes are
  24367. stored in the high-non-zero-byte-first order.
  24368. @param stream Binary output stream
  24369. @param i Integer to be serialized
  24370. @throws java.io.IOException]]>
  24371. </doc>
  24372. </method>
  24373. <method name="writeVLong"
  24374. abstract="false" native="false" synchronized="false"
  24375. static="true" final="false" visibility="public"
  24376. deprecated="not deprecated">
  24377. <param name="stream" type="java.io.DataOutput"/>
  24378. <param name="i" type="long"/>
  24379. <exception name="IOException" type="java.io.IOException"/>
  24380. <doc>
  24381. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  24382. For -112 {@literal <=} i {@literal <=} 127, only one byte is used with the
  24383. actual value.
  24384. For other values of i, the first byte value indicates whether the
  24385. long is positive or negative, and the number of bytes that follow.
  24386. If the first byte value v is between -113 and -120, the following long
  24387. is positive, with number of bytes that follow are -(v+112).
  24388. If the first byte value v is between -121 and -128, the following long
  24389. is negative, with number of bytes that follow are -(v+120). Bytes are
  24390. stored in the high-non-zero-byte-first order.
  24391. @param stream Binary output stream
  24392. @param i Long to be serialized
  24393. @throws java.io.IOException]]>
  24394. </doc>
  24395. </method>
  24396. <method name="readVLong" return="long"
  24397. abstract="false" native="false" synchronized="false"
  24398. static="true" final="false" visibility="public"
  24399. deprecated="not deprecated">
  24400. <param name="stream" type="java.io.DataInput"/>
  24401. <exception name="IOException" type="java.io.IOException"/>
  24402. <doc>
  24403. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  24404. @param stream Binary input stream
  24405. @throws java.io.IOException
  24406. @return deserialized long from stream.]]>
  24407. </doc>
  24408. </method>
  24409. <method name="readVInt" return="int"
  24410. abstract="false" native="false" synchronized="false"
  24411. static="true" final="false" visibility="public"
  24412. deprecated="not deprecated">
  24413. <param name="stream" type="java.io.DataInput"/>
  24414. <exception name="IOException" type="java.io.IOException"/>
  24415. <doc>
  24416. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  24417. @param stream Binary input stream
  24418. @throws java.io.IOException
  24419. @return deserialized integer from stream.]]>
  24420. </doc>
  24421. </method>
  24422. <method name="readVIntInRange" return="int"
  24423. abstract="false" native="false" synchronized="false"
  24424. static="true" final="false" visibility="public"
  24425. deprecated="not deprecated">
  24426. <param name="stream" type="java.io.DataInput"/>
  24427. <param name="lower" type="int"/>
  24428. <param name="upper" type="int"/>
  24429. <exception name="IOException" type="java.io.IOException"/>
  24430. <doc>
  24431. <![CDATA[Reads an integer from the input stream and returns it.
  24432. This function validates that the integer is between [lower, upper],
  24433. inclusive.
  24434. @param stream Binary input stream
  24435. @throws java.io.IOException
  24436. @return deserialized integer from stream]]>
  24437. </doc>
  24438. </method>
  24439. <method name="isNegativeVInt" return="boolean"
  24440. abstract="false" native="false" synchronized="false"
  24441. static="true" final="false" visibility="public"
  24442. deprecated="not deprecated">
  24443. <param name="value" type="byte"/>
  24444. <doc>
  24445. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  24446. @param value the first byte
  24447. @return is the value negative]]>
  24448. </doc>
  24449. </method>
  24450. <method name="decodeVIntSize" return="int"
  24451. abstract="false" native="false" synchronized="false"
  24452. static="true" final="false" visibility="public"
  24453. deprecated="not deprecated">
  24454. <param name="value" type="byte"/>
  24455. <doc>
  24456. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  24457. @param value the first byte of the vint/vlong
  24458. @return the total number of bytes (1 to 9)]]>
  24459. </doc>
  24460. </method>
  24461. <method name="getVIntSize" return="int"
  24462. abstract="false" native="false" synchronized="false"
  24463. static="true" final="false" visibility="public"
  24464. deprecated="not deprecated">
  24465. <param name="i" type="long"/>
  24466. <doc>
  24467. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  24468. @return the encoded length]]>
  24469. </doc>
  24470. </method>
  24471. <method name="readEnum" return="T"
  24472. abstract="false" native="false" synchronized="false"
  24473. static="true" final="false" visibility="public"
  24474. deprecated="not deprecated">
  24475. <param name="in" type="java.io.DataInput"/>
  24476. <param name="enumType" type="java.lang.Class"/>
  24477. <exception name="IOException" type="java.io.IOException"/>
  24478. <doc>
  24479. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  24480. using String values.
  24481. @param <T> Enum type
  24482. @param in DataInput to read from
  24483. @param enumType Class type of Enum
  24484. @return Enum represented by String read from DataInput
  24485. @throws IOException]]>
  24486. </doc>
  24487. </method>
  24488. <method name="writeEnum"
  24489. abstract="false" native="false" synchronized="false"
  24490. static="true" final="false" visibility="public"
  24491. deprecated="not deprecated">
  24492. <param name="out" type="java.io.DataOutput"/>
  24493. <param name="enumVal" type="java.lang.Enum"/>
  24494. <exception name="IOException" type="java.io.IOException"/>
  24495. <doc>
  24496. <![CDATA[writes String value of enum to DataOutput.
  24497. @param out Dataoutput stream
  24498. @param enumVal enum value
  24499. @throws IOException]]>
  24500. </doc>
  24501. </method>
  24502. <method name="skipFully"
  24503. abstract="false" native="false" synchronized="false"
  24504. static="true" final="false" visibility="public"
  24505. deprecated="not deprecated">
  24506. <param name="in" type="java.io.DataInput"/>
  24507. <param name="len" type="int"/>
  24508. <exception name="IOException" type="java.io.IOException"/>
  24509. <doc>
  24510. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  24511. @param in input stream
  24512. @param len number of bytes to skip
  24513. @throws IOException when skipped less number of bytes]]>
  24514. </doc>
  24515. </method>
  24516. <method name="toByteArray" return="byte[]"
  24517. abstract="false" native="false" synchronized="false"
  24518. static="true" final="false" visibility="public"
  24519. deprecated="not deprecated">
  24520. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  24521. <doc>
  24522. <![CDATA[Convert writables to a byte array]]>
  24523. </doc>
  24524. </method>
  24525. <method name="readStringSafely" return="java.lang.String"
  24526. abstract="false" native="false" synchronized="false"
  24527. static="true" final="false" visibility="public"
  24528. deprecated="not deprecated">
  24529. <param name="in" type="java.io.DataInput"/>
  24530. <param name="maxLength" type="int"/>
  24531. <exception name="IOException" type="java.io.IOException"/>
  24532. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  24533. <doc>
  24534. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  24535. followed by the given number of bytes.
  24536. @param in the stream to read from
  24537. @param maxLength the largest acceptable length of the encoded string
  24538. @return the bytes as a string
  24539. @throws IOException if reading from the DataInput fails
  24540. @throws IllegalArgumentException if the encoded byte size for string
  24541. is negative or larger than maxSize. Only the vint is read.]]>
  24542. </doc>
  24543. </method>
  24544. </class>
  24545. <!-- end class org.apache.hadoop.io.WritableUtils -->
  24546. <doc>
  24547. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  24548. to databases, and to files.]]>
  24549. </doc>
  24550. </package>
  24551. <package name="org.apache.hadoop.io.compress">
  24552. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  24553. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  24554. abstract="false"
  24555. static="false" final="false" visibility="public"
  24556. deprecated="not deprecated">
  24557. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  24558. static="false" final="false" visibility="public"
  24559. deprecated="not deprecated">
  24560. <doc>
  24561. <![CDATA[Create a {@link BlockCompressorStream}.
  24562. @param out stream
  24563. @param compressor compressor to be used
  24564. @param bufferSize size of buffer
  24565. @param compressionOverhead maximum 'overhead' of the compression
  24566. algorithm with given bufferSize]]>
  24567. </doc>
  24568. </constructor>
  24569. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  24570. static="false" final="false" visibility="public"
  24571. deprecated="not deprecated">
  24572. <doc>
  24573. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  24574. compressor.
  24575. Use default of 512 as bufferSize and compressionOverhead of
  24576. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  24577. @param out stream
  24578. @param compressor compressor to be used]]>
  24579. </doc>
  24580. </constructor>
  24581. <method name="write"
  24582. abstract="false" native="false" synchronized="false"
  24583. static="false" final="false" visibility="public"
  24584. deprecated="not deprecated">
  24585. <param name="b" type="byte[]"/>
  24586. <param name="off" type="int"/>
  24587. <param name="len" type="int"/>
  24588. <exception name="IOException" type="java.io.IOException"/>
  24589. <doc>
  24590. <![CDATA[Write the data provided to the compression codec, compressing no more
  24591. than the buffer size less the compression overhead as specified during
  24592. construction for each block.
  24593. Each block contains the uncompressed length for the block, followed by
  24594. one or more length-prefixed blocks of compressed data.]]>
  24595. </doc>
  24596. </method>
  24597. <method name="finish"
  24598. abstract="false" native="false" synchronized="false"
  24599. static="false" final="false" visibility="public"
  24600. deprecated="not deprecated">
  24601. <exception name="IOException" type="java.io.IOException"/>
  24602. </method>
  24603. <method name="compress"
  24604. abstract="false" native="false" synchronized="false"
  24605. static="false" final="false" visibility="protected"
  24606. deprecated="not deprecated">
  24607. <exception name="IOException" type="java.io.IOException"/>
  24608. </method>
  24609. <doc>
  24610. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  24611. with 'block-based' based compression algorithms, as opposed to
  24612. 'stream-based' compression algorithms.
  24613. It should be noted that this wrapper does not guarantee that blocks will
  24614. be sized for the compressor. If the
  24615. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  24616. effect meaningful compression, it is responsible for it.]]>
  24617. </doc>
  24618. </class>
  24619. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  24620. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  24621. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  24622. abstract="false"
  24623. static="false" final="false" visibility="public"
  24624. deprecated="not deprecated">
  24625. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  24626. static="false" final="false" visibility="public"
  24627. deprecated="not deprecated">
  24628. <exception name="IOException" type="java.io.IOException"/>
  24629. <doc>
  24630. <![CDATA[Create a {@link BlockDecompressorStream}.
  24631. @param in input stream
  24632. @param decompressor decompressor to use
  24633. @param bufferSize size of buffer
  24634. @throws IOException]]>
  24635. </doc>
  24636. </constructor>
  24637. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  24638. static="false" final="false" visibility="public"
  24639. deprecated="not deprecated">
  24640. <exception name="IOException" type="java.io.IOException"/>
  24641. <doc>
  24642. <![CDATA[Create a {@link BlockDecompressorStream}.
  24643. @param in input stream
  24644. @param decompressor decompressor to use
  24645. @throws IOException]]>
  24646. </doc>
  24647. </constructor>
  24648. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  24649. static="false" final="false" visibility="protected"
  24650. deprecated="not deprecated">
  24651. <exception name="IOException" type="java.io.IOException"/>
  24652. </constructor>
  24653. <method name="decompress" return="int"
  24654. abstract="false" native="false" synchronized="false"
  24655. static="false" final="false" visibility="protected"
  24656. deprecated="not deprecated">
  24657. <param name="b" type="byte[]"/>
  24658. <param name="off" type="int"/>
  24659. <param name="len" type="int"/>
  24660. <exception name="IOException" type="java.io.IOException"/>
  24661. </method>
  24662. <method name="getCompressedData" return="int"
  24663. abstract="false" native="false" synchronized="false"
  24664. static="false" final="false" visibility="protected"
  24665. deprecated="not deprecated">
  24666. <exception name="IOException" type="java.io.IOException"/>
  24667. </method>
  24668. <method name="resetState"
  24669. abstract="false" native="false" synchronized="false"
  24670. static="false" final="false" visibility="public"
  24671. deprecated="not deprecated">
  24672. <exception name="IOException" type="java.io.IOException"/>
  24673. </method>
  24674. <doc>
  24675. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  24676. with 'block-based' based compression algorithms, as opposed to
  24677. 'stream-based' compression algorithms.]]>
  24678. </doc>
  24679. </class>
  24680. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  24681. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  24682. <class name="BZip2Codec" extends="java.lang.Object"
  24683. abstract="false"
  24684. static="false" final="false" visibility="public"
  24685. deprecated="not deprecated">
  24686. <implements name="org.apache.hadoop.conf.Configurable"/>
  24687. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  24688. <constructor name="BZip2Codec"
  24689. static="false" final="false" visibility="public"
  24690. deprecated="not deprecated">
  24691. <doc>
  24692. <![CDATA[Creates a new instance of BZip2Codec.]]>
  24693. </doc>
  24694. </constructor>
  24695. <method name="setConf"
  24696. abstract="false" native="false" synchronized="false"
  24697. static="false" final="false" visibility="public"
  24698. deprecated="not deprecated">
  24699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24700. <doc>
  24701. <![CDATA[Set the configuration to be used by this object.
  24702. @param conf the configuration object.]]>
  24703. </doc>
  24704. </method>
  24705. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  24706. abstract="false" native="false" synchronized="false"
  24707. static="false" final="false" visibility="public"
  24708. deprecated="not deprecated">
  24709. <doc>
  24710. <![CDATA[Return the configuration used by this object.
  24711. @return the configuration object used by this objec.]]>
  24712. </doc>
  24713. </method>
  24714. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  24715. abstract="false" native="false" synchronized="false"
  24716. static="false" final="false" visibility="public"
  24717. deprecated="not deprecated">
  24718. <param name="out" type="java.io.OutputStream"/>
  24719. <exception name="IOException" type="java.io.IOException"/>
  24720. <doc>
  24721. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  24722. {@link OutputStream}.
  24723. @param out the location for the final output stream
  24724. @return a stream the user can write uncompressed data to, to have it
  24725. compressed
  24726. @throws IOException]]>
  24727. </doc>
  24728. </method>
  24729. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  24730. abstract="false" native="false" synchronized="false"
  24731. static="false" final="false" visibility="public"
  24732. deprecated="not deprecated">
  24733. <param name="out" type="java.io.OutputStream"/>
  24734. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  24735. <exception name="IOException" type="java.io.IOException"/>
  24736. <doc>
  24737. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  24738. {@link OutputStream} with the given {@link Compressor}.
  24739. @param out the location for the final output stream
  24740. @param compressor compressor to use
  24741. @return a stream the user can write uncompressed data to, to have it
  24742. compressed
  24743. @throws IOException]]>
  24744. </doc>
  24745. </method>
  24746. <method name="getCompressorType" return="java.lang.Class"
  24747. abstract="false" native="false" synchronized="false"
  24748. static="false" final="false" visibility="public"
  24749. deprecated="not deprecated">
  24750. <doc>
  24751. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  24752. @return the type of compressor needed by this codec.]]>
  24753. </doc>
  24754. </method>
  24755. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  24756. abstract="false" native="false" synchronized="false"
  24757. static="false" final="false" visibility="public"
  24758. deprecated="not deprecated">
  24759. <doc>
  24760. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  24761. @return a new compressor for use by this codec]]>
  24762. </doc>
  24763. </method>
  24764. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  24765. abstract="false" native="false" synchronized="false"
  24766. static="false" final="false" visibility="public"
  24767. deprecated="not deprecated">
  24768. <param name="in" type="java.io.InputStream"/>
  24769. <exception name="IOException" type="java.io.IOException"/>
  24770. <doc>
  24771. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  24772. input stream and return a stream for uncompressed data.
  24773. @param in the stream to read compressed bytes from
  24774. @return a stream to read uncompressed bytes from
  24775. @throws IOException]]>
  24776. </doc>
  24777. </method>
  24778. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  24779. abstract="false" native="false" synchronized="false"
  24780. static="false" final="false" visibility="public"
  24781. deprecated="not deprecated">
  24782. <param name="in" type="java.io.InputStream"/>
  24783. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  24784. <exception name="IOException" type="java.io.IOException"/>
  24785. <doc>
  24786. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  24787. {@link InputStream} with the given {@link Decompressor}, and return a
  24788. stream for uncompressed data.
  24789. @param in the stream to read compressed bytes from
  24790. @param decompressor decompressor to use
  24791. @return a stream to read uncompressed bytes from
  24792. @throws IOException]]>
  24793. </doc>
  24794. </method>
  24795. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  24796. abstract="false" native="false" synchronized="false"
  24797. static="false" final="false" visibility="public"
  24798. deprecated="not deprecated">
  24799. <param name="seekableIn" type="java.io.InputStream"/>
  24800. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  24801. <param name="start" type="long"/>
  24802. <param name="end" type="long"/>
  24803. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  24804. <exception name="IOException" type="java.io.IOException"/>
  24805. <doc>
  24806. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  24807. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  24808. @param seekableIn The InputStream
  24809. @param start The start offset into the compressed stream
  24810. @param end The end offset into the compressed stream
  24811. @param readMode Controls whether progress is reported continuously or
  24812. only at block boundaries.
  24813. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  24814. </doc>
  24815. </method>
  24816. <method name="getDecompressorType" return="java.lang.Class"
  24817. abstract="false" native="false" synchronized="false"
  24818. static="false" final="false" visibility="public"
  24819. deprecated="not deprecated">
  24820. <doc>
  24821. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  24822. @return the type of decompressor needed by this codec.]]>
  24823. </doc>
  24824. </method>
  24825. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  24826. abstract="false" native="false" synchronized="false"
  24827. static="false" final="false" visibility="public"
  24828. deprecated="not deprecated">
  24829. <doc>
  24830. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  24831. @return a new decompressor for use by this codec]]>
  24832. </doc>
  24833. </method>
  24834. <method name="getDefaultExtension" return="java.lang.String"
  24835. abstract="false" native="false" synchronized="false"
  24836. static="false" final="false" visibility="public"
  24837. deprecated="not deprecated">
  24838. <doc>
  24839. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  24840. @return A String telling the default bzip2 file extension]]>
  24841. </doc>
  24842. </method>
  24843. <doc>
  24844. <![CDATA[This class provides output and input streams for bzip2 compression
  24845. and decompression. It uses the native bzip2 library on the system
  24846. if possible, else it uses a pure-Java implementation of the bzip2
  24847. algorithm. The configuration parameter
  24848. io.compression.codec.bzip2.library can be used to control this
  24849. behavior.
  24850. In the pure-Java mode, the Compressor and Decompressor interfaces
  24851. are not implemented. Therefore, in that mode, those methods of
  24852. CompressionCodec which have a Compressor or Decompressor type
  24853. argument, throw UnsupportedOperationException.
  24854. Currently, support for splittability is available only in the
  24855. pure-Java mode; therefore, if a SplitCompressionInputStream is
  24856. requested, the pure-Java implementation is used, regardless of the
  24857. setting of the configuration parameter mentioned above.]]>
  24858. </doc>
  24859. </class>
  24860. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  24861. <!-- start class org.apache.hadoop.io.compress.CodecConstants -->
  24862. <class name="CodecConstants" extends="java.lang.Object"
  24863. abstract="false"
  24864. static="false" final="true" visibility="public"
  24865. deprecated="not deprecated">
  24866. <field name="DEFAULT_CODEC_EXTENSION" type="java.lang.String"
  24867. transient="false" volatile="false"
  24868. static="true" final="true" visibility="public"
  24869. deprecated="not deprecated">
  24870. <doc>
  24871. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.DefaultCodec}.]]>
  24872. </doc>
  24873. </field>
  24874. <field name="BZIP2_CODEC_EXTENSION" type="java.lang.String"
  24875. transient="false" volatile="false"
  24876. static="true" final="true" visibility="public"
  24877. deprecated="not deprecated">
  24878. <doc>
  24879. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.BZip2Codec}.]]>
  24880. </doc>
  24881. </field>
  24882. <field name="GZIP_CODEC_EXTENSION" type="java.lang.String"
  24883. transient="false" volatile="false"
  24884. static="true" final="true" visibility="public"
  24885. deprecated="not deprecated">
  24886. <doc>
  24887. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.GzipCodec}.]]>
  24888. </doc>
  24889. </field>
  24890. <field name="LZ4_CODEC_EXTENSION" type="java.lang.String"
  24891. transient="false" volatile="false"
  24892. static="true" final="true" visibility="public"
  24893. deprecated="not deprecated">
  24894. <doc>
  24895. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.Lz4Codec}.]]>
  24896. </doc>
  24897. </field>
  24898. <field name="PASSTHROUGH_CODEC_EXTENSION" type="java.lang.String"
  24899. transient="false" volatile="false"
  24900. static="true" final="true" visibility="public"
  24901. deprecated="not deprecated">
  24902. <doc>
  24903. <![CDATA[Default extension for
  24904. {@link org.apache.hadoop.io.compress.PassthroughCodec}.]]>
  24905. </doc>
  24906. </field>
  24907. <field name="SNAPPY_CODEC_EXTENSION" type="java.lang.String"
  24908. transient="false" volatile="false"
  24909. static="true" final="true" visibility="public"
  24910. deprecated="not deprecated">
  24911. <doc>
  24912. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.SnappyCodec}.]]>
  24913. </doc>
  24914. </field>
  24915. <field name="ZSTANDARD_CODEC_EXTENSION" type="java.lang.String"
  24916. transient="false" volatile="false"
  24917. static="true" final="true" visibility="public"
  24918. deprecated="not deprecated">
  24919. <doc>
  24920. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.ZStandardCodec}.]]>
  24921. </doc>
  24922. </field>
  24923. <doc>
  24924. <![CDATA[Codec related constants.]]>
  24925. </doc>
  24926. </class>
  24927. <!-- end class org.apache.hadoop.io.compress.CodecConstants -->
  24928. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  24929. <class name="CodecPool" extends="java.lang.Object"
  24930. abstract="false"
  24931. static="false" final="false" visibility="public"
  24932. deprecated="not deprecated">
  24933. <constructor name="CodecPool"
  24934. static="false" final="false" visibility="public"
  24935. deprecated="not deprecated">
  24936. </constructor>
  24937. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  24938. abstract="false" native="false" synchronized="false"
  24939. static="true" final="false" visibility="public"
  24940. deprecated="not deprecated">
  24941. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24942. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24943. <doc>
  24944. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  24945. pool or a new one.
  24946. @param codec the <code>CompressionCodec</code> for which to get the
  24947. <code>Compressor</code>
  24948. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  24949. @return <code>Compressor</code> for the given
  24950. <code>CompressionCodec</code> from the pool or a new one]]>
  24951. </doc>
  24952. </method>
  24953. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  24954. abstract="false" native="false" synchronized="false"
  24955. static="true" final="false" visibility="public"
  24956. deprecated="not deprecated">
  24957. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24958. </method>
  24959. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  24960. abstract="false" native="false" synchronized="false"
  24961. static="true" final="false" visibility="public"
  24962. deprecated="not deprecated">
  24963. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24964. <doc>
  24965. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  24966. pool or a new one.
  24967. @param codec the <code>CompressionCodec</code> for which to get the
  24968. <code>Decompressor</code>
  24969. @return <code>Decompressor</code> for the given
  24970. <code>CompressionCodec</code> the pool or a new one]]>
  24971. </doc>
  24972. </method>
  24973. <method name="returnCompressor"
  24974. abstract="false" native="false" synchronized="false"
  24975. static="true" final="false" visibility="public"
  24976. deprecated="not deprecated">
  24977. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  24978. <doc>
  24979. <![CDATA[Return the {@link Compressor} to the pool.
  24980. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  24981. </doc>
  24982. </method>
  24983. <method name="returnDecompressor"
  24984. abstract="false" native="false" synchronized="false"
  24985. static="true" final="false" visibility="public"
  24986. deprecated="not deprecated">
  24987. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  24988. <doc>
  24989. <![CDATA[Return the {@link Decompressor} to the pool.
  24990. @param decompressor the <code>Decompressor</code> to be returned to the
  24991. pool]]>
  24992. </doc>
  24993. </method>
  24994. <method name="getLeasedCompressorsCount" return="int"
  24995. abstract="false" native="false" synchronized="false"
  24996. static="true" final="false" visibility="public"
  24997. deprecated="not deprecated">
  24998. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24999. <doc>
  25000. <![CDATA[Return the number of leased {@link Compressor}s for this
  25001. {@link CompressionCodec}]]>
  25002. </doc>
  25003. </method>
  25004. <method name="getLeasedDecompressorsCount" return="int"
  25005. abstract="false" native="false" synchronized="false"
  25006. static="true" final="false" visibility="public"
  25007. deprecated="not deprecated">
  25008. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  25009. <doc>
  25010. <![CDATA[Return the number of leased {@link Decompressor}s for this
  25011. {@link CompressionCodec}]]>
  25012. </doc>
  25013. </method>
  25014. <doc>
  25015. <![CDATA[A global compressor/decompressor pool used to save and reuse
  25016. (possibly native) compression/decompression codecs.]]>
  25017. </doc>
  25018. </class>
  25019. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  25020. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  25021. <interface name="CompressionCodec" abstract="true"
  25022. static="false" final="false" visibility="public"
  25023. deprecated="not deprecated">
  25024. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25025. abstract="true" native="false" synchronized="false"
  25026. static="false" final="false" visibility="public"
  25027. deprecated="not deprecated">
  25028. <param name="out" type="java.io.OutputStream"/>
  25029. <exception name="IOException" type="java.io.IOException"/>
  25030. <doc>
  25031. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  25032. {@link OutputStream}.
  25033. @param out the location for the final output stream
  25034. @return a stream the user can write uncompressed data to have it compressed
  25035. @throws IOException]]>
  25036. </doc>
  25037. </method>
  25038. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25039. abstract="true" native="false" synchronized="false"
  25040. static="false" final="false" visibility="public"
  25041. deprecated="not deprecated">
  25042. <param name="out" type="java.io.OutputStream"/>
  25043. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  25044. <exception name="IOException" type="java.io.IOException"/>
  25045. <doc>
  25046. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  25047. {@link OutputStream} with the given {@link Compressor}.
  25048. @param out the location for the final output stream
  25049. @param compressor compressor to use
  25050. @return a stream the user can write uncompressed data to have it compressed
  25051. @throws IOException]]>
  25052. </doc>
  25053. </method>
  25054. <method name="getCompressorType" return="java.lang.Class"
  25055. abstract="true" native="false" synchronized="false"
  25056. static="false" final="false" visibility="public"
  25057. deprecated="not deprecated">
  25058. <doc>
  25059. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  25060. @return the type of compressor needed by this codec.]]>
  25061. </doc>
  25062. </method>
  25063. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  25064. abstract="true" native="false" synchronized="false"
  25065. static="false" final="false" visibility="public"
  25066. deprecated="not deprecated">
  25067. <doc>
  25068. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  25069. @return a new compressor for use by this codec]]>
  25070. </doc>
  25071. </method>
  25072. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25073. abstract="true" native="false" synchronized="false"
  25074. static="false" final="false" visibility="public"
  25075. deprecated="not deprecated">
  25076. <param name="in" type="java.io.InputStream"/>
  25077. <exception name="IOException" type="java.io.IOException"/>
  25078. <doc>
  25079. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  25080. input stream.
  25081. @param in the stream to read compressed bytes from
  25082. @return a stream to read uncompressed bytes from
  25083. @throws IOException]]>
  25084. </doc>
  25085. </method>
  25086. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25087. abstract="true" native="false" synchronized="false"
  25088. static="false" final="false" visibility="public"
  25089. deprecated="not deprecated">
  25090. <param name="in" type="java.io.InputStream"/>
  25091. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  25092. <exception name="IOException" type="java.io.IOException"/>
  25093. <doc>
  25094. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  25095. {@link InputStream} with the given {@link Decompressor}.
  25096. @param in the stream to read compressed bytes from
  25097. @param decompressor decompressor to use
  25098. @return a stream to read uncompressed bytes from
  25099. @throws IOException]]>
  25100. </doc>
  25101. </method>
  25102. <method name="getDecompressorType" return="java.lang.Class"
  25103. abstract="true" native="false" synchronized="false"
  25104. static="false" final="false" visibility="public"
  25105. deprecated="not deprecated">
  25106. <doc>
  25107. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  25108. @return the type of decompressor needed by this codec.]]>
  25109. </doc>
  25110. </method>
  25111. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  25112. abstract="true" native="false" synchronized="false"
  25113. static="false" final="false" visibility="public"
  25114. deprecated="not deprecated">
  25115. <doc>
  25116. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  25117. @return a new decompressor for use by this codec]]>
  25118. </doc>
  25119. </method>
  25120. <method name="getDefaultExtension" return="java.lang.String"
  25121. abstract="true" native="false" synchronized="false"
  25122. static="false" final="false" visibility="public"
  25123. deprecated="not deprecated">
  25124. <doc>
  25125. <![CDATA[Get the default filename extension for this kind of compression.
  25126. @return the extension including the '.']]>
  25127. </doc>
  25128. </method>
  25129. <doc>
  25130. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  25131. </doc>
  25132. </interface>
  25133. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  25134. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  25135. <class name="CompressionCodecFactory" extends="java.lang.Object"
  25136. abstract="false"
  25137. static="false" final="false" visibility="public"
  25138. deprecated="not deprecated">
  25139. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  25140. static="false" final="false" visibility="public"
  25141. deprecated="not deprecated">
  25142. <doc>
  25143. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  25144. and register them. Defaults to gzip and deflate.]]>
  25145. </doc>
  25146. </constructor>
  25147. <method name="toString" return="java.lang.String"
  25148. abstract="false" native="false" synchronized="false"
  25149. static="false" final="false" visibility="public"
  25150. deprecated="not deprecated">
  25151. <doc>
  25152. <![CDATA[Print the extension map out as a string.]]>
  25153. </doc>
  25154. </method>
  25155. <method name="getCodecClasses" return="java.util.List"
  25156. abstract="false" native="false" synchronized="false"
  25157. static="true" final="false" visibility="public"
  25158. deprecated="not deprecated">
  25159. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25160. <doc>
  25161. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  25162. listed in the configuration. Codecs specified in configuration come
  25163. later in the returned list, and are considered to override those
  25164. from the ServiceLoader.
  25165. @param conf the configuration to look in
  25166. @return a list of the {@link CompressionCodec} classes]]>
  25167. </doc>
  25168. </method>
  25169. <method name="setCodecClasses"
  25170. abstract="false" native="false" synchronized="false"
  25171. static="true" final="false" visibility="public"
  25172. deprecated="not deprecated">
  25173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25174. <param name="classes" type="java.util.List"/>
  25175. <doc>
  25176. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  25177. classes specified using this method, {@link CompressionCodec} classes on
  25178. the classpath are discovered using a Java ServiceLoader.
  25179. @param conf the configuration to modify
  25180. @param classes the list of classes to set]]>
  25181. </doc>
  25182. </method>
  25183. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  25184. abstract="false" native="false" synchronized="false"
  25185. static="false" final="false" visibility="public"
  25186. deprecated="not deprecated">
  25187. <param name="file" type="org.apache.hadoop.fs.Path"/>
  25188. <doc>
  25189. <![CDATA[Find the relevant compression codec for the given file based on its
  25190. filename suffix.
  25191. @param file the filename to check
  25192. @return the codec object]]>
  25193. </doc>
  25194. </method>
  25195. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  25196. abstract="false" native="false" synchronized="false"
  25197. static="false" final="false" visibility="public"
  25198. deprecated="not deprecated">
  25199. <param name="classname" type="java.lang.String"/>
  25200. <doc>
  25201. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  25202. @param classname the canonical class name of the codec
  25203. @return the codec object]]>
  25204. </doc>
  25205. </method>
  25206. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  25207. abstract="false" native="false" synchronized="false"
  25208. static="false" final="false" visibility="public"
  25209. deprecated="not deprecated">
  25210. <param name="codecName" type="java.lang.String"/>
  25211. <doc>
  25212. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  25213. or by codec alias.
  25214. <p>
  25215. Codec aliases are case insensitive.
  25216. <p>
  25217. The code alias is the short class name (without the package name).
  25218. If the short class name ends with 'Codec', then there are two aliases for
  25219. the codec, the complete short class name and the short class name without
  25220. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  25221. alias are 'gzip' and 'gzipcodec'.
  25222. @param codecName the canonical class name of the codec
  25223. @return the codec object]]>
  25224. </doc>
  25225. </method>
  25226. <method name="getCodecClassByName" return="java.lang.Class"
  25227. abstract="false" native="false" synchronized="false"
  25228. static="false" final="false" visibility="public"
  25229. deprecated="not deprecated">
  25230. <param name="codecName" type="java.lang.String"/>
  25231. <doc>
  25232. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  25233. or by codec alias and returns its implemetation class.
  25234. <p>
  25235. Codec aliases are case insensitive.
  25236. <p>
  25237. The code alias is the short class name (without the package name).
  25238. If the short class name ends with 'Codec', then there are two aliases for
  25239. the codec, the complete short class name and the short class name without
  25240. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  25241. alias are 'gzip' and 'gzipcodec'.
  25242. @param codecName the canonical class name of the codec
  25243. @return the codec class]]>
  25244. </doc>
  25245. </method>
  25246. <method name="removeSuffix" return="java.lang.String"
  25247. abstract="false" native="false" synchronized="false"
  25248. static="true" final="false" visibility="public"
  25249. deprecated="not deprecated">
  25250. <param name="filename" type="java.lang.String"/>
  25251. <param name="suffix" type="java.lang.String"/>
  25252. <doc>
  25253. <![CDATA[Removes a suffix from a filename, if it has it.
  25254. @param filename the filename to strip
  25255. @param suffix the suffix to remove
  25256. @return the shortened filename]]>
  25257. </doc>
  25258. </method>
  25259. <method name="main"
  25260. abstract="false" native="false" synchronized="false"
  25261. static="true" final="false" visibility="public"
  25262. deprecated="not deprecated">
  25263. <param name="args" type="java.lang.String[]"/>
  25264. <exception name="Exception" type="java.lang.Exception"/>
  25265. <doc>
  25266. <![CDATA[A little test program.
  25267. @param args]]>
  25268. </doc>
  25269. </method>
  25270. <field name="LOG" type="org.slf4j.Logger"
  25271. transient="false" volatile="false"
  25272. static="true" final="true" visibility="public"
  25273. deprecated="not deprecated">
  25274. </field>
  25275. <doc>
  25276. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  25277. </doc>
  25278. </class>
  25279. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  25280. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  25281. <class name="CompressionInputStream" extends="java.io.InputStream"
  25282. abstract="true"
  25283. static="false" final="false" visibility="public"
  25284. deprecated="not deprecated">
  25285. <implements name="org.apache.hadoop.fs.Seekable"/>
  25286. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  25287. <constructor name="CompressionInputStream" type="java.io.InputStream"
  25288. static="false" final="false" visibility="protected"
  25289. deprecated="not deprecated">
  25290. <exception name="IOException" type="java.io.IOException"/>
  25291. <doc>
  25292. <![CDATA[Create a compression input stream that reads
  25293. the decompressed bytes from the given stream.
  25294. @param in The input stream to be compressed.
  25295. @throws IOException]]>
  25296. </doc>
  25297. </constructor>
  25298. <method name="close"
  25299. abstract="false" native="false" synchronized="false"
  25300. static="false" final="false" visibility="public"
  25301. deprecated="not deprecated">
  25302. <exception name="IOException" type="java.io.IOException"/>
  25303. </method>
  25304. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  25305. abstract="false" native="false" synchronized="false"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. <doc>
  25309. <![CDATA[Return any IOStatistics provided by the underlying stream.
  25310. @return IO stats from the inner stream.]]>
  25311. </doc>
  25312. </method>
  25313. <method name="read" return="int"
  25314. abstract="true" native="false" synchronized="false"
  25315. static="false" final="false" visibility="public"
  25316. deprecated="not deprecated">
  25317. <param name="b" type="byte[]"/>
  25318. <param name="off" type="int"/>
  25319. <param name="len" type="int"/>
  25320. <exception name="IOException" type="java.io.IOException"/>
  25321. <doc>
  25322. <![CDATA[Read bytes from the stream.
  25323. Made abstract to prevent leakage to underlying stream.]]>
  25324. </doc>
  25325. </method>
  25326. <method name="resetState"
  25327. abstract="true" native="false" synchronized="false"
  25328. static="false" final="false" visibility="public"
  25329. deprecated="not deprecated">
  25330. <exception name="IOException" type="java.io.IOException"/>
  25331. <doc>
  25332. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  25333. as the underlying stream may have been repositioned.]]>
  25334. </doc>
  25335. </method>
  25336. <method name="getPos" return="long"
  25337. abstract="false" native="false" synchronized="false"
  25338. static="false" final="false" visibility="public"
  25339. deprecated="not deprecated">
  25340. <exception name="IOException" type="java.io.IOException"/>
  25341. <doc>
  25342. <![CDATA[This method returns the current position in the stream.
  25343. @return Current position in stream as a long]]>
  25344. </doc>
  25345. </method>
  25346. <method name="seek"
  25347. abstract="false" native="false" synchronized="false"
  25348. static="false" final="false" visibility="public"
  25349. deprecated="not deprecated">
  25350. <param name="pos" type="long"/>
  25351. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  25352. <doc>
  25353. <![CDATA[This method is current not supported.
  25354. @throws UnsupportedOperationException]]>
  25355. </doc>
  25356. </method>
  25357. <method name="seekToNewSource" return="boolean"
  25358. abstract="false" native="false" synchronized="false"
  25359. static="false" final="false" visibility="public"
  25360. deprecated="not deprecated">
  25361. <param name="targetPos" type="long"/>
  25362. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  25363. <doc>
  25364. <![CDATA[This method is current not supported.
  25365. @throws UnsupportedOperationException]]>
  25366. </doc>
  25367. </method>
  25368. <field name="in" type="java.io.InputStream"
  25369. transient="false" volatile="false"
  25370. static="false" final="true" visibility="protected"
  25371. deprecated="not deprecated">
  25372. <doc>
  25373. <![CDATA[The input stream to be compressed.]]>
  25374. </doc>
  25375. </field>
  25376. <field name="maxAvailableData" type="long"
  25377. transient="false" volatile="false"
  25378. static="false" final="false" visibility="protected"
  25379. deprecated="not deprecated">
  25380. </field>
  25381. <doc>
  25382. <![CDATA[A compression input stream.
  25383. <p>Implementations are assumed to be buffered. This permits clients to
  25384. reposition the underlying input stream then call {@link #resetState()},
  25385. without having to also synchronize client buffers.]]>
  25386. </doc>
  25387. </class>
  25388. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  25389. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  25390. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  25391. abstract="true"
  25392. static="false" final="false" visibility="public"
  25393. deprecated="not deprecated">
  25394. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  25395. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  25396. static="false" final="false" visibility="protected"
  25397. deprecated="not deprecated">
  25398. <doc>
  25399. <![CDATA[Create a compression output stream that writes
  25400. the compressed bytes to the given stream.
  25401. @param out]]>
  25402. </doc>
  25403. </constructor>
  25404. <method name="close"
  25405. abstract="false" native="false" synchronized="false"
  25406. static="false" final="false" visibility="public"
  25407. deprecated="not deprecated">
  25408. <exception name="IOException" type="java.io.IOException"/>
  25409. </method>
  25410. <method name="flush"
  25411. abstract="false" native="false" synchronized="false"
  25412. static="false" final="false" visibility="public"
  25413. deprecated="not deprecated">
  25414. <exception name="IOException" type="java.io.IOException"/>
  25415. </method>
  25416. <method name="write"
  25417. abstract="true" native="false" synchronized="false"
  25418. static="false" final="false" visibility="public"
  25419. deprecated="not deprecated">
  25420. <param name="b" type="byte[]"/>
  25421. <param name="off" type="int"/>
  25422. <param name="len" type="int"/>
  25423. <exception name="IOException" type="java.io.IOException"/>
  25424. <doc>
  25425. <![CDATA[Write compressed bytes to the stream.
  25426. Made abstract to prevent leakage to underlying stream.]]>
  25427. </doc>
  25428. </method>
  25429. <method name="finish"
  25430. abstract="true" native="false" synchronized="false"
  25431. static="false" final="false" visibility="public"
  25432. deprecated="not deprecated">
  25433. <exception name="IOException" type="java.io.IOException"/>
  25434. <doc>
  25435. <![CDATA[Finishes writing compressed data to the output stream
  25436. without closing the underlying stream.]]>
  25437. </doc>
  25438. </method>
  25439. <method name="resetState"
  25440. abstract="true" native="false" synchronized="false"
  25441. static="false" final="false" visibility="public"
  25442. deprecated="not deprecated">
  25443. <exception name="IOException" type="java.io.IOException"/>
  25444. <doc>
  25445. <![CDATA[Reset the compression to the initial state.
  25446. Does not reset the underlying stream.]]>
  25447. </doc>
  25448. </method>
  25449. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  25450. abstract="false" native="false" synchronized="false"
  25451. static="false" final="false" visibility="public"
  25452. deprecated="not deprecated">
  25453. <doc>
  25454. <![CDATA[Return any IOStatistics provided by the underlying stream.
  25455. @return IO stats from the inner stream.]]>
  25456. </doc>
  25457. </method>
  25458. <field name="out" type="java.io.OutputStream"
  25459. transient="false" volatile="false"
  25460. static="false" final="true" visibility="protected"
  25461. deprecated="not deprecated">
  25462. <doc>
  25463. <![CDATA[The output stream to be compressed.]]>
  25464. </doc>
  25465. </field>
  25466. <doc>
  25467. <![CDATA[A compression output stream.]]>
  25468. </doc>
  25469. </class>
  25470. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  25471. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  25472. <interface name="Compressor" abstract="true"
  25473. static="false" final="false" visibility="public"
  25474. deprecated="not deprecated">
  25475. <method name="setInput"
  25476. abstract="true" native="false" synchronized="false"
  25477. static="false" final="false" visibility="public"
  25478. deprecated="not deprecated">
  25479. <param name="b" type="byte[]"/>
  25480. <param name="off" type="int"/>
  25481. <param name="len" type="int"/>
  25482. <doc>
  25483. <![CDATA[Sets input data for compression.
  25484. This should be called whenever #needsInput() returns
  25485. <code>true</code> indicating that more input data is required.
  25486. @param b Input data
  25487. @param off Start offset
  25488. @param len Length]]>
  25489. </doc>
  25490. </method>
  25491. <method name="needsInput" return="boolean"
  25492. abstract="true" native="false" synchronized="false"
  25493. static="false" final="false" visibility="public"
  25494. deprecated="not deprecated">
  25495. <doc>
  25496. <![CDATA[Returns true if the input data buffer is empty and
  25497. #setInput() should be called to provide more input.
  25498. @return <code>true</code> if the input data buffer is empty and
  25499. #setInput() should be called in order to provide more input.]]>
  25500. </doc>
  25501. </method>
  25502. <method name="setDictionary"
  25503. abstract="true" native="false" synchronized="false"
  25504. static="false" final="false" visibility="public"
  25505. deprecated="not deprecated">
  25506. <param name="b" type="byte[]"/>
  25507. <param name="off" type="int"/>
  25508. <param name="len" type="int"/>
  25509. <doc>
  25510. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  25511. is used when the history buffer can be predetermined.
  25512. @param b Dictionary data bytes
  25513. @param off Start offset
  25514. @param len Length]]>
  25515. </doc>
  25516. </method>
  25517. <method name="getBytesRead" return="long"
  25518. abstract="true" native="false" synchronized="false"
  25519. static="false" final="false" visibility="public"
  25520. deprecated="not deprecated">
  25521. <doc>
  25522. <![CDATA[Return number of uncompressed bytes input so far.]]>
  25523. </doc>
  25524. </method>
  25525. <method name="getBytesWritten" return="long"
  25526. abstract="true" native="false" synchronized="false"
  25527. static="false" final="false" visibility="public"
  25528. deprecated="not deprecated">
  25529. <doc>
  25530. <![CDATA[Return number of compressed bytes output so far.]]>
  25531. </doc>
  25532. </method>
  25533. <method name="finish"
  25534. abstract="true" native="false" synchronized="false"
  25535. static="false" final="false" visibility="public"
  25536. deprecated="not deprecated">
  25537. <doc>
  25538. <![CDATA[When called, indicates that compression should end
  25539. with the current contents of the input buffer.]]>
  25540. </doc>
  25541. </method>
  25542. <method name="finished" return="boolean"
  25543. abstract="true" native="false" synchronized="false"
  25544. static="false" final="false" visibility="public"
  25545. deprecated="not deprecated">
  25546. <doc>
  25547. <![CDATA[Returns true if the end of the compressed
  25548. data output stream has been reached.
  25549. @return <code>true</code> if the end of the compressed
  25550. data output stream has been reached.]]>
  25551. </doc>
  25552. </method>
  25553. <method name="compress" return="int"
  25554. abstract="true" native="false" synchronized="false"
  25555. static="false" final="false" visibility="public"
  25556. deprecated="not deprecated">
  25557. <param name="b" type="byte[]"/>
  25558. <param name="off" type="int"/>
  25559. <param name="len" type="int"/>
  25560. <exception name="IOException" type="java.io.IOException"/>
  25561. <doc>
  25562. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  25563. of bytes of compressed data. A return value of 0 indicates that
  25564. needsInput() should be called in order to determine if more input
  25565. data is required.
  25566. @param b Buffer for the compressed data
  25567. @param off Start offset of the data
  25568. @param len Size of the buffer
  25569. @return The actual number of bytes of compressed data.]]>
  25570. </doc>
  25571. </method>
  25572. <method name="reset"
  25573. abstract="true" native="false" synchronized="false"
  25574. static="false" final="false" visibility="public"
  25575. deprecated="not deprecated">
  25576. <doc>
  25577. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  25578. </doc>
  25579. </method>
  25580. <method name="end"
  25581. abstract="true" native="false" synchronized="false"
  25582. static="false" final="false" visibility="public"
  25583. deprecated="not deprecated">
  25584. <doc>
  25585. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  25586. </doc>
  25587. </method>
  25588. <method name="reinit"
  25589. abstract="true" native="false" synchronized="false"
  25590. static="false" final="false" visibility="public"
  25591. deprecated="not deprecated">
  25592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25593. <doc>
  25594. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  25595. the given Configuration
  25596. @param conf Configuration from which new setting are fetched]]>
  25597. </doc>
  25598. </method>
  25599. <doc>
  25600. <![CDATA[Specification of a stream-based 'compressor' which can be
  25601. plugged into a {@link CompressionOutputStream} to compress data.
  25602. This is modelled after {@link java.util.zip.Deflater}]]>
  25603. </doc>
  25604. </interface>
  25605. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  25606. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  25607. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  25608. abstract="false"
  25609. static="false" final="false" visibility="public"
  25610. deprecated="not deprecated">
  25611. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  25612. static="false" final="false" visibility="public"
  25613. deprecated="not deprecated">
  25614. </constructor>
  25615. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  25616. static="false" final="false" visibility="public"
  25617. deprecated="not deprecated">
  25618. </constructor>
  25619. <constructor name="CompressorStream" type="java.io.OutputStream"
  25620. static="false" final="false" visibility="protected"
  25621. deprecated="not deprecated">
  25622. <doc>
  25623. <![CDATA[Allow derived classes to directly set the underlying stream.
  25624. @param out Underlying output stream.]]>
  25625. </doc>
  25626. </constructor>
  25627. <method name="write"
  25628. abstract="false" native="false" synchronized="false"
  25629. static="false" final="false" visibility="public"
  25630. deprecated="not deprecated">
  25631. <param name="b" type="byte[]"/>
  25632. <param name="off" type="int"/>
  25633. <param name="len" type="int"/>
  25634. <exception name="IOException" type="java.io.IOException"/>
  25635. </method>
  25636. <method name="compress"
  25637. abstract="false" native="false" synchronized="false"
  25638. static="false" final="false" visibility="protected"
  25639. deprecated="not deprecated">
  25640. <exception name="IOException" type="java.io.IOException"/>
  25641. </method>
  25642. <method name="finish"
  25643. abstract="false" native="false" synchronized="false"
  25644. static="false" final="false" visibility="public"
  25645. deprecated="not deprecated">
  25646. <exception name="IOException" type="java.io.IOException"/>
  25647. </method>
  25648. <method name="resetState"
  25649. abstract="false" native="false" synchronized="false"
  25650. static="false" final="false" visibility="public"
  25651. deprecated="not deprecated">
  25652. <exception name="IOException" type="java.io.IOException"/>
  25653. </method>
  25654. <method name="close"
  25655. abstract="false" native="false" synchronized="false"
  25656. static="false" final="false" visibility="public"
  25657. deprecated="not deprecated">
  25658. <exception name="IOException" type="java.io.IOException"/>
  25659. </method>
  25660. <method name="write"
  25661. abstract="false" native="false" synchronized="false"
  25662. static="false" final="false" visibility="public"
  25663. deprecated="not deprecated">
  25664. <param name="b" type="int"/>
  25665. <exception name="IOException" type="java.io.IOException"/>
  25666. </method>
  25667. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  25668. transient="false" volatile="false"
  25669. static="false" final="false" visibility="protected"
  25670. deprecated="not deprecated">
  25671. </field>
  25672. <field name="buffer" type="byte[]"
  25673. transient="false" volatile="false"
  25674. static="false" final="false" visibility="protected"
  25675. deprecated="not deprecated">
  25676. </field>
  25677. <field name="closed" type="boolean"
  25678. transient="false" volatile="false"
  25679. static="false" final="false" visibility="protected"
  25680. deprecated="not deprecated">
  25681. </field>
  25682. </class>
  25683. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  25684. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  25685. <interface name="Decompressor" abstract="true"
  25686. static="false" final="false" visibility="public"
  25687. deprecated="not deprecated">
  25688. <method name="setInput"
  25689. abstract="true" native="false" synchronized="false"
  25690. static="false" final="false" visibility="public"
  25691. deprecated="not deprecated">
  25692. <param name="b" type="byte[]"/>
  25693. <param name="off" type="int"/>
  25694. <param name="len" type="int"/>
  25695. <doc>
  25696. <![CDATA[Sets input data for decompression.
  25697. This should be called if and only if {@link #needsInput()} returns
  25698. <code>true</code> indicating that more input data is required.
  25699. (Both native and non-native versions of various Decompressors require
  25700. that the data passed in via <code>b[]</code> remain unmodified until
  25701. the caller is explicitly notified--via {@link #needsInput()}--that the
  25702. buffer may be safely modified. With this requirement, an extra
  25703. buffer-copy can be avoided.)
  25704. @param b Input data
  25705. @param off Start offset
  25706. @param len Length]]>
  25707. </doc>
  25708. </method>
  25709. <method name="needsInput" return="boolean"
  25710. abstract="true" native="false" synchronized="false"
  25711. static="false" final="false" visibility="public"
  25712. deprecated="not deprecated">
  25713. <doc>
  25714. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  25715. {@link #setInput(byte[], int, int)} should be called to
  25716. provide more input.
  25717. @return <code>true</code> if the input data buffer is empty and
  25718. {@link #setInput(byte[], int, int)} should be called in
  25719. order to provide more input.]]>
  25720. </doc>
  25721. </method>
  25722. <method name="setDictionary"
  25723. abstract="true" native="false" synchronized="false"
  25724. static="false" final="false" visibility="public"
  25725. deprecated="not deprecated">
  25726. <param name="b" type="byte[]"/>
  25727. <param name="off" type="int"/>
  25728. <param name="len" type="int"/>
  25729. <doc>
  25730. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  25731. is used when the history buffer can be predetermined.
  25732. @param b Dictionary data bytes
  25733. @param off Start offset
  25734. @param len Length]]>
  25735. </doc>
  25736. </method>
  25737. <method name="needsDictionary" return="boolean"
  25738. abstract="true" native="false" synchronized="false"
  25739. static="false" final="false" visibility="public"
  25740. deprecated="not deprecated">
  25741. <doc>
  25742. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  25743. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  25744. </doc>
  25745. </method>
  25746. <method name="finished" return="boolean"
  25747. abstract="true" native="false" synchronized="false"
  25748. static="false" final="false" visibility="public"
  25749. deprecated="not deprecated">
  25750. <doc>
  25751. <![CDATA[Returns <code>true</code> if the end of the decompressed
  25752. data output stream has been reached. Indicates a concatenated data stream
  25753. when finished() returns <code>true</code> and {@link #getRemaining()}
  25754. returns a positive value. finished() will be reset with the
  25755. {@link #reset()} method.
  25756. @return <code>true</code> if the end of the decompressed
  25757. data output stream has been reached.]]>
  25758. </doc>
  25759. </method>
  25760. <method name="decompress" return="int"
  25761. abstract="true" native="false" synchronized="false"
  25762. static="false" final="false" visibility="public"
  25763. deprecated="not deprecated">
  25764. <param name="b" type="byte[]"/>
  25765. <param name="off" type="int"/>
  25766. <param name="len" type="int"/>
  25767. <exception name="IOException" type="java.io.IOException"/>
  25768. <doc>
  25769. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  25770. of bytes of uncompressed data. A return value of 0 indicates that
  25771. {@link #needsInput()} should be called in order to determine if more
  25772. input data is required.
  25773. @param b Buffer for the uncompressed data
  25774. @param off Start offset of the data
  25775. @param len Size of the buffer
  25776. @return The actual number of bytes of uncompressed data.
  25777. @throws IOException]]>
  25778. </doc>
  25779. </method>
  25780. <method name="getRemaining" return="int"
  25781. abstract="true" native="false" synchronized="false"
  25782. static="false" final="false" visibility="public"
  25783. deprecated="not deprecated">
  25784. <doc>
  25785. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  25786. Indicates a concatenated data stream if {@link #finished()} returns
  25787. <code>true</code> and getRemaining() returns a positive value. If
  25788. {@link #finished()} returns <code>true</code> and getRemaining() returns
  25789. a zero value, indicates that the end of data stream has been reached and
  25790. is not a concatenated data stream.
  25791. @return The number of bytes remaining in the compressed data buffer.]]>
  25792. </doc>
  25793. </method>
  25794. <method name="reset"
  25795. abstract="true" native="false" synchronized="false"
  25796. static="false" final="false" visibility="public"
  25797. deprecated="not deprecated">
  25798. <doc>
  25799. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  25800. input data can be processed. If {@link #finished()}} returns
  25801. <code>true</code> and {@link #getRemaining()} returns a positive value,
  25802. reset() is called before processing of the next data stream in the
  25803. concatenated data stream. {@link #finished()} will be reset and will
  25804. return <code>false</code> when reset() is called.]]>
  25805. </doc>
  25806. </method>
  25807. <method name="end"
  25808. abstract="true" native="false" synchronized="false"
  25809. static="false" final="false" visibility="public"
  25810. deprecated="not deprecated">
  25811. <doc>
  25812. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  25813. </doc>
  25814. </method>
  25815. <doc>
  25816. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  25817. plugged into a {@link CompressionInputStream} to compress data.
  25818. This is modelled after {@link java.util.zip.Inflater}]]>
  25819. </doc>
  25820. </interface>
  25821. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  25822. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  25823. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  25824. abstract="false"
  25825. static="false" final="false" visibility="public"
  25826. deprecated="not deprecated">
  25827. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  25828. static="false" final="false" visibility="public"
  25829. deprecated="not deprecated">
  25830. <exception name="IOException" type="java.io.IOException"/>
  25831. </constructor>
  25832. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  25833. static="false" final="false" visibility="public"
  25834. deprecated="not deprecated">
  25835. <exception name="IOException" type="java.io.IOException"/>
  25836. </constructor>
  25837. <constructor name="DecompressorStream" type="java.io.InputStream"
  25838. static="false" final="false" visibility="protected"
  25839. deprecated="not deprecated">
  25840. <exception name="IOException" type="java.io.IOException"/>
  25841. <doc>
  25842. <![CDATA[Allow derived classes to directly set the underlying stream.
  25843. @param in Underlying input stream.
  25844. @throws IOException]]>
  25845. </doc>
  25846. </constructor>
  25847. <method name="read" return="int"
  25848. abstract="false" native="false" synchronized="false"
  25849. static="false" final="false" visibility="public"
  25850. deprecated="not deprecated">
  25851. <exception name="IOException" type="java.io.IOException"/>
  25852. </method>
  25853. <method name="read" return="int"
  25854. abstract="false" native="false" synchronized="false"
  25855. static="false" final="false" visibility="public"
  25856. deprecated="not deprecated">
  25857. <param name="b" type="byte[]"/>
  25858. <param name="off" type="int"/>
  25859. <param name="len" type="int"/>
  25860. <exception name="IOException" type="java.io.IOException"/>
  25861. </method>
  25862. <method name="decompress" return="int"
  25863. abstract="false" native="false" synchronized="false"
  25864. static="false" final="false" visibility="protected"
  25865. deprecated="not deprecated">
  25866. <param name="b" type="byte[]"/>
  25867. <param name="off" type="int"/>
  25868. <param name="len" type="int"/>
  25869. <exception name="IOException" type="java.io.IOException"/>
  25870. </method>
  25871. <method name="getCompressedData" return="int"
  25872. abstract="false" native="false" synchronized="false"
  25873. static="false" final="false" visibility="protected"
  25874. deprecated="not deprecated">
  25875. <exception name="IOException" type="java.io.IOException"/>
  25876. </method>
  25877. <method name="checkStream"
  25878. abstract="false" native="false" synchronized="false"
  25879. static="false" final="false" visibility="protected"
  25880. deprecated="not deprecated">
  25881. <exception name="IOException" type="java.io.IOException"/>
  25882. </method>
  25883. <method name="resetState"
  25884. abstract="false" native="false" synchronized="false"
  25885. static="false" final="false" visibility="public"
  25886. deprecated="not deprecated">
  25887. <exception name="IOException" type="java.io.IOException"/>
  25888. </method>
  25889. <method name="skip" return="long"
  25890. abstract="false" native="false" synchronized="false"
  25891. static="false" final="false" visibility="public"
  25892. deprecated="not deprecated">
  25893. <param name="n" type="long"/>
  25894. <exception name="IOException" type="java.io.IOException"/>
  25895. </method>
  25896. <method name="available" return="int"
  25897. abstract="false" native="false" synchronized="false"
  25898. static="false" final="false" visibility="public"
  25899. deprecated="not deprecated">
  25900. <exception name="IOException" type="java.io.IOException"/>
  25901. </method>
  25902. <method name="close"
  25903. abstract="false" native="false" synchronized="false"
  25904. static="false" final="false" visibility="public"
  25905. deprecated="not deprecated">
  25906. <exception name="IOException" type="java.io.IOException"/>
  25907. </method>
  25908. <method name="markSupported" return="boolean"
  25909. abstract="false" native="false" synchronized="false"
  25910. static="false" final="false" visibility="public"
  25911. deprecated="not deprecated">
  25912. </method>
  25913. <method name="mark"
  25914. abstract="false" native="false" synchronized="true"
  25915. static="false" final="false" visibility="public"
  25916. deprecated="not deprecated">
  25917. <param name="readlimit" type="int"/>
  25918. </method>
  25919. <method name="reset"
  25920. abstract="false" native="false" synchronized="true"
  25921. static="false" final="false" visibility="public"
  25922. deprecated="not deprecated">
  25923. <exception name="IOException" type="java.io.IOException"/>
  25924. </method>
  25925. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  25926. transient="false" volatile="false"
  25927. static="false" final="false" visibility="protected"
  25928. deprecated="not deprecated">
  25929. </field>
  25930. <field name="buffer" type="byte[]"
  25931. transient="false" volatile="false"
  25932. static="false" final="false" visibility="protected"
  25933. deprecated="not deprecated">
  25934. </field>
  25935. <field name="eof" type="boolean"
  25936. transient="false" volatile="false"
  25937. static="false" final="false" visibility="protected"
  25938. deprecated="not deprecated">
  25939. </field>
  25940. <field name="closed" type="boolean"
  25941. transient="false" volatile="false"
  25942. static="false" final="false" visibility="protected"
  25943. deprecated="not deprecated">
  25944. </field>
  25945. </class>
  25946. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  25947. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  25948. <class name="DefaultCodec" extends="java.lang.Object"
  25949. abstract="false"
  25950. static="false" final="false" visibility="public"
  25951. deprecated="not deprecated">
  25952. <implements name="org.apache.hadoop.conf.Configurable"/>
  25953. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  25954. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  25955. <constructor name="DefaultCodec"
  25956. static="false" final="false" visibility="public"
  25957. deprecated="not deprecated">
  25958. </constructor>
  25959. <method name="setConf"
  25960. abstract="false" native="false" synchronized="false"
  25961. static="false" final="false" visibility="public"
  25962. deprecated="not deprecated">
  25963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25964. </method>
  25965. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25966. abstract="false" native="false" synchronized="false"
  25967. static="false" final="false" visibility="public"
  25968. deprecated="not deprecated">
  25969. </method>
  25970. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25971. abstract="false" native="false" synchronized="false"
  25972. static="false" final="false" visibility="public"
  25973. deprecated="not deprecated">
  25974. <param name="out" type="java.io.OutputStream"/>
  25975. <exception name="IOException" type="java.io.IOException"/>
  25976. </method>
  25977. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25978. abstract="false" native="false" synchronized="false"
  25979. static="false" final="false" visibility="public"
  25980. deprecated="not deprecated">
  25981. <param name="out" type="java.io.OutputStream"/>
  25982. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  25983. <exception name="IOException" type="java.io.IOException"/>
  25984. </method>
  25985. <method name="getCompressorType" return="java.lang.Class"
  25986. abstract="false" native="false" synchronized="false"
  25987. static="false" final="false" visibility="public"
  25988. deprecated="not deprecated">
  25989. </method>
  25990. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  25991. abstract="false" native="false" synchronized="false"
  25992. static="false" final="false" visibility="public"
  25993. deprecated="not deprecated">
  25994. </method>
  25995. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25996. abstract="false" native="false" synchronized="false"
  25997. static="false" final="false" visibility="public"
  25998. deprecated="not deprecated">
  25999. <param name="in" type="java.io.InputStream"/>
  26000. <exception name="IOException" type="java.io.IOException"/>
  26001. </method>
  26002. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26003. abstract="false" native="false" synchronized="false"
  26004. static="false" final="false" visibility="public"
  26005. deprecated="not deprecated">
  26006. <param name="in" type="java.io.InputStream"/>
  26007. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26008. <exception name="IOException" type="java.io.IOException"/>
  26009. </method>
  26010. <method name="getDecompressorType" return="java.lang.Class"
  26011. abstract="false" native="false" synchronized="false"
  26012. static="false" final="false" visibility="public"
  26013. deprecated="not deprecated">
  26014. </method>
  26015. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26016. abstract="false" native="false" synchronized="false"
  26017. static="false" final="false" visibility="public"
  26018. deprecated="not deprecated">
  26019. </method>
  26020. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  26021. abstract="false" native="false" synchronized="false"
  26022. static="false" final="false" visibility="public"
  26023. deprecated="not deprecated">
  26024. <doc>
  26025. <![CDATA[{@inheritDoc}]]>
  26026. </doc>
  26027. </method>
  26028. <method name="getDefaultExtension" return="java.lang.String"
  26029. abstract="false" native="false" synchronized="false"
  26030. static="false" final="false" visibility="public"
  26031. deprecated="not deprecated">
  26032. </method>
  26033. </class>
  26034. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  26035. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  26036. <interface name="DirectDecompressionCodec" abstract="true"
  26037. static="false" final="false" visibility="public"
  26038. deprecated="not deprecated">
  26039. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  26040. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  26041. abstract="true" native="false" synchronized="false"
  26042. static="false" final="false" visibility="public"
  26043. deprecated="not deprecated">
  26044. <doc>
  26045. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  26046. @return a new direct decompressor for use by this codec]]>
  26047. </doc>
  26048. </method>
  26049. <doc>
  26050. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  26051. </doc>
  26052. </interface>
  26053. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  26054. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  26055. <interface name="DirectDecompressor" abstract="true"
  26056. static="false" final="false" visibility="public"
  26057. deprecated="not deprecated">
  26058. <method name="decompress"
  26059. abstract="true" native="false" synchronized="false"
  26060. static="false" final="false" visibility="public"
  26061. deprecated="not deprecated">
  26062. <param name="src" type="java.nio.ByteBuffer"/>
  26063. <param name="dst" type="java.nio.ByteBuffer"/>
  26064. <exception name="IOException" type="java.io.IOException"/>
  26065. </method>
  26066. <doc>
  26067. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  26068. </doc>
  26069. </interface>
  26070. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  26071. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  26072. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  26073. abstract="false"
  26074. static="false" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. <constructor name="GzipCodec"
  26077. static="false" final="false" visibility="public"
  26078. deprecated="not deprecated">
  26079. </constructor>
  26080. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26081. abstract="false" native="false" synchronized="false"
  26082. static="false" final="false" visibility="public"
  26083. deprecated="not deprecated">
  26084. <param name="out" type="java.io.OutputStream"/>
  26085. <exception name="IOException" type="java.io.IOException"/>
  26086. </method>
  26087. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26088. abstract="false" native="false" synchronized="false"
  26089. static="false" final="false" visibility="public"
  26090. deprecated="not deprecated">
  26091. <param name="out" type="java.io.OutputStream"/>
  26092. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26093. <exception name="IOException" type="java.io.IOException"/>
  26094. </method>
  26095. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26096. abstract="false" native="false" synchronized="false"
  26097. static="false" final="false" visibility="public"
  26098. deprecated="not deprecated">
  26099. </method>
  26100. <method name="getCompressorType" return="java.lang.Class"
  26101. abstract="false" native="false" synchronized="false"
  26102. static="false" final="false" visibility="public"
  26103. deprecated="not deprecated">
  26104. </method>
  26105. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26106. abstract="false" native="false" synchronized="false"
  26107. static="false" final="false" visibility="public"
  26108. deprecated="not deprecated">
  26109. <param name="in" type="java.io.InputStream"/>
  26110. <exception name="IOException" type="java.io.IOException"/>
  26111. </method>
  26112. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26113. abstract="false" native="false" synchronized="false"
  26114. static="false" final="false" visibility="public"
  26115. deprecated="not deprecated">
  26116. <param name="in" type="java.io.InputStream"/>
  26117. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26118. <exception name="IOException" type="java.io.IOException"/>
  26119. </method>
  26120. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26121. abstract="false" native="false" synchronized="false"
  26122. static="false" final="false" visibility="public"
  26123. deprecated="not deprecated">
  26124. </method>
  26125. <method name="getDecompressorType" return="java.lang.Class"
  26126. abstract="false" native="false" synchronized="false"
  26127. static="false" final="false" visibility="public"
  26128. deprecated="not deprecated">
  26129. </method>
  26130. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  26131. abstract="false" native="false" synchronized="false"
  26132. static="false" final="false" visibility="public"
  26133. deprecated="not deprecated">
  26134. </method>
  26135. <method name="getDefaultExtension" return="java.lang.String"
  26136. abstract="false" native="false" synchronized="false"
  26137. static="false" final="false" visibility="public"
  26138. deprecated="not deprecated">
  26139. </method>
  26140. <doc>
  26141. <![CDATA[This class creates gzip compressors/decompressors.]]>
  26142. </doc>
  26143. </class>
  26144. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  26145. <!-- start class org.apache.hadoop.io.compress.PassthroughCodec -->
  26146. <class name="PassthroughCodec" extends="java.lang.Object"
  26147. abstract="false"
  26148. static="false" final="false" visibility="public"
  26149. deprecated="not deprecated">
  26150. <implements name="org.apache.hadoop.conf.Configurable"/>
  26151. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  26152. <constructor name="PassthroughCodec"
  26153. static="false" final="false" visibility="public"
  26154. deprecated="not deprecated">
  26155. </constructor>
  26156. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26157. abstract="false" native="false" synchronized="false"
  26158. static="false" final="false" visibility="public"
  26159. deprecated="not deprecated">
  26160. </method>
  26161. <method name="setConf"
  26162. abstract="false" native="false" synchronized="false"
  26163. static="false" final="false" visibility="public"
  26164. deprecated="not deprecated">
  26165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26166. </method>
  26167. <method name="getDefaultExtension" return="java.lang.String"
  26168. abstract="false" native="false" synchronized="false"
  26169. static="false" final="false" visibility="public"
  26170. deprecated="not deprecated">
  26171. </method>
  26172. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26173. abstract="false" native="false" synchronized="false"
  26174. static="false" final="false" visibility="public"
  26175. deprecated="not deprecated">
  26176. <param name="out" type="java.io.OutputStream"/>
  26177. <exception name="IOException" type="java.io.IOException"/>
  26178. </method>
  26179. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26180. abstract="false" native="false" synchronized="false"
  26181. static="false" final="false" visibility="public"
  26182. deprecated="not deprecated">
  26183. <param name="out" type="java.io.OutputStream"/>
  26184. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26185. <exception name="IOException" type="java.io.IOException"/>
  26186. </method>
  26187. <method name="getCompressorType" return="java.lang.Class"
  26188. abstract="false" native="false" synchronized="false"
  26189. static="false" final="false" visibility="public"
  26190. deprecated="not deprecated">
  26191. </method>
  26192. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26193. abstract="false" native="false" synchronized="false"
  26194. static="false" final="false" visibility="public"
  26195. deprecated="not deprecated">
  26196. </method>
  26197. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26198. abstract="false" native="false" synchronized="false"
  26199. static="false" final="false" visibility="public"
  26200. deprecated="not deprecated">
  26201. <param name="in" type="java.io.InputStream"/>
  26202. <exception name="IOException" type="java.io.IOException"/>
  26203. </method>
  26204. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26205. abstract="false" native="false" synchronized="false"
  26206. static="false" final="false" visibility="public"
  26207. deprecated="not deprecated">
  26208. <param name="in" type="java.io.InputStream"/>
  26209. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26210. <exception name="IOException" type="java.io.IOException"/>
  26211. </method>
  26212. <method name="getDecompressorType" return="java.lang.Class"
  26213. abstract="false" native="false" synchronized="false"
  26214. static="false" final="false" visibility="public"
  26215. deprecated="not deprecated">
  26216. </method>
  26217. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26218. abstract="false" native="false" synchronized="false"
  26219. static="false" final="false" visibility="public"
  26220. deprecated="not deprecated">
  26221. </method>
  26222. <field name="CLASSNAME" type="java.lang.String"
  26223. transient="false" volatile="false"
  26224. static="true" final="true" visibility="public"
  26225. deprecated="not deprecated">
  26226. <doc>
  26227. <![CDATA[Classname of the codec: {@value}.]]>
  26228. </doc>
  26229. </field>
  26230. <field name="OPT_EXTENSION" type="java.lang.String"
  26231. transient="false" volatile="false"
  26232. static="true" final="true" visibility="public"
  26233. deprecated="not deprecated">
  26234. <doc>
  26235. <![CDATA[Option to control the extension of the code: {@value}.]]>
  26236. </doc>
  26237. </field>
  26238. <field name="DEFAULT_EXTENSION" type="java.lang.String"
  26239. transient="false" volatile="false"
  26240. static="true" final="true" visibility="public"
  26241. deprecated="not deprecated">
  26242. <doc>
  26243. <![CDATA[This default extension is here so that if no extension has been defined,
  26244. some value is still returned: {@value}..]]>
  26245. </doc>
  26246. </field>
  26247. <doc>
  26248. <![CDATA[This is a special codec which does not transform the output.
  26249. It can be declared as a codec in the option "io.compression.codecs",
  26250. and then it will declare that it supports the file extension
  26251. set in {@link #OPT_EXTENSION}.
  26252. This allows decompression to be disabled on a job, even when there is
  26253. a registered/discoverable decompression codec for a file extension
  26254. -without having to change the standard codec binding mechanism.
  26255. For example, to disable decompression for a gzipped files, set the
  26256. options
  26257. <pre>
  26258. io.compression.codecs = org.apache.hadoop.io.compress.PassthroughCodec
  26259. io.compress.passthrough.extension = .gz
  26260. </pre>
  26261. <i>Note:</i> this is not a Splittable codec: it doesn't know the
  26262. capabilities of the passed in stream. It should be possible to
  26263. extend this in a subclass: the inner classes are marked as protected
  26264. to enable this. <i>Do not retrofit splitting to this class.</i>.]]>
  26265. </doc>
  26266. </class>
  26267. <!-- end class org.apache.hadoop.io.compress.PassthroughCodec -->
  26268. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  26269. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  26270. abstract="true"
  26271. static="false" final="false" visibility="public"
  26272. deprecated="not deprecated">
  26273. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  26274. static="false" final="false" visibility="public"
  26275. deprecated="not deprecated">
  26276. <exception name="IOException" type="java.io.IOException"/>
  26277. </constructor>
  26278. <method name="setStart"
  26279. abstract="false" native="false" synchronized="false"
  26280. static="false" final="false" visibility="protected"
  26281. deprecated="not deprecated">
  26282. <param name="start" type="long"/>
  26283. </method>
  26284. <method name="setEnd"
  26285. abstract="false" native="false" synchronized="false"
  26286. static="false" final="false" visibility="protected"
  26287. deprecated="not deprecated">
  26288. <param name="end" type="long"/>
  26289. </method>
  26290. <method name="getAdjustedStart" return="long"
  26291. abstract="false" native="false" synchronized="false"
  26292. static="false" final="false" visibility="public"
  26293. deprecated="not deprecated">
  26294. <doc>
  26295. <![CDATA[After calling createInputStream, the values of start or end
  26296. might change. So this method can be used to get the new value of start.
  26297. @return The changed value of start]]>
  26298. </doc>
  26299. </method>
  26300. <method name="getAdjustedEnd" return="long"
  26301. abstract="false" native="false" synchronized="false"
  26302. static="false" final="false" visibility="public"
  26303. deprecated="not deprecated">
  26304. <doc>
  26305. <![CDATA[After calling createInputStream, the values of start or end
  26306. might change. So this method can be used to get the new value of end.
  26307. @return The changed value of end]]>
  26308. </doc>
  26309. </method>
  26310. <doc>
  26311. <![CDATA[An InputStream covering a range of compressed data. The start and end
  26312. offsets requested by a client may be modified by the codec to fit block
  26313. boundaries or other algorithm-dependent requirements.]]>
  26314. </doc>
  26315. </class>
  26316. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  26317. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  26318. <interface name="SplittableCompressionCodec" abstract="true"
  26319. static="false" final="false" visibility="public"
  26320. deprecated="not deprecated">
  26321. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  26322. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  26323. abstract="true" native="false" synchronized="false"
  26324. static="false" final="false" visibility="public"
  26325. deprecated="not deprecated">
  26326. <param name="seekableIn" type="java.io.InputStream"/>
  26327. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26328. <param name="start" type="long"/>
  26329. <param name="end" type="long"/>
  26330. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  26331. <exception name="IOException" type="java.io.IOException"/>
  26332. <doc>
  26333. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  26334. the codecs wants the ability to work with the underlying stream positions.
  26335. @param seekableIn The seekable input stream (seeks in compressed data)
  26336. @param start The start offset into the compressed stream. May be changed
  26337. by the underlying codec.
  26338. @param end The end offset into the compressed stream. May be changed by
  26339. the underlying codec.
  26340. @param readMode Controls whether stream position is reported continuously
  26341. from the compressed stream only only at block boundaries.
  26342. @return a stream to read uncompressed bytes from]]>
  26343. </doc>
  26344. </method>
  26345. <doc>
  26346. <![CDATA[This interface is meant to be implemented by those compression codecs
  26347. which are capable to compress / de-compress a stream starting at any
  26348. arbitrary position.
  26349. Especially the process of de-compressing a stream starting at some arbitrary
  26350. position is challenging. Most of the codecs are only able to successfully
  26351. de-compress a stream, if they start from the very beginning till the end.
  26352. One of the reasons is the stored state at the beginning of the stream which
  26353. is crucial for de-compression.
  26354. Yet there are few codecs which do not save the whole state at the beginning
  26355. of the stream and hence can be used to de-compress stream starting at any
  26356. arbitrary points. This interface is meant to be used by such codecs. Such
  26357. codecs are highly valuable, especially in the context of Hadoop, because
  26358. an input compressed file can be split and hence can be worked on by multiple
  26359. machines in parallel.]]>
  26360. </doc>
  26361. </interface>
  26362. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  26363. </package>
  26364. <package name="org.apache.hadoop.io.erasurecode">
  26365. <!-- start class org.apache.hadoop.io.erasurecode.ECSchema -->
  26366. <class name="ECSchema" extends="java.lang.Object"
  26367. abstract="false"
  26368. static="false" final="true" visibility="public"
  26369. deprecated="not deprecated">
  26370. <implements name="java.io.Serializable"/>
  26371. <constructor name="ECSchema" type="java.util.Map"
  26372. static="false" final="false" visibility="public"
  26373. deprecated="not deprecated">
  26374. <doc>
  26375. <![CDATA[Constructor with schema name and provided all options. Note the options may
  26376. contain additional information for the erasure codec to interpret further.
  26377. @param allOptions all schema options]]>
  26378. </doc>
  26379. </constructor>
  26380. <constructor name="ECSchema" type="java.lang.String, int, int"
  26381. static="false" final="false" visibility="public"
  26382. deprecated="not deprecated">
  26383. <doc>
  26384. <![CDATA[Constructor with key parameters provided.
  26385. @param codecName codec name
  26386. @param numDataUnits number of data units used in the schema
  26387. @param numParityUnits number os parity units used in the schema]]>
  26388. </doc>
  26389. </constructor>
  26390. <constructor name="ECSchema" type="java.lang.String, int, int, java.util.Map"
  26391. static="false" final="false" visibility="public"
  26392. deprecated="not deprecated">
  26393. <doc>
  26394. <![CDATA[Constructor with key parameters provided. Note the extraOptions may contain
  26395. additional information for the erasure codec to interpret further.
  26396. @param codecName codec name
  26397. @param numDataUnits number of data units used in the schema
  26398. @param numParityUnits number os parity units used in the schema
  26399. @param extraOptions extra options to configure the codec]]>
  26400. </doc>
  26401. </constructor>
  26402. <method name="getCodecName" return="java.lang.String"
  26403. abstract="false" native="false" synchronized="false"
  26404. static="false" final="false" visibility="public"
  26405. deprecated="not deprecated">
  26406. <doc>
  26407. <![CDATA[Get the codec name
  26408. @return codec name]]>
  26409. </doc>
  26410. </method>
  26411. <method name="getExtraOptions" return="java.util.Map"
  26412. abstract="false" native="false" synchronized="false"
  26413. static="false" final="false" visibility="public"
  26414. deprecated="not deprecated">
  26415. <doc>
  26416. <![CDATA[Get extra options specific to a erasure code.
  26417. @return extra options]]>
  26418. </doc>
  26419. </method>
  26420. <method name="getNumDataUnits" return="int"
  26421. abstract="false" native="false" synchronized="false"
  26422. static="false" final="false" visibility="public"
  26423. deprecated="not deprecated">
  26424. <doc>
  26425. <![CDATA[Get required data units count in a coding group
  26426. @return count of data units]]>
  26427. </doc>
  26428. </method>
  26429. <method name="getNumParityUnits" return="int"
  26430. abstract="false" native="false" synchronized="false"
  26431. static="false" final="false" visibility="public"
  26432. deprecated="not deprecated">
  26433. <doc>
  26434. <![CDATA[Get required parity units count in a coding group
  26435. @return count of parity units]]>
  26436. </doc>
  26437. </method>
  26438. <method name="toString" return="java.lang.String"
  26439. abstract="false" native="false" synchronized="false"
  26440. static="false" final="false" visibility="public"
  26441. deprecated="not deprecated">
  26442. <doc>
  26443. <![CDATA[Make a meaningful string representation for log output.
  26444. @return string representation]]>
  26445. </doc>
  26446. </method>
  26447. <method name="equals" return="boolean"
  26448. abstract="false" native="false" synchronized="false"
  26449. static="false" final="false" visibility="public"
  26450. deprecated="not deprecated">
  26451. <param name="o" type="java.lang.Object"/>
  26452. </method>
  26453. <method name="hashCode" return="int"
  26454. abstract="false" native="false" synchronized="false"
  26455. static="false" final="false" visibility="public"
  26456. deprecated="not deprecated">
  26457. </method>
  26458. <field name="NUM_DATA_UNITS_KEY" type="java.lang.String"
  26459. transient="false" volatile="false"
  26460. static="true" final="true" visibility="public"
  26461. deprecated="not deprecated">
  26462. </field>
  26463. <field name="NUM_PARITY_UNITS_KEY" type="java.lang.String"
  26464. transient="false" volatile="false"
  26465. static="true" final="true" visibility="public"
  26466. deprecated="not deprecated">
  26467. </field>
  26468. <field name="CODEC_NAME_KEY" type="java.lang.String"
  26469. transient="false" volatile="false"
  26470. static="true" final="true" visibility="public"
  26471. deprecated="not deprecated">
  26472. </field>
  26473. <doc>
  26474. <![CDATA[Erasure coding schema to housekeeper relevant information.]]>
  26475. </doc>
  26476. </class>
  26477. <!-- end class org.apache.hadoop.io.erasurecode.ECSchema -->
  26478. </package>
  26479. <package name="org.apache.hadoop.io.erasurecode.coder.util">
  26480. </package>
  26481. <package name="org.apache.hadoop.io.erasurecode.grouper">
  26482. </package>
  26483. <package name="org.apache.hadoop.io.file.tfile">
  26484. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  26485. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  26486. abstract="false"
  26487. static="false" final="false" visibility="public"
  26488. deprecated="not deprecated">
  26489. <doc>
  26490. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  26491. </doc>
  26492. </class>
  26493. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  26494. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  26495. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  26496. abstract="false"
  26497. static="false" final="false" visibility="public"
  26498. deprecated="not deprecated">
  26499. <doc>
  26500. <![CDATA[Exception - No such Meta Block with the given name.]]>
  26501. </doc>
  26502. </class>
  26503. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  26504. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  26505. <interface name="RawComparable" abstract="true"
  26506. static="false" final="false" visibility="public"
  26507. deprecated="not deprecated">
  26508. <method name="buffer" return="byte[]"
  26509. abstract="true" native="false" synchronized="false"
  26510. static="false" final="false" visibility="public"
  26511. deprecated="not deprecated">
  26512. <doc>
  26513. <![CDATA[Get the underlying byte array.
  26514. @return The underlying byte array.]]>
  26515. </doc>
  26516. </method>
  26517. <method name="offset" return="int"
  26518. abstract="true" native="false" synchronized="false"
  26519. static="false" final="false" visibility="public"
  26520. deprecated="not deprecated">
  26521. <doc>
  26522. <![CDATA[Get the offset of the first byte in the byte array.
  26523. @return The offset of the first byte in the byte array.]]>
  26524. </doc>
  26525. </method>
  26526. <method name="size" return="int"
  26527. abstract="true" native="false" synchronized="false"
  26528. static="false" final="false" visibility="public"
  26529. deprecated="not deprecated">
  26530. <doc>
  26531. <![CDATA[Get the size of the byte range in the byte array.
  26532. @return The size of the byte range in the byte array.]]>
  26533. </doc>
  26534. </method>
  26535. <doc>
  26536. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  26537. This is useful in places where we need a single object reference to specify a
  26538. range of bytes in a byte array, such as {@link Comparable} or
  26539. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  26540. The actual comparison among RawComparable's requires an external
  26541. RawComparator and it is applications' responsibility to ensure two
  26542. RawComparable are supposed to be semantically comparable with the same
  26543. RawComparator.]]>
  26544. </doc>
  26545. </interface>
  26546. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  26547. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  26548. <class name="TFile" extends="java.lang.Object"
  26549. abstract="false"
  26550. static="false" final="false" visibility="public"
  26551. deprecated="not deprecated">
  26552. <method name="makeComparator" return="java.util.Comparator"
  26553. abstract="false" native="false" synchronized="false"
  26554. static="true" final="false" visibility="public"
  26555. deprecated="not deprecated">
  26556. <param name="name" type="java.lang.String"/>
  26557. <doc>
  26558. <![CDATA[Make a raw comparator from a string name.
  26559. @param name
  26560. Comparator name
  26561. @return A RawComparable comparator.]]>
  26562. </doc>
  26563. </method>
  26564. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  26565. abstract="false" native="false" synchronized="false"
  26566. static="true" final="false" visibility="public"
  26567. deprecated="not deprecated">
  26568. <doc>
  26569. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  26570. TFile.Writer.
  26571. @return Array of strings, each represents a supported compression
  26572. algorithm. Currently, the following compression algorithms are
  26573. supported.
  26574. <ul>
  26575. <li>"none" - No compression.
  26576. <li>"lzo" - LZO compression.
  26577. <li>"gz" - GZIP compression.
  26578. </ul>]]>
  26579. </doc>
  26580. </method>
  26581. <method name="main"
  26582. abstract="false" native="false" synchronized="false"
  26583. static="true" final="false" visibility="public"
  26584. deprecated="not deprecated">
  26585. <param name="args" type="java.lang.String[]"/>
  26586. <doc>
  26587. <![CDATA[Dumping the TFile information.
  26588. @param args
  26589. A list of TFile paths.]]>
  26590. </doc>
  26591. </method>
  26592. <field name="COMPRESSION_GZ" type="java.lang.String"
  26593. transient="false" volatile="false"
  26594. static="true" final="true" visibility="public"
  26595. deprecated="not deprecated">
  26596. <doc>
  26597. <![CDATA[compression: gzip]]>
  26598. </doc>
  26599. </field>
  26600. <field name="COMPRESSION_LZO" type="java.lang.String"
  26601. transient="false" volatile="false"
  26602. static="true" final="true" visibility="public"
  26603. deprecated="not deprecated">
  26604. <doc>
  26605. <![CDATA[compression: lzo]]>
  26606. </doc>
  26607. </field>
  26608. <field name="COMPRESSION_NONE" type="java.lang.String"
  26609. transient="false" volatile="false"
  26610. static="true" final="true" visibility="public"
  26611. deprecated="not deprecated">
  26612. <doc>
  26613. <![CDATA[compression: none]]>
  26614. </doc>
  26615. </field>
  26616. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  26617. transient="false" volatile="false"
  26618. static="true" final="true" visibility="public"
  26619. deprecated="not deprecated">
  26620. <doc>
  26621. <![CDATA[comparator: memcmp]]>
  26622. </doc>
  26623. </field>
  26624. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  26625. transient="false" volatile="false"
  26626. static="true" final="true" visibility="public"
  26627. deprecated="not deprecated">
  26628. <doc>
  26629. <![CDATA[comparator prefix: java class]]>
  26630. </doc>
  26631. </field>
  26632. <doc>
  26633. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  26634. bytes. Keys are restricted to 64KB, value length is not restricted
  26635. (practically limited to the available disk storage). TFile further provides
  26636. the following features:
  26637. <ul>
  26638. <li>Block Compression.
  26639. <li>Named meta data blocks.
  26640. <li>Sorted or unsorted keys.
  26641. <li>Seek by key or by file offset.
  26642. </ul>
  26643. The memory footprint of a TFile includes the following:
  26644. <ul>
  26645. <li>Some constant overhead of reading or writing a compressed block.
  26646. <ul>
  26647. <li>Each compressed block requires one compression/decompression codec for
  26648. I/O.
  26649. <li>Temporary space to buffer the key.
  26650. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  26651. chunk encoded, so that we buffer at most one chunk of user data. By default,
  26652. the chunk buffer is 1MB. Reading chunked value does not require additional
  26653. memory.
  26654. </ul>
  26655. <li>TFile index, which is proportional to the total number of Data Blocks.
  26656. The total amount of memory needed to hold the index can be estimated as
  26657. (56+AvgKeySize)*NumBlocks.
  26658. <li>MetaBlock index, which is proportional to the total number of Meta
  26659. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  26660. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  26661. </ul>
  26662. <p>
  26663. The behavior of TFile can be customized by the following variables through
  26664. Configuration:
  26665. <ul>
  26666. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  26667. to 1MB. Values of the length less than the chunk size is guaranteed to have
  26668. known value length in read time (See
  26669. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  26670. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  26671. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  26672. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  26673. FSDataInputStream. Integer (in bytes). Default to 256KB.
  26674. </ul>
  26675. <p>
  26676. Suggestions on performance optimization.
  26677. <ul>
  26678. <li>Minimum block size. We recommend a setting of minimum block size between
  26679. 256KB to 1MB for general usage. Larger block size is preferred if files are
  26680. primarily for sequential access. However, it would lead to inefficient random
  26681. access (because there are more data to decompress). Smaller blocks are good
  26682. for random access, but require more memory to hold the block index, and may
  26683. be slower to create (because we must flush the compressor stream at the
  26684. conclusion of each data block, which leads to an FS I/O flush). Further, due
  26685. to the internal caching in Compression codec, the smallest possible block
  26686. size would be around 20KB-30KB.
  26687. <li>The current implementation does not offer true multi-threading for
  26688. reading. The implementation uses FSDataInputStream seek()+read(), which is
  26689. shown to be much faster than positioned-read call in single thread mode.
  26690. However, it also means that if multiple threads attempt to access the same
  26691. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  26692. sequentially even if they access different DFS blocks.
  26693. <li>Compression codec. Use "none" if the data is not very compressable (by
  26694. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  26695. as the starting point for experimenting. "gz" overs slightly better
  26696. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  26697. decompress, comparing to "lzo".
  26698. <li>File system buffering, if the underlying FSDataInputStream and
  26699. FSDataOutputStream is already adequately buffered; or if applications
  26700. reads/writes keys and values in large buffers, we can reduce the sizes of
  26701. input/output buffering in TFile layer by setting the configuration parameters
  26702. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  26703. </ul>
  26704. Some design rationale behind TFile can be found at <a
  26705. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  26706. </doc>
  26707. </class>
  26708. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  26709. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  26710. <class name="Utils" extends="java.lang.Object"
  26711. abstract="false"
  26712. static="false" final="true" visibility="public"
  26713. deprecated="not deprecated">
  26714. <method name="writeVInt"
  26715. abstract="false" native="false" synchronized="false"
  26716. static="true" final="false" visibility="public"
  26717. deprecated="not deprecated">
  26718. <param name="out" type="java.io.DataOutput"/>
  26719. <param name="n" type="int"/>
  26720. <exception name="IOException" type="java.io.IOException"/>
  26721. <doc>
  26722. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  26723. <code>Utils#writeVLong(out, n)</code>.
  26724. @param out
  26725. output stream
  26726. @param n
  26727. The integer to be encoded
  26728. @throws IOException
  26729. @see Utils#writeVLong(DataOutput, long)]]>
  26730. </doc>
  26731. </method>
  26732. <method name="writeVLong"
  26733. abstract="false" native="false" synchronized="false"
  26734. static="true" final="false" visibility="public"
  26735. deprecated="not deprecated">
  26736. <param name="out" type="java.io.DataOutput"/>
  26737. <param name="n" type="long"/>
  26738. <exception name="IOException" type="java.io.IOException"/>
  26739. <doc>
  26740. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  26741. <ul>
  26742. <li>if n in [-32, 127): encode in one byte with the actual value.
  26743. Otherwise,
  26744. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  26745. byte[1]=n&amp;0xff. Otherwise,
  26746. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  26747. 88; byte[1]=(n&gt;&gt;8)&amp;0xff; byte[2]=n&amp;0xff. Otherwise,
  26748. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  26749. byte[1] = (n&gt;&gt;16)&amp;0xff; byte[2] = (n&gt;&gt;8)&amp;0xff;
  26750. byte[3]=n&amp;0xff.
  26751. Otherwise:
  26752. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  26753. (n&gt;&gt;24)&amp;0xff; byte[2]=(n&gt;&gt;16)&amp;0xff;
  26754. byte[3]=(n&gt;&gt;8)&amp;0xff; byte[4]=n&amp;0xff;
  26755. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  26756. (n&gt;&gt;32)&amp;0xff; byte[2]=(n&gt;&gt;24)&amp;0xff;
  26757. byte[3]=(n&gt;&gt;16)&amp;0xff; byte[4]=(n&gt;&gt;8)&amp;0xff;
  26758. byte[5]=n&amp;0xff
  26759. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  26760. (n&gt;&gt;40)&amp;0xff; byte[2]=(n&gt;&gt;32)&amp;0xff;
  26761. byte[3]=(n&gt;&gt;24)&amp;0xff; byte[4]=(n&gt;&gt;16)&amp;0xff;
  26762. byte[5]=(n&gt;&gt;8)&amp;0xff; byte[6]=n&amp;0xff;
  26763. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  26764. (n&gt;&gt;48)&amp;0xff; byte[2] = (n&gt;&gt;40)&amp;0xff;
  26765. byte[3]=(n&gt;&gt;32)&amp;0xff; byte[4]=(n&gt;&gt;24)&amp;0xff; byte[5]=
  26766. (n&gt;&gt;16)&amp;0xff; byte[6]=(n&gt;&gt;8)&amp;0xff; byte[7]=n&amp;0xff;
  26767. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  26768. (n&gt;&gt;54)&amp;0xff; byte[2] = (n&gt;&gt;48)&amp;0xff;
  26769. byte[3] = (n&gt;&gt;40)&amp;0xff; byte[4]=(n&gt;&gt;32)&amp;0xff;
  26770. byte[5]=(n&gt;&gt;24)&amp;0xff; byte[6]=(n&gt;&gt;16)&amp;0xff; byte[7]=
  26771. (n&gt;&gt;8)&amp;0xff; byte[8]=n&amp;0xff;
  26772. </ul>
  26773. @param out
  26774. output stream
  26775. @param n
  26776. the integer number
  26777. @throws IOException]]>
  26778. </doc>
  26779. </method>
  26780. <method name="readVInt" return="int"
  26781. abstract="false" native="false" synchronized="false"
  26782. static="true" final="false" visibility="public"
  26783. deprecated="not deprecated">
  26784. <param name="in" type="java.io.DataInput"/>
  26785. <exception name="IOException" type="java.io.IOException"/>
  26786. <doc>
  26787. <![CDATA[Decoding the variable-length integer. Synonymous to
  26788. <code>(int)Utils#readVLong(in)</code>.
  26789. @param in
  26790. input stream
  26791. @return the decoded integer
  26792. @throws IOException
  26793. @see Utils#readVLong(DataInput)]]>
  26794. </doc>
  26795. </method>
  26796. <method name="readVLong" return="long"
  26797. abstract="false" native="false" synchronized="false"
  26798. static="true" final="false" visibility="public"
  26799. deprecated="not deprecated">
  26800. <param name="in" type="java.io.DataInput"/>
  26801. <exception name="IOException" type="java.io.IOException"/>
  26802. <doc>
  26803. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  26804. is FB, and the following bytes are NB[*].
  26805. <ul>
  26806. <li>if (FB &gt;= -32), return (long)FB;
  26807. <li>if (FB in [-72, -33]), return (FB+52)&lt;&lt;8 + NB[0]&amp;0xff;
  26808. <li>if (FB in [-104, -73]), return (FB+88)&lt;&lt;16 +
  26809. (NB[0]&amp;0xff)&lt;&lt;8 + NB[1]&amp;0xff;
  26810. <li>if (FB in [-120, -105]), return (FB+112)&lt;&lt;24 + (NB[0]&amp;0xff)
  26811. &lt;&lt;16 + (NB[1]&amp;0xff)&lt;&lt;8 + NB[2]&amp;0xff;
  26812. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  26813. big-endian integer.
  26814. </ul>
  26815. @param in
  26816. input stream
  26817. @return the decoded long integer.
  26818. @throws IOException]]>
  26819. </doc>
  26820. </method>
  26821. <method name="writeString"
  26822. abstract="false" native="false" synchronized="false"
  26823. static="true" final="false" visibility="public"
  26824. deprecated="not deprecated">
  26825. <param name="out" type="java.io.DataOutput"/>
  26826. <param name="s" type="java.lang.String"/>
  26827. <exception name="IOException" type="java.io.IOException"/>
  26828. <doc>
  26829. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  26830. @param out
  26831. @param s
  26832. @throws IOException]]>
  26833. </doc>
  26834. </method>
  26835. <method name="readString" return="java.lang.String"
  26836. abstract="false" native="false" synchronized="false"
  26837. static="true" final="false" visibility="public"
  26838. deprecated="not deprecated">
  26839. <param name="in" type="java.io.DataInput"/>
  26840. <exception name="IOException" type="java.io.IOException"/>
  26841. <doc>
  26842. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  26843. @param in
  26844. The input stream.
  26845. @return The string
  26846. @throws IOException]]>
  26847. </doc>
  26848. </method>
  26849. <method name="lowerBound" return="int"
  26850. abstract="false" native="false" synchronized="false"
  26851. static="true" final="false" visibility="public"
  26852. deprecated="not deprecated">
  26853. <param name="list" type="java.util.List"/>
  26854. <param name="key" type="T"/>
  26855. <param name="cmp" type="java.util.Comparator"/>
  26856. <doc>
  26857. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  26858. that compares greater than or equal to key.
  26859. @param <T>
  26860. Type of the input key.
  26861. @param list
  26862. The list
  26863. @param key
  26864. The input key.
  26865. @param cmp
  26866. Comparator for the key.
  26867. @return The index to the desired element if it exists; or list.size()
  26868. otherwise.]]>
  26869. </doc>
  26870. </method>
  26871. <method name="upperBound" return="int"
  26872. abstract="false" native="false" synchronized="false"
  26873. static="true" final="false" visibility="public"
  26874. deprecated="not deprecated">
  26875. <param name="list" type="java.util.List"/>
  26876. <param name="key" type="T"/>
  26877. <param name="cmp" type="java.util.Comparator"/>
  26878. <doc>
  26879. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  26880. that compares greater than the input key.
  26881. @param <T>
  26882. Type of the input key.
  26883. @param list
  26884. The list
  26885. @param key
  26886. The input key.
  26887. @param cmp
  26888. Comparator for the key.
  26889. @return The index to the desired element if it exists; or list.size()
  26890. otherwise.]]>
  26891. </doc>
  26892. </method>
  26893. <method name="lowerBound" return="int"
  26894. abstract="false" native="false" synchronized="false"
  26895. static="true" final="false" visibility="public"
  26896. deprecated="not deprecated">
  26897. <param name="list" type="java.util.List"/>
  26898. <param name="key" type="T"/>
  26899. <doc>
  26900. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  26901. that compares greater than or equal to key.
  26902. @param <T>
  26903. Type of the input key.
  26904. @param list
  26905. The list
  26906. @param key
  26907. The input key.
  26908. @return The index to the desired element if it exists; or list.size()
  26909. otherwise.]]>
  26910. </doc>
  26911. </method>
  26912. <method name="upperBound" return="int"
  26913. abstract="false" native="false" synchronized="false"
  26914. static="true" final="false" visibility="public"
  26915. deprecated="not deprecated">
  26916. <param name="list" type="java.util.List"/>
  26917. <param name="key" type="T"/>
  26918. <doc>
  26919. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  26920. that compares greater than the input key.
  26921. @param <T>
  26922. Type of the input key.
  26923. @param list
  26924. The list
  26925. @param key
  26926. The input key.
  26927. @return The index to the desired element if it exists; or list.size()
  26928. otherwise.]]>
  26929. </doc>
  26930. </method>
  26931. <doc>
  26932. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  26933. </doc>
  26934. </class>
  26935. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  26936. </package>
  26937. <package name="org.apache.hadoop.io.serializer">
  26938. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  26939. <class name="JavaSerialization" extends="java.lang.Object"
  26940. abstract="false"
  26941. static="false" final="false" visibility="public"
  26942. deprecated="not deprecated">
  26943. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  26944. <constructor name="JavaSerialization"
  26945. static="false" final="false" visibility="public"
  26946. deprecated="not deprecated">
  26947. </constructor>
  26948. <doc>
  26949. <![CDATA[<p>
  26950. An experimental {@link Serialization} for Java {@link Serializable} classes.
  26951. </p>
  26952. @see JavaSerializationComparator]]>
  26953. </doc>
  26954. </class>
  26955. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  26956. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  26957. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  26958. abstract="false"
  26959. static="false" final="false" visibility="public"
  26960. deprecated="not deprecated">
  26961. <constructor name="JavaSerializationComparator"
  26962. static="false" final="false" visibility="public"
  26963. deprecated="not deprecated">
  26964. <exception name="IOException" type="java.io.IOException"/>
  26965. </constructor>
  26966. <doc>
  26967. <![CDATA[<p>
  26968. A {@link RawComparator} that uses a {@link JavaSerialization}
  26969. {@link Deserializer} to deserialize objects that are then compared via
  26970. their {@link Comparable} interfaces.
  26971. </p>
  26972. @param <T>
  26973. @see JavaSerialization]]>
  26974. </doc>
  26975. </class>
  26976. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  26977. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  26978. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  26979. abstract="false"
  26980. static="false" final="false" visibility="public"
  26981. deprecated="not deprecated">
  26982. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  26983. <constructor name="WritableSerialization"
  26984. static="false" final="false" visibility="public"
  26985. deprecated="not deprecated">
  26986. </constructor>
  26987. <doc>
  26988. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  26989. {@link Writable#write(java.io.DataOutput)} and
  26990. {@link Writable#readFields(java.io.DataInput)}.]]>
  26991. </doc>
  26992. </class>
  26993. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  26994. <doc>
  26995. <![CDATA[<p>
  26996. This package provides a mechanism for using different serialization frameworks
  26997. in Hadoop. The property "io.serializations" defines a list of
  26998. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  26999. {@link org.apache.hadoop.io.serializer.Serializer}s and
  27000. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  27001. </p>
  27002. <p>
  27003. To add a new serialization framework write an implementation of
  27004. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  27005. "io.serializations" property.
  27006. </p>]]>
  27007. </doc>
  27008. </package>
  27009. <package name="org.apache.hadoop.io.serializer.avro">
  27010. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  27011. <interface name="AvroReflectSerializable" abstract="true"
  27012. static="false" final="false" visibility="public"
  27013. deprecated="not deprecated">
  27014. <doc>
  27015. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  27016. this interface can be serialized/deserialized using
  27017. {@link AvroReflectSerialization}.]]>
  27018. </doc>
  27019. </interface>
  27020. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  27021. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  27022. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  27023. abstract="false"
  27024. static="false" final="false" visibility="public"
  27025. deprecated="not deprecated">
  27026. <constructor name="AvroReflectSerialization"
  27027. static="false" final="false" visibility="public"
  27028. deprecated="not deprecated">
  27029. </constructor>
  27030. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  27031. transient="false" volatile="false"
  27032. static="true" final="true" visibility="public"
  27033. deprecated="not deprecated">
  27034. <doc>
  27035. <![CDATA[Key to configure packages that contain classes to be serialized and
  27036. deserialized using this class. Multiple packages can be specified using
  27037. comma-separated list.]]>
  27038. </doc>
  27039. </field>
  27040. <doc>
  27041. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  27042. serialization, it must either be in the package list configured via
  27043. <code>avro.reflect.pkgs</code> or implement
  27044. {@link AvroReflectSerializable} interface.]]>
  27045. </doc>
  27046. </class>
  27047. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  27048. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  27049. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  27050. abstract="true"
  27051. static="false" final="false" visibility="public"
  27052. deprecated="not deprecated">
  27053. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  27054. <constructor name="AvroSerialization"
  27055. static="false" final="false" visibility="public"
  27056. deprecated="not deprecated">
  27057. </constructor>
  27058. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  27059. transient="false" volatile="false"
  27060. static="true" final="true" visibility="public"
  27061. deprecated="not deprecated">
  27062. </field>
  27063. <doc>
  27064. <![CDATA[Base class for providing serialization to Avro types.]]>
  27065. </doc>
  27066. </class>
  27067. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  27068. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  27069. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  27070. abstract="false"
  27071. static="false" final="false" visibility="public"
  27072. deprecated="not deprecated">
  27073. <constructor name="AvroSpecificSerialization"
  27074. static="false" final="false" visibility="public"
  27075. deprecated="not deprecated">
  27076. </constructor>
  27077. <doc>
  27078. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  27079. for classes generated by Avro's 'specific' compiler.]]>
  27080. </doc>
  27081. </class>
  27082. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  27083. <doc>
  27084. <![CDATA[<p>
  27085. This package provides Avro serialization in Hadoop. This can be used to
  27086. serialize/deserialize Avro types in Hadoop.
  27087. </p>
  27088. <p>
  27089. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  27090. serialization of classes generated by Avro's 'specific' compiler.
  27091. </p>
  27092. <p>
  27093. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  27094. other classes.
  27095. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  27096. any class which is either in the package list configured via
  27097. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  27098. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  27099. interface.
  27100. </p>]]>
  27101. </doc>
  27102. </package>
  27103. <package name="org.apache.hadoop.ipc.protocolPB">
  27104. </package>
  27105. <package name="org.apache.hadoop.log">
  27106. </package>
  27107. <package name="org.apache.hadoop.log.metrics">
  27108. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  27109. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  27110. abstract="false"
  27111. static="false" final="false" visibility="public"
  27112. deprecated="not deprecated">
  27113. <constructor name="EventCounter"
  27114. static="false" final="false" visibility="public"
  27115. deprecated="not deprecated">
  27116. </constructor>
  27117. <method name="append"
  27118. abstract="false" native="false" synchronized="false"
  27119. static="false" final="false" visibility="public"
  27120. deprecated="not deprecated">
  27121. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  27122. </method>
  27123. <method name="close"
  27124. abstract="false" native="false" synchronized="false"
  27125. static="false" final="false" visibility="public"
  27126. deprecated="not deprecated">
  27127. </method>
  27128. <method name="requiresLayout" return="boolean"
  27129. abstract="false" native="false" synchronized="false"
  27130. static="false" final="false" visibility="public"
  27131. deprecated="not deprecated">
  27132. </method>
  27133. <doc>
  27134. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  27135. fatal, error and warn. The class name is used in log4j.properties]]>
  27136. </doc>
  27137. </class>
  27138. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  27139. </package>
  27140. <package name="org.apache.hadoop.metrics2">
  27141. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  27142. <class name="AbstractMetric" extends="java.lang.Object"
  27143. abstract="true"
  27144. static="false" final="false" visibility="public"
  27145. deprecated="not deprecated">
  27146. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  27147. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  27148. static="false" final="false" visibility="protected"
  27149. deprecated="not deprecated">
  27150. <doc>
  27151. <![CDATA[Construct the metric
  27152. @param info about the metric]]>
  27153. </doc>
  27154. </constructor>
  27155. <method name="name" return="java.lang.String"
  27156. abstract="false" native="false" synchronized="false"
  27157. static="false" final="false" visibility="public"
  27158. deprecated="not deprecated">
  27159. </method>
  27160. <method name="description" return="java.lang.String"
  27161. abstract="false" native="false" synchronized="false"
  27162. static="false" final="false" visibility="public"
  27163. deprecated="not deprecated">
  27164. </method>
  27165. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  27166. abstract="false" native="false" synchronized="false"
  27167. static="false" final="false" visibility="protected"
  27168. deprecated="not deprecated">
  27169. </method>
  27170. <method name="value" return="java.lang.Number"
  27171. abstract="true" native="false" synchronized="false"
  27172. static="false" final="false" visibility="public"
  27173. deprecated="not deprecated">
  27174. <doc>
  27175. <![CDATA[Get the value of the metric
  27176. @return the value of the metric]]>
  27177. </doc>
  27178. </method>
  27179. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  27180. abstract="true" native="false" synchronized="false"
  27181. static="false" final="false" visibility="public"
  27182. deprecated="not deprecated">
  27183. <doc>
  27184. <![CDATA[Get the type of the metric
  27185. @return the type of the metric]]>
  27186. </doc>
  27187. </method>
  27188. <method name="visit"
  27189. abstract="true" native="false" synchronized="false"
  27190. static="false" final="false" visibility="public"
  27191. deprecated="not deprecated">
  27192. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  27193. <doc>
  27194. <![CDATA[Accept a visitor interface
  27195. @param visitor of the metric]]>
  27196. </doc>
  27197. </method>
  27198. <method name="equals" return="boolean"
  27199. abstract="false" native="false" synchronized="false"
  27200. static="false" final="false" visibility="public"
  27201. deprecated="not deprecated">
  27202. <param name="obj" type="java.lang.Object"/>
  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="toString" return="java.lang.String"
  27210. abstract="false" native="false" synchronized="false"
  27211. static="false" final="false" visibility="public"
  27212. deprecated="not deprecated">
  27213. </method>
  27214. <doc>
  27215. <![CDATA[The immutable metric]]>
  27216. </doc>
  27217. </class>
  27218. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  27219. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  27220. <interface name="MetricsCollector" abstract="true"
  27221. static="false" final="false" visibility="public"
  27222. deprecated="not deprecated">
  27223. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27224. abstract="true" native="false" synchronized="false"
  27225. static="false" final="false" visibility="public"
  27226. deprecated="not deprecated">
  27227. <param name="name" type="java.lang.String"/>
  27228. <doc>
  27229. <![CDATA[Add a metrics record
  27230. @param name of the record
  27231. @return a {@link MetricsRecordBuilder} for the record {@code name}]]>
  27232. </doc>
  27233. </method>
  27234. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27235. abstract="true" native="false" synchronized="false"
  27236. static="false" final="false" visibility="public"
  27237. deprecated="not deprecated">
  27238. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27239. <doc>
  27240. <![CDATA[Add a metrics record
  27241. @param info of the record
  27242. @return a {@link MetricsRecordBuilder} for metrics {@code info}]]>
  27243. </doc>
  27244. </method>
  27245. <doc>
  27246. <![CDATA[The metrics collector interface]]>
  27247. </doc>
  27248. </interface>
  27249. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  27250. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  27251. <class name="MetricsException" extends="java.lang.RuntimeException"
  27252. abstract="false"
  27253. static="false" final="false" visibility="public"
  27254. deprecated="not deprecated">
  27255. <constructor name="MetricsException" type="java.lang.String"
  27256. static="false" final="false" visibility="public"
  27257. deprecated="not deprecated">
  27258. <doc>
  27259. <![CDATA[Construct the exception with a message
  27260. @param message for the exception]]>
  27261. </doc>
  27262. </constructor>
  27263. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  27264. static="false" final="false" visibility="public"
  27265. deprecated="not deprecated">
  27266. <doc>
  27267. <![CDATA[Construct the exception with a message and a cause
  27268. @param message for the exception
  27269. @param cause of the exception]]>
  27270. </doc>
  27271. </constructor>
  27272. <constructor name="MetricsException" type="java.lang.Throwable"
  27273. static="false" final="false" visibility="public"
  27274. deprecated="not deprecated">
  27275. <doc>
  27276. <![CDATA[Construct the exception with a cause
  27277. @param cause of the exception]]>
  27278. </doc>
  27279. </constructor>
  27280. <doc>
  27281. <![CDATA[A general metrics exception wrapper]]>
  27282. </doc>
  27283. </class>
  27284. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  27285. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  27286. <class name="MetricsFilter" extends="java.lang.Object"
  27287. abstract="true"
  27288. static="false" final="false" visibility="public"
  27289. deprecated="not deprecated">
  27290. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  27291. <constructor name="MetricsFilter"
  27292. static="false" final="false" visibility="public"
  27293. deprecated="not deprecated">
  27294. </constructor>
  27295. <method name="accepts" return="boolean"
  27296. abstract="true" native="false" synchronized="false"
  27297. static="false" final="false" visibility="public"
  27298. deprecated="not deprecated">
  27299. <param name="name" type="java.lang.String"/>
  27300. <doc>
  27301. <![CDATA[Whether to accept the name
  27302. @param name to filter on
  27303. @return true to accept; false otherwise.]]>
  27304. </doc>
  27305. </method>
  27306. <method name="accepts" return="boolean"
  27307. abstract="true" native="false" synchronized="false"
  27308. static="false" final="false" visibility="public"
  27309. deprecated="not deprecated">
  27310. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  27311. <doc>
  27312. <![CDATA[Whether to accept the tag
  27313. @param tag to filter on
  27314. @return true to accept; false otherwise]]>
  27315. </doc>
  27316. </method>
  27317. <method name="accepts" return="boolean"
  27318. abstract="true" native="false" synchronized="false"
  27319. static="false" final="false" visibility="public"
  27320. deprecated="not deprecated">
  27321. <param name="tags" type="java.lang.Iterable"/>
  27322. <doc>
  27323. <![CDATA[Whether to accept the tags
  27324. @param tags to filter on
  27325. @return true to accept; false otherwise]]>
  27326. </doc>
  27327. </method>
  27328. <method name="accepts" return="boolean"
  27329. abstract="false" native="false" synchronized="false"
  27330. static="false" final="false" visibility="public"
  27331. deprecated="not deprecated">
  27332. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27333. <doc>
  27334. <![CDATA[Whether to accept the record
  27335. @param record to filter on
  27336. @return true to accept; false otherwise.]]>
  27337. </doc>
  27338. </method>
  27339. <doc>
  27340. <![CDATA[The metrics filter interface. The MetricsFilter objects can be used either to
  27341. filter the metrics from {@link MetricsSource}s or to filter metrics per
  27342. {@link MetricsSink}.]]>
  27343. </doc>
  27344. </class>
  27345. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  27346. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  27347. <interface name="MetricsInfo" abstract="true"
  27348. static="false" final="false" visibility="public"
  27349. deprecated="not deprecated">
  27350. <method name="name" return="java.lang.String"
  27351. abstract="true" native="false" synchronized="false"
  27352. static="false" final="false" visibility="public"
  27353. deprecated="not deprecated">
  27354. <doc>
  27355. <![CDATA[Typically name corresponds to annotation {@link Metric#value()} or
  27356. the name of the class.
  27357. @return the name of the metric/tag]]>
  27358. </doc>
  27359. </method>
  27360. <method name="description" return="java.lang.String"
  27361. abstract="true" native="false" synchronized="false"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. <doc>
  27365. <![CDATA[Typically the description corresponds to annotation {@link Metric#about()}
  27366. or the name of the class.
  27367. @return the description of the metric/tag]]>
  27368. </doc>
  27369. </method>
  27370. <doc>
  27371. <![CDATA[Interface to provide immutable metainfo for metrics.]]>
  27372. </doc>
  27373. </interface>
  27374. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  27375. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  27376. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27377. abstract="false"
  27378. static="false" final="false" visibility="public"
  27379. deprecated="not deprecated">
  27380. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  27381. static="false" final="false" visibility="public"
  27382. deprecated="not deprecated">
  27383. <doc>
  27384. <![CDATA[Build an instance.
  27385. @param parent parent collector. Unused in this instance; only used for
  27386. the {@link #parent()} method]]>
  27387. </doc>
  27388. </constructor>
  27389. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27390. abstract="false" native="false" synchronized="false"
  27391. static="false" final="false" visibility="public"
  27392. deprecated="not deprecated">
  27393. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27394. <param name="value" type="java.lang.String"/>
  27395. </method>
  27396. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27397. abstract="false" native="false" synchronized="false"
  27398. static="false" final="false" visibility="public"
  27399. deprecated="not deprecated">
  27400. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  27401. </method>
  27402. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27403. abstract="false" native="false" synchronized="false"
  27404. static="false" final="false" visibility="public"
  27405. deprecated="not deprecated">
  27406. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  27407. </method>
  27408. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27409. abstract="false" native="false" synchronized="false"
  27410. static="false" final="false" visibility="public"
  27411. deprecated="not deprecated">
  27412. <param name="value" type="java.lang.String"/>
  27413. </method>
  27414. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27415. abstract="false" native="false" synchronized="false"
  27416. static="false" final="false" visibility="public"
  27417. deprecated="not deprecated">
  27418. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27419. <param name="value" type="int"/>
  27420. </method>
  27421. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27422. abstract="false" native="false" synchronized="false"
  27423. static="false" final="false" visibility="public"
  27424. deprecated="not deprecated">
  27425. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27426. <param name="value" type="long"/>
  27427. </method>
  27428. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27429. abstract="false" native="false" synchronized="false"
  27430. static="false" final="false" visibility="public"
  27431. deprecated="not deprecated">
  27432. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27433. <param name="value" type="int"/>
  27434. </method>
  27435. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27436. abstract="false" native="false" synchronized="false"
  27437. static="false" final="false" visibility="public"
  27438. deprecated="not deprecated">
  27439. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27440. <param name="value" type="long"/>
  27441. </method>
  27442. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27443. abstract="false" native="false" synchronized="false"
  27444. static="false" final="false" visibility="public"
  27445. deprecated="not deprecated">
  27446. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27447. <param name="value" type="float"/>
  27448. </method>
  27449. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27450. abstract="false" native="false" synchronized="false"
  27451. static="false" final="false" visibility="public"
  27452. deprecated="not deprecated">
  27453. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27454. <param name="value" type="double"/>
  27455. </method>
  27456. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  27457. abstract="false" native="false" synchronized="false"
  27458. static="false" final="false" visibility="public"
  27459. deprecated="not deprecated">
  27460. </method>
  27461. <method name="toString" return="java.lang.String"
  27462. abstract="false" native="false" synchronized="false"
  27463. static="false" final="false" visibility="public"
  27464. deprecated="not deprecated">
  27465. </method>
  27466. <field name="LOG" type="org.slf4j.Logger"
  27467. transient="false" volatile="false"
  27468. static="true" final="true" visibility="public"
  27469. deprecated="not deprecated">
  27470. </field>
  27471. <doc>
  27472. <![CDATA[Build a JSON dump of the metrics.
  27473. The {@link #toString()} operator dumps out all values collected.]]>
  27474. </doc>
  27475. </class>
  27476. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  27477. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  27478. <interface name="MetricsPlugin" abstract="true"
  27479. static="false" final="false" visibility="public"
  27480. deprecated="not deprecated">
  27481. <method name="init"
  27482. abstract="true" native="false" synchronized="false"
  27483. static="false" final="false" visibility="public"
  27484. deprecated="not deprecated">
  27485. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  27486. <doc>
  27487. <![CDATA[Initialize the plugin
  27488. @param conf the configuration object for the plugin]]>
  27489. </doc>
  27490. </method>
  27491. <doc>
  27492. <![CDATA[The plugin interface for the metrics framework]]>
  27493. </doc>
  27494. </interface>
  27495. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  27496. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  27497. <interface name="MetricsRecord" abstract="true"
  27498. static="false" final="false" visibility="public"
  27499. deprecated="not deprecated">
  27500. <method name="timestamp" return="long"
  27501. abstract="true" native="false" synchronized="false"
  27502. static="false" final="false" visibility="public"
  27503. deprecated="not deprecated">
  27504. <doc>
  27505. <![CDATA[Get the timestamp of the metrics
  27506. @return the timestamp]]>
  27507. </doc>
  27508. </method>
  27509. <method name="name" return="java.lang.String"
  27510. abstract="true" native="false" synchronized="false"
  27511. static="false" final="false" visibility="public"
  27512. deprecated="not deprecated">
  27513. <doc>
  27514. <![CDATA[@return the metrics record name]]>
  27515. </doc>
  27516. </method>
  27517. <method name="description" return="java.lang.String"
  27518. abstract="true" native="false" synchronized="false"
  27519. static="false" final="false" visibility="public"
  27520. deprecated="not deprecated">
  27521. <doc>
  27522. <![CDATA[@return the description of the metrics record]]>
  27523. </doc>
  27524. </method>
  27525. <method name="context" return="java.lang.String"
  27526. abstract="true" native="false" synchronized="false"
  27527. static="false" final="false" visibility="public"
  27528. deprecated="not deprecated">
  27529. <doc>
  27530. <![CDATA[@return the context name of the metrics record]]>
  27531. </doc>
  27532. </method>
  27533. <method name="tags" return="java.util.Collection"
  27534. abstract="true" native="false" synchronized="false"
  27535. static="false" final="false" visibility="public"
  27536. deprecated="not deprecated">
  27537. <doc>
  27538. <![CDATA[Get the tags of the record
  27539. Note: returning a collection instead of iterable as we
  27540. need to use tags as keys (hence Collection#hashCode etc.) in maps
  27541. @return an unmodifiable collection of tags]]>
  27542. </doc>
  27543. </method>
  27544. <method name="metrics" return="java.lang.Iterable"
  27545. abstract="true" native="false" synchronized="false"
  27546. static="false" final="false" visibility="public"
  27547. deprecated="not deprecated">
  27548. <doc>
  27549. <![CDATA[Get the metrics of the record
  27550. @return an immutable iterable interface for metrics]]>
  27551. </doc>
  27552. </method>
  27553. <doc>
  27554. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  27555. </doc>
  27556. </interface>
  27557. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  27558. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  27559. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  27560. abstract="true"
  27561. static="false" final="false" visibility="public"
  27562. deprecated="not deprecated">
  27563. <constructor name="MetricsRecordBuilder"
  27564. static="false" final="false" visibility="public"
  27565. deprecated="not deprecated">
  27566. </constructor>
  27567. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27568. abstract="true" native="false" synchronized="false"
  27569. static="false" final="false" visibility="public"
  27570. deprecated="not deprecated">
  27571. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27572. <param name="value" type="java.lang.String"/>
  27573. <doc>
  27574. <![CDATA[Add a metrics value with metrics information
  27575. @param info metadata of the tag
  27576. @param value of the tag
  27577. @return self]]>
  27578. </doc>
  27579. </method>
  27580. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27581. abstract="true" native="false" synchronized="false"
  27582. static="false" final="false" visibility="public"
  27583. deprecated="not deprecated">
  27584. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  27585. <doc>
  27586. <![CDATA[Add an immutable metrics tag object
  27587. @param tag a pre-made tag object (potentially save an object construction)
  27588. @return self]]>
  27589. </doc>
  27590. </method>
  27591. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27592. abstract="true" native="false" synchronized="false"
  27593. static="false" final="false" visibility="public"
  27594. deprecated="not deprecated">
  27595. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  27596. <doc>
  27597. <![CDATA[Add a pre-made immutable metric object
  27598. @param metric the pre-made metric to save an object construction
  27599. @return self]]>
  27600. </doc>
  27601. </method>
  27602. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27603. abstract="true" native="false" synchronized="false"
  27604. static="false" final="false" visibility="public"
  27605. deprecated="not deprecated">
  27606. <param name="value" type="java.lang.String"/>
  27607. <doc>
  27608. <![CDATA[Set the context tag
  27609. @param value of the context
  27610. @return self]]>
  27611. </doc>
  27612. </method>
  27613. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27614. abstract="true" native="false" synchronized="false"
  27615. static="false" final="false" visibility="public"
  27616. deprecated="not deprecated">
  27617. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27618. <param name="value" type="int"/>
  27619. <doc>
  27620. <![CDATA[Add an integer metric
  27621. @param info metadata of the metric
  27622. @param value of the metric
  27623. @return self]]>
  27624. </doc>
  27625. </method>
  27626. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27627. abstract="true" native="false" synchronized="false"
  27628. static="false" final="false" visibility="public"
  27629. deprecated="not deprecated">
  27630. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27631. <param name="value" type="long"/>
  27632. <doc>
  27633. <![CDATA[Add an long metric
  27634. @param info metadata of the metric
  27635. @param value of the metric
  27636. @return self]]>
  27637. </doc>
  27638. </method>
  27639. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27640. abstract="true" native="false" synchronized="false"
  27641. static="false" final="false" visibility="public"
  27642. deprecated="not deprecated">
  27643. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27644. <param name="value" type="int"/>
  27645. <doc>
  27646. <![CDATA[Add a integer gauge metric
  27647. @param info metadata of the metric
  27648. @param value of the metric
  27649. @return self]]>
  27650. </doc>
  27651. </method>
  27652. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27653. abstract="true" native="false" synchronized="false"
  27654. static="false" final="false" visibility="public"
  27655. deprecated="not deprecated">
  27656. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27657. <param name="value" type="long"/>
  27658. <doc>
  27659. <![CDATA[Add a long gauge metric
  27660. @param info metadata of the metric
  27661. @param value of the metric
  27662. @return self]]>
  27663. </doc>
  27664. </method>
  27665. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27666. abstract="true" native="false" synchronized="false"
  27667. static="false" final="false" visibility="public"
  27668. deprecated="not deprecated">
  27669. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27670. <param name="value" type="float"/>
  27671. <doc>
  27672. <![CDATA[Add a float gauge metric
  27673. @param info metadata of the metric
  27674. @param value of the metric
  27675. @return self]]>
  27676. </doc>
  27677. </method>
  27678. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27679. abstract="true" native="false" synchronized="false"
  27680. static="false" final="false" visibility="public"
  27681. deprecated="not deprecated">
  27682. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27683. <param name="value" type="double"/>
  27684. <doc>
  27685. <![CDATA[Add a double gauge metric
  27686. @param info metadata of the metric
  27687. @param value of the metric
  27688. @return self]]>
  27689. </doc>
  27690. </method>
  27691. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  27692. abstract="true" native="false" synchronized="false"
  27693. static="false" final="false" visibility="public"
  27694. deprecated="not deprecated">
  27695. <doc>
  27696. <![CDATA[@return the parent metrics collector object]]>
  27697. </doc>
  27698. </method>
  27699. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  27700. abstract="false" native="false" synchronized="false"
  27701. static="false" final="false" visibility="public"
  27702. deprecated="not deprecated">
  27703. <doc>
  27704. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  27705. @return the parent metrics collector object]]>
  27706. </doc>
  27707. </method>
  27708. <doc>
  27709. <![CDATA[The metrics record builder interface]]>
  27710. </doc>
  27711. </class>
  27712. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  27713. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  27714. <interface name="MetricsSink" abstract="true"
  27715. static="false" final="false" visibility="public"
  27716. deprecated="not deprecated">
  27717. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  27718. <method name="putMetrics"
  27719. abstract="true" native="false" synchronized="false"
  27720. static="false" final="false" visibility="public"
  27721. deprecated="not deprecated">
  27722. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27723. <doc>
  27724. <![CDATA[Put a metrics record in the sink
  27725. @param record the record to put]]>
  27726. </doc>
  27727. </method>
  27728. <method name="flush"
  27729. abstract="true" native="false" synchronized="false"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <doc>
  27733. <![CDATA[Flush any buffered metrics]]>
  27734. </doc>
  27735. </method>
  27736. <doc>
  27737. <![CDATA[The metrics sink interface. <p>
  27738. Implementations of this interface consume the {@link MetricsRecord} generated
  27739. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  27740. periodically pushes the {@link MetricsRecord} to the sink using
  27741. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  27742. implements {@link Closeable}, then the MetricsSystem will close the sink when
  27743. it is stopped.]]>
  27744. </doc>
  27745. </interface>
  27746. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  27747. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  27748. <interface name="MetricsSource" abstract="true"
  27749. static="false" final="false" visibility="public"
  27750. deprecated="not deprecated">
  27751. <method name="getMetrics"
  27752. abstract="true" native="false" synchronized="false"
  27753. static="false" final="false" visibility="public"
  27754. deprecated="not deprecated">
  27755. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  27756. <param name="all" type="boolean"/>
  27757. <doc>
  27758. <![CDATA[Get metrics from the metrics source
  27759. @param collector to contain the resulting metrics snapshot
  27760. @param all if true, return all metrics even if unchanged.]]>
  27761. </doc>
  27762. </method>
  27763. <doc>
  27764. <![CDATA[The source of metrics information. It generates and updates metrics. It
  27765. registers with {@link MetricsSystem}, which periodically polls it to collect
  27766. {@link MetricsRecord} and passes it to {@link MetricsSink}.]]>
  27767. </doc>
  27768. </interface>
  27769. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  27770. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  27771. <class name="MetricsSystem" extends="java.lang.Object"
  27772. abstract="true"
  27773. static="false" final="false" visibility="public"
  27774. deprecated="not deprecated">
  27775. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  27776. <constructor name="MetricsSystem"
  27777. static="false" final="false" visibility="public"
  27778. deprecated="not deprecated">
  27779. </constructor>
  27780. <method name="unregisterSource"
  27781. abstract="true" native="false" synchronized="false"
  27782. static="false" final="false" visibility="public"
  27783. deprecated="not deprecated">
  27784. <param name="name" type="java.lang.String"/>
  27785. <doc>
  27786. <![CDATA[Unregister a metrics source
  27787. @param name of the source. This is the name you use to call register()]]>
  27788. </doc>
  27789. </method>
  27790. <method name="register" return="T"
  27791. abstract="false" native="false" synchronized="false"
  27792. static="false" final="false" visibility="public"
  27793. deprecated="not deprecated">
  27794. <param name="source" type="T"/>
  27795. <doc>
  27796. <![CDATA[Register a metrics source (deriving name and description from the object)
  27797. @param <T> the actual type of the source object
  27798. @param source object to register
  27799. @return the source object
  27800. @exception MetricsException]]>
  27801. </doc>
  27802. </method>
  27803. <method name="register" return="T"
  27804. abstract="true" native="false" synchronized="false"
  27805. static="false" final="false" visibility="public"
  27806. deprecated="not deprecated">
  27807. <param name="name" type="java.lang.String"/>
  27808. <param name="desc" type="java.lang.String"/>
  27809. <param name="source" type="T"/>
  27810. <doc>
  27811. <![CDATA[Register a metrics source
  27812. @param <T> the actual type of the source object
  27813. @param source object to register
  27814. @param name of the source. Must be unique or null (then extracted from
  27815. the annotations of the source object.)
  27816. @param desc the description of the source (or null. See above.)
  27817. @return the source object
  27818. @exception MetricsException]]>
  27819. </doc>
  27820. </method>
  27821. <method name="register"
  27822. abstract="true" native="false" synchronized="false"
  27823. static="false" final="false" visibility="public"
  27824. deprecated="not deprecated">
  27825. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27826. <doc>
  27827. <![CDATA[Register a callback interface for JMX events
  27828. @param callback the callback object implementing the MBean interface.]]>
  27829. </doc>
  27830. </method>
  27831. <method name="publishMetricsNow"
  27832. abstract="true" native="false" synchronized="false"
  27833. static="false" final="false" visibility="public"
  27834. deprecated="not deprecated">
  27835. <doc>
  27836. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  27837. This is a "soft" request: the expectation is that a best effort will be
  27838. done to synchronously snapshot the metrics from all the sources and put
  27839. them in all the sinks (including flushing the sinks) before returning to
  27840. the caller. If this can't be accomplished in reasonable time it's OK to
  27841. return to the caller before everything is done.]]>
  27842. </doc>
  27843. </method>
  27844. <method name="shutdown" return="boolean"
  27845. abstract="true" native="false" synchronized="false"
  27846. static="false" final="false" visibility="public"
  27847. deprecated="not deprecated">
  27848. <doc>
  27849. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  27850. The MetricsSystemMXBean will be unregistered.
  27851. @return true if shutdown completed]]>
  27852. </doc>
  27853. </method>
  27854. <doc>
  27855. <![CDATA[The metrics system interface.
  27856. The following components are used for metrics.
  27857. <ul>
  27858. <li>{@link MetricsSource} generate and update metrics information.</li>
  27859. <li>{@link MetricsSink} consume the metrics information</li>
  27860. </ul>
  27861. {@link MetricsSource} and {@link MetricsSink} register with the metrics
  27862. system. Implementations of {@link MetricsSystem} polls the
  27863. {@link MetricsSource}s periodically and pass the {@link MetricsRecord}s to
  27864. {@link MetricsSink}.]]>
  27865. </doc>
  27866. </class>
  27867. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  27868. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27869. <interface name="MetricsSystemMXBean" abstract="true"
  27870. static="false" final="false" visibility="public"
  27871. deprecated="not deprecated">
  27872. <method name="start"
  27873. abstract="true" native="false" synchronized="false"
  27874. static="false" final="false" visibility="public"
  27875. deprecated="not deprecated">
  27876. <doc>
  27877. <![CDATA[Start the metrics system
  27878. @throws MetricsException]]>
  27879. </doc>
  27880. </method>
  27881. <method name="stop"
  27882. abstract="true" native="false" synchronized="false"
  27883. static="false" final="false" visibility="public"
  27884. deprecated="not deprecated">
  27885. <doc>
  27886. <![CDATA[Stop the metrics system
  27887. @throws MetricsException]]>
  27888. </doc>
  27889. </method>
  27890. <method name="startMetricsMBeans"
  27891. abstract="true" native="false" synchronized="false"
  27892. static="false" final="false" visibility="public"
  27893. deprecated="not deprecated">
  27894. <doc>
  27895. <![CDATA[Start metrics MBeans
  27896. @throws MetricsException]]>
  27897. </doc>
  27898. </method>
  27899. <method name="stopMetricsMBeans"
  27900. abstract="true" native="false" synchronized="false"
  27901. static="false" final="false" visibility="public"
  27902. deprecated="not deprecated">
  27903. <doc>
  27904. <![CDATA[Stop metrics MBeans.
  27905. Note, it doesn't stop the metrics system control MBean,
  27906. i.e this interface.
  27907. @throws MetricsException]]>
  27908. </doc>
  27909. </method>
  27910. <method name="currentConfig" return="java.lang.String"
  27911. abstract="true" native="false" synchronized="false"
  27912. static="false" final="false" visibility="public"
  27913. deprecated="not deprecated">
  27914. <doc>
  27915. <![CDATA[@return the current config
  27916. Avoided getConfig, as it'll turn into a "Config" attribute,
  27917. which doesn't support multiple line values in jconsole.
  27918. @throws MetricsException]]>
  27919. </doc>
  27920. </method>
  27921. <doc>
  27922. <![CDATA[The JMX interface to the metrics system]]>
  27923. </doc>
  27924. </interface>
  27925. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27926. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  27927. <class name="MetricsTag" extends="java.lang.Object"
  27928. abstract="false"
  27929. static="false" final="false" visibility="public"
  27930. deprecated="not deprecated">
  27931. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  27932. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  27933. static="false" final="false" visibility="public"
  27934. deprecated="not deprecated">
  27935. <doc>
  27936. <![CDATA[Construct the tag with name, description and value
  27937. @param info of the tag
  27938. @param value of the tag]]>
  27939. </doc>
  27940. </constructor>
  27941. <method name="name" return="java.lang.String"
  27942. abstract="false" native="false" synchronized="false"
  27943. static="false" final="false" visibility="public"
  27944. deprecated="not deprecated">
  27945. </method>
  27946. <method name="description" return="java.lang.String"
  27947. abstract="false" native="false" synchronized="false"
  27948. static="false" final="false" visibility="public"
  27949. deprecated="not deprecated">
  27950. </method>
  27951. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  27952. abstract="false" native="false" synchronized="false"
  27953. static="false" final="false" visibility="public"
  27954. deprecated="not deprecated">
  27955. <doc>
  27956. <![CDATA[@return the info object of the tag]]>
  27957. </doc>
  27958. </method>
  27959. <method name="value" return="java.lang.String"
  27960. abstract="false" native="false" synchronized="false"
  27961. static="false" final="false" visibility="public"
  27962. deprecated="not deprecated">
  27963. <doc>
  27964. <![CDATA[Get the value of the tag
  27965. @return the value]]>
  27966. </doc>
  27967. </method>
  27968. <method name="equals" return="boolean"
  27969. abstract="false" native="false" synchronized="false"
  27970. static="false" final="false" visibility="public"
  27971. deprecated="not deprecated">
  27972. <param name="obj" type="java.lang.Object"/>
  27973. </method>
  27974. <method name="hashCode" return="int"
  27975. abstract="false" native="false" synchronized="false"
  27976. static="false" final="false" visibility="public"
  27977. deprecated="not deprecated">
  27978. </method>
  27979. <method name="toString" return="java.lang.String"
  27980. abstract="false" native="false" synchronized="false"
  27981. static="false" final="false" visibility="public"
  27982. deprecated="not deprecated">
  27983. </method>
  27984. <doc>
  27985. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  27986. </doc>
  27987. </class>
  27988. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  27989. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  27990. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27991. abstract="false"
  27992. static="false" final="false" visibility="public"
  27993. deprecated="not deprecated">
  27994. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  27995. static="false" final="false" visibility="public"
  27996. deprecated="not deprecated">
  27997. <doc>
  27998. <![CDATA[Build an instance.
  27999. @param parent parent collector. Unused in this instance; only used for
  28000. the {@link #parent()} method
  28001. @param prefix string before each entry
  28002. @param separator separator between name and value
  28003. @param suffix suffix after each entry]]>
  28004. </doc>
  28005. </constructor>
  28006. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  28007. abstract="false" native="false" synchronized="false"
  28008. static="false" final="false" visibility="public"
  28009. deprecated="not deprecated">
  28010. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28011. <param name="value" type="java.lang.Object"/>
  28012. </method>
  28013. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  28014. abstract="false" native="false" synchronized="false"
  28015. static="false" final="false" visibility="public"
  28016. deprecated="not deprecated">
  28017. <param name="key" type="java.lang.String"/>
  28018. <param name="value" type="java.lang.String"/>
  28019. <doc>
  28020. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  28021. separated by the separator.
  28022. @param key key
  28023. @param value value
  28024. @return this instance]]>
  28025. </doc>
  28026. </method>
  28027. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28028. abstract="false" native="false" synchronized="false"
  28029. static="false" final="false" visibility="public"
  28030. deprecated="not deprecated">
  28031. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28032. <param name="value" type="java.lang.String"/>
  28033. </method>
  28034. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28035. abstract="false" native="false" synchronized="false"
  28036. static="false" final="false" visibility="public"
  28037. deprecated="not deprecated">
  28038. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  28039. </method>
  28040. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28041. abstract="false" native="false" synchronized="false"
  28042. static="false" final="false" visibility="public"
  28043. deprecated="not deprecated">
  28044. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  28045. </method>
  28046. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28047. abstract="false" native="false" synchronized="false"
  28048. static="false" final="false" visibility="public"
  28049. deprecated="not deprecated">
  28050. <param name="value" type="java.lang.String"/>
  28051. </method>
  28052. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28053. abstract="false" native="false" synchronized="false"
  28054. static="false" final="false" visibility="public"
  28055. deprecated="not deprecated">
  28056. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28057. <param name="value" type="int"/>
  28058. </method>
  28059. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28060. abstract="false" native="false" synchronized="false"
  28061. static="false" final="false" visibility="public"
  28062. deprecated="not deprecated">
  28063. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28064. <param name="value" type="long"/>
  28065. </method>
  28066. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28067. abstract="false" native="false" synchronized="false"
  28068. static="false" final="false" visibility="public"
  28069. deprecated="not deprecated">
  28070. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28071. <param name="value" type="int"/>
  28072. </method>
  28073. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28074. abstract="false" native="false" synchronized="false"
  28075. static="false" final="false" visibility="public"
  28076. deprecated="not deprecated">
  28077. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28078. <param name="value" type="long"/>
  28079. </method>
  28080. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28081. abstract="false" native="false" synchronized="false"
  28082. static="false" final="false" visibility="public"
  28083. deprecated="not deprecated">
  28084. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28085. <param name="value" type="float"/>
  28086. </method>
  28087. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28088. abstract="false" native="false" synchronized="false"
  28089. static="false" final="false" visibility="public"
  28090. deprecated="not deprecated">
  28091. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28092. <param name="value" type="double"/>
  28093. </method>
  28094. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  28095. abstract="false" native="false" synchronized="false"
  28096. static="false" final="false" visibility="public"
  28097. deprecated="not deprecated">
  28098. </method>
  28099. <method name="toString" return="java.lang.String"
  28100. abstract="false" native="false" synchronized="false"
  28101. static="false" final="false" visibility="public"
  28102. deprecated="not deprecated">
  28103. </method>
  28104. <doc>
  28105. <![CDATA[Build a string dump of the metrics.
  28106. The {@link #toString()} operator dumps out all values collected.
  28107. Every entry is formatted as
  28108. {@code prefix + name + separator + value + suffix}]]>
  28109. </doc>
  28110. </class>
  28111. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  28112. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  28113. <interface name="MetricsVisitor" abstract="true"
  28114. static="false" final="false" visibility="public"
  28115. deprecated="not deprecated">
  28116. <method name="gauge"
  28117. abstract="true" native="false" synchronized="false"
  28118. static="false" final="false" visibility="public"
  28119. deprecated="not deprecated">
  28120. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28121. <param name="value" type="int"/>
  28122. <doc>
  28123. <![CDATA[Callback for integer value gauges
  28124. @param info the metric info
  28125. @param value of the metric]]>
  28126. </doc>
  28127. </method>
  28128. <method name="gauge"
  28129. abstract="true" native="false" synchronized="false"
  28130. static="false" final="false" visibility="public"
  28131. deprecated="not deprecated">
  28132. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28133. <param name="value" type="long"/>
  28134. <doc>
  28135. <![CDATA[Callback for long value gauges
  28136. @param info the metric info
  28137. @param value of the metric]]>
  28138. </doc>
  28139. </method>
  28140. <method name="gauge"
  28141. abstract="true" native="false" synchronized="false"
  28142. static="false" final="false" visibility="public"
  28143. deprecated="not deprecated">
  28144. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28145. <param name="value" type="float"/>
  28146. <doc>
  28147. <![CDATA[Callback for float value gauges
  28148. @param info the metric info
  28149. @param value of the metric]]>
  28150. </doc>
  28151. </method>
  28152. <method name="gauge"
  28153. abstract="true" native="false" synchronized="false"
  28154. static="false" final="false" visibility="public"
  28155. deprecated="not deprecated">
  28156. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28157. <param name="value" type="double"/>
  28158. <doc>
  28159. <![CDATA[Callback for double value gauges
  28160. @param info the metric info
  28161. @param value of the metric]]>
  28162. </doc>
  28163. </method>
  28164. <method name="counter"
  28165. abstract="true" native="false" synchronized="false"
  28166. static="false" final="false" visibility="public"
  28167. deprecated="not deprecated">
  28168. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28169. <param name="value" type="int"/>
  28170. <doc>
  28171. <![CDATA[Callback for integer value counters
  28172. @param info the metric info
  28173. @param value of the metric]]>
  28174. </doc>
  28175. </method>
  28176. <method name="counter"
  28177. abstract="true" native="false" synchronized="false"
  28178. static="false" final="false" visibility="public"
  28179. deprecated="not deprecated">
  28180. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28181. <param name="value" type="long"/>
  28182. <doc>
  28183. <![CDATA[Callback for long value counters
  28184. @param info the metric info
  28185. @param value of the metric]]>
  28186. </doc>
  28187. </method>
  28188. <doc>
  28189. <![CDATA[A visitor interface for metrics]]>
  28190. </doc>
  28191. </interface>
  28192. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  28193. </package>
  28194. <package name="org.apache.hadoop.metrics2.annotation">
  28195. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  28196. <class name="Metric" abstract="true"
  28197. static="false" final="false" visibility="public"
  28198. deprecated="not deprecated">
  28199. <implements name="java.lang.annotation.Annotation"/>
  28200. <doc>
  28201. <![CDATA[Annotation interface for a single metric used to annotate a field or a method
  28202. in the class.]]>
  28203. </doc>
  28204. </class>
  28205. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  28206. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  28207. <class name="Metrics" abstract="true"
  28208. static="false" final="false" visibility="public"
  28209. deprecated="not deprecated">
  28210. <implements name="java.lang.annotation.Annotation"/>
  28211. <doc>
  28212. <![CDATA[Annotation interface for a group of metrics]]>
  28213. </doc>
  28214. </class>
  28215. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  28216. </package>
  28217. <package name="org.apache.hadoop.metrics2.filter">
  28218. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  28219. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  28220. abstract="false"
  28221. static="false" final="false" visibility="public"
  28222. deprecated="not deprecated">
  28223. <constructor name="GlobFilter"
  28224. static="false" final="false" visibility="public"
  28225. deprecated="not deprecated">
  28226. </constructor>
  28227. <method name="compile" return="com.google.re2j.Pattern"
  28228. abstract="false" native="false" synchronized="false"
  28229. static="false" final="false" visibility="protected"
  28230. deprecated="not deprecated">
  28231. <param name="s" type="java.lang.String"/>
  28232. </method>
  28233. <doc>
  28234. <![CDATA[A glob pattern filter for metrics.
  28235. The class name is used in metrics config files]]>
  28236. </doc>
  28237. </class>
  28238. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  28239. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  28240. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  28241. abstract="false"
  28242. static="false" final="false" visibility="public"
  28243. deprecated="not deprecated">
  28244. <constructor name="RegexFilter"
  28245. static="false" final="false" visibility="public"
  28246. deprecated="not deprecated">
  28247. </constructor>
  28248. <method name="compile" return="com.google.re2j.Pattern"
  28249. abstract="false" native="false" synchronized="false"
  28250. static="false" final="false" visibility="protected"
  28251. deprecated="not deprecated">
  28252. <param name="s" type="java.lang.String"/>
  28253. </method>
  28254. <doc>
  28255. <![CDATA[A regex pattern filter for metrics]]>
  28256. </doc>
  28257. </class>
  28258. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  28259. </package>
  28260. <package name="org.apache.hadoop.metrics2.lib">
  28261. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  28262. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  28263. abstract="false"
  28264. static="false" final="true" visibility="public"
  28265. deprecated="not deprecated">
  28266. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  28267. abstract="false" native="false" synchronized="false"
  28268. static="true" final="false" visibility="public"
  28269. deprecated="not deprecated">
  28270. </method>
  28271. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  28272. abstract="false" native="false" synchronized="false"
  28273. static="true" final="false" visibility="public"
  28274. deprecated="not deprecated">
  28275. <param name="name" type="java.lang.String"/>
  28276. </method>
  28277. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  28278. abstract="false" native="false" synchronized="false"
  28279. static="true" final="false" visibility="public"
  28280. deprecated="not deprecated">
  28281. <param name="prefix" type="java.lang.String"/>
  28282. <doc>
  28283. <![CDATA[Convenience method to initialize the metrics system
  28284. @param prefix for the metrics system configuration
  28285. @return the metrics system instance]]>
  28286. </doc>
  28287. </method>
  28288. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  28289. abstract="false" native="false" synchronized="false"
  28290. static="true" final="false" visibility="public"
  28291. deprecated="not deprecated">
  28292. <doc>
  28293. <![CDATA[@return the metrics system object]]>
  28294. </doc>
  28295. </method>
  28296. <method name="shutdown"
  28297. abstract="false" native="false" synchronized="false"
  28298. static="true" final="false" visibility="public"
  28299. deprecated="not deprecated">
  28300. <doc>
  28301. <![CDATA[Shutdown the metrics system]]>
  28302. </doc>
  28303. </method>
  28304. <method name="setMiniClusterMode"
  28305. abstract="false" native="false" synchronized="false"
  28306. static="true" final="false" visibility="public"
  28307. deprecated="not deprecated">
  28308. <param name="choice" type="boolean"/>
  28309. </method>
  28310. <method name="inMiniClusterMode" return="boolean"
  28311. abstract="false" native="false" synchronized="false"
  28312. static="true" final="false" visibility="public"
  28313. deprecated="not deprecated">
  28314. </method>
  28315. <doc>
  28316. <![CDATA[The default metrics system singleton. This class is used by all the daemon
  28317. processes(such as NameNode, DataNode, JobTracker etc.). During daemon process
  28318. initialization the processes call {@link DefaultMetricsSystem#init(String)}
  28319. to initialize the {@link MetricsSystem}.]]>
  28320. </doc>
  28321. </class>
  28322. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  28323. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  28324. <class name="Interns" extends="java.lang.Object"
  28325. abstract="false"
  28326. static="false" final="false" visibility="public"
  28327. deprecated="not deprecated">
  28328. <constructor name="Interns"
  28329. static="false" final="false" visibility="public"
  28330. deprecated="not deprecated">
  28331. </constructor>
  28332. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  28333. abstract="false" native="false" synchronized="false"
  28334. static="true" final="false" visibility="public"
  28335. deprecated="not deprecated">
  28336. <param name="name" type="java.lang.String"/>
  28337. <param name="description" type="java.lang.String"/>
  28338. <doc>
  28339. <![CDATA[Get a metric info object.
  28340. @param name Name of metric info object
  28341. @param description Description of metric info object
  28342. @return an interned metric info object]]>
  28343. </doc>
  28344. </method>
  28345. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  28346. abstract="false" native="false" synchronized="false"
  28347. static="true" final="false" visibility="public"
  28348. deprecated="not deprecated">
  28349. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28350. <param name="value" type="java.lang.String"/>
  28351. <doc>
  28352. <![CDATA[Get a metrics tag.
  28353. @param info of the tag
  28354. @param value of the tag
  28355. @return an interned metrics tag]]>
  28356. </doc>
  28357. </method>
  28358. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  28359. abstract="false" native="false" synchronized="false"
  28360. static="true" final="false" visibility="public"
  28361. deprecated="not deprecated">
  28362. <param name="name" type="java.lang.String"/>
  28363. <param name="description" type="java.lang.String"/>
  28364. <param name="value" type="java.lang.String"/>
  28365. <doc>
  28366. <![CDATA[Get a metrics tag.
  28367. @param name of the tag
  28368. @param description of the tag
  28369. @param value of the tag
  28370. @return an interned metrics tag]]>
  28371. </doc>
  28372. </method>
  28373. <doc>
  28374. <![CDATA[Helpers to create interned metrics info.]]>
  28375. </doc>
  28376. </class>
  28377. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  28378. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28379. <class name="MetricsRegistry" extends="java.lang.Object"
  28380. abstract="false"
  28381. static="false" final="false" visibility="public"
  28382. deprecated="not deprecated">
  28383. <constructor name="MetricsRegistry" type="java.lang.String"
  28384. static="false" final="false" visibility="public"
  28385. deprecated="not deprecated">
  28386. <doc>
  28387. <![CDATA[Construct the registry with a record name
  28388. @param name of the record of the metrics]]>
  28389. </doc>
  28390. </constructor>
  28391. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  28392. static="false" final="false" visibility="public"
  28393. deprecated="not deprecated">
  28394. <doc>
  28395. <![CDATA[Construct the registry with a metadata object
  28396. @param info the info object for the metrics record/group]]>
  28397. </doc>
  28398. </constructor>
  28399. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  28400. abstract="false" native="false" synchronized="false"
  28401. static="false" final="false" visibility="public"
  28402. deprecated="not deprecated">
  28403. <doc>
  28404. <![CDATA[@return the info object of the metrics registry]]>
  28405. </doc>
  28406. </method>
  28407. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  28408. abstract="false" native="false" synchronized="true"
  28409. static="false" final="false" visibility="public"
  28410. deprecated="not deprecated">
  28411. <param name="name" type="java.lang.String"/>
  28412. <doc>
  28413. <![CDATA[Get a metric by name
  28414. @param name of the metric
  28415. @return the metric object]]>
  28416. </doc>
  28417. </method>
  28418. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  28419. abstract="false" native="false" synchronized="true"
  28420. static="false" final="false" visibility="public"
  28421. deprecated="not deprecated">
  28422. <param name="name" type="java.lang.String"/>
  28423. <doc>
  28424. <![CDATA[Get a tag by name
  28425. @param name of the tag
  28426. @return the tag object]]>
  28427. </doc>
  28428. </method>
  28429. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  28430. abstract="false" native="false" synchronized="false"
  28431. static="false" final="false" visibility="public"
  28432. deprecated="not deprecated">
  28433. <param name="name" type="java.lang.String"/>
  28434. <param name="desc" type="java.lang.String"/>
  28435. <param name="iVal" type="int"/>
  28436. <doc>
  28437. <![CDATA[Create a mutable integer counter
  28438. @param name of the metric
  28439. @param desc metric description
  28440. @param iVal initial value
  28441. @return a new counter object]]>
  28442. </doc>
  28443. </method>
  28444. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  28445. abstract="false" native="false" synchronized="true"
  28446. static="false" final="false" visibility="public"
  28447. deprecated="not deprecated">
  28448. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28449. <param name="iVal" type="int"/>
  28450. <doc>
  28451. <![CDATA[Create a mutable integer counter
  28452. @param info metadata of the metric
  28453. @param iVal initial value
  28454. @return a new counter object]]>
  28455. </doc>
  28456. </method>
  28457. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  28458. abstract="false" native="false" synchronized="false"
  28459. static="false" final="false" visibility="public"
  28460. deprecated="not deprecated">
  28461. <param name="name" type="java.lang.String"/>
  28462. <param name="desc" type="java.lang.String"/>
  28463. <param name="iVal" type="long"/>
  28464. <doc>
  28465. <![CDATA[Create a mutable long integer counter
  28466. @param name of the metric
  28467. @param desc metric description
  28468. @param iVal initial value
  28469. @return a new counter object]]>
  28470. </doc>
  28471. </method>
  28472. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  28473. abstract="false" native="false" synchronized="true"
  28474. static="false" final="false" visibility="public"
  28475. deprecated="not deprecated">
  28476. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28477. <param name="iVal" type="long"/>
  28478. <doc>
  28479. <![CDATA[Create a mutable long integer counter
  28480. @param info metadata of the metric
  28481. @param iVal initial value
  28482. @return a new counter object]]>
  28483. </doc>
  28484. </method>
  28485. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  28486. abstract="false" native="false" synchronized="false"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. <param name="name" type="java.lang.String"/>
  28490. <param name="desc" type="java.lang.String"/>
  28491. <param name="iVal" type="int"/>
  28492. <doc>
  28493. <![CDATA[Create a mutable integer gauge
  28494. @param name of the metric
  28495. @param desc metric description
  28496. @param iVal initial value
  28497. @return a new gauge object]]>
  28498. </doc>
  28499. </method>
  28500. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  28501. abstract="false" native="false" synchronized="true"
  28502. static="false" final="false" visibility="public"
  28503. deprecated="not deprecated">
  28504. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28505. <param name="iVal" type="int"/>
  28506. <doc>
  28507. <![CDATA[Create a mutable integer gauge
  28508. @param info metadata of the metric
  28509. @param iVal initial value
  28510. @return a new gauge object]]>
  28511. </doc>
  28512. </method>
  28513. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  28514. abstract="false" native="false" synchronized="false"
  28515. static="false" final="false" visibility="public"
  28516. deprecated="not deprecated">
  28517. <param name="name" type="java.lang.String"/>
  28518. <param name="desc" type="java.lang.String"/>
  28519. <param name="iVal" type="long"/>
  28520. <doc>
  28521. <![CDATA[Create a mutable long integer gauge
  28522. @param name of the metric
  28523. @param desc metric description
  28524. @param iVal initial value
  28525. @return a new gauge object]]>
  28526. </doc>
  28527. </method>
  28528. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  28529. abstract="false" native="false" synchronized="true"
  28530. static="false" final="false" visibility="public"
  28531. deprecated="not deprecated">
  28532. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28533. <param name="iVal" type="long"/>
  28534. <doc>
  28535. <![CDATA[Create a mutable long integer gauge
  28536. @param info metadata of the metric
  28537. @param iVal initial value
  28538. @return a new gauge object]]>
  28539. </doc>
  28540. </method>
  28541. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  28542. abstract="false" native="false" synchronized="false"
  28543. static="false" final="false" visibility="public"
  28544. deprecated="not deprecated">
  28545. <param name="name" type="java.lang.String"/>
  28546. <param name="desc" type="java.lang.String"/>
  28547. <param name="iVal" type="float"/>
  28548. <doc>
  28549. <![CDATA[Create a mutable float gauge
  28550. @param name of the metric
  28551. @param desc metric description
  28552. @param iVal initial value
  28553. @return a new gauge object]]>
  28554. </doc>
  28555. </method>
  28556. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  28557. abstract="false" native="false" synchronized="true"
  28558. static="false" final="false" visibility="public"
  28559. deprecated="not deprecated">
  28560. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28561. <param name="iVal" type="float"/>
  28562. <doc>
  28563. <![CDATA[Create a mutable float gauge
  28564. @param info metadata of the metric
  28565. @param iVal initial value
  28566. @return a new gauge object]]>
  28567. </doc>
  28568. </method>
  28569. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  28570. abstract="false" native="false" synchronized="true"
  28571. static="false" final="false" visibility="public"
  28572. deprecated="not deprecated">
  28573. <param name="name" type="java.lang.String"/>
  28574. <param name="desc" type="java.lang.String"/>
  28575. <param name="sampleName" type="java.lang.String"/>
  28576. <param name="valueName" type="java.lang.String"/>
  28577. <param name="interval" type="int"/>
  28578. <doc>
  28579. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  28580. @param name of the metric
  28581. @param desc metric description
  28582. @param sampleName of the metric (e.g., "Ops")
  28583. @param valueName of the metric (e.g., "Time" or "Latency")
  28584. @param interval rollover interval of estimator in seconds
  28585. @return a new quantile estimator object
  28586. @throws MetricsException if interval is not a positive integer]]>
  28587. </doc>
  28588. </method>
  28589. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  28590. abstract="false" native="false" synchronized="true"
  28591. static="false" final="false" visibility="public"
  28592. deprecated="not deprecated">
  28593. <param name="name" type="java.lang.String"/>
  28594. <param name="desc" type="java.lang.String"/>
  28595. <param name="sampleName" type="java.lang.String"/>
  28596. <param name="valueName" type="java.lang.String"/>
  28597. <param name="extended" type="boolean"/>
  28598. <doc>
  28599. <![CDATA[Create a mutable metric with stats
  28600. @param name of the metric
  28601. @param desc metric description
  28602. @param sampleName of the metric (e.g., "Ops")
  28603. @param valueName of the metric (e.g., "Time" or "Latency")
  28604. @param extended produce extended stat (stdev, min/max etc.) if true.
  28605. @return a new mutable stat metric object]]>
  28606. </doc>
  28607. </method>
  28608. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  28609. abstract="false" native="false" synchronized="false"
  28610. static="false" final="false" visibility="public"
  28611. deprecated="not deprecated">
  28612. <param name="name" type="java.lang.String"/>
  28613. <param name="desc" type="java.lang.String"/>
  28614. <param name="sampleName" type="java.lang.String"/>
  28615. <param name="valueName" type="java.lang.String"/>
  28616. <doc>
  28617. <![CDATA[Create a mutable metric with stats
  28618. @param name of the metric
  28619. @param desc metric description
  28620. @param sampleName of the metric (e.g., "Ops")
  28621. @param valueName of the metric (e.g., "Time" or "Latency")
  28622. @return a new mutable metric object]]>
  28623. </doc>
  28624. </method>
  28625. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  28626. abstract="false" native="false" synchronized="false"
  28627. static="false" final="false" visibility="public"
  28628. deprecated="not deprecated">
  28629. <param name="name" type="java.lang.String"/>
  28630. <doc>
  28631. <![CDATA[Create a mutable rate metric
  28632. @param name of the metric
  28633. @return a new mutable metric object]]>
  28634. </doc>
  28635. </method>
  28636. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  28637. abstract="false" native="false" synchronized="false"
  28638. static="false" final="false" visibility="public"
  28639. deprecated="not deprecated">
  28640. <param name="name" type="java.lang.String"/>
  28641. <param name="description" type="java.lang.String"/>
  28642. <doc>
  28643. <![CDATA[Create a mutable rate metric
  28644. @param name of the metric
  28645. @param description of the metric
  28646. @return a new mutable rate metric object]]>
  28647. </doc>
  28648. </method>
  28649. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  28650. abstract="false" native="false" synchronized="false"
  28651. static="false" final="false" visibility="public"
  28652. deprecated="not deprecated">
  28653. <param name="name" type="java.lang.String"/>
  28654. <param name="desc" type="java.lang.String"/>
  28655. <param name="extended" type="boolean"/>
  28656. <doc>
  28657. <![CDATA[Create a mutable rate metric (for throughput measurement)
  28658. @param name of the metric
  28659. @param desc description
  28660. @param extended produce extended stat (stdev/min/max etc.) if true
  28661. @return a new mutable rate metric object]]>
  28662. </doc>
  28663. </method>
  28664. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  28665. abstract="false" native="false" synchronized="true"
  28666. static="false" final="false" visibility="public"
  28667. deprecated="not deprecated">
  28668. <param name="name" type="java.lang.String"/>
  28669. </method>
  28670. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  28671. abstract="false" native="false" synchronized="true"
  28672. static="false" final="false" visibility="public"
  28673. deprecated="not deprecated">
  28674. <param name="name" type="java.lang.String"/>
  28675. <param name="valueName" type="java.lang.String"/>
  28676. </method>
  28677. <method name="add"
  28678. abstract="false" native="false" synchronized="true"
  28679. static="false" final="false" visibility="public"
  28680. deprecated="not deprecated">
  28681. <param name="name" type="java.lang.String"/>
  28682. <param name="value" type="long"/>
  28683. <doc>
  28684. <![CDATA[Add sample to a stat metric by name.
  28685. @param name of the metric
  28686. @param value of the snapshot to add]]>
  28687. </doc>
  28688. </method>
  28689. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28690. abstract="false" native="false" synchronized="false"
  28691. static="false" final="false" visibility="public"
  28692. deprecated="not deprecated">
  28693. <param name="name" type="java.lang.String"/>
  28694. <doc>
  28695. <![CDATA[Set the metrics context tag
  28696. @param name of the context
  28697. @return the registry itself as a convenience]]>
  28698. </doc>
  28699. </method>
  28700. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28701. abstract="false" native="false" synchronized="false"
  28702. static="false" final="false" visibility="public"
  28703. deprecated="not deprecated">
  28704. <param name="name" type="java.lang.String"/>
  28705. <param name="description" type="java.lang.String"/>
  28706. <param name="value" type="java.lang.String"/>
  28707. <doc>
  28708. <![CDATA[Add a tag to the metrics
  28709. @param name of the tag
  28710. @param description of the tag
  28711. @param value of the tag
  28712. @return the registry (for keep adding tags)]]>
  28713. </doc>
  28714. </method>
  28715. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28716. abstract="false" native="false" synchronized="false"
  28717. static="false" final="false" visibility="public"
  28718. deprecated="not deprecated">
  28719. <param name="name" type="java.lang.String"/>
  28720. <param name="description" type="java.lang.String"/>
  28721. <param name="value" type="java.lang.String"/>
  28722. <param name="override" type="boolean"/>
  28723. <doc>
  28724. <![CDATA[Add a tag to the metrics
  28725. @param name of the tag
  28726. @param description of the tag
  28727. @param value of the tag
  28728. @param override existing tag if true
  28729. @return the registry (for keep adding tags)]]>
  28730. </doc>
  28731. </method>
  28732. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28733. abstract="false" native="false" synchronized="true"
  28734. static="false" final="false" visibility="public"
  28735. deprecated="not deprecated">
  28736. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28737. <param name="value" type="java.lang.String"/>
  28738. <param name="override" type="boolean"/>
  28739. <doc>
  28740. <![CDATA[Add a tag to the metrics
  28741. @param info metadata of the tag
  28742. @param value of the tag
  28743. @param override existing tag if true
  28744. @return the registry (for keep adding tags etc.)]]>
  28745. </doc>
  28746. </method>
  28747. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28748. abstract="false" native="false" synchronized="false"
  28749. static="false" final="false" visibility="public"
  28750. deprecated="not deprecated">
  28751. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28752. <param name="value" type="java.lang.String"/>
  28753. </method>
  28754. <method name="snapshot"
  28755. abstract="false" native="false" synchronized="true"
  28756. static="false" final="false" visibility="public"
  28757. deprecated="not deprecated">
  28758. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28759. <param name="all" type="boolean"/>
  28760. <doc>
  28761. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  28762. @param builder to contain the metrics snapshot
  28763. @param all get all the metrics even if the values are not changed.]]>
  28764. </doc>
  28765. </method>
  28766. <method name="toString" return="java.lang.String"
  28767. abstract="false" native="false" synchronized="false"
  28768. static="false" final="false" visibility="public"
  28769. deprecated="not deprecated">
  28770. </method>
  28771. <doc>
  28772. <![CDATA[An optional metrics registry class for creating and maintaining a
  28773. collection of MetricsMutables, making writing metrics source easier.]]>
  28774. </doc>
  28775. </class>
  28776. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28777. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  28778. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  28779. abstract="true"
  28780. static="false" final="false" visibility="public"
  28781. deprecated="not deprecated">
  28782. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  28783. static="false" final="false" visibility="protected"
  28784. deprecated="not deprecated">
  28785. </constructor>
  28786. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  28787. abstract="false" native="false" synchronized="false"
  28788. static="false" final="false" visibility="protected"
  28789. deprecated="not deprecated">
  28790. </method>
  28791. <method name="incr"
  28792. abstract="true" native="false" synchronized="false"
  28793. static="false" final="false" visibility="public"
  28794. deprecated="not deprecated">
  28795. <doc>
  28796. <![CDATA[Increment the metric value by 1.]]>
  28797. </doc>
  28798. </method>
  28799. <doc>
  28800. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  28801. </doc>
  28802. </class>
  28803. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  28804. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  28805. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  28806. abstract="false"
  28807. static="false" final="false" visibility="public"
  28808. deprecated="not deprecated">
  28809. <method name="incr"
  28810. abstract="false" native="false" synchronized="false"
  28811. static="false" final="false" visibility="public"
  28812. deprecated="not deprecated">
  28813. </method>
  28814. <method name="incr"
  28815. abstract="false" native="false" synchronized="true"
  28816. static="false" final="false" visibility="public"
  28817. deprecated="not deprecated">
  28818. <param name="delta" type="int"/>
  28819. <doc>
  28820. <![CDATA[Increment the value by a delta
  28821. @param delta of the increment]]>
  28822. </doc>
  28823. </method>
  28824. <method name="value" return="int"
  28825. abstract="false" native="false" synchronized="false"
  28826. static="false" final="false" visibility="public"
  28827. deprecated="not deprecated">
  28828. </method>
  28829. <method name="snapshot"
  28830. abstract="false" native="false" synchronized="false"
  28831. static="false" final="false" visibility="public"
  28832. deprecated="not deprecated">
  28833. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28834. <param name="all" type="boolean"/>
  28835. </method>
  28836. <doc>
  28837. <![CDATA[A mutable int counter for implementing metrics sources]]>
  28838. </doc>
  28839. </class>
  28840. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  28841. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  28842. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  28843. abstract="false"
  28844. static="false" final="false" visibility="public"
  28845. deprecated="not deprecated">
  28846. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  28847. static="false" final="false" visibility="public"
  28848. deprecated="not deprecated">
  28849. </constructor>
  28850. <method name="incr"
  28851. abstract="false" native="false" synchronized="false"
  28852. static="false" final="false" visibility="public"
  28853. deprecated="not deprecated">
  28854. </method>
  28855. <method name="incr"
  28856. abstract="false" native="false" synchronized="false"
  28857. static="false" final="false" visibility="public"
  28858. deprecated="not deprecated">
  28859. <param name="delta" type="long"/>
  28860. <doc>
  28861. <![CDATA[Increment the value by a delta
  28862. @param delta of the increment]]>
  28863. </doc>
  28864. </method>
  28865. <method name="value" return="long"
  28866. abstract="false" native="false" synchronized="false"
  28867. static="false" final="false" visibility="public"
  28868. deprecated="not deprecated">
  28869. </method>
  28870. <method name="snapshot"
  28871. abstract="false" native="false" synchronized="false"
  28872. static="false" final="false" visibility="public"
  28873. deprecated="not deprecated">
  28874. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28875. <param name="all" type="boolean"/>
  28876. </method>
  28877. <doc>
  28878. <![CDATA[A mutable long counter]]>
  28879. </doc>
  28880. </class>
  28881. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  28882. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  28883. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  28884. abstract="true"
  28885. static="false" final="false" visibility="public"
  28886. deprecated="not deprecated">
  28887. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  28888. static="false" final="false" visibility="protected"
  28889. deprecated="not deprecated">
  28890. </constructor>
  28891. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  28892. abstract="false" native="false" synchronized="false"
  28893. static="false" final="false" visibility="protected"
  28894. deprecated="not deprecated">
  28895. </method>
  28896. <method name="incr"
  28897. abstract="true" native="false" synchronized="false"
  28898. static="false" final="false" visibility="public"
  28899. deprecated="not deprecated">
  28900. <doc>
  28901. <![CDATA[Increment the value of the metric by 1]]>
  28902. </doc>
  28903. </method>
  28904. <method name="decr"
  28905. abstract="true" native="false" synchronized="false"
  28906. static="false" final="false" visibility="public"
  28907. deprecated="not deprecated">
  28908. <doc>
  28909. <![CDATA[Decrement the value of the metric by 1]]>
  28910. </doc>
  28911. </method>
  28912. <doc>
  28913. <![CDATA[The mutable gauge metric interface]]>
  28914. </doc>
  28915. </class>
  28916. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  28917. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  28918. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  28919. abstract="false"
  28920. static="false" final="false" visibility="public"
  28921. deprecated="not deprecated">
  28922. <method name="value" return="int"
  28923. abstract="false" native="false" synchronized="false"
  28924. static="false" final="false" visibility="public"
  28925. deprecated="not deprecated">
  28926. </method>
  28927. <method name="incr"
  28928. abstract="false" native="false" synchronized="false"
  28929. static="false" final="false" visibility="public"
  28930. deprecated="not deprecated">
  28931. </method>
  28932. <method name="incr"
  28933. abstract="false" native="false" synchronized="false"
  28934. static="false" final="false" visibility="public"
  28935. deprecated="not deprecated">
  28936. <param name="delta" type="int"/>
  28937. <doc>
  28938. <![CDATA[Increment by delta
  28939. @param delta of the increment]]>
  28940. </doc>
  28941. </method>
  28942. <method name="decr"
  28943. abstract="false" native="false" synchronized="false"
  28944. static="false" final="false" visibility="public"
  28945. deprecated="not deprecated">
  28946. </method>
  28947. <method name="decr"
  28948. abstract="false" native="false" synchronized="false"
  28949. static="false" final="false" visibility="public"
  28950. deprecated="not deprecated">
  28951. <param name="delta" type="int"/>
  28952. <doc>
  28953. <![CDATA[decrement by delta
  28954. @param delta of the decrement]]>
  28955. </doc>
  28956. </method>
  28957. <method name="set"
  28958. abstract="false" native="false" synchronized="false"
  28959. static="false" final="false" visibility="public"
  28960. deprecated="not deprecated">
  28961. <param name="value" type="int"/>
  28962. <doc>
  28963. <![CDATA[Set the value of the metric
  28964. @param value to set]]>
  28965. </doc>
  28966. </method>
  28967. <method name="snapshot"
  28968. abstract="false" native="false" synchronized="false"
  28969. static="false" final="false" visibility="public"
  28970. deprecated="not deprecated">
  28971. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28972. <param name="all" type="boolean"/>
  28973. </method>
  28974. <method name="toString" return="java.lang.String"
  28975. abstract="false" native="false" synchronized="false"
  28976. static="false" final="false" visibility="public"
  28977. deprecated="not deprecated">
  28978. <doc>
  28979. <![CDATA[@return the value of the metric]]>
  28980. </doc>
  28981. </method>
  28982. <doc>
  28983. <![CDATA[A mutable int gauge]]>
  28984. </doc>
  28985. </class>
  28986. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  28987. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  28988. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  28989. abstract="false"
  28990. static="false" final="false" visibility="public"
  28991. deprecated="not deprecated">
  28992. <method name="value" return="long"
  28993. abstract="false" native="false" synchronized="false"
  28994. static="false" final="false" visibility="public"
  28995. deprecated="not deprecated">
  28996. </method>
  28997. <method name="incr"
  28998. abstract="false" native="false" synchronized="false"
  28999. static="false" final="false" visibility="public"
  29000. deprecated="not deprecated">
  29001. </method>
  29002. <method name="incr"
  29003. abstract="false" native="false" synchronized="false"
  29004. static="false" final="false" visibility="public"
  29005. deprecated="not deprecated">
  29006. <param name="delta" type="long"/>
  29007. <doc>
  29008. <![CDATA[Increment by delta
  29009. @param delta of the increment]]>
  29010. </doc>
  29011. </method>
  29012. <method name="decr"
  29013. abstract="false" native="false" synchronized="false"
  29014. static="false" final="false" visibility="public"
  29015. deprecated="not deprecated">
  29016. </method>
  29017. <method name="decr"
  29018. abstract="false" native="false" synchronized="false"
  29019. static="false" final="false" visibility="public"
  29020. deprecated="not deprecated">
  29021. <param name="delta" type="long"/>
  29022. <doc>
  29023. <![CDATA[decrement by delta
  29024. @param delta of the decrement]]>
  29025. </doc>
  29026. </method>
  29027. <method name="set"
  29028. abstract="false" native="false" synchronized="false"
  29029. static="false" final="false" visibility="public"
  29030. deprecated="not deprecated">
  29031. <param name="value" type="long"/>
  29032. <doc>
  29033. <![CDATA[Set the value of the metric
  29034. @param value to set]]>
  29035. </doc>
  29036. </method>
  29037. <method name="snapshot"
  29038. abstract="false" native="false" synchronized="false"
  29039. static="false" final="false" visibility="public"
  29040. deprecated="not deprecated">
  29041. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29042. <param name="all" type="boolean"/>
  29043. </method>
  29044. <method name="toString" return="java.lang.String"
  29045. abstract="false" native="false" synchronized="false"
  29046. static="false" final="false" visibility="public"
  29047. deprecated="not deprecated">
  29048. <doc>
  29049. <![CDATA[@return the value of the metric]]>
  29050. </doc>
  29051. </method>
  29052. <doc>
  29053. <![CDATA[A mutable long gauge]]>
  29054. </doc>
  29055. </class>
  29056. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  29057. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  29058. <class name="MutableMetric" extends="java.lang.Object"
  29059. abstract="true"
  29060. static="false" final="false" visibility="public"
  29061. deprecated="not deprecated">
  29062. <constructor name="MutableMetric"
  29063. static="false" final="false" visibility="public"
  29064. deprecated="not deprecated">
  29065. </constructor>
  29066. <method name="snapshot"
  29067. abstract="true" native="false" synchronized="false"
  29068. static="false" final="false" visibility="public"
  29069. deprecated="not deprecated">
  29070. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29071. <param name="all" type="boolean"/>
  29072. <doc>
  29073. <![CDATA[Get a snapshot of the metric
  29074. @param builder the metrics record builder
  29075. @param all if true, snapshot unchanged metrics as well]]>
  29076. </doc>
  29077. </method>
  29078. <method name="snapshot"
  29079. abstract="false" native="false" synchronized="false"
  29080. static="false" final="false" visibility="public"
  29081. deprecated="not deprecated">
  29082. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29083. <doc>
  29084. <![CDATA[Get a snapshot of metric if changed
  29085. @param builder the metrics record builder]]>
  29086. </doc>
  29087. </method>
  29088. <method name="setChanged"
  29089. abstract="false" native="false" synchronized="false"
  29090. static="false" final="false" visibility="protected"
  29091. deprecated="not deprecated">
  29092. <doc>
  29093. <![CDATA[Set the changed flag in mutable operations]]>
  29094. </doc>
  29095. </method>
  29096. <method name="clearChanged"
  29097. abstract="false" native="false" synchronized="false"
  29098. static="false" final="false" visibility="protected"
  29099. deprecated="not deprecated">
  29100. <doc>
  29101. <![CDATA[Clear the changed flag in the snapshot operations]]>
  29102. </doc>
  29103. </method>
  29104. <method name="changed" return="boolean"
  29105. abstract="false" native="false" synchronized="false"
  29106. static="false" final="false" visibility="public"
  29107. deprecated="not deprecated">
  29108. <doc>
  29109. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  29110. </doc>
  29111. </method>
  29112. <doc>
  29113. <![CDATA[The mutable metric interface]]>
  29114. </doc>
  29115. </class>
  29116. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  29117. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  29118. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  29119. abstract="false"
  29120. static="false" final="false" visibility="public"
  29121. deprecated="not deprecated">
  29122. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  29123. static="false" final="false" visibility="public"
  29124. deprecated="not deprecated">
  29125. <doc>
  29126. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  29127. over on the specified time interval.
  29128. @param name
  29129. of the metric
  29130. @param description
  29131. long-form textual description of the metric
  29132. @param sampleName
  29133. type of items in the stream (e.g., "Ops")
  29134. @param valueName
  29135. type of the values
  29136. @param interval
  29137. rollover interval (in seconds) of the estimator]]>
  29138. </doc>
  29139. </constructor>
  29140. <method name="snapshot"
  29141. abstract="false" native="false" synchronized="true"
  29142. static="false" final="false" visibility="public"
  29143. deprecated="not deprecated">
  29144. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29145. <param name="all" type="boolean"/>
  29146. </method>
  29147. <method name="add"
  29148. abstract="false" native="false" synchronized="true"
  29149. static="false" final="false" visibility="public"
  29150. deprecated="not deprecated">
  29151. <param name="value" type="long"/>
  29152. </method>
  29153. <method name="getInterval" return="int"
  29154. abstract="false" native="false" synchronized="false"
  29155. static="false" final="false" visibility="public"
  29156. deprecated="not deprecated">
  29157. </method>
  29158. <method name="stop"
  29159. abstract="false" native="false" synchronized="false"
  29160. static="false" final="false" visibility="public"
  29161. deprecated="not deprecated">
  29162. </method>
  29163. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  29164. abstract="false" native="false" synchronized="true"
  29165. static="false" final="false" visibility="public"
  29166. deprecated="not deprecated">
  29167. <doc>
  29168. <![CDATA[Get the quantile estimator.
  29169. @return the quantile estimator]]>
  29170. </doc>
  29171. </method>
  29172. <method name="setEstimator"
  29173. abstract="false" native="false" synchronized="true"
  29174. static="false" final="false" visibility="public"
  29175. deprecated="not deprecated">
  29176. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  29177. </method>
  29178. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  29179. transient="false" volatile="false"
  29180. static="true" final="true" visibility="public"
  29181. deprecated="not deprecated">
  29182. </field>
  29183. <field name="previousSnapshot" type="java.util.Map"
  29184. transient="false" volatile="false"
  29185. static="false" final="false" visibility="protected"
  29186. deprecated="not deprecated">
  29187. </field>
  29188. <doc>
  29189. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  29190. quantiles with provably low error bounds. This is particularly useful for
  29191. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  29192. </doc>
  29193. </class>
  29194. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  29195. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  29196. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  29197. abstract="false"
  29198. static="false" final="false" visibility="public"
  29199. deprecated="not deprecated">
  29200. <doc>
  29201. <![CDATA[A convenient mutable metric for throughput measurement]]>
  29202. </doc>
  29203. </class>
  29204. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  29205. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  29206. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  29207. abstract="false"
  29208. static="false" final="false" visibility="public"
  29209. deprecated="not deprecated">
  29210. <method name="init"
  29211. abstract="false" native="false" synchronized="false"
  29212. static="false" final="false" visibility="public"
  29213. deprecated="not deprecated">
  29214. <param name="protocol" type="java.lang.Class"/>
  29215. <doc>
  29216. <![CDATA[Initialize the registry with all the methods in a protocol
  29217. so they all show up in the first snapshot.
  29218. Convenient for JMX implementations.
  29219. @param protocol the protocol class]]>
  29220. </doc>
  29221. </method>
  29222. <method name="add"
  29223. abstract="false" native="false" synchronized="false"
  29224. static="false" final="false" visibility="public"
  29225. deprecated="not deprecated">
  29226. <param name="name" type="java.lang.String"/>
  29227. <param name="elapsed" type="long"/>
  29228. <doc>
  29229. <![CDATA[Add a rate sample for a rate metric
  29230. @param name of the rate metric
  29231. @param elapsed time]]>
  29232. </doc>
  29233. </method>
  29234. <method name="snapshot"
  29235. abstract="false" native="false" synchronized="false"
  29236. static="false" final="false" visibility="public"
  29237. deprecated="not deprecated">
  29238. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29239. <param name="all" type="boolean"/>
  29240. </method>
  29241. <doc>
  29242. <![CDATA[Helper class to manage a group of mutable rate metrics
  29243. This class synchronizes all accesses to the metrics it
  29244. contains, so it should not be used in situations where
  29245. there is high contention on the metrics.
  29246. {@link MutableRatesWithAggregation} is preferable in that
  29247. situation.]]>
  29248. </doc>
  29249. </class>
  29250. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  29251. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  29252. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  29253. abstract="false"
  29254. static="false" final="false" visibility="public"
  29255. deprecated="not deprecated">
  29256. <constructor name="MutableRatesWithAggregation"
  29257. static="false" final="false" visibility="public"
  29258. deprecated="not deprecated">
  29259. </constructor>
  29260. <method name="init"
  29261. abstract="false" native="false" synchronized="false"
  29262. static="false" final="false" visibility="public"
  29263. deprecated="not deprecated">
  29264. <param name="protocol" type="java.lang.Class"/>
  29265. <doc>
  29266. <![CDATA[Initialize the registry with all the methods in a protocol
  29267. so they all show up in the first snapshot.
  29268. Convenient for JMX implementations.
  29269. @param protocol the protocol class]]>
  29270. </doc>
  29271. </method>
  29272. <method name="init"
  29273. abstract="false" native="false" synchronized="false"
  29274. static="false" final="false" visibility="public"
  29275. deprecated="not deprecated">
  29276. <param name="names" type="java.lang.String[]"/>
  29277. <doc>
  29278. <![CDATA[Initialize the registry with all rate names passed in.
  29279. This is an alternative to the above init function since this metric
  29280. can be used more than just for rpc name.
  29281. @param names the array of all rate names]]>
  29282. </doc>
  29283. </method>
  29284. <method name="add"
  29285. abstract="false" native="false" synchronized="false"
  29286. static="false" final="false" visibility="public"
  29287. deprecated="not deprecated">
  29288. <param name="name" type="java.lang.String"/>
  29289. <param name="elapsed" type="long"/>
  29290. <doc>
  29291. <![CDATA[Add a rate sample for a rate metric.
  29292. @param name of the rate metric
  29293. @param elapsed time]]>
  29294. </doc>
  29295. </method>
  29296. <method name="snapshot"
  29297. abstract="false" native="false" synchronized="true"
  29298. static="false" final="false" visibility="public"
  29299. deprecated="not deprecated">
  29300. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29301. <param name="all" type="boolean"/>
  29302. </method>
  29303. <method name="init"
  29304. abstract="false" native="false" synchronized="false"
  29305. static="false" final="false" visibility="public"
  29306. deprecated="not deprecated">
  29307. <param name="protocol" type="java.lang.Class"/>
  29308. <param name="prefix" type="java.lang.String"/>
  29309. </method>
  29310. <doc>
  29311. <![CDATA[Helper class to manage a group of mutable rate metrics.
  29312. Each thread will maintain a local rate count, and upon snapshot,
  29313. these values will be aggregated into a global rate. This class
  29314. should only be used for long running threads, as any metrics
  29315. produced between the last snapshot and the death of a thread
  29316. will be lost. This allows for significantly higher concurrency
  29317. than {@link MutableRates}. See HADOOP-24420.]]>
  29318. </doc>
  29319. </class>
  29320. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  29321. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  29322. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  29323. abstract="false"
  29324. static="false" final="false" visibility="public"
  29325. deprecated="not deprecated">
  29326. <implements name="java.io.Closeable"/>
  29327. <constructor name="MutableRollingAverages" type="java.lang.String"
  29328. static="false" final="false" visibility="public"
  29329. deprecated="not deprecated">
  29330. <doc>
  29331. <![CDATA[Constructor for {@link MutableRollingAverages}.
  29332. @param metricValueName]]>
  29333. </doc>
  29334. </constructor>
  29335. <method name="snapshot"
  29336. abstract="false" native="false" synchronized="false"
  29337. static="false" final="false" visibility="public"
  29338. deprecated="not deprecated">
  29339. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29340. <param name="all" type="boolean"/>
  29341. </method>
  29342. <method name="collectThreadLocalStates"
  29343. abstract="false" native="false" synchronized="false"
  29344. static="false" final="false" visibility="public"
  29345. deprecated="not deprecated">
  29346. <doc>
  29347. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  29348. </doc>
  29349. </method>
  29350. <method name="add"
  29351. abstract="false" native="false" synchronized="false"
  29352. static="false" final="false" visibility="public"
  29353. deprecated="not deprecated">
  29354. <param name="name" type="java.lang.String"/>
  29355. <param name="value" type="long"/>
  29356. <doc>
  29357. <![CDATA[@param name
  29358. name of metric
  29359. @param value
  29360. value of metric]]>
  29361. </doc>
  29362. </method>
  29363. <method name="close"
  29364. abstract="false" native="false" synchronized="false"
  29365. static="false" final="false" visibility="public"
  29366. deprecated="not deprecated">
  29367. <exception name="IOException" type="java.io.IOException"/>
  29368. </method>
  29369. <method name="getStats" return="java.util.Map"
  29370. abstract="false" native="false" synchronized="true"
  29371. static="false" final="false" visibility="public"
  29372. deprecated="not deprecated">
  29373. <param name="minSamples" type="long"/>
  29374. <doc>
  29375. <![CDATA[Retrieve a map of metric name {@literal ->} (aggregate).
  29376. Filter out entries that don't have at least minSamples.
  29377. @return a map of peer DataNode Id to the average latency to that
  29378. node seen over the measurement period.]]>
  29379. </doc>
  29380. </method>
  29381. <method name="setRecordValidityMs"
  29382. abstract="false" native="false" synchronized="true"
  29383. static="false" final="false" visibility="public"
  29384. deprecated="not deprecated">
  29385. <param name="value" type="long"/>
  29386. <doc>
  29387. <![CDATA[Use for test only.]]>
  29388. </doc>
  29389. </method>
  29390. <doc>
  29391. <![CDATA[<p>
  29392. This class maintains a group of rolling average metrics. It implements the
  29393. algorithm of rolling average, i.e. a number of sliding windows are kept to
  29394. roll over and evict old subsets of samples. Each window has a subset of
  29395. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  29396. and sub-totals in all windows will be aggregated to final-sum and final-total
  29397. used to compute final average, which is called rolling average.
  29398. </p>]]>
  29399. </doc>
  29400. </class>
  29401. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  29402. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  29403. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  29404. abstract="false"
  29405. static="false" final="false" visibility="public"
  29406. deprecated="not deprecated">
  29407. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  29408. static="false" final="false" visibility="public"
  29409. deprecated="not deprecated">
  29410. <doc>
  29411. <![CDATA[Construct a sample statistics metric
  29412. @param name of the metric
  29413. @param description of the metric
  29414. @param sampleName of the metric (e.g. "Ops")
  29415. @param valueName of the metric (e.g. "Time", "Latency")
  29416. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  29417. </doc>
  29418. </constructor>
  29419. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  29420. static="false" final="false" visibility="public"
  29421. deprecated="not deprecated">
  29422. <doc>
  29423. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  29424. @param name of the metric
  29425. @param description of the metric
  29426. @param sampleName of the metric (e.g. "Ops")
  29427. @param valueName of the metric (e.g. "Time", "Latency")]]>
  29428. </doc>
  29429. </constructor>
  29430. <method name="setExtended"
  29431. abstract="false" native="false" synchronized="true"
  29432. static="false" final="false" visibility="public"
  29433. deprecated="not deprecated">
  29434. <param name="extended" type="boolean"/>
  29435. <doc>
  29436. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  29437. @param extended enable/disable displaying extended stats]]>
  29438. </doc>
  29439. </method>
  29440. <method name="setUpdateTimeStamp"
  29441. abstract="false" native="false" synchronized="true"
  29442. static="false" final="false" visibility="public"
  29443. deprecated="not deprecated">
  29444. <param name="updateTimeStamp" type="boolean"/>
  29445. <doc>
  29446. <![CDATA[Set whether to update the snapshot time or not.
  29447. @param updateTimeStamp enable update stats snapshot timestamp]]>
  29448. </doc>
  29449. </method>
  29450. <method name="add"
  29451. abstract="false" native="false" synchronized="true"
  29452. static="false" final="false" visibility="public"
  29453. deprecated="not deprecated">
  29454. <param name="numSamples" type="long"/>
  29455. <param name="sum" type="long"/>
  29456. <doc>
  29457. <![CDATA[Add a number of samples and their sum to the running stat
  29458. Note that although use of this method will preserve accurate mean values,
  29459. large values for numSamples may result in inaccurate variance values due
  29460. to the use of a single step of the Welford method for variance calculation.
  29461. @param numSamples number of samples
  29462. @param sum of the samples]]>
  29463. </doc>
  29464. </method>
  29465. <method name="add"
  29466. abstract="false" native="false" synchronized="true"
  29467. static="false" final="false" visibility="public"
  29468. deprecated="not deprecated">
  29469. <param name="value" type="long"/>
  29470. <doc>
  29471. <![CDATA[Add a snapshot to the metric.
  29472. @param value of the metric]]>
  29473. </doc>
  29474. </method>
  29475. <method name="snapshot"
  29476. abstract="false" native="false" synchronized="true"
  29477. static="false" final="false" visibility="public"
  29478. deprecated="not deprecated">
  29479. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29480. <param name="all" type="boolean"/>
  29481. </method>
  29482. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  29483. abstract="false" native="false" synchronized="false"
  29484. static="false" final="false" visibility="public"
  29485. deprecated="not deprecated">
  29486. <doc>
  29487. <![CDATA[Return a SampleStat object that supports
  29488. calls like StdDev and Mean.
  29489. @return SampleStat]]>
  29490. </doc>
  29491. </method>
  29492. <method name="resetMinMax"
  29493. abstract="false" native="false" synchronized="false"
  29494. static="false" final="false" visibility="public"
  29495. deprecated="not deprecated">
  29496. <doc>
  29497. <![CDATA[Reset the all time min max of the metric]]>
  29498. </doc>
  29499. </method>
  29500. <method name="getSnapshotTimeStamp" return="long"
  29501. abstract="false" native="false" synchronized="false"
  29502. static="false" final="false" visibility="public"
  29503. deprecated="not deprecated">
  29504. <doc>
  29505. <![CDATA[Return the SampleStat snapshot timestamp]]>
  29506. </doc>
  29507. </method>
  29508. <method name="toString" return="java.lang.String"
  29509. abstract="false" native="false" synchronized="false"
  29510. static="false" final="false" visibility="public"
  29511. deprecated="not deprecated">
  29512. </method>
  29513. <doc>
  29514. <![CDATA[A mutable metric with stats.
  29515. Useful for keeping throughput/latency stats.]]>
  29516. </doc>
  29517. </class>
  29518. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  29519. </package>
  29520. <package name="org.apache.hadoop.metrics2.sink">
  29521. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  29522. <class name="FileSink" extends="java.lang.Object"
  29523. abstract="false"
  29524. static="false" final="false" visibility="public"
  29525. deprecated="not deprecated">
  29526. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  29527. <implements name="java.io.Closeable"/>
  29528. <constructor name="FileSink"
  29529. static="false" final="false" visibility="public"
  29530. deprecated="not deprecated">
  29531. </constructor>
  29532. <method name="init"
  29533. abstract="false" native="false" synchronized="false"
  29534. static="false" final="false" visibility="public"
  29535. deprecated="not deprecated">
  29536. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  29537. </method>
  29538. <method name="putMetrics"
  29539. abstract="false" native="false" synchronized="false"
  29540. static="false" final="false" visibility="public"
  29541. deprecated="not deprecated">
  29542. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29543. </method>
  29544. <method name="flush"
  29545. abstract="false" native="false" synchronized="false"
  29546. static="false" final="false" visibility="public"
  29547. deprecated="not deprecated">
  29548. </method>
  29549. <method name="close"
  29550. abstract="false" native="false" synchronized="false"
  29551. static="false" final="false" visibility="public"
  29552. deprecated="not deprecated">
  29553. <exception name="IOException" type="java.io.IOException"/>
  29554. </method>
  29555. <doc>
  29556. <![CDATA[A metrics sink that writes to a file]]>
  29557. </doc>
  29558. </class>
  29559. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  29560. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  29561. <class name="GraphiteSink" extends="java.lang.Object"
  29562. abstract="false"
  29563. static="false" final="false" visibility="public"
  29564. deprecated="not deprecated">
  29565. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  29566. <implements name="java.io.Closeable"/>
  29567. <constructor name="GraphiteSink"
  29568. static="false" final="false" visibility="public"
  29569. deprecated="not deprecated">
  29570. </constructor>
  29571. <method name="init"
  29572. abstract="false" native="false" synchronized="false"
  29573. static="false" final="false" visibility="public"
  29574. deprecated="not deprecated">
  29575. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  29576. </method>
  29577. <method name="putMetrics"
  29578. abstract="false" native="false" synchronized="false"
  29579. static="false" final="false" visibility="public"
  29580. deprecated="not deprecated">
  29581. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29582. </method>
  29583. <method name="flush"
  29584. abstract="false" native="false" synchronized="false"
  29585. static="false" final="false" visibility="public"
  29586. deprecated="not deprecated">
  29587. </method>
  29588. <method name="close"
  29589. abstract="false" native="false" synchronized="false"
  29590. static="false" final="false" visibility="public"
  29591. deprecated="not deprecated">
  29592. <exception name="IOException" type="java.io.IOException"/>
  29593. </method>
  29594. <doc>
  29595. <![CDATA[A metrics sink that writes to a Graphite server]]>
  29596. </doc>
  29597. </class>
  29598. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  29599. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  29600. <class name="RollingFileSystemSink" extends="java.lang.Object"
  29601. abstract="false"
  29602. static="false" final="false" visibility="public"
  29603. deprecated="not deprecated">
  29604. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  29605. <implements name="java.io.Closeable"/>
  29606. <constructor name="RollingFileSystemSink"
  29607. static="false" final="false" visibility="public"
  29608. deprecated="not deprecated">
  29609. <doc>
  29610. <![CDATA[Create an empty instance. Required for reflection.]]>
  29611. </doc>
  29612. </constructor>
  29613. <constructor name="RollingFileSystemSink" type="long, long"
  29614. static="false" final="false" visibility="protected"
  29615. deprecated="not deprecated">
  29616. <doc>
  29617. <![CDATA[Create an instance for testing.
  29618. @param flushIntervalMillis the roll interval in millis
  29619. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  29620. </doc>
  29621. </constructor>
  29622. <method name="init"
  29623. abstract="false" native="false" synchronized="false"
  29624. static="false" final="false" visibility="public"
  29625. deprecated="not deprecated">
  29626. <param name="metrics2Properties" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  29627. </method>
  29628. <method name="getRollInterval" return="long"
  29629. abstract="false" native="false" synchronized="false"
  29630. static="false" final="false" visibility="protected"
  29631. deprecated="not deprecated">
  29632. <doc>
  29633. <![CDATA[Extract the roll interval from the configuration and return it in
  29634. milliseconds.
  29635. @return the roll interval in millis]]>
  29636. </doc>
  29637. </method>
  29638. <method name="updateFlushTime"
  29639. abstract="false" native="false" synchronized="false"
  29640. static="false" final="false" visibility="protected"
  29641. deprecated="not deprecated">
  29642. <param name="now" type="java.util.Date"/>
  29643. <doc>
  29644. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  29645. an integer number of flush intervals, preserving the initial random offset.
  29646. @param now the current time]]>
  29647. </doc>
  29648. </method>
  29649. <method name="setInitialFlushTime"
  29650. abstract="false" native="false" synchronized="false"
  29651. static="false" final="false" visibility="protected"
  29652. deprecated="not deprecated">
  29653. <param name="now" type="java.util.Date"/>
  29654. <doc>
  29655. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  29656. flush will be an integer number of flush intervals past the beginning of
  29657. the current hour and will have a random offset added, up to
  29658. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  29659. past that can be used from which to calculate future flush times.
  29660. @param now the current time]]>
  29661. </doc>
  29662. </method>
  29663. <method name="putMetrics"
  29664. abstract="false" native="false" synchronized="false"
  29665. static="false" final="false" visibility="public"
  29666. deprecated="not deprecated">
  29667. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29668. </method>
  29669. <method name="flush"
  29670. abstract="false" native="false" synchronized="false"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. </method>
  29674. <method name="close"
  29675. abstract="false" native="false" synchronized="false"
  29676. static="false" final="false" visibility="public"
  29677. deprecated="not deprecated">
  29678. </method>
  29679. <field name="source" type="java.lang.String"
  29680. transient="false" volatile="false"
  29681. static="false" final="false" visibility="protected"
  29682. deprecated="not deprecated">
  29683. </field>
  29684. <field name="ignoreError" type="boolean"
  29685. transient="false" volatile="false"
  29686. static="false" final="false" visibility="protected"
  29687. deprecated="not deprecated">
  29688. </field>
  29689. <field name="allowAppend" type="boolean"
  29690. transient="false" volatile="false"
  29691. static="false" final="false" visibility="protected"
  29692. deprecated="not deprecated">
  29693. </field>
  29694. <field name="basePath" type="org.apache.hadoop.fs.Path"
  29695. transient="false" volatile="false"
  29696. static="false" final="false" visibility="protected"
  29697. deprecated="not deprecated">
  29698. </field>
  29699. <field name="rollIntervalMillis" type="long"
  29700. transient="false" volatile="false"
  29701. static="false" final="false" visibility="protected"
  29702. deprecated="not deprecated">
  29703. </field>
  29704. <field name="rollOffsetIntervalMillis" type="long"
  29705. transient="false" volatile="false"
  29706. static="false" final="false" visibility="protected"
  29707. deprecated="not deprecated">
  29708. </field>
  29709. <field name="nextFlush" type="java.util.Calendar"
  29710. transient="false" volatile="false"
  29711. static="false" final="false" visibility="protected"
  29712. deprecated="not deprecated">
  29713. </field>
  29714. <field name="forceFlush" type="boolean"
  29715. transient="false" volatile="false"
  29716. static="true" final="false" visibility="protected"
  29717. deprecated="not deprecated">
  29718. </field>
  29719. <field name="hasFlushed" type="boolean"
  29720. transient="false" volatile="true"
  29721. static="true" final="false" visibility="protected"
  29722. deprecated="not deprecated">
  29723. </field>
  29724. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  29725. transient="false" volatile="false"
  29726. static="true" final="false" visibility="protected"
  29727. deprecated="not deprecated">
  29728. </field>
  29729. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  29730. transient="false" volatile="false"
  29731. static="true" final="false" visibility="protected"
  29732. deprecated="not deprecated">
  29733. </field>
  29734. <doc>
  29735. <![CDATA[<p>This class is a metrics sink that uses
  29736. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  29737. roll interval a new directory will be created under the path specified by the
  29738. <code>basepath</code> property. All metrics will be logged to a file in the
  29739. current interval's directory in a file named &lt;hostname&gt;.log, where
  29740. &lt;hostname&gt; is the name of the host on which the metrics logging
  29741. process is running. The base path is set by the
  29742. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  29743. time zone used to create the current interval's directory name is GMT. If
  29744. the <code>basepath</code> property isn't specified, it will default to
  29745. &quot;/tmp&quot;, which is the temp directory on whatever default file
  29746. system is configured for the cluster.</p>
  29747. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  29748. property controls whether an exception is thrown when an error is encountered
  29749. writing a log file. The default value is <code>true</code>. When set to
  29750. <code>false</code>, file errors are quietly swallowed.</p>
  29751. <p>The <code>roll-interval</code> property sets the amount of time before
  29752. rolling the directory. The default value is 1 hour. The roll interval may
  29753. not be less than 1 minute. The property's value should be given as
  29754. <i>number unit</i>, where <i>number</i> is an integer value, and
  29755. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  29756. and <i>day</i>. The units are case insensitive and may be abbreviated or
  29757. plural. If no units are specified, hours are assumed. For example,
  29758. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  29759. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  29760. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  29761. bound on a random time interval (in milliseconds) that is used to delay
  29762. before the initial roll. All subsequent rolls will happen an integer
  29763. number of roll intervals after the initial roll, hence retaining the original
  29764. offset. The purpose of this property is to insert some variance in the roll
  29765. times so that large clusters using this sink on every node don't cause a
  29766. performance impact on HDFS by rolling simultaneously. The default value is
  29767. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  29768. millis should be no less than the number of sink instances times 5.
  29769. <p>The primary use of this class is for logging to HDFS. As it uses
  29770. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  29771. however, it can be used to write to the local file system, Amazon S3, or any
  29772. other supported file system. The base path for the sink will determine the
  29773. file system used. An unqualified path will write to the default file system
  29774. set by the configuration.</p>
  29775. <p>Not all file systems support the ability to append to files. In file
  29776. systems without the ability to append to files, only one writer can write to
  29777. a file at a time. To allow for concurrent writes from multiple daemons on a
  29778. single host, the <code>source</code> property is used to set unique headers
  29779. for the log files. The property should be set to the name of
  29780. the source daemon, e.g. <i>namenode</i>. The value of the
  29781. <code>source</code> property should typically be the same as the property's
  29782. prefix. If this property is not set, the source is taken to be
  29783. <i>unknown</i>.</p>
  29784. <p>Instead of appending to an existing file, by default the sink
  29785. will create a new file with a suffix of &quot;.&lt;n&gt;&quot;, where
  29786. <i>n</i> is the next lowest integer that isn't already used in a file name,
  29787. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  29788. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  29789. <p>For file systems that allow append, the sink supports appending to the
  29790. existing file instead. If the <code>allow-append</code> property is set to
  29791. true, the sink will instead append to the existing file on file systems that
  29792. support appends. By default, the <code>allow-append</code> property is
  29793. false.</p>
  29794. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  29795. there is a minimum acceptable number of data nodes. If the number of data
  29796. nodes drops below that minimum, the append will succeed, but reading the
  29797. data will fail with an IOException in the DataStreamer class. The minimum
  29798. number of data nodes required for a successful append is generally 2 or
  29799. 3.</p>
  29800. <p>Note also that when writing to HDFS, the file size information is not
  29801. updated until the file is closed (at the end of the interval) even though
  29802. the data is being written successfully. This is a known HDFS limitation that
  29803. exists because of the performance cost of updating the metadata. See
  29804. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  29805. <p>When using this sink in a secure (Kerberos) environment, two additional
  29806. properties must be set: <code>keytab-key</code> and
  29807. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  29808. which the keytab file can be found in the configuration, for example,
  29809. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  29810. contain the key by which the principal can be found in the configuration,
  29811. for example, <code>yarn.nodemanager.principal</code>.]]>
  29812. </doc>
  29813. </class>
  29814. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  29815. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  29816. <class name="StatsDSink" extends="java.lang.Object"
  29817. abstract="false"
  29818. static="false" final="false" visibility="public"
  29819. deprecated="not deprecated">
  29820. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  29821. <implements name="java.io.Closeable"/>
  29822. <constructor name="StatsDSink"
  29823. static="false" final="false" visibility="public"
  29824. deprecated="not deprecated">
  29825. </constructor>
  29826. <method name="init"
  29827. abstract="false" native="false" synchronized="false"
  29828. static="false" final="false" visibility="public"
  29829. deprecated="not deprecated">
  29830. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  29831. </method>
  29832. <method name="putMetrics"
  29833. abstract="false" native="false" synchronized="false"
  29834. static="false" final="false" visibility="public"
  29835. deprecated="not deprecated">
  29836. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29837. </method>
  29838. <method name="writeMetric"
  29839. abstract="false" native="false" synchronized="false"
  29840. static="false" final="false" visibility="public"
  29841. deprecated="not deprecated">
  29842. <param name="line" type="java.lang.String"/>
  29843. </method>
  29844. <method name="flush"
  29845. abstract="false" native="false" synchronized="false"
  29846. static="false" final="false" visibility="public"
  29847. deprecated="not deprecated">
  29848. </method>
  29849. <method name="close"
  29850. abstract="false" native="false" synchronized="false"
  29851. static="false" final="false" visibility="public"
  29852. deprecated="not deprecated">
  29853. <exception name="IOException" type="java.io.IOException"/>
  29854. </method>
  29855. <doc>
  29856. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  29857. This sink will produce metrics of the form
  29858. '[hostname].servicename.context.name.metricname:value|type'
  29859. where hostname is optional. This is useful when sending to
  29860. a daemon that is running on the localhost and will add the
  29861. hostname to the metric (such as the
  29862. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  29863. <br>
  29864. To configure this plugin, you will need to add the following
  29865. entries to your hadoop-metrics2.properties file:
  29866. <br>
  29867. <pre>
  29868. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  29869. [prefix].sink.statsd.server.host=
  29870. [prefix].sink.statsd.server.port=
  29871. [prefix].sink.statsd.skip.hostname=true|false (optional)
  29872. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  29873. </pre>]]>
  29874. </doc>
  29875. </class>
  29876. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  29877. </package>
  29878. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  29879. </package>
  29880. <package name="org.apache.hadoop.metrics2.source">
  29881. </package>
  29882. <package name="org.apache.hadoop.metrics2.util">
  29883. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  29884. <class name="MBeans" extends="java.lang.Object"
  29885. abstract="false"
  29886. static="false" final="true" visibility="public"
  29887. deprecated="not deprecated">
  29888. <method name="register" return="javax.management.ObjectName"
  29889. abstract="false" native="false" synchronized="false"
  29890. static="true" final="false" visibility="public"
  29891. deprecated="not deprecated">
  29892. <param name="serviceName" type="java.lang.String"/>
  29893. <param name="nameName" type="java.lang.String"/>
  29894. <param name="theMbean" type="java.lang.Object"/>
  29895. <doc>
  29896. <![CDATA[Register the MBean using our standard MBeanName format
  29897. "hadoop:service={@literal <serviceName>,name=<nameName>}"
  29898. Where the {@literal <serviceName> and <nameName>} are the supplied
  29899. parameters.
  29900. @param serviceName
  29901. @param nameName
  29902. @param theMbean - the MBean to register
  29903. @return the named used to register the MBean]]>
  29904. </doc>
  29905. </method>
  29906. <method name="register" return="javax.management.ObjectName"
  29907. abstract="false" native="false" synchronized="false"
  29908. static="true" final="false" visibility="public"
  29909. deprecated="not deprecated">
  29910. <param name="serviceName" type="java.lang.String"/>
  29911. <param name="nameName" type="java.lang.String"/>
  29912. <param name="properties" type="java.util.Map"/>
  29913. <param name="theMbean" type="java.lang.Object"/>
  29914. <doc>
  29915. <![CDATA[Register the MBean using our standard MBeanName format
  29916. "hadoop:service={@literal <serviceName>,name=<nameName>}"
  29917. Where the {@literal <serviceName> and <nameName>} are the supplied
  29918. parameters.
  29919. @param serviceName
  29920. @param nameName
  29921. @param properties - Key value pairs to define additional JMX ObjectName
  29922. properties.
  29923. @param theMbean - the MBean to register
  29924. @return the named used to register the MBean]]>
  29925. </doc>
  29926. </method>
  29927. <method name="getMbeanNameService" return="java.lang.String"
  29928. abstract="false" native="false" synchronized="false"
  29929. static="true" final="false" visibility="public"
  29930. deprecated="not deprecated">
  29931. <param name="objectName" type="javax.management.ObjectName"/>
  29932. </method>
  29933. <method name="getMbeanNameName" return="java.lang.String"
  29934. abstract="false" native="false" synchronized="false"
  29935. static="true" final="false" visibility="public"
  29936. deprecated="not deprecated">
  29937. <param name="objectName" type="javax.management.ObjectName"/>
  29938. </method>
  29939. <method name="unregister"
  29940. abstract="false" native="false" synchronized="false"
  29941. static="true" final="false" visibility="public"
  29942. deprecated="not deprecated">
  29943. <param name="mbeanName" type="javax.management.ObjectName"/>
  29944. </method>
  29945. <doc>
  29946. <![CDATA[This util class provides a method to register an MBean using
  29947. our standard naming convention as described in the doc
  29948. for {link {@link #register(String, String, Object)}.]]>
  29949. </doc>
  29950. </class>
  29951. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  29952. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  29953. <class name="MetricsCache" extends="java.lang.Object"
  29954. abstract="false"
  29955. static="false" final="false" visibility="public"
  29956. deprecated="not deprecated">
  29957. <constructor name="MetricsCache"
  29958. static="false" final="false" visibility="public"
  29959. deprecated="not deprecated">
  29960. </constructor>
  29961. <constructor name="MetricsCache" type="int"
  29962. static="false" final="false" visibility="public"
  29963. deprecated="not deprecated">
  29964. <doc>
  29965. <![CDATA[Construct a metrics cache
  29966. @param maxRecsPerName limit of the number records per record name]]>
  29967. </doc>
  29968. </constructor>
  29969. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29970. abstract="false" native="false" synchronized="false"
  29971. static="false" final="false" visibility="public"
  29972. deprecated="not deprecated">
  29973. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29974. <param name="includingTags" type="boolean"/>
  29975. <doc>
  29976. <![CDATA[Update the cache and return the current cached record
  29977. @param mr the update record
  29978. @param includingTags cache tag values (for later lookup by name) if true
  29979. @return the updated cache record]]>
  29980. </doc>
  29981. </method>
  29982. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29983. abstract="false" native="false" synchronized="false"
  29984. static="false" final="false" visibility="public"
  29985. deprecated="not deprecated">
  29986. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29987. <doc>
  29988. <![CDATA[Update the cache and return the current cache record
  29989. @param mr the update record
  29990. @return the updated cache record]]>
  29991. </doc>
  29992. </method>
  29993. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29994. abstract="false" native="false" synchronized="false"
  29995. static="false" final="false" visibility="public"
  29996. deprecated="not deprecated">
  29997. <param name="name" type="java.lang.String"/>
  29998. <param name="tags" type="java.util.Collection"/>
  29999. <doc>
  30000. <![CDATA[Get the cached record
  30001. @param name of the record
  30002. @param tags of the record
  30003. @return the cached record or null]]>
  30004. </doc>
  30005. </method>
  30006. <doc>
  30007. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  30008. </doc>
  30009. </class>
  30010. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  30011. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  30012. <class name="Servers" extends="java.lang.Object"
  30013. abstract="false"
  30014. static="false" final="false" visibility="public"
  30015. deprecated="not deprecated">
  30016. <method name="parse" return="java.util.List"
  30017. abstract="false" native="false" synchronized="false"
  30018. static="true" final="false" visibility="public"
  30019. deprecated="not deprecated">
  30020. <param name="specs" type="java.lang.String"/>
  30021. <param name="defaultPort" type="int"/>
  30022. <doc>
  30023. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  30024. of the form <i>hostname</i> or <i>hostname:port</i>. If
  30025. the specs string is null, defaults to localhost:defaultPort.
  30026. @param specs server specs (see description)
  30027. @param defaultPort the default port if not specified
  30028. @return a list of InetSocketAddress objects.]]>
  30029. </doc>
  30030. </method>
  30031. <doc>
  30032. <![CDATA[Helpers to handle server addresses]]>
  30033. </doc>
  30034. </class>
  30035. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  30036. </package>
  30037. <package name="org.apache.hadoop.net">
  30038. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  30039. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  30040. abstract="true"
  30041. static="false" final="false" visibility="public"
  30042. deprecated="not deprecated">
  30043. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  30044. <implements name="org.apache.hadoop.conf.Configurable"/>
  30045. <constructor name="AbstractDNSToSwitchMapping"
  30046. static="false" final="false" visibility="protected"
  30047. deprecated="not deprecated">
  30048. <doc>
  30049. <![CDATA[Create an unconfigured instance]]>
  30050. </doc>
  30051. </constructor>
  30052. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  30053. static="false" final="false" visibility="protected"
  30054. deprecated="not deprecated">
  30055. <doc>
  30056. <![CDATA[Create an instance, caching the configuration file.
  30057. This constructor does not call {@link #setConf(Configuration)}; if
  30058. a subclass extracts information in that method, it must call it explicitly.
  30059. @param conf the configuration]]>
  30060. </doc>
  30061. </constructor>
  30062. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30063. abstract="false" native="false" synchronized="false"
  30064. static="false" final="false" visibility="public"
  30065. deprecated="not deprecated">
  30066. </method>
  30067. <method name="setConf"
  30068. abstract="false" native="false" synchronized="false"
  30069. static="false" final="false" visibility="public"
  30070. deprecated="not deprecated">
  30071. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30072. </method>
  30073. <method name="isSingleSwitch" return="boolean"
  30074. abstract="false" native="false" synchronized="false"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. <doc>
  30078. <![CDATA[Predicate that indicates that the switch mapping is known to be
  30079. single-switch. The base class returns false: it assumes all mappings are
  30080. multi-rack. Subclasses may override this with methods that are more aware
  30081. of their topologies.
  30082. <p>
  30083. This method is used when parts of Hadoop need know whether to apply
  30084. single rack vs multi-rack policies, such as during block placement.
  30085. Such algorithms behave differently if they are on multi-switch systems.
  30086. </p>
  30087. @return true if the mapping thinks that it is on a single switch]]>
  30088. </doc>
  30089. </method>
  30090. <method name="getSwitchMap" return="java.util.Map"
  30091. abstract="false" native="false" synchronized="false"
  30092. static="false" final="false" visibility="public"
  30093. deprecated="not deprecated">
  30094. <doc>
  30095. <![CDATA[Get a copy of the map (for diagnostics)
  30096. @return a clone of the map or null for none known]]>
  30097. </doc>
  30098. </method>
  30099. <method name="dumpTopology" return="java.lang.String"
  30100. abstract="false" native="false" synchronized="false"
  30101. static="false" final="false" visibility="public"
  30102. deprecated="not deprecated">
  30103. <doc>
  30104. <![CDATA[Generate a string listing the switch mapping implementation,
  30105. the mapping for every known node and the number of nodes and
  30106. unique switches known about -each entry to a separate line.
  30107. @return a string that can be presented to the ops team or used in
  30108. debug messages.]]>
  30109. </doc>
  30110. </method>
  30111. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  30112. abstract="false" native="false" synchronized="false"
  30113. static="false" final="false" visibility="protected"
  30114. deprecated="not deprecated">
  30115. </method>
  30116. <method name="isMappingSingleSwitch" return="boolean"
  30117. abstract="false" native="false" synchronized="false"
  30118. static="true" final="false" visibility="public"
  30119. deprecated="not deprecated">
  30120. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  30121. <doc>
  30122. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  30123. switch.
  30124. <p>
  30125. This predicate simply assumes that all mappings not derived from
  30126. this class are multi-switch.
  30127. @param mapping the mapping to query
  30128. @return true if the base class says it is single switch, or the mapping
  30129. is not derived from this class.]]>
  30130. </doc>
  30131. </method>
  30132. <doc>
  30133. <![CDATA[This is a base class for DNS to Switch mappings. <p> It is not mandatory to
  30134. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  30135. recommended, as it makes it easy for the Hadoop developers to add new methods
  30136. to this base class that are automatically picked up by all implementations.
  30137. <p>
  30138. This class does not extend the <code>Configured</code>
  30139. base class, and should not be changed to do so, as it causes problems
  30140. for subclasses. The constructor of the <code>Configured</code> calls
  30141. the {@link #setConf(Configuration)} method, which will call into the
  30142. subclasses before they have been fully constructed.]]>
  30143. </doc>
  30144. </class>
  30145. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  30146. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  30147. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  30148. abstract="false"
  30149. static="false" final="false" visibility="public"
  30150. deprecated="not deprecated">
  30151. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  30152. static="false" final="false" visibility="public"
  30153. deprecated="not deprecated">
  30154. <doc>
  30155. <![CDATA[cache a raw DNS mapping
  30156. @param rawMapping the raw mapping to cache]]>
  30157. </doc>
  30158. </constructor>
  30159. <method name="resolve" return="java.util.List"
  30160. abstract="false" native="false" synchronized="false"
  30161. static="false" final="false" visibility="public"
  30162. deprecated="not deprecated">
  30163. <param name="names" type="java.util.List"/>
  30164. </method>
  30165. <method name="getSwitchMap" return="java.util.Map"
  30166. abstract="false" native="false" synchronized="false"
  30167. static="false" final="false" visibility="public"
  30168. deprecated="not deprecated">
  30169. <doc>
  30170. <![CDATA[Get the (host x switch) map.
  30171. @return a copy of the cached map of hosts to rack]]>
  30172. </doc>
  30173. </method>
  30174. <method name="toString" return="java.lang.String"
  30175. abstract="false" native="false" synchronized="false"
  30176. static="false" final="false" visibility="public"
  30177. deprecated="not deprecated">
  30178. </method>
  30179. <method name="isSingleSwitch" return="boolean"
  30180. abstract="false" native="false" synchronized="false"
  30181. static="false" final="false" visibility="public"
  30182. deprecated="not deprecated">
  30183. <doc>
  30184. <![CDATA[Delegate the switch topology query to the raw mapping, via
  30185. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  30186. @return true iff the raw mapper is considered single-switch.]]>
  30187. </doc>
  30188. </method>
  30189. <method name="reloadCachedMappings"
  30190. abstract="false" native="false" synchronized="false"
  30191. static="false" final="false" visibility="public"
  30192. deprecated="not deprecated">
  30193. </method>
  30194. <method name="reloadCachedMappings"
  30195. abstract="false" native="false" synchronized="false"
  30196. static="false" final="false" visibility="public"
  30197. deprecated="not deprecated">
  30198. <param name="names" type="java.util.List"/>
  30199. </method>
  30200. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  30201. transient="false" volatile="false"
  30202. static="false" final="true" visibility="protected"
  30203. deprecated="not deprecated">
  30204. <doc>
  30205. <![CDATA[The uncached mapping]]>
  30206. </doc>
  30207. </field>
  30208. <doc>
  30209. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  30210. raw DNSToSwitchMapping and stores the resolved network location in
  30211. a cache. The following calls to a resolved network location
  30212. will get its location from the cache.]]>
  30213. </doc>
  30214. </class>
  30215. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  30216. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  30217. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  30218. abstract="false"
  30219. static="false" final="false" visibility="public"
  30220. deprecated="not deprecated">
  30221. <constructor name="ConnectTimeoutException" type="java.lang.String"
  30222. static="false" final="false" visibility="public"
  30223. deprecated="not deprecated">
  30224. </constructor>
  30225. <doc>
  30226. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  30227. if it times out while connecting to the remote host.]]>
  30228. </doc>
  30229. </class>
  30230. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  30231. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  30232. <interface name="DNSToSwitchMapping" abstract="true"
  30233. static="false" final="false" visibility="public"
  30234. deprecated="not deprecated">
  30235. <method name="resolve" return="java.util.List"
  30236. abstract="true" native="false" synchronized="false"
  30237. static="false" final="false" visibility="public"
  30238. deprecated="not deprecated">
  30239. <param name="names" type="java.util.List"/>
  30240. <doc>
  30241. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  30242. switch information (network paths). One-to-one correspondence must be
  30243. maintained between the elements in the lists.
  30244. Consider an element in the argument list - x.y.com. The switch information
  30245. that is returned must be a network path of the form /foo/rack,
  30246. where / is the root, and 'foo' is the switch where 'rack' is connected.
  30247. Note the hostname/ip-address is not part of the returned path.
  30248. The network topology of the cluster would determine the number of
  30249. components in the network path.
  30250. <p>
  30251. If a name cannot be resolved to a rack, the implementation
  30252. should return {@link NetworkTopology#DEFAULT_RACK}. This
  30253. is what the bundled implementations do, though it is not a formal requirement
  30254. @param names the list of hosts to resolve (can be empty)
  30255. @return list of resolved network paths.
  30256. If <i>names</i> is empty, the returned list is also empty]]>
  30257. </doc>
  30258. </method>
  30259. <method name="reloadCachedMappings"
  30260. abstract="true" native="false" synchronized="false"
  30261. static="false" final="false" visibility="public"
  30262. deprecated="not deprecated">
  30263. <doc>
  30264. <![CDATA[Reload all of the cached mappings.
  30265. If there is a cache, this method will clear it, so that future accesses
  30266. will get a chance to see the new data.]]>
  30267. </doc>
  30268. </method>
  30269. <method name="reloadCachedMappings"
  30270. abstract="true" native="false" synchronized="false"
  30271. static="false" final="false" visibility="public"
  30272. deprecated="not deprecated">
  30273. <param name="names" type="java.util.List"/>
  30274. <doc>
  30275. <![CDATA[Reload cached mappings on specific nodes.
  30276. If there is a cache on these nodes, this method will clear it, so that
  30277. future accesses will see updated data.]]>
  30278. </doc>
  30279. </method>
  30280. <doc>
  30281. <![CDATA[An interface that must be implemented to allow pluggable
  30282. DNS-name/IP-address to RackID resolvers.]]>
  30283. </doc>
  30284. </interface>
  30285. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  30286. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  30287. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  30288. abstract="false"
  30289. static="false" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <constructor name="ScriptBasedMapping"
  30292. static="false" final="false" visibility="public"
  30293. deprecated="not deprecated">
  30294. <doc>
  30295. <![CDATA[Create an instance with the default configuration.
  30296. <p>
  30297. Calling {@link #setConf(Configuration)} will trigger a
  30298. re-evaluation of the configuration settings and so be used to
  30299. set up the mapping script.]]>
  30300. </doc>
  30301. </constructor>
  30302. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  30303. static="false" final="false" visibility="public"
  30304. deprecated="not deprecated">
  30305. <doc>
  30306. <![CDATA[Create an instance from the given raw mapping
  30307. @param rawMap raw DNSTOSwithMapping]]>
  30308. </doc>
  30309. </constructor>
  30310. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  30311. static="false" final="false" visibility="public"
  30312. deprecated="not deprecated">
  30313. <doc>
  30314. <![CDATA[Create an instance from the given configuration
  30315. @param conf configuration]]>
  30316. </doc>
  30317. </constructor>
  30318. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30319. abstract="false" native="false" synchronized="false"
  30320. static="false" final="false" visibility="public"
  30321. deprecated="not deprecated">
  30322. </method>
  30323. <method name="toString" return="java.lang.String"
  30324. abstract="false" native="false" synchronized="false"
  30325. static="false" final="false" visibility="public"
  30326. deprecated="not deprecated">
  30327. </method>
  30328. <method name="setConf"
  30329. abstract="false" native="false" synchronized="false"
  30330. static="false" final="false" visibility="public"
  30331. deprecated="not deprecated">
  30332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30333. <doc>
  30334. <![CDATA[{@inheritDoc}
  30335. <p>
  30336. This will get called in the superclass constructor, so a check is needed
  30337. to ensure that the raw mapping is defined before trying to relaying a null
  30338. configuration.
  30339. @param conf]]>
  30340. </doc>
  30341. </method>
  30342. <field name="NO_SCRIPT" type="java.lang.String"
  30343. transient="false" volatile="false"
  30344. static="true" final="true" visibility="public"
  30345. deprecated="not deprecated">
  30346. <doc>
  30347. <![CDATA[Text used in the {@link #toString()} method if there is no string
  30348. {@value}]]>
  30349. </doc>
  30350. </field>
  30351. <doc>
  30352. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  30353. script configured via the
  30354. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  30355. <p>
  30356. It contains a static class <code>RawScriptBasedMapping</code> that performs
  30357. the work: reading the configuration parameters, executing any defined
  30358. script, handling errors and such like. The outer
  30359. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  30360. queries.
  30361. <p>
  30362. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  30363. true if and only if a script is defined.]]>
  30364. </doc>
  30365. </class>
  30366. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  30367. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  30368. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  30369. abstract="false"
  30370. static="false" final="false" visibility="public"
  30371. deprecated="not deprecated">
  30372. <implements name="org.apache.hadoop.conf.Configurable"/>
  30373. <constructor name="SocksSocketFactory"
  30374. static="false" final="false" visibility="public"
  30375. deprecated="not deprecated">
  30376. <doc>
  30377. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30378. </doc>
  30379. </constructor>
  30380. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  30381. static="false" final="false" visibility="public"
  30382. deprecated="not deprecated">
  30383. <doc>
  30384. <![CDATA[Constructor with a supplied Proxy
  30385. @param proxy the proxy to use to create sockets]]>
  30386. </doc>
  30387. </constructor>
  30388. <method name="createSocket" return="java.net.Socket"
  30389. abstract="false" native="false" synchronized="false"
  30390. static="false" final="false" visibility="public"
  30391. deprecated="not deprecated">
  30392. <exception name="IOException" type="java.io.IOException"/>
  30393. </method>
  30394. <method name="createSocket" return="java.net.Socket"
  30395. abstract="false" native="false" synchronized="false"
  30396. static="false" final="false" visibility="public"
  30397. deprecated="not deprecated">
  30398. <param name="addr" type="java.net.InetAddress"/>
  30399. <param name="port" type="int"/>
  30400. <exception name="IOException" type="java.io.IOException"/>
  30401. </method>
  30402. <method name="createSocket" return="java.net.Socket"
  30403. abstract="false" native="false" synchronized="false"
  30404. static="false" final="false" visibility="public"
  30405. deprecated="not deprecated">
  30406. <param name="addr" type="java.net.InetAddress"/>
  30407. <param name="port" type="int"/>
  30408. <param name="localHostAddr" type="java.net.InetAddress"/>
  30409. <param name="localPort" type="int"/>
  30410. <exception name="IOException" type="java.io.IOException"/>
  30411. </method>
  30412. <method name="createSocket" return="java.net.Socket"
  30413. abstract="false" native="false" synchronized="false"
  30414. static="false" final="false" visibility="public"
  30415. deprecated="not deprecated">
  30416. <param name="host" type="java.lang.String"/>
  30417. <param name="port" type="int"/>
  30418. <exception name="IOException" type="java.io.IOException"/>
  30419. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30420. </method>
  30421. <method name="createSocket" return="java.net.Socket"
  30422. abstract="false" native="false" synchronized="false"
  30423. static="false" final="false" visibility="public"
  30424. deprecated="not deprecated">
  30425. <param name="host" type="java.lang.String"/>
  30426. <param name="port" type="int"/>
  30427. <param name="localHostAddr" type="java.net.InetAddress"/>
  30428. <param name="localPort" type="int"/>
  30429. <exception name="IOException" type="java.io.IOException"/>
  30430. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30431. </method>
  30432. <method name="hashCode" return="int"
  30433. abstract="false" native="false" synchronized="false"
  30434. static="false" final="false" visibility="public"
  30435. deprecated="not deprecated">
  30436. </method>
  30437. <method name="equals" return="boolean"
  30438. abstract="false" native="false" synchronized="false"
  30439. static="false" final="false" visibility="public"
  30440. deprecated="not deprecated">
  30441. <param name="obj" type="java.lang.Object"/>
  30442. </method>
  30443. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30444. abstract="false" native="false" synchronized="false"
  30445. static="false" final="false" visibility="public"
  30446. deprecated="not deprecated">
  30447. </method>
  30448. <method name="setConf"
  30449. abstract="false" native="false" synchronized="false"
  30450. static="false" final="false" visibility="public"
  30451. deprecated="not deprecated">
  30452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30453. </method>
  30454. <doc>
  30455. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30456. </doc>
  30457. </class>
  30458. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  30459. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  30460. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  30461. abstract="false"
  30462. static="false" final="false" visibility="public"
  30463. deprecated="not deprecated">
  30464. <constructor name="StandardSocketFactory"
  30465. static="false" final="false" visibility="public"
  30466. deprecated="not deprecated">
  30467. <doc>
  30468. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30469. </doc>
  30470. </constructor>
  30471. <method name="createSocket" return="java.net.Socket"
  30472. abstract="false" native="false" synchronized="false"
  30473. static="false" final="false" visibility="public"
  30474. deprecated="not deprecated">
  30475. <exception name="IOException" type="java.io.IOException"/>
  30476. </method>
  30477. <method name="createSocket" return="java.net.Socket"
  30478. abstract="false" native="false" synchronized="false"
  30479. static="false" final="false" visibility="public"
  30480. deprecated="not deprecated">
  30481. <param name="addr" type="java.net.InetAddress"/>
  30482. <param name="port" type="int"/>
  30483. <exception name="IOException" type="java.io.IOException"/>
  30484. </method>
  30485. <method name="createSocket" return="java.net.Socket"
  30486. abstract="false" native="false" synchronized="false"
  30487. static="false" final="false" visibility="public"
  30488. deprecated="not deprecated">
  30489. <param name="addr" type="java.net.InetAddress"/>
  30490. <param name="port" type="int"/>
  30491. <param name="localHostAddr" type="java.net.InetAddress"/>
  30492. <param name="localPort" type="int"/>
  30493. <exception name="IOException" type="java.io.IOException"/>
  30494. </method>
  30495. <method name="createSocket" return="java.net.Socket"
  30496. abstract="false" native="false" synchronized="false"
  30497. static="false" final="false" visibility="public"
  30498. deprecated="not deprecated">
  30499. <param name="host" type="java.lang.String"/>
  30500. <param name="port" type="int"/>
  30501. <exception name="IOException" type="java.io.IOException"/>
  30502. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30503. </method>
  30504. <method name="createSocket" return="java.net.Socket"
  30505. abstract="false" native="false" synchronized="false"
  30506. static="false" final="false" visibility="public"
  30507. deprecated="not deprecated">
  30508. <param name="host" type="java.lang.String"/>
  30509. <param name="port" type="int"/>
  30510. <param name="localHostAddr" type="java.net.InetAddress"/>
  30511. <param name="localPort" type="int"/>
  30512. <exception name="IOException" type="java.io.IOException"/>
  30513. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30514. </method>
  30515. <method name="equals" return="boolean"
  30516. abstract="false" native="false" synchronized="false"
  30517. static="false" final="false" visibility="public"
  30518. deprecated="not deprecated">
  30519. <param name="obj" type="java.lang.Object"/>
  30520. </method>
  30521. <method name="hashCode" return="int"
  30522. abstract="false" native="false" synchronized="false"
  30523. static="false" final="false" visibility="public"
  30524. deprecated="not deprecated">
  30525. </method>
  30526. <doc>
  30527. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30528. </doc>
  30529. </class>
  30530. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  30531. <!-- start class org.apache.hadoop.net.TableMapping -->
  30532. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  30533. abstract="false"
  30534. static="false" final="false" visibility="public"
  30535. deprecated="not deprecated">
  30536. <constructor name="TableMapping"
  30537. static="false" final="false" visibility="public"
  30538. deprecated="not deprecated">
  30539. </constructor>
  30540. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30541. abstract="false" native="false" synchronized="false"
  30542. static="false" final="false" visibility="public"
  30543. deprecated="not deprecated">
  30544. </method>
  30545. <method name="setConf"
  30546. abstract="false" native="false" synchronized="false"
  30547. static="false" final="false" visibility="public"
  30548. deprecated="not deprecated">
  30549. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30550. </method>
  30551. <method name="reloadCachedMappings"
  30552. abstract="false" native="false" synchronized="false"
  30553. static="false" final="false" visibility="public"
  30554. deprecated="not deprecated">
  30555. </method>
  30556. <doc>
  30557. <![CDATA[<p>
  30558. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  30559. file. The columns are separated by whitespace. The first column is a DNS or
  30560. IP address and the second column specifies the rack where the address maps.
  30561. </p>
  30562. <p>
  30563. This class uses the configuration parameter {@code
  30564. net.topology.table.file.name} to locate the mapping file.
  30565. </p>
  30566. <p>
  30567. Calls to {@link #resolve(List)} will look up the address as defined in the
  30568. mapping file. If no entry corresponding to the address is found, the value
  30569. {@code /default-rack} is returned.
  30570. </p>]]>
  30571. </doc>
  30572. </class>
  30573. <!-- end class org.apache.hadoop.net.TableMapping -->
  30574. </package>
  30575. <package name="org.apache.hadoop.net.unix">
  30576. </package>
  30577. <package name="org.apache.hadoop.security">
  30578. <!-- start class org.apache.hadoop.security.AccessControlException -->
  30579. <class name="AccessControlException" extends="java.io.IOException"
  30580. abstract="false"
  30581. static="false" final="false" visibility="public"
  30582. deprecated="not deprecated">
  30583. <constructor name="AccessControlException"
  30584. static="false" final="false" visibility="public"
  30585. deprecated="not deprecated">
  30586. <doc>
  30587. <![CDATA[Default constructor is needed for unwrapping from
  30588. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  30589. </doc>
  30590. </constructor>
  30591. <constructor name="AccessControlException" type="java.lang.String"
  30592. static="false" final="false" visibility="public"
  30593. deprecated="not deprecated">
  30594. <doc>
  30595. <![CDATA[Constructs an {@link AccessControlException}
  30596. with the specified detail message.
  30597. @param s the detail message.]]>
  30598. </doc>
  30599. </constructor>
  30600. <constructor name="AccessControlException" type="java.lang.Throwable"
  30601. static="false" final="false" visibility="public"
  30602. deprecated="not deprecated">
  30603. <doc>
  30604. <![CDATA[Constructs a new exception with the specified cause and a detail
  30605. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  30606. typically contains the class and detail message of <tt>cause</tt>).
  30607. @param cause the cause (which is saved for later retrieval by the
  30608. {@link #getCause()} method). (A <tt>null</tt> value is
  30609. permitted, and indicates that the cause is nonexistent or
  30610. unknown.)]]>
  30611. </doc>
  30612. </constructor>
  30613. <doc>
  30614. <![CDATA[An exception class for access control related issues.]]>
  30615. </doc>
  30616. </class>
  30617. <!-- end class org.apache.hadoop.security.AccessControlException -->
  30618. <!-- start class org.apache.hadoop.security.Credentials -->
  30619. <class name="Credentials" extends="java.lang.Object"
  30620. abstract="false"
  30621. static="false" final="false" visibility="public"
  30622. deprecated="not deprecated">
  30623. <implements name="org.apache.hadoop.io.Writable"/>
  30624. <constructor name="Credentials"
  30625. static="false" final="false" visibility="public"
  30626. deprecated="not deprecated">
  30627. <doc>
  30628. <![CDATA[Create an empty credentials instance.]]>
  30629. </doc>
  30630. </constructor>
  30631. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  30632. static="false" final="false" visibility="public"
  30633. deprecated="not deprecated">
  30634. <doc>
  30635. <![CDATA[Create a copy of the given credentials.
  30636. @param credentials to copy]]>
  30637. </doc>
  30638. </constructor>
  30639. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  30640. abstract="false" native="false" synchronized="false"
  30641. static="false" final="false" visibility="public"
  30642. deprecated="not deprecated">
  30643. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30644. <doc>
  30645. <![CDATA[Returns the Token object for the alias.
  30646. @param alias the alias for the Token
  30647. @return token for this alias]]>
  30648. </doc>
  30649. </method>
  30650. <method name="addToken"
  30651. abstract="false" native="false" synchronized="false"
  30652. static="false" final="false" visibility="public"
  30653. deprecated="not deprecated">
  30654. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30655. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  30656. <doc>
  30657. <![CDATA[Add a token in the storage (in memory).
  30658. @param alias the alias for the key
  30659. @param t the token object]]>
  30660. </doc>
  30661. </method>
  30662. <method name="getAllTokens" return="java.util.Collection"
  30663. abstract="false" native="false" synchronized="false"
  30664. static="false" final="false" visibility="public"
  30665. deprecated="not deprecated">
  30666. <doc>
  30667. <![CDATA[Return all the tokens in the in-memory map.]]>
  30668. </doc>
  30669. </method>
  30670. <method name="getTokenMap" return="java.util.Map"
  30671. abstract="false" native="false" synchronized="false"
  30672. static="false" final="false" visibility="public"
  30673. deprecated="not deprecated">
  30674. <doc>
  30675. <![CDATA[Returns an unmodifiable version of the full map of aliases to Tokens.]]>
  30676. </doc>
  30677. </method>
  30678. <method name="numberOfTokens" return="int"
  30679. abstract="false" native="false" synchronized="false"
  30680. static="false" final="false" visibility="public"
  30681. deprecated="not deprecated">
  30682. <doc>
  30683. <![CDATA[@return number of Tokens in the in-memory map]]>
  30684. </doc>
  30685. </method>
  30686. <method name="getSecretKey" return="byte[]"
  30687. abstract="false" native="false" synchronized="false"
  30688. static="false" final="false" visibility="public"
  30689. deprecated="not deprecated">
  30690. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30691. <doc>
  30692. <![CDATA[Returns the key bytes for the alias.
  30693. @param alias the alias for the key
  30694. @return key for this alias]]>
  30695. </doc>
  30696. </method>
  30697. <method name="numberOfSecretKeys" return="int"
  30698. abstract="false" native="false" synchronized="false"
  30699. static="false" final="false" visibility="public"
  30700. deprecated="not deprecated">
  30701. <doc>
  30702. <![CDATA[@return number of keys in the in-memory map]]>
  30703. </doc>
  30704. </method>
  30705. <method name="addSecretKey"
  30706. abstract="false" native="false" synchronized="false"
  30707. static="false" final="false" visibility="public"
  30708. deprecated="not deprecated">
  30709. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30710. <param name="key" type="byte[]"/>
  30711. <doc>
  30712. <![CDATA[Set the key for an alias.
  30713. @param alias the alias for the key
  30714. @param key the key bytes]]>
  30715. </doc>
  30716. </method>
  30717. <method name="removeSecretKey"
  30718. abstract="false" native="false" synchronized="false"
  30719. static="false" final="false" visibility="public"
  30720. deprecated="not deprecated">
  30721. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30722. <doc>
  30723. <![CDATA[Remove the key for a given alias.
  30724. @param alias the alias for the key]]>
  30725. </doc>
  30726. </method>
  30727. <method name="getAllSecretKeys" return="java.util.List"
  30728. abstract="false" native="false" synchronized="false"
  30729. static="false" final="false" visibility="public"
  30730. deprecated="not deprecated">
  30731. <doc>
  30732. <![CDATA[Return all the secret key entries in the in-memory map.]]>
  30733. </doc>
  30734. </method>
  30735. <method name="getSecretKeyMap" return="java.util.Map"
  30736. abstract="false" native="false" synchronized="false"
  30737. static="false" final="false" visibility="public"
  30738. deprecated="not deprecated">
  30739. <doc>
  30740. <![CDATA[Returns an unmodifiable version of the full map of aliases to secret keys.]]>
  30741. </doc>
  30742. </method>
  30743. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  30744. abstract="false" native="false" synchronized="false"
  30745. static="true" final="false" visibility="public"
  30746. deprecated="not deprecated">
  30747. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  30748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30749. <exception name="IOException" type="java.io.IOException"/>
  30750. <doc>
  30751. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  30752. @param filename
  30753. @param conf
  30754. @throws IOException]]>
  30755. </doc>
  30756. </method>
  30757. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  30758. abstract="false" native="false" synchronized="false"
  30759. static="true" final="false" visibility="public"
  30760. deprecated="not deprecated">
  30761. <param name="filename" type="java.io.File"/>
  30762. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30763. <exception name="IOException" type="java.io.IOException"/>
  30764. <doc>
  30765. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  30766. @param filename
  30767. @param conf
  30768. @throws IOException]]>
  30769. </doc>
  30770. </method>
  30771. <method name="readTokenStorageStream"
  30772. abstract="false" native="false" synchronized="false"
  30773. static="false" final="false" visibility="public"
  30774. deprecated="not deprecated">
  30775. <param name="in" type="java.io.DataInputStream"/>
  30776. <exception name="IOException" type="java.io.IOException"/>
  30777. <doc>
  30778. <![CDATA[Convenience method for reading a token from a DataInputStream.]]>
  30779. </doc>
  30780. </method>
  30781. <method name="writeTokenStorageToStream"
  30782. abstract="false" native="false" synchronized="false"
  30783. static="false" final="false" visibility="public"
  30784. deprecated="not deprecated">
  30785. <param name="os" type="java.io.DataOutputStream"/>
  30786. <exception name="IOException" type="java.io.IOException"/>
  30787. </method>
  30788. <method name="writeTokenStorageToStream"
  30789. abstract="false" native="false" synchronized="false"
  30790. static="false" final="false" visibility="public"
  30791. deprecated="not deprecated">
  30792. <param name="os" type="java.io.DataOutputStream"/>
  30793. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  30794. <exception name="IOException" type="java.io.IOException"/>
  30795. </method>
  30796. <method name="writeTokenStorageFile"
  30797. abstract="false" native="false" synchronized="false"
  30798. static="false" final="false" visibility="public"
  30799. deprecated="not deprecated">
  30800. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  30801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30802. <exception name="IOException" type="java.io.IOException"/>
  30803. </method>
  30804. <method name="writeTokenStorageFile"
  30805. abstract="false" native="false" synchronized="false"
  30806. static="false" final="false" visibility="public"
  30807. deprecated="not deprecated">
  30808. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  30809. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30810. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  30811. <exception name="IOException" type="java.io.IOException"/>
  30812. </method>
  30813. <method name="write"
  30814. abstract="false" native="false" synchronized="false"
  30815. static="false" final="false" visibility="public"
  30816. deprecated="not deprecated">
  30817. <param name="out" type="java.io.DataOutput"/>
  30818. <exception name="IOException" type="java.io.IOException"/>
  30819. <doc>
  30820. <![CDATA[Stores all the keys to DataOutput.
  30821. @param out
  30822. @throws IOException]]>
  30823. </doc>
  30824. </method>
  30825. <method name="readFields"
  30826. abstract="false" native="false" synchronized="false"
  30827. static="false" final="false" visibility="public"
  30828. deprecated="not deprecated">
  30829. <param name="in" type="java.io.DataInput"/>
  30830. <exception name="IOException" type="java.io.IOException"/>
  30831. <doc>
  30832. <![CDATA[Loads all the keys.
  30833. @param in
  30834. @throws IOException]]>
  30835. </doc>
  30836. </method>
  30837. <method name="addAll"
  30838. abstract="false" native="false" synchronized="false"
  30839. static="false" final="false" visibility="public"
  30840. deprecated="not deprecated">
  30841. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  30842. <doc>
  30843. <![CDATA[Copy all of the credentials from one credential object into another.
  30844. Existing secrets and tokens are overwritten.
  30845. @param other the credentials to copy]]>
  30846. </doc>
  30847. </method>
  30848. <method name="mergeAll"
  30849. abstract="false" native="false" synchronized="false"
  30850. static="false" final="false" visibility="public"
  30851. deprecated="not deprecated">
  30852. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  30853. <doc>
  30854. <![CDATA[Copy all of the credentials from one credential object into another.
  30855. Existing secrets and tokens are not overwritten.
  30856. @param other the credentials to copy]]>
  30857. </doc>
  30858. </method>
  30859. <doc>
  30860. <![CDATA[A class that provides the facilities of reading and writing
  30861. secret keys and Tokens.]]>
  30862. </doc>
  30863. </class>
  30864. <!-- end class org.apache.hadoop.security.Credentials -->
  30865. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  30866. <interface name="GroupMappingServiceProvider" abstract="true"
  30867. static="false" final="false" visibility="public"
  30868. deprecated="not deprecated">
  30869. <method name="getGroups" return="java.util.List"
  30870. abstract="true" native="false" synchronized="false"
  30871. static="false" final="false" visibility="public"
  30872. deprecated="not deprecated">
  30873. <param name="user" type="java.lang.String"/>
  30874. <exception name="IOException" type="java.io.IOException"/>
  30875. <doc>
  30876. <![CDATA[Get all various group memberships of a given user.
  30877. Returns EMPTY list in case of non-existing user
  30878. @param user User's name
  30879. @return group memberships of user
  30880. @throws IOException]]>
  30881. </doc>
  30882. </method>
  30883. <method name="cacheGroupsRefresh"
  30884. abstract="true" native="false" synchronized="false"
  30885. static="false" final="false" visibility="public"
  30886. deprecated="not deprecated">
  30887. <exception name="IOException" type="java.io.IOException"/>
  30888. <doc>
  30889. <![CDATA[Refresh the cache of groups and user mapping
  30890. @throws IOException]]>
  30891. </doc>
  30892. </method>
  30893. <method name="cacheGroupsAdd"
  30894. abstract="true" native="false" synchronized="false"
  30895. static="false" final="false" visibility="public"
  30896. deprecated="not deprecated">
  30897. <param name="groups" type="java.util.List"/>
  30898. <exception name="IOException" type="java.io.IOException"/>
  30899. <doc>
  30900. <![CDATA[Caches the group user information
  30901. @param groups list of groups to add to cache
  30902. @throws IOException]]>
  30903. </doc>
  30904. </method>
  30905. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  30906. transient="false" volatile="false"
  30907. static="true" final="true" visibility="public"
  30908. deprecated="not deprecated">
  30909. </field>
  30910. <doc>
  30911. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  30912. used by {@link Groups}.]]>
  30913. </doc>
  30914. </interface>
  30915. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  30916. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  30917. <interface name="IdMappingServiceProvider" abstract="true"
  30918. static="false" final="false" visibility="public"
  30919. deprecated="not deprecated">
  30920. <method name="getUid" return="int"
  30921. abstract="true" native="false" synchronized="false"
  30922. static="false" final="false" visibility="public"
  30923. deprecated="not deprecated">
  30924. <param name="user" type="java.lang.String"/>
  30925. <exception name="IOException" type="java.io.IOException"/>
  30926. </method>
  30927. <method name="getGid" return="int"
  30928. abstract="true" native="false" synchronized="false"
  30929. static="false" final="false" visibility="public"
  30930. deprecated="not deprecated">
  30931. <param name="group" type="java.lang.String"/>
  30932. <exception name="IOException" type="java.io.IOException"/>
  30933. </method>
  30934. <method name="getUserName" return="java.lang.String"
  30935. abstract="true" native="false" synchronized="false"
  30936. static="false" final="false" visibility="public"
  30937. deprecated="not deprecated">
  30938. <param name="uid" type="int"/>
  30939. <param name="unknown" type="java.lang.String"/>
  30940. </method>
  30941. <method name="getGroupName" return="java.lang.String"
  30942. abstract="true" native="false" synchronized="false"
  30943. static="false" final="false" visibility="public"
  30944. deprecated="not deprecated">
  30945. <param name="gid" type="int"/>
  30946. <param name="unknown" type="java.lang.String"/>
  30947. </method>
  30948. <method name="getUidAllowingUnknown" return="int"
  30949. abstract="true" native="false" synchronized="false"
  30950. static="false" final="false" visibility="public"
  30951. deprecated="not deprecated">
  30952. <param name="user" type="java.lang.String"/>
  30953. </method>
  30954. <method name="getGidAllowingUnknown" return="int"
  30955. abstract="true" native="false" synchronized="false"
  30956. static="false" final="false" visibility="public"
  30957. deprecated="not deprecated">
  30958. <param name="group" type="java.lang.String"/>
  30959. </method>
  30960. <doc>
  30961. <![CDATA[An interface for the implementation of {@literal <}userId,
  30962. userName{@literal >} mapping and {@literal <}groupId, groupName{@literal >}
  30963. mapping.]]>
  30964. </doc>
  30965. </interface>
  30966. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  30967. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  30968. <class name="KerberosAuthException" extends="java.io.IOException"
  30969. abstract="false"
  30970. static="false" final="false" visibility="public"
  30971. deprecated="not deprecated">
  30972. <constructor name="KerberosAuthException" type="java.lang.String"
  30973. static="false" final="false" visibility="public"
  30974. deprecated="not deprecated">
  30975. </constructor>
  30976. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  30977. static="false" final="false" visibility="public"
  30978. deprecated="not deprecated">
  30979. </constructor>
  30980. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  30981. static="false" final="false" visibility="public"
  30982. deprecated="not deprecated">
  30983. </constructor>
  30984. <method name="setUser"
  30985. abstract="false" native="false" synchronized="false"
  30986. static="false" final="false" visibility="public"
  30987. deprecated="not deprecated">
  30988. <param name="u" type="java.lang.String"/>
  30989. </method>
  30990. <method name="setPrincipal"
  30991. abstract="false" native="false" synchronized="false"
  30992. static="false" final="false" visibility="public"
  30993. deprecated="not deprecated">
  30994. <param name="p" type="java.lang.String"/>
  30995. </method>
  30996. <method name="setKeytabFile"
  30997. abstract="false" native="false" synchronized="false"
  30998. static="false" final="false" visibility="public"
  30999. deprecated="not deprecated">
  31000. <param name="k" type="java.lang.String"/>
  31001. </method>
  31002. <method name="setTicketCacheFile"
  31003. abstract="false" native="false" synchronized="false"
  31004. static="false" final="false" visibility="public"
  31005. deprecated="not deprecated">
  31006. <param name="t" type="java.lang.String"/>
  31007. </method>
  31008. <method name="getInitialMessage" return="java.lang.String"
  31009. abstract="false" native="false" synchronized="false"
  31010. static="false" final="false" visibility="public"
  31011. deprecated="not deprecated">
  31012. <doc>
  31013. <![CDATA[@return The initial message, or null if not set.]]>
  31014. </doc>
  31015. </method>
  31016. <method name="getKeytabFile" return="java.lang.String"
  31017. abstract="false" native="false" synchronized="false"
  31018. static="false" final="false" visibility="public"
  31019. deprecated="not deprecated">
  31020. <doc>
  31021. <![CDATA[@return The keytab file path, or null if not set.]]>
  31022. </doc>
  31023. </method>
  31024. <method name="getPrincipal" return="java.lang.String"
  31025. abstract="false" native="false" synchronized="false"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. <doc>
  31029. <![CDATA[@return The principal, or null if not set.]]>
  31030. </doc>
  31031. </method>
  31032. <method name="getTicketCacheFile" return="java.lang.String"
  31033. abstract="false" native="false" synchronized="false"
  31034. static="false" final="false" visibility="public"
  31035. deprecated="not deprecated">
  31036. <doc>
  31037. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  31038. </doc>
  31039. </method>
  31040. <method name="getUser" return="java.lang.String"
  31041. abstract="false" native="false" synchronized="false"
  31042. static="false" final="false" visibility="public"
  31043. deprecated="not deprecated">
  31044. <doc>
  31045. <![CDATA[@return The user, or null if not set.]]>
  31046. </doc>
  31047. </method>
  31048. <method name="getMessage" return="java.lang.String"
  31049. abstract="false" native="false" synchronized="false"
  31050. static="false" final="false" visibility="public"
  31051. deprecated="not deprecated">
  31052. </method>
  31053. <doc>
  31054. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  31055. such as failure in kerberos login/logout, invalid subject etc.
  31056. Caller should not retry when catching this exception.]]>
  31057. </doc>
  31058. </class>
  31059. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  31060. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  31061. <class name="SecurityUtil" extends="java.lang.Object"
  31062. abstract="false"
  31063. static="false" final="true" visibility="public"
  31064. deprecated="not deprecated">
  31065. <method name="setConfiguration"
  31066. abstract="false" native="false" synchronized="false"
  31067. static="true" final="false" visibility="public"
  31068. deprecated="not deprecated">
  31069. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31070. </method>
  31071. <method name="isOriginalTGT" return="boolean"
  31072. abstract="false" native="false" synchronized="false"
  31073. static="true" final="false" visibility="protected"
  31074. deprecated="not deprecated">
  31075. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  31076. <doc>
  31077. <![CDATA[Check whether the server principal is the TGS's principal
  31078. @param ticket the original TGT (the ticket that is obtained when a
  31079. kinit is done)
  31080. @return true or false]]>
  31081. </doc>
  31082. </method>
  31083. <method name="getServerPrincipal" return="java.lang.String"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="true" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <param name="principalConfig" type="java.lang.String"/>
  31088. <param name="hostname" type="java.lang.String"/>
  31089. <exception name="IOException" type="java.io.IOException"/>
  31090. <doc>
  31091. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  31092. names. It replaces hostname pattern with hostname, which should be
  31093. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  31094. dynamically looked-up fqdn of the current host instead.
  31095. @param principalConfig
  31096. the Kerberos principal name conf value to convert
  31097. @param hostname
  31098. the fully-qualified domain name used for substitution
  31099. @return converted Kerberos principal name
  31100. @throws IOException if the client address cannot be determined]]>
  31101. </doc>
  31102. </method>
  31103. <method name="getServerPrincipal" return="java.lang.String"
  31104. abstract="false" native="false" synchronized="false"
  31105. static="true" final="false" visibility="public"
  31106. deprecated="not deprecated">
  31107. <param name="principalConfig" type="java.lang.String"/>
  31108. <param name="addr" type="java.net.InetAddress"/>
  31109. <exception name="IOException" type="java.io.IOException"/>
  31110. <doc>
  31111. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  31112. This method is similar to {@link #getServerPrincipal(String, String)},
  31113. except 1) the reverse DNS lookup from addr to hostname is done only when
  31114. necessary, 2) param addr can't be null (no default behavior of using local
  31115. hostname when addr is null).
  31116. @param principalConfig
  31117. Kerberos principal name pattern to convert
  31118. @param addr
  31119. InetAddress of the host used for substitution
  31120. @return converted Kerberos principal name
  31121. @throws IOException if the client address cannot be determined]]>
  31122. </doc>
  31123. </method>
  31124. <method name="login"
  31125. abstract="false" native="false" synchronized="false"
  31126. static="true" final="false" visibility="public"
  31127. deprecated="not deprecated">
  31128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31129. <param name="keytabFileKey" type="java.lang.String"/>
  31130. <param name="userNameKey" type="java.lang.String"/>
  31131. <exception name="IOException" type="java.io.IOException"/>
  31132. <doc>
  31133. <![CDATA[Login as a principal specified in config. Substitute $host in
  31134. user's Kerberos principal name with a dynamically looked-up fully-qualified
  31135. domain name of the current host.
  31136. @param conf
  31137. conf to use
  31138. @param keytabFileKey
  31139. the key to look for keytab file in conf
  31140. @param userNameKey
  31141. the key to look for user's Kerberos principal name in conf
  31142. @throws IOException if login fails]]>
  31143. </doc>
  31144. </method>
  31145. <method name="login"
  31146. abstract="false" native="false" synchronized="false"
  31147. static="true" final="false" visibility="public"
  31148. deprecated="not deprecated">
  31149. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31150. <param name="keytabFileKey" type="java.lang.String"/>
  31151. <param name="userNameKey" type="java.lang.String"/>
  31152. <param name="hostname" type="java.lang.String"/>
  31153. <exception name="IOException" type="java.io.IOException"/>
  31154. <doc>
  31155. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  31156. name with hostname. If non-secure mode - return. If no keytab available -
  31157. bail out with an exception
  31158. @param conf
  31159. conf to use
  31160. @param keytabFileKey
  31161. the key to look for keytab file in conf
  31162. @param userNameKey
  31163. the key to look for user's Kerberos principal name in conf
  31164. @param hostname
  31165. hostname to use for substitution
  31166. @throws IOException if the config doesn't specify a keytab]]>
  31167. </doc>
  31168. </method>
  31169. <method name="buildDTServiceName" return="java.lang.String"
  31170. abstract="false" native="false" synchronized="false"
  31171. static="true" final="false" visibility="public"
  31172. deprecated="not deprecated">
  31173. <param name="uri" type="java.net.URI"/>
  31174. <param name="defPort" type="int"/>
  31175. <doc>
  31176. <![CDATA[create the service name for a Delegation token
  31177. @param uri of the service
  31178. @param defPort is used if the uri lacks a port
  31179. @return the token service, or null if no authority
  31180. @see #buildTokenService(InetSocketAddress)]]>
  31181. </doc>
  31182. </method>
  31183. <method name="getHostFromPrincipal" return="java.lang.String"
  31184. abstract="false" native="false" synchronized="false"
  31185. static="true" final="false" visibility="public"
  31186. deprecated="not deprecated">
  31187. <param name="principalName" type="java.lang.String"/>
  31188. <doc>
  31189. <![CDATA[Get the host name from the principal name of format {@literal <}service
  31190. {@literal >}/host@realm.
  31191. @param principalName principal name of format as described above
  31192. @return host name if the the string conforms to the above format, else null]]>
  31193. </doc>
  31194. </method>
  31195. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  31196. abstract="false" native="false" synchronized="false"
  31197. static="true" final="false" visibility="public"
  31198. deprecated="not deprecated">
  31199. <param name="protocol" type="java.lang.Class"/>
  31200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31201. <doc>
  31202. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  31203. SecurityInfo providers.
  31204. @param protocol the protocol class to get the information for
  31205. @param conf configuration object
  31206. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  31207. </doc>
  31208. </method>
  31209. <method name="getClientPrincipal" return="java.lang.String"
  31210. abstract="false" native="false" synchronized="false"
  31211. static="true" final="false" visibility="public"
  31212. deprecated="not deprecated">
  31213. <param name="protocol" type="java.lang.Class"/>
  31214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31215. <doc>
  31216. <![CDATA[Look up the client principal for a given protocol. It searches all known
  31217. SecurityInfo providers.
  31218. @param protocol the protocol class to get the information for
  31219. @param conf configuration object
  31220. @return client principal or null if it has no client principal defined.]]>
  31221. </doc>
  31222. </method>
  31223. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  31224. abstract="false" native="false" synchronized="false"
  31225. static="true" final="false" visibility="public"
  31226. deprecated="not deprecated">
  31227. <param name="protocol" type="java.lang.Class"/>
  31228. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31229. <doc>
  31230. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  31231. SecurityInfo providers.
  31232. @param protocol The protocol class to get the information for.
  31233. @param conf Configuration object
  31234. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  31235. </doc>
  31236. </method>
  31237. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  31238. abstract="false" native="false" synchronized="false"
  31239. static="true" final="false" visibility="public"
  31240. deprecated="not deprecated">
  31241. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31242. <doc>
  31243. <![CDATA[Decode the given token's service field into an InetAddress
  31244. @param token from which to obtain the service
  31245. @return InetAddress for the service]]>
  31246. </doc>
  31247. </method>
  31248. <method name="setTokenService"
  31249. abstract="false" native="false" synchronized="false"
  31250. static="true" final="false" visibility="public"
  31251. deprecated="not deprecated">
  31252. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31253. <param name="addr" type="java.net.InetSocketAddress"/>
  31254. <doc>
  31255. <![CDATA[Set the given token's service to the format expected by the RPC client
  31256. @param token a delegation token
  31257. @param addr the socket for the rpc connection]]>
  31258. </doc>
  31259. </method>
  31260. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  31261. abstract="false" native="false" synchronized="false"
  31262. static="true" final="false" visibility="public"
  31263. deprecated="not deprecated">
  31264. <param name="addr" type="java.net.InetSocketAddress"/>
  31265. <doc>
  31266. <![CDATA[Construct the service key for a token
  31267. @param addr InetSocketAddress of remote connection with a token
  31268. @return "ip:port" or "host:port" depending on the value of
  31269. hadoop.security.token.service.use_ip]]>
  31270. </doc>
  31271. </method>
  31272. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  31273. abstract="false" native="false" synchronized="false"
  31274. static="true" final="false" visibility="public"
  31275. deprecated="not deprecated">
  31276. <param name="uri" type="java.net.URI"/>
  31277. <doc>
  31278. <![CDATA[Construct the service key for a token
  31279. @param uri of remote connection with a token
  31280. @return "ip:port" or "host:port" depending on the value of
  31281. hadoop.security.token.service.use_ip]]>
  31282. </doc>
  31283. </method>
  31284. <method name="doAsLoginUserOrFatal" return="T"
  31285. abstract="false" native="false" synchronized="false"
  31286. static="true" final="false" visibility="public"
  31287. deprecated="not deprecated">
  31288. <param name="action" type="java.security.PrivilegedAction"/>
  31289. <doc>
  31290. <![CDATA[Perform the given action as the daemon's login user. If the login
  31291. user cannot be determined, this will log a FATAL error and exit
  31292. the whole JVM.]]>
  31293. </doc>
  31294. </method>
  31295. <method name="doAsLoginUser" return="T"
  31296. abstract="false" native="false" synchronized="false"
  31297. static="true" final="false" visibility="public"
  31298. deprecated="not deprecated">
  31299. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31300. <exception name="IOException" type="java.io.IOException"/>
  31301. <doc>
  31302. <![CDATA[Perform the given action as the daemon's login user. If an
  31303. InterruptedException is thrown, it is converted to an IOException.
  31304. @param action the action to perform
  31305. @return the result of the action
  31306. @throws IOException in the event of error]]>
  31307. </doc>
  31308. </method>
  31309. <method name="doAsCurrentUser" return="T"
  31310. abstract="false" native="false" synchronized="false"
  31311. static="true" final="false" visibility="public"
  31312. deprecated="not deprecated">
  31313. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31314. <exception name="IOException" type="java.io.IOException"/>
  31315. <doc>
  31316. <![CDATA[Perform the given action as the daemon's current user. If an
  31317. InterruptedException is thrown, it is converted to an IOException.
  31318. @param action the action to perform
  31319. @return the result of the action
  31320. @throws IOException in the event of error]]>
  31321. </doc>
  31322. </method>
  31323. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  31324. abstract="false" native="false" synchronized="false"
  31325. static="true" final="false" visibility="public"
  31326. deprecated="not deprecated">
  31327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31328. </method>
  31329. <method name="setAuthenticationMethod"
  31330. abstract="false" native="false" synchronized="false"
  31331. static="true" final="false" visibility="public"
  31332. deprecated="not deprecated">
  31333. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  31334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31335. </method>
  31336. <method name="isPrivilegedPort" return="boolean"
  31337. abstract="false" native="false" synchronized="false"
  31338. static="true" final="false" visibility="public"
  31339. deprecated="not deprecated">
  31340. <param name="port" type="int"/>
  31341. </method>
  31342. <method name="getZKAuthInfos" return="java.util.List"
  31343. abstract="false" native="false" synchronized="false"
  31344. static="true" final="false" visibility="public"
  31345. deprecated="not deprecated">
  31346. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31347. <param name="configKey" type="java.lang.String"/>
  31348. <exception name="IOException" type="java.io.IOException"/>
  31349. <doc>
  31350. <![CDATA[Utility method to fetch ZK auth info from the configuration.
  31351. @throws java.io.IOException if the Zookeeper ACLs configuration file
  31352. cannot be read
  31353. @throws ZKUtil.BadAuthFormatException if the auth format is invalid]]>
  31354. </doc>
  31355. </method>
  31356. <field name="LOG" type="org.slf4j.Logger"
  31357. transient="false" volatile="false"
  31358. static="true" final="true" visibility="public"
  31359. deprecated="not deprecated">
  31360. </field>
  31361. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  31362. transient="false" volatile="false"
  31363. static="true" final="true" visibility="public"
  31364. deprecated="not deprecated">
  31365. </field>
  31366. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  31367. transient="false" volatile="false"
  31368. static="true" final="true" visibility="public"
  31369. deprecated="not deprecated">
  31370. </field>
  31371. <doc>
  31372. <![CDATA[Security Utils.]]>
  31373. </doc>
  31374. </class>
  31375. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  31376. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  31377. <class name="UserGroupInformation" extends="java.lang.Object"
  31378. abstract="false"
  31379. static="false" final="false" visibility="public"
  31380. deprecated="not deprecated">
  31381. <method name="setShouldRenewImmediatelyForTests"
  31382. abstract="false" native="false" synchronized="false"
  31383. static="true" final="false" visibility="public"
  31384. deprecated="not deprecated">
  31385. <param name="immediate" type="boolean"/>
  31386. <doc>
  31387. <![CDATA[For the purposes of unit tests, we want to test login
  31388. from keytab and don't want to wait until the renew
  31389. window (controlled by TICKET_RENEW_WINDOW).
  31390. @param immediate true if we should login without waiting for ticket window]]>
  31391. </doc>
  31392. </method>
  31393. <method name="reattachMetrics"
  31394. abstract="false" native="false" synchronized="false"
  31395. static="true" final="false" visibility="public"
  31396. deprecated="not deprecated">
  31397. <doc>
  31398. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  31399. </doc>
  31400. </method>
  31401. <method name="isInitialized" return="boolean"
  31402. abstract="false" native="false" synchronized="false"
  31403. static="true" final="false" visibility="public"
  31404. deprecated="not deprecated">
  31405. </method>
  31406. <method name="setConfiguration"
  31407. abstract="false" native="false" synchronized="false"
  31408. static="true" final="false" visibility="public"
  31409. deprecated="not deprecated">
  31410. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31411. <doc>
  31412. <![CDATA[Set the static configuration for UGI.
  31413. In particular, set the security authentication mechanism and the
  31414. group look up service.
  31415. @param conf the configuration to use]]>
  31416. </doc>
  31417. </method>
  31418. <method name="isSecurityEnabled" return="boolean"
  31419. abstract="false" native="false" synchronized="false"
  31420. static="true" final="false" visibility="public"
  31421. deprecated="not deprecated">
  31422. <doc>
  31423. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  31424. user identities or is relying on simple authentication
  31425. @return true if UGI is working in a secure environment]]>
  31426. </doc>
  31427. </method>
  31428. <method name="hasKerberosCredentials" return="boolean"
  31429. abstract="false" native="false" synchronized="false"
  31430. static="false" final="false" visibility="public"
  31431. deprecated="not deprecated">
  31432. <doc>
  31433. <![CDATA[checks if logged in using kerberos
  31434. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  31435. </doc>
  31436. </method>
  31437. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  31438. abstract="false" native="false" synchronized="false"
  31439. static="true" final="false" visibility="public"
  31440. deprecated="not deprecated">
  31441. <exception name="IOException" type="java.io.IOException"/>
  31442. <doc>
  31443. <![CDATA[Return the current user, including any doAs in the current stack.
  31444. @return the current user
  31445. @throws IOException if login fails]]>
  31446. </doc>
  31447. </method>
  31448. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  31449. abstract="false" native="false" synchronized="false"
  31450. static="true" final="false" visibility="public"
  31451. deprecated="not deprecated">
  31452. <param name="ticketCachePath" type="java.lang.String"/>
  31453. <param name="user" type="java.lang.String"/>
  31454. <exception name="IOException" type="java.io.IOException"/>
  31455. <doc>
  31456. <![CDATA[Find the most appropriate UserGroupInformation to use
  31457. @param ticketCachePath The Kerberos ticket cache path, or NULL
  31458. if none is specfied
  31459. @param user The user name, or NULL if none is specified.
  31460. @return The most appropriate UserGroupInformation]]>
  31461. </doc>
  31462. </method>
  31463. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  31464. abstract="false" native="false" synchronized="false"
  31465. static="true" final="false" visibility="public"
  31466. deprecated="not deprecated">
  31467. <param name="ticketCache" type="java.lang.String"/>
  31468. <param name="user" type="java.lang.String"/>
  31469. <exception name="IOException" type="java.io.IOException"/>
  31470. <doc>
  31471. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  31472. @param user The principal name to load from the ticket
  31473. cache
  31474. @param ticketCache the path to the ticket cache file
  31475. @throws IOException if the kerberos login fails]]>
  31476. </doc>
  31477. </method>
  31478. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  31479. abstract="false" native="false" synchronized="false"
  31480. static="true" final="false" visibility="public"
  31481. deprecated="not deprecated">
  31482. <param name="subject" type="javax.security.auth.Subject"/>
  31483. <exception name="IOException" type="java.io.IOException"/>
  31484. <doc>
  31485. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  31486. @param subject The KerberosPrincipal to use in UGI.
  31487. The creator of subject is responsible for
  31488. renewing credentials.
  31489. @throws IOException
  31490. @throws KerberosAuthException if the kerberos login fails]]>
  31491. </doc>
  31492. </method>
  31493. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  31494. abstract="false" native="false" synchronized="false"
  31495. static="true" final="false" visibility="public"
  31496. deprecated="not deprecated">
  31497. <exception name="IOException" type="java.io.IOException"/>
  31498. <doc>
  31499. <![CDATA[Get the currently logged in user. If no explicit login has occurred,
  31500. the user will automatically be logged in with either kerberos credentials
  31501. if available, or as the local OS user, based on security settings.
  31502. @return the logged in user
  31503. @throws IOException if login fails]]>
  31504. </doc>
  31505. </method>
  31506. <method name="trimLoginMethod" return="java.lang.String"
  31507. abstract="false" native="false" synchronized="false"
  31508. static="true" final="false" visibility="public"
  31509. deprecated="not deprecated">
  31510. <param name="userName" type="java.lang.String"/>
  31511. <doc>
  31512. <![CDATA[remove the login method that is followed by a space from the username
  31513. e.g. "jack (auth:SIMPLE)" {@literal ->} "jack"
  31514. @param userName
  31515. @return userName without login method]]>
  31516. </doc>
  31517. </method>
  31518. <method name="loginUserFromSubject"
  31519. abstract="false" native="false" synchronized="false"
  31520. static="true" final="false" visibility="public"
  31521. deprecated="not deprecated">
  31522. <param name="subject" type="javax.security.auth.Subject"/>
  31523. <exception name="IOException" type="java.io.IOException"/>
  31524. <doc>
  31525. <![CDATA[Log in a user using the given subject
  31526. @param subject the subject to use when logging in a user, or null to
  31527. create a new subject.
  31528. If subject is not null, the creator of subject is responsible for renewing
  31529. credentials.
  31530. @throws IOException if login fails]]>
  31531. </doc>
  31532. </method>
  31533. <method name="isFromKeytab" return="boolean"
  31534. abstract="false" native="false" synchronized="false"
  31535. static="false" final="false" visibility="public"
  31536. deprecated="not deprecated">
  31537. <doc>
  31538. <![CDATA[Is this user logged in from a keytab file managed by the UGI?
  31539. @return true if the credentials are from a keytab file.]]>
  31540. </doc>
  31541. </method>
  31542. <method name="loginUserFromKeytab"
  31543. abstract="false" native="false" synchronized="false"
  31544. static="true" final="false" visibility="public"
  31545. deprecated="not deprecated">
  31546. <param name="user" type="java.lang.String"/>
  31547. <param name="path" type="java.lang.String"/>
  31548. <exception name="IOException" type="java.io.IOException"/>
  31549. <doc>
  31550. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  31551. file and logs them in. They become the currently logged-in user.
  31552. @param user the principal name to load from the keytab
  31553. @param path the path to the keytab file
  31554. @throws IOException
  31555. @throws KerberosAuthException if it's a kerberos login exception.]]>
  31556. </doc>
  31557. </method>
  31558. <method name="logoutUserFromKeytab"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="false" visibility="public"
  31561. deprecated="not deprecated">
  31562. <exception name="IOException" type="java.io.IOException"/>
  31563. <doc>
  31564. <![CDATA[Log the current user out who previously logged in using keytab.
  31565. This method assumes that the user logged in by calling
  31566. {@link #loginUserFromKeytab(String, String)}.
  31567. @throws IOException
  31568. @throws KerberosAuthException if a failure occurred in logout,
  31569. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  31570. </doc>
  31571. </method>
  31572. <method name="checkTGTAndReloginFromKeytab"
  31573. abstract="false" native="false" synchronized="false"
  31574. static="false" final="false" visibility="public"
  31575. deprecated="not deprecated">
  31576. <exception name="IOException" type="java.io.IOException"/>
  31577. <doc>
  31578. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  31579. @throws IOException
  31580. @throws KerberosAuthException if it's a kerberos login exception.]]>
  31581. </doc>
  31582. </method>
  31583. <method name="reloginFromKeytab"
  31584. abstract="false" native="false" synchronized="false"
  31585. static="false" final="false" visibility="public"
  31586. deprecated="not deprecated">
  31587. <exception name="IOException" type="java.io.IOException"/>
  31588. <doc>
  31589. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  31590. file and logs them in. They become the currently logged-in user. This
  31591. method assumes that {@link #loginUserFromKeytab(String, String)} had
  31592. happened already.
  31593. The Subject field of this UserGroupInformation object is updated to have
  31594. the new credentials.
  31595. @throws IOException
  31596. @throws KerberosAuthException on a failure]]>
  31597. </doc>
  31598. </method>
  31599. <method name="forceReloginFromKeytab"
  31600. abstract="false" native="false" synchronized="false"
  31601. static="false" final="false" visibility="public"
  31602. deprecated="not deprecated">
  31603. <exception name="IOException" type="java.io.IOException"/>
  31604. <doc>
  31605. <![CDATA[Force re-Login a user in from a keytab file irrespective of the last login
  31606. time. Loads a user identity from a keytab file and logs them in. They
  31607. become the currently logged-in user. This method assumes that
  31608. {@link #loginUserFromKeytab(String, String)} had happened already. The
  31609. Subject field of this UserGroupInformation object is updated to have the
  31610. new credentials.
  31611. @throws IOException
  31612. @throws KerberosAuthException on a failure]]>
  31613. </doc>
  31614. </method>
  31615. <method name="reloginFromTicketCache"
  31616. abstract="false" native="false" synchronized="false"
  31617. static="false" final="false" visibility="public"
  31618. deprecated="not deprecated">
  31619. <exception name="IOException" type="java.io.IOException"/>
  31620. <doc>
  31621. <![CDATA[Re-Login a user in from the ticket cache. This
  31622. method assumes that login had happened already.
  31623. The Subject field of this UserGroupInformation object is updated to have
  31624. the new credentials.
  31625. @throws IOException
  31626. @throws KerberosAuthException on a failure]]>
  31627. </doc>
  31628. </method>
  31629. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  31630. abstract="false" native="false" synchronized="false"
  31631. static="true" final="false" visibility="public"
  31632. deprecated="not deprecated">
  31633. <param name="user" type="java.lang.String"/>
  31634. <param name="path" type="java.lang.String"/>
  31635. <exception name="IOException" type="java.io.IOException"/>
  31636. <doc>
  31637. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  31638. file and login them in. This new user does not affect the currently
  31639. logged-in user.
  31640. @param user the principal name to load from the keytab
  31641. @param path the path to the keytab file
  31642. @throws IOException if the keytab file can't be read]]>
  31643. </doc>
  31644. </method>
  31645. <method name="isLoginKeytabBased" return="boolean"
  31646. abstract="false" native="false" synchronized="false"
  31647. static="true" final="false" visibility="public"
  31648. deprecated="not deprecated">
  31649. <exception name="IOException" type="java.io.IOException"/>
  31650. <doc>
  31651. <![CDATA[Did the login happen via keytab
  31652. @return true or false]]>
  31653. </doc>
  31654. </method>
  31655. <method name="isLoginTicketBased" return="boolean"
  31656. abstract="false" native="false" synchronized="false"
  31657. static="true" final="false" visibility="public"
  31658. deprecated="not deprecated">
  31659. <exception name="IOException" type="java.io.IOException"/>
  31660. <doc>
  31661. <![CDATA[Did the login happen via ticket cache
  31662. @return true or false]]>
  31663. </doc>
  31664. </method>
  31665. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  31666. abstract="false" native="false" synchronized="false"
  31667. static="true" final="false" visibility="public"
  31668. deprecated="not deprecated">
  31669. <param name="user" type="java.lang.String"/>
  31670. <doc>
  31671. <![CDATA[Create a user from a login name. It is intended to be used for remote
  31672. users in RPC, since it won't have any credentials.
  31673. @param user the full user principal name, must not be empty or null
  31674. @return the UserGroupInformation for the remote user.]]>
  31675. </doc>
  31676. </method>
  31677. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  31678. abstract="false" native="false" synchronized="false"
  31679. static="true" final="false" visibility="public"
  31680. deprecated="not deprecated">
  31681. <param name="user" type="java.lang.String"/>
  31682. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  31683. <doc>
  31684. <![CDATA[Create a user from a login name. It is intended to be used for remote
  31685. users in RPC, since it won't have any credentials.
  31686. @param user the full user principal name, must not be empty or null
  31687. @return the UserGroupInformation for the remote user.]]>
  31688. </doc>
  31689. </method>
  31690. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  31691. abstract="false" native="false" synchronized="false"
  31692. static="true" final="false" visibility="public"
  31693. deprecated="not deprecated">
  31694. <param name="user" type="java.lang.String"/>
  31695. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  31696. <doc>
  31697. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  31698. real user.
  31699. @param user
  31700. @param realUser
  31701. @return proxyUser ugi]]>
  31702. </doc>
  31703. </method>
  31704. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  31705. abstract="false" native="false" synchronized="false"
  31706. static="false" final="false" visibility="public"
  31707. deprecated="not deprecated">
  31708. <doc>
  31709. <![CDATA[get RealUser (vs. EffectiveUser)
  31710. @return realUser running over proxy user]]>
  31711. </doc>
  31712. </method>
  31713. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  31714. abstract="false" native="false" synchronized="false"
  31715. static="true" final="false" visibility="public"
  31716. deprecated="not deprecated">
  31717. <param name="user" type="java.lang.String"/>
  31718. <param name="userGroups" type="java.lang.String[]"/>
  31719. <doc>
  31720. <![CDATA[Create a UGI for testing HDFS and MapReduce
  31721. @param user the full user principal name
  31722. @param userGroups the names of the groups that the user belongs to
  31723. @return a fake user for running unit tests]]>
  31724. </doc>
  31725. </method>
  31726. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  31727. abstract="false" native="false" synchronized="false"
  31728. static="true" final="false" visibility="public"
  31729. deprecated="not deprecated">
  31730. <param name="user" type="java.lang.String"/>
  31731. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  31732. <param name="userGroups" type="java.lang.String[]"/>
  31733. <doc>
  31734. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  31735. @param user
  31736. the full user principal name for effective user
  31737. @param realUser
  31738. UGI of the real user
  31739. @param userGroups
  31740. the names of the groups that the user belongs to
  31741. @return a fake user for running unit tests]]>
  31742. </doc>
  31743. </method>
  31744. <method name="getShortUserName" return="java.lang.String"
  31745. abstract="false" native="false" synchronized="false"
  31746. static="false" final="false" visibility="public"
  31747. deprecated="not deprecated">
  31748. <doc>
  31749. <![CDATA[Get the user's login name.
  31750. @return the user's name up to the first '/' or '@'.]]>
  31751. </doc>
  31752. </method>
  31753. <method name="getPrimaryGroupName" return="java.lang.String"
  31754. abstract="false" native="false" synchronized="false"
  31755. static="false" final="false" visibility="public"
  31756. deprecated="not deprecated">
  31757. <exception name="IOException" type="java.io.IOException"/>
  31758. </method>
  31759. <method name="getUserName" return="java.lang.String"
  31760. abstract="false" native="false" synchronized="false"
  31761. static="false" final="false" visibility="public"
  31762. deprecated="not deprecated">
  31763. <doc>
  31764. <![CDATA[Get the user's full principal name.
  31765. @return the user's full principal name.]]>
  31766. </doc>
  31767. </method>
  31768. <method name="addTokenIdentifier" return="boolean"
  31769. abstract="false" native="false" synchronized="true"
  31770. static="false" final="false" visibility="public"
  31771. deprecated="not deprecated">
  31772. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  31773. <doc>
  31774. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  31775. authenticated by the RPC layer as belonging to the user represented by this
  31776. UGI.
  31777. @param tokenId
  31778. tokenIdentifier to be added
  31779. @return true on successful add of new tokenIdentifier]]>
  31780. </doc>
  31781. </method>
  31782. <method name="getTokenIdentifiers" return="java.util.Set"
  31783. abstract="false" native="false" synchronized="true"
  31784. static="false" final="false" visibility="public"
  31785. deprecated="not deprecated">
  31786. <doc>
  31787. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  31788. @return the set of TokenIdentifiers belonging to this UGI]]>
  31789. </doc>
  31790. </method>
  31791. <method name="addToken" return="boolean"
  31792. abstract="false" native="false" synchronized="false"
  31793. static="false" final="false" visibility="public"
  31794. deprecated="not deprecated">
  31795. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31796. <doc>
  31797. <![CDATA[Add a token to this UGI
  31798. @param token Token to be added
  31799. @return true on successful add of new token]]>
  31800. </doc>
  31801. </method>
  31802. <method name="addToken" return="boolean"
  31803. abstract="false" native="false" synchronized="false"
  31804. static="false" final="false" visibility="public"
  31805. deprecated="not deprecated">
  31806. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31807. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31808. <doc>
  31809. <![CDATA[Add a named token to this UGI
  31810. @param alias Name of the token
  31811. @param token Token to be added
  31812. @return true on successful add of new token]]>
  31813. </doc>
  31814. </method>
  31815. <method name="getTokens" return="java.util.Collection"
  31816. abstract="false" native="false" synchronized="false"
  31817. static="false" final="false" visibility="public"
  31818. deprecated="not deprecated">
  31819. <doc>
  31820. <![CDATA[Obtain the collection of tokens associated with this user.
  31821. @return an unmodifiable collection of tokens associated with user]]>
  31822. </doc>
  31823. </method>
  31824. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  31825. abstract="false" native="false" synchronized="false"
  31826. static="false" final="false" visibility="public"
  31827. deprecated="not deprecated">
  31828. <doc>
  31829. <![CDATA[Obtain the tokens in credentials form associated with this user.
  31830. @return Credentials of tokens associated with this user]]>
  31831. </doc>
  31832. </method>
  31833. <method name="addCredentials"
  31834. abstract="false" native="false" synchronized="false"
  31835. static="false" final="false" visibility="public"
  31836. deprecated="not deprecated">
  31837. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  31838. <doc>
  31839. <![CDATA[Add the given Credentials to this user.
  31840. @param credentials of tokens and secrets]]>
  31841. </doc>
  31842. </method>
  31843. <method name="getGroupNames" return="java.lang.String[]"
  31844. abstract="false" native="false" synchronized="false"
  31845. static="false" final="false" visibility="public"
  31846. deprecated="not deprecated">
  31847. <doc>
  31848. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  31849. expensive alternative when checking for a contained element.
  31850. @return the list of users with the primary group first. If the command
  31851. fails, it returns an empty list.]]>
  31852. </doc>
  31853. </method>
  31854. <method name="getGroups" return="java.util.List"
  31855. abstract="false" native="false" synchronized="false"
  31856. static="false" final="false" visibility="public"
  31857. deprecated="not deprecated">
  31858. <doc>
  31859. <![CDATA[Get the group names for this user.
  31860. @return the list of users with the primary group first. If the command
  31861. fails, it returns an empty list.]]>
  31862. </doc>
  31863. </method>
  31864. <method name="toString" return="java.lang.String"
  31865. abstract="false" native="false" synchronized="false"
  31866. static="false" final="false" visibility="public"
  31867. deprecated="not deprecated">
  31868. <doc>
  31869. <![CDATA[Return the username.]]>
  31870. </doc>
  31871. </method>
  31872. <method name="setAuthenticationMethod"
  31873. abstract="false" native="false" synchronized="true"
  31874. static="false" final="false" visibility="public"
  31875. deprecated="not deprecated">
  31876. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  31877. <doc>
  31878. <![CDATA[Sets the authentication method in the subject
  31879. @param authMethod]]>
  31880. </doc>
  31881. </method>
  31882. <method name="setAuthenticationMethod"
  31883. abstract="false" native="false" synchronized="false"
  31884. static="false" final="false" visibility="public"
  31885. deprecated="not deprecated">
  31886. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  31887. <doc>
  31888. <![CDATA[Sets the authentication method in the subject
  31889. @param authMethod]]>
  31890. </doc>
  31891. </method>
  31892. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  31893. abstract="false" native="false" synchronized="true"
  31894. static="false" final="false" visibility="public"
  31895. deprecated="not deprecated">
  31896. <doc>
  31897. <![CDATA[Get the authentication method from the subject
  31898. @return AuthenticationMethod in the subject, null if not present.]]>
  31899. </doc>
  31900. </method>
  31901. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  31902. abstract="false" native="false" synchronized="true"
  31903. static="false" final="false" visibility="public"
  31904. deprecated="not deprecated">
  31905. <doc>
  31906. <![CDATA[Get the authentication method from the real user's subject. If there
  31907. is no real user, return the given user's authentication method.
  31908. @return AuthenticationMethod in the subject, null if not present.]]>
  31909. </doc>
  31910. </method>
  31911. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  31912. abstract="false" native="false" synchronized="false"
  31913. static="true" final="false" visibility="public"
  31914. deprecated="not deprecated">
  31915. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  31916. <doc>
  31917. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  31918. PROXY, returns the authentication method of the real user.
  31919. @param ugi
  31920. @return AuthenticationMethod]]>
  31921. </doc>
  31922. </method>
  31923. <method name="equals" return="boolean"
  31924. abstract="false" native="false" synchronized="false"
  31925. static="false" final="false" visibility="public"
  31926. deprecated="not deprecated">
  31927. <param name="o" type="java.lang.Object"/>
  31928. <doc>
  31929. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  31930. </doc>
  31931. </method>
  31932. <method name="hashCode" return="int"
  31933. abstract="false" native="false" synchronized="false"
  31934. static="false" final="false" visibility="public"
  31935. deprecated="not deprecated">
  31936. <doc>
  31937. <![CDATA[Return the hash of the subject.]]>
  31938. </doc>
  31939. </method>
  31940. <method name="getSubject" return="javax.security.auth.Subject"
  31941. abstract="false" native="false" synchronized="false"
  31942. static="false" final="false" visibility="protected"
  31943. deprecated="not deprecated">
  31944. <doc>
  31945. <![CDATA[Get the underlying subject from this ugi.
  31946. @return the subject that represents this user.]]>
  31947. </doc>
  31948. </method>
  31949. <method name="doAs" return="T"
  31950. abstract="false" native="false" synchronized="false"
  31951. static="false" final="false" visibility="public"
  31952. deprecated="not deprecated">
  31953. <param name="action" type="java.security.PrivilegedAction"/>
  31954. <doc>
  31955. <![CDATA[Run the given action as the user.
  31956. @param <T> the return type of the run method
  31957. @param action the method to execute
  31958. @return the value from the run method]]>
  31959. </doc>
  31960. </method>
  31961. <method name="doAs" return="T"
  31962. abstract="false" native="false" synchronized="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31966. <exception name="IOException" type="java.io.IOException"/>
  31967. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  31968. <doc>
  31969. <![CDATA[Run the given action as the user, potentially throwing an exception.
  31970. @param <T> the return type of the run method
  31971. @param action the method to execute
  31972. @return the value from the run method
  31973. @throws IOException if the action throws an IOException
  31974. @throws Error if the action throws an Error
  31975. @throws RuntimeException if the action throws a RuntimeException
  31976. @throws InterruptedException if the action throws an InterruptedException
  31977. @throws UndeclaredThrowableException if the action throws something else]]>
  31978. </doc>
  31979. </method>
  31980. <method name="logAllUserInfo"
  31981. abstract="false" native="false" synchronized="false"
  31982. static="true" final="false" visibility="public"
  31983. deprecated="not deprecated">
  31984. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  31985. <exception name="IOException" type="java.io.IOException"/>
  31986. <doc>
  31987. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  31988. @param ugi - UGI
  31989. @throws IOException]]>
  31990. </doc>
  31991. </method>
  31992. <method name="main"
  31993. abstract="false" native="false" synchronized="false"
  31994. static="true" final="false" visibility="public"
  31995. deprecated="not deprecated">
  31996. <param name="args" type="java.lang.String[]"/>
  31997. <exception name="Exception" type="java.lang.Exception"/>
  31998. <doc>
  31999. <![CDATA[A test method to print out the current user's UGI.
  32000. @param args if there are two arguments, read the user from the keytab
  32001. and print it out.
  32002. @throws Exception]]>
  32003. </doc>
  32004. </method>
  32005. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  32006. transient="false" volatile="false"
  32007. static="true" final="true" visibility="public"
  32008. deprecated="not deprecated">
  32009. <doc>
  32010. <![CDATA[Environment variable pointing to the token cache file]]>
  32011. </doc>
  32012. </field>
  32013. <field name="HADOOP_TOKEN" type="java.lang.String"
  32014. transient="false" volatile="false"
  32015. static="true" final="true" visibility="public"
  32016. deprecated="not deprecated">
  32017. <doc>
  32018. <![CDATA[Environment variable pointing to the base64 tokens.]]>
  32019. </doc>
  32020. </field>
  32021. <doc>
  32022. <![CDATA[User and group information for Hadoop.
  32023. This class wraps around a JAAS Subject and provides methods to determine the
  32024. user's username and groups. It supports both the Windows, Unix and Kerberos
  32025. login modules.]]>
  32026. </doc>
  32027. </class>
  32028. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  32029. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  32030. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  32031. abstract="false"
  32032. static="true" final="true" visibility="public"
  32033. deprecated="not deprecated">
  32034. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  32035. abstract="false" native="false" synchronized="false"
  32036. static="true" final="false" visibility="public"
  32037. deprecated="not deprecated">
  32038. </method>
  32039. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32040. abstract="false" native="false" synchronized="false"
  32041. static="true" final="false" visibility="public"
  32042. deprecated="not deprecated">
  32043. <param name="name" type="java.lang.String"/>
  32044. </method>
  32045. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  32046. abstract="false" native="false" synchronized="false"
  32047. static="false" final="false" visibility="public"
  32048. deprecated="not deprecated">
  32049. </method>
  32050. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32051. abstract="false" native="false" synchronized="false"
  32052. static="true" final="false" visibility="public"
  32053. deprecated="not deprecated">
  32054. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  32055. </method>
  32056. <doc>
  32057. <![CDATA[existing types of authentications' methods]]>
  32058. </doc>
  32059. </class>
  32060. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  32061. </package>
  32062. <package name="org.apache.hadoop.security.alias">
  32063. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  32064. <class name="CredentialProvider" extends="java.lang.Object"
  32065. abstract="true"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. <constructor name="CredentialProvider"
  32069. static="false" final="false" visibility="public"
  32070. deprecated="not deprecated">
  32071. </constructor>
  32072. <method name="isTransient" return="boolean"
  32073. abstract="false" native="false" synchronized="false"
  32074. static="false" final="false" visibility="public"
  32075. deprecated="not deprecated">
  32076. <doc>
  32077. <![CDATA[Indicates whether this provider represents a store
  32078. that is intended for transient use - such as the UserProvider
  32079. is. These providers are generally used to provide job access to
  32080. passwords rather than for long term storage.
  32081. @return true if transient, false otherwise]]>
  32082. </doc>
  32083. </method>
  32084. <method name="flush"
  32085. abstract="true" native="false" synchronized="false"
  32086. static="false" final="false" visibility="public"
  32087. deprecated="not deprecated">
  32088. <exception name="IOException" type="java.io.IOException"/>
  32089. <doc>
  32090. <![CDATA[Ensures that any changes to the credentials are written to persistent
  32091. store.
  32092. @throws IOException]]>
  32093. </doc>
  32094. </method>
  32095. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  32096. abstract="true" native="false" synchronized="false"
  32097. static="false" final="false" visibility="public"
  32098. deprecated="not deprecated">
  32099. <param name="alias" type="java.lang.String"/>
  32100. <exception name="IOException" type="java.io.IOException"/>
  32101. <doc>
  32102. <![CDATA[Get the credential entry for a specific alias.
  32103. @param alias the name of a specific credential
  32104. @return the credentialEntry
  32105. @throws IOException]]>
  32106. </doc>
  32107. </method>
  32108. <method name="getAliases" return="java.util.List"
  32109. abstract="true" native="false" synchronized="false"
  32110. static="false" final="false" visibility="public"
  32111. deprecated="not deprecated">
  32112. <exception name="IOException" type="java.io.IOException"/>
  32113. <doc>
  32114. <![CDATA[Get the aliases for all credentials.
  32115. @return the list of alias names
  32116. @throws IOException]]>
  32117. </doc>
  32118. </method>
  32119. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  32120. abstract="true" native="false" synchronized="false"
  32121. static="false" final="false" visibility="public"
  32122. deprecated="not deprecated">
  32123. <param name="name" type="java.lang.String"/>
  32124. <param name="credential" type="char[]"/>
  32125. <exception name="IOException" type="java.io.IOException"/>
  32126. <doc>
  32127. <![CDATA[Create a new credential. The given alias must not already exist.
  32128. @param name the alias of the credential
  32129. @param credential the credential value for the alias.
  32130. @throws IOException]]>
  32131. </doc>
  32132. </method>
  32133. <method name="deleteCredentialEntry"
  32134. abstract="true" native="false" synchronized="false"
  32135. static="false" final="false" visibility="public"
  32136. deprecated="not deprecated">
  32137. <param name="name" type="java.lang.String"/>
  32138. <exception name="IOException" type="java.io.IOException"/>
  32139. <doc>
  32140. <![CDATA[Delete the given credential.
  32141. @param name the alias of the credential to delete
  32142. @throws IOException]]>
  32143. </doc>
  32144. </method>
  32145. <method name="needsPassword" return="boolean"
  32146. abstract="false" native="false" synchronized="false"
  32147. static="false" final="false" visibility="public"
  32148. deprecated="not deprecated">
  32149. <exception name="IOException" type="java.io.IOException"/>
  32150. <doc>
  32151. <![CDATA[Does this provider require a password? This means that a password is
  32152. required for normal operation, and it has not been found through normal
  32153. means. If true, the password should be provided by the caller using
  32154. setPassword().
  32155. @return Whether or not the provider requires a password
  32156. @throws IOException]]>
  32157. </doc>
  32158. </method>
  32159. <method name="noPasswordWarning" return="java.lang.String"
  32160. abstract="false" native="false" synchronized="false"
  32161. static="false" final="false" visibility="public"
  32162. deprecated="not deprecated">
  32163. <doc>
  32164. <![CDATA[If a password for the provider is needed, but is not provided, this will
  32165. return a warning and instructions for supplying said password to the
  32166. provider.
  32167. @return A warning and instructions for supplying the password]]>
  32168. </doc>
  32169. </method>
  32170. <method name="noPasswordError" return="java.lang.String"
  32171. abstract="false" native="false" synchronized="false"
  32172. static="false" final="false" visibility="public"
  32173. deprecated="not deprecated">
  32174. <doc>
  32175. <![CDATA[If a password for the provider is needed, but is not provided, this will
  32176. return an error message and instructions for supplying said password to
  32177. the provider.
  32178. @return An error message and instructions for supplying the password]]>
  32179. </doc>
  32180. </method>
  32181. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  32182. transient="false" volatile="false"
  32183. static="true" final="true" visibility="public"
  32184. deprecated="not deprecated">
  32185. </field>
  32186. <doc>
  32187. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  32188. abstraction to separate credential storage from users of them. It
  32189. is intended to support getting or storing passwords in a variety of ways,
  32190. including third party bindings.
  32191. <code>CredentialProvider</code> implementations must be thread safe.]]>
  32192. </doc>
  32193. </class>
  32194. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  32195. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  32196. <class name="CredentialProviderFactory" extends="java.lang.Object"
  32197. abstract="true"
  32198. static="false" final="false" visibility="public"
  32199. deprecated="not deprecated">
  32200. <constructor name="CredentialProviderFactory"
  32201. static="false" final="false" visibility="public"
  32202. deprecated="not deprecated">
  32203. </constructor>
  32204. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  32205. abstract="true" native="false" synchronized="false"
  32206. static="false" final="false" visibility="public"
  32207. deprecated="not deprecated">
  32208. <param name="providerName" type="java.net.URI"/>
  32209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32210. <exception name="IOException" type="java.io.IOException"/>
  32211. </method>
  32212. <method name="getProviders" return="java.util.List"
  32213. abstract="false" native="false" synchronized="false"
  32214. static="true" final="false" visibility="public"
  32215. deprecated="not deprecated">
  32216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32217. <exception name="IOException" type="java.io.IOException"/>
  32218. </method>
  32219. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  32220. transient="false" volatile="false"
  32221. static="true" final="true" visibility="public"
  32222. deprecated="not deprecated">
  32223. </field>
  32224. <doc>
  32225. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  32226. Configuration. It uses a service loader interface to find the available
  32227. CredentialProviders and create them based on the list of URIs.]]>
  32228. </doc>
  32229. </class>
  32230. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  32231. </package>
  32232. <package name="org.apache.hadoop.security.authentication.server">
  32233. </package>
  32234. <package name="org.apache.hadoop.security.authorize">
  32235. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  32236. <class name="AccessControlList" extends="java.lang.Object"
  32237. abstract="false"
  32238. static="false" final="false" visibility="public"
  32239. deprecated="not deprecated">
  32240. <implements name="org.apache.hadoop.io.Writable"/>
  32241. <constructor name="AccessControlList"
  32242. static="false" final="false" visibility="public"
  32243. deprecated="not deprecated">
  32244. <doc>
  32245. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  32246. </doc>
  32247. </constructor>
  32248. <constructor name="AccessControlList" type="java.lang.String"
  32249. static="false" final="false" visibility="public"
  32250. deprecated="not deprecated">
  32251. <doc>
  32252. <![CDATA[Construct a new ACL from a String representation of the same.
  32253. The String is a a comma separated list of users and groups.
  32254. The user list comes first and is separated by a space followed
  32255. by the group list. For e.g. "user1,user2 group1,group2"
  32256. @param aclString String representation of the ACL]]>
  32257. </doc>
  32258. </constructor>
  32259. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  32260. static="false" final="false" visibility="public"
  32261. deprecated="not deprecated">
  32262. <doc>
  32263. <![CDATA[Construct a new ACL from String representation of users and groups
  32264. The arguments are comma separated lists
  32265. @param users comma separated list of users
  32266. @param groups comma separated list of groups]]>
  32267. </doc>
  32268. </constructor>
  32269. <method name="isAllAllowed" return="boolean"
  32270. abstract="false" native="false" synchronized="false"
  32271. static="false" final="false" visibility="public"
  32272. deprecated="not deprecated">
  32273. </method>
  32274. <method name="addUser"
  32275. abstract="false" native="false" synchronized="false"
  32276. static="false" final="false" visibility="public"
  32277. deprecated="not deprecated">
  32278. <param name="user" type="java.lang.String"/>
  32279. <doc>
  32280. <![CDATA[Add user to the names of users allowed for this service.
  32281. @param user
  32282. The user name]]>
  32283. </doc>
  32284. </method>
  32285. <method name="addGroup"
  32286. abstract="false" native="false" synchronized="false"
  32287. static="false" final="false" visibility="public"
  32288. deprecated="not deprecated">
  32289. <param name="group" type="java.lang.String"/>
  32290. <doc>
  32291. <![CDATA[Add group to the names of groups allowed for this service.
  32292. @param group
  32293. The group name]]>
  32294. </doc>
  32295. </method>
  32296. <method name="removeUser"
  32297. abstract="false" native="false" synchronized="false"
  32298. static="false" final="false" visibility="public"
  32299. deprecated="not deprecated">
  32300. <param name="user" type="java.lang.String"/>
  32301. <doc>
  32302. <![CDATA[Remove user from the names of users allowed for this service.
  32303. @param user
  32304. The user name]]>
  32305. </doc>
  32306. </method>
  32307. <method name="removeGroup"
  32308. abstract="false" native="false" synchronized="false"
  32309. static="false" final="false" visibility="public"
  32310. deprecated="not deprecated">
  32311. <param name="group" type="java.lang.String"/>
  32312. <doc>
  32313. <![CDATA[Remove group from the names of groups allowed for this service.
  32314. @param group
  32315. The group name]]>
  32316. </doc>
  32317. </method>
  32318. <method name="getUsers" return="java.util.Collection"
  32319. abstract="false" native="false" synchronized="false"
  32320. static="false" final="false" visibility="public"
  32321. deprecated="not deprecated">
  32322. <doc>
  32323. <![CDATA[Get the names of users allowed for this service.
  32324. @return the set of user names. the set must not be modified.]]>
  32325. </doc>
  32326. </method>
  32327. <method name="getGroups" return="java.util.Collection"
  32328. abstract="false" native="false" synchronized="false"
  32329. static="false" final="false" visibility="public"
  32330. deprecated="not deprecated">
  32331. <doc>
  32332. <![CDATA[Get the names of user groups allowed for this service.
  32333. @return the set of group names. the set must not be modified.]]>
  32334. </doc>
  32335. </method>
  32336. <method name="isUserInList" return="boolean"
  32337. abstract="false" native="false" synchronized="false"
  32338. static="false" final="true" visibility="public"
  32339. deprecated="not deprecated">
  32340. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32341. <doc>
  32342. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  32343. is a member of the Access Control List. If user was proxied and
  32344. USE_REAL_ACLS + the real user name is in the control list, then treat this
  32345. case as if user were in the ACL list.
  32346. @param ugi UserGroupInformation to check if contained in the ACL
  32347. @return true if ugi is member of the list or if USE_REAL_ACLS + real user
  32348. is in the list]]>
  32349. </doc>
  32350. </method>
  32351. <method name="isUserAllowed" return="boolean"
  32352. abstract="false" native="false" synchronized="false"
  32353. static="false" final="false" visibility="public"
  32354. deprecated="not deprecated">
  32355. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32356. </method>
  32357. <method name="toString" return="java.lang.String"
  32358. abstract="false" native="false" synchronized="false"
  32359. static="false" final="false" visibility="public"
  32360. deprecated="not deprecated">
  32361. <doc>
  32362. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  32363. Use {@link #getAclString()} to get the exact String that can be given to
  32364. the constructor of AccessControlList to create a new instance.]]>
  32365. </doc>
  32366. </method>
  32367. <method name="getAclString" return="java.lang.String"
  32368. abstract="false" native="false" synchronized="false"
  32369. static="false" final="false" visibility="public"
  32370. deprecated="not deprecated">
  32371. <doc>
  32372. <![CDATA[Returns the access control list as a String that can be used for building a
  32373. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  32374. </doc>
  32375. </method>
  32376. <method name="write"
  32377. abstract="false" native="false" synchronized="false"
  32378. static="false" final="false" visibility="public"
  32379. deprecated="not deprecated">
  32380. <param name="out" type="java.io.DataOutput"/>
  32381. <exception name="IOException" type="java.io.IOException"/>
  32382. <doc>
  32383. <![CDATA[Serializes the AccessControlList object]]>
  32384. </doc>
  32385. </method>
  32386. <method name="readFields"
  32387. abstract="false" native="false" synchronized="false"
  32388. static="false" final="false" visibility="public"
  32389. deprecated="not deprecated">
  32390. <param name="in" type="java.io.DataInput"/>
  32391. <exception name="IOException" type="java.io.IOException"/>
  32392. <doc>
  32393. <![CDATA[Deserializes the AccessControlList object]]>
  32394. </doc>
  32395. </method>
  32396. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  32397. transient="false" volatile="false"
  32398. static="true" final="true" visibility="public"
  32399. deprecated="not deprecated">
  32400. </field>
  32401. <field name="USE_REAL_ACLS" type="java.lang.String"
  32402. transient="false" volatile="false"
  32403. static="true" final="true" visibility="public"
  32404. deprecated="not deprecated">
  32405. </field>
  32406. <doc>
  32407. <![CDATA[Class representing a configured access control list.]]>
  32408. </doc>
  32409. </class>
  32410. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  32411. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  32412. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  32413. abstract="false"
  32414. static="false" final="false" visibility="public"
  32415. deprecated="not deprecated">
  32416. <constructor name="AuthorizationException"
  32417. static="false" final="false" visibility="public"
  32418. deprecated="not deprecated">
  32419. </constructor>
  32420. <constructor name="AuthorizationException" type="java.lang.String"
  32421. static="false" final="false" visibility="public"
  32422. deprecated="not deprecated">
  32423. </constructor>
  32424. <constructor name="AuthorizationException" type="java.lang.Throwable"
  32425. static="false" final="false" visibility="public"
  32426. deprecated="not deprecated">
  32427. <doc>
  32428. <![CDATA[Constructs a new exception with the specified cause and a detail
  32429. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32430. typically contains the class and detail message of <tt>cause</tt>).
  32431. @param cause the cause (which is saved for later retrieval by the
  32432. {@link #getCause()} method). (A <tt>null</tt> value is
  32433. permitted, and indicates that the cause is nonexistent or
  32434. unknown.)]]>
  32435. </doc>
  32436. </constructor>
  32437. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  32438. abstract="false" native="false" synchronized="false"
  32439. static="false" final="false" visibility="public"
  32440. deprecated="not deprecated">
  32441. </method>
  32442. <method name="printStackTrace"
  32443. abstract="false" native="false" synchronized="false"
  32444. static="false" final="false" visibility="public"
  32445. deprecated="not deprecated">
  32446. </method>
  32447. <method name="printStackTrace"
  32448. abstract="false" native="false" synchronized="false"
  32449. static="false" final="false" visibility="public"
  32450. deprecated="not deprecated">
  32451. <param name="s" type="java.io.PrintStream"/>
  32452. </method>
  32453. <method name="printStackTrace"
  32454. abstract="false" native="false" synchronized="false"
  32455. static="false" final="false" visibility="public"
  32456. deprecated="not deprecated">
  32457. <param name="s" type="java.io.PrintWriter"/>
  32458. </method>
  32459. <doc>
  32460. <![CDATA[An exception class for authorization-related issues.
  32461. This class <em>does not</em> provide the stack trace for security purposes.]]>
  32462. </doc>
  32463. </class>
  32464. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  32465. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  32466. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  32467. abstract="false"
  32468. static="false" final="false" visibility="public"
  32469. deprecated="not deprecated">
  32470. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  32471. <constructor name="DefaultImpersonationProvider"
  32472. static="false" final="false" visibility="public"
  32473. deprecated="not deprecated">
  32474. </constructor>
  32475. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  32476. abstract="false" native="false" synchronized="true"
  32477. static="true" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. </method>
  32480. <method name="setConf"
  32481. abstract="false" native="false" synchronized="false"
  32482. static="false" final="false" visibility="public"
  32483. deprecated="not deprecated">
  32484. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32485. </method>
  32486. <method name="init"
  32487. abstract="false" native="false" synchronized="false"
  32488. static="false" final="false" visibility="public"
  32489. deprecated="not deprecated">
  32490. <param name="configurationPrefix" type="java.lang.String"/>
  32491. </method>
  32492. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  32493. abstract="false" native="false" synchronized="false"
  32494. static="false" final="false" visibility="public"
  32495. deprecated="not deprecated">
  32496. </method>
  32497. <method name="authorize"
  32498. abstract="false" native="false" synchronized="false"
  32499. static="false" final="false" visibility="public"
  32500. deprecated="not deprecated">
  32501. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32502. <param name="remoteAddress" type="java.net.InetAddress"/>
  32503. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32504. </method>
  32505. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  32506. abstract="false" native="false" synchronized="false"
  32507. static="false" final="false" visibility="public"
  32508. deprecated="not deprecated">
  32509. <param name="userName" type="java.lang.String"/>
  32510. <doc>
  32511. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  32512. @param userName name of the superuser
  32513. @return configuration key for superuser usergroups]]>
  32514. </doc>
  32515. </method>
  32516. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  32517. abstract="false" native="false" synchronized="false"
  32518. static="false" final="false" visibility="public"
  32519. deprecated="not deprecated">
  32520. <param name="userName" type="java.lang.String"/>
  32521. <doc>
  32522. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  32523. @param userName name of the superuser
  32524. @return configuration key for superuser groups]]>
  32525. </doc>
  32526. </method>
  32527. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  32528. abstract="false" native="false" synchronized="false"
  32529. static="false" final="false" visibility="public"
  32530. deprecated="not deprecated">
  32531. <param name="userName" type="java.lang.String"/>
  32532. <doc>
  32533. <![CDATA[Return configuration key for superuser ip addresses
  32534. @param userName name of the superuser
  32535. @return configuration key for superuser ip-addresses]]>
  32536. </doc>
  32537. </method>
  32538. <method name="getProxyGroups" return="java.util.Map"
  32539. abstract="false" native="false" synchronized="false"
  32540. static="false" final="false" visibility="public"
  32541. deprecated="not deprecated">
  32542. </method>
  32543. <method name="getProxyHosts" return="java.util.Map"
  32544. abstract="false" native="false" synchronized="false"
  32545. static="false" final="false" visibility="public"
  32546. deprecated="not deprecated">
  32547. </method>
  32548. </class>
  32549. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  32550. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  32551. <interface name="ImpersonationProvider" abstract="true"
  32552. static="false" final="false" visibility="public"
  32553. deprecated="not deprecated">
  32554. <implements name="org.apache.hadoop.conf.Configurable"/>
  32555. <method name="init"
  32556. abstract="true" native="false" synchronized="false"
  32557. static="false" final="false" visibility="public"
  32558. deprecated="not deprecated">
  32559. <param name="configurationPrefix" type="java.lang.String"/>
  32560. <doc>
  32561. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  32562. initializes the provider.
  32563. @param configurationPrefix the configuration prefix for the proxy user
  32564. properties]]>
  32565. </doc>
  32566. </method>
  32567. <method name="authorize"
  32568. abstract="false" native="false" synchronized="false"
  32569. static="false" final="false" visibility="public"
  32570. deprecated="not deprecated">
  32571. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32572. <param name="remoteAddress" type="java.lang.String"/>
  32573. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32574. <doc>
  32575. <![CDATA[Authorize the superuser which is doing doAs.
  32576. {@link #authorize(UserGroupInformation, InetAddress)} should
  32577. be preferred to avoid possibly re-resolving the ip address.
  32578. @param user ugi of the effective or proxy user which contains a real user.
  32579. @param remoteAddress the ip address of client.
  32580. @throws AuthorizationException]]>
  32581. </doc>
  32582. </method>
  32583. <method name="authorize"
  32584. abstract="true" native="false" synchronized="false"
  32585. static="false" final="false" visibility="public"
  32586. deprecated="not deprecated">
  32587. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32588. <param name="remoteAddress" type="java.net.InetAddress"/>
  32589. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32590. <doc>
  32591. <![CDATA[Authorize the superuser which is doing doAs.
  32592. @param user ugi of the effective or proxy user which contains a real user
  32593. @param remoteAddress the ip address of client
  32594. @throws AuthorizationException]]>
  32595. </doc>
  32596. </method>
  32597. </interface>
  32598. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  32599. </package>
  32600. <package name="org.apache.hadoop.security.http">
  32601. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  32602. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  32603. abstract="false"
  32604. static="false" final="false" visibility="public"
  32605. deprecated="not deprecated">
  32606. <implements name="javax.servlet.Filter"/>
  32607. <constructor name="RestCsrfPreventionFilter"
  32608. static="false" final="false" visibility="public"
  32609. deprecated="not deprecated">
  32610. </constructor>
  32611. <method name="init"
  32612. abstract="false" native="false" synchronized="false"
  32613. static="false" final="false" visibility="public"
  32614. deprecated="not deprecated">
  32615. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  32616. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32617. </method>
  32618. <method name="isBrowser" return="boolean"
  32619. abstract="false" native="false" synchronized="false"
  32620. static="false" final="false" visibility="protected"
  32621. deprecated="not deprecated">
  32622. <param name="userAgent" type="java.lang.String"/>
  32623. <doc>
  32624. <![CDATA[This method interrogates the User-Agent String and returns whether it
  32625. refers to a browser. If its not a browser, then the requirement for the
  32626. CSRF header will not be enforced; if it is a browser, the requirement will
  32627. be enforced.
  32628. <p>
  32629. A User-Agent String is considered to be a browser if it matches
  32630. any of the regex patterns from browser-useragent-regex; the default
  32631. behavior is to consider everything a browser that matches the following:
  32632. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  32633. this method to use different behavior.
  32634. @param userAgent The User-Agent String, or null if there isn't one
  32635. @return true if the User-Agent String refers to a browser, false if not]]>
  32636. </doc>
  32637. </method>
  32638. <method name="handleHttpInteraction"
  32639. abstract="false" native="false" synchronized="false"
  32640. static="false" final="false" visibility="public"
  32641. deprecated="not deprecated">
  32642. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  32643. <exception name="IOException" type="java.io.IOException"/>
  32644. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32645. <doc>
  32646. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  32647. @param httpInteraction caller's HTTP interaction
  32648. @throws IOException if there is an I/O error
  32649. @throws ServletException if the implementation relies on the servlet API
  32650. and a servlet API call has failed]]>
  32651. </doc>
  32652. </method>
  32653. <method name="doFilter"
  32654. abstract="false" native="false" synchronized="false"
  32655. static="false" final="false" visibility="public"
  32656. deprecated="not deprecated">
  32657. <param name="request" type="javax.servlet.ServletRequest"/>
  32658. <param name="response" type="javax.servlet.ServletResponse"/>
  32659. <param name="chain" type="javax.servlet.FilterChain"/>
  32660. <exception name="IOException" type="java.io.IOException"/>
  32661. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32662. </method>
  32663. <method name="destroy"
  32664. abstract="false" native="false" synchronized="false"
  32665. static="false" final="false" visibility="public"
  32666. deprecated="not deprecated">
  32667. </method>
  32668. <method name="getFilterParams" return="java.util.Map"
  32669. abstract="false" native="false" synchronized="false"
  32670. static="true" final="false" visibility="public"
  32671. deprecated="not deprecated">
  32672. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32673. <param name="confPrefix" type="java.lang.String"/>
  32674. <doc>
  32675. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  32676. initialization. The mapping includes all properties that start with the
  32677. specified configuration prefix. Property names in the mapping are trimmed
  32678. to remove the configuration prefix.
  32679. @param conf configuration to read
  32680. @param confPrefix configuration prefix
  32681. @return mapping of configuration properties to be used for filter
  32682. initialization]]>
  32683. </doc>
  32684. </method>
  32685. <field name="HEADER_USER_AGENT" type="java.lang.String"
  32686. transient="false" volatile="false"
  32687. static="true" final="true" visibility="public"
  32688. deprecated="not deprecated">
  32689. </field>
  32690. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  32691. transient="false" volatile="false"
  32692. static="true" final="true" visibility="public"
  32693. deprecated="not deprecated">
  32694. </field>
  32695. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  32696. transient="false" volatile="false"
  32697. static="true" final="true" visibility="public"
  32698. deprecated="not deprecated">
  32699. </field>
  32700. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  32701. transient="false" volatile="false"
  32702. static="true" final="true" visibility="public"
  32703. deprecated="not deprecated">
  32704. </field>
  32705. <field name="HEADER_DEFAULT" type="java.lang.String"
  32706. transient="false" volatile="false"
  32707. static="true" final="true" visibility="public"
  32708. deprecated="not deprecated">
  32709. </field>
  32710. <doc>
  32711. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  32712. attacks for REST APIs. Enabling this filter on an endpoint results in the
  32713. requirement of all client to send a particular (configurable) HTTP header
  32714. with every request. In the absense of this header the filter will reject the
  32715. attempt as a bad request.]]>
  32716. </doc>
  32717. </class>
  32718. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  32719. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  32720. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  32721. abstract="false"
  32722. static="false" final="false" visibility="public"
  32723. deprecated="not deprecated">
  32724. <implements name="javax.servlet.Filter"/>
  32725. <constructor name="XFrameOptionsFilter"
  32726. static="false" final="false" visibility="public"
  32727. deprecated="not deprecated">
  32728. </constructor>
  32729. <method name="destroy"
  32730. abstract="false" native="false" synchronized="false"
  32731. static="false" final="false" visibility="public"
  32732. deprecated="not deprecated">
  32733. </method>
  32734. <method name="doFilter"
  32735. abstract="false" native="false" synchronized="false"
  32736. static="false" final="false" visibility="public"
  32737. deprecated="not deprecated">
  32738. <param name="req" type="javax.servlet.ServletRequest"/>
  32739. <param name="res" type="javax.servlet.ServletResponse"/>
  32740. <param name="chain" type="javax.servlet.FilterChain"/>
  32741. <exception name="IOException" type="java.io.IOException"/>
  32742. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32743. </method>
  32744. <method name="init"
  32745. abstract="false" native="false" synchronized="false"
  32746. static="false" final="false" visibility="public"
  32747. deprecated="not deprecated">
  32748. <param name="config" type="javax.servlet.FilterConfig"/>
  32749. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32750. </method>
  32751. <method name="getFilterParams" return="java.util.Map"
  32752. abstract="false" native="false" synchronized="false"
  32753. static="true" final="false" visibility="public"
  32754. deprecated="not deprecated">
  32755. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32756. <param name="confPrefix" type="java.lang.String"/>
  32757. <doc>
  32758. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  32759. initialization. The mapping includes all properties that start with the
  32760. specified configuration prefix. Property names in the mapping are trimmed
  32761. to remove the configuration prefix.
  32762. @param conf configuration to read
  32763. @param confPrefix configuration prefix
  32764. @return mapping of configuration properties to be used for filter
  32765. initialization]]>
  32766. </doc>
  32767. </method>
  32768. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  32769. transient="false" volatile="false"
  32770. static="true" final="true" visibility="public"
  32771. deprecated="not deprecated">
  32772. </field>
  32773. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  32774. transient="false" volatile="false"
  32775. static="true" final="true" visibility="public"
  32776. deprecated="not deprecated">
  32777. </field>
  32778. <doc>
  32779. <![CDATA[This filter protects webapps from clickjacking attacks that
  32780. are possible through use of Frames to embed the resources in another
  32781. application and intercept clicks to accomplish nefarious things.]]>
  32782. </doc>
  32783. </class>
  32784. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  32785. </package>
  32786. <package name="org.apache.hadoop.security.protocolPB">
  32787. </package>
  32788. <package name="org.apache.hadoop.security.ssl">
  32789. </package>
  32790. <package name="org.apache.hadoop.security.token">
  32791. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  32792. <class name="SecretManager" extends="java.lang.Object"
  32793. abstract="true"
  32794. static="false" final="false" visibility="public"
  32795. deprecated="not deprecated">
  32796. <constructor name="SecretManager"
  32797. static="false" final="false" visibility="public"
  32798. deprecated="not deprecated">
  32799. </constructor>
  32800. <method name="createPassword" return="byte[]"
  32801. abstract="true" native="false" synchronized="false"
  32802. static="false" final="false" visibility="protected"
  32803. deprecated="not deprecated">
  32804. <param name="identifier" type="T"/>
  32805. <doc>
  32806. <![CDATA[Create the password for the given identifier.
  32807. identifier may be modified inside this method.
  32808. @param identifier the identifier to use
  32809. @return the new password]]>
  32810. </doc>
  32811. </method>
  32812. <method name="retrievePassword" return="byte[]"
  32813. abstract="true" native="false" synchronized="false"
  32814. static="false" final="false" visibility="public"
  32815. deprecated="not deprecated">
  32816. <param name="identifier" type="T"/>
  32817. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  32818. <doc>
  32819. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  32820. or registry to make sure the token hasn't expired or been revoked. Returns
  32821. the relevant password.
  32822. @param identifier the identifier to validate
  32823. @return the password to use
  32824. @throws InvalidToken the token was invalid]]>
  32825. </doc>
  32826. </method>
  32827. <method name="retriableRetrievePassword" return="byte[]"
  32828. abstract="false" native="false" synchronized="false"
  32829. static="false" final="false" visibility="public"
  32830. deprecated="not deprecated">
  32831. <param name="identifier" type="T"/>
  32832. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  32833. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  32834. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  32835. <exception name="IOException" type="java.io.IOException"/>
  32836. <doc>
  32837. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  32838. method can throw a {@link RetriableException} or a {@link StandbyException}
  32839. to indicate that client can retry/failover the same operation because of
  32840. temporary issue on the server side.
  32841. @param identifier the identifier to validate
  32842. @return the password to use
  32843. @throws InvalidToken the token was invalid
  32844. @throws StandbyException the server is in standby state, the client can
  32845. try other servers
  32846. @throws RetriableException the token was invalid, and the server thinks
  32847. this may be a temporary issue and suggests the client to retry
  32848. @throws IOException to allow future exceptions to be added without breaking
  32849. compatibility]]>
  32850. </doc>
  32851. </method>
  32852. <method name="createIdentifier" return="T"
  32853. abstract="true" native="false" synchronized="false"
  32854. static="false" final="false" visibility="public"
  32855. deprecated="not deprecated">
  32856. <doc>
  32857. <![CDATA[Create an empty token identifier.
  32858. @return the newly created empty token identifier]]>
  32859. </doc>
  32860. </method>
  32861. <method name="checkAvailableForRead"
  32862. abstract="false" native="false" synchronized="false"
  32863. static="false" final="false" visibility="public"
  32864. deprecated="not deprecated">
  32865. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  32866. <doc>
  32867. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  32868. StandbyException otherwise.
  32869. @throws StandbyException if the secret manager is not available to read
  32870. tokens]]>
  32871. </doc>
  32872. </method>
  32873. <method name="generateSecret" return="javax.crypto.SecretKey"
  32874. abstract="false" native="false" synchronized="false"
  32875. static="false" final="false" visibility="protected"
  32876. deprecated="not deprecated">
  32877. <doc>
  32878. <![CDATA[Generate a new random secret key.
  32879. @return the new key]]>
  32880. </doc>
  32881. </method>
  32882. <method name="createPassword" return="byte[]"
  32883. abstract="false" native="false" synchronized="false"
  32884. static="true" final="false" visibility="public"
  32885. deprecated="not deprecated">
  32886. <param name="identifier" type="byte[]"/>
  32887. <param name="key" type="javax.crypto.SecretKey"/>
  32888. <doc>
  32889. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  32890. output as password
  32891. @param identifier the bytes of the identifier
  32892. @param key the secret key
  32893. @return the bytes of the generated password]]>
  32894. </doc>
  32895. </method>
  32896. <method name="createSecretKey" return="javax.crypto.SecretKey"
  32897. abstract="false" native="false" synchronized="false"
  32898. static="true" final="false" visibility="protected"
  32899. deprecated="not deprecated">
  32900. <param name="key" type="byte[]"/>
  32901. <doc>
  32902. <![CDATA[Convert the byte[] to a secret key
  32903. @param key the byte[] to create a secret key from
  32904. @return the secret key]]>
  32905. </doc>
  32906. </method>
  32907. <doc>
  32908. <![CDATA[The server-side secret manager for each token type.
  32909. @param <T> The type of the token identifier]]>
  32910. </doc>
  32911. </class>
  32912. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  32913. <!-- start class org.apache.hadoop.security.token.Token -->
  32914. <class name="Token" extends="java.lang.Object"
  32915. abstract="false"
  32916. static="false" final="false" visibility="public"
  32917. deprecated="not deprecated">
  32918. <implements name="org.apache.hadoop.io.Writable"/>
  32919. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  32920. static="false" final="false" visibility="public"
  32921. deprecated="not deprecated">
  32922. <doc>
  32923. <![CDATA[Construct a token given a token identifier and a secret manager for the
  32924. type of the token identifier.
  32925. @param id the token identifier
  32926. @param mgr the secret manager]]>
  32927. </doc>
  32928. </constructor>
  32929. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  32930. static="false" final="false" visibility="public"
  32931. deprecated="not deprecated">
  32932. <doc>
  32933. <![CDATA[Construct a token from the components.
  32934. @param identifier the token identifier
  32935. @param password the token's password
  32936. @param kind the kind of token
  32937. @param service the service for this token]]>
  32938. </doc>
  32939. </constructor>
  32940. <constructor name="Token"
  32941. static="false" final="false" visibility="public"
  32942. deprecated="not deprecated">
  32943. <doc>
  32944. <![CDATA[Default constructor.]]>
  32945. </doc>
  32946. </constructor>
  32947. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  32948. static="false" final="false" visibility="public"
  32949. deprecated="not deprecated">
  32950. <doc>
  32951. <![CDATA[Clone a token.
  32952. @param other the token to clone]]>
  32953. </doc>
  32954. </constructor>
  32955. <method name="setID"
  32956. abstract="false" native="false" synchronized="false"
  32957. static="false" final="false" visibility="public"
  32958. deprecated="not deprecated">
  32959. <param name="bytes" type="byte[]"/>
  32960. </method>
  32961. <method name="setPassword"
  32962. abstract="false" native="false" synchronized="false"
  32963. static="false" final="false" visibility="public"
  32964. deprecated="not deprecated">
  32965. <param name="newPassword" type="byte[]"/>
  32966. </method>
  32967. <method name="copyToken" return="org.apache.hadoop.security.token.Token"
  32968. abstract="false" native="false" synchronized="false"
  32969. static="false" final="false" visibility="public"
  32970. deprecated="not deprecated">
  32971. </method>
  32972. <method name="getIdentifier" return="byte[]"
  32973. abstract="false" native="false" synchronized="false"
  32974. static="false" final="false" visibility="public"
  32975. deprecated="not deprecated">
  32976. <doc>
  32977. <![CDATA[Get the token identifier's byte representation.
  32978. @return the token identifier's byte representation]]>
  32979. </doc>
  32980. </method>
  32981. <method name="decodeIdentifier" return="T"
  32982. abstract="false" native="false" synchronized="false"
  32983. static="false" final="false" visibility="public"
  32984. deprecated="not deprecated">
  32985. <exception name="IOException" type="java.io.IOException"/>
  32986. <doc>
  32987. <![CDATA[Get the token identifier object, or null if it could not be constructed
  32988. (because the class could not be loaded, for example).
  32989. @return the token identifier, or null if there was no class found for it
  32990. @throws IOException failure to unmarshall the data
  32991. @throws RuntimeException if the token class could not be instantiated.]]>
  32992. </doc>
  32993. </method>
  32994. <method name="getPassword" return="byte[]"
  32995. abstract="false" native="false" synchronized="false"
  32996. static="false" final="false" visibility="public"
  32997. deprecated="not deprecated">
  32998. <doc>
  32999. <![CDATA[Get the token password/secret.
  33000. @return the token password/secret]]>
  33001. </doc>
  33002. </method>
  33003. <method name="getKind" return="org.apache.hadoop.io.Text"
  33004. abstract="false" native="false" synchronized="true"
  33005. static="false" final="false" visibility="public"
  33006. deprecated="not deprecated">
  33007. <doc>
  33008. <![CDATA[Get the token kind.
  33009. @return the kind of the token]]>
  33010. </doc>
  33011. </method>
  33012. <method name="getService" return="org.apache.hadoop.io.Text"
  33013. abstract="false" native="false" synchronized="false"
  33014. static="false" final="false" visibility="public"
  33015. deprecated="not deprecated">
  33016. <doc>
  33017. <![CDATA[Get the service on which the token is supposed to be used.
  33018. @return the service name]]>
  33019. </doc>
  33020. </method>
  33021. <method name="setService"
  33022. abstract="false" native="false" synchronized="false"
  33023. static="false" final="false" visibility="public"
  33024. deprecated="not deprecated">
  33025. <param name="newService" type="org.apache.hadoop.io.Text"/>
  33026. <doc>
  33027. <![CDATA[Set the service on which the token is supposed to be used.
  33028. @param newService the service name]]>
  33029. </doc>
  33030. </method>
  33031. <method name="isPrivate" return="boolean"
  33032. abstract="false" native="false" synchronized="false"
  33033. static="false" final="false" visibility="public"
  33034. deprecated="not deprecated">
  33035. <doc>
  33036. <![CDATA[Whether this is a private token.
  33037. @return false always for non-private tokens]]>
  33038. </doc>
  33039. </method>
  33040. <method name="isPrivateCloneOf" return="boolean"
  33041. abstract="false" native="false" synchronized="false"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  33045. <doc>
  33046. <![CDATA[Whether this is a private clone of a public token.
  33047. @param thePublicService the public service name
  33048. @return false always for non-private tokens]]>
  33049. </doc>
  33050. </method>
  33051. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  33052. abstract="false" native="false" synchronized="false"
  33053. static="false" final="false" visibility="public"
  33054. deprecated="not deprecated">
  33055. <param name="newService" type="org.apache.hadoop.io.Text"/>
  33056. <doc>
  33057. <![CDATA[Create a private clone of a public token.
  33058. @param newService the new service name
  33059. @return a private token]]>
  33060. </doc>
  33061. </method>
  33062. <method name="readFields"
  33063. abstract="false" native="false" synchronized="false"
  33064. static="false" final="false" visibility="public"
  33065. deprecated="not deprecated">
  33066. <param name="in" type="java.io.DataInput"/>
  33067. <exception name="IOException" type="java.io.IOException"/>
  33068. </method>
  33069. <method name="write"
  33070. abstract="false" native="false" synchronized="false"
  33071. static="false" final="false" visibility="public"
  33072. deprecated="not deprecated">
  33073. <param name="out" type="java.io.DataOutput"/>
  33074. <exception name="IOException" type="java.io.IOException"/>
  33075. </method>
  33076. <method name="encodeToUrlString" return="java.lang.String"
  33077. abstract="false" native="false" synchronized="false"
  33078. static="false" final="false" visibility="public"
  33079. deprecated="not deprecated">
  33080. <exception name="IOException" type="java.io.IOException"/>
  33081. <doc>
  33082. <![CDATA[Encode this token as a url safe string.
  33083. @return the encoded string
  33084. @throws IOException]]>
  33085. </doc>
  33086. </method>
  33087. <method name="decodeFromUrlString"
  33088. abstract="false" native="false" synchronized="false"
  33089. static="false" final="false" visibility="public"
  33090. deprecated="not deprecated">
  33091. <param name="newValue" type="java.lang.String"/>
  33092. <exception name="IOException" type="java.io.IOException"/>
  33093. <doc>
  33094. <![CDATA[Decode the given url safe string into this token.
  33095. @param newValue the encoded string
  33096. @throws IOException]]>
  33097. </doc>
  33098. </method>
  33099. <method name="equals" return="boolean"
  33100. abstract="false" native="false" synchronized="false"
  33101. static="false" final="false" visibility="public"
  33102. deprecated="not deprecated">
  33103. <param name="right" type="java.lang.Object"/>
  33104. </method>
  33105. <method name="hashCode" return="int"
  33106. abstract="false" native="false" synchronized="false"
  33107. static="false" final="false" visibility="public"
  33108. deprecated="not deprecated">
  33109. </method>
  33110. <method name="toString" return="java.lang.String"
  33111. abstract="false" native="false" synchronized="false"
  33112. static="false" final="false" visibility="public"
  33113. deprecated="not deprecated">
  33114. </method>
  33115. <method name="buildCacheKey" return="java.lang.String"
  33116. abstract="false" native="false" synchronized="false"
  33117. static="false" final="false" visibility="public"
  33118. deprecated="not deprecated">
  33119. </method>
  33120. <method name="isManaged" return="boolean"
  33121. abstract="false" native="false" synchronized="false"
  33122. static="false" final="false" visibility="public"
  33123. deprecated="not deprecated">
  33124. <exception name="IOException" type="java.io.IOException"/>
  33125. <doc>
  33126. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  33127. @return true, if it can be renewed and cancelled.]]>
  33128. </doc>
  33129. </method>
  33130. <method name="renew" return="long"
  33131. abstract="false" native="false" synchronized="false"
  33132. static="false" final="false" visibility="public"
  33133. deprecated="not deprecated">
  33134. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33135. <exception name="IOException" type="java.io.IOException"/>
  33136. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33137. <doc>
  33138. <![CDATA[Renew this delegation token.
  33139. @return the new expiration time
  33140. @throws IOException
  33141. @throws InterruptedException]]>
  33142. </doc>
  33143. </method>
  33144. <method name="cancel"
  33145. abstract="false" native="false" synchronized="false"
  33146. static="false" final="false" visibility="public"
  33147. deprecated="not deprecated">
  33148. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33149. <exception name="IOException" type="java.io.IOException"/>
  33150. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33151. <doc>
  33152. <![CDATA[Cancel this delegation token.
  33153. @throws IOException
  33154. @throws InterruptedException]]>
  33155. </doc>
  33156. </method>
  33157. <field name="LOG" type="org.slf4j.Logger"
  33158. transient="false" volatile="false"
  33159. static="true" final="true" visibility="public"
  33160. deprecated="not deprecated">
  33161. </field>
  33162. <doc>
  33163. <![CDATA[The client-side form of the token.]]>
  33164. </doc>
  33165. </class>
  33166. <!-- end class org.apache.hadoop.security.token.Token -->
  33167. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  33168. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  33169. abstract="false"
  33170. static="true" final="false" visibility="public"
  33171. deprecated="not deprecated">
  33172. <constructor name="TrivialRenewer"
  33173. static="false" final="false" visibility="public"
  33174. deprecated="not deprecated">
  33175. </constructor>
  33176. <method name="getKind" return="org.apache.hadoop.io.Text"
  33177. abstract="false" native="false" synchronized="false"
  33178. static="false" final="false" visibility="protected"
  33179. deprecated="not deprecated">
  33180. </method>
  33181. <method name="handleKind" return="boolean"
  33182. abstract="false" native="false" synchronized="false"
  33183. static="false" final="false" visibility="public"
  33184. deprecated="not deprecated">
  33185. <param name="kind" type="org.apache.hadoop.io.Text"/>
  33186. </method>
  33187. <method name="isManaged" return="boolean"
  33188. abstract="false" native="false" synchronized="false"
  33189. static="false" final="false" visibility="public"
  33190. deprecated="not deprecated">
  33191. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33192. </method>
  33193. <method name="renew" return="long"
  33194. abstract="false" native="false" synchronized="false"
  33195. static="false" final="false" visibility="public"
  33196. deprecated="not deprecated">
  33197. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33198. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33199. </method>
  33200. <method name="cancel"
  33201. abstract="false" native="false" synchronized="false"
  33202. static="false" final="false" visibility="public"
  33203. deprecated="not deprecated">
  33204. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33206. <exception name="IOException" type="java.io.IOException"/>
  33207. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33208. </method>
  33209. <doc>
  33210. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  33211. to implement getKind for their token kind.]]>
  33212. </doc>
  33213. </class>
  33214. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  33215. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  33216. <class name="TokenIdentifier" extends="java.lang.Object"
  33217. abstract="true"
  33218. static="false" final="false" visibility="public"
  33219. deprecated="not deprecated">
  33220. <implements name="org.apache.hadoop.io.Writable"/>
  33221. <constructor name="TokenIdentifier"
  33222. static="false" final="false" visibility="public"
  33223. deprecated="not deprecated">
  33224. </constructor>
  33225. <method name="getKind" return="org.apache.hadoop.io.Text"
  33226. abstract="true" native="false" synchronized="false"
  33227. static="false" final="false" visibility="public"
  33228. deprecated="not deprecated">
  33229. <doc>
  33230. <![CDATA[Get the token kind
  33231. @return the kind of the token]]>
  33232. </doc>
  33233. </method>
  33234. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  33235. abstract="true" native="false" synchronized="false"
  33236. static="false" final="false" visibility="public"
  33237. deprecated="not deprecated">
  33238. <doc>
  33239. <![CDATA[Get the Ugi with the username encoded in the token identifier
  33240. @return the username. null is returned if username in the identifier is
  33241. empty or null.]]>
  33242. </doc>
  33243. </method>
  33244. <method name="getBytes" return="byte[]"
  33245. abstract="false" native="false" synchronized="false"
  33246. static="false" final="false" visibility="public"
  33247. deprecated="not deprecated">
  33248. <doc>
  33249. <![CDATA[Get the bytes for the token identifier
  33250. @return the bytes of the identifier]]>
  33251. </doc>
  33252. </method>
  33253. <method name="getTrackingId" return="java.lang.String"
  33254. abstract="false" native="false" synchronized="false"
  33255. static="false" final="false" visibility="public"
  33256. deprecated="not deprecated">
  33257. <doc>
  33258. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  33259. token across multiple client sessions.
  33260. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  33261. @return tracking identifier]]>
  33262. </doc>
  33263. </method>
  33264. <doc>
  33265. <![CDATA[An identifier that identifies a token, may contain public information
  33266. about a token, including its kind (or type).]]>
  33267. </doc>
  33268. </class>
  33269. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  33270. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  33271. <class name="TokenInfo" abstract="true"
  33272. static="false" final="false" visibility="public"
  33273. deprecated="not deprecated">
  33274. <implements name="java.lang.annotation.Annotation"/>
  33275. <doc>
  33276. <![CDATA[Indicates Token related information to be used]]>
  33277. </doc>
  33278. </class>
  33279. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  33280. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  33281. <class name="TokenRenewer" extends="java.lang.Object"
  33282. abstract="true"
  33283. static="false" final="false" visibility="public"
  33284. deprecated="not deprecated">
  33285. <constructor name="TokenRenewer"
  33286. static="false" final="false" visibility="public"
  33287. deprecated="not deprecated">
  33288. </constructor>
  33289. <method name="handleKind" return="boolean"
  33290. abstract="true" native="false" synchronized="false"
  33291. static="false" final="false" visibility="public"
  33292. deprecated="not deprecated">
  33293. <param name="kind" type="org.apache.hadoop.io.Text"/>
  33294. <doc>
  33295. <![CDATA[Does this renewer handle this kind of token?
  33296. @param kind the kind of the token
  33297. @return true if this renewer can renew it]]>
  33298. </doc>
  33299. </method>
  33300. <method name="isManaged" return="boolean"
  33301. abstract="true" native="false" synchronized="false"
  33302. static="false" final="false" visibility="public"
  33303. deprecated="not deprecated">
  33304. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33305. <exception name="IOException" type="java.io.IOException"/>
  33306. <doc>
  33307. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  33308. cancelled.
  33309. @param token the token being checked
  33310. @return true if the token may be renewed or cancelled
  33311. @throws IOException]]>
  33312. </doc>
  33313. </method>
  33314. <method name="renew" return="long"
  33315. abstract="true" native="false" synchronized="false"
  33316. static="false" final="false" visibility="public"
  33317. deprecated="not deprecated">
  33318. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33319. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33320. <exception name="IOException" type="java.io.IOException"/>
  33321. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33322. <doc>
  33323. <![CDATA[Renew the given token.
  33324. @return the new expiration time
  33325. @throws IOException
  33326. @throws InterruptedException]]>
  33327. </doc>
  33328. </method>
  33329. <method name="cancel"
  33330. abstract="true" native="false" synchronized="false"
  33331. static="false" final="false" visibility="public"
  33332. deprecated="not deprecated">
  33333. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33335. <exception name="IOException" type="java.io.IOException"/>
  33336. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33337. <doc>
  33338. <![CDATA[Cancel the given token
  33339. @throws IOException
  33340. @throws InterruptedException]]>
  33341. </doc>
  33342. </method>
  33343. <doc>
  33344. <![CDATA[This is the interface for plugins that handle tokens.]]>
  33345. </doc>
  33346. </class>
  33347. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  33348. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  33349. <interface name="TokenSelector" abstract="true"
  33350. static="false" final="false" visibility="public"
  33351. deprecated="not deprecated">
  33352. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  33353. abstract="true" native="false" synchronized="false"
  33354. static="false" final="false" visibility="public"
  33355. deprecated="not deprecated">
  33356. <param name="service" type="org.apache.hadoop.io.Text"/>
  33357. <param name="tokens" type="java.util.Collection"/>
  33358. </method>
  33359. <doc>
  33360. <![CDATA[Select token of type T from tokens for use with named service
  33361. @param <T>
  33362. T extends TokenIdentifier]]>
  33363. </doc>
  33364. </interface>
  33365. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  33366. </package>
  33367. <package name="org.apache.hadoop.security.token.delegation.web">
  33368. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  33369. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  33370. abstract="false"
  33371. static="false" final="false" visibility="public"
  33372. deprecated="not deprecated">
  33373. <constructor name="DelegationTokenAuthenticatedURL"
  33374. static="false" final="false" visibility="public"
  33375. deprecated="not deprecated">
  33376. <doc>
  33377. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33378. <p>
  33379. An instance of the default {@link DelegationTokenAuthenticator} will be
  33380. used.]]>
  33381. </doc>
  33382. </constructor>
  33383. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33384. static="false" final="false" visibility="public"
  33385. deprecated="not deprecated">
  33386. <doc>
  33387. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33388. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  33389. use, if <code>null</code> the default one will be used.]]>
  33390. </doc>
  33391. </constructor>
  33392. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  33393. static="false" final="false" visibility="public"
  33394. deprecated="not deprecated">
  33395. <doc>
  33396. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  33397. {@link DelegationTokenAuthenticator} class.
  33398. @param connConfigurator a connection configurator.]]>
  33399. </doc>
  33400. </constructor>
  33401. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  33402. static="false" final="false" visibility="public"
  33403. deprecated="not deprecated">
  33404. <doc>
  33405. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33406. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  33407. use, if <code>null</code> the default one will be used.
  33408. @param connConfigurator a connection configurator.]]>
  33409. </doc>
  33410. </constructor>
  33411. <method name="setDefaultDelegationTokenAuthenticator"
  33412. abstract="false" native="false" synchronized="false"
  33413. static="true" final="false" visibility="public"
  33414. deprecated="not deprecated">
  33415. <param name="authenticator" type="java.lang.Class"/>
  33416. <doc>
  33417. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  33418. {@link DelegationTokenAuthenticatedURL} instance is created without
  33419. specifying one.
  33420. The default class is {@link KerberosDelegationTokenAuthenticator}
  33421. @param authenticator the authenticator class to use as default.]]>
  33422. </doc>
  33423. </method>
  33424. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  33425. abstract="false" native="false" synchronized="false"
  33426. static="true" final="false" visibility="public"
  33427. deprecated="not deprecated">
  33428. <doc>
  33429. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  33430. an {@link DelegationTokenAuthenticatedURL} instance is created without
  33431. specifying one.
  33432. <p>
  33433. The default class is {@link KerberosDelegationTokenAuthenticator}
  33434. @return the delegation token authenticator class to use as default.]]>
  33435. </doc>
  33436. </method>
  33437. <method name="setUseQueryStringForDelegationToken"
  33438. abstract="false" native="false" synchronized="false"
  33439. static="false" final="false" visibility="protected"
  33440. deprecated="not deprecated">
  33441. <param name="useQueryString" type="boolean"/>
  33442. <doc>
  33443. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  33444. By default it is transmitted using the
  33445. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  33446. <p>
  33447. This method is provided to enable WebHDFS backwards compatibility.
  33448. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  33449. URL query string, <code>FALSE</code> if the delegation token is transmitted
  33450. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  33451. header.]]>
  33452. </doc>
  33453. </method>
  33454. <method name="useQueryStringForDelegationToken" return="boolean"
  33455. abstract="false" native="false" synchronized="false"
  33456. static="false" final="false" visibility="public"
  33457. deprecated="not deprecated">
  33458. <doc>
  33459. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  33460. @return <code>TRUE</code> if the token is transmitted in the URL query
  33461. string, <code>FALSE</code> if the delegation token is transmitted using the
  33462. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  33463. </doc>
  33464. </method>
  33465. <method name="openConnection" return="java.net.HttpURLConnection"
  33466. abstract="false" native="false" synchronized="false"
  33467. static="false" final="false" visibility="public"
  33468. deprecated="not deprecated">
  33469. <param name="url" type="java.net.URL"/>
  33470. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33471. <exception name="IOException" type="java.io.IOException"/>
  33472. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33473. <doc>
  33474. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  33475. Token only if the given auth token is an instance of {@link Token} and
  33476. it contains a Delegation Token, otherwise use the configured
  33477. {@link DelegationTokenAuthenticator} to authenticate the connection.
  33478. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33479. @param token the authentication token being used for the user.
  33480. @return an authenticated {@link HttpURLConnection}.
  33481. @throws IOException if an IO error occurred.
  33482. @throws AuthenticationException if an authentication exception occurred.]]>
  33483. </doc>
  33484. </method>
  33485. <method name="openConnection" return="java.net.HttpURLConnection"
  33486. abstract="false" native="false" synchronized="false"
  33487. static="false" final="false" visibility="public"
  33488. deprecated="not deprecated">
  33489. <param name="url" type="java.net.URL"/>
  33490. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33491. <exception name="IOException" type="java.io.IOException"/>
  33492. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33493. <doc>
  33494. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  33495. Token is present, it will be used taking precedence over the configured
  33496. <code>Authenticator</code>.
  33497. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33498. @param token the authentication token being used for the user.
  33499. @return an authenticated {@link HttpURLConnection}.
  33500. @throws IOException if an IO error occurred.
  33501. @throws AuthenticationException if an authentication exception occurred.]]>
  33502. </doc>
  33503. </method>
  33504. <method name="openConnection" return="java.net.HttpURLConnection"
  33505. abstract="false" native="false" synchronized="false"
  33506. static="false" final="false" visibility="public"
  33507. deprecated="not deprecated">
  33508. <param name="url" type="java.net.URL"/>
  33509. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33510. <param name="doAs" type="java.lang.String"/>
  33511. <exception name="IOException" type="java.io.IOException"/>
  33512. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33513. <doc>
  33514. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  33515. Token is present, it will be used taking precedence over the configured
  33516. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  33517. the request will be done on behalf of the specified <code>doAs</code> user.
  33518. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33519. @param token the authentication token being used for the user.
  33520. @param doAs user to do the the request on behalf of, if NULL the request is
  33521. as self.
  33522. @return an authenticated {@link HttpURLConnection}.
  33523. @throws IOException if an IO error occurred.
  33524. @throws AuthenticationException if an authentication exception occurred.]]>
  33525. </doc>
  33526. </method>
  33527. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33528. abstract="false" native="false" synchronized="false"
  33529. static="false" final="false" visibility="public"
  33530. deprecated="not deprecated">
  33531. <param name="url" type="java.net.URL"/>
  33532. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33533. <param name="renewer" type="java.lang.String"/>
  33534. <exception name="IOException" type="java.io.IOException"/>
  33535. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33536. <doc>
  33537. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33538. for authentication.
  33539. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33540. supported.
  33541. @param token the authentication token being used for the user where the
  33542. Delegation token will be stored.
  33543. @param renewer the renewer user.
  33544. @return a delegation token.
  33545. @throws IOException if an IO error occurred.
  33546. @throws AuthenticationException if an authentication exception occurred.]]>
  33547. </doc>
  33548. </method>
  33549. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33550. abstract="false" native="false" synchronized="false"
  33551. static="false" final="false" visibility="public"
  33552. deprecated="not deprecated">
  33553. <param name="url" type="java.net.URL"/>
  33554. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33555. <param name="renewer" type="java.lang.String"/>
  33556. <param name="doAsUser" type="java.lang.String"/>
  33557. <exception name="IOException" type="java.io.IOException"/>
  33558. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33559. <doc>
  33560. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33561. for authentication.
  33562. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33563. supported.
  33564. @param token the authentication token being used for the user where the
  33565. Delegation token will be stored.
  33566. @param renewer the renewer user.
  33567. @param doAsUser the user to do as, which will be the token owner.
  33568. @return a delegation token.
  33569. @throws IOException if an IO error occurred.
  33570. @throws AuthenticationException if an authentication exception occurred.]]>
  33571. </doc>
  33572. </method>
  33573. <method name="renewDelegationToken" return="long"
  33574. abstract="false" native="false" synchronized="false"
  33575. static="false" final="false" visibility="public"
  33576. deprecated="not deprecated">
  33577. <param name="url" type="java.net.URL"/>
  33578. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33579. <exception name="IOException" type="java.io.IOException"/>
  33580. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33581. <doc>
  33582. <![CDATA[Renews a delegation token from the server end-point using the
  33583. configured <code>Authenticator</code> for authentication.
  33584. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33585. supported.
  33586. @param token the authentication token with the Delegation Token to renew.
  33587. @throws IOException if an IO error occurred.
  33588. @throws AuthenticationException if an authentication exception occurred.]]>
  33589. </doc>
  33590. </method>
  33591. <method name="renewDelegationToken" return="long"
  33592. abstract="false" native="false" synchronized="false"
  33593. static="false" final="false" visibility="public"
  33594. deprecated="not deprecated">
  33595. <param name="url" type="java.net.URL"/>
  33596. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33597. <param name="doAsUser" type="java.lang.String"/>
  33598. <exception name="IOException" type="java.io.IOException"/>
  33599. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33600. <doc>
  33601. <![CDATA[Renews a delegation token from the server end-point using the
  33602. configured <code>Authenticator</code> for authentication.
  33603. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33604. supported.
  33605. @param token the authentication token with the Delegation Token to renew.
  33606. @param doAsUser the user to do as, which will be the token owner.
  33607. @throws IOException if an IO error occurred.
  33608. @throws AuthenticationException if an authentication exception occurred.]]>
  33609. </doc>
  33610. </method>
  33611. <method name="cancelDelegationToken"
  33612. abstract="false" native="false" synchronized="false"
  33613. static="false" final="false" visibility="public"
  33614. deprecated="not deprecated">
  33615. <param name="url" type="java.net.URL"/>
  33616. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33617. <exception name="IOException" type="java.io.IOException"/>
  33618. <doc>
  33619. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33620. being authenticated by the configured <code>Authenticator</code>.
  33621. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33622. are supported.
  33623. @param token the authentication token with the Delegation Token to cancel.
  33624. @throws IOException if an IO error occurred.]]>
  33625. </doc>
  33626. </method>
  33627. <method name="cancelDelegationToken"
  33628. abstract="false" native="false" synchronized="false"
  33629. static="false" final="false" visibility="public"
  33630. deprecated="not deprecated">
  33631. <param name="url" type="java.net.URL"/>
  33632. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33633. <param name="doAsUser" type="java.lang.String"/>
  33634. <exception name="IOException" type="java.io.IOException"/>
  33635. <doc>
  33636. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33637. being authenticated by the configured <code>Authenticator</code>.
  33638. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33639. are supported.
  33640. @param token the authentication token with the Delegation Token to cancel.
  33641. @param doAsUser the user to do as, which will be the token owner.
  33642. @throws IOException if an IO error occurred.]]>
  33643. </doc>
  33644. </method>
  33645. <doc>
  33646. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  33647. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  33648. functionality.
  33649. <p>
  33650. The authentication mechanisms supported by default are Hadoop Simple
  33651. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  33652. authentication.
  33653. <p>
  33654. Additional authentication mechanisms can be supported via {@link
  33655. DelegationTokenAuthenticator} implementations.
  33656. <p>
  33657. The default {@link DelegationTokenAuthenticator} is the {@link
  33658. KerberosDelegationTokenAuthenticator} class which supports
  33659. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  33660. the {@link PseudoDelegationTokenAuthenticator} class.
  33661. <p>
  33662. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  33663. </doc>
  33664. </class>
  33665. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  33666. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  33667. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  33668. abstract="false"
  33669. static="true" final="false" visibility="public"
  33670. deprecated="not deprecated">
  33671. <constructor name="Token"
  33672. static="false" final="false" visibility="public"
  33673. deprecated="not deprecated">
  33674. </constructor>
  33675. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33676. abstract="false" native="false" synchronized="false"
  33677. static="false" final="false" visibility="public"
  33678. deprecated="not deprecated">
  33679. </method>
  33680. <method name="setDelegationToken"
  33681. abstract="false" native="false" synchronized="false"
  33682. static="false" final="false" visibility="public"
  33683. deprecated="not deprecated">
  33684. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  33685. </method>
  33686. <doc>
  33687. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  33688. </doc>
  33689. </class>
  33690. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  33691. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  33692. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  33693. abstract="true"
  33694. static="false" final="false" visibility="public"
  33695. deprecated="not deprecated">
  33696. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  33697. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  33698. static="false" final="false" visibility="public"
  33699. deprecated="not deprecated">
  33700. </constructor>
  33701. <method name="setConnectionConfigurator"
  33702. abstract="false" native="false" synchronized="false"
  33703. static="false" final="false" visibility="public"
  33704. deprecated="not deprecated">
  33705. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  33706. </method>
  33707. <method name="authenticate"
  33708. abstract="false" native="false" synchronized="false"
  33709. static="false" final="false" visibility="public"
  33710. deprecated="not deprecated">
  33711. <param name="url" type="java.net.URL"/>
  33712. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33713. <exception name="IOException" type="java.io.IOException"/>
  33714. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33715. </method>
  33716. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33717. abstract="false" native="false" synchronized="false"
  33718. static="false" final="false" visibility="public"
  33719. deprecated="not deprecated">
  33720. <param name="url" type="java.net.URL"/>
  33721. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33722. <param name="renewer" type="java.lang.String"/>
  33723. <exception name="IOException" type="java.io.IOException"/>
  33724. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33725. <doc>
  33726. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33727. for authentication.
  33728. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33729. supported.
  33730. @param token the authentication token being used for the user where the
  33731. Delegation token will be stored.
  33732. @param renewer the renewer user.
  33733. @throws IOException if an IO error occurred.
  33734. @throws AuthenticationException if an authentication exception occurred.]]>
  33735. </doc>
  33736. </method>
  33737. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33738. abstract="false" native="false" synchronized="false"
  33739. static="false" final="false" visibility="public"
  33740. deprecated="not deprecated">
  33741. <param name="url" type="java.net.URL"/>
  33742. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33743. <param name="renewer" type="java.lang.String"/>
  33744. <param name="doAsUser" type="java.lang.String"/>
  33745. <exception name="IOException" type="java.io.IOException"/>
  33746. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33747. <doc>
  33748. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33749. for authentication.
  33750. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33751. supported.
  33752. @param token the authentication token being used for the user where the
  33753. Delegation token will be stored.
  33754. @param renewer the renewer user.
  33755. @param doAsUser the user to do as, which will be the token owner.
  33756. @throws IOException if an IO error occurred.
  33757. @throws AuthenticationException if an authentication exception occurred.]]>
  33758. </doc>
  33759. </method>
  33760. <method name="renewDelegationToken" return="long"
  33761. abstract="false" native="false" synchronized="false"
  33762. static="false" final="false" visibility="public"
  33763. deprecated="not deprecated">
  33764. <param name="url" type="java.net.URL"/>
  33765. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33766. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33767. <exception name="IOException" type="java.io.IOException"/>
  33768. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33769. <doc>
  33770. <![CDATA[Renews a delegation token from the server end-point using the
  33771. configured <code>Authenticator</code> for authentication.
  33772. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33773. supported.
  33774. @param token the authentication token with the Delegation Token to renew.
  33775. @throws IOException if an IO error occurred.
  33776. @throws AuthenticationException if an authentication exception occurred.]]>
  33777. </doc>
  33778. </method>
  33779. <method name="renewDelegationToken" return="long"
  33780. abstract="false" native="false" synchronized="false"
  33781. static="false" final="false" visibility="public"
  33782. deprecated="not deprecated">
  33783. <param name="url" type="java.net.URL"/>
  33784. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33785. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33786. <param name="doAsUser" type="java.lang.String"/>
  33787. <exception name="IOException" type="java.io.IOException"/>
  33788. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33789. <doc>
  33790. <![CDATA[Renews a delegation token from the server end-point using the
  33791. configured <code>Authenticator</code> for authentication.
  33792. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33793. supported.
  33794. @param token the authentication token with the Delegation Token to renew.
  33795. @param doAsUser the user to do as, which will be the token owner.
  33796. @throws IOException if an IO error occurred.
  33797. @throws AuthenticationException if an authentication exception occurred.]]>
  33798. </doc>
  33799. </method>
  33800. <method name="cancelDelegationToken"
  33801. abstract="false" native="false" synchronized="false"
  33802. static="false" final="false" visibility="public"
  33803. deprecated="not deprecated">
  33804. <param name="url" type="java.net.URL"/>
  33805. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33806. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33807. <exception name="IOException" type="java.io.IOException"/>
  33808. <doc>
  33809. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33810. being authenticated by the configured <code>Authenticator</code>.
  33811. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33812. are supported.
  33813. @param token the authentication token with the Delegation Token to cancel.
  33814. @throws IOException if an IO error occurred.]]>
  33815. </doc>
  33816. </method>
  33817. <method name="cancelDelegationToken"
  33818. abstract="false" native="false" synchronized="false"
  33819. static="false" final="false" visibility="public"
  33820. deprecated="not deprecated">
  33821. <param name="url" type="java.net.URL"/>
  33822. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33823. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33824. <param name="doAsUser" type="java.lang.String"/>
  33825. <exception name="IOException" type="java.io.IOException"/>
  33826. <doc>
  33827. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33828. being authenticated by the configured <code>Authenticator</code>.
  33829. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33830. are supported.
  33831. @param token the authentication token with the Delegation Token to cancel.
  33832. @param doAsUser the user to do as, which will be the token owner.
  33833. @throws IOException if an IO error occurred.]]>
  33834. </doc>
  33835. </method>
  33836. <field name="OP_PARAM" type="java.lang.String"
  33837. transient="false" volatile="false"
  33838. static="true" final="true" visibility="public"
  33839. deprecated="not deprecated">
  33840. </field>
  33841. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  33842. transient="false" volatile="false"
  33843. static="true" final="true" visibility="public"
  33844. deprecated="not deprecated">
  33845. </field>
  33846. <field name="DELEGATION_PARAM" type="java.lang.String"
  33847. transient="false" volatile="false"
  33848. static="true" final="true" visibility="public"
  33849. deprecated="not deprecated">
  33850. </field>
  33851. <field name="TOKEN_PARAM" type="java.lang.String"
  33852. transient="false" volatile="false"
  33853. static="true" final="true" visibility="public"
  33854. deprecated="not deprecated">
  33855. </field>
  33856. <field name="RENEWER_PARAM" type="java.lang.String"
  33857. transient="false" volatile="false"
  33858. static="true" final="true" visibility="public"
  33859. deprecated="not deprecated">
  33860. </field>
  33861. <field name="SERVICE_PARAM" type="java.lang.String"
  33862. transient="false" volatile="false"
  33863. static="true" final="true" visibility="public"
  33864. deprecated="not deprecated">
  33865. </field>
  33866. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  33867. transient="false" volatile="false"
  33868. static="true" final="true" visibility="public"
  33869. deprecated="not deprecated">
  33870. </field>
  33871. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  33872. transient="false" volatile="false"
  33873. static="true" final="true" visibility="public"
  33874. deprecated="not deprecated">
  33875. </field>
  33876. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  33877. transient="false" volatile="false"
  33878. static="true" final="true" visibility="public"
  33879. deprecated="not deprecated">
  33880. </field>
  33881. <doc>
  33882. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  33883. Delegation Token support.]]>
  33884. </doc>
  33885. </class>
  33886. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  33887. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  33888. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33889. abstract="false"
  33890. static="false" final="false" visibility="public"
  33891. deprecated="not deprecated">
  33892. <constructor name="KerberosDelegationTokenAuthenticator"
  33893. static="false" final="false" visibility="public"
  33894. deprecated="not deprecated">
  33895. </constructor>
  33896. <doc>
  33897. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  33898. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  33899. Token operations.
  33900. <p>
  33901. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  33902. endpoint does not trigger a SPNEGO authentication]]>
  33903. </doc>
  33904. </class>
  33905. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  33906. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  33907. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33908. abstract="false"
  33909. static="false" final="false" visibility="public"
  33910. deprecated="not deprecated">
  33911. <constructor name="PseudoDelegationTokenAuthenticator"
  33912. static="false" final="false" visibility="public"
  33913. deprecated="not deprecated">
  33914. </constructor>
  33915. <doc>
  33916. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  33917. Hadoop's pseudo authentication mechanism that accepts
  33918. the user name specified as a query string parameter and support for Hadoop
  33919. Delegation Token operations.
  33920. <p>
  33921. This mimics the model of Hadoop Simple authentication trusting the
  33922. {@link UserGroupInformation#getCurrentUser()} value.]]>
  33923. </doc>
  33924. </class>
  33925. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  33926. </package>
  33927. <package name="org.apache.hadoop.service">
  33928. <!-- start class org.apache.hadoop.service.AbstractService -->
  33929. <class name="AbstractService" extends="java.lang.Object"
  33930. abstract="true"
  33931. static="false" final="false" visibility="public"
  33932. deprecated="not deprecated">
  33933. <implements name="org.apache.hadoop.service.Service"/>
  33934. <constructor name="AbstractService" type="java.lang.String"
  33935. static="false" final="false" visibility="public"
  33936. deprecated="not deprecated">
  33937. <doc>
  33938. <![CDATA[Construct the service.
  33939. @param name service name]]>
  33940. </doc>
  33941. </constructor>
  33942. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  33943. abstract="false" native="false" synchronized="false"
  33944. static="false" final="true" visibility="public"
  33945. deprecated="not deprecated">
  33946. </method>
  33947. <method name="getFailureCause" return="java.lang.Throwable"
  33948. abstract="false" native="false" synchronized="true"
  33949. static="false" final="true" visibility="public"
  33950. deprecated="not deprecated">
  33951. </method>
  33952. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  33953. abstract="false" native="false" synchronized="true"
  33954. static="false" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. </method>
  33957. <method name="setConfig"
  33958. abstract="false" native="false" synchronized="false"
  33959. static="false" final="false" visibility="protected"
  33960. deprecated="not deprecated">
  33961. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33962. <doc>
  33963. <![CDATA[Set the configuration for this service.
  33964. This method is called during {@link #init(Configuration)}
  33965. and should only be needed if for some reason a service implementation
  33966. needs to override that initial setting -for example replacing
  33967. it with a new subclass of {@link Configuration}
  33968. @param conf new configuration.]]>
  33969. </doc>
  33970. </method>
  33971. <method name="init"
  33972. abstract="false" native="false" synchronized="false"
  33973. static="false" final="false" visibility="public"
  33974. deprecated="not deprecated">
  33975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33976. <doc>
  33977. <![CDATA[{@inheritDoc}
  33978. This invokes {@link #serviceInit}
  33979. @param conf the configuration of the service. This must not be null
  33980. @throws ServiceStateException if the configuration was null,
  33981. the state change not permitted, or something else went wrong]]>
  33982. </doc>
  33983. </method>
  33984. <method name="start"
  33985. abstract="false" native="false" synchronized="false"
  33986. static="false" final="false" visibility="public"
  33987. deprecated="not deprecated">
  33988. <doc>
  33989. <![CDATA[{@inheritDoc}
  33990. @throws ServiceStateException if the current service state does not permit
  33991. this action]]>
  33992. </doc>
  33993. </method>
  33994. <method name="stop"
  33995. abstract="false" native="false" synchronized="false"
  33996. static="false" final="false" visibility="public"
  33997. deprecated="not deprecated">
  33998. <doc>
  33999. <![CDATA[{@inheritDoc}]]>
  34000. </doc>
  34001. </method>
  34002. <method name="close"
  34003. abstract="false" native="false" synchronized="false"
  34004. static="false" final="true" visibility="public"
  34005. deprecated="not deprecated">
  34006. <exception name="IOException" type="java.io.IOException"/>
  34007. <doc>
  34008. <![CDATA[Relay to {@link #stop()}
  34009. @throws IOException]]>
  34010. </doc>
  34011. </method>
  34012. <method name="noteFailure"
  34013. abstract="false" native="false" synchronized="false"
  34014. static="false" final="true" visibility="protected"
  34015. deprecated="not deprecated">
  34016. <param name="exception" type="java.lang.Exception"/>
  34017. <doc>
  34018. <![CDATA[Failure handling: record the exception
  34019. that triggered it -if there was not one already.
  34020. Services are free to call this themselves.
  34021. @param exception the exception]]>
  34022. </doc>
  34023. </method>
  34024. <method name="waitForServiceToStop" return="boolean"
  34025. abstract="false" native="false" synchronized="false"
  34026. static="false" final="true" visibility="public"
  34027. deprecated="not deprecated">
  34028. <param name="timeout" type="long"/>
  34029. </method>
  34030. <method name="serviceInit"
  34031. abstract="false" native="false" synchronized="false"
  34032. static="false" final="false" visibility="protected"
  34033. deprecated="not deprecated">
  34034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34035. <exception name="Exception" type="java.lang.Exception"/>
  34036. <doc>
  34037. <![CDATA[All initialization code needed by a service.
  34038. This method will only ever be called once during the lifecycle of
  34039. a specific service instance.
  34040. Implementations do not need to be synchronized as the logic
  34041. in {@link #init(Configuration)} prevents re-entrancy.
  34042. The base implementation checks to see if the subclass has created
  34043. a new configuration instance, and if so, updates the base class value
  34044. @param conf configuration
  34045. @throws Exception on a failure -these will be caught,
  34046. possibly wrapped, and will trigger a service stop]]>
  34047. </doc>
  34048. </method>
  34049. <method name="serviceStart"
  34050. abstract="false" native="false" synchronized="false"
  34051. static="false" final="false" visibility="protected"
  34052. deprecated="not deprecated">
  34053. <exception name="Exception" type="java.lang.Exception"/>
  34054. <doc>
  34055. <![CDATA[Actions called during the INITED to STARTED transition.
  34056. This method will only ever be called once during the lifecycle of
  34057. a specific service instance.
  34058. Implementations do not need to be synchronized as the logic
  34059. in {@link #start()} prevents re-entrancy.
  34060. @throws Exception if needed -these will be caught,
  34061. wrapped, and trigger a service stop]]>
  34062. </doc>
  34063. </method>
  34064. <method name="serviceStop"
  34065. abstract="false" native="false" synchronized="false"
  34066. static="false" final="false" visibility="protected"
  34067. deprecated="not deprecated">
  34068. <exception name="Exception" type="java.lang.Exception"/>
  34069. <doc>
  34070. <![CDATA[Actions called during the transition to the STOPPED state.
  34071. This method will only ever be called once during the lifecycle of
  34072. a specific service instance.
  34073. Implementations do not need to be synchronized as the logic
  34074. in {@link #stop()} prevents re-entrancy.
  34075. Implementations MUST write this to be robust against failures, including
  34076. checks for null references -and for the first failure to not stop other
  34077. attempts to shut down parts of the service.
  34078. @throws Exception if needed -these will be caught and logged.]]>
  34079. </doc>
  34080. </method>
  34081. <method name="registerServiceListener"
  34082. abstract="false" native="false" synchronized="false"
  34083. static="false" final="false" visibility="public"
  34084. deprecated="not deprecated">
  34085. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34086. </method>
  34087. <method name="unregisterServiceListener"
  34088. abstract="false" native="false" synchronized="false"
  34089. static="false" final="false" visibility="public"
  34090. deprecated="not deprecated">
  34091. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34092. </method>
  34093. <method name="registerGlobalListener"
  34094. abstract="false" native="false" synchronized="false"
  34095. static="true" final="false" visibility="public"
  34096. deprecated="not deprecated">
  34097. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34098. <doc>
  34099. <![CDATA[Register a global listener, which receives notifications
  34100. from the state change events of all services in the JVM
  34101. @param l listener]]>
  34102. </doc>
  34103. </method>
  34104. <method name="unregisterGlobalListener" return="boolean"
  34105. abstract="false" native="false" synchronized="false"
  34106. static="true" final="false" visibility="public"
  34107. deprecated="not deprecated">
  34108. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34109. <doc>
  34110. <![CDATA[unregister a global listener.
  34111. @param l listener to unregister
  34112. @return true if the listener was found (and then deleted)]]>
  34113. </doc>
  34114. </method>
  34115. <method name="getName" return="java.lang.String"
  34116. abstract="false" native="false" synchronized="false"
  34117. static="false" final="false" visibility="public"
  34118. deprecated="not deprecated">
  34119. </method>
  34120. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  34121. abstract="false" native="false" synchronized="false"
  34122. static="false" final="false" visibility="public"
  34123. deprecated="not deprecated">
  34124. </method>
  34125. <method name="getStartTime" return="long"
  34126. abstract="false" native="false" synchronized="false"
  34127. static="false" final="false" visibility="public"
  34128. deprecated="not deprecated">
  34129. </method>
  34130. <method name="getLifecycleHistory" return="java.util.List"
  34131. abstract="false" native="false" synchronized="true"
  34132. static="false" final="false" visibility="public"
  34133. deprecated="not deprecated">
  34134. </method>
  34135. <method name="isInState" return="boolean"
  34136. abstract="false" native="false" synchronized="false"
  34137. static="false" final="true" visibility="public"
  34138. deprecated="not deprecated">
  34139. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  34140. </method>
  34141. <method name="toString" return="java.lang.String"
  34142. abstract="false" native="false" synchronized="false"
  34143. static="false" final="false" visibility="public"
  34144. deprecated="not deprecated">
  34145. </method>
  34146. <method name="putBlocker"
  34147. abstract="false" native="false" synchronized="false"
  34148. static="false" final="false" visibility="protected"
  34149. deprecated="not deprecated">
  34150. <param name="name" type="java.lang.String"/>
  34151. <param name="details" type="java.lang.String"/>
  34152. <doc>
  34153. <![CDATA[Put a blocker to the blocker map -replacing any
  34154. with the same name.
  34155. @param name blocker name
  34156. @param details any specifics on the block. This must be non-null.]]>
  34157. </doc>
  34158. </method>
  34159. <method name="removeBlocker"
  34160. abstract="false" native="false" synchronized="false"
  34161. static="false" final="false" visibility="public"
  34162. deprecated="not deprecated">
  34163. <param name="name" type="java.lang.String"/>
  34164. <doc>
  34165. <![CDATA[Remove a blocker from the blocker map -
  34166. this is a no-op if the blocker is not present
  34167. @param name the name of the blocker]]>
  34168. </doc>
  34169. </method>
  34170. <method name="getBlockers" return="java.util.Map"
  34171. abstract="false" native="false" synchronized="false"
  34172. static="false" final="false" visibility="public"
  34173. deprecated="not deprecated">
  34174. </method>
  34175. <doc>
  34176. <![CDATA[This is the base implementation class for services.]]>
  34177. </doc>
  34178. </class>
  34179. <!-- end class org.apache.hadoop.service.AbstractService -->
  34180. <!-- start class org.apache.hadoop.service.CompositeService -->
  34181. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  34182. abstract="false"
  34183. static="false" final="false" visibility="public"
  34184. deprecated="not deprecated">
  34185. <constructor name="CompositeService" type="java.lang.String"
  34186. static="false" final="false" visibility="public"
  34187. deprecated="not deprecated">
  34188. </constructor>
  34189. <method name="getServices" return="java.util.List"
  34190. abstract="false" native="false" synchronized="false"
  34191. static="false" final="false" visibility="public"
  34192. deprecated="not deprecated">
  34193. <doc>
  34194. <![CDATA[Get a cloned list of services
  34195. @return a list of child services at the time of invocation -
  34196. added services will not be picked up.]]>
  34197. </doc>
  34198. </method>
  34199. <method name="addService"
  34200. abstract="false" native="false" synchronized="false"
  34201. static="false" final="false" visibility="protected"
  34202. deprecated="not deprecated">
  34203. <param name="service" type="org.apache.hadoop.service.Service"/>
  34204. <doc>
  34205. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  34206. {@link CompositeService}
  34207. @param service the {@link Service} to be added]]>
  34208. </doc>
  34209. </method>
  34210. <method name="addIfService" return="boolean"
  34211. abstract="false" native="false" synchronized="false"
  34212. static="false" final="false" visibility="protected"
  34213. deprecated="not deprecated">
  34214. <param name="object" type="java.lang.Object"/>
  34215. <doc>
  34216. <![CDATA[If the passed object is an instance of {@link Service},
  34217. add it to the list of services managed by this {@link CompositeService}
  34218. @param object
  34219. @return true if a service is added, false otherwise.]]>
  34220. </doc>
  34221. </method>
  34222. <method name="removeService" return="boolean"
  34223. abstract="false" native="false" synchronized="false"
  34224. static="false" final="false" visibility="protected"
  34225. deprecated="not deprecated">
  34226. <param name="service" type="org.apache.hadoop.service.Service"/>
  34227. </method>
  34228. <method name="serviceInit"
  34229. abstract="false" native="false" synchronized="false"
  34230. static="false" final="false" visibility="protected"
  34231. deprecated="not deprecated">
  34232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34233. <exception name="Exception" type="java.lang.Exception"/>
  34234. </method>
  34235. <method name="serviceStart"
  34236. abstract="false" native="false" synchronized="false"
  34237. static="false" final="false" visibility="protected"
  34238. deprecated="not deprecated">
  34239. <exception name="Exception" type="java.lang.Exception"/>
  34240. </method>
  34241. <method name="serviceStop"
  34242. abstract="false" native="false" synchronized="false"
  34243. static="false" final="false" visibility="protected"
  34244. deprecated="not deprecated">
  34245. <exception name="Exception" type="java.lang.Exception"/>
  34246. </method>
  34247. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  34248. transient="false" volatile="false"
  34249. static="true" final="true" visibility="protected"
  34250. deprecated="not deprecated">
  34251. <doc>
  34252. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  34253. only try to close started services (which assumes
  34254. that the service implementations may not handle the stop() operation
  34255. except when started.
  34256. Irrespective of this policy, if a child service fails during
  34257. its init() or start() operations, it will have stop() called on it.]]>
  34258. </doc>
  34259. </field>
  34260. <doc>
  34261. <![CDATA[Composition of services.]]>
  34262. </doc>
  34263. </class>
  34264. <!-- end class org.apache.hadoop.service.CompositeService -->
  34265. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  34266. <class name="LifecycleEvent" extends="java.lang.Object"
  34267. abstract="false"
  34268. static="false" final="false" visibility="public"
  34269. deprecated="not deprecated">
  34270. <implements name="java.io.Serializable"/>
  34271. <constructor name="LifecycleEvent"
  34272. static="false" final="false" visibility="public"
  34273. deprecated="not deprecated">
  34274. </constructor>
  34275. <field name="time" type="long"
  34276. transient="false" volatile="false"
  34277. static="false" final="false" visibility="public"
  34278. deprecated="not deprecated">
  34279. <doc>
  34280. <![CDATA[Local time in milliseconds when the event occurred]]>
  34281. </doc>
  34282. </field>
  34283. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  34284. transient="false" volatile="false"
  34285. static="false" final="false" visibility="public"
  34286. deprecated="not deprecated">
  34287. <doc>
  34288. <![CDATA[new state]]>
  34289. </doc>
  34290. </field>
  34291. <doc>
  34292. <![CDATA[A serializable lifecycle event: the time a state
  34293. transition occurred, and what state was entered.]]>
  34294. </doc>
  34295. </class>
  34296. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  34297. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  34298. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  34299. abstract="false"
  34300. static="false" final="false" visibility="public"
  34301. deprecated="not deprecated">
  34302. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34303. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  34304. static="false" final="false" visibility="public"
  34305. deprecated="not deprecated">
  34306. <doc>
  34307. <![CDATA[Log events to the given log
  34308. @param log destination for events]]>
  34309. </doc>
  34310. </constructor>
  34311. <constructor name="LoggingStateChangeListener"
  34312. static="false" final="false" visibility="public"
  34313. deprecated="not deprecated">
  34314. <doc>
  34315. <![CDATA[Log events to the static log for this class]]>
  34316. </doc>
  34317. </constructor>
  34318. <method name="stateChanged"
  34319. abstract="false" native="false" synchronized="false"
  34320. static="false" final="false" visibility="public"
  34321. deprecated="not deprecated">
  34322. <param name="service" type="org.apache.hadoop.service.Service"/>
  34323. <doc>
  34324. <![CDATA[Callback for a state change event: log it
  34325. @param service the service that has changed.]]>
  34326. </doc>
  34327. </method>
  34328. <doc>
  34329. <![CDATA[This is a state change listener that logs events at INFO level]]>
  34330. </doc>
  34331. </class>
  34332. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  34333. <!-- start interface org.apache.hadoop.service.Service -->
  34334. <interface name="Service" abstract="true"
  34335. static="false" final="false" visibility="public"
  34336. deprecated="not deprecated">
  34337. <implements name="java.io.Closeable"/>
  34338. <method name="init"
  34339. abstract="true" native="false" synchronized="false"
  34340. static="false" final="false" visibility="public"
  34341. deprecated="not deprecated">
  34342. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  34343. <doc>
  34344. <![CDATA[Initialize the service.
  34345. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  34346. unless the operation failed and an exception was raised, in which case
  34347. {@link #stop()} MUST be invoked and the service enter the state
  34348. {@link STATE#STOPPED}.
  34349. @param config the configuration of the service
  34350. @throws RuntimeException on any failure during the operation]]>
  34351. </doc>
  34352. </method>
  34353. <method name="start"
  34354. abstract="true" native="false" synchronized="false"
  34355. static="false" final="false" visibility="public"
  34356. deprecated="not deprecated">
  34357. <doc>
  34358. <![CDATA[Start the service.
  34359. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  34360. unless the operation failed and an exception was raised, in which case
  34361. {@link #stop()} MUST be invoked and the service enter the state
  34362. {@link STATE#STOPPED}.
  34363. @throws RuntimeException on any failure during the operation]]>
  34364. </doc>
  34365. </method>
  34366. <method name="stop"
  34367. abstract="true" native="false" synchronized="false"
  34368. static="false" final="false" visibility="public"
  34369. deprecated="not deprecated">
  34370. <doc>
  34371. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  34372. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  34373. to stop all parts of the service.
  34374. The implementation must be designed to complete regardless of the service
  34375. state, including the initialized/uninitialized state of all its internal
  34376. fields.
  34377. @throws RuntimeException on any failure during the stop operation]]>
  34378. </doc>
  34379. </method>
  34380. <method name="close"
  34381. abstract="true" native="false" synchronized="false"
  34382. static="false" final="false" visibility="public"
  34383. deprecated="not deprecated">
  34384. <exception name="IOException" type="java.io.IOException"/>
  34385. <doc>
  34386. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  34387. clauses.
  34388. Implementation classes MUST relay this directly to {@link #stop()}
  34389. @throws IOException never
  34390. @throws RuntimeException on any failure during the stop operation]]>
  34391. </doc>
  34392. </method>
  34393. <method name="registerServiceListener"
  34394. abstract="true" native="false" synchronized="false"
  34395. static="false" final="false" visibility="public"
  34396. deprecated="not deprecated">
  34397. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34398. <doc>
  34399. <![CDATA[Register a listener to the service state change events.
  34400. If the supplied listener is already listening to this service,
  34401. this method is a no-op.
  34402. @param listener a new listener]]>
  34403. </doc>
  34404. </method>
  34405. <method name="unregisterServiceListener"
  34406. abstract="true" native="false" synchronized="false"
  34407. static="false" final="false" visibility="public"
  34408. deprecated="not deprecated">
  34409. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34410. <doc>
  34411. <![CDATA[Unregister a previously registered listener of the service state
  34412. change events. No-op if the listener is already unregistered.
  34413. @param listener the listener to unregister.]]>
  34414. </doc>
  34415. </method>
  34416. <method name="getName" return="java.lang.String"
  34417. abstract="true" native="false" synchronized="false"
  34418. static="false" final="false" visibility="public"
  34419. deprecated="not deprecated">
  34420. <doc>
  34421. <![CDATA[Get the name of this service.
  34422. @return the service name]]>
  34423. </doc>
  34424. </method>
  34425. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  34426. abstract="true" native="false" synchronized="false"
  34427. static="false" final="false" visibility="public"
  34428. deprecated="not deprecated">
  34429. <doc>
  34430. <![CDATA[Get the configuration of this service.
  34431. This is normally not a clone and may be manipulated, though there are no
  34432. guarantees as to what the consequences of such actions may be
  34433. @return the current configuration, unless a specific implentation chooses
  34434. otherwise.]]>
  34435. </doc>
  34436. </method>
  34437. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  34438. abstract="true" native="false" synchronized="false"
  34439. static="false" final="false" visibility="public"
  34440. deprecated="not deprecated">
  34441. <doc>
  34442. <![CDATA[Get the current service state
  34443. @return the state of the service]]>
  34444. </doc>
  34445. </method>
  34446. <method name="getStartTime" return="long"
  34447. abstract="true" native="false" synchronized="false"
  34448. static="false" final="false" visibility="public"
  34449. deprecated="not deprecated">
  34450. <doc>
  34451. <![CDATA[Get the service start time
  34452. @return the start time of the service. This will be zero if the service
  34453. has not yet been started.]]>
  34454. </doc>
  34455. </method>
  34456. <method name="isInState" return="boolean"
  34457. abstract="true" native="false" synchronized="false"
  34458. static="false" final="false" visibility="public"
  34459. deprecated="not deprecated">
  34460. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  34461. <doc>
  34462. <![CDATA[Query to see if the service is in a specific state.
  34463. In a multi-threaded system, the state may not hold for very long.
  34464. @param state the expected state
  34465. @return true if, at the time of invocation, the service was in that state.]]>
  34466. </doc>
  34467. </method>
  34468. <method name="getFailureCause" return="java.lang.Throwable"
  34469. abstract="true" native="false" synchronized="false"
  34470. static="false" final="false" visibility="public"
  34471. deprecated="not deprecated">
  34472. <doc>
  34473. <![CDATA[Get the first exception raised during the service failure. If null,
  34474. no exception was logged
  34475. @return the failure logged during a transition to the stopped state]]>
  34476. </doc>
  34477. </method>
  34478. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  34479. abstract="true" native="false" synchronized="false"
  34480. static="false" final="false" visibility="public"
  34481. deprecated="not deprecated">
  34482. <doc>
  34483. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  34484. @return the state or null if there was no failure]]>
  34485. </doc>
  34486. </method>
  34487. <method name="waitForServiceToStop" return="boolean"
  34488. abstract="true" native="false" synchronized="false"
  34489. static="false" final="false" visibility="public"
  34490. deprecated="not deprecated">
  34491. <param name="timeout" type="long"/>
  34492. <doc>
  34493. <![CDATA[Block waiting for the service to stop; uses the termination notification
  34494. object to do so.
  34495. This method will only return after all the service stop actions
  34496. have been executed (to success or failure), or the timeout elapsed
  34497. This method can be called before the service is inited or started; this is
  34498. to eliminate any race condition with the service stopping before
  34499. this event occurs.
  34500. @param timeout timeout in milliseconds. A value of zero means "forever"
  34501. @return true iff the service stopped in the time period]]>
  34502. </doc>
  34503. </method>
  34504. <method name="getLifecycleHistory" return="java.util.List"
  34505. abstract="true" native="false" synchronized="false"
  34506. static="false" final="false" visibility="public"
  34507. deprecated="not deprecated">
  34508. <doc>
  34509. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  34510. @return a possibly empty but never null list of lifecycle events.]]>
  34511. </doc>
  34512. </method>
  34513. <method name="getBlockers" return="java.util.Map"
  34514. abstract="true" native="false" synchronized="false"
  34515. static="false" final="false" visibility="public"
  34516. deprecated="not deprecated">
  34517. <doc>
  34518. <![CDATA[Get the blockers on a service -remote dependencies
  34519. that are stopping the service from being <i>live</i>.
  34520. @return a (snapshotted) map of blocker name-&gt;description values]]>
  34521. </doc>
  34522. </method>
  34523. <doc>
  34524. <![CDATA[Service LifeCycle.]]>
  34525. </doc>
  34526. </interface>
  34527. <!-- end interface org.apache.hadoop.service.Service -->
  34528. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  34529. <class name="ServiceOperations" extends="java.lang.Object"
  34530. abstract="false"
  34531. static="false" final="true" visibility="public"
  34532. deprecated="not deprecated">
  34533. <method name="stop"
  34534. abstract="false" native="false" synchronized="false"
  34535. static="true" final="false" visibility="public"
  34536. deprecated="not deprecated">
  34537. <param name="service" type="org.apache.hadoop.service.Service"/>
  34538. <doc>
  34539. <![CDATA[Stop a service.
  34540. <p>Do nothing if the service is null or not
  34541. in a state in which it can be/needs to be stopped.
  34542. <p>
  34543. The service state is checked <i>before</i> the operation begins.
  34544. This process is <i>not</i> thread safe.
  34545. @param service a service or null]]>
  34546. </doc>
  34547. </method>
  34548. <method name="stopQuietly" return="java.lang.Exception"
  34549. abstract="false" native="false" synchronized="false"
  34550. static="true" final="false" visibility="public"
  34551. deprecated="not deprecated">
  34552. <param name="service" type="org.apache.hadoop.service.Service"/>
  34553. <doc>
  34554. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34555. logged at warn level. (but not Throwables). This operation is intended to
  34556. be used in cleanup operations
  34557. @param service a service; may be null
  34558. @return any exception that was caught; null if none was.]]>
  34559. </doc>
  34560. </method>
  34561. <method name="stopQuietly" return="java.lang.Exception"
  34562. abstract="false" native="false" synchronized="false"
  34563. static="true" final="false" visibility="public"
  34564. deprecated="not deprecated">
  34565. <param name="log" type="org.apache.commons.logging.Log"/>
  34566. <param name="service" type="org.apache.hadoop.service.Service"/>
  34567. <doc>
  34568. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34569. logged at warn level. (but not Throwables). This operation is intended to
  34570. be used in cleanup operations
  34571. @param log the log to warn at
  34572. @param service a service; may be null
  34573. @return any exception that was caught; null if none was.
  34574. @see ServiceOperations#stopQuietly(Service)]]>
  34575. </doc>
  34576. </method>
  34577. <method name="stopQuietly" return="java.lang.Exception"
  34578. abstract="false" native="false" synchronized="false"
  34579. static="true" final="false" visibility="public"
  34580. deprecated="not deprecated">
  34581. <param name="log" type="org.slf4j.Logger"/>
  34582. <param name="service" type="org.apache.hadoop.service.Service"/>
  34583. <doc>
  34584. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34585. logged at warn level. (but not Throwables). This operation is intended to
  34586. be used in cleanup operations
  34587. @param log the log to warn at
  34588. @param service a service; may be null
  34589. @return any exception that was caught; null if none was.
  34590. @see ServiceOperations#stopQuietly(Service)]]>
  34591. </doc>
  34592. </method>
  34593. <doc>
  34594. <![CDATA[This class contains a set of methods to work with services, especially
  34595. to walk them through their lifecycle.]]>
  34596. </doc>
  34597. </class>
  34598. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  34599. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  34600. <interface name="ServiceStateChangeListener" abstract="true"
  34601. static="false" final="false" visibility="public"
  34602. deprecated="not deprecated">
  34603. <method name="stateChanged"
  34604. abstract="true" native="false" synchronized="false"
  34605. static="false" final="false" visibility="public"
  34606. deprecated="not deprecated">
  34607. <param name="service" type="org.apache.hadoop.service.Service"/>
  34608. <doc>
  34609. <![CDATA[Callback to notify of a state change. The service will already
  34610. have changed state before this callback is invoked.
  34611. This operation is invoked on the thread that initiated the state change,
  34612. while the service itself in in a sychronized section.
  34613. <ol>
  34614. <li>Any long-lived operation here will prevent the service state
  34615. change from completing in a timely manner.</li>
  34616. <li>If another thread is somehow invoked from the listener, and
  34617. that thread invokes the methods of the service (including
  34618. subclass-specific methods), there is a risk of a deadlock.</li>
  34619. </ol>
  34620. @param service the service that has changed.]]>
  34621. </doc>
  34622. </method>
  34623. <doc>
  34624. <![CDATA[Interface to notify state changes of a service.]]>
  34625. </doc>
  34626. </interface>
  34627. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  34628. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  34629. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  34630. abstract="false"
  34631. static="false" final="false" visibility="public"
  34632. deprecated="not deprecated">
  34633. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  34634. <constructor name="ServiceStateException" type="java.lang.String"
  34635. static="false" final="false" visibility="public"
  34636. deprecated="not deprecated">
  34637. <doc>
  34638. <![CDATA[Instantiate
  34639. @param message error message]]>
  34640. </doc>
  34641. </constructor>
  34642. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  34643. static="false" final="false" visibility="public"
  34644. deprecated="not deprecated">
  34645. <doc>
  34646. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  34647. then it is used, otherwise the generic
  34648. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  34649. is used.
  34650. @param message exception message
  34651. @param cause optional inner cause]]>
  34652. </doc>
  34653. </constructor>
  34654. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  34655. static="false" final="false" visibility="public"
  34656. deprecated="not deprecated">
  34657. <doc>
  34658. <![CDATA[Instantiate, using the specified exit code as the exit code
  34659. of the exception, irrespetive of any exit code supplied by any inner
  34660. cause.
  34661. @param exitCode exit code to declare
  34662. @param message exception message
  34663. @param cause inner cause]]>
  34664. </doc>
  34665. </constructor>
  34666. <constructor name="ServiceStateException" type="java.lang.Throwable"
  34667. static="false" final="false" visibility="public"
  34668. deprecated="not deprecated">
  34669. </constructor>
  34670. <method name="getExitCode" return="int"
  34671. abstract="false" native="false" synchronized="false"
  34672. static="false" final="false" visibility="public"
  34673. deprecated="not deprecated">
  34674. </method>
  34675. <method name="convert" return="java.lang.RuntimeException"
  34676. abstract="false" native="false" synchronized="false"
  34677. static="true" final="false" visibility="public"
  34678. deprecated="not deprecated">
  34679. <param name="fault" type="java.lang.Throwable"/>
  34680. <doc>
  34681. <![CDATA[Convert any exception into a {@link RuntimeException}.
  34682. All other exception types are wrapped in a new instance of
  34683. {@code ServiceStateException}.
  34684. @param fault exception or throwable
  34685. @return a {@link RuntimeException} to rethrow]]>
  34686. </doc>
  34687. </method>
  34688. <method name="convert" return="java.lang.RuntimeException"
  34689. abstract="false" native="false" synchronized="false"
  34690. static="true" final="false" visibility="public"
  34691. deprecated="not deprecated">
  34692. <param name="text" type="java.lang.String"/>
  34693. <param name="fault" type="java.lang.Throwable"/>
  34694. <doc>
  34695. <![CDATA[Convert any exception into a {@link RuntimeException}.
  34696. If the caught exception is already of that type, it is typecast to a
  34697. {@link RuntimeException} and returned.
  34698. All other exception types are wrapped in a new instance of
  34699. {@code ServiceStateException}.
  34700. @param text text to use if a new exception is created
  34701. @param fault exception or throwable
  34702. @return a {@link RuntimeException} to rethrow]]>
  34703. </doc>
  34704. </method>
  34705. <doc>
  34706. <![CDATA[Exception that can be raised on state change operations, whose
  34707. exit code can be explicitly set, determined from that of any nested
  34708. cause, or a default value of
  34709. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  34710. </doc>
  34711. </class>
  34712. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  34713. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  34714. <class name="ServiceStateModel" extends="java.lang.Object"
  34715. abstract="false"
  34716. static="false" final="false" visibility="public"
  34717. deprecated="not deprecated">
  34718. <constructor name="ServiceStateModel" type="java.lang.String"
  34719. static="false" final="false" visibility="public"
  34720. deprecated="not deprecated">
  34721. <doc>
  34722. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  34723. state.]]>
  34724. </doc>
  34725. </constructor>
  34726. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  34727. static="false" final="false" visibility="public"
  34728. deprecated="not deprecated">
  34729. <doc>
  34730. <![CDATA[Create a service state model instance in the chosen state
  34731. @param state the starting state]]>
  34732. </doc>
  34733. </constructor>
  34734. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  34735. abstract="false" native="false" synchronized="false"
  34736. static="false" final="false" visibility="public"
  34737. deprecated="not deprecated">
  34738. <doc>
  34739. <![CDATA[Query the service state. This is a non-blocking operation.
  34740. @return the state]]>
  34741. </doc>
  34742. </method>
  34743. <method name="isInState" return="boolean"
  34744. abstract="false" native="false" synchronized="false"
  34745. static="false" final="false" visibility="public"
  34746. deprecated="not deprecated">
  34747. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34748. <doc>
  34749. <![CDATA[Query that the state is in a specific state
  34750. @param proposed proposed new state
  34751. @return the state]]>
  34752. </doc>
  34753. </method>
  34754. <method name="ensureCurrentState"
  34755. abstract="false" native="false" synchronized="false"
  34756. static="false" final="false" visibility="public"
  34757. deprecated="not deprecated">
  34758. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  34759. <doc>
  34760. <![CDATA[Verify that that a service is in a given state.
  34761. @param expectedState the desired state
  34762. @throws ServiceStateException if the service state is different from
  34763. the desired state]]>
  34764. </doc>
  34765. </method>
  34766. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  34767. abstract="false" native="false" synchronized="true"
  34768. static="false" final="false" visibility="public"
  34769. deprecated="not deprecated">
  34770. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34771. <doc>
  34772. <![CDATA[Enter a state -thread safe.
  34773. @param proposed proposed new state
  34774. @return the original state
  34775. @throws ServiceStateException if the transition is not permitted]]>
  34776. </doc>
  34777. </method>
  34778. <method name="checkStateTransition"
  34779. abstract="false" native="false" synchronized="false"
  34780. static="true" final="false" visibility="public"
  34781. deprecated="not deprecated">
  34782. <param name="name" type="java.lang.String"/>
  34783. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  34784. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34785. <doc>
  34786. <![CDATA[Check that a state tansition is valid and
  34787. throw an exception if not
  34788. @param name name of the service (can be null)
  34789. @param state current state
  34790. @param proposed proposed new state]]>
  34791. </doc>
  34792. </method>
  34793. <method name="isValidStateTransition" return="boolean"
  34794. abstract="false" native="false" synchronized="false"
  34795. static="true" final="false" visibility="public"
  34796. deprecated="not deprecated">
  34797. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  34798. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34799. <doc>
  34800. <![CDATA[Is a state transition valid?
  34801. There are no checks for current==proposed
  34802. as that is considered a non-transition.
  34803. using an array kills off all branch misprediction costs, at the expense
  34804. of cache line misses.
  34805. @param current current state
  34806. @param proposed proposed new state
  34807. @return true if the transition to a new state is valid]]>
  34808. </doc>
  34809. </method>
  34810. <method name="toString" return="java.lang.String"
  34811. abstract="false" native="false" synchronized="false"
  34812. static="false" final="false" visibility="public"
  34813. deprecated="not deprecated">
  34814. <doc>
  34815. <![CDATA[return the state text as the toString() value
  34816. @return the current state's description]]>
  34817. </doc>
  34818. </method>
  34819. <doc>
  34820. <![CDATA[Implements the service state model.]]>
  34821. </doc>
  34822. </class>
  34823. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  34824. </package>
  34825. <package name="org.apache.hadoop.service.launcher">
  34826. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  34827. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  34828. abstract="true"
  34829. static="false" final="false" visibility="public"
  34830. deprecated="not deprecated">
  34831. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  34832. <constructor name="AbstractLaunchableService" type="java.lang.String"
  34833. static="false" final="false" visibility="protected"
  34834. deprecated="not deprecated">
  34835. <doc>
  34836. <![CDATA[Construct an instance with the given name.]]>
  34837. </doc>
  34838. </constructor>
  34839. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  34840. abstract="false" native="false" synchronized="false"
  34841. static="false" final="false" visibility="public"
  34842. deprecated="not deprecated">
  34843. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  34844. <param name="args" type="java.util.List"/>
  34845. <exception name="Exception" type="java.lang.Exception"/>
  34846. <doc>
  34847. <![CDATA[{@inheritDoc}
  34848. <p>
  34849. The base implementation logs all arguments at the debug level,
  34850. then returns the passed in config unchanged.]]>
  34851. </doc>
  34852. </method>
  34853. <method name="execute" return="int"
  34854. abstract="false" native="false" synchronized="false"
  34855. static="false" final="false" visibility="public"
  34856. deprecated="not deprecated">
  34857. <exception name="Exception" type="java.lang.Exception"/>
  34858. <doc>
  34859. <![CDATA[{@inheritDoc}
  34860. <p>
  34861. The action is to signal success by returning the exit code 0.]]>
  34862. </doc>
  34863. </method>
  34864. <doc>
  34865. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  34866. of the {@link LaunchableService} methods.]]>
  34867. </doc>
  34868. </class>
  34869. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  34870. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  34871. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  34872. abstract="false"
  34873. static="false" final="false" visibility="public"
  34874. deprecated="not deprecated">
  34875. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  34876. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  34877. static="false" final="false" visibility="public"
  34878. deprecated="not deprecated">
  34879. <doc>
  34880. <![CDATA[Create an instance delegating to the supplied handler if
  34881. the exception is considered "simple".
  34882. @param delegate a delegate exception handler.]]>
  34883. </doc>
  34884. </constructor>
  34885. <constructor name="HadoopUncaughtExceptionHandler"
  34886. static="false" final="false" visibility="public"
  34887. deprecated="not deprecated">
  34888. <doc>
  34889. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  34890. </doc>
  34891. </constructor>
  34892. <method name="uncaughtException"
  34893. abstract="false" native="false" synchronized="false"
  34894. static="false" final="false" visibility="public"
  34895. deprecated="not deprecated">
  34896. <param name="thread" type="java.lang.Thread"/>
  34897. <param name="exception" type="java.lang.Throwable"/>
  34898. <doc>
  34899. <![CDATA[Uncaught exception handler.
  34900. If an error is raised: shutdown
  34901. The state of the system is unknown at this point -attempting
  34902. a clean shutdown is dangerous. Instead: exit
  34903. @param thread thread that failed
  34904. @param exception the raised exception]]>
  34905. </doc>
  34906. </method>
  34907. <doc>
  34908. <![CDATA[This class is intended to be installed by calling
  34909. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  34910. in the main entry point.
  34911. The base class will always attempt to shut down the process if an Error
  34912. was raised; the behavior on a standard Exception, raised outside
  34913. process shutdown, is simply to log it.
  34914. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  34915. </doc>
  34916. </class>
  34917. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  34918. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  34919. <interface name="LaunchableService" abstract="true"
  34920. static="false" final="false" visibility="public"
  34921. deprecated="not deprecated">
  34922. <implements name="org.apache.hadoop.service.Service"/>
  34923. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  34924. abstract="true" native="false" synchronized="false"
  34925. static="false" final="false" visibility="public"
  34926. deprecated="not deprecated">
  34927. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  34928. <param name="args" type="java.util.List"/>
  34929. <exception name="Exception" type="java.lang.Exception"/>
  34930. <doc>
  34931. <![CDATA[Propagate the command line arguments.
  34932. <p>
  34933. This method is called before {@link #init(Configuration)};
  34934. Any non-null configuration that is returned from this operation
  34935. becomes the one that is passed on to that {@link #init(Configuration)}
  34936. operation.
  34937. <p>
  34938. This permits implementations to change the configuration before
  34939. the init operation. As the ServiceLauncher only creates
  34940. an instance of the base {@link Configuration} class, it is
  34941. recommended to instantiate any subclass (such as YarnConfiguration)
  34942. that injects new resources.
  34943. <p>
  34944. @param config the initial configuration build up by the
  34945. service launcher.
  34946. @param args list of arguments passed to the command line
  34947. after any launcher-specific commands have been stripped.
  34948. @return the configuration to init the service with.
  34949. Recommended: pass down the config parameter with any changes
  34950. @throws Exception any problem]]>
  34951. </doc>
  34952. </method>
  34953. <method name="execute" return="int"
  34954. abstract="true" native="false" synchronized="false"
  34955. static="false" final="false" visibility="public"
  34956. deprecated="not deprecated">
  34957. <exception name="Exception" type="java.lang.Exception"/>
  34958. <doc>
  34959. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  34960. <p>
  34961. The return value becomes the exit code of the launched process.
  34962. <p>
  34963. If an exception is raised, the policy is:
  34964. <ol>
  34965. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  34966. the exception is passed up unmodified.
  34967. </li>
  34968. <li>Any exception which implements
  34969. {@link org.apache.hadoop.util.ExitCodeProvider}:
  34970. A new {@link ServiceLaunchException} is created with the exit code
  34971. and message of the thrown exception; the thrown exception becomes the
  34972. cause.</li>
  34973. <li>Any other exception: a new {@link ServiceLaunchException} is created
  34974. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  34975. the message of the original exception (which becomes the cause).</li>
  34976. </ol>
  34977. @return the exit code
  34978. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  34979. up as the exit code and error text.
  34980. @throws Exception any exception to report. If it provides an exit code
  34981. this is used in a wrapping exception.]]>
  34982. </doc>
  34983. </method>
  34984. <doc>
  34985. <![CDATA[An interface which services can implement to have their
  34986. execution managed by the ServiceLauncher.
  34987. <p>
  34988. The command line options will be passed down before the
  34989. {@link Service#init(Configuration)} operation is invoked via an
  34990. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  34991. After the service has been successfully started via {@link Service#start()}
  34992. the {@link LaunchableService#execute()} method is called to execute the
  34993. service. When this method returns, the service launcher will exit, using
  34994. the return code from the method as its exit option.]]>
  34995. </doc>
  34996. </interface>
  34997. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  34998. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  34999. <interface name="LauncherExitCodes" abstract="true"
  35000. static="false" final="false" visibility="public"
  35001. deprecated="not deprecated">
  35002. <field name="EXIT_SUCCESS" type="int"
  35003. transient="false" volatile="false"
  35004. static="true" final="true" visibility="public"
  35005. deprecated="not deprecated">
  35006. <doc>
  35007. <![CDATA[Success: {@value}.]]>
  35008. </doc>
  35009. </field>
  35010. <field name="EXIT_FAIL" type="int"
  35011. transient="false" volatile="false"
  35012. static="true" final="true" visibility="public"
  35013. deprecated="not deprecated">
  35014. <doc>
  35015. <![CDATA[Generic "false/fail" response: {@value}.
  35016. The operation worked but the result was not "true" from the viewpoint
  35017. of the executed code.]]>
  35018. </doc>
  35019. </field>
  35020. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  35021. transient="false" volatile="false"
  35022. static="true" final="true" visibility="public"
  35023. deprecated="not deprecated">
  35024. <doc>
  35025. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  35026. </doc>
  35027. </field>
  35028. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  35029. transient="false" volatile="false"
  35030. static="true" final="true" visibility="public"
  35031. deprecated="not deprecated">
  35032. <doc>
  35033. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  35034. </doc>
  35035. </field>
  35036. <field name="EXIT_INTERRUPTED" type="int"
  35037. transient="false" volatile="false"
  35038. static="true" final="true" visibility="public"
  35039. deprecated="not deprecated">
  35040. <doc>
  35041. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  35042. </doc>
  35043. </field>
  35044. <field name="EXIT_OTHER_FAILURE" type="int"
  35045. transient="false" volatile="false"
  35046. static="true" final="true" visibility="public"
  35047. deprecated="not deprecated">
  35048. <doc>
  35049. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  35050. </doc>
  35051. </field>
  35052. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  35053. transient="false" volatile="false"
  35054. static="true" final="true" visibility="public"
  35055. deprecated="not deprecated">
  35056. <doc>
  35057. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  35058. when it is otherwise invalid.
  35059. <p>
  35060. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  35061. </doc>
  35062. </field>
  35063. <field name="EXIT_UNAUTHORIZED" type="int"
  35064. transient="false" volatile="false"
  35065. static="true" final="true" visibility="public"
  35066. deprecated="not deprecated">
  35067. <doc>
  35068. <![CDATA[The request requires user authentication: {@value}.
  35069. <p>
  35070. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  35071. </doc>
  35072. </field>
  35073. <field name="EXIT_USAGE" type="int"
  35074. transient="false" volatile="false"
  35075. static="true" final="true" visibility="public"
  35076. deprecated="not deprecated">
  35077. <doc>
  35078. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  35079. </doc>
  35080. </field>
  35081. <field name="EXIT_FORBIDDEN" type="int"
  35082. transient="false" volatile="false"
  35083. static="true" final="true" visibility="public"
  35084. deprecated="not deprecated">
  35085. <doc>
  35086. <![CDATA[Forbidden action: {@value}.
  35087. <p>
  35088. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  35089. </doc>
  35090. </field>
  35091. <field name="EXIT_NOT_FOUND" type="int"
  35092. transient="false" volatile="false"
  35093. static="true" final="true" visibility="public"
  35094. deprecated="not deprecated">
  35095. <doc>
  35096. <![CDATA[Something was not found: {@value}.
  35097. <p>
  35098. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  35099. </doc>
  35100. </field>
  35101. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  35102. transient="false" volatile="false"
  35103. static="true" final="true" visibility="public"
  35104. deprecated="not deprecated">
  35105. <doc>
  35106. <![CDATA[The operation is not allowed: {@value}.
  35107. <p>
  35108. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  35109. </doc>
  35110. </field>
  35111. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  35112. transient="false" volatile="false"
  35113. static="true" final="true" visibility="public"
  35114. deprecated="not deprecated">
  35115. <doc>
  35116. <![CDATA[The command is somehow not acceptable: {@value}.
  35117. <p>
  35118. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  35119. </doc>
  35120. </field>
  35121. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  35122. transient="false" volatile="false"
  35123. static="true" final="true" visibility="public"
  35124. deprecated="not deprecated">
  35125. <doc>
  35126. <![CDATA[Exit code on connectivity problems: {@value}.
  35127. <p>
  35128. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  35129. </doc>
  35130. </field>
  35131. <field name="EXIT_BAD_CONFIGURATION" type="int"
  35132. transient="false" volatile="false"
  35133. static="true" final="true" visibility="public"
  35134. deprecated="not deprecated">
  35135. <doc>
  35136. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  35137. <p>
  35138. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  35139. </doc>
  35140. </field>
  35141. <field name="EXIT_EXCEPTION_THROWN" type="int"
  35142. transient="false" volatile="false"
  35143. static="true" final="true" visibility="public"
  35144. deprecated="not deprecated">
  35145. <doc>
  35146. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  35147. <p>
  35148. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  35149. </doc>
  35150. </field>
  35151. <field name="EXIT_UNIMPLEMENTED" type="int"
  35152. transient="false" volatile="false"
  35153. static="true" final="true" visibility="public"
  35154. deprecated="not deprecated">
  35155. <doc>
  35156. <![CDATA[Unimplemented feature: {@value}.
  35157. <p>
  35158. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  35159. </doc>
  35160. </field>
  35161. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  35162. transient="false" volatile="false"
  35163. static="true" final="true" visibility="public"
  35164. deprecated="not deprecated">
  35165. <doc>
  35166. <![CDATA[Service Unavailable; it may be available later: {@value}.
  35167. <p>
  35168. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  35169. </doc>
  35170. </field>
  35171. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  35172. transient="false" volatile="false"
  35173. static="true" final="true" visibility="public"
  35174. deprecated="not deprecated">
  35175. <doc>
  35176. <![CDATA[The application does not support, or refuses to support this
  35177. version: {@value}.
  35178. <p>
  35179. If raised, this is expected to be raised server-side and likely due
  35180. to client/server version incompatibilities.
  35181. <p>
  35182. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  35183. </doc>
  35184. </field>
  35185. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  35186. transient="false" volatile="false"
  35187. static="true" final="true" visibility="public"
  35188. deprecated="not deprecated">
  35189. <doc>
  35190. <![CDATA[The service instance could not be created: {@value}.]]>
  35191. </doc>
  35192. </field>
  35193. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  35194. transient="false" volatile="false"
  35195. static="true" final="true" visibility="public"
  35196. deprecated="not deprecated">
  35197. <doc>
  35198. <![CDATA[The service instance could not be created: {@value}.]]>
  35199. </doc>
  35200. </field>
  35201. <doc>
  35202. <![CDATA[Common Exit codes.
  35203. <p>
  35204. Codes with a YARN prefix are YARN-related.
  35205. <p>
  35206. Many of the exit codes are designed to resemble HTTP error codes,
  35207. squashed into a single byte. e.g 44 , "not found" is the equivalent
  35208. of 404. The various 2XX HTTP error codes aren't followed;
  35209. the Unix standard of "0" for success is used.
  35210. <pre>
  35211. 0-10: general command issues
  35212. 30-39: equivalent to the 3XX responses, where those responses are
  35213. considered errors by the application.
  35214. 40-49: client-side/CLI/config problems
  35215. 50-59: service-side problems.
  35216. 60+ : application specific error codes
  35217. </pre>]]>
  35218. </doc>
  35219. </interface>
  35220. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  35221. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  35222. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  35223. abstract="false"
  35224. static="false" final="false" visibility="public"
  35225. deprecated="not deprecated">
  35226. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  35227. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  35228. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  35229. static="false" final="false" visibility="public"
  35230. deprecated="not deprecated">
  35231. <doc>
  35232. <![CDATA[Create an exception with the specific exit code.
  35233. @param exitCode exit code
  35234. @param cause cause of the exception]]>
  35235. </doc>
  35236. </constructor>
  35237. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  35238. static="false" final="false" visibility="public"
  35239. deprecated="not deprecated">
  35240. <doc>
  35241. <![CDATA[Create an exception with the specific exit code and text.
  35242. @param exitCode exit code
  35243. @param message message to use in exception]]>
  35244. </doc>
  35245. </constructor>
  35246. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  35247. static="false" final="false" visibility="public"
  35248. deprecated="not deprecated">
  35249. <doc>
  35250. <![CDATA[Create a formatted exception.
  35251. <p>
  35252. This uses {@link String#format(String, Object...)}
  35253. to build the formatted exception in the ENGLISH locale.
  35254. <p>
  35255. If the last argument is a throwable, it becomes the cause of the exception.
  35256. It will also be used as a parameter for the format.
  35257. @param exitCode exit code
  35258. @param format format for message to use in exception
  35259. @param args list of arguments]]>
  35260. </doc>
  35261. </constructor>
  35262. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable, java.lang.String, java.lang.Object[]"
  35263. static="false" final="false" visibility="public"
  35264. deprecated="not deprecated">
  35265. <doc>
  35266. <![CDATA[Create a formatted exception.
  35267. <p>
  35268. This uses {@link String#format(String, Object...)}
  35269. to build the formatted exception in the ENGLISH locale.
  35270. @param exitCode exit code
  35271. @param cause inner cause
  35272. @param format format for message to use in exception
  35273. @param args list of arguments]]>
  35274. </doc>
  35275. </constructor>
  35276. <doc>
  35277. <![CDATA[A service launch exception that includes an exit code.
  35278. <p>
  35279. When caught by the ServiceLauncher, it will convert that
  35280. into a process exit code.
  35281. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  35282. generates formatted exceptions.]]>
  35283. </doc>
  35284. </class>
  35285. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  35286. </package>
  35287. <package name="org.apache.hadoop.tools">
  35288. </package>
  35289. <package name="org.apache.hadoop.tools.protocolPB">
  35290. </package>
  35291. <package name="org.apache.hadoop.tracing">
  35292. </package>
  35293. <package name="org.apache.hadoop.util">
  35294. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  35295. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  35296. abstract="false"
  35297. static="false" final="false" visibility="public"
  35298. deprecated="not deprecated">
  35299. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  35300. static="false" final="false" visibility="public"
  35301. deprecated="not deprecated">
  35302. </constructor>
  35303. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  35304. static="false" final="false" visibility="public"
  35305. deprecated="not deprecated">
  35306. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  35307. </constructor>
  35308. <method name="getResource" return="java.net.URL"
  35309. abstract="false" native="false" synchronized="false"
  35310. static="false" final="false" visibility="public"
  35311. deprecated="not deprecated">
  35312. <param name="name" type="java.lang.String"/>
  35313. </method>
  35314. <method name="loadClass" return="java.lang.Class"
  35315. abstract="false" native="false" synchronized="false"
  35316. static="false" final="false" visibility="public"
  35317. deprecated="not deprecated">
  35318. <param name="name" type="java.lang.String"/>
  35319. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  35320. </method>
  35321. <method name="loadClass" return="java.lang.Class"
  35322. abstract="false" native="false" synchronized="true"
  35323. static="false" final="false" visibility="protected"
  35324. deprecated="not deprecated">
  35325. <param name="name" type="java.lang.String"/>
  35326. <param name="resolve" type="boolean"/>
  35327. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  35328. </method>
  35329. <method name="isSystemClass" return="boolean"
  35330. abstract="false" native="false" synchronized="false"
  35331. static="true" final="false" visibility="public"
  35332. deprecated="not deprecated">
  35333. <param name="name" type="java.lang.String"/>
  35334. <param name="systemClasses" type="java.util.List"/>
  35335. <doc>
  35336. <![CDATA[Checks if a class should be included as a system class.
  35337. A class is a system class if and only if it matches one of the positive
  35338. patterns and none of the negative ones.
  35339. @param name the class name to check
  35340. @param systemClasses a list of system class configurations.
  35341. @return true if the class is a system class]]>
  35342. </doc>
  35343. </method>
  35344. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  35345. transient="false" volatile="false"
  35346. static="true" final="true" visibility="public"
  35347. deprecated="not deprecated">
  35348. <doc>
  35349. <![CDATA[Default value of the system classes if the user did not override them.
  35350. JDK classes, hadoop classes and resources, and some select third-party
  35351. classes are considered system classes, and are not loaded by the
  35352. application classloader.]]>
  35353. </doc>
  35354. </field>
  35355. <doc>
  35356. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  35357. application JARs are loaded in preference to the parent loader.]]>
  35358. </doc>
  35359. </class>
  35360. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  35361. <!-- start class org.apache.hadoop.util.DurationInfo -->
  35362. <class name="DurationInfo" extends="org.apache.hadoop.util.OperationDuration"
  35363. abstract="false"
  35364. static="false" final="false" visibility="public"
  35365. deprecated="not deprecated">
  35366. <implements name="java.lang.AutoCloseable"/>
  35367. <constructor name="DurationInfo" type="org.slf4j.Logger, java.lang.String, java.lang.Object[]"
  35368. static="false" final="false" visibility="public"
  35369. deprecated="not deprecated">
  35370. <doc>
  35371. <![CDATA[Create the duration text from a {@code String.format()} code call;
  35372. log output at info level.
  35373. @param log log to write to
  35374. @param format format string
  35375. @param args list of arguments]]>
  35376. </doc>
  35377. </constructor>
  35378. <constructor name="DurationInfo" type="org.slf4j.Logger, boolean, java.lang.String, java.lang.Object[]"
  35379. static="false" final="false" visibility="public"
  35380. deprecated="not deprecated">
  35381. <doc>
  35382. <![CDATA[Create the duration text from a {@code String.format()} code call
  35383. and log either at info or debug.
  35384. @param log log to write to
  35385. @param logAtInfo should the log be at info, rather than debug
  35386. @param format format string
  35387. @param args list of arguments]]>
  35388. </doc>
  35389. </constructor>
  35390. <method name="toString" return="java.lang.String"
  35391. abstract="false" native="false" synchronized="false"
  35392. static="false" final="false" visibility="public"
  35393. deprecated="not deprecated">
  35394. </method>
  35395. <method name="close"
  35396. abstract="false" native="false" synchronized="false"
  35397. static="false" final="false" visibility="public"
  35398. deprecated="not deprecated">
  35399. </method>
  35400. <doc>
  35401. <![CDATA[A duration with logging of final state at info or debug
  35402. in the {@code close()} call.
  35403. This allows it to be used in a try-with-resources clause, and have the
  35404. duration automatically logged.]]>
  35405. </doc>
  35406. </class>
  35407. <!-- end class org.apache.hadoop.util.DurationInfo -->
  35408. <!-- start interface org.apache.hadoop.util.IPList -->
  35409. <interface name="IPList" abstract="true"
  35410. static="false" final="false" visibility="public"
  35411. deprecated="not deprecated">
  35412. <method name="isIn" return="boolean"
  35413. abstract="true" native="false" synchronized="false"
  35414. static="false" final="false" visibility="public"
  35415. deprecated="not deprecated">
  35416. <param name="ipAddress" type="java.lang.String"/>
  35417. <doc>
  35418. <![CDATA[returns true if the ipAddress is in the IPList.
  35419. @param ipAddress
  35420. @return boolean value indicating whether the ipAddress is in the IPList]]>
  35421. </doc>
  35422. </method>
  35423. </interface>
  35424. <!-- end interface org.apache.hadoop.util.IPList -->
  35425. <!-- start class org.apache.hadoop.util.OperationDuration -->
  35426. <class name="OperationDuration" extends="java.lang.Object"
  35427. abstract="false"
  35428. static="false" final="false" visibility="public"
  35429. deprecated="not deprecated">
  35430. <constructor name="OperationDuration"
  35431. static="false" final="false" visibility="public"
  35432. deprecated="not deprecated">
  35433. <doc>
  35434. <![CDATA[Instantiate.
  35435. The start time and finished time are both set
  35436. to the current clock time.]]>
  35437. </doc>
  35438. </constructor>
  35439. <method name="time" return="long"
  35440. abstract="false" native="false" synchronized="false"
  35441. static="false" final="false" visibility="protected"
  35442. deprecated="not deprecated">
  35443. <doc>
  35444. <![CDATA[Evaluate the system time.
  35445. @return the current clock time.]]>
  35446. </doc>
  35447. </method>
  35448. <method name="finished"
  35449. abstract="false" native="false" synchronized="false"
  35450. static="false" final="false" visibility="public"
  35451. deprecated="not deprecated">
  35452. <doc>
  35453. <![CDATA[Update the finished time with the current system time.]]>
  35454. </doc>
  35455. </method>
  35456. <method name="getDurationString" return="java.lang.String"
  35457. abstract="false" native="false" synchronized="false"
  35458. static="false" final="false" visibility="public"
  35459. deprecated="not deprecated">
  35460. <doc>
  35461. <![CDATA[Return the duration as {@link #humanTime(long)}.
  35462. @return a printable duration.]]>
  35463. </doc>
  35464. </method>
  35465. <method name="humanTime" return="java.lang.String"
  35466. abstract="false" native="false" synchronized="false"
  35467. static="true" final="false" visibility="public"
  35468. deprecated="not deprecated">
  35469. <param name="time" type="long"/>
  35470. <doc>
  35471. <![CDATA[Convert to a human time of minutes:seconds.millis.
  35472. @param time time to humanize.
  35473. @return a printable value.]]>
  35474. </doc>
  35475. </method>
  35476. <method name="toString" return="java.lang.String"
  35477. abstract="false" native="false" synchronized="false"
  35478. static="false" final="false" visibility="public"
  35479. deprecated="not deprecated">
  35480. <doc>
  35481. <![CDATA[Return the duration as {@link #humanTime(long)}.
  35482. @return a printable duration.]]>
  35483. </doc>
  35484. </method>
  35485. <method name="value" return="long"
  35486. abstract="false" native="false" synchronized="false"
  35487. static="false" final="false" visibility="public"
  35488. deprecated="not deprecated">
  35489. <doc>
  35490. <![CDATA[Get the duration in milliseconds.
  35491. <p></p>
  35492. This will be 0 until a call
  35493. to {@link #finished()} has been made.
  35494. @return the currently recorded duration.]]>
  35495. </doc>
  35496. </method>
  35497. <method name="asDuration" return="java.time.Duration"
  35498. abstract="false" native="false" synchronized="false"
  35499. static="false" final="false" visibility="public"
  35500. deprecated="not deprecated">
  35501. <doc>
  35502. <![CDATA[Get the duration of an operation as a java Duration
  35503. instance.
  35504. @return a duration.]]>
  35505. </doc>
  35506. </method>
  35507. <doc>
  35508. <![CDATA[Little duration counter.]]>
  35509. </doc>
  35510. </class>
  35511. <!-- end class org.apache.hadoop.util.OperationDuration -->
  35512. <!-- start interface org.apache.hadoop.util.Progressable -->
  35513. <interface name="Progressable" abstract="true"
  35514. static="false" final="false" visibility="public"
  35515. deprecated="not deprecated">
  35516. <method name="progress"
  35517. abstract="true" native="false" synchronized="false"
  35518. static="false" final="false" visibility="public"
  35519. deprecated="not deprecated">
  35520. <doc>
  35521. <![CDATA[Report progress to the Hadoop framework.]]>
  35522. </doc>
  35523. </method>
  35524. <doc>
  35525. <![CDATA[A facility for reporting progress.
  35526. <p>Clients and/or applications can use the provided <code>Progressable</code>
  35527. to explicitly report progress to the Hadoop framework. This is especially
  35528. important for operations which take significant amount of time since,
  35529. in-lieu of the reported progress, the framework has to assume that an error
  35530. has occurred and time-out the operation.</p>]]>
  35531. </doc>
  35532. </interface>
  35533. <!-- end interface org.apache.hadoop.util.Progressable -->
  35534. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  35535. <class name="PureJavaCrc32" extends="java.lang.Object"
  35536. abstract="false"
  35537. static="false" final="false" visibility="public"
  35538. deprecated="not deprecated">
  35539. <implements name="java.util.zip.Checksum"/>
  35540. <constructor name="PureJavaCrc32"
  35541. static="false" final="false" visibility="public"
  35542. deprecated="not deprecated">
  35543. <doc>
  35544. <![CDATA[Create a new PureJavaCrc32 object.]]>
  35545. </doc>
  35546. </constructor>
  35547. <method name="getValue" return="long"
  35548. abstract="false" native="false" synchronized="false"
  35549. static="false" final="false" visibility="public"
  35550. deprecated="not deprecated">
  35551. </method>
  35552. <method name="reset"
  35553. abstract="false" native="false" synchronized="false"
  35554. static="false" final="false" visibility="public"
  35555. deprecated="not deprecated">
  35556. </method>
  35557. <method name="update"
  35558. abstract="false" native="false" synchronized="false"
  35559. static="false" final="false" visibility="public"
  35560. deprecated="not deprecated">
  35561. <param name="b" type="byte[]"/>
  35562. <param name="offset" type="int"/>
  35563. <param name="len" type="int"/>
  35564. </method>
  35565. <method name="update"
  35566. abstract="false" native="false" synchronized="false"
  35567. static="false" final="true" visibility="public"
  35568. deprecated="not deprecated">
  35569. <param name="b" type="int"/>
  35570. </method>
  35571. <doc>
  35572. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  35573. the same polynomial as the built-in native CRC32.
  35574. This is to avoid the JNI overhead for certain uses of Checksumming
  35575. where many small pieces of data are checksummed in succession.
  35576. The current version is ~10x to 1.8x as fast as Sun's native
  35577. java.util.zip.CRC32 in Java 1.6
  35578. @see java.util.zip.CRC32]]>
  35579. </doc>
  35580. </class>
  35581. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  35582. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  35583. <class name="PureJavaCrc32C" extends="java.lang.Object"
  35584. abstract="false"
  35585. static="false" final="false" visibility="public"
  35586. deprecated="not deprecated">
  35587. <implements name="java.util.zip.Checksum"/>
  35588. <constructor name="PureJavaCrc32C"
  35589. static="false" final="false" visibility="public"
  35590. deprecated="not deprecated">
  35591. <doc>
  35592. <![CDATA[Create a new PureJavaCrc32 object.]]>
  35593. </doc>
  35594. </constructor>
  35595. <method name="getValue" return="long"
  35596. abstract="false" native="false" synchronized="false"
  35597. static="false" final="false" visibility="public"
  35598. deprecated="not deprecated">
  35599. </method>
  35600. <method name="reset"
  35601. abstract="false" native="false" synchronized="false"
  35602. static="false" final="false" visibility="public"
  35603. deprecated="not deprecated">
  35604. </method>
  35605. <method name="update"
  35606. abstract="false" native="false" synchronized="false"
  35607. static="false" final="false" visibility="public"
  35608. deprecated="not deprecated">
  35609. <param name="b" type="byte[]"/>
  35610. <param name="off" type="int"/>
  35611. <param name="len" type="int"/>
  35612. </method>
  35613. <method name="update"
  35614. abstract="false" native="false" synchronized="false"
  35615. static="false" final="true" visibility="public"
  35616. deprecated="not deprecated">
  35617. <param name="b" type="int"/>
  35618. </method>
  35619. <doc>
  35620. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  35621. the CRC32-C polynomial, the same polynomial used by iSCSI
  35622. and implemented on many Intel chipsets supporting SSE4.2.]]>
  35623. </doc>
  35624. </class>
  35625. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  35626. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  35627. <class name="ReflectionUtils" extends="java.lang.Object"
  35628. abstract="false"
  35629. static="false" final="false" visibility="public"
  35630. deprecated="not deprecated">
  35631. <constructor name="ReflectionUtils"
  35632. static="false" final="false" visibility="public"
  35633. deprecated="not deprecated">
  35634. </constructor>
  35635. <method name="setConf"
  35636. abstract="false" native="false" synchronized="false"
  35637. static="true" final="false" visibility="public"
  35638. deprecated="not deprecated">
  35639. <param name="theObject" type="java.lang.Object"/>
  35640. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35641. <doc>
  35642. <![CDATA[Check and set 'configuration' if necessary.
  35643. @param theObject object for which to set configuration
  35644. @param conf Configuration]]>
  35645. </doc>
  35646. </method>
  35647. <method name="newInstance" return="T"
  35648. abstract="false" native="false" synchronized="false"
  35649. static="true" final="false" visibility="public"
  35650. deprecated="not deprecated">
  35651. <param name="theClass" type="java.lang.Class"/>
  35652. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35653. <doc>
  35654. <![CDATA[Create an object for the given class and initialize it from conf
  35655. @param theClass class of which an object is created
  35656. @param conf Configuration
  35657. @return a new object]]>
  35658. </doc>
  35659. </method>
  35660. <method name="setContentionTracing"
  35661. abstract="false" native="false" synchronized="false"
  35662. static="true" final="false" visibility="public"
  35663. deprecated="not deprecated">
  35664. <param name="val" type="boolean"/>
  35665. </method>
  35666. <method name="printThreadInfo"
  35667. abstract="false" native="false" synchronized="true"
  35668. static="true" final="false" visibility="public"
  35669. deprecated="not deprecated">
  35670. <param name="stream" type="java.io.PrintStream"/>
  35671. <param name="title" type="java.lang.String"/>
  35672. <doc>
  35673. <![CDATA[Print all of the thread's information and stack traces.
  35674. @param stream the stream to
  35675. @param title a string title for the stack trace]]>
  35676. </doc>
  35677. </method>
  35678. <method name="logThreadInfo"
  35679. abstract="false" native="false" synchronized="false"
  35680. static="true" final="false" visibility="public"
  35681. deprecated="not deprecated">
  35682. <param name="log" type="org.apache.commons.logging.Log"/>
  35683. <param name="title" type="java.lang.String"/>
  35684. <param name="minInterval" type="long"/>
  35685. <doc>
  35686. <![CDATA[Log the current thread stacks at INFO level.
  35687. @param log the logger that logs the stack trace
  35688. @param title a descriptive title for the call stacks
  35689. @param minInterval the minimum time from the last]]>
  35690. </doc>
  35691. </method>
  35692. <method name="logThreadInfo"
  35693. abstract="false" native="false" synchronized="false"
  35694. static="true" final="false" visibility="public"
  35695. deprecated="not deprecated">
  35696. <param name="log" type="org.slf4j.Logger"/>
  35697. <param name="title" type="java.lang.String"/>
  35698. <param name="minInterval" type="long"/>
  35699. <doc>
  35700. <![CDATA[Log the current thread stacks at INFO level.
  35701. @param log the logger that logs the stack trace
  35702. @param title a descriptive title for the call stacks
  35703. @param minInterval the minimum time from the last]]>
  35704. </doc>
  35705. </method>
  35706. <method name="getClass" return="java.lang.Class"
  35707. abstract="false" native="false" synchronized="false"
  35708. static="true" final="false" visibility="public"
  35709. deprecated="not deprecated">
  35710. <param name="o" type="T"/>
  35711. <doc>
  35712. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  35713. @param o object whose correctly-typed <code>Class</code> is to be obtained
  35714. @return the correctly typed <code>Class</code> of the given object.]]>
  35715. </doc>
  35716. </method>
  35717. <method name="copy" return="T"
  35718. abstract="false" native="false" synchronized="false"
  35719. static="true" final="false" visibility="public"
  35720. deprecated="not deprecated">
  35721. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35722. <param name="src" type="T"/>
  35723. <param name="dst" type="T"/>
  35724. <exception name="IOException" type="java.io.IOException"/>
  35725. <doc>
  35726. <![CDATA[Make a copy of the writable object using serialization to a buffer
  35727. @param src the object to copy from
  35728. @param dst the object to copy into, which is destroyed
  35729. @return dst param (the copy)
  35730. @throws IOException]]>
  35731. </doc>
  35732. </method>
  35733. <method name="cloneWritableInto"
  35734. abstract="false" native="false" synchronized="false"
  35735. static="true" final="false" visibility="public"
  35736. deprecated="not deprecated">
  35737. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  35738. <param name="src" type="org.apache.hadoop.io.Writable"/>
  35739. <exception name="IOException" type="java.io.IOException"/>
  35740. </method>
  35741. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  35742. abstract="false" native="false" synchronized="false"
  35743. static="true" final="false" visibility="public"
  35744. deprecated="not deprecated">
  35745. <param name="clazz" type="java.lang.Class"/>
  35746. <doc>
  35747. <![CDATA[Gets all the declared fields of a class including fields declared in
  35748. superclasses.]]>
  35749. </doc>
  35750. </method>
  35751. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  35752. abstract="false" native="false" synchronized="false"
  35753. static="true" final="false" visibility="public"
  35754. deprecated="not deprecated">
  35755. <param name="clazz" type="java.lang.Class"/>
  35756. <doc>
  35757. <![CDATA[Gets all the declared methods of a class including methods declared in
  35758. superclasses.]]>
  35759. </doc>
  35760. </method>
  35761. <doc>
  35762. <![CDATA[General reflection utils]]>
  35763. </doc>
  35764. </class>
  35765. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  35766. <!-- start class org.apache.hadoop.util.Shell -->
  35767. <class name="Shell" extends="java.lang.Object"
  35768. abstract="true"
  35769. static="false" final="false" visibility="public"
  35770. deprecated="not deprecated">
  35771. <constructor name="Shell"
  35772. static="false" final="false" visibility="protected"
  35773. deprecated="not deprecated">
  35774. <doc>
  35775. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  35776. not merged with stdout.]]>
  35777. </doc>
  35778. </constructor>
  35779. <constructor name="Shell" type="long"
  35780. static="false" final="false" visibility="protected"
  35781. deprecated="not deprecated">
  35782. <doc>
  35783. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  35784. not merged with stdout.
  35785. @param interval interval in milliseconds between command executions.]]>
  35786. </doc>
  35787. </constructor>
  35788. <constructor name="Shell" type="long, boolean"
  35789. static="false" final="false" visibility="protected"
  35790. deprecated="not deprecated">
  35791. <doc>
  35792. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  35793. method is invoked with a given elapsed time between calls.
  35794. @param interval the minimum duration in milliseconds to wait before
  35795. re-executing the command. If set to 0, there is no minimum.
  35796. @param redirectErrorStream should the error stream be merged with
  35797. the normal output stream?]]>
  35798. </doc>
  35799. </constructor>
  35800. <method name="isJava7OrAbove" return="boolean"
  35801. abstract="false" native="false" synchronized="false"
  35802. static="true" final="false" visibility="public"
  35803. deprecated="This call isn't needed any more: please remove uses of it.">
  35804. <doc>
  35805. <![CDATA[query to see if system is Java 7 or later.
  35806. Now that Hadoop requires Java 7 or later, this always returns true.
  35807. @deprecated This call isn't needed any more: please remove uses of it.
  35808. @return true, always.]]>
  35809. </doc>
  35810. </method>
  35811. <method name="isJavaVersionAtLeast" return="boolean"
  35812. abstract="false" native="false" synchronized="false"
  35813. static="true" final="false" visibility="public"
  35814. deprecated="not deprecated">
  35815. <param name="version" type="int"/>
  35816. <doc>
  35817. <![CDATA[Query to see if major version of Java specification of the system
  35818. is equal or greater than the parameter.
  35819. @param version 8, 9, 10 etc.
  35820. @return comparison with system property, always true for 8]]>
  35821. </doc>
  35822. </method>
  35823. <method name="checkWindowsCommandLineLength"
  35824. abstract="false" native="false" synchronized="false"
  35825. static="true" final="false" visibility="public"
  35826. deprecated="not deprecated">
  35827. <param name="commands" type="java.lang.String[]"/>
  35828. <exception name="IOException" type="java.io.IOException"/>
  35829. <doc>
  35830. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  35831. line length Note that the input is expected to already include space
  35832. delimiters, no extra count will be added for delimiters.
  35833. @param commands command parts, including any space delimiters]]>
  35834. </doc>
  35835. </method>
  35836. <method name="getGroupsCommand" return="java.lang.String[]"
  35837. abstract="false" native="false" synchronized="false"
  35838. static="true" final="false" visibility="public"
  35839. deprecated="not deprecated">
  35840. <doc>
  35841. <![CDATA[a Unix command to get the current user's groups list.]]>
  35842. </doc>
  35843. </method>
  35844. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  35845. abstract="false" native="false" synchronized="false"
  35846. static="true" final="false" visibility="public"
  35847. deprecated="not deprecated">
  35848. <param name="user" type="java.lang.String"/>
  35849. <doc>
  35850. <![CDATA[A command to get a given user's groups list.
  35851. If the OS is not WINDOWS, the command will get the user's primary group
  35852. first and finally get the groups list which includes the primary group.
  35853. i.e. the user's primary group will be included twice.]]>
  35854. </doc>
  35855. </method>
  35856. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  35857. abstract="false" native="false" synchronized="false"
  35858. static="true" final="false" visibility="public"
  35859. deprecated="not deprecated">
  35860. <param name="user" type="java.lang.String"/>
  35861. <doc>
  35862. <![CDATA[A command to get a given user's group id list.
  35863. The command will get the user's primary group
  35864. first and finally get the groups list which includes the primary group.
  35865. i.e. the user's primary group will be included twice.
  35866. This command does not support Windows and will only return group names.]]>
  35867. </doc>
  35868. </method>
  35869. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  35870. abstract="false" native="false" synchronized="false"
  35871. static="true" final="false" visibility="public"
  35872. deprecated="not deprecated">
  35873. <param name="netgroup" type="java.lang.String"/>
  35874. <doc>
  35875. <![CDATA[A command to get a given netgroup's user list.]]>
  35876. </doc>
  35877. </method>
  35878. <method name="getGetPermissionCommand" return="java.lang.String[]"
  35879. abstract="false" native="false" synchronized="false"
  35880. static="true" final="false" visibility="public"
  35881. deprecated="not deprecated">
  35882. <doc>
  35883. <![CDATA[Return a command to get permission information.]]>
  35884. </doc>
  35885. </method>
  35886. <method name="getSetPermissionCommand" return="java.lang.String[]"
  35887. abstract="false" native="false" synchronized="false"
  35888. static="true" final="false" visibility="public"
  35889. deprecated="not deprecated">
  35890. <param name="perm" type="java.lang.String"/>
  35891. <param name="recursive" type="boolean"/>
  35892. <doc>
  35893. <![CDATA[Return a command to set permission.]]>
  35894. </doc>
  35895. </method>
  35896. <method name="getSetPermissionCommand" return="java.lang.String[]"
  35897. abstract="false" native="false" synchronized="false"
  35898. static="true" final="false" visibility="public"
  35899. deprecated="not deprecated">
  35900. <param name="perm" type="java.lang.String"/>
  35901. <param name="recursive" type="boolean"/>
  35902. <param name="file" type="java.lang.String"/>
  35903. <doc>
  35904. <![CDATA[Return a command to set permission for specific file.
  35905. @param perm String permission to set
  35906. @param recursive boolean true to apply to all sub-directories recursively
  35907. @param file String file to set
  35908. @return String[] containing command and arguments]]>
  35909. </doc>
  35910. </method>
  35911. <method name="getSetOwnerCommand" return="java.lang.String[]"
  35912. abstract="false" native="false" synchronized="false"
  35913. static="true" final="false" visibility="public"
  35914. deprecated="not deprecated">
  35915. <param name="owner" type="java.lang.String"/>
  35916. <doc>
  35917. <![CDATA[Return a command to set owner.]]>
  35918. </doc>
  35919. </method>
  35920. <method name="getSymlinkCommand" return="java.lang.String[]"
  35921. abstract="false" native="false" synchronized="false"
  35922. static="true" final="false" visibility="public"
  35923. deprecated="not deprecated">
  35924. <param name="target" type="java.lang.String"/>
  35925. <param name="link" type="java.lang.String"/>
  35926. <doc>
  35927. <![CDATA[Return a command to create symbolic links.]]>
  35928. </doc>
  35929. </method>
  35930. <method name="getReadlinkCommand" return="java.lang.String[]"
  35931. abstract="false" native="false" synchronized="false"
  35932. static="true" final="false" visibility="public"
  35933. deprecated="not deprecated">
  35934. <param name="link" type="java.lang.String"/>
  35935. <doc>
  35936. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  35937. </doc>
  35938. </method>
  35939. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  35940. abstract="false" native="false" synchronized="false"
  35941. static="true" final="false" visibility="public"
  35942. deprecated="not deprecated">
  35943. <param name="pid" type="java.lang.String"/>
  35944. <doc>
  35945. <![CDATA[Return a command for determining if process with specified pid is alive.
  35946. @param pid process ID
  35947. @return a <code>kill -0</code> command or equivalent]]>
  35948. </doc>
  35949. </method>
  35950. <method name="getSignalKillCommand" return="java.lang.String[]"
  35951. abstract="false" native="false" synchronized="false"
  35952. static="true" final="false" visibility="public"
  35953. deprecated="not deprecated">
  35954. <param name="code" type="int"/>
  35955. <param name="pid" type="java.lang.String"/>
  35956. <doc>
  35957. <![CDATA[Return a command to send a signal to a given pid.]]>
  35958. </doc>
  35959. </method>
  35960. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  35961. abstract="false" native="false" synchronized="false"
  35962. static="true" final="false" visibility="public"
  35963. deprecated="not deprecated">
  35964. <doc>
  35965. <![CDATA[Return a regular expression string that match environment variables.]]>
  35966. </doc>
  35967. </method>
  35968. <method name="appendScriptExtension" return="java.io.File"
  35969. abstract="false" native="false" synchronized="false"
  35970. static="true" final="false" visibility="public"
  35971. deprecated="not deprecated">
  35972. <param name="parent" type="java.io.File"/>
  35973. <param name="basename" type="java.lang.String"/>
  35974. <doc>
  35975. <![CDATA[Returns a File referencing a script with the given basename, inside the
  35976. given parent directory. The file extension is inferred by platform:
  35977. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  35978. @param parent File parent directory
  35979. @param basename String script file basename
  35980. @return File referencing the script in the directory]]>
  35981. </doc>
  35982. </method>
  35983. <method name="appendScriptExtension" return="java.lang.String"
  35984. abstract="false" native="false" synchronized="false"
  35985. static="true" final="false" visibility="public"
  35986. deprecated="not deprecated">
  35987. <param name="basename" type="java.lang.String"/>
  35988. <doc>
  35989. <![CDATA[Returns a script file name with the given basename.
  35990. The file extension is inferred by platform:
  35991. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  35992. @param basename String script file basename
  35993. @return String script file name]]>
  35994. </doc>
  35995. </method>
  35996. <method name="getRunScriptCommand" return="java.lang.String[]"
  35997. abstract="false" native="false" synchronized="false"
  35998. static="true" final="false" visibility="public"
  35999. deprecated="not deprecated">
  36000. <param name="script" type="java.io.File"/>
  36001. <doc>
  36002. <![CDATA[Returns a command to run the given script. The script interpreter is
  36003. inferred by platform: cmd on Windows or bash otherwise.
  36004. @param script File script to run
  36005. @return String[] command to run the script]]>
  36006. </doc>
  36007. </method>
  36008. <method name="getHadoopHome" return="java.lang.String"
  36009. abstract="false" native="false" synchronized="false"
  36010. static="true" final="false" visibility="public"
  36011. deprecated="not deprecated">
  36012. <exception name="IOException" type="java.io.IOException"/>
  36013. <doc>
  36014. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  36015. @return the home dir
  36016. @throws IOException if the home directory cannot be located.]]>
  36017. </doc>
  36018. </method>
  36019. <method name="getQualifiedBin" return="java.io.File"
  36020. abstract="false" native="false" synchronized="false"
  36021. static="true" final="false" visibility="public"
  36022. deprecated="not deprecated">
  36023. <param name="executable" type="java.lang.String"/>
  36024. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  36025. <doc>
  36026. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  36027. bin location. This is primarily useful for disambiguating call-outs
  36028. to executable sub-components of Hadoop to avoid clashes with other
  36029. executables that may be in the path. Caveat: this call doesn't
  36030. just format the path to the bin directory. It also checks for file
  36031. existence of the composed path. The output of this call should be
  36032. cached by callers.
  36033. @param executable executable
  36034. @return executable file reference
  36035. @throws FileNotFoundException if the path does not exist]]>
  36036. </doc>
  36037. </method>
  36038. <method name="getQualifiedBinPath" return="java.lang.String"
  36039. abstract="false" native="false" synchronized="false"
  36040. static="true" final="false" visibility="public"
  36041. deprecated="not deprecated">
  36042. <param name="executable" type="java.lang.String"/>
  36043. <exception name="IOException" type="java.io.IOException"/>
  36044. <doc>
  36045. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  36046. bin location. This is primarily useful for disambiguating call-outs
  36047. to executable sub-components of Hadoop to avoid clashes with other
  36048. executables that may be in the path. Caveat: this call doesn't
  36049. just format the path to the bin directory. It also checks for file
  36050. existence of the composed path. The output of this call should be
  36051. cached by callers.
  36052. @param executable executable
  36053. @return executable file reference
  36054. @throws FileNotFoundException if the path does not exist
  36055. @throws IOException on path canonicalization failures]]>
  36056. </doc>
  36057. </method>
  36058. <method name="hasWinutilsPath" return="boolean"
  36059. abstract="false" native="false" synchronized="false"
  36060. static="true" final="false" visibility="public"
  36061. deprecated="not deprecated">
  36062. <doc>
  36063. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  36064. If true, then {@link #WINUTILS} is non-null, and both
  36065. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  36066. will successfully return this value. Always false on non-windows systems.
  36067. @return true if there is a valid path to the binary]]>
  36068. </doc>
  36069. </method>
  36070. <method name="getWinUtilsPath" return="java.lang.String"
  36071. abstract="false" native="false" synchronized="false"
  36072. static="true" final="false" visibility="public"
  36073. deprecated="not deprecated">
  36074. <doc>
  36075. <![CDATA[Locate the winutils binary, or fail with a meaningful
  36076. exception and stack trace as an RTE.
  36077. This method is for use in methods which don't explicitly throw
  36078. an <code>IOException</code>.
  36079. @return the path to {@link #WINUTILS_EXE}
  36080. @throws RuntimeException if the path is not resolvable]]>
  36081. </doc>
  36082. </method>
  36083. <method name="getWinUtilsFile" return="java.io.File"
  36084. abstract="false" native="false" synchronized="false"
  36085. static="true" final="false" visibility="public"
  36086. deprecated="not deprecated">
  36087. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  36088. <doc>
  36089. <![CDATA[Get a file reference to winutils.
  36090. Always raises an exception if there isn't one
  36091. @return the file instance referring to the winutils bin.
  36092. @throws FileNotFoundException on any failure to locate that file.]]>
  36093. </doc>
  36094. </method>
  36095. <method name="checkIsBashSupported" return="boolean"
  36096. abstract="false" native="false" synchronized="false"
  36097. static="true" final="false" visibility="public"
  36098. deprecated="not deprecated">
  36099. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  36100. </method>
  36101. <method name="setEnvironment"
  36102. abstract="false" native="false" synchronized="false"
  36103. static="false" final="false" visibility="protected"
  36104. deprecated="not deprecated">
  36105. <param name="env" type="java.util.Map"/>
  36106. <doc>
  36107. <![CDATA[Set the environment for the command.
  36108. @param env Mapping of environment variables]]>
  36109. </doc>
  36110. </method>
  36111. <method name="setWorkingDirectory"
  36112. abstract="false" native="false" synchronized="false"
  36113. static="false" final="false" visibility="protected"
  36114. deprecated="not deprecated">
  36115. <param name="dir" type="java.io.File"/>
  36116. <doc>
  36117. <![CDATA[Set the working directory.
  36118. @param dir The directory where the command will be executed]]>
  36119. </doc>
  36120. </method>
  36121. <method name="run"
  36122. abstract="false" native="false" synchronized="false"
  36123. static="false" final="false" visibility="protected"
  36124. deprecated="not deprecated">
  36125. <exception name="IOException" type="java.io.IOException"/>
  36126. <doc>
  36127. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  36128. </doc>
  36129. </method>
  36130. <method name="getExecString" return="java.lang.String[]"
  36131. abstract="true" native="false" synchronized="false"
  36132. static="false" final="false" visibility="protected"
  36133. deprecated="not deprecated">
  36134. <doc>
  36135. <![CDATA[return an array containing the command name and its parameters.]]>
  36136. </doc>
  36137. </method>
  36138. <method name="parseExecResult"
  36139. abstract="true" native="false" synchronized="false"
  36140. static="false" final="false" visibility="protected"
  36141. deprecated="not deprecated">
  36142. <param name="lines" type="java.io.BufferedReader"/>
  36143. <exception name="IOException" type="java.io.IOException"/>
  36144. <doc>
  36145. <![CDATA[Parse the execution result]]>
  36146. </doc>
  36147. </method>
  36148. <method name="getEnvironment" return="java.lang.String"
  36149. abstract="false" native="false" synchronized="false"
  36150. static="false" final="false" visibility="public"
  36151. deprecated="not deprecated">
  36152. <param name="env" type="java.lang.String"/>
  36153. <doc>
  36154. <![CDATA[Get an environment variable.
  36155. @param env the environment var
  36156. @return the value or null if it was unset.]]>
  36157. </doc>
  36158. </method>
  36159. <method name="getProcess" return="java.lang.Process"
  36160. abstract="false" native="false" synchronized="false"
  36161. static="false" final="false" visibility="public"
  36162. deprecated="not deprecated">
  36163. <doc>
  36164. <![CDATA[get the current sub-process executing the given command.
  36165. @return process executing the command]]>
  36166. </doc>
  36167. </method>
  36168. <method name="getExitCode" return="int"
  36169. abstract="false" native="false" synchronized="false"
  36170. static="false" final="false" visibility="public"
  36171. deprecated="not deprecated">
  36172. <doc>
  36173. <![CDATA[get the exit code.
  36174. @return the exit code of the process]]>
  36175. </doc>
  36176. </method>
  36177. <method name="getWaitingThread" return="java.lang.Thread"
  36178. abstract="false" native="false" synchronized="false"
  36179. static="false" final="false" visibility="public"
  36180. deprecated="not deprecated">
  36181. <doc>
  36182. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  36183. @return the thread that ran runCommand() that spawned this shell
  36184. or null if no thread is waiting for this shell to complete]]>
  36185. </doc>
  36186. </method>
  36187. <method name="isTimedOut" return="boolean"
  36188. abstract="false" native="false" synchronized="false"
  36189. static="false" final="false" visibility="public"
  36190. deprecated="not deprecated">
  36191. <doc>
  36192. <![CDATA[To check if the passed script to shell command executor timed out or
  36193. not.
  36194. @return if the script timed out.]]>
  36195. </doc>
  36196. </method>
  36197. <method name="execCommand" return="java.lang.String"
  36198. abstract="false" native="false" synchronized="false"
  36199. static="true" final="false" visibility="public"
  36200. deprecated="not deprecated">
  36201. <param name="cmd" type="java.lang.String[]"/>
  36202. <exception name="IOException" type="java.io.IOException"/>
  36203. <doc>
  36204. <![CDATA[Static method to execute a shell command.
  36205. Covers most of the simple cases without requiring the user to implement
  36206. the <code>Shell</code> interface.
  36207. @param cmd shell command to execute.
  36208. @return the output of the executed command.]]>
  36209. </doc>
  36210. </method>
  36211. <method name="execCommand" return="java.lang.String"
  36212. abstract="false" native="false" synchronized="false"
  36213. static="true" final="false" visibility="public"
  36214. deprecated="not deprecated">
  36215. <param name="env" type="java.util.Map"/>
  36216. <param name="cmd" type="java.lang.String[]"/>
  36217. <param name="timeout" type="long"/>
  36218. <exception name="IOException" type="java.io.IOException"/>
  36219. <doc>
  36220. <![CDATA[Static method to execute a shell command.
  36221. Covers most of the simple cases without requiring the user to implement
  36222. the <code>Shell</code> interface.
  36223. @param env the map of environment key=value
  36224. @param cmd shell command to execute.
  36225. @param timeout time in milliseconds after which script should be marked timeout
  36226. @return the output of the executed command.
  36227. @throws IOException on any problem.]]>
  36228. </doc>
  36229. </method>
  36230. <method name="execCommand" return="java.lang.String"
  36231. abstract="false" native="false" synchronized="false"
  36232. static="true" final="false" visibility="public"
  36233. deprecated="not deprecated">
  36234. <param name="env" type="java.util.Map"/>
  36235. <param name="cmd" type="java.lang.String[]"/>
  36236. <exception name="IOException" type="java.io.IOException"/>
  36237. <doc>
  36238. <![CDATA[Static method to execute a shell command.
  36239. Covers most of the simple cases without requiring the user to implement
  36240. the <code>Shell</code> interface.
  36241. @param env the map of environment key=value
  36242. @param cmd shell command to execute.
  36243. @return the output of the executed command.
  36244. @throws IOException on any problem.]]>
  36245. </doc>
  36246. </method>
  36247. <method name="destroyAllShellProcesses"
  36248. abstract="false" native="false" synchronized="false"
  36249. static="true" final="false" visibility="public"
  36250. deprecated="not deprecated">
  36251. <doc>
  36252. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  36253. Iterates through a map of all currently running <code>Shell</code>
  36254. processes and destroys them one by one. This method is thread safe]]>
  36255. </doc>
  36256. </method>
  36257. <method name="getAllShells" return="java.util.Set"
  36258. abstract="false" native="false" synchronized="false"
  36259. static="true" final="false" visibility="public"
  36260. deprecated="not deprecated">
  36261. <doc>
  36262. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.]]>
  36263. </doc>
  36264. </method>
  36265. <method name="getMemlockLimit" return="java.lang.Long"
  36266. abstract="false" native="false" synchronized="false"
  36267. static="true" final="false" visibility="public"
  36268. deprecated="not deprecated">
  36269. <param name="ulimit" type="java.lang.Long"/>
  36270. <doc>
  36271. <![CDATA[Static method to return the memory lock limit for datanode.
  36272. @param ulimit max value at which memory locked should be capped.
  36273. @return long value specifying the memory lock limit.]]>
  36274. </doc>
  36275. </method>
  36276. <field name="LOG" type="org.slf4j.Logger"
  36277. transient="false" volatile="false"
  36278. static="true" final="true" visibility="public"
  36279. deprecated="not deprecated">
  36280. </field>
  36281. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  36282. transient="false" volatile="false"
  36283. static="true" final="true" visibility="public"
  36284. deprecated="not deprecated">
  36285. <doc>
  36286. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  36287. </doc>
  36288. </field>
  36289. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  36290. transient="false" volatile="false"
  36291. static="true" final="true" visibility="public"
  36292. deprecated="not deprecated">
  36293. <doc>
  36294. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  36295. </doc>
  36296. </field>
  36297. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  36298. transient="false" volatile="false"
  36299. static="true" final="true" visibility="public"
  36300. deprecated="not deprecated">
  36301. <doc>
  36302. <![CDATA[Maximum command line length in Windows
  36303. KB830473 documents this as 8191]]>
  36304. </doc>
  36305. </field>
  36306. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  36307. transient="false" volatile="false"
  36308. static="true" final="true" visibility="public"
  36309. deprecated="use the correctly spelled constant.">
  36310. <doc>
  36311. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  36312. @deprecated use the correctly spelled constant.]]>
  36313. </doc>
  36314. </field>
  36315. <field name="USER_NAME_COMMAND" type="java.lang.String"
  36316. transient="false" volatile="false"
  36317. static="true" final="true" visibility="public"
  36318. deprecated="not deprecated">
  36319. <doc>
  36320. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  36321. </doc>
  36322. </field>
  36323. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  36324. transient="false" volatile="false"
  36325. static="true" final="true" visibility="public"
  36326. deprecated="not deprecated">
  36327. <doc>
  36328. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  36329. </doc>
  36330. </field>
  36331. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  36332. transient="false" volatile="false"
  36333. static="true" final="true" visibility="public"
  36334. deprecated="not deprecated">
  36335. <doc>
  36336. <![CDATA[Get the type of the operating system, as determined from parsing
  36337. the <code>os.name</code> property.]]>
  36338. </doc>
  36339. </field>
  36340. <field name="WINDOWS" type="boolean"
  36341. transient="false" volatile="false"
  36342. static="true" final="true" visibility="public"
  36343. deprecated="not deprecated">
  36344. </field>
  36345. <field name="SOLARIS" type="boolean"
  36346. transient="false" volatile="false"
  36347. static="true" final="true" visibility="public"
  36348. deprecated="not deprecated">
  36349. </field>
  36350. <field name="MAC" type="boolean"
  36351. transient="false" volatile="false"
  36352. static="true" final="true" visibility="public"
  36353. deprecated="not deprecated">
  36354. </field>
  36355. <field name="FREEBSD" type="boolean"
  36356. transient="false" volatile="false"
  36357. static="true" final="true" visibility="public"
  36358. deprecated="not deprecated">
  36359. </field>
  36360. <field name="LINUX" type="boolean"
  36361. transient="false" volatile="false"
  36362. static="true" final="true" visibility="public"
  36363. deprecated="not deprecated">
  36364. </field>
  36365. <field name="OTHER" type="boolean"
  36366. transient="false" volatile="false"
  36367. static="true" final="true" visibility="public"
  36368. deprecated="not deprecated">
  36369. </field>
  36370. <field name="PPC_64" type="boolean"
  36371. transient="false" volatile="false"
  36372. static="true" final="true" visibility="public"
  36373. deprecated="not deprecated">
  36374. </field>
  36375. <field name="ENV_NAME_REGEX" type="java.lang.String"
  36376. transient="false" volatile="false"
  36377. static="true" final="true" visibility="public"
  36378. deprecated="not deprecated">
  36379. <doc>
  36380. <![CDATA[Regular expression for environment variables: {@value}.]]>
  36381. </doc>
  36382. </field>
  36383. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  36384. transient="false" volatile="false"
  36385. static="true" final="true" visibility="public"
  36386. deprecated="not deprecated">
  36387. <doc>
  36388. <![CDATA[a Unix command to set permission: {@value}.]]>
  36389. </doc>
  36390. </field>
  36391. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  36392. transient="false" volatile="false"
  36393. static="true" final="true" visibility="public"
  36394. deprecated="not deprecated">
  36395. <doc>
  36396. <![CDATA[a Unix command to set owner: {@value}.]]>
  36397. </doc>
  36398. </field>
  36399. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  36400. transient="false" volatile="false"
  36401. static="true" final="true" visibility="public"
  36402. deprecated="not deprecated">
  36403. <doc>
  36404. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  36405. </doc>
  36406. </field>
  36407. <field name="LINK_COMMAND" type="java.lang.String"
  36408. transient="false" volatile="false"
  36409. static="true" final="true" visibility="public"
  36410. deprecated="not deprecated">
  36411. <doc>
  36412. <![CDATA[a Unix command to create a link: {@value}.]]>
  36413. </doc>
  36414. </field>
  36415. <field name="READ_LINK_COMMAND" type="java.lang.String"
  36416. transient="false" volatile="false"
  36417. static="true" final="true" visibility="public"
  36418. deprecated="not deprecated">
  36419. <doc>
  36420. <![CDATA[a Unix command to get a link target: {@value}.]]>
  36421. </doc>
  36422. </field>
  36423. <field name="timeOutInterval" type="long"
  36424. transient="false" volatile="false"
  36425. static="false" final="false" visibility="protected"
  36426. deprecated="not deprecated">
  36427. <doc>
  36428. <![CDATA[Time after which the executing script would be timedout.]]>
  36429. </doc>
  36430. </field>
  36431. <field name="inheritParentEnv" type="boolean"
  36432. transient="false" volatile="false"
  36433. static="false" final="false" visibility="protected"
  36434. deprecated="not deprecated">
  36435. <doc>
  36436. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  36437. </doc>
  36438. </field>
  36439. <field name="WINUTILS" type="java.lang.String"
  36440. transient="false" volatile="false"
  36441. static="true" final="true" visibility="public"
  36442. deprecated="use one of the exception-raising getter methods,
  36443. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  36444. <doc>
  36445. <![CDATA[Location of winutils as a string; null if not found.
  36446. <p>
  36447. <i>Important: caller must check for this value being null</i>.
  36448. The lack of such checks has led to many support issues being raised.
  36449. <p>
  36450. @deprecated use one of the exception-raising getter methods,
  36451. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  36452. </doc>
  36453. </field>
  36454. <field name="isSetsidAvailable" type="boolean"
  36455. transient="false" volatile="false"
  36456. static="true" final="true" visibility="public"
  36457. deprecated="not deprecated">
  36458. <doc>
  36459. <![CDATA[Flag which is true if setsid exists.]]>
  36460. </doc>
  36461. </field>
  36462. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  36463. transient="false" volatile="false"
  36464. static="true" final="true" visibility="public"
  36465. deprecated="not deprecated">
  36466. <doc>
  36467. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  36468. </doc>
  36469. </field>
  36470. <doc>
  36471. <![CDATA[A base class for running a Shell command.
  36472. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  36473. <code>df</code>. It also offers facilities to gate commands by
  36474. time-intervals.]]>
  36475. </doc>
  36476. </class>
  36477. <!-- end class org.apache.hadoop.util.Shell -->
  36478. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  36479. <class name="ShutdownHookManager" extends="java.lang.Object"
  36480. abstract="false"
  36481. static="false" final="true" visibility="public"
  36482. deprecated="not deprecated">
  36483. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  36484. abstract="false" native="false" synchronized="false"
  36485. static="true" final="false" visibility="public"
  36486. deprecated="not deprecated">
  36487. <doc>
  36488. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  36489. @return <code>ShutdownHookManager</code> singleton.]]>
  36490. </doc>
  36491. </method>
  36492. <method name="addShutdownHook"
  36493. abstract="false" native="false" synchronized="false"
  36494. static="false" final="false" visibility="public"
  36495. deprecated="not deprecated">
  36496. <param name="shutdownHook" type="java.lang.Runnable"/>
  36497. <param name="priority" type="int"/>
  36498. <doc>
  36499. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  36500. the earlier will run. ShutdownHooks with same priority run
  36501. in a non-deterministic order.
  36502. @param shutdownHook shutdownHook <code>Runnable</code>
  36503. @param priority priority of the shutdownHook.]]>
  36504. </doc>
  36505. </method>
  36506. <method name="addShutdownHook"
  36507. abstract="false" native="false" synchronized="false"
  36508. static="false" final="false" visibility="public"
  36509. deprecated="not deprecated">
  36510. <param name="shutdownHook" type="java.lang.Runnable"/>
  36511. <param name="priority" type="int"/>
  36512. <param name="timeout" type="long"/>
  36513. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  36514. <doc>
  36515. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  36516. the earlier will run. ShutdownHooks with same priority run
  36517. in a non-deterministic order. The shutdown hook will be terminated if it
  36518. has not been finished in the specified period of time.
  36519. @param shutdownHook shutdownHook <code>Runnable</code>
  36520. @param priority priority of the shutdownHook
  36521. @param timeout timeout of the shutdownHook
  36522. @param unit unit of the timeout <code>TimeUnit</code>]]>
  36523. </doc>
  36524. </method>
  36525. <method name="removeShutdownHook" return="boolean"
  36526. abstract="false" native="false" synchronized="false"
  36527. static="false" final="false" visibility="public"
  36528. deprecated="not deprecated">
  36529. <param name="shutdownHook" type="java.lang.Runnable"/>
  36530. <doc>
  36531. <![CDATA[Removes a shutdownHook.
  36532. @param shutdownHook shutdownHook to remove.
  36533. @return TRUE if the shutdownHook was registered and removed,
  36534. FALSE otherwise.]]>
  36535. </doc>
  36536. </method>
  36537. <method name="hasShutdownHook" return="boolean"
  36538. abstract="false" native="false" synchronized="false"
  36539. static="false" final="false" visibility="public"
  36540. deprecated="not deprecated">
  36541. <param name="shutdownHook" type="java.lang.Runnable"/>
  36542. <doc>
  36543. <![CDATA[Indicates if a shutdownHook is registered or not.
  36544. @param shutdownHook shutdownHook to check if registered.
  36545. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  36546. </doc>
  36547. </method>
  36548. <method name="isShutdownInProgress" return="boolean"
  36549. abstract="false" native="false" synchronized="false"
  36550. static="false" final="false" visibility="public"
  36551. deprecated="not deprecated">
  36552. <doc>
  36553. <![CDATA[Indicates if shutdown is in progress or not.
  36554. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  36555. </doc>
  36556. </method>
  36557. <method name="clearShutdownHooks"
  36558. abstract="false" native="false" synchronized="false"
  36559. static="false" final="false" visibility="public"
  36560. deprecated="not deprecated">
  36561. <doc>
  36562. <![CDATA[clear all registered shutdownHooks.]]>
  36563. </doc>
  36564. </method>
  36565. <field name="TIMEOUT_MINIMUM" type="long"
  36566. transient="false" volatile="false"
  36567. static="true" final="true" visibility="public"
  36568. deprecated="not deprecated">
  36569. <doc>
  36570. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  36571. </doc>
  36572. </field>
  36573. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  36574. transient="false" volatile="false"
  36575. static="true" final="true" visibility="public"
  36576. deprecated="not deprecated">
  36577. <doc>
  36578. <![CDATA[The default time unit used: seconds.]]>
  36579. </doc>
  36580. </field>
  36581. <doc>
  36582. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  36583. in a deterministic order, higher priority first.
  36584. <p>
  36585. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  36586. This class registers a single JVM shutdownHook and run all the
  36587. shutdownHooks registered to it (to this class) in order based on their
  36588. priority.
  36589. Unless a hook was registered with a shutdown explicitly set through
  36590. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  36591. the shutdown time allocated to it is set by the configuration option
  36592. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  36593. {@code core-site.xml}, with a default value of
  36594. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  36595. seconds.]]>
  36596. </doc>
  36597. </class>
  36598. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  36599. <!-- start class org.apache.hadoop.util.StringInterner -->
  36600. <class name="StringInterner" extends="java.lang.Object"
  36601. abstract="false"
  36602. static="false" final="false" visibility="public"
  36603. deprecated="not deprecated">
  36604. <constructor name="StringInterner"
  36605. static="false" final="false" visibility="public"
  36606. deprecated="not deprecated">
  36607. </constructor>
  36608. <method name="strongIntern" return="java.lang.String"
  36609. abstract="false" native="false" synchronized="false"
  36610. static="true" final="false" visibility="public"
  36611. deprecated="not deprecated">
  36612. <param name="sample" type="java.lang.String"/>
  36613. <doc>
  36614. <![CDATA[Interns and returns a reference to the representative instance
  36615. for any of a collection of string instances that are equal to each other.
  36616. Retains strong reference to the instance,
  36617. thus preventing it from being garbage-collected.
  36618. @param sample string instance to be interned
  36619. @return strong reference to interned string instance]]>
  36620. </doc>
  36621. </method>
  36622. <method name="weakIntern" return="java.lang.String"
  36623. abstract="false" native="false" synchronized="false"
  36624. static="true" final="false" visibility="public"
  36625. deprecated="not deprecated">
  36626. <param name="sample" type="java.lang.String"/>
  36627. <doc>
  36628. <![CDATA[Interns and returns a reference to the representative instance
  36629. for any of a collection of string instances that are equal to each other.
  36630. Retains weak reference to the instance,
  36631. and so does not prevent it from being garbage-collected.
  36632. @param sample string instance to be interned
  36633. @return weak reference to interned string instance]]>
  36634. </doc>
  36635. </method>
  36636. <method name="internStringsInArray" return="java.lang.String[]"
  36637. abstract="false" native="false" synchronized="false"
  36638. static="true" final="false" visibility="public"
  36639. deprecated="not deprecated">
  36640. <param name="strings" type="java.lang.String[]"/>
  36641. <doc>
  36642. <![CDATA[Interns all the strings in the given array in place,
  36643. returning the same array.]]>
  36644. </doc>
  36645. </method>
  36646. <doc>
  36647. <![CDATA[Provides string interning utility methods. For weak interning,
  36648. we use the standard String.intern() call, that performs very well
  36649. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  36650. </doc>
  36651. </class>
  36652. <!-- end class org.apache.hadoop.util.StringInterner -->
  36653. <!-- start class org.apache.hadoop.util.SysInfo -->
  36654. <class name="SysInfo" extends="java.lang.Object"
  36655. abstract="true"
  36656. static="false" final="false" visibility="public"
  36657. deprecated="not deprecated">
  36658. <constructor name="SysInfo"
  36659. static="false" final="false" visibility="public"
  36660. deprecated="not deprecated">
  36661. </constructor>
  36662. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  36663. abstract="false" native="false" synchronized="false"
  36664. static="true" final="false" visibility="public"
  36665. deprecated="not deprecated">
  36666. <doc>
  36667. <![CDATA[Return default OS instance.
  36668. @throws UnsupportedOperationException If cannot determine OS.
  36669. @return Default instance for the detected OS.]]>
  36670. </doc>
  36671. </method>
  36672. <method name="getVirtualMemorySize" return="long"
  36673. abstract="true" native="false" synchronized="false"
  36674. static="false" final="false" visibility="public"
  36675. deprecated="not deprecated">
  36676. <doc>
  36677. <![CDATA[Obtain the total size of the virtual memory present in the system.
  36678. @return virtual memory size in bytes.]]>
  36679. </doc>
  36680. </method>
  36681. <method name="getPhysicalMemorySize" return="long"
  36682. abstract="true" native="false" synchronized="false"
  36683. static="false" final="false" visibility="public"
  36684. deprecated="not deprecated">
  36685. <doc>
  36686. <![CDATA[Obtain the total size of the physical memory present in the system.
  36687. @return physical memory size bytes.]]>
  36688. </doc>
  36689. </method>
  36690. <method name="getAvailableVirtualMemorySize" return="long"
  36691. abstract="true" native="false" synchronized="false"
  36692. static="false" final="false" visibility="public"
  36693. deprecated="not deprecated">
  36694. <doc>
  36695. <![CDATA[Obtain the total size of the available virtual memory present
  36696. in the system.
  36697. @return available virtual memory size in bytes.]]>
  36698. </doc>
  36699. </method>
  36700. <method name="getAvailablePhysicalMemorySize" return="long"
  36701. abstract="true" native="false" synchronized="false"
  36702. static="false" final="false" visibility="public"
  36703. deprecated="not deprecated">
  36704. <doc>
  36705. <![CDATA[Obtain the total size of the available physical memory present
  36706. in the system.
  36707. @return available physical memory size bytes.]]>
  36708. </doc>
  36709. </method>
  36710. <method name="getNumProcessors" return="int"
  36711. abstract="true" native="false" synchronized="false"
  36712. static="false" final="false" visibility="public"
  36713. deprecated="not deprecated">
  36714. <doc>
  36715. <![CDATA[Obtain the total number of logical processors present on the system.
  36716. @return number of logical processors]]>
  36717. </doc>
  36718. </method>
  36719. <method name="getNumCores" return="int"
  36720. abstract="true" native="false" synchronized="false"
  36721. static="false" final="false" visibility="public"
  36722. deprecated="not deprecated">
  36723. <doc>
  36724. <![CDATA[Obtain total number of physical cores present on the system.
  36725. @return number of physical cores]]>
  36726. </doc>
  36727. </method>
  36728. <method name="getCpuFrequency" return="long"
  36729. abstract="true" native="false" synchronized="false"
  36730. static="false" final="false" visibility="public"
  36731. deprecated="not deprecated">
  36732. <doc>
  36733. <![CDATA[Obtain the CPU frequency of on the system.
  36734. @return CPU frequency in kHz]]>
  36735. </doc>
  36736. </method>
  36737. <method name="getCumulativeCpuTime" return="long"
  36738. abstract="true" native="false" synchronized="false"
  36739. static="false" final="false" visibility="public"
  36740. deprecated="not deprecated">
  36741. <doc>
  36742. <![CDATA[Obtain the cumulative CPU time since the system is on.
  36743. @return cumulative CPU time in milliseconds]]>
  36744. </doc>
  36745. </method>
  36746. <method name="getCpuUsagePercentage" return="float"
  36747. abstract="true" native="false" synchronized="false"
  36748. static="false" final="false" visibility="public"
  36749. deprecated="not deprecated">
  36750. <doc>
  36751. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  36752. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  36753. </doc>
  36754. </method>
  36755. <method name="getNumVCoresUsed" return="float"
  36756. abstract="true" native="false" synchronized="false"
  36757. static="false" final="false" visibility="public"
  36758. deprecated="not deprecated">
  36759. <doc>
  36760. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  36761. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  36762. </doc>
  36763. </method>
  36764. <method name="getNetworkBytesRead" return="long"
  36765. abstract="true" native="false" synchronized="false"
  36766. static="false" final="false" visibility="public"
  36767. deprecated="not deprecated">
  36768. <doc>
  36769. <![CDATA[Obtain the aggregated number of bytes read over the network.
  36770. @return total number of bytes read.]]>
  36771. </doc>
  36772. </method>
  36773. <method name="getNetworkBytesWritten" return="long"
  36774. abstract="true" native="false" synchronized="false"
  36775. static="false" final="false" visibility="public"
  36776. deprecated="not deprecated">
  36777. <doc>
  36778. <![CDATA[Obtain the aggregated number of bytes written to the network.
  36779. @return total number of bytes written.]]>
  36780. </doc>
  36781. </method>
  36782. <method name="getStorageBytesRead" return="long"
  36783. abstract="true" native="false" synchronized="false"
  36784. static="false" final="false" visibility="public"
  36785. deprecated="not deprecated">
  36786. <doc>
  36787. <![CDATA[Obtain the aggregated number of bytes read from disks.
  36788. @return total number of bytes read.]]>
  36789. </doc>
  36790. </method>
  36791. <method name="getStorageBytesWritten" return="long"
  36792. abstract="true" native="false" synchronized="false"
  36793. static="false" final="false" visibility="public"
  36794. deprecated="not deprecated">
  36795. <doc>
  36796. <![CDATA[Obtain the aggregated number of bytes written to disks.
  36797. @return total number of bytes written.]]>
  36798. </doc>
  36799. </method>
  36800. <doc>
  36801. <![CDATA[Plugin to calculate resource information on the system.]]>
  36802. </doc>
  36803. </class>
  36804. <!-- end class org.apache.hadoop.util.SysInfo -->
  36805. <!-- start interface org.apache.hadoop.util.Tool -->
  36806. <interface name="Tool" abstract="true"
  36807. static="false" final="false" visibility="public"
  36808. deprecated="not deprecated">
  36809. <implements name="org.apache.hadoop.conf.Configurable"/>
  36810. <method name="run" return="int"
  36811. abstract="true" native="false" synchronized="false"
  36812. static="false" final="false" visibility="public"
  36813. deprecated="not deprecated">
  36814. <param name="args" type="java.lang.String[]"/>
  36815. <exception name="Exception" type="java.lang.Exception"/>
  36816. <doc>
  36817. <![CDATA[Execute the command with the given arguments.
  36818. @param args command specific arguments.
  36819. @return exit code.
  36820. @throws Exception]]>
  36821. </doc>
  36822. </method>
  36823. <doc>
  36824. <![CDATA[A tool interface that supports handling of generic command-line options.
  36825. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  36826. The tool/application should delegate the handling of
  36827. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  36828. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  36829. and only handle its custom arguments.</p>
  36830. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  36831. <p><blockquote><pre>
  36832. public class MyApp extends Configured implements Tool {
  36833. public int run(String[] args) throws Exception {
  36834. // <code>Configuration</code> processed by <code>ToolRunner</code>
  36835. Configuration conf = getConf();
  36836. // Create a JobConf using the processed <code>conf</code>
  36837. JobConf job = new JobConf(conf, MyApp.class);
  36838. // Process custom command-line options
  36839. Path in = new Path(args[1]);
  36840. Path out = new Path(args[2]);
  36841. // Specify various job-specific parameters
  36842. job.setJobName("my-app");
  36843. job.setInputPath(in);
  36844. job.setOutputPath(out);
  36845. job.setMapperClass(MyMapper.class);
  36846. job.setReducerClass(MyReducer.class);
  36847. // Submit the job, then poll for progress until the job is complete
  36848. RunningJob runningJob = JobClient.runJob(job);
  36849. if (runningJob.isSuccessful()) {
  36850. return 0;
  36851. } else {
  36852. return 1;
  36853. }
  36854. }
  36855. public static void main(String[] args) throws Exception {
  36856. // Let <code>ToolRunner</code> handle generic command-line options
  36857. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  36858. System.exit(res);
  36859. }
  36860. }
  36861. </pre></blockquote><p>
  36862. @see GenericOptionsParser
  36863. @see ToolRunner]]>
  36864. </doc>
  36865. </interface>
  36866. <!-- end interface org.apache.hadoop.util.Tool -->
  36867. <!-- start class org.apache.hadoop.util.ToolRunner -->
  36868. <class name="ToolRunner" extends="java.lang.Object"
  36869. abstract="false"
  36870. static="false" final="false" visibility="public"
  36871. deprecated="not deprecated">
  36872. <constructor name="ToolRunner"
  36873. static="false" final="false" visibility="public"
  36874. deprecated="not deprecated">
  36875. </constructor>
  36876. <method name="run" return="int"
  36877. abstract="false" native="false" synchronized="false"
  36878. static="true" final="false" visibility="public"
  36879. deprecated="not deprecated">
  36880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36881. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  36882. <param name="args" type="java.lang.String[]"/>
  36883. <exception name="Exception" type="java.lang.Exception"/>
  36884. <doc>
  36885. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  36886. parsing with the given generic arguments. Uses the given
  36887. <code>Configuration</code>, or builds one if null.
  36888. Sets the <code>Tool</code>'s configuration with the possibly modified
  36889. version of the <code>conf</code>.
  36890. @param conf <code>Configuration</code> for the <code>Tool</code>.
  36891. @param tool <code>Tool</code> to run.
  36892. @param args command-line arguments to the tool.
  36893. @return exit code of the {@link Tool#run(String[])} method.]]>
  36894. </doc>
  36895. </method>
  36896. <method name="run" return="int"
  36897. abstract="false" native="false" synchronized="false"
  36898. static="true" final="false" visibility="public"
  36899. deprecated="not deprecated">
  36900. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  36901. <param name="args" type="java.lang.String[]"/>
  36902. <exception name="Exception" type="java.lang.Exception"/>
  36903. <doc>
  36904. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  36905. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  36906. @param tool <code>Tool</code> to run.
  36907. @param args command-line arguments to the tool.
  36908. @return exit code of the {@link Tool#run(String[])} method.]]>
  36909. </doc>
  36910. </method>
  36911. <method name="printGenericCommandUsage"
  36912. abstract="false" native="false" synchronized="false"
  36913. static="true" final="false" visibility="public"
  36914. deprecated="not deprecated">
  36915. <param name="out" type="java.io.PrintStream"/>
  36916. <doc>
  36917. <![CDATA[Prints generic command-line argurments and usage information.
  36918. @param out stream to write usage information to.]]>
  36919. </doc>
  36920. </method>
  36921. <method name="confirmPrompt" return="boolean"
  36922. abstract="false" native="false" synchronized="false"
  36923. static="true" final="false" visibility="public"
  36924. deprecated="not deprecated">
  36925. <param name="prompt" type="java.lang.String"/>
  36926. <exception name="IOException" type="java.io.IOException"/>
  36927. <doc>
  36928. <![CDATA[Print out a prompt to the user, and return true if the user
  36929. responds with "y" or "yes". (case insensitive)]]>
  36930. </doc>
  36931. </method>
  36932. <doc>
  36933. <![CDATA[A utility to help run {@link Tool}s.
  36934. <p><code>ToolRunner</code> can be used to run classes implementing
  36935. <code>Tool</code> interface. It works in conjunction with
  36936. {@link GenericOptionsParser} to parse the
  36937. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  36938. generic hadoop command line arguments</a> and modifies the
  36939. <code>Configuration</code> of the <code>Tool</code>. The
  36940. application-specific options are passed along without being modified.
  36941. </p>
  36942. @see Tool
  36943. @see GenericOptionsParser]]>
  36944. </doc>
  36945. </class>
  36946. <!-- end class org.apache.hadoop.util.ToolRunner -->
  36947. <!-- start class org.apache.hadoop.util.VersionInfo -->
  36948. <class name="VersionInfo" extends="java.lang.Object"
  36949. abstract="false"
  36950. static="false" final="false" visibility="public"
  36951. deprecated="not deprecated">
  36952. <constructor name="VersionInfo" type="java.lang.String"
  36953. static="false" final="false" visibility="protected"
  36954. deprecated="not deprecated">
  36955. </constructor>
  36956. <method name="_getVersion" return="java.lang.String"
  36957. abstract="false" native="false" synchronized="false"
  36958. static="false" final="false" visibility="protected"
  36959. deprecated="not deprecated">
  36960. </method>
  36961. <method name="_getRevision" return="java.lang.String"
  36962. abstract="false" native="false" synchronized="false"
  36963. static="false" final="false" visibility="protected"
  36964. deprecated="not deprecated">
  36965. </method>
  36966. <method name="_getBranch" return="java.lang.String"
  36967. abstract="false" native="false" synchronized="false"
  36968. static="false" final="false" visibility="protected"
  36969. deprecated="not deprecated">
  36970. </method>
  36971. <method name="_getDate" return="java.lang.String"
  36972. abstract="false" native="false" synchronized="false"
  36973. static="false" final="false" visibility="protected"
  36974. deprecated="not deprecated">
  36975. </method>
  36976. <method name="_getUser" return="java.lang.String"
  36977. abstract="false" native="false" synchronized="false"
  36978. static="false" final="false" visibility="protected"
  36979. deprecated="not deprecated">
  36980. </method>
  36981. <method name="_getUrl" return="java.lang.String"
  36982. abstract="false" native="false" synchronized="false"
  36983. static="false" final="false" visibility="protected"
  36984. deprecated="not deprecated">
  36985. </method>
  36986. <method name="_getSrcChecksum" return="java.lang.String"
  36987. abstract="false" native="false" synchronized="false"
  36988. static="false" final="false" visibility="protected"
  36989. deprecated="not deprecated">
  36990. </method>
  36991. <method name="_getBuildVersion" return="java.lang.String"
  36992. abstract="false" native="false" synchronized="false"
  36993. static="false" final="false" visibility="protected"
  36994. deprecated="not deprecated">
  36995. </method>
  36996. <method name="_getProtocVersion" return="java.lang.String"
  36997. abstract="false" native="false" synchronized="false"
  36998. static="false" final="false" visibility="protected"
  36999. deprecated="not deprecated">
  37000. </method>
  37001. <method name="getVersion" return="java.lang.String"
  37002. abstract="false" native="false" synchronized="false"
  37003. static="true" final="false" visibility="public"
  37004. deprecated="not deprecated">
  37005. <doc>
  37006. <![CDATA[Get the Hadoop version.
  37007. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  37008. </doc>
  37009. </method>
  37010. <method name="getRevision" return="java.lang.String"
  37011. abstract="false" native="false" synchronized="false"
  37012. static="true" final="false" visibility="public"
  37013. deprecated="not deprecated">
  37014. <doc>
  37015. <![CDATA[Get the Git commit hash of the repository when compiled.
  37016. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  37017. </doc>
  37018. </method>
  37019. <method name="getBranch" return="java.lang.String"
  37020. abstract="false" native="false" synchronized="false"
  37021. static="true" final="false" visibility="public"
  37022. deprecated="not deprecated">
  37023. <doc>
  37024. <![CDATA[Get the branch on which this originated.
  37025. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  37026. </doc>
  37027. </method>
  37028. <method name="getDate" return="java.lang.String"
  37029. abstract="false" native="false" synchronized="false"
  37030. static="true" final="false" visibility="public"
  37031. deprecated="not deprecated">
  37032. <doc>
  37033. <![CDATA[The date that Hadoop was compiled.
  37034. @return the compilation date in unix date format]]>
  37035. </doc>
  37036. </method>
  37037. <method name="getUser" return="java.lang.String"
  37038. abstract="false" native="false" synchronized="false"
  37039. static="true" final="false" visibility="public"
  37040. deprecated="not deprecated">
  37041. <doc>
  37042. <![CDATA[The user that compiled Hadoop.
  37043. @return the username of the user]]>
  37044. </doc>
  37045. </method>
  37046. <method name="getUrl" return="java.lang.String"
  37047. abstract="false" native="false" synchronized="false"
  37048. static="true" final="false" visibility="public"
  37049. deprecated="not deprecated">
  37050. <doc>
  37051. <![CDATA[Get the URL for the Hadoop repository.
  37052. @return the URL of the Hadoop repository]]>
  37053. </doc>
  37054. </method>
  37055. <method name="getSrcChecksum" return="java.lang.String"
  37056. abstract="false" native="false" synchronized="false"
  37057. static="true" final="false" visibility="public"
  37058. deprecated="not deprecated">
  37059. <doc>
  37060. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  37061. @return the checksum of the source files]]>
  37062. </doc>
  37063. </method>
  37064. <method name="getBuildVersion" return="java.lang.String"
  37065. abstract="false" native="false" synchronized="false"
  37066. static="true" final="false" visibility="public"
  37067. deprecated="not deprecated">
  37068. <doc>
  37069. <![CDATA[Returns the buildVersion which includes version,
  37070. revision, user and date.
  37071. @return the buildVersion]]>
  37072. </doc>
  37073. </method>
  37074. <method name="getProtocVersion" return="java.lang.String"
  37075. abstract="false" native="false" synchronized="false"
  37076. static="true" final="false" visibility="public"
  37077. deprecated="not deprecated">
  37078. <doc>
  37079. <![CDATA[Returns the protoc version used for the build.
  37080. @return the protoc version]]>
  37081. </doc>
  37082. </method>
  37083. <method name="main"
  37084. abstract="false" native="false" synchronized="false"
  37085. static="true" final="false" visibility="public"
  37086. deprecated="not deprecated">
  37087. <param name="args" type="java.lang.String[]"/>
  37088. </method>
  37089. <doc>
  37090. <![CDATA[This class returns build information about Hadoop components.]]>
  37091. </doc>
  37092. </class>
  37093. <!-- end class org.apache.hadoop.util.VersionInfo -->
  37094. <doc>
  37095. <![CDATA[Common utilities.]]>
  37096. </doc>
  37097. </package>
  37098. <package name="org.apache.hadoop.util.bloom">
  37099. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  37100. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  37101. abstract="false"
  37102. static="false" final="false" visibility="public"
  37103. deprecated="not deprecated">
  37104. <constructor name="BloomFilter"
  37105. static="false" final="false" visibility="public"
  37106. deprecated="not deprecated">
  37107. <doc>
  37108. <![CDATA[Default constructor - use with readFields]]>
  37109. </doc>
  37110. </constructor>
  37111. <constructor name="BloomFilter" type="int, int, int"
  37112. static="false" final="false" visibility="public"
  37113. deprecated="not deprecated">
  37114. <doc>
  37115. <![CDATA[Constructor
  37116. @param vectorSize The vector size of <i>this</i> filter.
  37117. @param nbHash The number of hash function to consider.
  37118. @param hashType type of the hashing function (see
  37119. {@link org.apache.hadoop.util.hash.Hash}).]]>
  37120. </doc>
  37121. </constructor>
  37122. <method name="add"
  37123. abstract="false" native="false" synchronized="false"
  37124. static="false" final="false" visibility="public"
  37125. deprecated="not deprecated">
  37126. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37127. </method>
  37128. <method name="and"
  37129. abstract="false" native="false" synchronized="false"
  37130. static="false" final="false" visibility="public"
  37131. deprecated="not deprecated">
  37132. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37133. </method>
  37134. <method name="membershipTest" return="boolean"
  37135. abstract="false" native="false" synchronized="false"
  37136. static="false" final="false" visibility="public"
  37137. deprecated="not deprecated">
  37138. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37139. </method>
  37140. <method name="not"
  37141. abstract="false" native="false" synchronized="false"
  37142. static="false" final="false" visibility="public"
  37143. deprecated="not deprecated">
  37144. </method>
  37145. <method name="or"
  37146. abstract="false" native="false" synchronized="false"
  37147. static="false" final="false" visibility="public"
  37148. deprecated="not deprecated">
  37149. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37150. </method>
  37151. <method name="xor"
  37152. abstract="false" native="false" synchronized="false"
  37153. static="false" final="false" visibility="public"
  37154. deprecated="not deprecated">
  37155. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37156. </method>
  37157. <method name="toString" return="java.lang.String"
  37158. abstract="false" native="false" synchronized="false"
  37159. static="false" final="false" visibility="public"
  37160. deprecated="not deprecated">
  37161. </method>
  37162. <method name="getVectorSize" return="int"
  37163. abstract="false" native="false" synchronized="false"
  37164. static="false" final="false" visibility="public"
  37165. deprecated="not deprecated">
  37166. <doc>
  37167. <![CDATA[@return size of the the bloomfilter]]>
  37168. </doc>
  37169. </method>
  37170. <method name="write"
  37171. abstract="false" native="false" synchronized="false"
  37172. static="false" final="false" visibility="public"
  37173. deprecated="not deprecated">
  37174. <param name="out" type="java.io.DataOutput"/>
  37175. <exception name="IOException" type="java.io.IOException"/>
  37176. </method>
  37177. <method name="readFields"
  37178. abstract="false" native="false" synchronized="false"
  37179. static="false" final="false" visibility="public"
  37180. deprecated="not deprecated">
  37181. <param name="in" type="java.io.DataInput"/>
  37182. <exception name="IOException" type="java.io.IOException"/>
  37183. </method>
  37184. <doc>
  37185. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  37186. <p>
  37187. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  37188. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  37189. offers for the transmission of set membership information between networked hosts. A sender encodes
  37190. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  37191. representation. Computation and space costs for construction are linear in the number of elements.
  37192. The receiver uses the filter to test whether various elements are members of the set. Though the
  37193. filter will occasionally return a false positive, it will never return a false negative. When creating
  37194. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  37195. <p>
  37196. Originally created by
  37197. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  37198. @see Filter The general behavior of a filter
  37199. @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>]]>
  37200. </doc>
  37201. </class>
  37202. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  37203. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  37204. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  37205. abstract="false"
  37206. static="false" final="true" visibility="public"
  37207. deprecated="not deprecated">
  37208. <constructor name="CountingBloomFilter"
  37209. static="false" final="false" visibility="public"
  37210. deprecated="not deprecated">
  37211. <doc>
  37212. <![CDATA[Default constructor - use with readFields]]>
  37213. </doc>
  37214. </constructor>
  37215. <constructor name="CountingBloomFilter" type="int, int, int"
  37216. static="false" final="false" visibility="public"
  37217. deprecated="not deprecated">
  37218. <doc>
  37219. <![CDATA[Constructor
  37220. @param vectorSize The vector size of <i>this</i> filter.
  37221. @param nbHash The number of hash function to consider.
  37222. @param hashType type of the hashing function (see
  37223. {@link org.apache.hadoop.util.hash.Hash}).]]>
  37224. </doc>
  37225. </constructor>
  37226. <method name="add"
  37227. abstract="false" native="false" synchronized="false"
  37228. static="false" final="false" visibility="public"
  37229. deprecated="not deprecated">
  37230. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37231. </method>
  37232. <method name="delete"
  37233. abstract="false" native="false" synchronized="false"
  37234. static="false" final="false" visibility="public"
  37235. deprecated="not deprecated">
  37236. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37237. <doc>
  37238. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  37239. <p>
  37240. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  37241. @param key The key to remove.]]>
  37242. </doc>
  37243. </method>
  37244. <method name="and"
  37245. abstract="false" native="false" synchronized="false"
  37246. static="false" final="false" visibility="public"
  37247. deprecated="not deprecated">
  37248. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37249. </method>
  37250. <method name="membershipTest" return="boolean"
  37251. abstract="false" native="false" synchronized="false"
  37252. static="false" final="false" visibility="public"
  37253. deprecated="not deprecated">
  37254. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37255. </method>
  37256. <method name="approximateCount" return="int"
  37257. abstract="false" native="false" synchronized="false"
  37258. static="false" final="false" visibility="public"
  37259. deprecated="not deprecated">
  37260. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37261. <doc>
  37262. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  37263. times the key was added to the filter. This allows the filter to be
  37264. used as an approximate <code>key -&gt; count</code> map.
  37265. <p>NOTE: due to the bucket size of this filter, inserting the same
  37266. key more than 15 times will cause an overflow at all filter positions
  37267. associated with this key, and it will significantly increase the error
  37268. rate for this and other keys. For this reason the filter can only be
  37269. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  37270. @param key key to be tested
  37271. @return 0 if the key is not present. Otherwise, a positive value v will
  37272. be returned such that <code>v == count</code> with probability equal to the
  37273. error rate of this filter, and <code>v &gt; count</code> otherwise.
  37274. Additionally, if the filter experienced an underflow as a result of
  37275. {@link #delete(Key)} operation, the return value may be lower than the
  37276. <code>count</code> with the probability of the false negative rate of such
  37277. filter.]]>
  37278. </doc>
  37279. </method>
  37280. <method name="not"
  37281. abstract="false" native="false" synchronized="false"
  37282. static="false" final="false" visibility="public"
  37283. deprecated="not deprecated">
  37284. </method>
  37285. <method name="or"
  37286. abstract="false" native="false" synchronized="false"
  37287. static="false" final="false" visibility="public"
  37288. deprecated="not deprecated">
  37289. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37290. </method>
  37291. <method name="xor"
  37292. abstract="false" native="false" synchronized="false"
  37293. static="false" final="false" visibility="public"
  37294. deprecated="not deprecated">
  37295. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37296. </method>
  37297. <method name="toString" return="java.lang.String"
  37298. abstract="false" native="false" synchronized="false"
  37299. static="false" final="false" visibility="public"
  37300. deprecated="not deprecated">
  37301. </method>
  37302. <method name="write"
  37303. abstract="false" native="false" synchronized="false"
  37304. static="false" final="false" visibility="public"
  37305. deprecated="not deprecated">
  37306. <param name="out" type="java.io.DataOutput"/>
  37307. <exception name="IOException" type="java.io.IOException"/>
  37308. </method>
  37309. <method name="readFields"
  37310. abstract="false" native="false" synchronized="false"
  37311. static="false" final="false" visibility="public"
  37312. deprecated="not deprecated">
  37313. <param name="in" type="java.io.DataInput"/>
  37314. <exception name="IOException" type="java.io.IOException"/>
  37315. </method>
  37316. <doc>
  37317. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  37318. 2000 paper.
  37319. <p>
  37320. A counting Bloom filter is an improvement to standard a Bloom filter as it
  37321. allows dynamic additions and deletions of set membership information. This
  37322. is achieved through the use of a counting vector instead of a bit vector.
  37323. <p>
  37324. Originally created by
  37325. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  37326. @see Filter The general behavior of a filter
  37327. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  37328. </doc>
  37329. </class>
  37330. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  37331. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  37332. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  37333. abstract="false"
  37334. static="false" final="false" visibility="public"
  37335. deprecated="not deprecated">
  37336. <constructor name="DynamicBloomFilter"
  37337. static="false" final="false" visibility="public"
  37338. deprecated="not deprecated">
  37339. <doc>
  37340. <![CDATA[Zero-args constructor for the serialization.]]>
  37341. </doc>
  37342. </constructor>
  37343. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  37344. static="false" final="false" visibility="public"
  37345. deprecated="not deprecated">
  37346. <doc>
  37347. <![CDATA[Constructor.
  37348. <p>
  37349. Builds an empty Dynamic Bloom filter.
  37350. @param vectorSize The number of bits in the vector.
  37351. @param nbHash The number of hash function to consider.
  37352. @param hashType type of the hashing function (see
  37353. {@link org.apache.hadoop.util.hash.Hash}).
  37354. @param nr The threshold for the maximum number of keys to record in a
  37355. dynamic Bloom filter row.]]>
  37356. </doc>
  37357. </constructor>
  37358. <method name="add"
  37359. abstract="false" native="false" synchronized="false"
  37360. static="false" final="false" visibility="public"
  37361. deprecated="not deprecated">
  37362. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37363. </method>
  37364. <method name="and"
  37365. abstract="false" native="false" synchronized="false"
  37366. static="false" final="false" visibility="public"
  37367. deprecated="not deprecated">
  37368. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37369. </method>
  37370. <method name="membershipTest" return="boolean"
  37371. abstract="false" native="false" synchronized="false"
  37372. static="false" final="false" visibility="public"
  37373. deprecated="not deprecated">
  37374. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37375. </method>
  37376. <method name="not"
  37377. abstract="false" native="false" synchronized="false"
  37378. static="false" final="false" visibility="public"
  37379. deprecated="not deprecated">
  37380. </method>
  37381. <method name="or"
  37382. abstract="false" native="false" synchronized="false"
  37383. static="false" final="false" visibility="public"
  37384. deprecated="not deprecated">
  37385. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37386. </method>
  37387. <method name="xor"
  37388. abstract="false" native="false" synchronized="false"
  37389. static="false" final="false" visibility="public"
  37390. deprecated="not deprecated">
  37391. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  37392. </method>
  37393. <method name="toString" return="java.lang.String"
  37394. abstract="false" native="false" synchronized="false"
  37395. static="false" final="false" visibility="public"
  37396. deprecated="not deprecated">
  37397. </method>
  37398. <method name="write"
  37399. abstract="false" native="false" synchronized="false"
  37400. static="false" final="false" visibility="public"
  37401. deprecated="not deprecated">
  37402. <param name="out" type="java.io.DataOutput"/>
  37403. <exception name="IOException" type="java.io.IOException"/>
  37404. </method>
  37405. <method name="readFields"
  37406. abstract="false" native="false" synchronized="false"
  37407. static="false" final="false" visibility="public"
  37408. deprecated="not deprecated">
  37409. <param name="in" type="java.io.DataInput"/>
  37410. <exception name="IOException" type="java.io.IOException"/>
  37411. </method>
  37412. <doc>
  37413. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  37414. <p>
  37415. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  37416. each of the <code>s</code> rows is a standard Bloom filter. The creation
  37417. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  37418. bit matrix, i.e., it is composed of a single standard Bloom filter.
  37419. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  37420. initial bit vector, where <code>n<sub>r</sub> {@literal <=} n</code>
  37421. (<code>n</code> is the cardinality of the set <code>A</code> to record in
  37422. the filter).
  37423. <p>
  37424. As the size of <code>A</code> grows during the execution of the application,
  37425. several keys must be inserted in the DBF. When inserting a key into the DBF,
  37426. one must first get an active Bloom filter in the matrix. A Bloom filter is
  37427. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  37428. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  37429. If an active Bloom filter is found, the key is inserted and
  37430. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  37431. is no active Bloom filter, a new one is created (i.e., a new row is added to
  37432. the matrix) according to the current size of <code>A</code> and the element
  37433. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  37434. this new Bloom filter is set to one. A given key is said to belong to the
  37435. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  37436. <p>
  37437. Originally created by
  37438. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  37439. @see Filter The general behavior of a filter
  37440. @see BloomFilter A Bloom filter
  37441. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  37442. </doc>
  37443. </class>
  37444. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  37445. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  37446. <class name="HashFunction" extends="java.lang.Object"
  37447. abstract="false"
  37448. static="false" final="true" visibility="public"
  37449. deprecated="not deprecated">
  37450. <constructor name="HashFunction" type="int, int, int"
  37451. static="false" final="false" visibility="public"
  37452. deprecated="not deprecated">
  37453. <doc>
  37454. <![CDATA[Constructor.
  37455. <p>
  37456. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  37457. @param maxValue The maximum highest returned value.
  37458. @param nbHash The number of resulting hashed values.
  37459. @param hashType type of the hashing function (see {@link Hash}).]]>
  37460. </doc>
  37461. </constructor>
  37462. <method name="clear"
  37463. abstract="false" native="false" synchronized="false"
  37464. static="false" final="false" visibility="public"
  37465. deprecated="not deprecated">
  37466. <doc>
  37467. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  37468. </doc>
  37469. </method>
  37470. <method name="hash" return="int[]"
  37471. abstract="false" native="false" synchronized="false"
  37472. static="false" final="false" visibility="public"
  37473. deprecated="not deprecated">
  37474. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  37475. <doc>
  37476. <![CDATA[Hashes a specified key into several integers.
  37477. @param k The specified key.
  37478. @return The array of hashed values.]]>
  37479. </doc>
  37480. </method>
  37481. <doc>
  37482. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  37483. @see Key The general behavior of a key being stored in a filter
  37484. @see Filter The general behavior of a filter]]>
  37485. </doc>
  37486. </class>
  37487. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  37488. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  37489. <interface name="RemoveScheme" abstract="true"
  37490. static="false" final="false" visibility="public"
  37491. deprecated="not deprecated">
  37492. <field name="RANDOM" type="short"
  37493. transient="false" volatile="false"
  37494. static="true" final="true" visibility="public"
  37495. deprecated="not deprecated">
  37496. <doc>
  37497. <![CDATA[Random selection.
  37498. <p>
  37499. The idea is to randomly select a bit to reset.]]>
  37500. </doc>
  37501. </field>
  37502. <field name="MINIMUM_FN" type="short"
  37503. transient="false" volatile="false"
  37504. static="true" final="true" visibility="public"
  37505. deprecated="not deprecated">
  37506. <doc>
  37507. <![CDATA[MinimumFN Selection.
  37508. <p>
  37509. The idea is to select the bit to reset that will generate the minimum
  37510. number of false negative.]]>
  37511. </doc>
  37512. </field>
  37513. <field name="MAXIMUM_FP" type="short"
  37514. transient="false" volatile="false"
  37515. static="true" final="true" visibility="public"
  37516. deprecated="not deprecated">
  37517. <doc>
  37518. <![CDATA[MaximumFP Selection.
  37519. <p>
  37520. The idea is to select the bit to reset that will remove the maximum number
  37521. of false positive.]]>
  37522. </doc>
  37523. </field>
  37524. <field name="RATIO" type="short"
  37525. transient="false" volatile="false"
  37526. static="true" final="true" visibility="public"
  37527. deprecated="not deprecated">
  37528. <doc>
  37529. <![CDATA[Ratio Selection.
  37530. <p>
  37531. The idea is to select the bit to reset that will, at the same time, remove
  37532. the maximum number of false positve while minimizing the amount of false
  37533. negative generated.]]>
  37534. </doc>
  37535. </field>
  37536. <doc>
  37537. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  37538. <p>
  37539. Originally created by
  37540. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  37541. </doc>
  37542. </interface>
  37543. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  37544. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  37545. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  37546. abstract="false"
  37547. static="false" final="true" visibility="public"
  37548. deprecated="not deprecated">
  37549. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  37550. <constructor name="RetouchedBloomFilter"
  37551. static="false" final="false" visibility="public"
  37552. deprecated="not deprecated">
  37553. <doc>
  37554. <![CDATA[Default constructor - use with readFields]]>
  37555. </doc>
  37556. </constructor>
  37557. <constructor name="RetouchedBloomFilter" type="int, int, int"
  37558. static="false" final="false" visibility="public"
  37559. deprecated="not deprecated">
  37560. <doc>
  37561. <![CDATA[Constructor
  37562. @param vectorSize The vector size of <i>this</i> filter.
  37563. @param nbHash The number of hash function to consider.
  37564. @param hashType type of the hashing function (see
  37565. {@link org.apache.hadoop.util.hash.Hash}).]]>
  37566. </doc>
  37567. </constructor>
  37568. <method name="add"
  37569. abstract="false" native="false" synchronized="false"
  37570. static="false" final="false" visibility="public"
  37571. deprecated="not deprecated">
  37572. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37573. </method>
  37574. <method name="addFalsePositive"
  37575. abstract="false" native="false" synchronized="false"
  37576. static="false" final="false" visibility="public"
  37577. deprecated="not deprecated">
  37578. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37579. <doc>
  37580. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  37581. <p>
  37582. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  37583. @param key The false positive key to add.]]>
  37584. </doc>
  37585. </method>
  37586. <method name="addFalsePositive"
  37587. abstract="false" native="false" synchronized="false"
  37588. static="false" final="false" visibility="public"
  37589. deprecated="not deprecated">
  37590. <param name="coll" type="java.util.Collection"/>
  37591. <doc>
  37592. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  37593. @param coll The collection of false positive.]]>
  37594. </doc>
  37595. </method>
  37596. <method name="addFalsePositive"
  37597. abstract="false" native="false" synchronized="false"
  37598. static="false" final="false" visibility="public"
  37599. deprecated="not deprecated">
  37600. <param name="keys" type="java.util.List"/>
  37601. <doc>
  37602. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  37603. @param keys The list of false positive.]]>
  37604. </doc>
  37605. </method>
  37606. <method name="addFalsePositive"
  37607. abstract="false" native="false" synchronized="false"
  37608. static="false" final="false" visibility="public"
  37609. deprecated="not deprecated">
  37610. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  37611. <doc>
  37612. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  37613. @param keys The array of false positive.]]>
  37614. </doc>
  37615. </method>
  37616. <method name="selectiveClearing"
  37617. abstract="false" native="false" synchronized="false"
  37618. static="false" final="false" visibility="public"
  37619. deprecated="not deprecated">
  37620. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  37621. <param name="scheme" type="short"/>
  37622. <doc>
  37623. <![CDATA[Performs the selective clearing for a given key.
  37624. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  37625. @param scheme The selective clearing scheme to apply.]]>
  37626. </doc>
  37627. </method>
  37628. <method name="write"
  37629. abstract="false" native="false" synchronized="false"
  37630. static="false" final="false" visibility="public"
  37631. deprecated="not deprecated">
  37632. <param name="out" type="java.io.DataOutput"/>
  37633. <exception name="IOException" type="java.io.IOException"/>
  37634. </method>
  37635. <method name="readFields"
  37636. abstract="false" native="false" synchronized="false"
  37637. static="false" final="false" visibility="public"
  37638. deprecated="not deprecated">
  37639. <param name="in" type="java.io.DataInput"/>
  37640. <exception name="IOException" type="java.io.IOException"/>
  37641. </method>
  37642. <doc>
  37643. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  37644. <p>
  37645. It allows the removal of selected false positives at the cost of introducing
  37646. random false negatives, and with the benefit of eliminating some random false
  37647. positives at the same time.
  37648. <p>
  37649. Originally created by
  37650. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  37651. @see Filter The general behavior of a filter
  37652. @see BloomFilter A Bloom filter
  37653. @see RemoveScheme The different selective clearing algorithms
  37654. @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>]]>
  37655. </doc>
  37656. </class>
  37657. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  37658. </package>
  37659. <package name="org.apache.hadoop.util.curator">
  37660. </package>
  37661. <package name="org.apache.hadoop.util.functional">
  37662. <!-- start class org.apache.hadoop.util.functional.FutureIO -->
  37663. <class name="FutureIO" extends="java.lang.Object"
  37664. abstract="false"
  37665. static="false" final="true" visibility="public"
  37666. deprecated="not deprecated">
  37667. <method name="awaitFuture" return="T"
  37668. abstract="false" native="false" synchronized="false"
  37669. static="true" final="false" visibility="public"
  37670. deprecated="not deprecated">
  37671. <param name="future" type="java.util.concurrent.Future"/>
  37672. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  37673. <exception name="IOException" type="java.io.IOException"/>
  37674. <exception name="RuntimeException" type="java.lang.RuntimeException"/>
  37675. <doc>
  37676. <![CDATA[Given a future, evaluate it.
  37677. <p>
  37678. Any exception generated in the future is
  37679. extracted and rethrown.
  37680. </p>
  37681. @param future future to evaluate
  37682. @param <T> type of the result.
  37683. @return the result, if all went well.
  37684. @throws InterruptedIOException future was interrupted
  37685. @throws IOException if something went wrong
  37686. @throws RuntimeException any nested RTE thrown]]>
  37687. </doc>
  37688. </method>
  37689. <method name="awaitFuture" return="T"
  37690. abstract="false" native="false" synchronized="false"
  37691. static="true" final="false" visibility="public"
  37692. deprecated="not deprecated">
  37693. <param name="future" type="java.util.concurrent.Future"/>
  37694. <param name="timeout" type="long"/>
  37695. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  37696. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  37697. <exception name="IOException" type="java.io.IOException"/>
  37698. <exception name="RuntimeException" type="java.lang.RuntimeException"/>
  37699. <exception name="TimeoutException" type="java.util.concurrent.TimeoutException"/>
  37700. <doc>
  37701. <![CDATA[Given a future, evaluate it.
  37702. <p>
  37703. Any exception generated in the future is
  37704. extracted and rethrown.
  37705. </p>
  37706. @param future future to evaluate
  37707. @param <T> type of the result.
  37708. @return the result, if all went well.
  37709. @throws InterruptedIOException future was interrupted
  37710. @throws IOException if something went wrong
  37711. @throws RuntimeException any nested RTE thrown
  37712. @throws TimeoutException the future timed out.]]>
  37713. </doc>
  37714. </method>
  37715. <method name="raiseInnerCause" return="T"
  37716. abstract="false" native="false" synchronized="false"
  37717. static="true" final="false" visibility="public"
  37718. deprecated="not deprecated">
  37719. <param name="e" type="java.util.concurrent.ExecutionException"/>
  37720. <exception name="IOException" type="java.io.IOException"/>
  37721. <doc>
  37722. <![CDATA[From the inner cause of an execution exception, extract the inner cause
  37723. if it is an IOE or RTE.
  37724. This will always raise an exception, either the inner IOException,
  37725. an inner RuntimeException, or a new IOException wrapping the raised
  37726. exception.
  37727. @param e exception.
  37728. @param <T> type of return value.
  37729. @return nothing, ever.
  37730. @throws IOException either the inner IOException, or a wrapper around
  37731. any non-Runtime-Exception
  37732. @throws RuntimeException if that is the inner cause.]]>
  37733. </doc>
  37734. </method>
  37735. <method name="raiseInnerCause" return="T"
  37736. abstract="false" native="false" synchronized="false"
  37737. static="true" final="false" visibility="public"
  37738. deprecated="not deprecated">
  37739. <param name="e" type="java.util.concurrent.CompletionException"/>
  37740. <exception name="IOException" type="java.io.IOException"/>
  37741. <doc>
  37742. <![CDATA[Extract the cause of a completion failure and rethrow it if an IOE
  37743. or RTE.
  37744. @param e exception.
  37745. @param <T> type of return value.
  37746. @return nothing, ever.
  37747. @throws IOException either the inner IOException, or a wrapper around
  37748. any non-Runtime-Exception
  37749. @throws RuntimeException if that is the inner cause.]]>
  37750. </doc>
  37751. </method>
  37752. <method name="unwrapInnerException" return="java.io.IOException"
  37753. abstract="false" native="false" synchronized="false"
  37754. static="true" final="false" visibility="public"
  37755. deprecated="not deprecated">
  37756. <param name="e" type="java.lang.Throwable"/>
  37757. <doc>
  37758. <![CDATA[From the inner cause of an execution exception, extract the inner cause
  37759. to an IOException, raising RuntimeExceptions and Errors immediately.
  37760. <ol>
  37761. <li> If it is an IOE: Return.</li>
  37762. <li> If it is a {@link UncheckedIOException}: return the cause</li>
  37763. <li> Completion/Execution Exceptions: extract and repeat</li>
  37764. <li> If it is an RTE or Error: throw.</li>
  37765. <li> Any other type: wrap in an IOE</li>
  37766. </ol>
  37767. Recursively handles wrapped Execution and Completion Exceptions in
  37768. case something very complicated has happened.
  37769. @param e exception.
  37770. @return an IOException extracted or built from the cause.
  37771. @throws RuntimeException if that is the inner cause.
  37772. @throws Error if that is the inner cause.]]>
  37773. </doc>
  37774. </method>
  37775. <doc>
  37776. <![CDATA[Future IO Helper methods.
  37777. <p>
  37778. Contains methods promoted from
  37779. {@link org.apache.hadoop.fs.impl.FutureIOSupport} because they
  37780. are a key part of integrating async IO in application code.
  37781. </p>
  37782. <p>
  37783. One key feature is that the {@link #awaitFuture(Future)} and
  37784. {@link #awaitFuture(Future, long, TimeUnit)} calls will
  37785. extract and rethrow exceptions raised in the future's execution,
  37786. including extracting the inner IOException of any
  37787. {@code UncheckedIOException} raised in the future.
  37788. This makes it somewhat easier to execute IOException-raising
  37789. code inside futures.
  37790. </p>]]>
  37791. </doc>
  37792. </class>
  37793. <!-- end class org.apache.hadoop.util.functional.FutureIO -->
  37794. <!-- start class org.apache.hadoop.util.functional.RemoteIterators -->
  37795. <class name="RemoteIterators" extends="java.lang.Object"
  37796. abstract="false"
  37797. static="false" final="true" visibility="public"
  37798. deprecated="not deprecated">
  37799. <method name="remoteIteratorFromSingleton" return="org.apache.hadoop.fs.RemoteIterator"
  37800. abstract="false" native="false" synchronized="false"
  37801. static="true" final="false" visibility="public"
  37802. deprecated="not deprecated">
  37803. <param name="singleton" type="T"/>
  37804. <doc>
  37805. <![CDATA[Create an iterator from a singleton.
  37806. @param singleton instance
  37807. @param <T> type
  37808. @return a remote iterator]]>
  37809. </doc>
  37810. </method>
  37811. <method name="remoteIteratorFromIterator" return="org.apache.hadoop.fs.RemoteIterator"
  37812. abstract="false" native="false" synchronized="false"
  37813. static="true" final="false" visibility="public"
  37814. deprecated="not deprecated">
  37815. <param name="iterator" type="java.util.Iterator"/>
  37816. <doc>
  37817. <![CDATA[Create a remote iterator from a java.util.Iterator.
  37818. @param <T> type
  37819. @return a remote iterator]]>
  37820. </doc>
  37821. </method>
  37822. <method name="remoteIteratorFromIterable" return="org.apache.hadoop.fs.RemoteIterator"
  37823. abstract="false" native="false" synchronized="false"
  37824. static="true" final="false" visibility="public"
  37825. deprecated="not deprecated">
  37826. <param name="iterable" type="java.lang.Iterable"/>
  37827. <doc>
  37828. <![CDATA[Create a remote iterator from a java.util.Iterable -e.g. a list
  37829. or other collection.
  37830. @param <T> type
  37831. @return a remote iterator]]>
  37832. </doc>
  37833. </method>
  37834. <method name="remoteIteratorFromArray" return="org.apache.hadoop.fs.RemoteIterator"
  37835. abstract="false" native="false" synchronized="false"
  37836. static="true" final="false" visibility="public"
  37837. deprecated="not deprecated">
  37838. <param name="array" type="T[]"/>
  37839. <doc>
  37840. <![CDATA[Create a remote iterator from an array.
  37841. @param <T> type
  37842. @return a remote iterator]]>
  37843. </doc>
  37844. </method>
  37845. <method name="mappingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  37846. abstract="false" native="false" synchronized="false"
  37847. static="true" final="false" visibility="public"
  37848. deprecated="not deprecated">
  37849. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  37850. <param name="mapper" type="org.apache.hadoop.util.functional.FunctionRaisingIOE"/>
  37851. <doc>
  37852. <![CDATA[Create an iterator from an iterator and a transformation function.
  37853. @param <S> source type
  37854. @param <T> result type
  37855. @param iterator source
  37856. @param mapper transformation
  37857. @return a remote iterator]]>
  37858. </doc>
  37859. </method>
  37860. <method name="typeCastingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  37861. abstract="false" native="false" synchronized="false"
  37862. static="true" final="false" visibility="public"
  37863. deprecated="not deprecated">
  37864. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  37865. <doc>
  37866. <![CDATA[Create a RemoteIterator from a RemoteIterator, casting the
  37867. type in the process. This is to help with filesystem API
  37868. calls where overloading causes confusion (e.g. listStatusIterator())
  37869. @param <S> source type
  37870. @param <T> result type
  37871. @param iterator source
  37872. @return a remote iterator]]>
  37873. </doc>
  37874. </method>
  37875. <method name="filteringRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  37876. abstract="false" native="false" synchronized="false"
  37877. static="true" final="false" visibility="public"
  37878. deprecated="not deprecated">
  37879. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  37880. <param name="filter" type="org.apache.hadoop.util.functional.FunctionRaisingIOE"/>
  37881. <doc>
  37882. <![CDATA[Create a RemoteIterator from a RemoteIterator and a filter
  37883. function which returns true for every element to be passed
  37884. through.
  37885. <p></p>
  37886. Elements are filtered in the hasNext() method; if not used
  37887. the filtering will be done on demand in the {@code next()}
  37888. call.
  37889. @param <S> type
  37890. @param iterator source
  37891. @param filter filter
  37892. @return a remote iterator]]>
  37893. </doc>
  37894. </method>
  37895. <method name="closingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  37896. abstract="false" native="false" synchronized="false"
  37897. static="true" final="false" visibility="public"
  37898. deprecated="not deprecated">
  37899. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  37900. <param name="toClose" type="java.io.Closeable"/>
  37901. <doc>
  37902. <![CDATA[This adds an extra close operation alongside the passthrough
  37903. to any Closeable.close() method supported by the source iterator.
  37904. @param iterator source
  37905. @param toClose extra object to close.
  37906. @param <S> source type.
  37907. @return a new iterator]]>
  37908. </doc>
  37909. </method>
  37910. <method name="toList" return="java.util.List"
  37911. abstract="false" native="false" synchronized="false"
  37912. static="true" final="false" visibility="public"
  37913. deprecated="not deprecated">
  37914. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  37915. <exception name="IOException" type="java.io.IOException"/>
  37916. <doc>
  37917. <![CDATA[Build a list from a RemoteIterator.
  37918. @param source source iterator
  37919. @param <T> type
  37920. @return a list of the values.
  37921. @throws IOException if the source RemoteIterator raises it.]]>
  37922. </doc>
  37923. </method>
  37924. <method name="toArray" return="T[]"
  37925. abstract="false" native="false" synchronized="false"
  37926. static="true" final="false" visibility="public"
  37927. deprecated="not deprecated">
  37928. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  37929. <param name="a" type="T[]"/>
  37930. <exception name="IOException" type="java.io.IOException"/>
  37931. <doc>
  37932. <![CDATA[Build an array from a RemoteIterator.
  37933. @param source source iterator
  37934. @param a destination array; if too small a new array
  37935. of the same type is created
  37936. @param <T> type
  37937. @return an array of the values.
  37938. @throws IOException if the source RemoteIterator raises it.]]>
  37939. </doc>
  37940. </method>
  37941. <method name="foreach" return="long"
  37942. abstract="false" native="false" synchronized="false"
  37943. static="true" final="false" visibility="public"
  37944. deprecated="not deprecated">
  37945. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  37946. <param name="consumer" type="org.apache.hadoop.util.functional.ConsumerRaisingIOE"/>
  37947. <exception name="IOException" type="java.io.IOException"/>
  37948. <doc>
  37949. <![CDATA[Apply an operation to all values of a RemoteIterator.
  37950. <p></p>
  37951. If the iterator is an IOStatisticsSource returning a non-null
  37952. set of statistics, <i>and</i> this classes log is set to DEBUG,
  37953. then the statistics of the operation are evaluated and logged at
  37954. debug.
  37955. <p></p>
  37956. The number of entries processed is returned, as it is useful to
  37957. know this, especially during tests or when reporting values
  37958. to users.
  37959. <p></p>
  37960. This does not close the iterator afterwards.
  37961. @param source iterator source
  37962. @param consumer consumer of the values.
  37963. @return the number of elements processed
  37964. @param <T> type of source
  37965. @throws IOException if the source RemoteIterator or the consumer raise one.]]>
  37966. </doc>
  37967. </method>
  37968. <method name="cleanupRemoteIterator"
  37969. abstract="false" native="false" synchronized="false"
  37970. static="true" final="false" visibility="public"
  37971. deprecated="not deprecated">
  37972. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  37973. <doc>
  37974. <![CDATA[Clean up after an iteration.
  37975. If the log is at debug, calculate and log the IOStatistics.
  37976. If the iterator is closeable, cast and then cleanup the iterator
  37977. @param source iterator source
  37978. @param <T> type of source]]>
  37979. </doc>
  37980. </method>
  37981. <doc>
  37982. <![CDATA[A set of remote iterators supporting transformation and filtering,
  37983. with IOStatisticsSource passthrough, and of conversions of
  37984. the iterators to lists/arrays and of performing actions
  37985. on the values.
  37986. <p></p>
  37987. This aims to make it straightforward to use lambda-expressions to
  37988. transform the results of an iterator, without losing the statistics
  37989. in the process, and to chain the operations together.
  37990. <p></p>
  37991. The closeable operation will be passed through RemoteIterators which
  37992. wrap other RemoteIterators. This is to support any iterator which
  37993. can be closed to release held connections, file handles etc.
  37994. Unless client code is written to assume that RemoteIterator instances
  37995. may be closed, this is not likely to be broadly used. It is added
  37996. to make it possible to adopt this feature in a managed way.
  37997. <p></p>
  37998. One notable feature is that the
  37999. {@link #foreach(RemoteIterator, ConsumerRaisingIOE)} method will
  38000. LOG at debug any IOStatistics provided by the iterator, if such
  38001. statistics are provided. There's no attempt at retrieval and logging
  38002. if the LOG is not set to debug, so it is a zero cost feature unless
  38003. the logger {@code org.apache.hadoop.fs.functional.RemoteIterators}
  38004. is at DEBUG.
  38005. <p></p>
  38006. Based on the S3A Listing code, and some some work on moving other code
  38007. to using iterative listings so as to pick up the statistics.]]>
  38008. </doc>
  38009. </class>
  38010. <!-- end class org.apache.hadoop.util.functional.RemoteIterators -->
  38011. </package>
  38012. <package name="org.apache.hadoop.util.hash">
  38013. </package>
  38014. </api>