Apache_Hadoop_Common_3.3.5.xml 1.6 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Tue Mar 14 18:21:54 UTC 2023 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 3.3.5"
  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.5.jar:/usr/lib/jvm/java-8-openjdk-arm64/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.9.0/commons-net-3.9.0.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.48.v20220622/jetty-server-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-http/9.4.48.v20220622/jetty-http-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-io/9.4.48.v20220622/jetty-io-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-util/9.4.48.v20220622/jetty-util-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-servlet/9.4.48.v20220622/jetty-servlet-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-security/9.4.48.v20220622/jetty-security-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-webapp/9.4.48.v20220622/jetty-webapp-9.4.48.v20220622.jar:/maven/org/eclipse/jetty/jetty-xml/9.4.48.v20220622/jetty-xml-9.4.48.v20220622.jar:/maven/com/sun/jersey/jersey-core/1.19.4/jersey-core-1.19.4.jar:/maven/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/maven/com/sun/jersey/jersey-servlet/1.19.4/jersey-servlet-1.19.4.jar:/maven/com/github/pjfanning/jersey-json/1.20/jersey-json-1.20.jar:/maven/org/codehaus/jettison/jettison/1.5.3/jettison-1.5.3.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/com/sun/jersey/jersey-server/1.19.4/jersey-server-1.19.4.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/ch/qos/reload4j/reload4j/1.2.22/reload4j-1.2.22.jar:/maven/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/maven/org/apache/commons/commons-configuration2/2.8.0/commons-configuration2-2.8.0.jar:/maven/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/maven/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.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/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/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.9.0/gson-2.9.0.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.3.5.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.12.7.1/jackson-databind-2.12.7.1.jar:/maven/com/fasterxml/jackson/core/jackson-annotations/2.12.7/jackson-annotations-2.12.7.jar:/maven/com/fasterxml/jackson/core/jackson-core/2.12.7/jackson-core-2.12.7.jar:/maven/org/codehaus/woodstox/stax2-api/4.2.1/stax2-api-4.2.1.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.4.0/woodstox-core-5.4.0.jar:/maven/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar:/maven/org/wildfly/openssl/wildfly-openssl-java/1.1.3.Final/wildfly-openssl-java-1.1.3.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.2/xercesImpl-2.12.2.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.5 -->
  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. @return time duration in given time unit.]]>
  867. </doc>
  868. </method>
  869. <method name="getTimeDurations" return="long[]"
  870. abstract="false" native="false" synchronized="false"
  871. static="false" final="false" visibility="public"
  872. deprecated="not deprecated">
  873. <param name="name" type="java.lang.String"/>
  874. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  875. </method>
  876. <method name="getStorageSize" return="double"
  877. abstract="false" native="false" synchronized="false"
  878. static="false" final="false" visibility="public"
  879. deprecated="not deprecated">
  880. <param name="name" type="java.lang.String"/>
  881. <param name="defaultValue" type="java.lang.String"/>
  882. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  883. <doc>
  884. <![CDATA[Gets the Storage Size from the config, or returns the defaultValue. The
  885. unit of return value is specified in target unit.
  886. @param name - Key Name
  887. @param defaultValue - Default Value -- e.g. 100MB
  888. @param targetUnit - The units that we want result to be in.
  889. @return double -- formatted in target Units]]>
  890. </doc>
  891. </method>
  892. <method name="getStorageSize" return="double"
  893. abstract="false" native="false" synchronized="false"
  894. static="false" final="false" visibility="public"
  895. deprecated="not deprecated">
  896. <param name="name" type="java.lang.String"/>
  897. <param name="defaultValue" type="double"/>
  898. <param name="targetUnit" type="org.apache.hadoop.conf.StorageUnit"/>
  899. <doc>
  900. <![CDATA[Gets storage size from a config file.
  901. @param name - Key to read.
  902. @param defaultValue - The default value to return in case the key is
  903. not present.
  904. @param targetUnit - The Storage unit that should be used
  905. for the return value.
  906. @return - double value in the Storage Unit specified.]]>
  907. </doc>
  908. </method>
  909. <method name="setStorageSize"
  910. abstract="false" native="false" synchronized="false"
  911. static="false" final="false" visibility="public"
  912. deprecated="not deprecated">
  913. <param name="name" type="java.lang.String"/>
  914. <param name="value" type="double"/>
  915. <param name="unit" type="org.apache.hadoop.conf.StorageUnit"/>
  916. <doc>
  917. <![CDATA[Sets Storage Size for the specified key.
  918. @param name - Key to set.
  919. @param value - The numeric value to set.
  920. @param unit - Storage Unit to be used.]]>
  921. </doc>
  922. </method>
  923. <method name="getPattern" return="java.util.regex.Pattern"
  924. abstract="false" native="false" synchronized="false"
  925. static="false" final="false" visibility="public"
  926. deprecated="not deprecated">
  927. <param name="name" type="java.lang.String"/>
  928. <param name="defaultValue" type="java.util.regex.Pattern"/>
  929. <doc>
  930. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  931. If no such property is specified, or if the specified value is not a valid
  932. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  933. Note that the returned value is NOT trimmed by this method.
  934. @param name property name
  935. @param defaultValue default value
  936. @return property value as a compiled Pattern, or defaultValue]]>
  937. </doc>
  938. </method>
  939. <method name="setPattern"
  940. abstract="false" native="false" synchronized="false"
  941. static="false" final="false" visibility="public"
  942. deprecated="not deprecated">
  943. <param name="name" type="java.lang.String"/>
  944. <param name="pattern" type="java.util.regex.Pattern"/>
  945. <doc>
  946. <![CDATA[Set the given property to <code>Pattern</code>.
  947. If the pattern is passed as null, sets the empty pattern which results in
  948. further calls to getPattern(...) returning the default value.
  949. @param name property name
  950. @param pattern new value]]>
  951. </doc>
  952. </method>
  953. <method name="getPropertySources" return="java.lang.String[]"
  954. abstract="false" native="false" synchronized="true"
  955. static="false" final="false" visibility="public"
  956. deprecated="not deprecated">
  957. <param name="name" type="java.lang.String"/>
  958. <doc>
  959. <![CDATA[Gets information about why a property was set. Typically this is the
  960. path to the resource objects (file, URL, etc.) the property came from, but
  961. it can also indicate that it was set programmatically, or because of the
  962. command line.
  963. @param name - The property name to get the source of.
  964. @return null - If the property or its source wasn't found. Otherwise,
  965. returns a list of the sources of the resource. The older sources are
  966. the first ones in the list. So for example if a configuration is set from
  967. the command line, and then written out to a file that is read back in the
  968. first entry would indicate that it was set from the command line, while
  969. the second one would indicate the file that the new configuration was read
  970. in from.]]>
  971. </doc>
  972. </method>
  973. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  974. abstract="false" native="false" synchronized="false"
  975. static="false" final="false" visibility="public"
  976. deprecated="not deprecated">
  977. <param name="name" type="java.lang.String"/>
  978. <param name="defaultValue" type="java.lang.String"/>
  979. <doc>
  980. <![CDATA[Parse the given attribute as a set of integer ranges.
  981. @param name the attribute name
  982. @param defaultValue the default value if it is not set
  983. @return a new set of ranges from the configured value]]>
  984. </doc>
  985. </method>
  986. <method name="getStringCollection" return="java.util.Collection"
  987. abstract="false" native="false" synchronized="false"
  988. static="false" final="false" visibility="public"
  989. deprecated="not deprecated">
  990. <param name="name" type="java.lang.String"/>
  991. <doc>
  992. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  993. a collection of <code>String</code>s.
  994. If no such property is specified then empty collection is returned.
  995. <p>
  996. This is an optimized version of {@link #getStrings(String)}
  997. @param name property name.
  998. @return property value as a collection of <code>String</code>s.]]>
  999. </doc>
  1000. </method>
  1001. <method name="getStrings" return="java.lang.String[]"
  1002. abstract="false" native="false" synchronized="false"
  1003. static="false" final="false" visibility="public"
  1004. deprecated="not deprecated">
  1005. <param name="name" type="java.lang.String"/>
  1006. <doc>
  1007. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1008. an array of <code>String</code>s.
  1009. If no such property is specified then <code>null</code> is returned.
  1010. @param name property name.
  1011. @return property value as an array of <code>String</code>s,
  1012. or <code>null</code>.]]>
  1013. </doc>
  1014. </method>
  1015. <method name="getStrings" return="java.lang.String[]"
  1016. abstract="false" native="false" synchronized="false"
  1017. static="false" final="false" visibility="public"
  1018. deprecated="not deprecated">
  1019. <param name="name" type="java.lang.String"/>
  1020. <param name="defaultValue" type="java.lang.String[]"/>
  1021. <doc>
  1022. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1023. an array of <code>String</code>s.
  1024. If no such property is specified then default value is returned.
  1025. @param name property name.
  1026. @param defaultValue The default value
  1027. @return property value as an array of <code>String</code>s,
  1028. or default value.]]>
  1029. </doc>
  1030. </method>
  1031. <method name="getTrimmedStringCollection" return="java.util.Collection"
  1032. abstract="false" native="false" synchronized="false"
  1033. static="false" final="false" visibility="public"
  1034. deprecated="not deprecated">
  1035. <param name="name" type="java.lang.String"/>
  1036. <doc>
  1037. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1038. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1039. If no such property is specified then empty <code>Collection</code> is returned.
  1040. @param name property name.
  1041. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  1042. </doc>
  1043. </method>
  1044. <method name="getTrimmedStrings" return="java.lang.String[]"
  1045. abstract="false" native="false" synchronized="false"
  1046. static="false" final="false" visibility="public"
  1047. deprecated="not deprecated">
  1048. <param name="name" type="java.lang.String"/>
  1049. <doc>
  1050. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1051. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1052. If no such property is specified then an empty array is returned.
  1053. @param name property name.
  1054. @return property value as an array of trimmed <code>String</code>s,
  1055. or empty array.]]>
  1056. </doc>
  1057. </method>
  1058. <method name="getTrimmedStrings" return="java.lang.String[]"
  1059. abstract="false" native="false" synchronized="false"
  1060. static="false" final="false" visibility="public"
  1061. deprecated="not deprecated">
  1062. <param name="name" type="java.lang.String"/>
  1063. <param name="defaultValue" type="java.lang.String[]"/>
  1064. <doc>
  1065. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  1066. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  1067. If no such property is specified then default value is returned.
  1068. @param name property name.
  1069. @param defaultValue The default value
  1070. @return property value as an array of trimmed <code>String</code>s,
  1071. or default value.]]>
  1072. </doc>
  1073. </method>
  1074. <method name="setStrings"
  1075. abstract="false" native="false" synchronized="false"
  1076. static="false" final="false" visibility="public"
  1077. deprecated="not deprecated">
  1078. <param name="name" type="java.lang.String"/>
  1079. <param name="values" type="java.lang.String[]"/>
  1080. <doc>
  1081. <![CDATA[Set the array of string values for the <code>name</code> property as
  1082. as comma delimited values.
  1083. @param name property name.
  1084. @param values The values]]>
  1085. </doc>
  1086. </method>
  1087. <method name="getPassword" return="char[]"
  1088. abstract="false" native="false" synchronized="false"
  1089. static="false" final="false" visibility="public"
  1090. deprecated="not deprecated">
  1091. <param name="name" type="java.lang.String"/>
  1092. <exception name="IOException" type="java.io.IOException"/>
  1093. <doc>
  1094. <![CDATA[Get the value for a known password configuration element.
  1095. In order to enable the elimination of clear text passwords in config,
  1096. this method attempts to resolve the property name as an alias through
  1097. the CredentialProvider API and conditionally fallsback to config.
  1098. @param name property name
  1099. @return password
  1100. @throws IOException when error in fetching password]]>
  1101. </doc>
  1102. </method>
  1103. <method name="getPasswordFromCredentialProviders" return="char[]"
  1104. abstract="false" native="false" synchronized="false"
  1105. static="false" final="false" visibility="public"
  1106. deprecated="not deprecated">
  1107. <param name="name" type="java.lang.String"/>
  1108. <exception name="IOException" type="java.io.IOException"/>
  1109. <doc>
  1110. <![CDATA[Try and resolve the provided element name as a credential provider
  1111. alias.
  1112. @param name alias of the provisioned credential
  1113. @return password or null if not found
  1114. @throws IOException when error in fetching password]]>
  1115. </doc>
  1116. </method>
  1117. <method name="getPasswordFromConfig" return="char[]"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="false" final="false" visibility="protected"
  1120. deprecated="not deprecated">
  1121. <param name="name" type="java.lang.String"/>
  1122. <doc>
  1123. <![CDATA[Fallback to clear text passwords in configuration.
  1124. @param name the property name.
  1125. @return clear text password or null]]>
  1126. </doc>
  1127. </method>
  1128. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1129. abstract="false" native="false" synchronized="false"
  1130. static="false" final="false" visibility="public"
  1131. deprecated="not deprecated">
  1132. <param name="hostProperty" type="java.lang.String"/>
  1133. <param name="addressProperty" type="java.lang.String"/>
  1134. <param name="defaultAddressValue" type="java.lang.String"/>
  1135. <param name="defaultPort" type="int"/>
  1136. <doc>
  1137. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  1138. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  1139. <code>null</code>, <code>addressProperty</code> will be used. This
  1140. is useful for cases where we want to differentiate between host
  1141. bind address and address clients should use to establish connection.
  1142. @param hostProperty bind host property name.
  1143. @param addressProperty address property name.
  1144. @param defaultAddressValue the default value
  1145. @param defaultPort the default port
  1146. @return InetSocketAddress]]>
  1147. </doc>
  1148. </method>
  1149. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1150. abstract="false" native="false" synchronized="false"
  1151. static="false" final="false" visibility="public"
  1152. deprecated="not deprecated">
  1153. <param name="name" type="java.lang.String"/>
  1154. <param name="defaultAddress" type="java.lang.String"/>
  1155. <param name="defaultPort" type="int"/>
  1156. <doc>
  1157. <![CDATA[Get the socket address for <code>name</code> property as a
  1158. <code>InetSocketAddress</code>.
  1159. @param name property name.
  1160. @param defaultAddress the default value
  1161. @param defaultPort the default port
  1162. @return InetSocketAddress]]>
  1163. </doc>
  1164. </method>
  1165. <method name="setSocketAddr"
  1166. abstract="false" native="false" synchronized="false"
  1167. static="false" final="false" visibility="public"
  1168. deprecated="not deprecated">
  1169. <param name="name" type="java.lang.String"/>
  1170. <param name="addr" type="java.net.InetSocketAddress"/>
  1171. <doc>
  1172. <![CDATA[Set the socket address for the <code>name</code> property as
  1173. a <code>host:port</code>.
  1174. @param name property name.
  1175. @param addr inetSocketAddress addr.]]>
  1176. </doc>
  1177. </method>
  1178. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1179. abstract="false" native="false" synchronized="false"
  1180. static="false" final="false" visibility="public"
  1181. deprecated="not deprecated">
  1182. <param name="hostProperty" type="java.lang.String"/>
  1183. <param name="addressProperty" type="java.lang.String"/>
  1184. <param name="defaultAddressValue" type="java.lang.String"/>
  1185. <param name="addr" type="java.net.InetSocketAddress"/>
  1186. <doc>
  1187. <![CDATA[Set the socket address a client can use to connect for the
  1188. <code>name</code> property as a <code>host:port</code>. The wildcard
  1189. address is replaced with the local host's address. If the host and address
  1190. properties are configured the host component of the address will be combined
  1191. with the port component of the addr to generate the address. This is to allow
  1192. optional control over which host name is used in multi-home bind-host
  1193. cases where a host can have multiple names
  1194. @param hostProperty the bind-host configuration name
  1195. @param addressProperty the service address configuration name
  1196. @param defaultAddressValue the service default address configuration value
  1197. @param addr InetSocketAddress of the service listener
  1198. @return InetSocketAddress for clients to connect]]>
  1199. </doc>
  1200. </method>
  1201. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1202. abstract="false" native="false" synchronized="false"
  1203. static="false" final="false" visibility="public"
  1204. deprecated="not deprecated">
  1205. <param name="name" type="java.lang.String"/>
  1206. <param name="addr" type="java.net.InetSocketAddress"/>
  1207. <doc>
  1208. <![CDATA[Set the socket address a client can use to connect for the
  1209. <code>name</code> property as a <code>host:port</code>. The wildcard
  1210. address is replaced with the local host's address.
  1211. @param name property name.
  1212. @param addr InetSocketAddress of a listener to store in the given property
  1213. @return InetSocketAddress for clients to connect]]>
  1214. </doc>
  1215. </method>
  1216. <method name="getClassByName" return="java.lang.Class"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="name" type="java.lang.String"/>
  1221. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1222. <doc>
  1223. <![CDATA[Load a class by name.
  1224. @param name the class name.
  1225. @return the class object.
  1226. @throws ClassNotFoundException if the class is not found.]]>
  1227. </doc>
  1228. </method>
  1229. <method name="getClassByNameOrNull" return="java.lang.Class"
  1230. abstract="false" native="false" synchronized="false"
  1231. static="false" final="false" visibility="public"
  1232. deprecated="not deprecated">
  1233. <param name="name" type="java.lang.String"/>
  1234. <doc>
  1235. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1236. if it couldn't be loaded. This is to avoid the overhead of creating
  1237. an exception.
  1238. @param name the class name
  1239. @return the class object, or null if it could not be found.]]>
  1240. </doc>
  1241. </method>
  1242. <method name="getClasses" return="java.lang.Class[]"
  1243. abstract="false" native="false" synchronized="false"
  1244. static="false" final="false" visibility="public"
  1245. deprecated="not deprecated">
  1246. <param name="name" type="java.lang.String"/>
  1247. <param name="defaultValue" type="java.lang.Class[]"/>
  1248. <doc>
  1249. <![CDATA[Get the value of the <code>name</code> property
  1250. as an array of <code>Class</code>.
  1251. The value of the property specifies a list of comma separated class names.
  1252. If no such property is specified, then <code>defaultValue</code> is
  1253. returned.
  1254. @param name the property name.
  1255. @param defaultValue default value.
  1256. @return property value as a <code>Class[]</code>,
  1257. or <code>defaultValue</code>.]]>
  1258. </doc>
  1259. </method>
  1260. <method name="getClass" return="java.lang.Class"
  1261. abstract="false" native="false" synchronized="false"
  1262. static="false" final="false" visibility="public"
  1263. deprecated="not deprecated">
  1264. <param name="name" type="java.lang.String"/>
  1265. <param name="defaultValue" type="java.lang.Class"/>
  1266. <doc>
  1267. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1268. If no such property is specified, then <code>defaultValue</code> is
  1269. returned.
  1270. @param name the conf key name.
  1271. @param defaultValue default value.
  1272. @return property value as a <code>Class</code>,
  1273. or <code>defaultValue</code>.]]>
  1274. </doc>
  1275. </method>
  1276. <method name="getClass" return="java.lang.Class"
  1277. abstract="false" native="false" synchronized="false"
  1278. static="false" final="false" visibility="public"
  1279. deprecated="not deprecated">
  1280. <param name="name" type="java.lang.String"/>
  1281. <param name="defaultValue" type="java.lang.Class"/>
  1282. <param name="xface" type="java.lang.Class"/>
  1283. <doc>
  1284. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1285. implementing the interface specified by <code>xface</code>.
  1286. If no such property is specified, then <code>defaultValue</code> is
  1287. returned.
  1288. An exception is thrown if the returned class does not implement the named
  1289. interface.
  1290. @param name the conf key name.
  1291. @param defaultValue default value.
  1292. @param xface the interface implemented by the named class.
  1293. @param <U> Interface class type.
  1294. @return property value as a <code>Class</code>,
  1295. or <code>defaultValue</code>.]]>
  1296. </doc>
  1297. </method>
  1298. <method name="getInstances" return="java.util.List"
  1299. abstract="false" native="false" synchronized="false"
  1300. static="false" final="false" visibility="public"
  1301. deprecated="not deprecated">
  1302. <param name="name" type="java.lang.String"/>
  1303. <param name="xface" type="java.lang.Class"/>
  1304. <doc>
  1305. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1306. of objects implementing the interface specified by <code>xface</code>.
  1307. An exception is thrown if any of the classes does not exist, or if it does
  1308. not implement the named interface.
  1309. @param name the property name.
  1310. @param xface the interface implemented by the classes named by
  1311. <code>name</code>.
  1312. @param <U> Interface class type.
  1313. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1314. </doc>
  1315. </method>
  1316. <method name="setClass"
  1317. abstract="false" native="false" synchronized="false"
  1318. static="false" final="false" visibility="public"
  1319. deprecated="not deprecated">
  1320. <param name="name" type="java.lang.String"/>
  1321. <param name="theClass" type="java.lang.Class"/>
  1322. <param name="xface" type="java.lang.Class"/>
  1323. <doc>
  1324. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1325. <code>theClass</code> implementing the given interface <code>xface</code>.
  1326. An exception is thrown if <code>theClass</code> does not implement the
  1327. interface <code>xface</code>.
  1328. @param name property name.
  1329. @param theClass property value.
  1330. @param xface the interface implemented by the named class.]]>
  1331. </doc>
  1332. </method>
  1333. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1334. abstract="false" native="false" synchronized="false"
  1335. static="false" final="false" visibility="public"
  1336. deprecated="not deprecated">
  1337. <param name="dirsProp" type="java.lang.String"/>
  1338. <param name="path" type="java.lang.String"/>
  1339. <exception name="IOException" type="java.io.IOException"/>
  1340. <doc>
  1341. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1342. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1343. then one is chosen based on <i>path</i>'s hash code. If the selected
  1344. directory does not exist, an attempt is made to create it.
  1345. @param dirsProp directory in which to locate the file.
  1346. @param path file-path.
  1347. @return local file under the directory with the given path.
  1348. @throws IOException raised on errors performing I/O.]]>
  1349. </doc>
  1350. </method>
  1351. <method name="getFile" return="java.io.File"
  1352. abstract="false" native="false" synchronized="false"
  1353. static="false" final="false" visibility="public"
  1354. deprecated="not deprecated">
  1355. <param name="dirsProp" type="java.lang.String"/>
  1356. <param name="path" type="java.lang.String"/>
  1357. <exception name="IOException" type="java.io.IOException"/>
  1358. <doc>
  1359. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1360. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1361. then one is chosen based on <i>path</i>'s hash code. If the selected
  1362. directory does not exist, an attempt is made to create it.
  1363. @param dirsProp directory in which to locate the file.
  1364. @param path file-path.
  1365. @return local file under the directory with the given path.
  1366. @throws IOException raised on errors performing I/O.]]>
  1367. </doc>
  1368. </method>
  1369. <method name="getResource" return="java.net.URL"
  1370. abstract="false" native="false" synchronized="false"
  1371. static="false" final="false" visibility="public"
  1372. deprecated="not deprecated">
  1373. <param name="name" type="java.lang.String"/>
  1374. <doc>
  1375. <![CDATA[Get the {@link URL} for the named resource.
  1376. @param name resource name.
  1377. @return the url for the named resource.]]>
  1378. </doc>
  1379. </method>
  1380. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1381. abstract="false" native="false" synchronized="false"
  1382. static="false" final="false" visibility="public"
  1383. deprecated="not deprecated">
  1384. <param name="name" type="java.lang.String"/>
  1385. <doc>
  1386. <![CDATA[Get an input stream attached to the configuration resource with the
  1387. given <code>name</code>.
  1388. @param name configuration resource name.
  1389. @return an input stream attached to the resource.]]>
  1390. </doc>
  1391. </method>
  1392. <method name="getConfResourceAsReader" return="java.io.Reader"
  1393. abstract="false" native="false" synchronized="false"
  1394. static="false" final="false" visibility="public"
  1395. deprecated="not deprecated">
  1396. <param name="name" type="java.lang.String"/>
  1397. <doc>
  1398. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1399. given <code>name</code>.
  1400. @param name configuration resource name.
  1401. @return a reader attached to the resource.]]>
  1402. </doc>
  1403. </method>
  1404. <method name="getFinalParameters" return="java.util.Set"
  1405. abstract="false" native="false" synchronized="false"
  1406. static="false" final="false" visibility="public"
  1407. deprecated="not deprecated">
  1408. <doc>
  1409. <![CDATA[Get the set of parameters marked final.
  1410. @return final parameter set.]]>
  1411. </doc>
  1412. </method>
  1413. <method name="getProps" return="java.util.Properties"
  1414. abstract="false" native="false" synchronized="true"
  1415. static="false" final="false" visibility="protected"
  1416. deprecated="not deprecated">
  1417. </method>
  1418. <method name="size" return="int"
  1419. abstract="false" native="false" synchronized="false"
  1420. static="false" final="false" visibility="public"
  1421. deprecated="not deprecated">
  1422. <doc>
  1423. <![CDATA[Return the number of keys in the configuration.
  1424. @return number of keys in the configuration.]]>
  1425. </doc>
  1426. </method>
  1427. <method name="clear"
  1428. abstract="false" native="false" synchronized="false"
  1429. static="false" final="false" visibility="public"
  1430. deprecated="not deprecated">
  1431. <doc>
  1432. <![CDATA[Clears all keys from the configuration.]]>
  1433. </doc>
  1434. </method>
  1435. <method name="iterator" return="java.util.Iterator"
  1436. abstract="false" native="false" synchronized="false"
  1437. static="false" final="false" visibility="public"
  1438. deprecated="not deprecated">
  1439. <doc>
  1440. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1441. key-value pairs in the configuration.
  1442. @return an iterator over the entries.]]>
  1443. </doc>
  1444. </method>
  1445. <method name="getPropsWithPrefix" return="java.util.Map"
  1446. abstract="false" native="false" synchronized="false"
  1447. static="false" final="false" visibility="public"
  1448. deprecated="not deprecated">
  1449. <param name="confPrefix" type="java.lang.String"/>
  1450. <doc>
  1451. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1452. start with the specified configuration prefix. Property names in the
  1453. mapping are trimmed to remove the configuration prefix.
  1454. @param confPrefix configuration prefix
  1455. @return mapping of configuration properties with prefix stripped]]>
  1456. </doc>
  1457. </method>
  1458. <method name="addTags"
  1459. abstract="false" native="false" synchronized="false"
  1460. static="false" final="false" visibility="public"
  1461. deprecated="not deprecated">
  1462. <param name="prop" type="java.util.Properties"/>
  1463. <doc>
  1464. <![CDATA[Add tags defined in HADOOP_TAGS_SYSTEM, HADOOP_TAGS_CUSTOM.
  1465. @param prop properties.]]>
  1466. </doc>
  1467. </method>
  1468. <method name="writeXml"
  1469. abstract="false" native="false" synchronized="false"
  1470. static="false" final="false" visibility="public"
  1471. deprecated="not deprecated">
  1472. <param name="out" type="java.io.OutputStream"/>
  1473. <exception name="IOException" type="java.io.IOException"/>
  1474. <doc>
  1475. <![CDATA[Write out the non-default properties in this configuration to the given
  1476. {@link OutputStream} using UTF-8 encoding.
  1477. @param out the output stream to write to.
  1478. @throws IOException raised on errors performing I/O.]]>
  1479. </doc>
  1480. </method>
  1481. <method name="writeXml"
  1482. abstract="false" native="false" synchronized="false"
  1483. static="false" final="false" visibility="public"
  1484. deprecated="not deprecated">
  1485. <param name="out" type="java.io.Writer"/>
  1486. <exception name="IOException" type="java.io.IOException"/>
  1487. </method>
  1488. <method name="writeXml"
  1489. abstract="false" native="false" synchronized="false"
  1490. static="false" final="false" visibility="public"
  1491. deprecated="not deprecated">
  1492. <param name="propertyName" type="java.lang.String"/>
  1493. <param name="out" type="java.io.Writer"/>
  1494. <exception name="IOException" type="java.io.IOException"/>
  1495. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  1496. <doc>
  1497. <![CDATA[Write out the non-default properties in this configuration to the
  1498. given {@link Writer}.
  1499. <ul>
  1500. <li>
  1501. When property name is not empty and the property exists in the
  1502. configuration, this method writes the property and its attributes
  1503. to the {@link Writer}.
  1504. </li>
  1505. <li>
  1506. When property name is null or empty, this method writes all the
  1507. configuration properties and their attributes to the {@link Writer}.
  1508. </li>
  1509. <li>
  1510. When property name is not empty but the property doesn't exist in
  1511. the configuration, this method throws an {@link IllegalArgumentException}.
  1512. </li>
  1513. </ul>
  1514. @param propertyName xml property name.
  1515. @param out the writer to write to.
  1516. @throws IOException raised on errors performing I/O.]]>
  1517. </doc>
  1518. </method>
  1519. <method name="dumpConfiguration"
  1520. abstract="false" native="false" synchronized="false"
  1521. static="true" final="false" visibility="public"
  1522. deprecated="not deprecated">
  1523. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1524. <param name="propertyName" type="java.lang.String"/>
  1525. <param name="out" type="java.io.Writer"/>
  1526. <exception name="IOException" type="java.io.IOException"/>
  1527. <doc>
  1528. <![CDATA[Writes properties and their attributes (final and resource)
  1529. to the given {@link Writer}.
  1530. <ul>
  1531. <li>
  1532. When propertyName is not empty, and the property exists
  1533. in the configuration, the format of the output would be,
  1534. <pre>
  1535. {
  1536. "property": {
  1537. "key" : "key1",
  1538. "value" : "value1",
  1539. "isFinal" : "key1.isFinal",
  1540. "resource" : "key1.resource"
  1541. }
  1542. }
  1543. </pre>
  1544. </li>
  1545. <li>
  1546. When propertyName is null or empty, it behaves same as
  1547. {@link #dumpConfiguration(Configuration, Writer)}, the
  1548. output would be,
  1549. <pre>
  1550. { "properties" :
  1551. [ { key : "key1",
  1552. value : "value1",
  1553. isFinal : "key1.isFinal",
  1554. resource : "key1.resource" },
  1555. { key : "key2",
  1556. value : "value2",
  1557. isFinal : "ke2.isFinal",
  1558. resource : "key2.resource" }
  1559. ]
  1560. }
  1561. </pre>
  1562. </li>
  1563. <li>
  1564. When propertyName is not empty, and the property is not
  1565. found in the configuration, this method will throw an
  1566. {@link IllegalArgumentException}.
  1567. </li>
  1568. </ul>
  1569. <p>
  1570. @param config the configuration
  1571. @param propertyName property name
  1572. @param out the Writer to write to
  1573. @throws IOException raised on errors performing I/O.
  1574. @throws IllegalArgumentException when property name is not
  1575. empty and the property is not found in configuration]]>
  1576. </doc>
  1577. </method>
  1578. <method name="dumpConfiguration"
  1579. abstract="false" native="false" synchronized="false"
  1580. static="true" final="false" visibility="public"
  1581. deprecated="not deprecated">
  1582. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1583. <param name="out" type="java.io.Writer"/>
  1584. <exception name="IOException" type="java.io.IOException"/>
  1585. <doc>
  1586. <![CDATA[Writes out all properties and their attributes (final and resource) to
  1587. the given {@link Writer}, the format of the output would be,
  1588. <pre>
  1589. { "properties" :
  1590. [ { key : "key1",
  1591. value : "value1",
  1592. isFinal : "key1.isFinal",
  1593. resource : "key1.resource" },
  1594. { key : "key2",
  1595. value : "value2",
  1596. isFinal : "ke2.isFinal",
  1597. resource : "key2.resource" }
  1598. ]
  1599. }
  1600. </pre>
  1601. It does not output the properties of the configuration object which
  1602. is loaded from an input stream.
  1603. <p>
  1604. @param config the configuration
  1605. @param out the Writer to write to
  1606. @throws IOException raised on errors performing I/O.]]>
  1607. </doc>
  1608. </method>
  1609. <method name="getClassLoader" return="java.lang.ClassLoader"
  1610. abstract="false" native="false" synchronized="false"
  1611. static="false" final="false" visibility="public"
  1612. deprecated="not deprecated">
  1613. <doc>
  1614. <![CDATA[Get the {@link ClassLoader} for this job.
  1615. @return the correct class loader.]]>
  1616. </doc>
  1617. </method>
  1618. <method name="setClassLoader"
  1619. abstract="false" native="false" synchronized="false"
  1620. static="false" final="false" visibility="public"
  1621. deprecated="not deprecated">
  1622. <param name="classLoader" type="java.lang.ClassLoader"/>
  1623. <doc>
  1624. <![CDATA[Set the class loader that will be used to load the various objects.
  1625. @param classLoader the new class loader.]]>
  1626. </doc>
  1627. </method>
  1628. <method name="toString" return="java.lang.String"
  1629. abstract="false" native="false" synchronized="false"
  1630. static="false" final="false" visibility="public"
  1631. deprecated="not deprecated">
  1632. </method>
  1633. <method name="setQuietMode"
  1634. abstract="false" native="false" synchronized="true"
  1635. static="false" final="false" visibility="public"
  1636. deprecated="not deprecated">
  1637. <param name="quietmode" type="boolean"/>
  1638. <doc>
  1639. <![CDATA[Set the quietness-mode.
  1640. In the quiet-mode, error and informational messages might not be logged.
  1641. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1642. to turn it off.]]>
  1643. </doc>
  1644. </method>
  1645. <method name="main"
  1646. abstract="false" native="false" synchronized="false"
  1647. static="true" final="false" visibility="public"
  1648. deprecated="not deprecated">
  1649. <param name="args" type="java.lang.String[]"/>
  1650. <exception name="Exception" type="java.lang.Exception"/>
  1651. <doc>
  1652. <![CDATA[For debugging. List non-default properties to the terminal and exit.
  1653. @param args the argument to be parsed.
  1654. @throws Exception exception.]]>
  1655. </doc>
  1656. </method>
  1657. <method name="readFields"
  1658. abstract="false" native="false" synchronized="false"
  1659. static="false" final="false" visibility="public"
  1660. deprecated="not deprecated">
  1661. <param name="in" type="java.io.DataInput"/>
  1662. <exception name="IOException" type="java.io.IOException"/>
  1663. </method>
  1664. <method name="write"
  1665. abstract="false" native="false" synchronized="false"
  1666. static="false" final="false" visibility="public"
  1667. deprecated="not deprecated">
  1668. <param name="out" type="java.io.DataOutput"/>
  1669. <exception name="IOException" type="java.io.IOException"/>
  1670. </method>
  1671. <method name="getValByRegex" return="java.util.Map"
  1672. abstract="false" native="false" synchronized="false"
  1673. static="false" final="false" visibility="public"
  1674. deprecated="not deprecated">
  1675. <param name="regex" type="java.lang.String"/>
  1676. <doc>
  1677. <![CDATA[get keys matching the the regex.
  1678. @param regex the regex to match against.
  1679. @return {@literal Map<String,String>} with matching keys]]>
  1680. </doc>
  1681. </method>
  1682. <method name="dumpDeprecatedKeys"
  1683. abstract="false" native="false" synchronized="false"
  1684. static="true" final="false" visibility="public"
  1685. deprecated="not deprecated">
  1686. </method>
  1687. <method name="hasWarnedDeprecation" return="boolean"
  1688. abstract="false" native="false" synchronized="false"
  1689. static="true" final="false" visibility="public"
  1690. deprecated="not deprecated">
  1691. <param name="name" type="java.lang.String"/>
  1692. <doc>
  1693. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1694. deprecated then always return false
  1695. @param name proprties.
  1696. @return true if name is a warned deprecation.]]>
  1697. </doc>
  1698. </method>
  1699. <method name="getAllPropertiesByTag" return="java.util.Properties"
  1700. abstract="false" native="false" synchronized="false"
  1701. static="false" final="false" visibility="public"
  1702. deprecated="not deprecated">
  1703. <param name="tag" type="java.lang.String"/>
  1704. <doc>
  1705. <![CDATA[Get all properties belonging to tag.
  1706. @param tag tag
  1707. @return Properties with matching tag]]>
  1708. </doc>
  1709. </method>
  1710. <method name="getAllPropertiesByTags" return="java.util.Properties"
  1711. abstract="false" native="false" synchronized="false"
  1712. static="false" final="false" visibility="public"
  1713. deprecated="not deprecated">
  1714. <param name="tagList" type="java.util.List"/>
  1715. <doc>
  1716. <![CDATA[Get all properties belonging to list of input tags. Calls
  1717. getAllPropertiesByTag internally.
  1718. @param tagList list of input tags
  1719. @return Properties with matching tags]]>
  1720. </doc>
  1721. </method>
  1722. <method name="isPropertyTag" return="boolean"
  1723. abstract="false" native="false" synchronized="false"
  1724. static="false" final="false" visibility="public"
  1725. deprecated="not deprecated">
  1726. <param name="tagStr" type="java.lang.String"/>
  1727. <doc>
  1728. <![CDATA[Get Property tag Enum corresponding to given source.
  1729. @param tagStr String representation of Enum
  1730. @return true if tagStr is a valid tag]]>
  1731. </doc>
  1732. </method>
  1733. <doc>
  1734. <![CDATA[Provides access to configuration parameters.
  1735. <h3 id="Resources">Resources</h3>
  1736. <p>Configurations are specified by resources. A resource contains a set of
  1737. name/value pairs as XML data. Each resource is named by either a
  1738. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1739. then the classpath is examined for a file with that name. If named by a
  1740. <code>Path</code>, then the local filesystem is examined directly, without
  1741. referring to the classpath.
  1742. <p>Unless explicitly turned off, Hadoop by default specifies two
  1743. resources, loaded in-order from the classpath: <ol>
  1744. <li><tt>
  1745. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1746. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1747. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1748. installation.</li>
  1749. </ol>
  1750. Applications may add additional resources, which are loaded
  1751. subsequent to these resources in the order they are added.
  1752. <h4 id="FinalParams">Final Parameters</h4>
  1753. <p>Configuration parameters may be declared <i>final</i>.
  1754. Once a resource declares a value final, no subsequently-loaded
  1755. resource can alter that value.
  1756. For example, one might define a final parameter with:
  1757. <pre><code>
  1758. &lt;property&gt;
  1759. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1760. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1761. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1762. &lt;/property&gt;</code></pre>
  1763. Administrators typically define parameters as final in
  1764. <tt>core-site.xml</tt> for values that user applications may not alter.
  1765. <h4 id="VariableExpansion">Variable Expansion</h4>
  1766. <p>Value strings are first processed for <i>variable expansion</i>. The
  1767. available properties are:<ol>
  1768. <li>Other properties defined in this Configuration; and, if a name is
  1769. undefined here,</li>
  1770. <li>Environment variables in {@link System#getenv()} if a name starts with
  1771. "env.", or</li>
  1772. <li>Properties in {@link System#getProperties()}.</li>
  1773. </ol>
  1774. <p>For example, if a configuration resource contains the following property
  1775. definitions:
  1776. <pre><code>
  1777. &lt;property&gt;
  1778. &lt;name&gt;basedir&lt;/name&gt;
  1779. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1780. &lt;/property&gt;
  1781. &lt;property&gt;
  1782. &lt;name&gt;tempdir&lt;/name&gt;
  1783. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1784. &lt;/property&gt;
  1785. &lt;property&gt;
  1786. &lt;name&gt;otherdir&lt;/name&gt;
  1787. &lt;value&gt;${<i>env.BASE_DIR</i>}/other&lt;/value&gt;
  1788. &lt;/property&gt;
  1789. </code></pre>
  1790. <p>When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1791. will be resolved to another property in this Configuration, while
  1792. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1793. of the System property with that name.
  1794. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1795. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1796. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1797. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1798. or its value is empty.
  1799. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1800. <p>By default, warnings will be given to any deprecated configuration
  1801. parameters and these are suppressible by configuring
  1802. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1803. log4j.properties file.
  1804. <h4 id="Tags">Tags</h4>
  1805. <p>Optionally we can tag related properties together by using tag
  1806. attributes. System tags are defined by hadoop.tags.system property. Users
  1807. can define there own custom tags in hadoop.tags.custom property.
  1808. <p>For example, we can tag existing property as:
  1809. <pre><code>
  1810. &lt;property&gt;
  1811. &lt;name&gt;dfs.replication&lt;/name&gt;
  1812. &lt;value&gt;3&lt;/value&gt;
  1813. &lt;tag&gt;HDFS,REQUIRED&lt;/tag&gt;
  1814. &lt;/property&gt;
  1815. &lt;property&gt;
  1816. &lt;name&gt;dfs.data.transfer.protection&lt;/name&gt;
  1817. &lt;value&gt;3&lt;/value&gt;
  1818. &lt;tag&gt;HDFS,SECURITY&lt;/tag&gt;
  1819. &lt;/property&gt;
  1820. </code></pre>
  1821. <p> Properties marked with tags can be retrieved with <tt>conf
  1822. .getAllPropertiesByTag("HDFS")</tt> or <tt>conf.getAllPropertiesByTags
  1823. (Arrays.asList("YARN","SECURITY"))</tt>.</p>]]>
  1824. </doc>
  1825. </class>
  1826. <!-- end class org.apache.hadoop.conf.Configuration -->
  1827. <!-- start class org.apache.hadoop.conf.Configured -->
  1828. <class name="Configured" extends="java.lang.Object"
  1829. abstract="false"
  1830. static="false" final="false" visibility="public"
  1831. deprecated="not deprecated">
  1832. <implements name="org.apache.hadoop.conf.Configurable"/>
  1833. <constructor name="Configured"
  1834. static="false" final="false" visibility="public"
  1835. deprecated="not deprecated">
  1836. <doc>
  1837. <![CDATA[Construct a Configured.]]>
  1838. </doc>
  1839. </constructor>
  1840. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1841. static="false" final="false" visibility="public"
  1842. deprecated="not deprecated">
  1843. <doc>
  1844. <![CDATA[Construct a Configured.
  1845. @param conf the Configuration object.]]>
  1846. </doc>
  1847. </constructor>
  1848. <method name="setConf"
  1849. abstract="false" native="false" synchronized="false"
  1850. static="false" final="false" visibility="public"
  1851. deprecated="not deprecated">
  1852. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1853. </method>
  1854. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1855. abstract="false" native="false" synchronized="false"
  1856. static="false" final="false" visibility="public"
  1857. deprecated="not deprecated">
  1858. </method>
  1859. <doc>
  1860. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1861. </doc>
  1862. </class>
  1863. <!-- end class org.apache.hadoop.conf.Configured -->
  1864. <doc>
  1865. <![CDATA[Configuration of system parameters.]]>
  1866. </doc>
  1867. </package>
  1868. <package name="org.apache.hadoop.crypto">
  1869. </package>
  1870. <package name="org.apache.hadoop.crypto.key">
  1871. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1872. <class name="KeyProvider" extends="java.lang.Object"
  1873. abstract="true"
  1874. static="false" final="false" visibility="public"
  1875. deprecated="not deprecated">
  1876. <implements name="java.io.Closeable"/>
  1877. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1878. static="false" final="false" visibility="public"
  1879. deprecated="not deprecated">
  1880. <doc>
  1881. <![CDATA[Constructor.
  1882. @param conf configuration for the provider]]>
  1883. </doc>
  1884. </constructor>
  1885. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1886. abstract="false" native="false" synchronized="false"
  1887. static="false" final="false" visibility="public"
  1888. deprecated="not deprecated">
  1889. <doc>
  1890. <![CDATA[Return the provider configuration.
  1891. @return the provider configuration]]>
  1892. </doc>
  1893. </method>
  1894. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1895. abstract="false" native="false" synchronized="false"
  1896. static="true" final="false" visibility="public"
  1897. deprecated="not deprecated">
  1898. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1899. <doc>
  1900. <![CDATA[A helper function to create an options object.
  1901. @param conf the configuration to use
  1902. @return a new options object]]>
  1903. </doc>
  1904. </method>
  1905. <method name="isTransient" return="boolean"
  1906. abstract="false" native="false" synchronized="false"
  1907. static="false" final="false" visibility="public"
  1908. deprecated="not deprecated">
  1909. <doc>
  1910. <![CDATA[Indicates whether this provider represents a store
  1911. that is intended for transient use - such as the UserProvider
  1912. is. These providers are generally used to provide access to
  1913. keying material rather than for long term storage.
  1914. @return true if transient, false otherwise]]>
  1915. </doc>
  1916. </method>
  1917. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1918. abstract="true" native="false" synchronized="false"
  1919. static="false" final="false" visibility="public"
  1920. deprecated="not deprecated">
  1921. <param name="versionName" type="java.lang.String"/>
  1922. <exception name="IOException" type="java.io.IOException"/>
  1923. <doc>
  1924. <![CDATA[Get the key material for a specific version of the key. This method is used
  1925. when decrypting data.
  1926. @param versionName the name of a specific version of the key
  1927. @return the key material
  1928. @throws IOException raised on errors performing I/O.]]>
  1929. </doc>
  1930. </method>
  1931. <method name="getKeys" return="java.util.List"
  1932. abstract="true" native="false" synchronized="false"
  1933. static="false" final="false" visibility="public"
  1934. deprecated="not deprecated">
  1935. <exception name="IOException" type="java.io.IOException"/>
  1936. <doc>
  1937. <![CDATA[Get the key names for all keys.
  1938. @return the list of key names
  1939. @throws IOException raised on errors performing I/O.]]>
  1940. </doc>
  1941. </method>
  1942. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1943. abstract="false" native="false" synchronized="false"
  1944. static="false" final="false" visibility="public"
  1945. deprecated="not deprecated">
  1946. <param name="names" type="java.lang.String[]"/>
  1947. <exception name="IOException" type="java.io.IOException"/>
  1948. <doc>
  1949. <![CDATA[Get key metadata in bulk.
  1950. @param names the names of the keys to get
  1951. @throws IOException raised on errors performing I/O.
  1952. @return Metadata Array.]]>
  1953. </doc>
  1954. </method>
  1955. <method name="getKeyVersions" return="java.util.List"
  1956. abstract="true" native="false" synchronized="false"
  1957. static="false" final="false" visibility="public"
  1958. deprecated="not deprecated">
  1959. <param name="name" type="java.lang.String"/>
  1960. <exception name="IOException" type="java.io.IOException"/>
  1961. <doc>
  1962. <![CDATA[Get the key material for all versions of a specific key name.
  1963. @param name the base name of the key.
  1964. @return the list of key material
  1965. @throws IOException raised on errors performing I/O.]]>
  1966. </doc>
  1967. </method>
  1968. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1969. abstract="false" native="false" synchronized="false"
  1970. static="false" final="false" visibility="public"
  1971. deprecated="not deprecated">
  1972. <param name="name" type="java.lang.String"/>
  1973. <exception name="IOException" type="java.io.IOException"/>
  1974. <doc>
  1975. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1976. data.
  1977. @param name the base name of the key
  1978. @return the version name of the current version of the key or null if the
  1979. key version doesn't exist
  1980. @throws IOException raised on errors performing I/O.]]>
  1981. </doc>
  1982. </method>
  1983. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1984. abstract="true" native="false" synchronized="false"
  1985. static="false" final="false" visibility="public"
  1986. deprecated="not deprecated">
  1987. <param name="name" type="java.lang.String"/>
  1988. <exception name="IOException" type="java.io.IOException"/>
  1989. <doc>
  1990. <![CDATA[Get metadata about the key.
  1991. @param name the basename of the key
  1992. @return the key's metadata or null if the key doesn't exist
  1993. @throws IOException raised on errors performing I/O.]]>
  1994. </doc>
  1995. </method>
  1996. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1997. abstract="true" native="false" synchronized="false"
  1998. static="false" final="false" visibility="public"
  1999. deprecated="not deprecated">
  2000. <param name="name" type="java.lang.String"/>
  2001. <param name="material" type="byte[]"/>
  2002. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2003. <exception name="IOException" type="java.io.IOException"/>
  2004. <doc>
  2005. <![CDATA[Create a new key. The given key must not already exist.
  2006. @param name the base name of the key
  2007. @param material the key material for the first version of the key.
  2008. @param options the options for the new key.
  2009. @return the version name of the first version of the key.
  2010. @throws IOException raised on errors performing I/O.]]>
  2011. </doc>
  2012. </method>
  2013. <method name="generateKey" return="byte[]"
  2014. abstract="false" native="false" synchronized="false"
  2015. static="false" final="false" visibility="protected"
  2016. deprecated="not deprecated">
  2017. <param name="size" type="int"/>
  2018. <param name="algorithm" type="java.lang.String"/>
  2019. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2020. <doc>
  2021. <![CDATA[Generates a key material.
  2022. @param size length of the key.
  2023. @param algorithm algorithm to use for generating the key.
  2024. @return the generated key.
  2025. @throws NoSuchAlgorithmException no such algorithm exception.]]>
  2026. </doc>
  2027. </method>
  2028. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2029. abstract="false" native="false" synchronized="false"
  2030. static="false" final="false" visibility="public"
  2031. deprecated="not deprecated">
  2032. <param name="name" type="java.lang.String"/>
  2033. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2034. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2035. <exception name="IOException" type="java.io.IOException"/>
  2036. <doc>
  2037. <![CDATA[Create a new key generating the material for it.
  2038. The given key must not already exist.
  2039. <p>
  2040. This implementation generates the key material and calls the
  2041. {@link #createKey(String, byte[], Options)} method.
  2042. @param name the base name of the key
  2043. @param options the options for the new key.
  2044. @return the version name of the first version of the key.
  2045. @throws IOException raised on errors performing I/O.
  2046. @throws NoSuchAlgorithmException no such algorithm exception.]]>
  2047. </doc>
  2048. </method>
  2049. <method name="deleteKey"
  2050. abstract="true" native="false" synchronized="false"
  2051. static="false" final="false" visibility="public"
  2052. deprecated="not deprecated">
  2053. <param name="name" type="java.lang.String"/>
  2054. <exception name="IOException" type="java.io.IOException"/>
  2055. <doc>
  2056. <![CDATA[Delete the given key.
  2057. @param name the name of the key to delete
  2058. @throws IOException raised on errors performing I/O.]]>
  2059. </doc>
  2060. </method>
  2061. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2062. abstract="true" native="false" synchronized="false"
  2063. static="false" final="false" visibility="public"
  2064. deprecated="not deprecated">
  2065. <param name="name" type="java.lang.String"/>
  2066. <param name="material" type="byte[]"/>
  2067. <exception name="IOException" type="java.io.IOException"/>
  2068. <doc>
  2069. <![CDATA[Roll a new version of the given key.
  2070. @param name the basename of the key
  2071. @param material the new key material
  2072. @return the name of the new version of the key
  2073. @throws IOException raised on errors performing I/O.]]>
  2074. </doc>
  2075. </method>
  2076. <method name="close"
  2077. abstract="false" native="false" synchronized="false"
  2078. static="false" final="false" visibility="public"
  2079. deprecated="not deprecated">
  2080. <exception name="IOException" type="java.io.IOException"/>
  2081. <doc>
  2082. <![CDATA[Can be used by implementing classes to close any resources
  2083. that require closing]]>
  2084. </doc>
  2085. </method>
  2086. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  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="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2092. <exception name="IOException" type="java.io.IOException"/>
  2093. <doc>
  2094. <![CDATA[Roll a new version of the given key generating the material for it.
  2095. <p>
  2096. This implementation generates the key material and calls the
  2097. {@link #rollNewVersion(String, byte[])} method.
  2098. @param name the basename of the key
  2099. @return the name of the new version of the key
  2100. @throws IOException raised on errors performing I/O.
  2101. @throws NoSuchAlgorithmException This exception is thrown when a particular
  2102. cryptographic algorithm is requested
  2103. but is not available in the environment.]]>
  2104. </doc>
  2105. </method>
  2106. <method name="invalidateCache"
  2107. abstract="false" native="false" synchronized="false"
  2108. static="false" final="false" visibility="public"
  2109. deprecated="not deprecated">
  2110. <param name="name" type="java.lang.String"/>
  2111. <exception name="IOException" type="java.io.IOException"/>
  2112. <doc>
  2113. <![CDATA[Can be used by implementing classes to invalidate the caches. This could be
  2114. used after rollNewVersion to provide a strong guarantee to return the new
  2115. version of the given key.
  2116. @param name the basename of the key
  2117. @throws IOException raised on errors performing I/O.]]>
  2118. </doc>
  2119. </method>
  2120. <method name="flush"
  2121. abstract="true" native="false" synchronized="false"
  2122. static="false" final="false" visibility="public"
  2123. deprecated="not deprecated">
  2124. <exception name="IOException" type="java.io.IOException"/>
  2125. <doc>
  2126. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  2127. @throws IOException raised on errors performing I/O.]]>
  2128. </doc>
  2129. </method>
  2130. <method name="getBaseName" return="java.lang.String"
  2131. abstract="false" native="false" synchronized="false"
  2132. static="true" final="false" visibility="public"
  2133. deprecated="not deprecated">
  2134. <param name="versionName" type="java.lang.String"/>
  2135. <exception name="IOException" type="java.io.IOException"/>
  2136. <doc>
  2137. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  2138. "/aaa/bbb".
  2139. @param versionName the version name to split
  2140. @return the base name of the key
  2141. @throws IOException raised on errors performing I/O.]]>
  2142. </doc>
  2143. </method>
  2144. <method name="buildVersionName" return="java.lang.String"
  2145. abstract="false" native="false" synchronized="false"
  2146. static="true" final="false" visibility="protected"
  2147. deprecated="not deprecated">
  2148. <param name="name" type="java.lang.String"/>
  2149. <param name="version" type="int"/>
  2150. <doc>
  2151. <![CDATA[Build a version string from a basename and version number. Converts
  2152. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  2153. @param name the basename of the key
  2154. @param version the version of the key
  2155. @return the versionName of the key.]]>
  2156. </doc>
  2157. </method>
  2158. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2159. abstract="false" native="false" synchronized="false"
  2160. static="true" final="false" visibility="public"
  2161. deprecated="not deprecated">
  2162. <param name="providerList" type="java.util.List"/>
  2163. <param name="keyName" type="java.lang.String"/>
  2164. <exception name="IOException" type="java.io.IOException"/>
  2165. <doc>
  2166. <![CDATA[Find the provider with the given key.
  2167. @param providerList the list of providers
  2168. @param keyName the key name we are looking for.
  2169. @return the KeyProvider that has the key
  2170. @throws IOException raised on errors performing I/O.]]>
  2171. </doc>
  2172. </method>
  2173. <method name="needsPassword" return="boolean"
  2174. abstract="false" native="false" synchronized="false"
  2175. static="false" final="false" visibility="public"
  2176. deprecated="not deprecated">
  2177. <exception name="IOException" type="java.io.IOException"/>
  2178. <doc>
  2179. <![CDATA[Does this provider require a password? This means that a password is
  2180. required for normal operation, and it has not been found through normal
  2181. means. If true, the password should be provided by the caller using
  2182. setPassword().
  2183. @return Whether or not the provider requires a password
  2184. @throws IOException raised on errors performing I/O.]]>
  2185. </doc>
  2186. </method>
  2187. <method name="noPasswordWarning" return="java.lang.String"
  2188. abstract="false" native="false" synchronized="false"
  2189. static="false" final="false" visibility="public"
  2190. deprecated="not deprecated">
  2191. <doc>
  2192. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2193. return a warning and instructions for supplying said password to the
  2194. provider.
  2195. @return A warning and instructions for supplying the password]]>
  2196. </doc>
  2197. </method>
  2198. <method name="noPasswordError" return="java.lang.String"
  2199. abstract="false" native="false" synchronized="false"
  2200. static="false" final="false" visibility="public"
  2201. deprecated="not deprecated">
  2202. <doc>
  2203. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2204. return an error message and instructions for supplying said password to
  2205. the provider.
  2206. @return An error message and instructions for supplying the password]]>
  2207. </doc>
  2208. </method>
  2209. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2210. transient="false" volatile="false"
  2211. static="true" final="true" visibility="public"
  2212. deprecated="not deprecated">
  2213. </field>
  2214. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2215. transient="false" volatile="false"
  2216. static="true" final="true" visibility="public"
  2217. deprecated="not deprecated">
  2218. </field>
  2219. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2220. transient="false" volatile="false"
  2221. static="true" final="true" visibility="public"
  2222. deprecated="not deprecated">
  2223. </field>
  2224. <field name="DEFAULT_BITLENGTH" type="int"
  2225. transient="false" volatile="false"
  2226. static="true" final="true" visibility="public"
  2227. deprecated="not deprecated">
  2228. </field>
  2229. <field name="JCEKS_KEY_SERIALFILTER_DEFAULT" type="java.lang.String"
  2230. transient="false" volatile="false"
  2231. static="true" final="true" visibility="public"
  2232. deprecated="not deprecated">
  2233. </field>
  2234. <field name="JCEKS_KEY_SERIAL_FILTER" type="java.lang.String"
  2235. transient="false" volatile="false"
  2236. static="true" final="true" visibility="public"
  2237. deprecated="not deprecated">
  2238. </field>
  2239. <doc>
  2240. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2241. abstraction to separate key storage from users of encryption. It
  2242. is intended to support getting or storing keys in a variety of ways,
  2243. including third party bindings.
  2244. <p>
  2245. <code>KeyProvider</code> implementations must be thread safe.]]>
  2246. </doc>
  2247. </class>
  2248. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2249. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2250. <class name="KeyProviderFactory" extends="java.lang.Object"
  2251. abstract="true"
  2252. static="false" final="false" visibility="public"
  2253. deprecated="not deprecated">
  2254. <constructor name="KeyProviderFactory"
  2255. static="false" final="false" visibility="public"
  2256. deprecated="not deprecated">
  2257. </constructor>
  2258. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2259. abstract="true" native="false" synchronized="false"
  2260. static="false" final="false" visibility="public"
  2261. deprecated="not deprecated">
  2262. <param name="providerName" type="java.net.URI"/>
  2263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2264. <exception name="IOException" type="java.io.IOException"/>
  2265. </method>
  2266. <method name="getProviders" return="java.util.List"
  2267. abstract="false" native="false" synchronized="false"
  2268. static="true" final="false" visibility="public"
  2269. deprecated="not deprecated">
  2270. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2271. <exception name="IOException" type="java.io.IOException"/>
  2272. </method>
  2273. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2274. abstract="false" native="false" synchronized="false"
  2275. static="true" final="false" visibility="public"
  2276. deprecated="not deprecated">
  2277. <param name="uri" type="java.net.URI"/>
  2278. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2279. <exception name="IOException" type="java.io.IOException"/>
  2280. <doc>
  2281. <![CDATA[Create a KeyProvider based on a provided URI.
  2282. @param uri key provider URI
  2283. @param conf configuration to initialize the key provider
  2284. @return the key provider for the specified URI, or <code>NULL</code> if
  2285. a provider for the specified URI scheme could not be found.
  2286. @throws IOException thrown if the provider failed to initialize.]]>
  2287. </doc>
  2288. </method>
  2289. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2290. transient="false" volatile="false"
  2291. static="true" final="true" visibility="public"
  2292. deprecated="not deprecated">
  2293. </field>
  2294. <doc>
  2295. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2296. Configuration. It uses a service loader interface to find the available
  2297. KeyProviders and create them based on the list of URIs.]]>
  2298. </doc>
  2299. </class>
  2300. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2301. </package>
  2302. <package name="org.apache.hadoop.crypto.key.kms">
  2303. </package>
  2304. <package name="org.apache.hadoop.crypto.random">
  2305. </package>
  2306. <package name="org.apache.hadoop.fs">
  2307. <!-- start interface org.apache.hadoop.fs.Abortable -->
  2308. <interface name="Abortable" abstract="true"
  2309. static="false" final="false" visibility="public"
  2310. deprecated="not deprecated">
  2311. <method name="abort" return="org.apache.hadoop.fs.Abortable.AbortableResult"
  2312. abstract="true" native="false" synchronized="false"
  2313. static="false" final="false" visibility="public"
  2314. deprecated="not deprecated">
  2315. <doc>
  2316. <![CDATA[Abort the active operation without the output becoming visible.
  2317. This is to provide ability to cancel the write on stream; once
  2318. a stream is aborted, the write MUST NOT become visible.
  2319. @throws UnsupportedOperationException if the operation is not supported.
  2320. @return the result.]]>
  2321. </doc>
  2322. </method>
  2323. <doc>
  2324. <![CDATA[Abort data being written to a stream, so that close() does
  2325. not write the data. It is implemented by output streams in
  2326. some object stores, and passed through {@link FSDataOutputStream}.]]>
  2327. </doc>
  2328. </interface>
  2329. <!-- end interface org.apache.hadoop.fs.Abortable -->
  2330. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  2331. <class name="AbstractFileSystem" extends="java.lang.Object"
  2332. abstract="true"
  2333. static="false" final="false" visibility="public"
  2334. deprecated="not deprecated">
  2335. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  2336. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  2337. static="false" final="false" visibility="public"
  2338. deprecated="not deprecated">
  2339. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  2340. <doc>
  2341. <![CDATA[Constructor to be called by subclasses.
  2342. @param uri for this file system.
  2343. @param supportedScheme the scheme supported by the implementor
  2344. @param authorityNeeded if true then theURI must have authority, if false
  2345. then the URI must have null authority.
  2346. @param defaultPort default port to use if port is not specified in the URI.
  2347. @throws URISyntaxException <code>uri</code> has syntax error]]>
  2348. </doc>
  2349. </constructor>
  2350. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2351. abstract="false" native="false" synchronized="false"
  2352. static="false" final="false" visibility="public"
  2353. deprecated="not deprecated">
  2354. </method>
  2355. <method name="isValidName" return="boolean"
  2356. abstract="false" native="false" synchronized="false"
  2357. static="false" final="false" visibility="public"
  2358. deprecated="not deprecated">
  2359. <param name="src" type="java.lang.String"/>
  2360. <doc>
  2361. <![CDATA[Returns true if the specified string is considered valid in the path part
  2362. of a URI by this file system. The default implementation enforces the rules
  2363. of HDFS, but subclasses may override this method to implement specific
  2364. validation rules for specific file systems.
  2365. @param src String source filename to check, path part of the URI
  2366. @return boolean true if the specified string is considered valid]]>
  2367. </doc>
  2368. </method>
  2369. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2370. abstract="false" native="false" synchronized="false"
  2371. static="true" final="false" visibility="public"
  2372. deprecated="not deprecated">
  2373. <param name="uri" type="java.net.URI"/>
  2374. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2375. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2376. <doc>
  2377. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2378. conf is used to find the class name that implements the file system. The
  2379. conf is also passed to the file system for its configuration.
  2380. @param uri URI of the file system
  2381. @param conf Configuration for the file system
  2382. @return Returns the file system for the given URI
  2383. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2384. not found]]>
  2385. </doc>
  2386. </method>
  2387. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2388. abstract="false" native="false" synchronized="true"
  2389. static="true" final="false" visibility="protected"
  2390. deprecated="not deprecated">
  2391. <param name="uri" type="java.net.URI"/>
  2392. <doc>
  2393. <![CDATA[Get the statistics for a particular file system.
  2394. @param uri
  2395. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2396. part of the uri are used.
  2397. @return a statistics object]]>
  2398. </doc>
  2399. </method>
  2400. <method name="clearStatistics"
  2401. abstract="false" native="false" synchronized="true"
  2402. static="true" final="false" visibility="public"
  2403. deprecated="not deprecated">
  2404. </method>
  2405. <method name="printStatistics"
  2406. abstract="false" native="false" synchronized="true"
  2407. static="true" final="false" visibility="public"
  2408. deprecated="not deprecated">
  2409. <doc>
  2410. <![CDATA[Prints statistics for all file systems.]]>
  2411. </doc>
  2412. </method>
  2413. <method name="getAllStatistics" return="java.util.Map"
  2414. abstract="false" native="false" synchronized="true"
  2415. static="true" final="false" visibility="protected"
  2416. deprecated="not deprecated">
  2417. </method>
  2418. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2419. abstract="false" native="false" synchronized="false"
  2420. static="true" final="false" visibility="public"
  2421. deprecated="not deprecated">
  2422. <param name="uri" type="java.net.URI"/>
  2423. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2424. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2425. <doc>
  2426. <![CDATA[The main factory method for creating a file system. Get a file system for
  2427. the URI's scheme and authority. The scheme of the <code>uri</code>
  2428. determines a configuration property name,
  2429. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2430. AbstractFileSystem class.
  2431. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2432. @param uri for the file system to be created.
  2433. @param conf which is passed to the file system impl.
  2434. @return file system for the given URI.
  2435. @throws UnsupportedFileSystemException if the file system for
  2436. <code>uri</code> is not supported.]]>
  2437. </doc>
  2438. </method>
  2439. <method name="checkScheme"
  2440. abstract="false" native="false" synchronized="false"
  2441. static="false" final="false" visibility="public"
  2442. deprecated="not deprecated">
  2443. <param name="uri" type="java.net.URI"/>
  2444. <param name="supportedScheme" type="java.lang.String"/>
  2445. <doc>
  2446. <![CDATA[Check that the Uri's scheme matches.
  2447. @param uri name URI of the FS.
  2448. @param supportedScheme supported scheme.]]>
  2449. </doc>
  2450. </method>
  2451. <method name="getUriDefaultPort" return="int"
  2452. abstract="true" native="false" synchronized="false"
  2453. static="false" final="false" visibility="public"
  2454. deprecated="not deprecated">
  2455. <doc>
  2456. <![CDATA[The default port of this file system.
  2457. @return default port of this file system's Uri scheme
  2458. A uri with a port of -1 =&gt; default port;]]>
  2459. </doc>
  2460. </method>
  2461. <method name="getUri" return="java.net.URI"
  2462. abstract="false" native="false" synchronized="false"
  2463. static="false" final="false" visibility="public"
  2464. deprecated="not deprecated">
  2465. <doc>
  2466. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2467. @return the uri of this file system.]]>
  2468. </doc>
  2469. </method>
  2470. <method name="checkPath"
  2471. abstract="false" native="false" synchronized="false"
  2472. static="false" final="false" visibility="public"
  2473. deprecated="not deprecated">
  2474. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2475. <doc>
  2476. <![CDATA[Check that a Path belongs to this FileSystem.
  2477. If the path is fully qualified URI, then its scheme and authority
  2478. matches that of this file system. Otherwise the path must be
  2479. slash-relative name.
  2480. @param path the path.
  2481. @throws InvalidPathException if the path is invalid]]>
  2482. </doc>
  2483. </method>
  2484. <method name="getUriPath" return="java.lang.String"
  2485. abstract="false" native="false" synchronized="false"
  2486. static="false" final="false" visibility="public"
  2487. deprecated="not deprecated">
  2488. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2489. <doc>
  2490. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2491. and that the path-part is a valid name.
  2492. @param p path
  2493. @return path-part of the Path p]]>
  2494. </doc>
  2495. </method>
  2496. <method name="makeQualified" 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. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2501. <doc>
  2502. <![CDATA[Make the path fully qualified to this file system
  2503. @param path the path.
  2504. @return the qualified path]]>
  2505. </doc>
  2506. </method>
  2507. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2508. abstract="false" native="false" synchronized="false"
  2509. static="false" final="false" visibility="public"
  2510. deprecated="not deprecated">
  2511. <doc>
  2512. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2513. that is used as the starting workingDir. For other file systems
  2514. like HDFS there is no built in notion of an initial workingDir.
  2515. @return the initial workingDir if the file system has such a notion
  2516. otherwise return a null.]]>
  2517. </doc>
  2518. </method>
  2519. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2520. abstract="false" native="false" synchronized="false"
  2521. static="false" final="false" visibility="public"
  2522. deprecated="not deprecated">
  2523. <doc>
  2524. <![CDATA[Return the current user's home directory in this file system.
  2525. The default implementation returns "/user/$USER/".
  2526. @return current user's home directory.]]>
  2527. </doc>
  2528. </method>
  2529. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2530. abstract="true" native="false" synchronized="false"
  2531. static="false" final="false" visibility="public"
  2532. deprecated="use {@link #getServerDefaults(Path)} instead">
  2533. <exception name="IOException" type="java.io.IOException"/>
  2534. <doc>
  2535. <![CDATA[Return a set of server default configuration values.
  2536. @return server default configuration values
  2537. @throws IOException an I/O error occurred
  2538. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2539. </doc>
  2540. </method>
  2541. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2542. abstract="false" native="false" synchronized="false"
  2543. static="false" final="false" visibility="public"
  2544. deprecated="not deprecated">
  2545. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2546. <exception name="IOException" type="java.io.IOException"/>
  2547. <doc>
  2548. <![CDATA[Return a set of server default configuration values based on path.
  2549. @param f path to fetch server defaults
  2550. @return server default configuration values for path
  2551. @throws IOException an I/O error occurred]]>
  2552. </doc>
  2553. </method>
  2554. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2555. abstract="false" native="false" synchronized="false"
  2556. static="false" final="false" visibility="public"
  2557. deprecated="not deprecated">
  2558. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2559. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2560. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2561. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2562. <exception name="IOException" type="java.io.IOException"/>
  2563. <doc>
  2564. <![CDATA[Return the fully-qualified path of path f resolving the path
  2565. through any internal symlinks or mount point
  2566. @param p path to be resolved
  2567. @return fully qualified path
  2568. @throws FileNotFoundException when file not find throw.
  2569. @throws AccessControlException when accees control error throw.
  2570. @throws IOException raised on errors performing I/O.
  2571. @throws UnresolvedLinkException if symbolic link on path cannot be
  2572. resolved internally]]>
  2573. </doc>
  2574. </method>
  2575. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2576. abstract="false" native="false" synchronized="false"
  2577. static="false" final="true" visibility="public"
  2578. deprecated="not deprecated">
  2579. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2580. <param name="createFlag" type="java.util.EnumSet"/>
  2581. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2582. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2583. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2584. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2585. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2586. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2587. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2588. <exception name="IOException" type="java.io.IOException"/>
  2589. <doc>
  2590. <![CDATA[The specification of this method matches that of
  2591. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2592. that the Path f must be fully qualified and the permission is absolute
  2593. (i.e. umask has been applied).
  2594. @param f the path.
  2595. @param createFlag create_flag.
  2596. @param opts create ops.
  2597. @throws AccessControlException access controll exception.
  2598. @throws FileAlreadyExistsException file already exception.
  2599. @throws FileNotFoundException file not found exception.
  2600. @throws ParentNotDirectoryException parent not dir exception.
  2601. @throws UnsupportedFileSystemException unsupported file system exception.
  2602. @throws UnresolvedLinkException unresolved link exception.
  2603. @throws IOException raised on errors performing I/O.
  2604. @return output stream.]]>
  2605. </doc>
  2606. </method>
  2607. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2608. abstract="true" native="false" synchronized="false"
  2609. static="false" final="false" visibility="public"
  2610. deprecated="not deprecated">
  2611. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2612. <param name="flag" type="java.util.EnumSet"/>
  2613. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2614. <param name="bufferSize" type="int"/>
  2615. <param name="replication" type="short"/>
  2616. <param name="blockSize" type="long"/>
  2617. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2618. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2619. <param name="createParent" type="boolean"/>
  2620. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2621. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2622. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2623. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2624. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2625. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2626. <exception name="IOException" type="java.io.IOException"/>
  2627. <doc>
  2628. <![CDATA[The specification of this method matches that of
  2629. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2630. have been declared explicitly.
  2631. @param f the path.
  2632. @param flag create flag.
  2633. @param absolutePermission absolute permission.
  2634. @param bufferSize buffer size.
  2635. @param replication replications.
  2636. @param blockSize block size.
  2637. @param progress progress.
  2638. @param checksumOpt check sum opt.
  2639. @param createParent create parent.
  2640. @throws AccessControlException access control exception.
  2641. @throws FileAlreadyExistsException file already exists exception.
  2642. @throws FileNotFoundException file not found exception.
  2643. @throws ParentNotDirectoryException parent not directory exception.
  2644. @throws UnsupportedFileSystemException unsupported filesystem exception.
  2645. @throws UnresolvedLinkException unresolved link exception.
  2646. @throws IOException raised on errors performing I/O.
  2647. @return output stream.]]>
  2648. </doc>
  2649. </method>
  2650. <method name="mkdir"
  2651. abstract="true" native="false" synchronized="false"
  2652. static="false" final="false" visibility="public"
  2653. deprecated="not deprecated">
  2654. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2655. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2656. <param name="createParent" type="boolean"/>
  2657. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2658. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2659. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2660. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2661. <exception name="IOException" type="java.io.IOException"/>
  2662. <doc>
  2663. <![CDATA[The specification of this method matches that of
  2664. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2665. f must be fully qualified and the permission is absolute (i.e.
  2666. umask has been applied).
  2667. @param dir directory.
  2668. @param permission permission.
  2669. @param createParent create parent flag.
  2670. @throws AccessControlException access control exception.
  2671. @throws FileAlreadyExistsException file already exists exception.
  2672. @throws FileNotFoundException file not found exception.
  2673. @throws UnresolvedLinkException unresolved link exception.
  2674. @throws IOException raised on errors performing I/O.]]>
  2675. </doc>
  2676. </method>
  2677. <method name="delete" return="boolean"
  2678. abstract="true" native="false" synchronized="false"
  2679. static="false" final="false" visibility="public"
  2680. deprecated="not deprecated">
  2681. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2682. <param name="recursive" type="boolean"/>
  2683. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2684. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2685. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2686. <exception name="IOException" type="java.io.IOException"/>
  2687. <doc>
  2688. <![CDATA[The specification of this method matches that of
  2689. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2690. this file system.
  2691. @param f the path.
  2692. @param recursive recursive flag.
  2693. @throws AccessControlException access control exception.
  2694. @throws FileNotFoundException file not found exception.
  2695. @throws UnresolvedLinkException unresolved link exception.
  2696. @throws IOException raised on errors performing I/O.
  2697. @return if successfully deleted success true, not false.]]>
  2698. </doc>
  2699. </method>
  2700. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2701. abstract="false" native="false" synchronized="false"
  2702. static="false" final="false" visibility="public"
  2703. deprecated="not deprecated">
  2704. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2705. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2706. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2707. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2708. <exception name="IOException" type="java.io.IOException"/>
  2709. <doc>
  2710. <![CDATA[The specification of this method matches that of
  2711. {@link FileContext#open(Path)} except that Path f must be for this
  2712. file system.
  2713. @param f the path.
  2714. @throws AccessControlException access control exception.
  2715. @throws FileNotFoundException file not found exception.
  2716. @throws UnresolvedLinkException unresolved link exception.
  2717. @throws IOException raised on errors performing I/O.
  2718. @return input stream.]]>
  2719. </doc>
  2720. </method>
  2721. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2722. abstract="true" native="false" synchronized="false"
  2723. static="false" final="false" visibility="public"
  2724. deprecated="not deprecated">
  2725. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2726. <param name="bufferSize" type="int"/>
  2727. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2728. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2729. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2730. <exception name="IOException" type="java.io.IOException"/>
  2731. <doc>
  2732. <![CDATA[The specification of this method matches that of
  2733. {@link FileContext#open(Path, int)} except that Path f must be for this
  2734. file system.
  2735. @param f the path.
  2736. @param bufferSize buffer size.
  2737. @throws AccessControlException access control exception.
  2738. @throws FileNotFoundException file not found exception.
  2739. @throws UnresolvedLinkException unresolved link exception.
  2740. @throws IOException raised on errors performing I/O.
  2741. @return if successfully open success true, not false.]]>
  2742. </doc>
  2743. </method>
  2744. <method name="truncate" return="boolean"
  2745. abstract="false" native="false" synchronized="false"
  2746. static="false" final="false" visibility="public"
  2747. deprecated="not deprecated">
  2748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2749. <param name="newLength" type="long"/>
  2750. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2751. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2752. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2753. <exception name="IOException" type="java.io.IOException"/>
  2754. <doc>
  2755. <![CDATA[The specification of this method matches that of
  2756. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2757. this file system.
  2758. @param f the path.
  2759. @param newLength new length.
  2760. @throws AccessControlException access control exception.
  2761. @throws FileNotFoundException file not found exception.
  2762. @throws UnresolvedLinkException unresolved link exception.
  2763. @throws IOException raised on errors performing I/O.
  2764. @return if successfully truncate success true, not false.]]>
  2765. </doc>
  2766. </method>
  2767. <method name="setReplication" return="boolean"
  2768. abstract="true" native="false" synchronized="false"
  2769. static="false" final="false" visibility="public"
  2770. deprecated="not deprecated">
  2771. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2772. <param name="replication" type="short"/>
  2773. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2774. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2775. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2776. <exception name="IOException" type="java.io.IOException"/>
  2777. <doc>
  2778. <![CDATA[The specification of this method matches that of
  2779. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2780. for this file system.
  2781. @param f the path.
  2782. @param replication replication.
  2783. @return if successfully set replication success true, not false.
  2784. @throws AccessControlException access control exception.
  2785. @throws FileNotFoundException file not found exception.
  2786. @throws UnresolvedLinkException unresolved link exception.
  2787. @throws IOException raised on errors performing I/O.]]>
  2788. </doc>
  2789. </method>
  2790. <method name="rename"
  2791. abstract="false" native="false" synchronized="false"
  2792. static="false" final="true" visibility="public"
  2793. deprecated="not deprecated">
  2794. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2795. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2796. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2797. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2798. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2799. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2800. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2801. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2802. <exception name="IOException" type="java.io.IOException"/>
  2803. <doc>
  2804. <![CDATA[The specification of this method matches that of
  2805. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2806. f must be for this file system.
  2807. @param src src.
  2808. @param dst dst.
  2809. @param options options.
  2810. @throws AccessControlException access control exception.
  2811. @throws FileAlreadyExistsException file already exists exception.
  2812. @throws FileNotFoundException file not found exception.
  2813. @throws ParentNotDirectoryException parent not directory exception.
  2814. @throws UnresolvedLinkException unresolved link exception.
  2815. @throws IOException raised on errors performing I/O.]]>
  2816. </doc>
  2817. </method>
  2818. <method name="renameInternal"
  2819. abstract="true" native="false" synchronized="false"
  2820. static="false" final="false" visibility="public"
  2821. deprecated="not deprecated">
  2822. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2823. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2824. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2825. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2826. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2827. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2828. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2829. <exception name="IOException" type="java.io.IOException"/>
  2830. <doc>
  2831. <![CDATA[The specification of this method matches that of
  2832. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2833. f must be for this file system and NO OVERWRITE is performed.
  2834. File systems that do not have a built in overwrite need implement only this
  2835. method and can take advantage of the default impl of the other
  2836. {@link #renameInternal(Path, Path, boolean)}
  2837. @param src src.
  2838. @param dst dst.
  2839. @throws AccessControlException access control exception.
  2840. @throws FileAlreadyExistsException file already exists exception.
  2841. @throws FileNotFoundException file not found exception.
  2842. @throws ParentNotDirectoryException parent not directory exception.
  2843. @throws UnresolvedLinkException unresolved link exception.
  2844. @throws IOException raised on errors performing I/O.]]>
  2845. </doc>
  2846. </method>
  2847. <method name="renameInternal"
  2848. abstract="false" native="false" synchronized="false"
  2849. static="false" final="false" visibility="public"
  2850. deprecated="not deprecated">
  2851. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2852. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2853. <param name="overwrite" type="boolean"/>
  2854. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2855. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2856. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2857. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2858. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2859. <exception name="IOException" type="java.io.IOException"/>
  2860. <doc>
  2861. <![CDATA[The specification of this method matches that of
  2862. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2863. f must be for this file system.
  2864. @param src src.
  2865. @param dst dst.
  2866. @param overwrite overwrite flag.
  2867. @throws AccessControlException access control exception.
  2868. @throws FileAlreadyExistsException file already exists exception.
  2869. @throws FileNotFoundException file not found exception.
  2870. @throws ParentNotDirectoryException parent not directory exception.
  2871. @throws UnresolvedLinkException unresolved link exception.
  2872. @throws IOException raised on errors performing I/O.]]>
  2873. </doc>
  2874. </method>
  2875. <method name="supportsSymlinks" return="boolean"
  2876. abstract="false" native="false" synchronized="false"
  2877. static="false" final="false" visibility="public"
  2878. deprecated="not deprecated">
  2879. <doc>
  2880. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2881. @return true if filesystem supports symlinks]]>
  2882. </doc>
  2883. </method>
  2884. <method name="createSymlink"
  2885. abstract="false" native="false" synchronized="false"
  2886. static="false" final="false" visibility="public"
  2887. deprecated="not deprecated">
  2888. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2889. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2890. <param name="createParent" type="boolean"/>
  2891. <exception name="IOException" type="java.io.IOException"/>
  2892. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2893. <doc>
  2894. <![CDATA[The specification of this method matches that of
  2895. {@link FileContext#createSymlink(Path, Path, boolean)};
  2896. @param target target.
  2897. @param link link.
  2898. @param createParent create parent.
  2899. @throws IOException raised on errors performing I/O.
  2900. @throws UnresolvedLinkException unresolved link exception.]]>
  2901. </doc>
  2902. </method>
  2903. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2904. abstract="false" native="false" synchronized="false"
  2905. static="false" final="false" visibility="public"
  2906. deprecated="not deprecated">
  2907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2908. <exception name="IOException" type="java.io.IOException"/>
  2909. <doc>
  2910. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2911. {@link FSLinkResolver}, and differs from the similarly named method
  2912. {@link FileContext#getLinkTarget(Path)}.
  2913. @param f the path.
  2914. @return target path.
  2915. @throws IOException subclass implementations may throw IOException]]>
  2916. </doc>
  2917. </method>
  2918. <method name="setPermission"
  2919. abstract="true" native="false" synchronized="false"
  2920. static="false" final="false" visibility="public"
  2921. deprecated="not deprecated">
  2922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2923. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2924. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2925. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2926. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2927. <exception name="IOException" type="java.io.IOException"/>
  2928. <doc>
  2929. <![CDATA[The specification of this method matches that of
  2930. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2931. must be for this file system.
  2932. @param f the path.
  2933. @param permission permission.
  2934. @throws AccessControlException access control exception.
  2935. @throws FileNotFoundException file not found exception.
  2936. @throws UnresolvedLinkException unresolved link exception.
  2937. @throws IOException raised on errors performing I/O.]]>
  2938. </doc>
  2939. </method>
  2940. <method name="setOwner"
  2941. abstract="true" native="false" synchronized="false"
  2942. static="false" final="false" visibility="public"
  2943. deprecated="not deprecated">
  2944. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2945. <param name="username" type="java.lang.String"/>
  2946. <param name="groupname" type="java.lang.String"/>
  2947. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2948. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2949. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2950. <exception name="IOException" type="java.io.IOException"/>
  2951. <doc>
  2952. <![CDATA[The specification of this method matches that of
  2953. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2954. be for this file system.
  2955. @param f the path.
  2956. @param username username.
  2957. @param groupname groupname.
  2958. @throws AccessControlException access control exception.
  2959. @throws FileNotFoundException file not found exception.
  2960. @throws UnresolvedLinkException unresolved link exception.
  2961. @throws IOException raised on errors performing I/O.]]>
  2962. </doc>
  2963. </method>
  2964. <method name="setTimes"
  2965. abstract="true" native="false" synchronized="false"
  2966. static="false" final="false" visibility="public"
  2967. deprecated="not deprecated">
  2968. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2969. <param name="mtime" type="long"/>
  2970. <param name="atime" type="long"/>
  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#setTimes(Path, long, long)} except that Path f must be
  2978. for this file system.
  2979. @param f the path.
  2980. @param mtime modify time.
  2981. @param atime access time.
  2982. @throws AccessControlException access control exception.
  2983. @throws FileNotFoundException file not found exception.
  2984. @throws UnresolvedLinkException unresolved link exception.
  2985. @throws IOException raised on errors performing I/O.]]>
  2986. </doc>
  2987. </method>
  2988. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2989. abstract="true" native="false" synchronized="false"
  2990. static="false" final="false" visibility="public"
  2991. deprecated="not deprecated">
  2992. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2993. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2994. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2995. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2996. <exception name="IOException" type="java.io.IOException"/>
  2997. <doc>
  2998. <![CDATA[The specification of this method matches that of
  2999. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  3000. this file system.
  3001. @param f the path.
  3002. @throws AccessControlException access control exception.
  3003. @throws FileNotFoundException file not found exception.
  3004. @throws UnresolvedLinkException unresolved link exception.
  3005. @throws IOException raised on errors performing I/O.
  3006. @return File Check sum.]]>
  3007. </doc>
  3008. </method>
  3009. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3010. abstract="true" native="false" synchronized="false"
  3011. static="false" final="false" visibility="public"
  3012. deprecated="not deprecated">
  3013. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3014. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3015. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3016. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3017. <exception name="IOException" type="java.io.IOException"/>
  3018. <doc>
  3019. <![CDATA[The specification of this method matches that of
  3020. {@link FileContext#getFileStatus(Path)}
  3021. except that an UnresolvedLinkException may be thrown if a symlink is
  3022. encountered in the path.
  3023. @param f the path.
  3024. @throws AccessControlException access control exception.
  3025. @throws FileNotFoundException file not found exception.
  3026. @throws UnresolvedLinkException unresolved link exception.
  3027. @throws IOException raised on errors performing I/O.
  3028. @return File Status]]>
  3029. </doc>
  3030. </method>
  3031. <method name="msync"
  3032. abstract="false" native="false" synchronized="false"
  3033. static="false" final="false" visibility="public"
  3034. deprecated="not deprecated">
  3035. <exception name="IOException" type="java.io.IOException"/>
  3036. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3037. <doc>
  3038. <![CDATA[Synchronize client metadata state.
  3039. <p>
  3040. In some FileSystem implementations such as HDFS metadata
  3041. synchronization is essential to guarantee consistency of read requests
  3042. particularly in HA setting.
  3043. @throws IOException raised on errors performing I/O.
  3044. @throws UnsupportedOperationException Unsupported Operation Exception.]]>
  3045. </doc>
  3046. </method>
  3047. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  3048. abstract="false" native="false" synchronized="false"
  3049. static="false" final="false" visibility="public"
  3050. deprecated="not deprecated">
  3051. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3052. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3053. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3054. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3055. <exception name="IOException" type="java.io.IOException"/>
  3056. <doc>
  3057. <![CDATA[The specification of this method matches that of
  3058. {@link FileContext#getFileLinkStatus(Path)}
  3059. except that an UnresolvedLinkException may be thrown if a symlink is
  3060. encountered in the path leading up to the final path component.
  3061. If the file system does not support symlinks then the behavior is
  3062. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.
  3063. @param f the path.
  3064. @throws AccessControlException access control exception.
  3065. @throws FileNotFoundException file not found exception.
  3066. @throws UnsupportedFileSystemException UnSupported File System Exception.
  3067. @throws IOException raised on errors performing I/O.
  3068. @return file status.]]>
  3069. </doc>
  3070. </method>
  3071. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3072. abstract="true" native="false" synchronized="false"
  3073. static="false" final="false" visibility="public"
  3074. deprecated="not deprecated">
  3075. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3076. <param name="start" type="long"/>
  3077. <param name="len" type="long"/>
  3078. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3079. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3080. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3081. <exception name="IOException" type="java.io.IOException"/>
  3082. <doc>
  3083. <![CDATA[The specification of this method matches that of
  3084. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  3085. Path f must be for this file system.
  3086. @param f the path.
  3087. @param start start.
  3088. @param len length.
  3089. @throws AccessControlException access control exception.
  3090. @throws FileNotFoundException file not found exception.
  3091. @throws UnresolvedLinkException unresolved link exception.
  3092. @throws IOException raised on errors performing I/O.
  3093. @return BlockLocation Array.]]>
  3094. </doc>
  3095. </method>
  3096. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3097. abstract="false" native="false" synchronized="false"
  3098. static="false" final="false" visibility="public"
  3099. deprecated="not deprecated">
  3100. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3101. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3102. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3103. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3104. <exception name="IOException" type="java.io.IOException"/>
  3105. <doc>
  3106. <![CDATA[The specification of this method matches that of
  3107. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  3108. file system.
  3109. @param f the path.
  3110. @throws AccessControlException access control exception.
  3111. @throws FileNotFoundException file not found exception.
  3112. @throws UnresolvedLinkException unresolved link exception.
  3113. @throws IOException raised on errors performing I/O.
  3114. @return Fs Status.]]>
  3115. </doc>
  3116. </method>
  3117. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3118. abstract="true" native="false" synchronized="false"
  3119. static="false" final="false" visibility="public"
  3120. deprecated="not deprecated">
  3121. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3122. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3123. <exception name="IOException" type="java.io.IOException"/>
  3124. <doc>
  3125. <![CDATA[The specification of this method matches that of
  3126. {@link FileContext#getFsStatus(Path)}.
  3127. @throws AccessControlException access control exception.
  3128. @throws FileNotFoundException file not found exception.
  3129. @throws IOException raised on errors performing I/O.
  3130. @return Fs Status.]]>
  3131. </doc>
  3132. </method>
  3133. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  3134. abstract="false" native="false" synchronized="false"
  3135. static="false" final="false" visibility="public"
  3136. deprecated="not deprecated">
  3137. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3138. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3139. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3140. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3141. <exception name="IOException" type="java.io.IOException"/>
  3142. <doc>
  3143. <![CDATA[The specification of this method matches that of
  3144. {@link FileContext#listStatus(Path)} except that Path f must be for this
  3145. file system.
  3146. @param f path.
  3147. @throws AccessControlException access control exception.
  3148. @throws FileNotFoundException file not found exception.
  3149. @throws UnresolvedLinkException unresolved link exception.
  3150. @throws IOException raised on errors performing I/O.
  3151. @return FileStatus Iterator.]]>
  3152. </doc>
  3153. </method>
  3154. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3155. abstract="false" native="false" synchronized="false"
  3156. static="false" final="false" visibility="public"
  3157. deprecated="not deprecated">
  3158. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3159. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3160. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3161. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3162. <exception name="IOException" type="java.io.IOException"/>
  3163. <doc>
  3164. <![CDATA[The specification of this method matches that of
  3165. {@link FileContext#listLocatedStatus(Path)} except that Path f
  3166. must be for this file system.
  3167. In HDFS implementation, the BlockLocation of returned LocatedFileStatus
  3168. will have different formats for replicated and erasure coded file. Please
  3169. refer to {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  3170. for more details.
  3171. @param f the path.
  3172. @throws AccessControlException access control exception.
  3173. @throws FileNotFoundException file not found exception.
  3174. @throws UnresolvedLinkException unresolved link exception.
  3175. @throws IOException raised on errors performing I/O.
  3176. @return FileStatus Iterator.]]>
  3177. </doc>
  3178. </method>
  3179. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3180. abstract="true" native="false" synchronized="false"
  3181. static="false" final="false" visibility="public"
  3182. deprecated="not deprecated">
  3183. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3184. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3185. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3186. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3187. <exception name="IOException" type="java.io.IOException"/>
  3188. <doc>
  3189. <![CDATA[The specification of this method matches that of
  3190. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  3191. for this file system.
  3192. @param f the path.
  3193. @throws AccessControlException access control exception.
  3194. @throws FileNotFoundException file not found exception.
  3195. @throws UnresolvedLinkException unresolved link exception.
  3196. @throws IOException raised on errors performing I/O.
  3197. @return FileStatus Iterator.]]>
  3198. </doc>
  3199. </method>
  3200. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  3201. abstract="false" native="false" synchronized="false"
  3202. static="false" final="false" visibility="public"
  3203. deprecated="not deprecated">
  3204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3205. <exception name="IOException" type="java.io.IOException"/>
  3206. <doc>
  3207. <![CDATA[@return an iterator over the corrupt files under the given path
  3208. (may contain duplicates if a file has more than one corrupt block)
  3209. @param path the path.
  3210. @throws IOException raised on errors performing I/O.]]>
  3211. </doc>
  3212. </method>
  3213. <method name="setVerifyChecksum"
  3214. abstract="true" native="false" synchronized="false"
  3215. static="false" final="false" visibility="public"
  3216. deprecated="not deprecated">
  3217. <param name="verifyChecksum" type="boolean"/>
  3218. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3219. <exception name="IOException" type="java.io.IOException"/>
  3220. <doc>
  3221. <![CDATA[The specification of this method matches that of
  3222. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  3223. must be for this file system.
  3224. @param verifyChecksum verify check sum flag.
  3225. @throws AccessControlException access control exception.
  3226. @throws IOException raised on errors performing I/O.]]>
  3227. </doc>
  3228. </method>
  3229. <method name="getCanonicalServiceName" return="java.lang.String"
  3230. abstract="false" native="false" synchronized="false"
  3231. static="false" final="false" visibility="public"
  3232. deprecated="not deprecated">
  3233. <doc>
  3234. <![CDATA[Get a canonical name for this file system.
  3235. @return a URI string that uniquely identifies this file system]]>
  3236. </doc>
  3237. </method>
  3238. <method name="modifyAclEntries"
  3239. abstract="false" native="false" synchronized="false"
  3240. static="false" final="false" visibility="public"
  3241. deprecated="not deprecated">
  3242. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3243. <param name="aclSpec" type="java.util.List"/>
  3244. <exception name="IOException" type="java.io.IOException"/>
  3245. <doc>
  3246. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  3247. entries or modify the permissions on existing ACL entries. All existing
  3248. ACL entries that are not specified in this call are retained without
  3249. changes. (Modifications are merged into the current ACL.)
  3250. @param path Path to modify
  3251. @param aclSpec List{@literal <AclEntry>} describing modifications
  3252. @throws IOException if an ACL could not be modified]]>
  3253. </doc>
  3254. </method>
  3255. <method name="removeAclEntries"
  3256. abstract="false" native="false" synchronized="false"
  3257. static="false" final="false" visibility="public"
  3258. deprecated="not deprecated">
  3259. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3260. <param name="aclSpec" type="java.util.List"/>
  3261. <exception name="IOException" type="java.io.IOException"/>
  3262. <doc>
  3263. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  3264. retained.
  3265. @param path Path to modify
  3266. @param aclSpec List{@literal <AclEntry>} describing entries to remove
  3267. @throws IOException if an ACL could not be modified]]>
  3268. </doc>
  3269. </method>
  3270. <method name="removeDefaultAcl"
  3271. abstract="false" native="false" synchronized="false"
  3272. static="false" final="false" visibility="public"
  3273. deprecated="not deprecated">
  3274. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3275. <exception name="IOException" type="java.io.IOException"/>
  3276. <doc>
  3277. <![CDATA[Removes all default ACL entries from files and directories.
  3278. @param path Path to modify
  3279. @throws IOException if an ACL could not be modified]]>
  3280. </doc>
  3281. </method>
  3282. <method name="removeAcl"
  3283. abstract="false" native="false" synchronized="false"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3287. <exception name="IOException" type="java.io.IOException"/>
  3288. <doc>
  3289. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  3290. for user, group, and others are retained for compatibility with permission
  3291. bits.
  3292. @param path Path to modify
  3293. @throws IOException if an ACL could not be removed]]>
  3294. </doc>
  3295. </method>
  3296. <method name="setAcl"
  3297. abstract="false" native="false" synchronized="false"
  3298. static="false" final="false" visibility="public"
  3299. deprecated="not deprecated">
  3300. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3301. <param name="aclSpec" type="java.util.List"/>
  3302. <exception name="IOException" type="java.io.IOException"/>
  3303. <doc>
  3304. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  3305. entries.
  3306. @param path Path to modify
  3307. @param aclSpec List{@literal <AclEntry>} describing modifications, must
  3308. include entries for user, group, and others for compatibility with
  3309. permission bits.
  3310. @throws IOException if an ACL could not be modified]]>
  3311. </doc>
  3312. </method>
  3313. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  3314. abstract="false" native="false" synchronized="false"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3318. <exception name="IOException" type="java.io.IOException"/>
  3319. <doc>
  3320. <![CDATA[Gets the ACLs of files and directories.
  3321. @param path Path to get
  3322. @return RemoteIterator{@literal <AclStatus>} which returns each AclStatus
  3323. @throws IOException if an ACL could not be read]]>
  3324. </doc>
  3325. </method>
  3326. <method name="setXAttr"
  3327. abstract="false" native="false" synchronized="false"
  3328. static="false" final="false" visibility="public"
  3329. deprecated="not deprecated">
  3330. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3331. <param name="name" type="java.lang.String"/>
  3332. <param name="value" type="byte[]"/>
  3333. <exception name="IOException" type="java.io.IOException"/>
  3334. <doc>
  3335. <![CDATA[Set an xattr of a file or directory.
  3336. The name must be prefixed with the namespace followed by ".". For example,
  3337. "user.attr".
  3338. <p>
  3339. Refer to the HDFS extended attributes user documentation for details.
  3340. @param path Path to modify
  3341. @param name xattr name.
  3342. @param value xattr value.
  3343. @throws IOException raised on errors performing I/O.]]>
  3344. </doc>
  3345. </method>
  3346. <method name="setXAttr"
  3347. abstract="false" native="false" synchronized="false"
  3348. static="false" final="false" visibility="public"
  3349. deprecated="not deprecated">
  3350. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3351. <param name="name" type="java.lang.String"/>
  3352. <param name="value" type="byte[]"/>
  3353. <param name="flag" type="java.util.EnumSet"/>
  3354. <exception name="IOException" type="java.io.IOException"/>
  3355. <doc>
  3356. <![CDATA[Set an xattr of a file or directory.
  3357. The name must be prefixed with the namespace followed by ".". For example,
  3358. "user.attr".
  3359. <p>
  3360. Refer to the HDFS extended attributes user documentation for details.
  3361. @param path Path to modify
  3362. @param name xattr name.
  3363. @param value xattr value.
  3364. @param flag xattr set flag
  3365. @throws IOException raised on errors performing I/O.]]>
  3366. </doc>
  3367. </method>
  3368. <method name="getXAttr" return="byte[]"
  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="name" type="java.lang.String"/>
  3374. <exception name="IOException" type="java.io.IOException"/>
  3375. <doc>
  3376. <![CDATA[Get an xattr for a file or directory.
  3377. The name must be prefixed with the namespace followed by ".". For example,
  3378. "user.attr".
  3379. <p>
  3380. Refer to the HDFS extended attributes user documentation for details.
  3381. @param path Path to get extended attribute
  3382. @param name xattr name.
  3383. @return byte[] xattr value.
  3384. @throws IOException raised on errors performing I/O.]]>
  3385. </doc>
  3386. </method>
  3387. <method name="getXAttrs" return="java.util.Map"
  3388. abstract="false" native="false" synchronized="false"
  3389. static="false" final="false" visibility="public"
  3390. deprecated="not deprecated">
  3391. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3392. <exception name="IOException" type="java.io.IOException"/>
  3393. <doc>
  3394. <![CDATA[Get all of the xattrs for a file or directory.
  3395. Only those xattrs for which the logged-in user has permissions to view
  3396. are returned.
  3397. <p>
  3398. Refer to the HDFS extended attributes user documentation for details.
  3399. @param path Path to get extended attributes
  3400. @return {@literal Map<String, byte[]>} describing the XAttrs of the file
  3401. or directory
  3402. @throws IOException raised on errors performing I/O.]]>
  3403. </doc>
  3404. </method>
  3405. <method name="getXAttrs" return="java.util.Map"
  3406. abstract="false" native="false" synchronized="false"
  3407. static="false" final="false" visibility="public"
  3408. deprecated="not deprecated">
  3409. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3410. <param name="names" type="java.util.List"/>
  3411. <exception name="IOException" type="java.io.IOException"/>
  3412. <doc>
  3413. <![CDATA[Get all of the xattrs for a file or directory.
  3414. Only those xattrs for which the logged-in user has permissions to view
  3415. are returned.
  3416. <p>
  3417. Refer to the HDFS extended attributes user documentation for details.
  3418. @param path Path to get extended attributes
  3419. @param names XAttr names.
  3420. @return {@literal Map<String, byte[]>} describing the XAttrs of the file
  3421. or directory
  3422. @throws IOException raised on errors performing I/O.]]>
  3423. </doc>
  3424. </method>
  3425. <method name="listXAttrs" return="java.util.List"
  3426. abstract="false" native="false" synchronized="false"
  3427. static="false" final="false" visibility="public"
  3428. deprecated="not deprecated">
  3429. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3430. <exception name="IOException" type="java.io.IOException"/>
  3431. <doc>
  3432. <![CDATA[Get all of the xattr names for a file or directory.
  3433. Only the xattr names for which the logged-in user has permissions to view
  3434. are returned.
  3435. <p>
  3436. Refer to the HDFS extended attributes user documentation for details.
  3437. @param path Path to get extended attributes
  3438. @return {@literal Map<String, byte[]>} describing the XAttrs of the file
  3439. or directory
  3440. @throws IOException raised on errors performing I/O.]]>
  3441. </doc>
  3442. </method>
  3443. <method name="removeXAttr"
  3444. abstract="false" native="false" synchronized="false"
  3445. static="false" final="false" visibility="public"
  3446. deprecated="not deprecated">
  3447. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3448. <param name="name" type="java.lang.String"/>
  3449. <exception name="IOException" type="java.io.IOException"/>
  3450. <doc>
  3451. <![CDATA[Remove an xattr of a file or directory.
  3452. The name must be prefixed with the namespace followed by ".". For example,
  3453. "user.attr".
  3454. <p>
  3455. Refer to the HDFS extended attributes user documentation for details.
  3456. @param path Path to remove extended attribute
  3457. @param name xattr name
  3458. @throws IOException raised on errors performing I/O.]]>
  3459. </doc>
  3460. </method>
  3461. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  3462. abstract="false" native="false" synchronized="false"
  3463. static="false" final="false" visibility="public"
  3464. deprecated="not deprecated">
  3465. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3466. <param name="snapshotName" type="java.lang.String"/>
  3467. <exception name="IOException" type="java.io.IOException"/>
  3468. <doc>
  3469. <![CDATA[The specification of this method matches that of
  3470. {@link FileContext#createSnapshot(Path, String)}.
  3471. @param path the path.
  3472. @param snapshotName snapshot name.
  3473. @throws IOException raised on errors performing I/O.
  3474. @return path.]]>
  3475. </doc>
  3476. </method>
  3477. <method name="renameSnapshot"
  3478. abstract="false" native="false" synchronized="false"
  3479. static="false" final="false" visibility="public"
  3480. deprecated="not deprecated">
  3481. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3482. <param name="snapshotOldName" type="java.lang.String"/>
  3483. <param name="snapshotNewName" type="java.lang.String"/>
  3484. <exception name="IOException" type="java.io.IOException"/>
  3485. <doc>
  3486. <![CDATA[The specification of this method matches that of
  3487. {@link FileContext#renameSnapshot(Path, String, String)}.
  3488. @param path the path.
  3489. @param snapshotOldName snapshot old name.
  3490. @param snapshotNewName snapshot new name.
  3491. @throws IOException raised on errors performing I/O.]]>
  3492. </doc>
  3493. </method>
  3494. <method name="deleteSnapshot"
  3495. abstract="false" native="false" synchronized="false"
  3496. static="false" final="false" visibility="public"
  3497. deprecated="not deprecated">
  3498. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  3499. <param name="snapshotName" type="java.lang.String"/>
  3500. <exception name="IOException" type="java.io.IOException"/>
  3501. <doc>
  3502. <![CDATA[The specification of this method matches that of
  3503. {@link FileContext#deleteSnapshot(Path, String)}.
  3504. @param snapshotDir snapshot dir.
  3505. @param snapshotName snapshot name.
  3506. @throws IOException raised on errors performing I/O.]]>
  3507. </doc>
  3508. </method>
  3509. <method name="satisfyStoragePolicy"
  3510. abstract="false" native="false" synchronized="false"
  3511. static="false" final="false" visibility="public"
  3512. deprecated="not deprecated">
  3513. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3514. <exception name="IOException" type="java.io.IOException"/>
  3515. <doc>
  3516. <![CDATA[Set the source path to satisfy storage policy.
  3517. @param path The source path referring to either a directory or a file.
  3518. @throws IOException raised on errors performing I/O.]]>
  3519. </doc>
  3520. </method>
  3521. <method name="setStoragePolicy"
  3522. abstract="false" native="false" synchronized="false"
  3523. static="false" final="false" visibility="public"
  3524. deprecated="not deprecated">
  3525. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3526. <param name="policyName" type="java.lang.String"/>
  3527. <exception name="IOException" type="java.io.IOException"/>
  3528. <doc>
  3529. <![CDATA[Set the storage policy for a given file or directory.
  3530. @param path file or directory path.
  3531. @param policyName the name of the target storage policy. The list
  3532. of supported Storage policies can be retrieved
  3533. via {@link #getAllStoragePolicies}.
  3534. @throws IOException raised on errors performing I/O.]]>
  3535. </doc>
  3536. </method>
  3537. <method name="unsetStoragePolicy"
  3538. abstract="false" native="false" synchronized="false"
  3539. static="false" final="false" visibility="public"
  3540. deprecated="not deprecated">
  3541. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3542. <exception name="IOException" type="java.io.IOException"/>
  3543. <doc>
  3544. <![CDATA[Unset the storage policy set for a given file or directory.
  3545. @param src file or directory path.
  3546. @throws IOException raised on errors performing I/O.]]>
  3547. </doc>
  3548. </method>
  3549. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  3550. abstract="false" native="false" synchronized="false"
  3551. static="false" final="false" visibility="public"
  3552. deprecated="not deprecated">
  3553. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3554. <exception name="IOException" type="java.io.IOException"/>
  3555. <doc>
  3556. <![CDATA[Retrieve the storage policy for a given file or directory.
  3557. @param src file or directory path.
  3558. @return storage policy for give file.
  3559. @throws IOException raised on errors performing I/O.]]>
  3560. </doc>
  3561. </method>
  3562. <method name="getAllStoragePolicies" return="java.util.Collection"
  3563. abstract="false" native="false" synchronized="false"
  3564. static="false" final="false" visibility="public"
  3565. deprecated="not deprecated">
  3566. <exception name="IOException" type="java.io.IOException"/>
  3567. <doc>
  3568. <![CDATA[Retrieve all the storage policies supported by this file system.
  3569. @return all storage policies supported by this filesystem.
  3570. @throws IOException raised on errors performing I/O.]]>
  3571. </doc>
  3572. </method>
  3573. <method name="hashCode" return="int"
  3574. abstract="false" native="false" synchronized="false"
  3575. static="false" final="false" visibility="public"
  3576. deprecated="not deprecated">
  3577. </method>
  3578. <method name="equals" return="boolean"
  3579. abstract="false" native="false" synchronized="false"
  3580. static="false" final="false" visibility="public"
  3581. deprecated="not deprecated">
  3582. <param name="other" type="java.lang.Object"/>
  3583. </method>
  3584. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  3585. abstract="false" native="false" synchronized="false"
  3586. static="false" final="false" visibility="public"
  3587. deprecated="not deprecated">
  3588. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3589. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  3590. <exception name="IOException" type="java.io.IOException"/>
  3591. <doc>
  3592. <![CDATA[Open a file with the given set of options.
  3593. The base implementation performs a blocking
  3594. call to {@link #open(Path, int)}in this call;
  3595. the actual outcome is in the returned {@code CompletableFuture}.
  3596. This avoids having to create some thread pool, while still
  3597. setting up the expectation that the {@code get()} call
  3598. is needed to evaluate the result.
  3599. @param path path to the file
  3600. @param parameters open file parameters from the builder.
  3601. @return a future which will evaluate to the opened file.
  3602. @throws IOException failure to resolve the link.
  3603. @throws IllegalArgumentException unknown mandatory key]]>
  3604. </doc>
  3605. </method>
  3606. <method name="hasPathCapability" return="boolean"
  3607. abstract="false" native="false" synchronized="false"
  3608. static="false" final="false" visibility="public"
  3609. deprecated="not deprecated">
  3610. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3611. <param name="capability" type="java.lang.String"/>
  3612. <exception name="IOException" type="java.io.IOException"/>
  3613. </method>
  3614. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  3615. abstract="false" native="false" synchronized="false"
  3616. static="false" final="false" visibility="public"
  3617. deprecated="not deprecated">
  3618. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  3619. <exception name="IOException" type="java.io.IOException"/>
  3620. <doc>
  3621. <![CDATA[Create a multipart uploader.
  3622. @param basePath file path under which all files are uploaded
  3623. @return a MultipartUploaderBuilder object to build the uploader
  3624. @throws IOException if some early checks cause IO failures.
  3625. @throws UnsupportedOperationException if support is checked early.]]>
  3626. </doc>
  3627. </method>
  3628. <method name="methodNotSupported"
  3629. abstract="false" native="false" synchronized="false"
  3630. static="false" final="true" visibility="protected"
  3631. deprecated="not deprecated">
  3632. <doc>
  3633. <![CDATA[Helper method that throws an {@link UnsupportedOperationException} for the
  3634. current {@link FileSystem} method being called.]]>
  3635. </doc>
  3636. </method>
  3637. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3638. transient="false" volatile="false"
  3639. static="false" final="false" visibility="protected"
  3640. deprecated="not deprecated">
  3641. <doc>
  3642. <![CDATA[The statistics for this file system.]]>
  3643. </doc>
  3644. </field>
  3645. <doc>
  3646. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3647. (analogous to the VFS of Unix). Applications do not access this class;
  3648. instead they access files across all file systems using {@link FileContext}.
  3649. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3650. matches the "this" file system (ie same scheme and authority)
  3651. or a Slash-relative name that is assumed to be relative
  3652. to the root of the "this" file system .]]>
  3653. </doc>
  3654. </class>
  3655. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3656. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3657. <class name="AvroFSInput" extends="java.lang.Object"
  3658. abstract="false"
  3659. static="false" final="false" visibility="public"
  3660. deprecated="not deprecated">
  3661. <implements name="java.io.Closeable"/>
  3662. <implements name="org.apache.avro.file.SeekableInput"/>
  3663. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3664. static="false" final="false" visibility="public"
  3665. deprecated="not deprecated">
  3666. <doc>
  3667. <![CDATA[Construct given an {@link FSDataInputStream} and its length.
  3668. @param in inputstream.
  3669. @param len len.]]>
  3670. </doc>
  3671. </constructor>
  3672. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3673. static="false" final="false" visibility="public"
  3674. deprecated="not deprecated">
  3675. <exception name="IOException" type="java.io.IOException"/>
  3676. <doc>
  3677. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.
  3678. @param fc filecontext.
  3679. @param p the path.
  3680. @throws IOException If an I/O error occurred.]]>
  3681. </doc>
  3682. </constructor>
  3683. <method name="length" return="long"
  3684. abstract="false" native="false" synchronized="false"
  3685. static="false" final="false" visibility="public"
  3686. deprecated="not deprecated">
  3687. </method>
  3688. <method name="read" return="int"
  3689. abstract="false" native="false" synchronized="false"
  3690. static="false" final="false" visibility="public"
  3691. deprecated="not deprecated">
  3692. <param name="b" type="byte[]"/>
  3693. <param name="off" type="int"/>
  3694. <param name="len" type="int"/>
  3695. <exception name="IOException" type="java.io.IOException"/>
  3696. </method>
  3697. <method name="seek"
  3698. abstract="false" native="false" synchronized="false"
  3699. static="false" final="false" visibility="public"
  3700. deprecated="not deprecated">
  3701. <param name="p" type="long"/>
  3702. <exception name="IOException" type="java.io.IOException"/>
  3703. </method>
  3704. <method name="tell" return="long"
  3705. abstract="false" native="false" synchronized="false"
  3706. static="false" final="false" visibility="public"
  3707. deprecated="not deprecated">
  3708. <exception name="IOException" type="java.io.IOException"/>
  3709. </method>
  3710. <method name="close"
  3711. abstract="false" native="false" synchronized="false"
  3712. static="false" final="false" visibility="public"
  3713. deprecated="not deprecated">
  3714. <exception name="IOException" type="java.io.IOException"/>
  3715. </method>
  3716. <doc>
  3717. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3718. </doc>
  3719. </class>
  3720. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3721. <!-- start interface org.apache.hadoop.fs.BatchListingOperations -->
  3722. <interface name="BatchListingOperations" abstract="true"
  3723. static="false" final="false" visibility="public"
  3724. deprecated="not deprecated">
  3725. <method name="batchedListStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  3726. abstract="true" native="false" synchronized="false"
  3727. static="false" final="false" visibility="public"
  3728. deprecated="not deprecated">
  3729. <param name="paths" type="java.util.List"/>
  3730. <exception name="IOException" type="java.io.IOException"/>
  3731. <doc>
  3732. <![CDATA[Batched listing API that returns {@link PartialListing}s for the
  3733. passed Paths.
  3734. @param paths List of paths to list.
  3735. @return RemoteIterator that returns corresponding PartialListings.
  3736. @throws IOException failure]]>
  3737. </doc>
  3738. </method>
  3739. <method name="batchedListLocatedStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  3740. abstract="true" native="false" synchronized="false"
  3741. static="false" final="false" visibility="public"
  3742. deprecated="not deprecated">
  3743. <param name="paths" type="java.util.List"/>
  3744. <exception name="IOException" type="java.io.IOException"/>
  3745. <doc>
  3746. <![CDATA[Batched listing API that returns {@link PartialListing}s for the passed
  3747. Paths. The PartialListing will contain {@link LocatedFileStatus} entries
  3748. with locations.
  3749. @param paths List of paths to list.
  3750. @return RemoteIterator that returns corresponding PartialListings.
  3751. @throws IOException failure]]>
  3752. </doc>
  3753. </method>
  3754. <doc>
  3755. <![CDATA[Interface filesystems MAY implement to offer a batched list.
  3756. If implemented, filesystems SHOULD declare
  3757. {@link CommonPathCapabilities#FS_EXPERIMENTAL_BATCH_LISTING} to be a supported
  3758. path capability.]]>
  3759. </doc>
  3760. </interface>
  3761. <!-- end interface org.apache.hadoop.fs.BatchListingOperations -->
  3762. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3763. <class name="BlockLocation" extends="java.lang.Object"
  3764. abstract="false"
  3765. static="false" final="false" visibility="public"
  3766. deprecated="not deprecated">
  3767. <implements name="java.io.Serializable"/>
  3768. <constructor name="BlockLocation"
  3769. static="false" final="false" visibility="public"
  3770. deprecated="not deprecated">
  3771. <doc>
  3772. <![CDATA[Default Constructor.]]>
  3773. </doc>
  3774. </constructor>
  3775. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3776. static="false" final="false" visibility="public"
  3777. deprecated="not deprecated">
  3778. <doc>
  3779. <![CDATA[Copy constructor.
  3780. @param that blocklocation.]]>
  3781. </doc>
  3782. </constructor>
  3783. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3784. static="false" final="false" visibility="public"
  3785. deprecated="not deprecated">
  3786. <doc>
  3787. <![CDATA[Constructor with host, name, offset and length.
  3788. @param names names array.
  3789. @param hosts host array.
  3790. @param offset offset.
  3791. @param length length.]]>
  3792. </doc>
  3793. </constructor>
  3794. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3795. static="false" final="false" visibility="public"
  3796. deprecated="not deprecated">
  3797. <doc>
  3798. <![CDATA[Constructor with host, name, offset, length and corrupt flag.
  3799. @param names names.
  3800. @param hosts hosts.
  3801. @param offset offset.
  3802. @param length length.
  3803. @param corrupt corrupt.]]>
  3804. </doc>
  3805. </constructor>
  3806. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3807. static="false" final="false" visibility="public"
  3808. deprecated="not deprecated">
  3809. <doc>
  3810. <![CDATA[Constructor with host, name, network topology, offset and length.
  3811. @param names names.
  3812. @param hosts hosts.
  3813. @param topologyPaths topologyPaths.
  3814. @param offset offset.
  3815. @param length length.]]>
  3816. </doc>
  3817. </constructor>
  3818. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3819. static="false" final="false" visibility="public"
  3820. deprecated="not deprecated">
  3821. <doc>
  3822. <![CDATA[Constructor with host, name, network topology, offset, length
  3823. and corrupt flag.
  3824. @param names names.
  3825. @param hosts hosts.
  3826. @param topologyPaths topologyPaths.
  3827. @param offset offset.
  3828. @param length length.
  3829. @param corrupt corrupt.]]>
  3830. </doc>
  3831. </constructor>
  3832. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3833. static="false" final="false" visibility="public"
  3834. deprecated="not deprecated">
  3835. </constructor>
  3836. <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"
  3837. static="false" final="false" visibility="public"
  3838. deprecated="not deprecated">
  3839. </constructor>
  3840. <method name="getHosts" return="java.lang.String[]"
  3841. abstract="false" native="false" synchronized="false"
  3842. static="false" final="false" visibility="public"
  3843. deprecated="not deprecated">
  3844. <exception name="IOException" type="java.io.IOException"/>
  3845. <doc>
  3846. <![CDATA[Get the list of hosts (hostname) hosting this block.
  3847. @return hosts array.
  3848. @throws IOException If an I/O error occurred.]]>
  3849. </doc>
  3850. </method>
  3851. <method name="getCachedHosts" return="java.lang.String[]"
  3852. abstract="false" native="false" synchronized="false"
  3853. static="false" final="false" visibility="public"
  3854. deprecated="not deprecated">
  3855. <doc>
  3856. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block.
  3857. @return cached hosts.]]>
  3858. </doc>
  3859. </method>
  3860. <method name="getNames" return="java.lang.String[]"
  3861. abstract="false" native="false" synchronized="false"
  3862. static="false" final="false" visibility="public"
  3863. deprecated="not deprecated">
  3864. <exception name="IOException" type="java.io.IOException"/>
  3865. <doc>
  3866. <![CDATA[Get the list of names (IP:xferPort) hosting this block.
  3867. @return names array.
  3868. @throws IOException If an I/O error occurred.]]>
  3869. </doc>
  3870. </method>
  3871. <method name="getTopologyPaths" return="java.lang.String[]"
  3872. abstract="false" native="false" synchronized="false"
  3873. static="false" final="false" visibility="public"
  3874. deprecated="not deprecated">
  3875. <exception name="IOException" type="java.io.IOException"/>
  3876. <doc>
  3877. <![CDATA[Get the list of network topology paths for each of the hosts.
  3878. The last component of the path is the "name" (IP:xferPort).
  3879. @return topology paths.
  3880. @throws IOException If an I/O error occurred.]]>
  3881. </doc>
  3882. </method>
  3883. <method name="getStorageIds" return="java.lang.String[]"
  3884. abstract="false" native="false" synchronized="false"
  3885. static="false" final="false" visibility="public"
  3886. deprecated="not deprecated">
  3887. <doc>
  3888. <![CDATA[Get the storageID of each replica of the block.
  3889. @return storage ids.]]>
  3890. </doc>
  3891. </method>
  3892. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3893. abstract="false" native="false" synchronized="false"
  3894. static="false" final="false" visibility="public"
  3895. deprecated="not deprecated">
  3896. <doc>
  3897. <![CDATA[Get the storage type of each replica of the block.
  3898. @return storage type of each replica of the block.]]>
  3899. </doc>
  3900. </method>
  3901. <method name="getOffset" return="long"
  3902. abstract="false" native="false" synchronized="false"
  3903. static="false" final="false" visibility="public"
  3904. deprecated="not deprecated">
  3905. <doc>
  3906. <![CDATA[Get the start offset of file associated with this block.
  3907. @return start offset of file associated with this block.]]>
  3908. </doc>
  3909. </method>
  3910. <method name="getLength" return="long"
  3911. abstract="false" native="false" synchronized="false"
  3912. static="false" final="false" visibility="public"
  3913. deprecated="not deprecated">
  3914. <doc>
  3915. <![CDATA[Get the length of the block.
  3916. @return length of the block.]]>
  3917. </doc>
  3918. </method>
  3919. <method name="isCorrupt" return="boolean"
  3920. abstract="false" native="false" synchronized="false"
  3921. static="false" final="false" visibility="public"
  3922. deprecated="not deprecated">
  3923. <doc>
  3924. <![CDATA[Get the corrupt flag.
  3925. @return corrupt flag.]]>
  3926. </doc>
  3927. </method>
  3928. <method name="isStriped" return="boolean"
  3929. abstract="false" native="false" synchronized="false"
  3930. static="false" final="false" visibility="public"
  3931. deprecated="not deprecated">
  3932. <doc>
  3933. <![CDATA[Return true if the block is striped (erasure coded).
  3934. @return if the block is striped true, not false.]]>
  3935. </doc>
  3936. </method>
  3937. <method name="setOffset"
  3938. abstract="false" native="false" synchronized="false"
  3939. static="false" final="false" visibility="public"
  3940. deprecated="not deprecated">
  3941. <param name="offset" type="long"/>
  3942. <doc>
  3943. <![CDATA[Set the start offset of file associated with this block.
  3944. @param offset start offset.]]>
  3945. </doc>
  3946. </method>
  3947. <method name="setLength"
  3948. abstract="false" native="false" synchronized="false"
  3949. static="false" final="false" visibility="public"
  3950. deprecated="not deprecated">
  3951. <param name="length" type="long"/>
  3952. <doc>
  3953. <![CDATA[Set the length of block.
  3954. @param length length of block.]]>
  3955. </doc>
  3956. </method>
  3957. <method name="setCorrupt"
  3958. abstract="false" native="false" synchronized="false"
  3959. static="false" final="false" visibility="public"
  3960. deprecated="not deprecated">
  3961. <param name="corrupt" type="boolean"/>
  3962. <doc>
  3963. <![CDATA[Set the corrupt flag.
  3964. @param corrupt corrupt flag.]]>
  3965. </doc>
  3966. </method>
  3967. <method name="setHosts"
  3968. abstract="false" native="false" synchronized="false"
  3969. static="false" final="false" visibility="public"
  3970. deprecated="not deprecated">
  3971. <param name="hosts" type="java.lang.String[]"/>
  3972. <exception name="IOException" type="java.io.IOException"/>
  3973. <doc>
  3974. <![CDATA[Set the hosts hosting this block.
  3975. @param hosts hosts array.
  3976. @throws IOException If an I/O error occurred.]]>
  3977. </doc>
  3978. </method>
  3979. <method name="setCachedHosts"
  3980. abstract="false" native="false" synchronized="false"
  3981. static="false" final="false" visibility="public"
  3982. deprecated="not deprecated">
  3983. <param name="cachedHosts" type="java.lang.String[]"/>
  3984. <doc>
  3985. <![CDATA[Set the hosts hosting a cached replica of this block.
  3986. @param cachedHosts cached hosts.]]>
  3987. </doc>
  3988. </method>
  3989. <method name="setNames"
  3990. abstract="false" native="false" synchronized="false"
  3991. static="false" final="false" visibility="public"
  3992. deprecated="not deprecated">
  3993. <param name="names" type="java.lang.String[]"/>
  3994. <exception name="IOException" type="java.io.IOException"/>
  3995. <doc>
  3996. <![CDATA[Set the names (host:port) hosting this block.
  3997. @param names names.
  3998. @throws IOException If an I/O error occurred.]]>
  3999. </doc>
  4000. </method>
  4001. <method name="setTopologyPaths"
  4002. abstract="false" native="false" synchronized="false"
  4003. static="false" final="false" visibility="public"
  4004. deprecated="not deprecated">
  4005. <param name="topologyPaths" type="java.lang.String[]"/>
  4006. <exception name="IOException" type="java.io.IOException"/>
  4007. <doc>
  4008. <![CDATA[Set the network topology paths of the hosts.
  4009. @param topologyPaths topology paths.
  4010. @throws IOException If an I/O error occurred.]]>
  4011. </doc>
  4012. </method>
  4013. <method name="setStorageIds"
  4014. abstract="false" native="false" synchronized="false"
  4015. static="false" final="false" visibility="public"
  4016. deprecated="not deprecated">
  4017. <param name="storageIds" type="java.lang.String[]"/>
  4018. </method>
  4019. <method name="setStorageTypes"
  4020. abstract="false" native="false" synchronized="false"
  4021. static="false" final="false" visibility="public"
  4022. deprecated="not deprecated">
  4023. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  4024. </method>
  4025. <method name="toString" return="java.lang.String"
  4026. abstract="false" native="false" synchronized="false"
  4027. static="false" final="false" visibility="public"
  4028. deprecated="not deprecated">
  4029. </method>
  4030. <doc>
  4031. <![CDATA[Represents the network location of a block, information about the hosts
  4032. that contain block replicas, and other block metadata (E.g. the file
  4033. offset associated with the block, length, whether it is corrupt, etc).
  4034. For a single BlockLocation, it will have different meanings for replicated
  4035. and erasure coded files.
  4036. If the file is 3-replicated, offset and length of a BlockLocation represent
  4037. the absolute value in the file and the hosts are the 3 datanodes that
  4038. holding the replicas. Here is an example:
  4039. <pre>
  4040. BlockLocation(offset: 0, length: BLOCK_SIZE,
  4041. hosts: {"host1:9866", "host2:9866, host3:9866"})
  4042. </pre>
  4043. And if the file is erasure-coded, each BlockLocation represents a logical
  4044. block groups. Value offset is the offset of a block group in the file and
  4045. value length is the total length of a block group. Hosts of a BlockLocation
  4046. are the datanodes that holding all the data blocks and parity blocks of a
  4047. block group.
  4048. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  4049. A BlockLocation example will be like:
  4050. <pre>
  4051. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  4052. "host2:9866","host3:9866","host4:9866","host5:9866"})
  4053. </pre>
  4054. Please refer to
  4055. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)} or
  4056. {@link FileContext#getFileBlockLocations(Path, long, long)}
  4057. for more examples.]]>
  4058. </doc>
  4059. </class>
  4060. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  4061. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  4062. <interface name="BlockStoragePolicySpi" abstract="true"
  4063. static="false" final="false" visibility="public"
  4064. deprecated="not deprecated">
  4065. <method name="getName" return="java.lang.String"
  4066. abstract="true" native="false" synchronized="false"
  4067. static="false" final="false" visibility="public"
  4068. deprecated="not deprecated">
  4069. <doc>
  4070. <![CDATA[Return the name of the storage policy. Policies are uniquely
  4071. identified by name.
  4072. @return the name of the storage policy.]]>
  4073. </doc>
  4074. </method>
  4075. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  4076. abstract="true" native="false" synchronized="false"
  4077. static="false" final="false" visibility="public"
  4078. deprecated="not deprecated">
  4079. <doc>
  4080. <![CDATA[Return the preferred storage types associated with this policy. These
  4081. storage types are used sequentially for successive block replicas.
  4082. @return preferred storage types used for placing block replicas.]]>
  4083. </doc>
  4084. </method>
  4085. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  4086. abstract="true" native="false" synchronized="false"
  4087. static="false" final="false" visibility="public"
  4088. deprecated="not deprecated">
  4089. <doc>
  4090. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  4091. storage types are used if the preferred storage types are not available.
  4092. @return fallback storage types for new block replicas..]]>
  4093. </doc>
  4094. </method>
  4095. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  4096. abstract="true" native="false" synchronized="false"
  4097. static="false" final="false" visibility="public"
  4098. deprecated="not deprecated">
  4099. <doc>
  4100. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  4101. Fallback storage types are used if the preferred storage types are not
  4102. available.
  4103. @return fallback storage types for replicating existing block replicas.]]>
  4104. </doc>
  4105. </method>
  4106. <method name="isCopyOnCreateFile" return="boolean"
  4107. abstract="true" native="false" synchronized="false"
  4108. static="false" final="false" visibility="public"
  4109. deprecated="not deprecated">
  4110. <doc>
  4111. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  4112. an existing file.
  4113. @return true if the policy is inherit-only.]]>
  4114. </doc>
  4115. </method>
  4116. <doc>
  4117. <![CDATA[A storage policy specifies the placement of block replicas on specific
  4118. storage types.]]>
  4119. </doc>
  4120. </interface>
  4121. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  4122. <!-- start interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  4123. <interface name="ByteBufferPositionedReadable" abstract="true"
  4124. static="false" final="false" visibility="public"
  4125. deprecated="not deprecated">
  4126. <method name="read" return="int"
  4127. abstract="true" native="false" synchronized="false"
  4128. static="false" final="false" visibility="public"
  4129. deprecated="not deprecated">
  4130. <param name="position" type="long"/>
  4131. <param name="buf" type="java.nio.ByteBuffer"/>
  4132. <exception name="IOException" type="java.io.IOException"/>
  4133. <doc>
  4134. <![CDATA[Reads up to {@code buf.remaining()} bytes into buf from a given position
  4135. in the file and returns the number of bytes read. Callers should use
  4136. {@code buf.limit(...)} to control the size of the desired read and
  4137. {@code buf.position(...)} to control the offset into the buffer the data
  4138. should be written to.
  4139. <p>
  4140. After a successful call, {@code buf.position()} will be advanced by the
  4141. number of bytes read and {@code buf.limit()} will be unchanged.
  4142. <p>
  4143. In the case of an exception, the state of the buffer (the contents of the
  4144. buffer, the {@code buf.position()}, the {@code buf.limit()}, etc.) is
  4145. undefined, and callers should be prepared to recover from this
  4146. eventuality.
  4147. <p>
  4148. Callers should use {@link StreamCapabilities#hasCapability(String)} with
  4149. {@link StreamCapabilities#PREADBYTEBUFFER} to check if the underlying
  4150. stream supports this interface, otherwise they might get a
  4151. {@link UnsupportedOperationException}.
  4152. <p>
  4153. Implementations should treat 0-length requests as legitimate, and must not
  4154. signal an error upon their receipt.
  4155. <p>
  4156. This does not change the current offset of a file, and is thread-safe.
  4157. @param position position within file
  4158. @param buf the ByteBuffer to receive the results of the read operation.
  4159. @return the number of bytes read, possibly zero, or -1 if reached
  4160. end-of-stream
  4161. @throws IOException if there is some error performing the read]]>
  4162. </doc>
  4163. </method>
  4164. <method name="readFully"
  4165. abstract="true" native="false" synchronized="false"
  4166. static="false" final="false" visibility="public"
  4167. deprecated="not deprecated">
  4168. <param name="position" type="long"/>
  4169. <param name="buf" type="java.nio.ByteBuffer"/>
  4170. <exception name="IOException" type="java.io.IOException"/>
  4171. <doc>
  4172. <![CDATA[Reads {@code buf.remaining()} bytes into buf from a given position in
  4173. the file or until the end of the data was reached before the read
  4174. operation completed. Callers should use {@code buf.limit(...)} to
  4175. control the size of the desired read and {@code buf.position(...)} to
  4176. control the offset into the buffer the data should be written to.
  4177. <p>
  4178. This operation provides similar semantics to
  4179. {@link #read(long, ByteBuffer)}, the difference is that this method is
  4180. guaranteed to read data until the {@link ByteBuffer} is full, or until
  4181. the end of the data stream is reached.
  4182. @param position position within file
  4183. @param buf the ByteBuffer to receive the results of the read operation.
  4184. @throws IOException if there is some error performing the read
  4185. @throws EOFException the end of the data was reached before
  4186. the read operation completed
  4187. @see #read(long, ByteBuffer)]]>
  4188. </doc>
  4189. </method>
  4190. <doc>
  4191. <![CDATA[Implementers of this interface provide a positioned read API that writes to a
  4192. {@link ByteBuffer} rather than a {@code byte[]}.
  4193. @see PositionedReadable
  4194. @see ByteBufferReadable]]>
  4195. </doc>
  4196. </interface>
  4197. <!-- end interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  4198. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  4199. <interface name="ByteBufferReadable" abstract="true"
  4200. static="false" final="false" visibility="public"
  4201. deprecated="not deprecated">
  4202. <method name="read" return="int"
  4203. abstract="true" native="false" synchronized="false"
  4204. static="false" final="false" visibility="public"
  4205. deprecated="not deprecated">
  4206. <param name="buf" type="java.nio.ByteBuffer"/>
  4207. <exception name="IOException" type="java.io.IOException"/>
  4208. <doc>
  4209. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  4210. buf.limit(..) to control the size of the desired read.
  4211. <p>
  4212. After a successful call, {@code buf.position()} will be advanced by the
  4213. number of bytes read and {@code buf.limit()} will be unchanged.
  4214. <p>
  4215. In the case of an exception, the state of the buffer (the contents of the
  4216. buffer, the {@code buf.position()}, the {@code buf.limit()}, etc.) is
  4217. undefined, and callers should be prepared to recover from this
  4218. eventuality.
  4219. <p>
  4220. Callers should use {@link StreamCapabilities#hasCapability(String)} with
  4221. {@link StreamCapabilities#READBYTEBUFFER} to check if the underlying
  4222. stream supports this interface, otherwise they might get a
  4223. {@link UnsupportedOperationException}.
  4224. <p>
  4225. Implementations should treat 0-length requests as legitimate, and must not
  4226. signal an error upon their receipt.
  4227. @param buf
  4228. the ByteBuffer to receive the results of the read operation.
  4229. @return the number of bytes read, possibly zero, or -1 if
  4230. reach end-of-stream
  4231. @throws IOException
  4232. if there is some error performing the read]]>
  4233. </doc>
  4234. </method>
  4235. <doc>
  4236. <![CDATA[Implementers of this interface provide a read API that writes to a
  4237. ByteBuffer, not a byte[].]]>
  4238. </doc>
  4239. </interface>
  4240. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  4241. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  4242. <interface name="CanSetDropBehind" abstract="true"
  4243. static="false" final="false" visibility="public"
  4244. deprecated="not deprecated">
  4245. <method name="setDropBehind"
  4246. abstract="true" native="false" synchronized="false"
  4247. static="false" final="false" visibility="public"
  4248. deprecated="not deprecated">
  4249. <param name="dropCache" type="java.lang.Boolean"/>
  4250. <exception name="IOException" type="java.io.IOException"/>
  4251. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4252. <doc>
  4253. <![CDATA[Configure whether the stream should drop the cache.
  4254. @param dropCache Whether to drop the cache. null means to use the
  4255. default value.
  4256. @throws IOException If there was an error changing the dropBehind
  4257. setting.
  4258. UnsupportedOperationException If this stream doesn't support
  4259. setting the drop-behind.]]>
  4260. </doc>
  4261. </method>
  4262. </interface>
  4263. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  4264. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  4265. <interface name="CanSetReadahead" abstract="true"
  4266. static="false" final="false" visibility="public"
  4267. deprecated="not deprecated">
  4268. <method name="setReadahead"
  4269. abstract="true" native="false" synchronized="false"
  4270. static="false" final="false" visibility="public"
  4271. deprecated="not deprecated">
  4272. <param name="readahead" type="java.lang.Long"/>
  4273. <exception name="IOException" type="java.io.IOException"/>
  4274. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4275. <doc>
  4276. <![CDATA[Set the readahead on this stream.
  4277. @param readahead The readahead to use. null means to use the default.
  4278. @throws IOException If there was an error changing the dropBehind
  4279. setting.
  4280. UnsupportedOperationException If this stream doesn't support
  4281. setting readahead.]]>
  4282. </doc>
  4283. </method>
  4284. </interface>
  4285. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  4286. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  4287. <interface name="CanUnbuffer" abstract="true"
  4288. static="false" final="false" visibility="public"
  4289. deprecated="not deprecated">
  4290. <method name="unbuffer"
  4291. abstract="true" native="false" synchronized="false"
  4292. static="false" final="false" visibility="public"
  4293. deprecated="not deprecated">
  4294. <doc>
  4295. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  4296. held by the stream, if possible.]]>
  4297. </doc>
  4298. </method>
  4299. <doc>
  4300. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  4301. their buffers on request.]]>
  4302. </doc>
  4303. </interface>
  4304. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  4305. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  4306. <class name="ChecksumException" extends="java.io.IOException"
  4307. abstract="false"
  4308. static="false" final="false" visibility="public"
  4309. deprecated="not deprecated">
  4310. <constructor name="ChecksumException" type="java.lang.String, long"
  4311. static="false" final="false" visibility="public"
  4312. deprecated="not deprecated">
  4313. </constructor>
  4314. <method name="getPos" return="long"
  4315. abstract="false" native="false" synchronized="false"
  4316. static="false" final="false" visibility="public"
  4317. deprecated="not deprecated">
  4318. </method>
  4319. <doc>
  4320. <![CDATA[Thrown for checksum errors.]]>
  4321. </doc>
  4322. </class>
  4323. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  4324. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  4325. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  4326. abstract="true"
  4327. static="false" final="false" visibility="public"
  4328. deprecated="not deprecated">
  4329. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4330. static="false" final="false" visibility="public"
  4331. deprecated="not deprecated">
  4332. </constructor>
  4333. <method name="getApproxChkSumLength" return="double"
  4334. abstract="false" native="false" synchronized="false"
  4335. static="true" final="false" visibility="public"
  4336. deprecated="not deprecated">
  4337. <param name="size" type="long"/>
  4338. </method>
  4339. <method name="setConf"
  4340. abstract="false" native="false" synchronized="false"
  4341. static="false" final="false" visibility="public"
  4342. deprecated="not deprecated">
  4343. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4344. </method>
  4345. <method name="setVerifyChecksum"
  4346. abstract="false" native="false" synchronized="false"
  4347. static="false" final="false" visibility="public"
  4348. deprecated="not deprecated">
  4349. <param name="verifyChecksum" type="boolean"/>
  4350. <doc>
  4351. <![CDATA[Set whether to verify checksum.]]>
  4352. </doc>
  4353. </method>
  4354. <method name="setWriteChecksum"
  4355. abstract="false" native="false" synchronized="false"
  4356. static="false" final="false" visibility="public"
  4357. deprecated="not deprecated">
  4358. <param name="writeChecksum" type="boolean"/>
  4359. </method>
  4360. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  4361. abstract="false" native="false" synchronized="false"
  4362. static="false" final="false" visibility="public"
  4363. deprecated="not deprecated">
  4364. <doc>
  4365. <![CDATA[get the raw file system]]>
  4366. </doc>
  4367. </method>
  4368. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  4369. abstract="false" native="false" synchronized="false"
  4370. static="false" final="false" visibility="public"
  4371. deprecated="not deprecated">
  4372. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4373. <doc>
  4374. <![CDATA[Return the name of the checksum file associated with a file.
  4375. @param file the file path.
  4376. @return name of the checksum file associated with a file.]]>
  4377. </doc>
  4378. </method>
  4379. <method name="isChecksumFile" return="boolean"
  4380. abstract="false" native="false" synchronized="false"
  4381. static="true" final="false" visibility="public"
  4382. deprecated="not deprecated">
  4383. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4384. <doc>
  4385. <![CDATA[Return true if file is a checksum file name.
  4386. @param file the file path.
  4387. @return if file is a checksum file true, not false.]]>
  4388. </doc>
  4389. </method>
  4390. <method name="getChecksumFileLength" return="long"
  4391. abstract="false" native="false" synchronized="false"
  4392. static="false" final="false" visibility="public"
  4393. deprecated="not deprecated">
  4394. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4395. <param name="fileSize" type="long"/>
  4396. <doc>
  4397. <![CDATA[Return the length of the checksum file given the size of the
  4398. actual file.
  4399. @param file the file path.
  4400. @param fileSize file size.
  4401. @return checksum length.]]>
  4402. </doc>
  4403. </method>
  4404. <method name="getBytesPerSum" return="int"
  4405. abstract="false" native="false" synchronized="false"
  4406. static="false" final="false" visibility="public"
  4407. deprecated="not deprecated">
  4408. <doc>
  4409. <![CDATA[Return the bytes Per Checksum.
  4410. @return bytes per check sum.]]>
  4411. </doc>
  4412. </method>
  4413. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4414. abstract="false" native="false" synchronized="false"
  4415. static="false" final="false" visibility="public"
  4416. deprecated="not deprecated">
  4417. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4418. <param name="bufferSize" type="int"/>
  4419. <exception name="IOException" type="java.io.IOException"/>
  4420. <doc>
  4421. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4422. @param f the file name to open
  4423. @param bufferSize the size of the buffer to be used.
  4424. @throws IOException if an I/O error occurs.]]>
  4425. </doc>
  4426. </method>
  4427. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4428. abstract="false" native="false" synchronized="false"
  4429. static="false" final="false" visibility="public"
  4430. deprecated="not deprecated">
  4431. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4432. <param name="bufferSize" type="int"/>
  4433. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4434. <exception name="IOException" type="java.io.IOException"/>
  4435. </method>
  4436. <method name="truncate" 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="newLength" type="long"/>
  4442. <exception name="IOException" type="java.io.IOException"/>
  4443. </method>
  4444. <method name="concat"
  4445. abstract="false" native="false" synchronized="false"
  4446. static="false" final="false" visibility="public"
  4447. deprecated="not deprecated">
  4448. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4449. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  4450. <exception name="IOException" type="java.io.IOException"/>
  4451. </method>
  4452. <method name="getChecksumLength" return="long"
  4453. abstract="false" native="false" synchronized="false"
  4454. static="true" final="false" visibility="public"
  4455. deprecated="not deprecated">
  4456. <param name="size" type="long"/>
  4457. <param name="bytesPerSum" type="int"/>
  4458. <doc>
  4459. <![CDATA[Calculated the length of the checksum file in bytes.
  4460. @param size the length of the data file in bytes
  4461. @param bytesPerSum the number of bytes in a checksum block
  4462. @return the number of bytes in the checksum file]]>
  4463. </doc>
  4464. </method>
  4465. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4466. abstract="false" native="false" synchronized="false"
  4467. static="false" final="false" visibility="public"
  4468. deprecated="not deprecated">
  4469. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4470. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4471. <param name="overwrite" type="boolean"/>
  4472. <param name="bufferSize" type="int"/>
  4473. <param name="replication" type="short"/>
  4474. <param name="blockSize" type="long"/>
  4475. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4476. <exception name="IOException" type="java.io.IOException"/>
  4477. </method>
  4478. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  4479. abstract="false" native="false" synchronized="false"
  4480. static="false" final="false" visibility="public"
  4481. deprecated="not deprecated">
  4482. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4483. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4484. <param name="overwrite" type="boolean"/>
  4485. <param name="bufferSize" type="int"/>
  4486. <param name="replication" type="short"/>
  4487. <param name="blockSize" type="long"/>
  4488. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4489. <exception name="IOException" type="java.io.IOException"/>
  4490. </method>
  4491. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4492. abstract="false" native="false" synchronized="false"
  4493. static="false" final="false" visibility="public"
  4494. deprecated="not deprecated">
  4495. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4496. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4497. <param name="flags" type="java.util.EnumSet"/>
  4498. <param name="bufferSize" type="int"/>
  4499. <param name="replication" type="short"/>
  4500. <param name="blockSize" type="long"/>
  4501. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4502. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  4503. <exception name="IOException" type="java.io.IOException"/>
  4504. </method>
  4505. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  4506. abstract="false" native="false" synchronized="false"
  4507. static="false" final="false" visibility="public"
  4508. deprecated="not deprecated">
  4509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4510. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4511. <param name="flags" type="java.util.EnumSet"/>
  4512. <param name="bufferSize" type="int"/>
  4513. <param name="replication" type="short"/>
  4514. <param name="blockSize" type="long"/>
  4515. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4516. <exception name="IOException" type="java.io.IOException"/>
  4517. </method>
  4518. <method name="setPermission"
  4519. abstract="false" native="false" synchronized="false"
  4520. static="false" final="false" visibility="public"
  4521. deprecated="not deprecated">
  4522. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4523. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4524. <exception name="IOException" type="java.io.IOException"/>
  4525. </method>
  4526. <method name="setOwner"
  4527. abstract="false" native="false" synchronized="false"
  4528. static="false" final="false" visibility="public"
  4529. deprecated="not deprecated">
  4530. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4531. <param name="username" type="java.lang.String"/>
  4532. <param name="groupname" type="java.lang.String"/>
  4533. <exception name="IOException" type="java.io.IOException"/>
  4534. </method>
  4535. <method name="setAcl"
  4536. abstract="false" native="false" synchronized="false"
  4537. static="false" final="false" visibility="public"
  4538. deprecated="not deprecated">
  4539. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4540. <param name="aclSpec" type="java.util.List"/>
  4541. <exception name="IOException" type="java.io.IOException"/>
  4542. </method>
  4543. <method name="modifyAclEntries"
  4544. abstract="false" native="false" synchronized="false"
  4545. static="false" final="false" visibility="public"
  4546. deprecated="not deprecated">
  4547. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4548. <param name="aclSpec" type="java.util.List"/>
  4549. <exception name="IOException" type="java.io.IOException"/>
  4550. </method>
  4551. <method name="removeAcl"
  4552. abstract="false" native="false" synchronized="false"
  4553. static="false" final="false" visibility="public"
  4554. deprecated="not deprecated">
  4555. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4556. <exception name="IOException" type="java.io.IOException"/>
  4557. </method>
  4558. <method name="removeAclEntries"
  4559. abstract="false" native="false" synchronized="false"
  4560. static="false" final="false" visibility="public"
  4561. deprecated="not deprecated">
  4562. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4563. <param name="aclSpec" type="java.util.List"/>
  4564. <exception name="IOException" type="java.io.IOException"/>
  4565. </method>
  4566. <method name="removeDefaultAcl"
  4567. abstract="false" native="false" synchronized="false"
  4568. static="false" final="false" visibility="public"
  4569. deprecated="not deprecated">
  4570. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4571. <exception name="IOException" type="java.io.IOException"/>
  4572. </method>
  4573. <method name="setReplication" return="boolean"
  4574. abstract="false" native="false" synchronized="false"
  4575. static="false" final="false" visibility="public"
  4576. deprecated="not deprecated">
  4577. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4578. <param name="replication" type="short"/>
  4579. <exception name="IOException" type="java.io.IOException"/>
  4580. <doc>
  4581. <![CDATA[Set replication for an existing file.
  4582. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  4583. @param src file name
  4584. @param replication new replication
  4585. @throws IOException if an I/O error occurs.
  4586. @return true if successful;
  4587. false if file does not exist or is a directory]]>
  4588. </doc>
  4589. </method>
  4590. <method name="rename" return="boolean"
  4591. abstract="false" native="false" synchronized="false"
  4592. static="false" final="false" visibility="public"
  4593. deprecated="not deprecated">
  4594. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4595. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4596. <exception name="IOException" type="java.io.IOException"/>
  4597. <doc>
  4598. <![CDATA[Rename files/dirs]]>
  4599. </doc>
  4600. </method>
  4601. <method name="delete" return="boolean"
  4602. abstract="false" native="false" synchronized="false"
  4603. static="false" final="false" visibility="public"
  4604. deprecated="not deprecated">
  4605. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4606. <param name="recursive" type="boolean"/>
  4607. <exception name="IOException" type="java.io.IOException"/>
  4608. <doc>
  4609. <![CDATA[Implement the delete(Path, boolean) in checksum
  4610. file system.]]>
  4611. </doc>
  4612. </method>
  4613. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4614. abstract="false" native="false" synchronized="false"
  4615. static="false" final="false" visibility="public"
  4616. deprecated="not deprecated">
  4617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4618. <exception name="IOException" type="java.io.IOException"/>
  4619. <doc>
  4620. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4621. a directory.
  4622. @param f
  4623. given path
  4624. @return the statuses of the files/directories in the given path
  4625. @throws IOException if an I/O error occurs.]]>
  4626. </doc>
  4627. </method>
  4628. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  4629. abstract="false" native="false" synchronized="false"
  4630. static="false" final="false" visibility="public"
  4631. deprecated="not deprecated">
  4632. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4633. <exception name="IOException" type="java.io.IOException"/>
  4634. </method>
  4635. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4636. abstract="false" native="false" synchronized="false"
  4637. static="false" final="false" visibility="public"
  4638. deprecated="not deprecated">
  4639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4640. <exception name="IOException" type="java.io.IOException"/>
  4641. <doc>
  4642. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4643. a directory.
  4644. @param f
  4645. given path
  4646. @return the statuses of the files/directories in the given patch
  4647. @throws IOException if an I/O error occurs.]]>
  4648. </doc>
  4649. </method>
  4650. <method name="mkdirs" return="boolean"
  4651. abstract="false" native="false" synchronized="false"
  4652. static="false" final="false" visibility="public"
  4653. deprecated="not deprecated">
  4654. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4655. <exception name="IOException" type="java.io.IOException"/>
  4656. </method>
  4657. <method name="copyFromLocalFile"
  4658. abstract="false" native="false" synchronized="false"
  4659. static="false" final="false" visibility="public"
  4660. deprecated="not deprecated">
  4661. <param name="delSrc" type="boolean"/>
  4662. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4663. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4664. <exception name="IOException" type="java.io.IOException"/>
  4665. </method>
  4666. <method name="copyToLocalFile"
  4667. abstract="false" native="false" synchronized="false"
  4668. static="false" final="false" visibility="public"
  4669. deprecated="not deprecated">
  4670. <param name="delSrc" type="boolean"/>
  4671. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4672. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4673. <exception name="IOException" type="java.io.IOException"/>
  4674. <doc>
  4675. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4676. Copy it from FS control to the local dst name.]]>
  4677. </doc>
  4678. </method>
  4679. <method name="copyToLocalFile"
  4680. abstract="false" native="false" synchronized="false"
  4681. static="false" final="false" visibility="public"
  4682. deprecated="not deprecated">
  4683. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4684. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4685. <param name="copyCrc" type="boolean"/>
  4686. <exception name="IOException" type="java.io.IOException"/>
  4687. <doc>
  4688. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4689. Copy it from FS control to the local dst name.
  4690. If src and dst are directories, the copyCrc parameter
  4691. determines whether to copy CRC files.
  4692. @param src src path.
  4693. @param dst dst path.
  4694. @param copyCrc copy csc flag.
  4695. @throws IOException if an I/O error occurs.]]>
  4696. </doc>
  4697. </method>
  4698. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4699. abstract="false" native="false" synchronized="false"
  4700. static="false" final="false" visibility="public"
  4701. deprecated="not deprecated">
  4702. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4703. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4704. <exception name="IOException" type="java.io.IOException"/>
  4705. </method>
  4706. <method name="completeLocalOutput"
  4707. abstract="false" native="false" synchronized="false"
  4708. static="false" final="false" visibility="public"
  4709. deprecated="not deprecated">
  4710. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4711. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4712. <exception name="IOException" type="java.io.IOException"/>
  4713. </method>
  4714. <method name="reportChecksumFailure" return="boolean"
  4715. abstract="false" native="false" synchronized="false"
  4716. static="false" final="false" visibility="public"
  4717. deprecated="not deprecated">
  4718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4719. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4720. <param name="inPos" type="long"/>
  4721. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4722. <param name="sumsPos" type="long"/>
  4723. <doc>
  4724. <![CDATA[Report a checksum error to the file system.
  4725. @param f the file name containing the error
  4726. @param in the stream open on the file
  4727. @param inPos the position of the beginning of the bad data in the file
  4728. @param sums the stream open on the checksum file
  4729. @param sumsPos the position of the beginning of the bad data in the checksum file
  4730. @return if retry is necessary]]>
  4731. </doc>
  4732. </method>
  4733. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  4734. abstract="false" native="false" synchronized="false"
  4735. static="false" final="false" visibility="public"
  4736. deprecated="not deprecated">
  4737. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4738. <exception name="IOException" type="java.io.IOException"/>
  4739. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4740. <doc>
  4741. <![CDATA[This is overridden to ensure that this class's
  4742. {@link #openFileWithOptions}() method is called, and so ultimately
  4743. its {@link #open(Path, int)}.
  4744. {@inheritDoc}]]>
  4745. </doc>
  4746. </method>
  4747. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  4748. abstract="false" native="false" synchronized="false"
  4749. static="false" final="false" visibility="protected"
  4750. deprecated="not deprecated">
  4751. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4752. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  4753. <exception name="IOException" type="java.io.IOException"/>
  4754. <doc>
  4755. <![CDATA[Open the file as a blocking call to {@link #open(Path, int)}.
  4756. {@inheritDoc}]]>
  4757. </doc>
  4758. </method>
  4759. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  4760. abstract="false" native="false" synchronized="false"
  4761. static="false" final="false" visibility="public"
  4762. deprecated="not deprecated">
  4763. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4764. <doc>
  4765. <![CDATA[This is overridden to ensure that this class's create() method is
  4766. ultimately called.
  4767. {@inheritDoc}]]>
  4768. </doc>
  4769. </method>
  4770. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  4771. abstract="false" native="false" synchronized="false"
  4772. static="false" final="false" visibility="public"
  4773. deprecated="not deprecated">
  4774. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4775. <doc>
  4776. <![CDATA[This is overridden to ensure that this class's create() method is
  4777. ultimately called.
  4778. {@inheritDoc}]]>
  4779. </doc>
  4780. </method>
  4781. <method name="hasPathCapability" return="boolean"
  4782. abstract="false" native="false" synchronized="false"
  4783. static="false" final="false" visibility="public"
  4784. deprecated="not deprecated">
  4785. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4786. <param name="capability" type="java.lang.String"/>
  4787. <exception name="IOException" type="java.io.IOException"/>
  4788. <doc>
  4789. <![CDATA[Disable those operations which the checksummed FS blocks.
  4790. {@inheritDoc}]]>
  4791. </doc>
  4792. </method>
  4793. <doc>
  4794. <![CDATA[Abstract Checksumed FileSystem.
  4795. It provide a basic implementation of a Checksumed FileSystem,
  4796. which creates a checksum file for each raw file.
  4797. It generates &amp; verifies checksums at the client side.]]>
  4798. </doc>
  4799. </class>
  4800. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4801. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4802. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4803. abstract="false"
  4804. static="false" final="false" visibility="public"
  4805. deprecated="not deprecated">
  4806. <constructor name="CommonConfigurationKeysPublic"
  4807. static="false" final="false" visibility="public"
  4808. deprecated="not deprecated">
  4809. </constructor>
  4810. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4811. transient="false" volatile="false"
  4812. static="true" final="true" visibility="public"
  4813. deprecated="not deprecated">
  4814. <doc>
  4815. <![CDATA[@see
  4816. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4817. core-default.xml</a>]]>
  4818. </doc>
  4819. </field>
  4820. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4821. transient="false" volatile="false"
  4822. static="true" final="true" visibility="public"
  4823. deprecated="not deprecated">
  4824. <doc>
  4825. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4826. </doc>
  4827. </field>
  4828. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4829. transient="false" volatile="false"
  4830. static="true" final="true" visibility="public"
  4831. deprecated="not deprecated">
  4832. <doc>
  4833. <![CDATA[@see
  4834. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4835. core-default.xml</a>]]>
  4836. </doc>
  4837. </field>
  4838. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4839. transient="false" volatile="false"
  4840. static="true" final="true" visibility="public"
  4841. deprecated="not deprecated">
  4842. <doc>
  4843. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4844. </doc>
  4845. </field>
  4846. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4847. transient="false" volatile="false"
  4848. static="true" final="true" visibility="public"
  4849. deprecated="not deprecated">
  4850. <doc>
  4851. <![CDATA[@see
  4852. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4853. core-default.xml</a>]]>
  4854. </doc>
  4855. </field>
  4856. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4857. transient="false" volatile="false"
  4858. static="true" final="true" visibility="public"
  4859. deprecated="not deprecated">
  4860. <doc>
  4861. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4862. </doc>
  4863. </field>
  4864. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4865. transient="false" volatile="false"
  4866. static="true" final="true" visibility="public"
  4867. deprecated="not deprecated">
  4868. <doc>
  4869. <![CDATA[@see
  4870. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4871. core-default.xml</a>]]>
  4872. </doc>
  4873. </field>
  4874. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4875. transient="false" volatile="false"
  4876. static="true" final="true" visibility="public"
  4877. deprecated="not deprecated">
  4878. <doc>
  4879. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4880. </doc>
  4881. </field>
  4882. <field name="FS_GETSPACEUSED_CLASSNAME" 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="FS_GETSPACEUSED_JITTER_KEY" type="java.lang.String"
  4893. transient="false" volatile="false"
  4894. static="true" final="true" visibility="public"
  4895. deprecated="not deprecated">
  4896. <doc>
  4897. <![CDATA[@see
  4898. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4899. core-default.xml</a>]]>
  4900. </doc>
  4901. </field>
  4902. <field name="FS_GETSPACEUSED_JITTER_DEFAULT" type="long"
  4903. transient="false" volatile="false"
  4904. static="true" final="true" visibility="public"
  4905. deprecated="not deprecated">
  4906. <doc>
  4907. <![CDATA[Default value for FS_GETSPACEUSED_JITTER_KEY]]>
  4908. </doc>
  4909. </field>
  4910. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  4911. transient="false" volatile="false"
  4912. static="true" final="true" visibility="public"
  4913. deprecated="not deprecated">
  4914. <doc>
  4915. <![CDATA[@see
  4916. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4917. core-default.xml</a>]]>
  4918. </doc>
  4919. </field>
  4920. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4921. transient="false" volatile="false"
  4922. static="true" final="true" visibility="public"
  4923. deprecated="not deprecated">
  4924. <doc>
  4925. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4926. </doc>
  4927. </field>
  4928. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4929. transient="false" volatile="false"
  4930. static="true" final="true" visibility="public"
  4931. deprecated="not deprecated">
  4932. <doc>
  4933. <![CDATA[@see
  4934. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4935. core-default.xml</a>]]>
  4936. </doc>
  4937. </field>
  4938. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4939. transient="false" volatile="false"
  4940. static="true" final="true" visibility="public"
  4941. deprecated="not deprecated">
  4942. <doc>
  4943. <![CDATA[@see
  4944. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4945. core-default.xml</a>]]>
  4946. </doc>
  4947. </field>
  4948. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  4949. transient="false" volatile="false"
  4950. static="true" final="true" visibility="public"
  4951. deprecated="not deprecated">
  4952. <doc>
  4953. <![CDATA[@see
  4954. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4955. core-default.xml</a>]]>
  4956. </doc>
  4957. </field>
  4958. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4959. transient="false" volatile="false"
  4960. static="true" final="true" visibility="public"
  4961. deprecated="not deprecated">
  4962. <doc>
  4963. <![CDATA[@see
  4964. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4965. core-default.xml</a>]]>
  4966. </doc>
  4967. </field>
  4968. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4969. transient="false" volatile="false"
  4970. static="true" final="true" visibility="public"
  4971. deprecated="not deprecated">
  4972. </field>
  4973. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4974. transient="false" volatile="false"
  4975. static="true" final="true" visibility="public"
  4976. deprecated="not deprecated">
  4977. <doc>
  4978. <![CDATA[@see
  4979. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4980. core-default.xml</a>]]>
  4981. </doc>
  4982. </field>
  4983. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4984. transient="false" volatile="false"
  4985. static="true" final="true" visibility="public"
  4986. deprecated="not deprecated">
  4987. <doc>
  4988. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4989. </doc>
  4990. </field>
  4991. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4992. transient="false" volatile="false"
  4993. static="true" final="true" visibility="public"
  4994. deprecated="not deprecated">
  4995. <doc>
  4996. <![CDATA[Directories that cannot be removed unless empty, even by an
  4997. administrator.]]>
  4998. </doc>
  4999. </field>
  5000. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  5001. transient="false" volatile="false"
  5002. static="true" final="true" visibility="public"
  5003. deprecated="not deprecated">
  5004. <doc>
  5005. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  5006. </doc>
  5007. </field>
  5008. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  5009. transient="false" volatile="false"
  5010. static="true" final="true" visibility="public"
  5011. deprecated="not deprecated">
  5012. <doc>
  5013. <![CDATA[@see
  5014. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5015. core-default.xml</a>]]>
  5016. </doc>
  5017. </field>
  5018. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  5019. transient="false" volatile="false"
  5020. static="true" final="true" visibility="public"
  5021. deprecated="not deprecated">
  5022. <doc>
  5023. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  5024. </doc>
  5025. </field>
  5026. <field name="FS_CREATION_PARALLEL_COUNT" type="java.lang.String"
  5027. transient="false" volatile="false"
  5028. static="true" final="true" visibility="public"
  5029. deprecated="not deprecated">
  5030. <doc>
  5031. <![CDATA[Number of filesystems instances can be created in parallel.
  5032. <p>
  5033. A higher number here does not necessarily improve performance, especially
  5034. for object stores, where multiple threads may be attempting to create an FS
  5035. instance for the same URI.
  5036. </p>
  5037. Default value: {@value}.]]>
  5038. </doc>
  5039. </field>
  5040. <field name="FS_CREATION_PARALLEL_COUNT_DEFAULT" type="int"
  5041. transient="false" volatile="false"
  5042. static="true" final="true" visibility="public"
  5043. deprecated="not deprecated">
  5044. <doc>
  5045. <![CDATA[Default value for {@link #FS_CREATION_PARALLEL_COUNT}.
  5046. <p>
  5047. Default value: {@value}.
  5048. </p>]]>
  5049. </doc>
  5050. </field>
  5051. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  5052. transient="false" volatile="false"
  5053. static="true" final="true" visibility="public"
  5054. deprecated="not deprecated">
  5055. <doc>
  5056. <![CDATA[@see
  5057. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5058. core-default.xml</a>]]>
  5059. </doc>
  5060. </field>
  5061. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  5062. transient="false" volatile="false"
  5063. static="true" final="true" visibility="public"
  5064. deprecated="not deprecated">
  5065. <doc>
  5066. <![CDATA[@see
  5067. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5068. core-default.xml</a>]]>
  5069. </doc>
  5070. </field>
  5071. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  5072. transient="false" volatile="false"
  5073. static="true" final="true" visibility="public"
  5074. deprecated="not deprecated">
  5075. <doc>
  5076. <![CDATA[@see
  5077. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5078. core-default.xml</a>]]>
  5079. </doc>
  5080. </field>
  5081. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  5082. transient="false" volatile="false"
  5083. static="true" final="true" visibility="public"
  5084. deprecated="not deprecated">
  5085. <doc>
  5086. <![CDATA[@see
  5087. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5088. core-default.xml</a>]]>
  5089. </doc>
  5090. </field>
  5091. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  5092. transient="false" volatile="false"
  5093. static="true" final="true" visibility="public"
  5094. deprecated="not deprecated">
  5095. <doc>
  5096. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  5097. </doc>
  5098. </field>
  5099. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED" type="java.lang.String"
  5100. transient="false" volatile="false"
  5101. static="true" final="true" visibility="public"
  5102. deprecated="not deprecated">
  5103. <doc>
  5104. <![CDATA[@see
  5105. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5106. core-default.xml</a>]]>
  5107. </doc>
  5108. </field>
  5109. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED_DEFAULT" type="boolean"
  5110. transient="false" volatile="false"
  5111. static="true" final="true" visibility="public"
  5112. deprecated="not deprecated">
  5113. <doc>
  5114. <![CDATA[Default value for FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED.]]>
  5115. </doc>
  5116. </field>
  5117. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  5118. transient="false" volatile="false"
  5119. static="true" final="true" visibility="public"
  5120. deprecated="not deprecated">
  5121. <doc>
  5122. <![CDATA[@see
  5123. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5124. core-default.xml</a>]]>
  5125. </doc>
  5126. </field>
  5127. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  5128. transient="false" volatile="false"
  5129. static="true" final="true" visibility="public"
  5130. deprecated="not deprecated">
  5131. <doc>
  5132. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  5133. </doc>
  5134. </field>
  5135. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  5136. transient="false" volatile="false"
  5137. static="true" final="true" visibility="public"
  5138. deprecated="not deprecated">
  5139. <doc>
  5140. <![CDATA[@see
  5141. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5142. core-default.xml</a>]]>
  5143. </doc>
  5144. </field>
  5145. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  5146. transient="false" volatile="false"
  5147. static="true" final="true" visibility="public"
  5148. deprecated="not deprecated">
  5149. <doc>
  5150. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  5151. </doc>
  5152. </field>
  5153. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  5154. transient="false" volatile="false"
  5155. static="true" final="true" visibility="public"
  5156. deprecated="not deprecated">
  5157. <doc>
  5158. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  5159. </doc>
  5160. </field>
  5161. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  5162. transient="false" volatile="false"
  5163. static="true" final="true" visibility="public"
  5164. deprecated="not deprecated">
  5165. <doc>
  5166. <![CDATA[@see
  5167. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5168. core-default.xml</a>]]>
  5169. </doc>
  5170. </field>
  5171. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  5172. transient="false" volatile="false"
  5173. static="true" final="true" visibility="public"
  5174. deprecated="not deprecated">
  5175. <doc>
  5176. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  5177. </doc>
  5178. </field>
  5179. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  5180. transient="false" volatile="false"
  5181. static="true" final="true" visibility="public"
  5182. deprecated="not deprecated">
  5183. <doc>
  5184. <![CDATA[@see
  5185. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5186. core-default.xml</a>]]>
  5187. </doc>
  5188. </field>
  5189. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  5190. transient="false" volatile="false"
  5191. static="true" final="true" visibility="public"
  5192. deprecated="not deprecated">
  5193. <doc>
  5194. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  5195. </doc>
  5196. </field>
  5197. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  5198. transient="false" volatile="false"
  5199. static="true" final="true" visibility="public"
  5200. deprecated="not deprecated">
  5201. <doc>
  5202. <![CDATA[@see
  5203. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5204. core-default.xml</a>]]>
  5205. </doc>
  5206. </field>
  5207. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  5208. transient="false" volatile="false"
  5209. static="true" final="true" visibility="public"
  5210. deprecated="not deprecated">
  5211. <doc>
  5212. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  5213. </doc>
  5214. </field>
  5215. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  5216. transient="false" volatile="false"
  5217. static="true" final="true" visibility="public"
  5218. deprecated="not deprecated">
  5219. <doc>
  5220. <![CDATA[@see
  5221. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5222. core-default.xml</a>]]>
  5223. </doc>
  5224. </field>
  5225. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  5226. transient="false" volatile="false"
  5227. static="true" final="true" visibility="public"
  5228. deprecated="not deprecated">
  5229. <doc>
  5230. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  5231. </doc>
  5232. </field>
  5233. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  5234. transient="false" volatile="false"
  5235. static="true" final="true" visibility="public"
  5236. deprecated="not deprecated">
  5237. <doc>
  5238. <![CDATA[@see
  5239. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5240. core-default.xml</a>]]>
  5241. </doc>
  5242. </field>
  5243. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  5244. transient="false" volatile="false"
  5245. static="true" final="true" visibility="public"
  5246. deprecated="not deprecated">
  5247. <doc>
  5248. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  5249. </doc>
  5250. </field>
  5251. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  5252. transient="false" volatile="false"
  5253. static="true" final="true" visibility="public"
  5254. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  5255. in mapred-default.xml
  5256. See https://issues.apache.org/jira/browse/HADOOP-6801
  5257. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  5258. instead, see {@link #SEQ_IO_SORT_MB_KEY}.">
  5259. <doc>
  5260. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  5261. in mapred-default.xml
  5262. See https://issues.apache.org/jira/browse/HADOOP-6801
  5263. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  5264. instead, see {@link #SEQ_IO_SORT_MB_KEY}.]]>
  5265. </doc>
  5266. </field>
  5267. <field name="IO_SORT_MB_DEFAULT" type="int"
  5268. transient="false" volatile="false"
  5269. static="true" final="true" visibility="public"
  5270. deprecated="not deprecated">
  5271. <doc>
  5272. <![CDATA[Default value for {@link #IO_SORT_MB_KEY}.]]>
  5273. </doc>
  5274. </field>
  5275. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  5276. transient="false" volatile="false"
  5277. static="true" final="true" visibility="public"
  5278. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  5279. in mapred-default.xml
  5280. See https://issues.apache.org/jira/browse/HADOOP-6801
  5281. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  5282. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.">
  5283. <doc>
  5284. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  5285. in mapred-default.xml
  5286. See https://issues.apache.org/jira/browse/HADOOP-6801
  5287. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  5288. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  5289. </doc>
  5290. </field>
  5291. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  5292. transient="false" volatile="false"
  5293. static="true" final="true" visibility="public"
  5294. deprecated="not deprecated">
  5295. <doc>
  5296. <![CDATA[Default value for {@link #IO_SORT_FACTOR_KEY}.]]>
  5297. </doc>
  5298. </field>
  5299. <field name="SEQ_IO_SORT_MB_KEY" type="java.lang.String"
  5300. transient="false" volatile="false"
  5301. static="true" final="true" visibility="public"
  5302. deprecated="not deprecated">
  5303. <doc>
  5304. <![CDATA[@see
  5305. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5306. core-default.xml</a>]]>
  5307. </doc>
  5308. </field>
  5309. <field name="SEQ_IO_SORT_MB_DEFAULT" type="int"
  5310. transient="false" volatile="false"
  5311. static="true" final="true" visibility="public"
  5312. deprecated="not deprecated">
  5313. <doc>
  5314. <![CDATA[Default value for {@link #SEQ_IO_SORT_MB_KEY}.]]>
  5315. </doc>
  5316. </field>
  5317. <field name="SEQ_IO_SORT_FACTOR_KEY" type="java.lang.String"
  5318. transient="false" volatile="false"
  5319. static="true" final="true" visibility="public"
  5320. deprecated="not deprecated">
  5321. <doc>
  5322. <![CDATA[@see
  5323. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5324. core-default.xml</a>]]>
  5325. </doc>
  5326. </field>
  5327. <field name="SEQ_IO_SORT_FACTOR_DEFAULT" type="int"
  5328. transient="false" volatile="false"
  5329. static="true" final="true" visibility="public"
  5330. deprecated="not deprecated">
  5331. <doc>
  5332. <![CDATA[Default value for {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  5333. </doc>
  5334. </field>
  5335. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  5336. transient="false" volatile="false"
  5337. static="true" final="true" visibility="public"
  5338. deprecated="not deprecated">
  5339. <doc>
  5340. <![CDATA[@see
  5341. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5342. core-default.xml</a>]]>
  5343. </doc>
  5344. </field>
  5345. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  5346. transient="false" volatile="false"
  5347. static="true" final="true" visibility="public"
  5348. deprecated="not deprecated">
  5349. <doc>
  5350. <![CDATA[@see
  5351. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5352. core-default.xml</a>]]>
  5353. </doc>
  5354. </field>
  5355. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  5356. transient="false" volatile="false"
  5357. static="true" final="true" visibility="public"
  5358. deprecated="not deprecated">
  5359. <doc>
  5360. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  5361. </doc>
  5362. </field>
  5363. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5364. transient="false" volatile="false"
  5365. static="true" final="true" visibility="public"
  5366. deprecated="not deprecated">
  5367. <doc>
  5368. <![CDATA[@see
  5369. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5370. core-default.xml</a>]]>
  5371. </doc>
  5372. </field>
  5373. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  5374. transient="false" volatile="false"
  5375. static="true" final="true" visibility="public"
  5376. deprecated="not deprecated">
  5377. <doc>
  5378. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  5379. </doc>
  5380. </field>
  5381. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5382. transient="false" volatile="false"
  5383. static="true" final="true" visibility="public"
  5384. deprecated="not deprecated">
  5385. <doc>
  5386. <![CDATA[@see
  5387. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5388. core-default.xml</a>]]>
  5389. </doc>
  5390. </field>
  5391. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  5392. transient="false" volatile="false"
  5393. static="true" final="true" visibility="public"
  5394. deprecated="not deprecated">
  5395. <doc>
  5396. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  5397. </doc>
  5398. </field>
  5399. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  5400. transient="false" volatile="false"
  5401. static="true" final="true" visibility="public"
  5402. deprecated="not deprecated">
  5403. </field>
  5404. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  5405. transient="false" volatile="false"
  5406. static="true" final="true" visibility="public"
  5407. deprecated="not deprecated">
  5408. </field>
  5409. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  5410. transient="false" volatile="false"
  5411. static="true" final="true" visibility="public"
  5412. deprecated="not deprecated">
  5413. </field>
  5414. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  5415. transient="false" volatile="false"
  5416. static="true" final="true" visibility="public"
  5417. deprecated="not deprecated">
  5418. </field>
  5419. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  5420. transient="false" volatile="false"
  5421. static="true" final="true" visibility="public"
  5422. deprecated="not deprecated">
  5423. </field>
  5424. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  5425. transient="false" volatile="false"
  5426. static="true" final="true" visibility="public"
  5427. deprecated="not deprecated">
  5428. </field>
  5429. <field name="HADOOP_CALLER_CONTEXT_SEPARATOR_KEY" type="java.lang.String"
  5430. transient="false" volatile="false"
  5431. static="true" final="true" visibility="public"
  5432. deprecated="not deprecated">
  5433. </field>
  5434. <field name="HADOOP_CALLER_CONTEXT_SEPARATOR_DEFAULT" type="java.lang.String"
  5435. transient="false" volatile="false"
  5436. static="true" final="true" visibility="public"
  5437. deprecated="not deprecated">
  5438. </field>
  5439. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  5440. transient="false" volatile="false"
  5441. static="true" final="true" visibility="public"
  5442. deprecated="not deprecated">
  5443. <doc>
  5444. <![CDATA[@see
  5445. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5446. core-default.xml</a>]]>
  5447. </doc>
  5448. </field>
  5449. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  5450. transient="false" volatile="false"
  5451. static="true" final="true" visibility="public"
  5452. deprecated="not deprecated">
  5453. <doc>
  5454. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  5455. </doc>
  5456. </field>
  5457. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  5458. transient="false" volatile="false"
  5459. static="true" final="true" visibility="public"
  5460. deprecated="not deprecated">
  5461. <doc>
  5462. <![CDATA[@see
  5463. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5464. core-default.xml</a>]]>
  5465. </doc>
  5466. </field>
  5467. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  5468. transient="false" volatile="false"
  5469. static="true" final="true" visibility="public"
  5470. deprecated="not deprecated">
  5471. <doc>
  5472. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  5473. </doc>
  5474. </field>
  5475. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  5476. transient="false" volatile="false"
  5477. static="true" final="true" visibility="public"
  5478. deprecated="not deprecated">
  5479. <doc>
  5480. <![CDATA[@see
  5481. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5482. core-default.xml</a>]]>
  5483. </doc>
  5484. </field>
  5485. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  5486. transient="false" volatile="false"
  5487. static="true" final="true" visibility="public"
  5488. deprecated="not deprecated">
  5489. <doc>
  5490. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  5491. </doc>
  5492. </field>
  5493. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  5494. transient="false" volatile="false"
  5495. static="true" final="true" visibility="public"
  5496. deprecated="not deprecated">
  5497. <doc>
  5498. <![CDATA[@see
  5499. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5500. core-default.xml</a>]]>
  5501. </doc>
  5502. </field>
  5503. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  5504. transient="false" volatile="false"
  5505. static="true" final="true" visibility="public"
  5506. deprecated="not deprecated">
  5507. <doc>
  5508. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  5509. </doc>
  5510. </field>
  5511. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  5512. transient="false" volatile="false"
  5513. static="true" final="true" visibility="public"
  5514. deprecated="not deprecated">
  5515. <doc>
  5516. <![CDATA[@see
  5517. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5518. core-default.xml</a>]]>
  5519. </doc>
  5520. </field>
  5521. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  5522. transient="false" volatile="false"
  5523. static="true" final="true" visibility="public"
  5524. deprecated="not deprecated">
  5525. <doc>
  5526. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  5527. </doc>
  5528. </field>
  5529. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  5530. transient="false" volatile="false"
  5531. static="true" final="true" visibility="public"
  5532. deprecated="not deprecated">
  5533. <doc>
  5534. <![CDATA[@see
  5535. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5536. core-default.xml</a>]]>
  5537. </doc>
  5538. </field>
  5539. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  5540. transient="false" volatile="false"
  5541. static="true" final="true" visibility="public"
  5542. deprecated="not deprecated">
  5543. <doc>
  5544. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  5545. </doc>
  5546. </field>
  5547. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  5548. transient="false" volatile="false"
  5549. static="true" final="true" visibility="public"
  5550. deprecated="not deprecated">
  5551. <doc>
  5552. <![CDATA[Enable low-latency connections from the client]]>
  5553. </doc>
  5554. </field>
  5555. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  5556. transient="false" volatile="false"
  5557. static="true" final="true" visibility="public"
  5558. deprecated="not deprecated">
  5559. <doc>
  5560. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  5561. </doc>
  5562. </field>
  5563. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  5564. transient="false" volatile="false"
  5565. static="true" final="true" visibility="public"
  5566. deprecated="not deprecated">
  5567. <doc>
  5568. <![CDATA[@see
  5569. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5570. core-default.xml</a>]]>
  5571. </doc>
  5572. </field>
  5573. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  5574. transient="false" volatile="false"
  5575. static="true" final="true" visibility="public"
  5576. deprecated="not deprecated">
  5577. <doc>
  5578. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  5579. </doc>
  5580. </field>
  5581. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  5582. transient="false" volatile="false"
  5583. static="true" final="true" visibility="public"
  5584. deprecated="not deprecated">
  5585. <doc>
  5586. <![CDATA[@see
  5587. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5588. core-default.xml</a>]]>
  5589. </doc>
  5590. </field>
  5591. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  5592. transient="false" volatile="false"
  5593. static="true" final="true" visibility="public"
  5594. deprecated="not deprecated">
  5595. <doc>
  5596. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  5597. </doc>
  5598. </field>
  5599. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  5600. transient="false" volatile="false"
  5601. static="true" final="true" visibility="public"
  5602. deprecated="not deprecated">
  5603. <doc>
  5604. <![CDATA[@see
  5605. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5606. core-default.xml</a>]]>
  5607. </doc>
  5608. </field>
  5609. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  5610. transient="false" volatile="false"
  5611. static="true" final="true" visibility="public"
  5612. deprecated="not deprecated">
  5613. <doc>
  5614. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  5615. </doc>
  5616. </field>
  5617. <field name="IPC_SERVER_TCPNODELAY_KEY" 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="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  5628. transient="false" volatile="false"
  5629. static="true" final="true" visibility="public"
  5630. deprecated="not deprecated">
  5631. <doc>
  5632. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  5633. </doc>
  5634. </field>
  5635. <field name="IPC_SERVER_REUSEADDR_KEY" type="java.lang.String"
  5636. transient="false" volatile="false"
  5637. static="true" final="true" visibility="public"
  5638. deprecated="not deprecated">
  5639. <doc>
  5640. <![CDATA[@see
  5641. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5642. core-default.xml</a>]]>
  5643. </doc>
  5644. </field>
  5645. <field name="IPC_SERVER_REUSEADDR_DEFAULT" type="boolean"
  5646. transient="false" volatile="false"
  5647. static="true" final="true" visibility="public"
  5648. deprecated="not deprecated">
  5649. <doc>
  5650. <![CDATA[Default value for IPC_SERVER_REUSEADDR_KEY.]]>
  5651. </doc>
  5652. </field>
  5653. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  5654. transient="false" volatile="false"
  5655. static="true" final="true" visibility="public"
  5656. deprecated="not deprecated">
  5657. <doc>
  5658. <![CDATA[@see
  5659. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5660. core-default.xml</a>]]>
  5661. </doc>
  5662. </field>
  5663. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  5664. transient="false" volatile="false"
  5665. static="true" final="true" visibility="public"
  5666. deprecated="not deprecated">
  5667. <doc>
  5668. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  5669. </doc>
  5670. </field>
  5671. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  5672. transient="false" volatile="false"
  5673. static="true" final="true" visibility="public"
  5674. deprecated="not deprecated">
  5675. <doc>
  5676. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  5677. </doc>
  5678. </field>
  5679. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  5680. transient="false" volatile="false"
  5681. static="true" final="true" visibility="public"
  5682. deprecated="not deprecated">
  5683. </field>
  5684. <field name="IPC_SERVER_PURGE_INTERVAL_MINUTES_KEY" type="java.lang.String"
  5685. transient="false" volatile="false"
  5686. static="true" final="true" visibility="public"
  5687. deprecated="not deprecated">
  5688. </field>
  5689. <field name="IPC_SERVER_PURGE_INTERVAL_MINUTES_DEFAULT" type="int"
  5690. transient="false" volatile="false"
  5691. static="true" final="true" visibility="public"
  5692. deprecated="not deprecated">
  5693. </field>
  5694. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  5695. transient="false" volatile="false"
  5696. static="true" final="true" visibility="public"
  5697. deprecated="not deprecated">
  5698. <doc>
  5699. <![CDATA[@see
  5700. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5701. core-default.xml</a>]]>
  5702. </doc>
  5703. </field>
  5704. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  5705. transient="false" volatile="false"
  5706. static="true" final="true" visibility="public"
  5707. deprecated="not deprecated">
  5708. </field>
  5709. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  5710. transient="false" volatile="false"
  5711. static="true" final="true" visibility="public"
  5712. deprecated="not deprecated">
  5713. <doc>
  5714. <![CDATA[@see
  5715. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5716. core-default.xml</a>]]>
  5717. </doc>
  5718. </field>
  5719. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  5720. transient="false" volatile="false"
  5721. static="true" final="true" visibility="public"
  5722. deprecated="not deprecated">
  5723. <doc>
  5724. <![CDATA[@see
  5725. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5726. core-default.xml</a>]]>
  5727. </doc>
  5728. </field>
  5729. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  5730. transient="false" volatile="false"
  5731. static="true" final="true" visibility="public"
  5732. deprecated="not deprecated">
  5733. <doc>
  5734. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  5735. </doc>
  5736. </field>
  5737. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  5738. transient="false" volatile="false"
  5739. static="true" final="true" visibility="public"
  5740. deprecated="not deprecated">
  5741. <doc>
  5742. <![CDATA[@see
  5743. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5744. core-default.xml</a>]]>
  5745. </doc>
  5746. </field>
  5747. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  5748. transient="false" volatile="false"
  5749. static="true" final="true" visibility="public"
  5750. deprecated="not deprecated">
  5751. <doc>
  5752. <![CDATA[@see
  5753. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5754. core-default.xml</a>]]>
  5755. </doc>
  5756. </field>
  5757. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  5758. transient="false" volatile="false"
  5759. static="true" final="true" visibility="public"
  5760. deprecated="not deprecated">
  5761. <doc>
  5762. <![CDATA[@see
  5763. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5764. core-default.xml</a>]]>
  5765. </doc>
  5766. </field>
  5767. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5768. transient="false" volatile="false"
  5769. static="true" final="true" visibility="public"
  5770. deprecated="not deprecated">
  5771. <doc>
  5772. <![CDATA[@see
  5773. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5774. core-default.xml</a>]]>
  5775. </doc>
  5776. </field>
  5777. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5778. transient="false" volatile="false"
  5779. static="true" final="true" visibility="public"
  5780. deprecated="not deprecated">
  5781. <doc>
  5782. <![CDATA[@see
  5783. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5784. core-default.xml</a>]]>
  5785. </doc>
  5786. </field>
  5787. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5788. transient="false" volatile="false"
  5789. static="true" final="true" visibility="public"
  5790. deprecated="not deprecated">
  5791. <doc>
  5792. <![CDATA[@see
  5793. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5794. core-default.xml</a>]]>
  5795. </doc>
  5796. </field>
  5797. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5798. transient="false" volatile="false"
  5799. static="true" final="true" visibility="public"
  5800. deprecated="not deprecated">
  5801. </field>
  5802. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5803. transient="false" volatile="false"
  5804. static="true" final="true" visibility="public"
  5805. deprecated="not deprecated">
  5806. <doc>
  5807. <![CDATA[@see
  5808. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5809. core-default.xml</a>]]>
  5810. </doc>
  5811. </field>
  5812. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  5813. transient="false" volatile="false"
  5814. static="true" final="true" visibility="public"
  5815. deprecated="not deprecated">
  5816. <doc>
  5817. <![CDATA[@see
  5818. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5819. core-default.xml</a>]]>
  5820. </doc>
  5821. </field>
  5822. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  5823. transient="false" volatile="false"
  5824. static="true" final="true" visibility="public"
  5825. deprecated="not deprecated">
  5826. <doc>
  5827. <![CDATA[@see
  5828. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5829. core-default.xml</a>]]>
  5830. </doc>
  5831. </field>
  5832. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  5833. transient="false" volatile="false"
  5834. static="true" final="true" visibility="public"
  5835. deprecated="not deprecated">
  5836. <doc>
  5837. <![CDATA[@see
  5838. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5839. core-default.xml</a>]]>
  5840. </doc>
  5841. </field>
  5842. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  5843. transient="false" volatile="false"
  5844. static="true" final="true" visibility="public"
  5845. deprecated="not deprecated">
  5846. <doc>
  5847. <![CDATA[@see
  5848. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5849. core-default.xml</a>]]>
  5850. </doc>
  5851. </field>
  5852. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS" type="java.lang.String"
  5853. transient="false" volatile="false"
  5854. static="true" final="true" visibility="public"
  5855. deprecated="use
  5856. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5857. instead.">
  5858. <doc>
  5859. <![CDATA[@deprecated use
  5860. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5861. instead.]]>
  5862. </doc>
  5863. </field>
  5864. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  5865. transient="false" volatile="false"
  5866. static="true" final="true" visibility="public"
  5867. deprecated="not deprecated">
  5868. <doc>
  5869. <![CDATA[@see
  5870. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5871. core-default.xml</a>]]>
  5872. </doc>
  5873. </field>
  5874. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5875. transient="false" volatile="false"
  5876. static="true" final="true" visibility="public"
  5877. deprecated="use
  5878. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5879. instead.">
  5880. <doc>
  5881. <![CDATA[@deprecated use
  5882. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5883. instead.]]>
  5884. </doc>
  5885. </field>
  5886. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5887. transient="false" volatile="false"
  5888. static="true" final="true" visibility="public"
  5889. deprecated="not deprecated">
  5890. <doc>
  5891. <![CDATA[@see
  5892. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5893. core-default.xml</a>]]>
  5894. </doc>
  5895. </field>
  5896. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5897. transient="false" volatile="false"
  5898. static="true" final="true" visibility="public"
  5899. deprecated="not deprecated">
  5900. <doc>
  5901. <![CDATA[@see
  5902. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5903. core-default.xml</a>]]>
  5904. </doc>
  5905. </field>
  5906. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5907. transient="false" volatile="false"
  5908. static="true" final="true" visibility="public"
  5909. deprecated="not deprecated">
  5910. <doc>
  5911. <![CDATA[@see
  5912. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5913. core-default.xml</a>]]>
  5914. </doc>
  5915. </field>
  5916. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5917. transient="false" volatile="false"
  5918. static="true" final="true" visibility="public"
  5919. deprecated="not deprecated">
  5920. <doc>
  5921. <![CDATA[@see
  5922. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5923. core-default.xml</a>]]>
  5924. </doc>
  5925. </field>
  5926. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5927. transient="false" volatile="false"
  5928. static="true" final="true" visibility="public"
  5929. deprecated="not deprecated">
  5930. <doc>
  5931. <![CDATA[@see
  5932. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5933. core-default.xml</a>]]>
  5934. </doc>
  5935. </field>
  5936. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL_MECHANISM" type="java.lang.String"
  5937. transient="false" volatile="false"
  5938. static="true" final="true" visibility="public"
  5939. deprecated="not deprecated">
  5940. <doc>
  5941. <![CDATA[@see
  5942. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5943. core-default.xml</a>]]>
  5944. </doc>
  5945. </field>
  5946. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  5947. transient="false" volatile="false"
  5948. static="true" final="true" visibility="public"
  5949. deprecated="not deprecated">
  5950. <doc>
  5951. <![CDATA[@see
  5952. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5953. core-default.xml</a>]]>
  5954. </doc>
  5955. </field>
  5956. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  5957. transient="false" volatile="false"
  5958. static="true" final="true" visibility="public"
  5959. deprecated="not deprecated">
  5960. <doc>
  5961. <![CDATA[@see
  5962. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5963. core-default.xml</a>]]>
  5964. </doc>
  5965. </field>
  5966. <field name="HADOOP_TOKEN_FILES" type="java.lang.String"
  5967. transient="false" volatile="false"
  5968. static="true" final="true" visibility="public"
  5969. deprecated="not deprecated">
  5970. <doc>
  5971. <![CDATA[@see
  5972. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5973. core-default.xml</a>]]>
  5974. </doc>
  5975. </field>
  5976. <field name="HADOOP_TOKENS" type="java.lang.String"
  5977. transient="false" volatile="false"
  5978. static="true" final="true" visibility="public"
  5979. deprecated="not deprecated">
  5980. </field>
  5981. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  5982. transient="false" volatile="false"
  5983. static="true" final="true" visibility="public"
  5984. deprecated="not deprecated">
  5985. </field>
  5986. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" 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="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_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 for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  6002. </doc>
  6003. </field>
  6004. <field name="HADOOP_KERBEROS_KEYTAB_LOGIN_AUTORENEWAL_ENABLED" 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_KERBEROS_KEYTAB_LOGIN_AUTORENEWAL_ENABLED_DEFAULT" type="boolean"
  6015. transient="false" volatile="false"
  6016. static="true" final="true" visibility="public"
  6017. deprecated="not deprecated">
  6018. <doc>
  6019. <![CDATA[Default value for HADOOP_KERBEROS_KEYTAB_LOGIN_AUTORENEWAL_ENABLED.]]>
  6020. </doc>
  6021. </field>
  6022. <field name="HADOOP_RPC_PROTECTION" 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_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  6033. transient="false" volatile="false"
  6034. static="true" final="true" visibility="public"
  6035. deprecated="not deprecated">
  6036. <doc>
  6037. <![CDATA[Class to override Sasl Properties for a connection]]>
  6038. </doc>
  6039. </field>
  6040. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  6041. transient="false" volatile="false"
  6042. static="true" final="true" visibility="public"
  6043. deprecated="not deprecated">
  6044. </field>
  6045. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  6046. transient="false" volatile="false"
  6047. static="true" final="true" visibility="public"
  6048. deprecated="not deprecated">
  6049. </field>
  6050. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  6051. transient="false" volatile="false"
  6052. static="true" final="true" visibility="public"
  6053. deprecated="not deprecated">
  6054. </field>
  6055. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  6056. transient="false" volatile="false"
  6057. static="true" final="true" visibility="public"
  6058. deprecated="not deprecated">
  6059. <doc>
  6060. <![CDATA[@see
  6061. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6062. core-default.xml</a>]]>
  6063. </doc>
  6064. </field>
  6065. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  6066. transient="false" volatile="false"
  6067. static="true" final="true" visibility="public"
  6068. deprecated="not deprecated">
  6069. </field>
  6070. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  6071. transient="false" volatile="false"
  6072. static="true" final="true" visibility="public"
  6073. deprecated="not deprecated">
  6074. <doc>
  6075. <![CDATA[@see
  6076. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6077. core-default.xml</a>]]>
  6078. </doc>
  6079. </field>
  6080. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" type="java.lang.String"
  6081. transient="false" volatile="false"
  6082. static="true" final="true" visibility="public"
  6083. deprecated="not deprecated">
  6084. <doc>
  6085. <![CDATA[@see
  6086. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6087. core-default.xml</a>]]>
  6088. </doc>
  6089. </field>
  6090. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  6091. transient="false" volatile="false"
  6092. static="true" final="true" visibility="public"
  6093. deprecated="not deprecated">
  6094. <doc>
  6095. <![CDATA[@see
  6096. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6097. core-default.xml</a>]]>
  6098. </doc>
  6099. </field>
  6100. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  6101. transient="false" volatile="false"
  6102. static="true" final="true" visibility="public"
  6103. deprecated="not deprecated">
  6104. <doc>
  6105. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  6106. </doc>
  6107. </field>
  6108. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  6109. transient="false" volatile="false"
  6110. static="true" final="true" visibility="public"
  6111. deprecated="not deprecated">
  6112. <doc>
  6113. <![CDATA[Class to override Impersonation provider]]>
  6114. </doc>
  6115. </field>
  6116. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  6117. transient="false" volatile="false"
  6118. static="true" final="true" visibility="public"
  6119. deprecated="not deprecated">
  6120. <doc>
  6121. <![CDATA[@see
  6122. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6123. core-default.xml</a>]]>
  6124. </doc>
  6125. </field>
  6126. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" type="java.lang.String"
  6127. transient="false" volatile="false"
  6128. static="true" final="true" visibility="public"
  6129. deprecated="not deprecated">
  6130. <doc>
  6131. <![CDATA[@see
  6132. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6133. core-default.xml</a>]]>
  6134. </doc>
  6135. </field>
  6136. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_DEFAULT" type="int"
  6137. transient="false" volatile="false"
  6138. static="true" final="true" visibility="public"
  6139. deprecated="not deprecated">
  6140. <doc>
  6141. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  6142. </doc>
  6143. </field>
  6144. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  6145. transient="false" volatile="false"
  6146. static="true" final="true" visibility="public"
  6147. deprecated="not deprecated">
  6148. <doc>
  6149. <![CDATA[@see
  6150. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6151. core-default.xml</a>]]>
  6152. </doc>
  6153. </field>
  6154. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  6155. transient="false" volatile="false"
  6156. static="true" final="true" visibility="public"
  6157. deprecated="not deprecated">
  6158. <doc>
  6159. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  6160. </doc>
  6161. </field>
  6162. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  6163. transient="false" volatile="false"
  6164. static="true" final="true" visibility="public"
  6165. deprecated="not deprecated">
  6166. <doc>
  6167. <![CDATA[@see
  6168. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6169. core-default.xml</a>]]>
  6170. </doc>
  6171. </field>
  6172. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  6173. transient="false" volatile="false"
  6174. static="true" final="true" visibility="public"
  6175. deprecated="not deprecated">
  6176. <doc>
  6177. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  6178. </doc>
  6179. </field>
  6180. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  6181. transient="false" volatile="false"
  6182. static="true" final="true" visibility="public"
  6183. deprecated="not deprecated">
  6184. <doc>
  6185. <![CDATA[@see
  6186. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6187. core-default.xml</a>]]>
  6188. </doc>
  6189. </field>
  6190. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  6191. transient="false" volatile="false"
  6192. static="true" final="true" visibility="public"
  6193. deprecated="not deprecated">
  6194. <doc>
  6195. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  6196. </doc>
  6197. </field>
  6198. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  6199. transient="false" volatile="false"
  6200. static="true" final="true" visibility="public"
  6201. deprecated="not deprecated">
  6202. <doc>
  6203. <![CDATA[@see
  6204. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6205. core-default.xml</a>]]>
  6206. </doc>
  6207. </field>
  6208. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  6209. transient="false" volatile="false"
  6210. static="true" final="true" visibility="public"
  6211. deprecated="not deprecated">
  6212. <doc>
  6213. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  6214. </doc>
  6215. </field>
  6216. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  6217. transient="false" volatile="false"
  6218. static="true" final="true" visibility="public"
  6219. deprecated="not deprecated">
  6220. <doc>
  6221. <![CDATA[@see
  6222. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6223. core-default.xml</a>]]>
  6224. </doc>
  6225. </field>
  6226. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  6227. transient="false" volatile="false"
  6228. static="true" final="true" visibility="public"
  6229. deprecated="not deprecated">
  6230. <doc>
  6231. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  6232. </doc>
  6233. </field>
  6234. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  6235. transient="false" volatile="false"
  6236. static="true" final="true" visibility="public"
  6237. deprecated="not deprecated">
  6238. <doc>
  6239. <![CDATA[@see
  6240. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6241. core-default.xml</a>]]>
  6242. </doc>
  6243. </field>
  6244. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  6245. transient="false" volatile="false"
  6246. static="true" final="true" visibility="public"
  6247. deprecated="not deprecated">
  6248. </field>
  6249. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  6250. transient="false" volatile="false"
  6251. static="true" final="true" visibility="public"
  6252. deprecated="not deprecated">
  6253. <doc>
  6254. <![CDATA[Default value is the number of providers specified.]]>
  6255. </doc>
  6256. </field>
  6257. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  6258. transient="false" volatile="false"
  6259. static="true" final="true" visibility="public"
  6260. deprecated="not deprecated">
  6261. <doc>
  6262. <![CDATA[@see
  6263. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6264. core-default.xml</a>]]>
  6265. </doc>
  6266. </field>
  6267. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  6268. transient="false" volatile="false"
  6269. static="true" final="true" visibility="public"
  6270. deprecated="not deprecated">
  6271. <doc>
  6272. <![CDATA[Default value is 100 ms.]]>
  6273. </doc>
  6274. </field>
  6275. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  6276. transient="false" volatile="false"
  6277. static="true" final="true" visibility="public"
  6278. deprecated="not deprecated">
  6279. <doc>
  6280. <![CDATA[@see
  6281. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6282. core-default.xml</a>]]>
  6283. </doc>
  6284. </field>
  6285. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  6286. transient="false" volatile="false"
  6287. static="true" final="true" visibility="public"
  6288. deprecated="not deprecated">
  6289. <doc>
  6290. <![CDATA[Default value is 2 secs.]]>
  6291. </doc>
  6292. </field>
  6293. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  6294. transient="false" volatile="false"
  6295. static="true" final="true" visibility="public"
  6296. deprecated="not deprecated">
  6297. <doc>
  6298. <![CDATA[@see
  6299. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6300. core-default.xml</a>]]>
  6301. </doc>
  6302. </field>
  6303. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  6304. transient="false" volatile="false"
  6305. static="true" final="true" visibility="public"
  6306. deprecated="not deprecated">
  6307. <doc>
  6308. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  6309. </doc>
  6310. </field>
  6311. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  6312. transient="false" volatile="false"
  6313. static="true" final="true" visibility="public"
  6314. deprecated="not deprecated">
  6315. <doc>
  6316. <![CDATA[@see
  6317. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6318. core-default.xml</a>]]>
  6319. </doc>
  6320. </field>
  6321. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  6322. transient="false" volatile="false"
  6323. static="true" final="true" visibility="public"
  6324. deprecated="not deprecated">
  6325. <doc>
  6326. <![CDATA[@see
  6327. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6328. core-default.xml</a>]]>
  6329. </doc>
  6330. </field>
  6331. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  6332. transient="false" volatile="false"
  6333. static="true" final="true" visibility="public"
  6334. deprecated="not deprecated">
  6335. </field>
  6336. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  6337. transient="false" volatile="false"
  6338. static="true" final="true" visibility="public"
  6339. deprecated="not deprecated">
  6340. <doc>
  6341. <![CDATA[@see
  6342. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6343. core-default.xml</a>]]>
  6344. </doc>
  6345. </field>
  6346. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  6347. transient="false" volatile="false"
  6348. static="true" final="true" visibility="public"
  6349. deprecated="not deprecated">
  6350. </field>
  6351. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  6352. transient="false" volatile="false"
  6353. static="true" final="true" visibility="public"
  6354. deprecated="not deprecated">
  6355. <doc>
  6356. <![CDATA[@see
  6357. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6358. core-default.xml</a>]]>
  6359. </doc>
  6360. </field>
  6361. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  6362. transient="false" volatile="false"
  6363. static="true" final="true" visibility="public"
  6364. deprecated="not deprecated">
  6365. </field>
  6366. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  6367. transient="false" volatile="false"
  6368. static="true" final="true" visibility="public"
  6369. deprecated="not deprecated">
  6370. <doc>
  6371. <![CDATA[@see
  6372. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6373. core-default.xml</a>]]>
  6374. </doc>
  6375. </field>
  6376. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  6377. transient="false" volatile="false"
  6378. static="true" final="true" visibility="public"
  6379. deprecated="not deprecated">
  6380. <doc>
  6381. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  6382. </doc>
  6383. </field>
  6384. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  6385. transient="false" volatile="false"
  6386. static="true" final="true" visibility="public"
  6387. deprecated="not deprecated">
  6388. <doc>
  6389. <![CDATA[@see
  6390. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6391. core-default.xml</a>]]>
  6392. </doc>
  6393. </field>
  6394. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" type="java.lang.String"
  6395. transient="false" volatile="false"
  6396. static="true" final="true" visibility="public"
  6397. deprecated="not deprecated">
  6398. <doc>
  6399. <![CDATA[@see
  6400. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6401. core-default.xml</a>]]>
  6402. </doc>
  6403. </field>
  6404. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK_DEFAULT" type="boolean"
  6405. transient="false" volatile="false"
  6406. static="true" final="true" visibility="public"
  6407. deprecated="not deprecated">
  6408. </field>
  6409. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  6410. transient="false" volatile="false"
  6411. static="true" final="true" visibility="public"
  6412. deprecated="not deprecated">
  6413. <doc>
  6414. <![CDATA[@see
  6415. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6416. core-default.xml</a>]]>
  6417. </doc>
  6418. </field>
  6419. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  6420. transient="false" volatile="false"
  6421. static="true" final="true" visibility="public"
  6422. deprecated="not deprecated">
  6423. <doc>
  6424. <![CDATA[@see
  6425. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6426. core-default.xml</a>]]>
  6427. </doc>
  6428. </field>
  6429. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  6430. transient="false" volatile="false"
  6431. static="true" final="true" visibility="public"
  6432. deprecated="not deprecated">
  6433. </field>
  6434. <field name="HADOOP_SYSTEM_TAGS" type="java.lang.String"
  6435. transient="false" volatile="false"
  6436. static="true" final="true" visibility="public"
  6437. deprecated="Please use
  6438. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  6439. See https://issues.apache.org/jira/browse/HADOOP-15474">
  6440. <doc>
  6441. <![CDATA[@deprecated Please use
  6442. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_SYSTEM} instead
  6443. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  6444. </doc>
  6445. </field>
  6446. <field name="HADOOP_CUSTOM_TAGS" type="java.lang.String"
  6447. transient="false" volatile="false"
  6448. static="true" final="true" visibility="public"
  6449. deprecated="Please use
  6450. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  6451. See https://issues.apache.org/jira/browse/HADOOP-15474">
  6452. <doc>
  6453. <![CDATA[@deprecated Please use
  6454. {@link CommonConfigurationKeysPublic#HADOOP_TAGS_CUSTOM} instead
  6455. See https://issues.apache.org/jira/browse/HADOOP-15474]]>
  6456. </doc>
  6457. </field>
  6458. <field name="HADOOP_TAGS_SYSTEM" type="java.lang.String"
  6459. transient="false" volatile="false"
  6460. static="true" final="true" visibility="public"
  6461. deprecated="not deprecated">
  6462. </field>
  6463. <field name="HADOOP_TAGS_CUSTOM" type="java.lang.String"
  6464. transient="false" volatile="false"
  6465. static="true" final="true" visibility="public"
  6466. deprecated="not deprecated">
  6467. </field>
  6468. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  6469. transient="false" volatile="false"
  6470. static="true" final="true" visibility="public"
  6471. deprecated="not deprecated">
  6472. <doc>
  6473. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  6474. {@value}.]]>
  6475. </doc>
  6476. </field>
  6477. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  6478. transient="false" volatile="false"
  6479. static="true" final="true" visibility="public"
  6480. deprecated="not deprecated">
  6481. <doc>
  6482. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  6483. </doc>
  6484. </field>
  6485. <field name="HADOOP_PROMETHEUS_ENABLED" type="java.lang.String"
  6486. transient="false" volatile="false"
  6487. static="true" final="true" visibility="public"
  6488. deprecated="not deprecated">
  6489. <doc>
  6490. <![CDATA[@see
  6491. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6492. core-default.xml</a>]]>
  6493. </doc>
  6494. </field>
  6495. <field name="HADOOP_PROMETHEUS_ENABLED_DEFAULT" type="boolean"
  6496. transient="false" volatile="false"
  6497. static="true" final="true" visibility="public"
  6498. deprecated="not deprecated">
  6499. </field>
  6500. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_KEY" type="java.lang.String"
  6501. transient="false" volatile="false"
  6502. static="true" final="true" visibility="public"
  6503. deprecated="not deprecated">
  6504. <doc>
  6505. <![CDATA[@see
  6506. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  6507. core-default.xml</a>]]>
  6508. </doc>
  6509. </field>
  6510. <field name="HADOOP_HTTP_IDLE_TIMEOUT_MS_DEFAULT" type="int"
  6511. transient="false" volatile="false"
  6512. static="true" final="true" visibility="public"
  6513. deprecated="not deprecated">
  6514. </field>
  6515. <field name="IPC_SERVER_METRICS_UPDATE_RUNNER_INTERVAL" type="java.lang.String"
  6516. transient="false" volatile="false"
  6517. static="true" final="true" visibility="public"
  6518. deprecated="not deprecated">
  6519. <doc>
  6520. <![CDATA[To configure scheduling of server metrics update thread. This config is used to indicate
  6521. initial delay and delay between each execution of the metric update runnable thread.]]>
  6522. </doc>
  6523. </field>
  6524. <field name="IPC_SERVER_METRICS_UPDATE_RUNNER_INTERVAL_DEFAULT" type="int"
  6525. transient="false" volatile="false"
  6526. static="true" final="true" visibility="public"
  6527. deprecated="not deprecated">
  6528. </field>
  6529. <doc>
  6530. <![CDATA[This class contains constants for configuration keys used
  6531. in the common code.
  6532. It includes all publicly documented configuration keys. In general
  6533. this class should not be used directly (use CommonConfigurationKeys
  6534. instead)]]>
  6535. </doc>
  6536. </class>
  6537. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  6538. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  6539. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  6540. abstract="false"
  6541. static="false" final="false" visibility="public"
  6542. deprecated="not deprecated">
  6543. <implements name="org.apache.hadoop.io.Writable"/>
  6544. <constructor name="ContentSummary"
  6545. static="false" final="false" visibility="public"
  6546. deprecated="not deprecated">
  6547. <doc>
  6548. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  6549. </doc>
  6550. </constructor>
  6551. <constructor name="ContentSummary" type="long, long, long"
  6552. static="false" final="false" visibility="public"
  6553. deprecated="not deprecated">
  6554. <doc>
  6555. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  6556. This constructor implicitly set spaceConsumed the same as length.
  6557. spaceConsumed and length must be set explicitly with
  6558. ContentSummary.Builder.
  6559. @param length length.
  6560. @param fileCount file count.
  6561. @param directoryCount directory count.]]>
  6562. </doc>
  6563. </constructor>
  6564. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  6565. static="false" final="false" visibility="public"
  6566. deprecated="not deprecated">
  6567. <doc>
  6568. <![CDATA[Constructor, deprecated by ContentSummary.Builder.
  6569. @param length length.
  6570. @param fileCount file count.
  6571. @param directoryCount directory count.
  6572. @param quota quota.
  6573. @param spaceConsumed space consumed.
  6574. @param spaceQuota space quota.]]>
  6575. </doc>
  6576. </constructor>
  6577. <method name="getLength" return="long"
  6578. abstract="false" native="false" synchronized="false"
  6579. static="false" final="false" visibility="public"
  6580. deprecated="not deprecated">
  6581. <doc>
  6582. <![CDATA[@return the length]]>
  6583. </doc>
  6584. </method>
  6585. <method name="getSnapshotLength" return="long"
  6586. abstract="false" native="false" synchronized="false"
  6587. static="false" final="false" visibility="public"
  6588. deprecated="not deprecated">
  6589. </method>
  6590. <method name="getDirectoryCount" return="long"
  6591. abstract="false" native="false" synchronized="false"
  6592. static="false" final="false" visibility="public"
  6593. deprecated="not deprecated">
  6594. <doc>
  6595. <![CDATA[@return the directory count]]>
  6596. </doc>
  6597. </method>
  6598. <method name="getSnapshotDirectoryCount" return="long"
  6599. abstract="false" native="false" synchronized="false"
  6600. static="false" final="false" visibility="public"
  6601. deprecated="not deprecated">
  6602. </method>
  6603. <method name="getFileCount" return="long"
  6604. abstract="false" native="false" synchronized="false"
  6605. static="false" final="false" visibility="public"
  6606. deprecated="not deprecated">
  6607. <doc>
  6608. <![CDATA[@return the file count]]>
  6609. </doc>
  6610. </method>
  6611. <method name="getSnapshotFileCount" return="long"
  6612. abstract="false" native="false" synchronized="false"
  6613. static="false" final="false" visibility="public"
  6614. deprecated="not deprecated">
  6615. </method>
  6616. <method name="getSnapshotSpaceConsumed" return="long"
  6617. abstract="false" native="false" synchronized="false"
  6618. static="false" final="false" visibility="public"
  6619. deprecated="not deprecated">
  6620. </method>
  6621. <method name="getErasureCodingPolicy" return="java.lang.String"
  6622. abstract="false" native="false" synchronized="false"
  6623. static="false" final="false" visibility="public"
  6624. deprecated="not deprecated">
  6625. </method>
  6626. <method name="equals" return="boolean"
  6627. abstract="false" native="false" synchronized="false"
  6628. static="false" final="false" visibility="public"
  6629. deprecated="not deprecated">
  6630. <param name="to" type="java.lang.Object"/>
  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. <method name="getHeader" return="java.lang.String"
  6638. abstract="false" native="false" synchronized="false"
  6639. static="true" final="false" visibility="public"
  6640. deprecated="not deprecated">
  6641. <param name="qOption" type="boolean"/>
  6642. <doc>
  6643. <![CDATA[Return the header of the output.
  6644. if qOption is false, output directory count, file count, and content size;
  6645. if qOption is true, output quota and remaining quota as well.
  6646. @param qOption a flag indicating if quota needs to be printed or not
  6647. @return the header of the output]]>
  6648. </doc>
  6649. </method>
  6650. <method name="getSnapshotHeader" return="java.lang.String"
  6651. abstract="false" native="false" synchronized="false"
  6652. static="true" final="false" visibility="public"
  6653. deprecated="not deprecated">
  6654. </method>
  6655. <method name="getHeaderFields" return="java.lang.String[]"
  6656. abstract="false" native="false" synchronized="false"
  6657. static="true" final="false" visibility="public"
  6658. deprecated="not deprecated">
  6659. <doc>
  6660. <![CDATA[Returns the names of the fields from the summary header.
  6661. @return names of fields as displayed in the header]]>
  6662. </doc>
  6663. </method>
  6664. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  6665. abstract="false" native="false" synchronized="false"
  6666. static="true" final="false" visibility="public"
  6667. deprecated="not deprecated">
  6668. <doc>
  6669. <![CDATA[Returns the names of the fields used in the quota summary.
  6670. @return names of quota fields as displayed in the header]]>
  6671. </doc>
  6672. </method>
  6673. <method name="toString" return="java.lang.String"
  6674. abstract="false" native="false" synchronized="false"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. </method>
  6678. <method name="toString" return="java.lang.String"
  6679. abstract="false" native="false" synchronized="false"
  6680. static="false" final="false" visibility="public"
  6681. deprecated="not deprecated">
  6682. <param name="qOption" type="boolean"/>
  6683. <doc>
  6684. <![CDATA[Return the string representation of the object in the output format.
  6685. if qOption is false, output directory count, file count, and content size;
  6686. if qOption is true, output quota and remaining quota as well.
  6687. @param qOption a flag indicating if quota needs to be printed or not
  6688. @return the string representation of the object]]>
  6689. </doc>
  6690. </method>
  6691. <method name="toString" return="java.lang.String"
  6692. abstract="false" native="false" synchronized="false"
  6693. static="false" final="false" visibility="public"
  6694. deprecated="not deprecated">
  6695. <param name="qOption" type="boolean"/>
  6696. <param name="hOption" type="boolean"/>
  6697. <doc>
  6698. <![CDATA[Return the string representation of the object in the output format.
  6699. For description of the options,
  6700. @see #toString(boolean, boolean, boolean, boolean, List)
  6701. @param qOption a flag indicating if quota needs to be printed or not
  6702. @param hOption a flag indicating if human readable output if to be used
  6703. @return the string representation of the object]]>
  6704. </doc>
  6705. </method>
  6706. <method name="toString" return="java.lang.String"
  6707. abstract="false" native="false" synchronized="false"
  6708. static="false" final="false" visibility="public"
  6709. deprecated="not deprecated">
  6710. <param name="qOption" type="boolean"/>
  6711. <param name="hOption" type="boolean"/>
  6712. <param name="xOption" type="boolean"/>
  6713. <doc>
  6714. <![CDATA[Return the string representation of the object in the output format.
  6715. For description of the options,
  6716. @see #toString(boolean, boolean, boolean, boolean, List)
  6717. @param qOption a flag indicating if quota needs to be printed or not
  6718. @param hOption a flag indicating if human readable output is to be used
  6719. @param xOption a flag indicating if calculation from snapshots is to be
  6720. included in the output
  6721. @return the string representation of the object]]>
  6722. </doc>
  6723. </method>
  6724. <method name="toString" return="java.lang.String"
  6725. abstract="false" native="false" synchronized="false"
  6726. static="false" final="false" visibility="public"
  6727. deprecated="not deprecated">
  6728. <param name="qOption" type="boolean"/>
  6729. <param name="hOption" type="boolean"/>
  6730. <param name="tOption" type="boolean"/>
  6731. <param name="types" type="java.util.List"/>
  6732. <doc>
  6733. <![CDATA[Return the string representation of the object in the output format.
  6734. For description of the options,
  6735. @see #toString(boolean, boolean, boolean, boolean, List)
  6736. @param qOption a flag indicating if quota needs to be printed or not
  6737. @param hOption a flag indicating if human readable output if to be used
  6738. @param tOption a flag indicating if display quota by storage types
  6739. @param types Storage types to display
  6740. @return the string representation of the object]]>
  6741. </doc>
  6742. </method>
  6743. <method name="toString" return="java.lang.String"
  6744. abstract="false" native="false" synchronized="false"
  6745. static="false" final="false" visibility="public"
  6746. deprecated="not deprecated">
  6747. <param name="qOption" type="boolean"/>
  6748. <param name="hOption" type="boolean"/>
  6749. <param name="tOption" type="boolean"/>
  6750. <param name="xOption" type="boolean"/>
  6751. <param name="types" type="java.util.List"/>
  6752. <doc>
  6753. <![CDATA[Return the string representation of the object in the output format.
  6754. if qOption is false, output directory count, file count, and content size;
  6755. if qOption is true, output quota and remaining quota as well.
  6756. if hOption is false, file sizes are returned in bytes
  6757. if hOption is true, file sizes are returned in human readable
  6758. if tOption is true, display the quota by storage types
  6759. if tOption is false, same logic with #toString(boolean,boolean)
  6760. if xOption is false, output includes the calculation from snapshots
  6761. if xOption is true, output excludes the calculation from snapshots
  6762. @param qOption a flag indicating if quota needs to be printed or not
  6763. @param hOption a flag indicating if human readable output is to be used
  6764. @param tOption a flag indicating if display quota by storage types
  6765. @param xOption a flag indicating if calculation from snapshots is to be
  6766. included in the output
  6767. @param types Storage types to display
  6768. @return the string representation of the object]]>
  6769. </doc>
  6770. </method>
  6771. <method name="toSnapshot" return="java.lang.String"
  6772. abstract="false" native="false" synchronized="false"
  6773. static="false" final="false" visibility="public"
  6774. deprecated="not deprecated">
  6775. <param name="hOption" type="boolean"/>
  6776. <doc>
  6777. <![CDATA[Return the string representation of the snapshot counts in the output
  6778. format.
  6779. @param hOption flag indicating human readable or not
  6780. @return String representation of the snapshot counts]]>
  6781. </doc>
  6782. </method>
  6783. <doc>
  6784. <![CDATA[Store the summary of a content (a directory or a file).]]>
  6785. </doc>
  6786. </class>
  6787. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  6788. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  6789. <class name="CreateFlag" extends="java.lang.Enum"
  6790. abstract="false"
  6791. static="false" final="true" visibility="public"
  6792. deprecated="not deprecated">
  6793. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  6794. abstract="false" native="false" synchronized="false"
  6795. static="true" final="false" visibility="public"
  6796. deprecated="not deprecated">
  6797. </method>
  6798. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  6799. abstract="false" native="false" synchronized="false"
  6800. static="true" final="false" visibility="public"
  6801. deprecated="not deprecated">
  6802. <param name="name" type="java.lang.String"/>
  6803. </method>
  6804. <method name="validate"
  6805. abstract="false" native="false" synchronized="false"
  6806. static="true" final="false" visibility="public"
  6807. deprecated="not deprecated">
  6808. <param name="flag" type="java.util.EnumSet"/>
  6809. <doc>
  6810. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  6811. @param flag set of CreateFlag
  6812. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6813. </doc>
  6814. </method>
  6815. <method name="validate"
  6816. abstract="false" native="false" synchronized="false"
  6817. static="true" final="false" visibility="public"
  6818. deprecated="not deprecated">
  6819. <param name="path" type="java.lang.Object"/>
  6820. <param name="pathExists" type="boolean"/>
  6821. <param name="flag" type="java.util.EnumSet"/>
  6822. <exception name="IOException" type="java.io.IOException"/>
  6823. <doc>
  6824. <![CDATA[Validate the CreateFlag for create operation
  6825. @param path Object representing the path; usually String or {@link Path}
  6826. @param pathExists pass true if the path exists in the file system
  6827. @param flag set of CreateFlag
  6828. @throws IOException on error
  6829. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6830. </doc>
  6831. </method>
  6832. <method name="validateForAppend"
  6833. abstract="false" native="false" synchronized="false"
  6834. static="true" final="false" visibility="public"
  6835. deprecated="not deprecated">
  6836. <param name="flag" type="java.util.EnumSet"/>
  6837. <doc>
  6838. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  6839. APPEND, and cannot contain OVERWRITE.
  6840. @param flag enum set flag.]]>
  6841. </doc>
  6842. </method>
  6843. <doc>
  6844. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  6845. <code>
  6846. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  6847. </code>
  6848. <p>
  6849. Use the CreateFlag as follows:
  6850. <ol>
  6851. <li> CREATE - to create a file if it does not exist,
  6852. else throw FileAlreadyExists.</li>
  6853. <li> APPEND - to append to a file if it exists,
  6854. else throw FileNotFoundException.</li>
  6855. <li> OVERWRITE - to truncate a file if it exists,
  6856. else throw FileNotFoundException.</li>
  6857. <li> CREATE|APPEND - to create a file if it does not exist,
  6858. else append to an existing file.</li>
  6859. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  6860. else overwrite an existing file.</li>
  6861. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  6862. In addition {@link Syncable#hsync()} should be called after each write,
  6863. if true synchronous behavior is required.</li>
  6864. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  6865. available.</li>
  6866. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  6867. partial block.</li>
  6868. </ol>
  6869. Following combinations are not valid and will result in
  6870. {@link HadoopIllegalArgumentException}:
  6871. <ol>
  6872. <li> APPEND|OVERWRITE</li>
  6873. <li> CREATE|APPEND|OVERWRITE</li>
  6874. </ol>]]>
  6875. </doc>
  6876. </class>
  6877. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  6878. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6879. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6880. abstract="false"
  6881. static="false" final="false" visibility="public"
  6882. deprecated="not deprecated">
  6883. <constructor name="FileAlreadyExistsException"
  6884. static="false" final="false" visibility="public"
  6885. deprecated="not deprecated">
  6886. </constructor>
  6887. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6888. static="false" final="false" visibility="public"
  6889. deprecated="not deprecated">
  6890. </constructor>
  6891. <doc>
  6892. <![CDATA[Used when target file already exists for any operation and
  6893. is not configured to be overwritten.]]>
  6894. </doc>
  6895. </class>
  6896. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6897. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6898. <class name="FileChecksum" extends="java.lang.Object"
  6899. abstract="true"
  6900. static="false" final="false" visibility="public"
  6901. deprecated="not deprecated">
  6902. <implements name="org.apache.hadoop.io.Writable"/>
  6903. <constructor name="FileChecksum"
  6904. static="false" final="false" visibility="public"
  6905. deprecated="not deprecated">
  6906. </constructor>
  6907. <method name="getAlgorithmName" return="java.lang.String"
  6908. abstract="true" native="false" synchronized="false"
  6909. static="false" final="false" visibility="public"
  6910. deprecated="not deprecated">
  6911. <doc>
  6912. <![CDATA[The checksum algorithm name.
  6913. @return algorithm name.]]>
  6914. </doc>
  6915. </method>
  6916. <method name="getLength" return="int"
  6917. abstract="true" native="false" synchronized="false"
  6918. static="false" final="false" visibility="public"
  6919. deprecated="not deprecated">
  6920. <doc>
  6921. <![CDATA[The length of the checksum in bytes.
  6922. @return length.]]>
  6923. </doc>
  6924. </method>
  6925. <method name="getBytes" return="byte[]"
  6926. abstract="true" native="false" synchronized="false"
  6927. static="false" final="false" visibility="public"
  6928. deprecated="not deprecated">
  6929. <doc>
  6930. <![CDATA[The value of the checksum in bytes.
  6931. @return byte array.]]>
  6932. </doc>
  6933. </method>
  6934. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6935. abstract="false" native="false" synchronized="false"
  6936. static="false" final="false" visibility="public"
  6937. deprecated="not deprecated">
  6938. </method>
  6939. <method name="equals" return="boolean"
  6940. abstract="false" native="false" synchronized="false"
  6941. static="false" final="false" visibility="public"
  6942. deprecated="not deprecated">
  6943. <param name="other" type="java.lang.Object"/>
  6944. <doc>
  6945. <![CDATA[Return true if both the algorithms and the values are the same.
  6946. @param other other.
  6947. @return if equal true, not false.]]>
  6948. </doc>
  6949. </method>
  6950. <method name="hashCode" return="int"
  6951. abstract="false" native="false" synchronized="false"
  6952. static="false" final="false" visibility="public"
  6953. deprecated="not deprecated">
  6954. </method>
  6955. <doc>
  6956. <![CDATA[An abstract class representing file checksums for files.]]>
  6957. </doc>
  6958. </class>
  6959. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6960. <!-- start class org.apache.hadoop.fs.FileContext -->
  6961. <class name="FileContext" extends="java.lang.Object"
  6962. abstract="false"
  6963. static="false" final="false" visibility="public"
  6964. deprecated="not deprecated">
  6965. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  6966. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6967. abstract="false" native="false" synchronized="false"
  6968. static="false" final="false" visibility="protected"
  6969. deprecated="not deprecated">
  6970. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6971. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6972. <exception name="IOException" type="java.io.IOException"/>
  6973. <doc>
  6974. <![CDATA[Get the file system of supplied path.
  6975. @param absOrFqPath - absolute or fully qualified path
  6976. @return the file system of the path
  6977. @throws UnsupportedFileSystemException If the file system for
  6978. <code>absOrFqPath</code> is not supported.
  6979. @throws IOException If the file system for <code>absOrFqPath</code> could
  6980. not be instantiated.]]>
  6981. </doc>
  6982. </method>
  6983. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6984. abstract="false" native="false" synchronized="false"
  6985. static="true" final="false" visibility="public"
  6986. deprecated="not deprecated">
  6987. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6988. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6989. <doc>
  6990. <![CDATA[Create a FileContext with specified FS as default using the specified
  6991. config.
  6992. @param defFS default fs.
  6993. @param aConf configutration.
  6994. @return new FileContext with specified FS as default.]]>
  6995. </doc>
  6996. </method>
  6997. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6998. abstract="false" native="false" synchronized="false"
  6999. static="true" final="false" visibility="protected"
  7000. deprecated="not deprecated">
  7001. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  7002. <doc>
  7003. <![CDATA[Create a FileContext for specified file system using the default config.
  7004. @param defaultFS default fs.
  7005. @return a FileContext with the specified AbstractFileSystem
  7006. as the default FS.]]>
  7007. </doc>
  7008. </method>
  7009. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  7010. abstract="false" native="false" synchronized="false"
  7011. static="true" final="false" visibility="public"
  7012. deprecated="not deprecated">
  7013. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7014. <doc>
  7015. <![CDATA[Create a FileContext using the default config read from the
  7016. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  7017. from core-defaults.xml in the release jar.
  7018. @throws UnsupportedFileSystemException If the file system from the default
  7019. configuration is not supported
  7020. @return file context.]]>
  7021. </doc>
  7022. </method>
  7023. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  7024. abstract="false" native="false" synchronized="false"
  7025. static="true" final="false" visibility="public"
  7026. deprecated="not deprecated">
  7027. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7028. <doc>
  7029. <![CDATA[@return a FileContext for the local file system using the default config.
  7030. @throws UnsupportedFileSystemException If the file system for
  7031. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  7032. </doc>
  7033. </method>
  7034. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  7035. abstract="false" native="false" synchronized="false"
  7036. static="true" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. <param name="defaultFsUri" type="java.net.URI"/>
  7039. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7040. <doc>
  7041. <![CDATA[Create a FileContext for specified URI using the default config.
  7042. @param defaultFsUri defaultFsUri.
  7043. @return a FileContext with the specified URI as the default FS.
  7044. @throws UnsupportedFileSystemException If the file system for
  7045. <code>defaultFsUri</code> is not supported]]>
  7046. </doc>
  7047. </method>
  7048. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  7049. abstract="false" native="false" synchronized="false"
  7050. static="true" final="false" visibility="public"
  7051. deprecated="not deprecated">
  7052. <param name="defaultFsUri" type="java.net.URI"/>
  7053. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  7054. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7055. <doc>
  7056. <![CDATA[Create a FileContext for specified default URI using the specified config.
  7057. @param defaultFsUri defaultFsUri.
  7058. @param aConf configrution.
  7059. @return new FileContext for specified uri
  7060. @throws UnsupportedFileSystemException If the file system with specified is
  7061. not supported
  7062. @throws RuntimeException If the file system specified is supported but
  7063. could not be instantiated, or if login fails.]]>
  7064. </doc>
  7065. </method>
  7066. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  7067. abstract="false" native="false" synchronized="false"
  7068. static="true" final="false" visibility="public"
  7069. deprecated="not deprecated">
  7070. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  7071. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7072. <doc>
  7073. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  7074. {@link #getFileContext(URI, Configuration)} instead of this one.
  7075. @param aConf configration.
  7076. @return new FileContext
  7077. @throws UnsupportedFileSystemException If file system in the config
  7078. is not supported]]>
  7079. </doc>
  7080. </method>
  7081. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  7082. abstract="false" native="false" synchronized="false"
  7083. static="true" final="false" visibility="public"
  7084. deprecated="not deprecated">
  7085. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  7086. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7087. <doc>
  7088. <![CDATA[@param aConf - from which the FileContext is configured
  7089. @return a FileContext for the local file system using the specified config.
  7090. @throws UnsupportedFileSystemException If default file system in the config
  7091. is not supported]]>
  7092. </doc>
  7093. </method>
  7094. <method name="setWorkingDirectory"
  7095. abstract="false" native="false" synchronized="false"
  7096. static="false" final="false" visibility="public"
  7097. deprecated="not deprecated">
  7098. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  7099. <exception name="IOException" type="java.io.IOException"/>
  7100. <doc>
  7101. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  7102. directory feature is provided by simply prefixing relative names with the
  7103. working dir. Note this is different from Unix where the wd is actually set
  7104. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  7105. better in a distributed environment that has multiple independent roots.
  7106. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  7107. @param newWDir new working directory
  7108. @throws IOException
  7109. <br>
  7110. NewWdir can be one of:
  7111. <ul>
  7112. <li>relative path: "foo/bar";</li>
  7113. <li>absolute without scheme: "/foo/bar"</li>
  7114. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  7115. </ul>
  7116. <br>
  7117. Illegal WDs:
  7118. <ul>
  7119. <li>relative with scheme: "xx:foo/bar"</li>
  7120. <li>non existent directory</li>
  7121. </ul>]]>
  7122. </doc>
  7123. </method>
  7124. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="false" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <doc>
  7129. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").
  7130. @return the path.]]>
  7131. </doc>
  7132. </method>
  7133. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  7134. abstract="false" native="false" synchronized="false"
  7135. static="false" final="false" visibility="public"
  7136. deprecated="not deprecated">
  7137. <doc>
  7138. <![CDATA[Gets the ugi in the file-context
  7139. @return UserGroupInformation]]>
  7140. </doc>
  7141. </method>
  7142. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7143. abstract="false" native="false" synchronized="false"
  7144. static="false" final="false" visibility="public"
  7145. deprecated="not deprecated">
  7146. <doc>
  7147. <![CDATA[Return the current user's home directory in this file system.
  7148. The default implementation returns "/user/$USER/".
  7149. @return the home directory]]>
  7150. </doc>
  7151. </method>
  7152. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7153. abstract="false" native="false" synchronized="false"
  7154. static="false" final="false" visibility="public"
  7155. deprecated="not deprecated">
  7156. <doc>
  7157. <![CDATA[@return the umask of this FileContext]]>
  7158. </doc>
  7159. </method>
  7160. <method name="setUMask"
  7161. abstract="false" native="false" synchronized="false"
  7162. static="false" final="false" visibility="public"
  7163. deprecated="not deprecated">
  7164. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7165. <doc>
  7166. <![CDATA[Set umask to the supplied parameter.
  7167. @param newUmask the new umask]]>
  7168. </doc>
  7169. </method>
  7170. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  7171. abstract="false" native="false" synchronized="false"
  7172. static="false" final="false" visibility="public"
  7173. deprecated="not deprecated">
  7174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7175. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7176. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7177. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7178. <exception name="IOException" type="java.io.IOException"/>
  7179. <doc>
  7180. <![CDATA[Resolve the path following any symlinks or mount points
  7181. @param f to be resolved
  7182. @return fully qualified resolved path
  7183. @throws FileNotFoundException If <code>f</code> does not exist
  7184. @throws AccessControlException if access denied
  7185. @throws IOException If an IO Error occurred
  7186. @throws UnresolvedLinkException If unresolved link 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. RuntimeExceptions:
  7193. @throws InvalidPathException If path <code>f</code> is not valid]]>
  7194. </doc>
  7195. </method>
  7196. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  7197. abstract="false" native="false" synchronized="false"
  7198. static="false" final="false" visibility="public"
  7199. deprecated="not deprecated">
  7200. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7201. <doc>
  7202. <![CDATA[Make the path fully qualified if it is isn't.
  7203. A Fully-qualified path has scheme and authority specified and an absolute
  7204. path.
  7205. Use the default file system and working dir in this FileContext to qualify.
  7206. @param path the path.
  7207. @return qualified path]]>
  7208. </doc>
  7209. </method>
  7210. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7211. abstract="false" native="false" synchronized="false"
  7212. static="false" final="false" visibility="public"
  7213. deprecated="not deprecated">
  7214. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7215. <param name="createFlag" type="java.util.EnumSet"/>
  7216. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  7217. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7218. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7219. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7220. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7221. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7222. <exception name="IOException" type="java.io.IOException"/>
  7223. <doc>
  7224. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  7225. writing into the file.
  7226. @param f the file name to open
  7227. @param createFlag gives the semantics of create; see {@link CreateFlag}
  7228. @param opts file creation options; see {@link Options.CreateOpts}.
  7229. <ul>
  7230. <li>Progress - to report progress on the operation - default null
  7231. <li>Permission - umask is applied against permission: default is
  7232. FsPermissions:getDefault()
  7233. <li>CreateParent - create missing parent path; default is to not
  7234. to create parents
  7235. <li>The defaults for the following are SS defaults of the file
  7236. server implementing the target path. Not all parameters make sense
  7237. for all kinds of file system - eg. localFS ignores Blocksize,
  7238. replication, checksum
  7239. <ul>
  7240. <li>BufferSize - buffersize used in FSDataOutputStream
  7241. <li>Blocksize - block size for file blocks
  7242. <li>ReplicationFactor - replication for blocks
  7243. <li>ChecksumParam - Checksum parameters. server default is used
  7244. if not specified.
  7245. </ul>
  7246. </ul>
  7247. @return {@link FSDataOutputStream} for created file
  7248. @throws AccessControlException If access is denied
  7249. @throws FileAlreadyExistsException If file <code>f</code> already exists
  7250. @throws FileNotFoundException If parent of <code>f</code> does not exist
  7251. and <code>createParent</code> is false
  7252. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  7253. directory.
  7254. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7255. not supported
  7256. @throws IOException If an I/O error occurred
  7257. Exceptions applicable to file systems accessed over RPC:
  7258. @throws RpcClientException If an exception occurred in the RPC client
  7259. @throws RpcServerException If an exception occurred in the RPC server
  7260. @throws UnexpectedServerException If server implementation throws
  7261. undeclared exception to RPC server
  7262. RuntimeExceptions:
  7263. @throws InvalidPathException If path <code>f</code> is not valid]]>
  7264. </doc>
  7265. </method>
  7266. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  7267. abstract="false" native="false" synchronized="false"
  7268. static="false" final="false" visibility="public"
  7269. deprecated="not deprecated">
  7270. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7271. <exception name="IOException" type="java.io.IOException"/>
  7272. <doc>
  7273. <![CDATA[Create a {@link FSDataOutputStreamBuilder} for creating or overwriting
  7274. a file on indicated path.
  7275. @param f the file path to create builder for.
  7276. @return {@link FSDataOutputStreamBuilder} to build a
  7277. {@link FSDataOutputStream}.
  7278. Upon {@link FSDataOutputStreamBuilder#build()} being invoked,
  7279. builder parameters will be verified by {@link FileContext} and
  7280. {@link AbstractFileSystem#create}. And filesystem states will be modified.
  7281. Client should expect {@link FSDataOutputStreamBuilder#build()} throw the
  7282. same exceptions as create(Path, EnumSet, CreateOpts...).
  7283. @throws IOException If an I/O error occurred.]]>
  7284. </doc>
  7285. </method>
  7286. <method name="mkdir"
  7287. abstract="false" native="false" synchronized="false"
  7288. static="false" final="false" visibility="public"
  7289. deprecated="not deprecated">
  7290. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7291. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7292. <param name="createParent" type="boolean"/>
  7293. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7294. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7295. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7296. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7297. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7298. <exception name="IOException" type="java.io.IOException"/>
  7299. <doc>
  7300. <![CDATA[Make(create) a directory and all the non-existent parents.
  7301. @param dir - the dir to make
  7302. @param permission - permissions is set permission{@literal &~}umask
  7303. @param createParent - if true then missing parent dirs are created if false
  7304. then parent must exist
  7305. @throws AccessControlException If access is denied
  7306. @throws FileAlreadyExistsException If directory <code>dir</code> already
  7307. exists
  7308. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  7309. and <code>createParent</code> is false
  7310. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  7311. directory
  7312. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  7313. is not supported
  7314. @throws IOException If an I/O error occurred
  7315. Exceptions applicable to file systems accessed over RPC:
  7316. @throws RpcClientException If an exception occurred in the RPC client
  7317. @throws UnexpectedServerException If server implementation throws
  7318. undeclared exception to RPC server
  7319. RuntimeExceptions:
  7320. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  7321. </doc>
  7322. </method>
  7323. <method name="delete" return="boolean"
  7324. abstract="false" native="false" synchronized="false"
  7325. static="false" final="false" visibility="public"
  7326. deprecated="not deprecated">
  7327. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7328. <param name="recursive" type="boolean"/>
  7329. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7330. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7331. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7332. <exception name="IOException" type="java.io.IOException"/>
  7333. <doc>
  7334. <![CDATA[Delete a file.
  7335. @param f the path to delete.
  7336. @param recursive if path is a directory and set to
  7337. true, the directory is deleted else throws an exception. In
  7338. case of a file the recursive can be set to either true or false.
  7339. @throws AccessControlException If access is denied
  7340. @throws FileNotFoundException If <code>f</code> does not exist
  7341. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7342. not supported
  7343. @throws IOException If an I/O error occurred
  7344. Exceptions applicable to file systems accessed over RPC:
  7345. @throws RpcClientException If an exception occurred in the RPC client
  7346. @throws RpcServerException If an exception occurred in the RPC server
  7347. @throws UnexpectedServerException If server implementation throws
  7348. undeclared exception to RPC server
  7349. RuntimeExceptions:
  7350. @throws InvalidPathException If path <code>f</code> is invalid
  7351. @return if delete success true, not false.]]>
  7352. </doc>
  7353. </method>
  7354. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7355. abstract="false" native="false" synchronized="false"
  7356. static="false" final="false" visibility="public"
  7357. deprecated="not deprecated">
  7358. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7359. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7360. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7361. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7362. <exception name="IOException" type="java.io.IOException"/>
  7363. <doc>
  7364. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  7365. default buffersize.
  7366. @param f the file name to open
  7367. @throws AccessControlException If access is denied
  7368. @throws FileNotFoundException If file <code>f</code> does not exist
  7369. @throws UnsupportedFileSystemException If file system for <code>f</code>
  7370. is not supported
  7371. @throws IOException If an I/O error occurred
  7372. Exceptions applicable to file systems accessed over RPC:
  7373. @throws RpcClientException If an exception occurred in the RPC client
  7374. @throws RpcServerException If an exception occurred in the RPC server
  7375. @throws UnexpectedServerException If server implementation throws
  7376. undeclared exception to RPC server
  7377. @return input stream.]]>
  7378. </doc>
  7379. </method>
  7380. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7381. abstract="false" native="false" synchronized="false"
  7382. static="false" final="false" visibility="public"
  7383. deprecated="not deprecated">
  7384. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7385. <param name="bufferSize" type="int"/>
  7386. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7387. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7388. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7389. <exception name="IOException" type="java.io.IOException"/>
  7390. <doc>
  7391. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7392. @param f the file name to open
  7393. @param bufferSize the size of the buffer to be used.
  7394. @throws AccessControlException If access is denied
  7395. @throws FileNotFoundException If file <code>f</code> does not exist
  7396. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7397. not supported
  7398. @throws IOException If an I/O error occurred
  7399. Exceptions applicable to file systems accessed over RPC:
  7400. @throws RpcClientException If an exception occurred in the RPC client
  7401. @throws RpcServerException If an exception occurred in the RPC server
  7402. @throws UnexpectedServerException If server implementation throws
  7403. undeclared exception to RPC server
  7404. @return output stream.]]>
  7405. </doc>
  7406. </method>
  7407. <method name="truncate" return="boolean"
  7408. abstract="false" native="false" synchronized="false"
  7409. static="false" final="false" visibility="public"
  7410. deprecated="not deprecated">
  7411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7412. <param name="newLength" type="long"/>
  7413. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7414. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7415. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7416. <exception name="IOException" type="java.io.IOException"/>
  7417. <doc>
  7418. <![CDATA[Truncate the file in the indicated path to the indicated size.
  7419. <ul>
  7420. <li>Fails if path is a directory.
  7421. <li>Fails if path does not exist.
  7422. <li>Fails if path is not closed.
  7423. <li>Fails if new size is greater than current size.
  7424. </ul>
  7425. @param f The path to the file to be truncated
  7426. @param newLength The size the file is to be truncated to
  7427. @return <code>true</code> if the file has been truncated to the desired
  7428. <code>newLength</code> and is immediately available to be reused for
  7429. write operations such as <code>append</code>, or
  7430. <code>false</code> if a background process of adjusting the length of
  7431. the last block has been started, and clients should wait for it to
  7432. complete before proceeding with further file updates.
  7433. @throws AccessControlException If access is denied
  7434. @throws FileNotFoundException If file <code>f</code> does not exist
  7435. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7436. not supported
  7437. @throws IOException If an I/O error occurred
  7438. Exceptions applicable to file systems accessed over RPC:
  7439. @throws RpcClientException If an exception occurred in the RPC client
  7440. @throws RpcServerException If an exception occurred in the RPC server
  7441. @throws UnexpectedServerException If server implementation throws
  7442. undeclared exception to RPC server]]>
  7443. </doc>
  7444. </method>
  7445. <method name="setReplication" return="boolean"
  7446. abstract="false" native="false" synchronized="false"
  7447. static="false" final="false" visibility="public"
  7448. deprecated="not deprecated">
  7449. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7450. <param name="replication" type="short"/>
  7451. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7452. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7453. <exception name="IOException" type="java.io.IOException"/>
  7454. <doc>
  7455. <![CDATA[Set replication for an existing file.
  7456. @param f file name
  7457. @param replication new replication
  7458. @return true if successful
  7459. @throws AccessControlException If access is denied
  7460. @throws FileNotFoundException If file <code>f</code> does not exist
  7461. @throws IOException If an I/O error occurred
  7462. Exceptions applicable to file systems accessed over RPC:
  7463. @throws RpcClientException If an exception occurred in the RPC client
  7464. @throws RpcServerException If an exception occurred in the RPC server
  7465. @throws UnexpectedServerException If server implementation throws
  7466. undeclared exception to RPC server]]>
  7467. </doc>
  7468. </method>
  7469. <method name="rename"
  7470. abstract="false" native="false" synchronized="false"
  7471. static="false" final="false" visibility="public"
  7472. deprecated="not deprecated">
  7473. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7474. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7475. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  7476. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7477. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7478. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7479. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7480. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7481. <exception name="IOException" type="java.io.IOException"/>
  7482. <doc>
  7483. <![CDATA[Renames Path src to Path dst
  7484. <ul>
  7485. <li>Fails if src is a file and dst is a directory.
  7486. <li>Fails if src is a directory and dst is a file.
  7487. <li>Fails if the parent of dst does not exist or is a file.
  7488. </ul>
  7489. <p>
  7490. If OVERWRITE option is not passed as an argument, rename fails if the dst
  7491. already exists.
  7492. <p>
  7493. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  7494. it is a file or an empty directory. Rename fails if dst is a non-empty
  7495. directory.
  7496. <p>
  7497. Note that atomicity of rename is dependent on the file system
  7498. implementation. Please refer to the file system documentation for details
  7499. <p>
  7500. @param src path to be renamed
  7501. @param dst new path after rename
  7502. @param options rename options.
  7503. @throws AccessControlException If access is denied
  7504. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  7505. <code>options</code> has {@link Options.Rename#OVERWRITE}
  7506. option false.
  7507. @throws FileNotFoundException If <code>src</code> does not exist
  7508. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  7509. directory
  7510. @throws UnsupportedFileSystemException If file system for <code>src</code>
  7511. and <code>dst</code> is not supported
  7512. @throws IOException If an I/O error occurred
  7513. Exceptions applicable to file systems accessed over RPC:
  7514. @throws RpcClientException If an exception occurred in the RPC client
  7515. @throws RpcServerException If an exception occurred in the RPC server
  7516. @throws UnexpectedServerException If server implementation throws
  7517. undeclared exception to RPC server]]>
  7518. </doc>
  7519. </method>
  7520. <method name="setPermission"
  7521. abstract="false" native="false" synchronized="false"
  7522. static="false" final="false" visibility="public"
  7523. deprecated="not deprecated">
  7524. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7525. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7526. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7527. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7528. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7529. <exception name="IOException" type="java.io.IOException"/>
  7530. <doc>
  7531. <![CDATA[Set permission of a path.
  7532. @param f the path.
  7533. @param permission - the new absolute permission (umask is not applied)
  7534. @throws AccessControlException If access is denied
  7535. @throws FileNotFoundException If <code>f</code> does not exist
  7536. @throws UnsupportedFileSystemException If file system for <code>f</code>
  7537. is not supported
  7538. @throws IOException If an I/O error occurred
  7539. Exceptions applicable to file systems accessed over RPC:
  7540. @throws RpcClientException If an exception occurred in the RPC client
  7541. @throws RpcServerException If an exception occurred in the RPC server
  7542. @throws UnexpectedServerException If server implementation throws
  7543. undeclared exception to RPC server]]>
  7544. </doc>
  7545. </method>
  7546. <method name="setOwner"
  7547. abstract="false" native="false" synchronized="false"
  7548. static="false" final="false" visibility="public"
  7549. deprecated="not deprecated">
  7550. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7551. <param name="username" type="java.lang.String"/>
  7552. <param name="groupname" type="java.lang.String"/>
  7553. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7554. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7555. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7556. <exception name="IOException" type="java.io.IOException"/>
  7557. <doc>
  7558. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  7559. and groupname cannot both be null.
  7560. @param f The path
  7561. @param username If it is null, the original username remains unchanged.
  7562. @param groupname If it is null, the original groupname remains unchanged.
  7563. @throws AccessControlException If access is denied
  7564. @throws FileNotFoundException If <code>f</code> does not exist
  7565. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7566. not supported
  7567. @throws IOException If an I/O error occurred
  7568. Exceptions applicable to file systems accessed over RPC:
  7569. @throws RpcClientException If an exception occurred in the RPC client
  7570. @throws RpcServerException If an exception occurred in the RPC server
  7571. @throws UnexpectedServerException If server implementation throws
  7572. undeclared exception to RPC server
  7573. RuntimeExceptions:
  7574. @throws HadoopIllegalArgumentException If <code>username</code> or
  7575. <code>groupname</code> is invalid.]]>
  7576. </doc>
  7577. </method>
  7578. <method name="setTimes"
  7579. abstract="false" native="false" synchronized="false"
  7580. static="false" final="false" visibility="public"
  7581. deprecated="not deprecated">
  7582. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7583. <param name="mtime" type="long"/>
  7584. <param name="atime" type="long"/>
  7585. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7586. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7587. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7588. <exception name="IOException" type="java.io.IOException"/>
  7589. <doc>
  7590. <![CDATA[Set access time of a file.
  7591. @param f The path
  7592. @param mtime Set the modification time of this file.
  7593. The number of milliseconds since epoch (Jan 1, 1970).
  7594. A value of -1 means that this call should not set modification time.
  7595. @param atime Set the access time of this file.
  7596. The number of milliseconds since Jan 1, 1970.
  7597. A value of -1 means that this call should not set access time.
  7598. @throws AccessControlException If access is denied
  7599. @throws FileNotFoundException If <code>f</code> does not exist
  7600. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7601. not supported
  7602. @throws IOException If an I/O error occurred
  7603. Exceptions applicable to file systems accessed over RPC:
  7604. @throws RpcClientException If an exception occurred in the RPC client
  7605. @throws RpcServerException If an exception occurred in the RPC server
  7606. @throws UnexpectedServerException If server implementation throws
  7607. undeclared exception to RPC server]]>
  7608. </doc>
  7609. </method>
  7610. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  7611. abstract="false" native="false" synchronized="false"
  7612. static="false" final="false" visibility="public"
  7613. deprecated="not deprecated">
  7614. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7615. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7616. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7617. <exception name="IOException" type="java.io.IOException"/>
  7618. <doc>
  7619. <![CDATA[Get the checksum of a file.
  7620. @param f file path
  7621. @return The file checksum. The default return value is null,
  7622. which indicates that no checksum algorithm is implemented
  7623. in the corresponding FileSystem.
  7624. @throws AccessControlException If access is denied
  7625. @throws FileNotFoundException If <code>f</code> does not exist
  7626. @throws IOException If an I/O error occurred
  7627. Exceptions applicable to file systems accessed over RPC:
  7628. @throws RpcClientException If an exception occurred in the RPC client
  7629. @throws RpcServerException If an exception occurred in the RPC server
  7630. @throws UnexpectedServerException If server implementation throws
  7631. undeclared exception to RPC server]]>
  7632. </doc>
  7633. </method>
  7634. <method name="setVerifyChecksum"
  7635. abstract="false" native="false" synchronized="false"
  7636. static="false" final="false" visibility="public"
  7637. deprecated="not deprecated">
  7638. <param name="verifyChecksum" type="boolean"/>
  7639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7640. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7641. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7642. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7643. <exception name="IOException" type="java.io.IOException"/>
  7644. <doc>
  7645. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  7646. This is only applicable if the
  7647. corresponding FileSystem supports checksum. By default doesn't do anything.
  7648. @param verifyChecksum verify check sum.
  7649. @param f set the verifyChecksum for the Filesystem containing this path
  7650. @throws AccessControlException If access is denied
  7651. @throws FileNotFoundException If <code>f</code> does not exist
  7652. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7653. not supported
  7654. @throws IOException If an I/O error occurred
  7655. Exceptions applicable to file systems accessed over RPC:
  7656. @throws RpcClientException If an exception occurred in the RPC client
  7657. @throws RpcServerException If an exception occurred in the RPC server
  7658. @throws UnexpectedServerException If server implementation throws
  7659. undeclared exception to RPC server]]>
  7660. </doc>
  7661. </method>
  7662. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7663. abstract="false" native="false" synchronized="false"
  7664. static="false" final="false" visibility="public"
  7665. deprecated="not deprecated">
  7666. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7667. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7668. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7669. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7670. <exception name="IOException" type="java.io.IOException"/>
  7671. <doc>
  7672. <![CDATA[Return a file status object that represents the path.
  7673. @param f The path we want information from
  7674. @return a FileStatus object
  7675. @throws AccessControlException If access is denied
  7676. @throws FileNotFoundException If <code>f</code> does not exist
  7677. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7678. not supported
  7679. @throws IOException If an I/O error occurred
  7680. Exceptions applicable to file systems accessed over RPC:
  7681. @throws RpcClientException If an exception occurred in the RPC client
  7682. @throws RpcServerException If an exception occurred in the RPC server
  7683. @throws UnexpectedServerException If server implementation throws
  7684. undeclared exception to RPC server]]>
  7685. </doc>
  7686. </method>
  7687. <method name="msync"
  7688. abstract="false" native="false" synchronized="false"
  7689. static="false" final="false" visibility="public"
  7690. deprecated="not deprecated">
  7691. <exception name="IOException" type="java.io.IOException"/>
  7692. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  7693. <doc>
  7694. <![CDATA[Synchronize client metadata state.
  7695. @throws IOException If an I/O error occurred.
  7696. @throws UnsupportedOperationException If file system for <code>f</code> is
  7697. not supported.]]>
  7698. </doc>
  7699. </method>
  7700. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  7701. abstract="false" native="false" synchronized="false"
  7702. static="false" final="false" visibility="public"
  7703. deprecated="not deprecated">
  7704. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7705. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7706. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7707. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7708. <exception name="IOException" type="java.io.IOException"/>
  7709. <doc>
  7710. <![CDATA[Return a file status object that represents the path. If the path
  7711. refers to a symlink then the FileStatus of the symlink is returned.
  7712. The behavior is equivalent to #getFileStatus() if the underlying
  7713. file system does not support symbolic links.
  7714. @param f The path we want information from.
  7715. @return A FileStatus object
  7716. @throws AccessControlException If access is denied
  7717. @throws FileNotFoundException If <code>f</code> does not exist
  7718. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7719. not supported
  7720. @throws IOException If an I/O error occurred]]>
  7721. </doc>
  7722. </method>
  7723. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  7724. abstract="false" native="false" synchronized="false"
  7725. static="false" final="false" visibility="public"
  7726. deprecated="not deprecated">
  7727. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7728. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7729. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7730. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7731. <exception name="IOException" type="java.io.IOException"/>
  7732. <doc>
  7733. <![CDATA[Returns the target of the given symbolic link as it was specified
  7734. when the link was created. Links in the path leading up to the
  7735. final path component are resolved transparently.
  7736. @param f the path to return the target of
  7737. @return The un-interpreted target of the symbolic link.
  7738. @throws AccessControlException If access is denied
  7739. @throws FileNotFoundException If path <code>f</code> does not exist
  7740. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7741. not supported
  7742. @throws IOException If the given path does not refer to a symlink
  7743. or an I/O error occurred]]>
  7744. </doc>
  7745. </method>
  7746. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  7747. abstract="false" native="false" synchronized="false"
  7748. static="false" final="false" visibility="public"
  7749. deprecated="not deprecated">
  7750. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7751. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7752. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7753. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7754. <exception name="IOException" type="java.io.IOException"/>
  7755. <doc>
  7756. <![CDATA[Returns a status object describing the use and capacity of the
  7757. file system denoted by the Parh argument p.
  7758. If the file system has multiple partitions, the
  7759. use and capacity of the partition pointed to by the specified
  7760. path is reflected.
  7761. @param f Path for which status should be obtained. null means the
  7762. root partition of the default file system.
  7763. @return a FsStatus object
  7764. @throws AccessControlException If access is denied
  7765. @throws FileNotFoundException If <code>f</code> does not exist
  7766. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7767. not supported
  7768. @throws IOException If an I/O error occurred
  7769. Exceptions applicable to file systems accessed over RPC:
  7770. @throws RpcClientException If an exception occurred in the RPC client
  7771. @throws RpcServerException If an exception occurred in the RPC server
  7772. @throws UnexpectedServerException If server implementation throws
  7773. undeclared exception to RPC server]]>
  7774. </doc>
  7775. </method>
  7776. <method name="createSymlink"
  7777. abstract="false" native="false" synchronized="false"
  7778. static="false" final="false" visibility="public"
  7779. deprecated="not deprecated">
  7780. <param name="target" type="org.apache.hadoop.fs.Path"/>
  7781. <param name="link" type="org.apache.hadoop.fs.Path"/>
  7782. <param name="createParent" type="boolean"/>
  7783. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7784. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7785. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7786. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7787. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7788. <exception name="IOException" type="java.io.IOException"/>
  7789. <doc>
  7790. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  7791. the symlink exits, the user does not have permission to create symlink,
  7792. or the underlying file system does not support symlinks.
  7793. Symlink permissions are ignored, access to a symlink is determined by
  7794. the permissions of the symlink target.
  7795. Symlinks in paths leading up to the final path component are resolved
  7796. transparently. If the final path component refers to a symlink some
  7797. functions operate on the symlink itself, these are:
  7798. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  7799. - rename(src, dst) - If src refers to a symlink, the symlink is
  7800. renamed. If dst refers to a symlink, the symlink is over-written.
  7801. - getLinkTarget(f) - Returns the target of the symlink.
  7802. - getFileLinkStatus(f) - Returns a FileStatus object describing
  7803. the symlink.
  7804. Some functions, create() and mkdir(), expect the final path component
  7805. does not exist. If they are given a path that refers to a symlink that
  7806. does exist they behave as if the path referred to an existing file or
  7807. directory. All other functions fully resolve, ie follow, the symlink.
  7808. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  7809. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  7810. getFsStatus, getFileStatus, exists, and listStatus.
  7811. Symlink targets are stored as given to createSymlink, assuming the
  7812. underlying file system is capable of storing a fully qualified URI.
  7813. Dangling symlinks are permitted. FileContext supports four types of
  7814. symlink targets, and resolves them as follows
  7815. <pre>
  7816. Given a path referring to a symlink of form:
  7817. {@literal <---}X{@literal --->}
  7818. fs://host/A/B/link
  7819. {@literal <-----}Y{@literal ----->}
  7820. In this path X is the scheme and authority that identify the file system,
  7821. and Y is the path leading up to the final path component "link". If Y is
  7822. a symlink itself then let Y' be the target of Y and X' be the scheme and
  7823. authority of Y'. Symlink targets may:
  7824. 1. Fully qualified URIs
  7825. fs://hostX/A/B/file Resolved according to the target file system.
  7826. 2. Partially qualified URIs (eg scheme but no host)
  7827. fs:///A/B/file Resolved according to the target file system. Eg resolving
  7828. a symlink to hdfs:///A results in an exception because
  7829. HDFS URIs must be fully qualified, while a symlink to
  7830. file:///A will not since Hadoop's local file systems
  7831. require partially qualified URIs.
  7832. 3. Relative paths
  7833. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  7834. is "../B/file" then [Y'][path] is hdfs://host/B/file
  7835. 4. Absolute paths
  7836. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  7837. is "/file" then [X][path] is hdfs://host/file
  7838. </pre>
  7839. @param target the target of the symbolic link
  7840. @param link the path to be created that points to target
  7841. @param createParent if true then missing parent dirs are created if
  7842. false then parent must exist
  7843. @throws AccessControlException If access is denied
  7844. @throws FileAlreadyExistsException If file <code>link</code> already exists
  7845. @throws FileNotFoundException If <code>target</code> does not exist
  7846. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  7847. directory.
  7848. @throws UnsupportedFileSystemException If file system for
  7849. <code>target</code> or <code>link</code> is not supported
  7850. @throws IOException If an I/O error occurred]]>
  7851. </doc>
  7852. </method>
  7853. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7854. abstract="false" native="false" synchronized="false"
  7855. static="false" final="false" visibility="public"
  7856. deprecated="not deprecated">
  7857. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7858. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7859. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7860. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7861. <exception name="IOException" type="java.io.IOException"/>
  7862. <doc>
  7863. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7864. a directory.
  7865. @param f is the path
  7866. @return an iterator that traverses statuses of the files/directories
  7867. in the given path
  7868. @throws AccessControlException If access is denied
  7869. @throws FileNotFoundException If <code>f</code> does not exist
  7870. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7871. not supported
  7872. @throws IOException If an I/O error occurred
  7873. Exceptions applicable to file systems accessed over RPC:
  7874. @throws RpcClientException If an exception occurred in the RPC client
  7875. @throws RpcServerException If an exception occurred in the RPC server
  7876. @throws UnexpectedServerException If server implementation throws
  7877. undeclared exception to RPC server]]>
  7878. </doc>
  7879. </method>
  7880. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7881. abstract="false" native="false" synchronized="false"
  7882. static="false" final="false" visibility="public"
  7883. deprecated="not deprecated">
  7884. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7885. <exception name="IOException" type="java.io.IOException"/>
  7886. <doc>
  7887. <![CDATA[List CorruptFile Blocks.
  7888. @param path the path.
  7889. @return an iterator over the corrupt files under the given path
  7890. (may contain duplicates if a file has more than one corrupt block)
  7891. @throws IOException If an I/O error occurred.]]>
  7892. </doc>
  7893. </method>
  7894. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7895. abstract="false" native="false" synchronized="false"
  7896. static="false" final="false" visibility="public"
  7897. deprecated="not deprecated">
  7898. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7899. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7900. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7901. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7902. <exception name="IOException" type="java.io.IOException"/>
  7903. <doc>
  7904. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7905. a directory.
  7906. Return the file's status and block locations If the path is a file.
  7907. If a returned status is a file, it contains the file's block locations.
  7908. @param f is the path
  7909. @return an iterator that traverses statuses of the files/directories
  7910. in the given path
  7911. If any IO exception (for example the input directory gets deleted while
  7912. listing is being executed), next() or hasNext() of the returned iterator
  7913. may throw a RuntimeException with the io exception as the cause.
  7914. @throws AccessControlException If access is denied
  7915. @throws FileNotFoundException If <code>f</code> does not exist
  7916. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7917. not supported
  7918. @throws IOException If an I/O error occurred
  7919. Exceptions applicable to file systems accessed over RPC:
  7920. @throws RpcClientException If an exception occurred in the RPC client
  7921. @throws RpcServerException If an exception occurred in the RPC server
  7922. @throws UnexpectedServerException If server implementation throws
  7923. undeclared exception to RPC server]]>
  7924. </doc>
  7925. </method>
  7926. <method name="deleteOnExit" return="boolean"
  7927. abstract="false" native="false" synchronized="false"
  7928. static="false" final="false" visibility="public"
  7929. deprecated="not deprecated">
  7930. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7931. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7932. <exception name="IOException" type="java.io.IOException"/>
  7933. <doc>
  7934. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7935. @param f the existing path to delete.
  7936. @return true if deleteOnExit is successful, otherwise false.
  7937. @throws AccessControlException If access is denied
  7938. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7939. not supported
  7940. @throws IOException If an I/O error occurred
  7941. Exceptions applicable to file systems accessed over RPC:
  7942. @throws RpcClientException If an exception occurred in the RPC client
  7943. @throws RpcServerException If an exception occurred in the RPC server
  7944. @throws UnexpectedServerException If server implementation throws
  7945. undeclared exception to RPC server]]>
  7946. </doc>
  7947. </method>
  7948. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7949. abstract="false" native="false" synchronized="false"
  7950. static="false" final="false" visibility="public"
  7951. deprecated="not deprecated">
  7952. </method>
  7953. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7954. abstract="false" native="false" synchronized="false"
  7955. static="false" final="false" visibility="protected"
  7956. deprecated="not deprecated">
  7957. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7958. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7959. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7960. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7961. <exception name="IOException" type="java.io.IOException"/>
  7962. <doc>
  7963. <![CDATA[Resolves all symbolic links in the specified path.
  7964. Returns the new path object.
  7965. @param f the path.
  7966. @throws FileNotFoundException If <code>f</code> does not exist.
  7967. @throws UnresolvedLinkException If unresolved link occurred.
  7968. @throws AccessControlException If access is denied.
  7969. @throws IOException If an I/O error occurred.
  7970. @return resolve path.]]>
  7971. </doc>
  7972. </method>
  7973. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7974. abstract="false" native="false" synchronized="false"
  7975. static="false" final="false" visibility="protected"
  7976. deprecated="not deprecated">
  7977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7978. <exception name="IOException" type="java.io.IOException"/>
  7979. <doc>
  7980. <![CDATA[Resolves all symbolic links in the specified path leading up
  7981. to, but not including the final path component.
  7982. @param f path to resolve
  7983. @return the new path object.
  7984. @throws IOException If an I/O error occurred.]]>
  7985. </doc>
  7986. </method>
  7987. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7988. abstract="false" native="false" synchronized="false"
  7989. static="true" final="false" visibility="public"
  7990. deprecated="not deprecated">
  7991. <param name="uri" type="java.net.URI"/>
  7992. <doc>
  7993. <![CDATA[Get the statistics for a particular file system
  7994. @param uri
  7995. the uri to lookup the statistics. Only scheme and authority part
  7996. of the uri are used as the key to store and lookup.
  7997. @return a statistics object]]>
  7998. </doc>
  7999. </method>
  8000. <method name="clearStatistics"
  8001. abstract="false" native="false" synchronized="false"
  8002. static="true" final="false" visibility="public"
  8003. deprecated="not deprecated">
  8004. <doc>
  8005. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  8006. systems.]]>
  8007. </doc>
  8008. </method>
  8009. <method name="printStatistics"
  8010. abstract="false" native="false" synchronized="false"
  8011. static="true" final="false" visibility="public"
  8012. deprecated="not deprecated">
  8013. <doc>
  8014. <![CDATA[Prints the statistics to standard output. File System is identified by the
  8015. scheme and authority.]]>
  8016. </doc>
  8017. </method>
  8018. <method name="getAllStatistics" return="java.util.Map"
  8019. abstract="false" native="false" synchronized="false"
  8020. static="true" final="false" visibility="public"
  8021. deprecated="not deprecated">
  8022. <doc>
  8023. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  8024. consists of scheme and authority for the filesystem.]]>
  8025. </doc>
  8026. </method>
  8027. <method name="modifyAclEntries"
  8028. abstract="false" native="false" synchronized="false"
  8029. static="false" final="false" visibility="public"
  8030. deprecated="not deprecated">
  8031. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8032. <param name="aclSpec" type="java.util.List"/>
  8033. <exception name="IOException" type="java.io.IOException"/>
  8034. <doc>
  8035. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  8036. entries or modify the permissions on existing ACL entries. All existing
  8037. ACL entries that are not specified in this call are retained without
  8038. changes. (Modifications are merged into the current ACL.)
  8039. @param path Path to modify
  8040. @param aclSpec List{@literal <}AclEntry{@literal >} describing
  8041. modifications
  8042. @throws IOException if an ACL could not be modified]]>
  8043. </doc>
  8044. </method>
  8045. <method name="removeAclEntries"
  8046. abstract="false" native="false" synchronized="false"
  8047. static="false" final="false" visibility="public"
  8048. deprecated="not deprecated">
  8049. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8050. <param name="aclSpec" type="java.util.List"/>
  8051. <exception name="IOException" type="java.io.IOException"/>
  8052. <doc>
  8053. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  8054. retained.
  8055. @param path Path to modify
  8056. @param aclSpec List{@literal <}AclEntry{@literal >} describing entries
  8057. to remove
  8058. @throws IOException if an ACL could not be modified]]>
  8059. </doc>
  8060. </method>
  8061. <method name="removeDefaultAcl"
  8062. abstract="false" native="false" synchronized="false"
  8063. static="false" final="false" visibility="public"
  8064. deprecated="not deprecated">
  8065. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8066. <exception name="IOException" type="java.io.IOException"/>
  8067. <doc>
  8068. <![CDATA[Removes all default ACL entries from files and directories.
  8069. @param path Path to modify
  8070. @throws IOException if an ACL could not be modified]]>
  8071. </doc>
  8072. </method>
  8073. <method name="removeAcl"
  8074. abstract="false" native="false" synchronized="false"
  8075. static="false" final="false" visibility="public"
  8076. deprecated="not deprecated">
  8077. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8078. <exception name="IOException" type="java.io.IOException"/>
  8079. <doc>
  8080. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  8081. for user, group, and others are retained for compatibility with permission
  8082. bits.
  8083. @param path Path to modify
  8084. @throws IOException if an ACL could not be removed]]>
  8085. </doc>
  8086. </method>
  8087. <method name="setAcl"
  8088. abstract="false" native="false" synchronized="false"
  8089. static="false" final="false" visibility="public"
  8090. deprecated="not deprecated">
  8091. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8092. <param name="aclSpec" type="java.util.List"/>
  8093. <exception name="IOException" type="java.io.IOException"/>
  8094. <doc>
  8095. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  8096. entries.
  8097. @param path Path to modify
  8098. @param aclSpec List{@literal <}AclEntry{@literal >} describing
  8099. modifications, must include entries for user, group, and others for
  8100. compatibility with permission bits.
  8101. @throws IOException if an ACL could not be modified]]>
  8102. </doc>
  8103. </method>
  8104. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  8105. abstract="false" native="false" synchronized="false"
  8106. static="false" final="false" visibility="public"
  8107. deprecated="not deprecated">
  8108. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8109. <exception name="IOException" type="java.io.IOException"/>
  8110. <doc>
  8111. <![CDATA[Gets the ACLs of files and directories.
  8112. @param path Path to get
  8113. @return RemoteIterator{@literal <}AclStatus{@literal >} which returns
  8114. each AclStatus
  8115. @throws IOException if an ACL could not be read]]>
  8116. </doc>
  8117. </method>
  8118. <method name="setXAttr"
  8119. abstract="false" native="false" synchronized="false"
  8120. static="false" final="false" visibility="public"
  8121. deprecated="not deprecated">
  8122. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8123. <param name="name" type="java.lang.String"/>
  8124. <param name="value" type="byte[]"/>
  8125. <exception name="IOException" type="java.io.IOException"/>
  8126. <doc>
  8127. <![CDATA[Set an xattr of a file or directory.
  8128. The name must be prefixed with the namespace followed by ".". For example,
  8129. "user.attr".
  8130. <p>
  8131. Refer to the HDFS extended attributes user documentation for details.
  8132. @param path Path to modify
  8133. @param name xattr name.
  8134. @param value xattr value.
  8135. @throws IOException If an I/O error occurred.]]>
  8136. </doc>
  8137. </method>
  8138. <method name="setXAttr"
  8139. abstract="false" native="false" synchronized="false"
  8140. static="false" final="false" visibility="public"
  8141. deprecated="not deprecated">
  8142. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8143. <param name="name" type="java.lang.String"/>
  8144. <param name="value" type="byte[]"/>
  8145. <param name="flag" type="java.util.EnumSet"/>
  8146. <exception name="IOException" type="java.io.IOException"/>
  8147. <doc>
  8148. <![CDATA[Set an xattr of a file or directory.
  8149. The name must be prefixed with the namespace followed by ".". For example,
  8150. "user.attr".
  8151. <p>
  8152. Refer to the HDFS extended attributes user documentation for details.
  8153. @param path Path to modify
  8154. @param name xattr name.
  8155. @param value xattr value.
  8156. @param flag xattr set flag
  8157. @throws IOException If an I/O error occurred.]]>
  8158. </doc>
  8159. </method>
  8160. <method name="getXAttr" return="byte[]"
  8161. abstract="false" native="false" synchronized="false"
  8162. static="false" final="false" visibility="public"
  8163. deprecated="not deprecated">
  8164. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8165. <param name="name" type="java.lang.String"/>
  8166. <exception name="IOException" type="java.io.IOException"/>
  8167. <doc>
  8168. <![CDATA[Get an xattr for a file or directory.
  8169. The name must be prefixed with the namespace followed by ".". For example,
  8170. "user.attr".
  8171. <p>
  8172. Refer to the HDFS extended attributes user documentation for details.
  8173. @param path Path to get extended attribute
  8174. @param name xattr name.
  8175. @return byte[] xattr value.
  8176. @throws IOException If an I/O error occurred.]]>
  8177. </doc>
  8178. </method>
  8179. <method name="getXAttrs" return="java.util.Map"
  8180. abstract="false" native="false" synchronized="false"
  8181. static="false" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8184. <exception name="IOException" type="java.io.IOException"/>
  8185. <doc>
  8186. <![CDATA[Get all of the xattrs for a file or directory.
  8187. Only those xattrs for which the logged-in user has permissions to view
  8188. are returned.
  8189. <p>
  8190. Refer to the HDFS extended attributes user documentation for details.
  8191. @param path Path to get extended attributes
  8192. @return Map{@literal <}String, byte[]{@literal >} describing the XAttrs
  8193. of the file or directory
  8194. @throws IOException If an I/O error occurred.]]>
  8195. </doc>
  8196. </method>
  8197. <method name="getXAttrs" return="java.util.Map"
  8198. abstract="false" native="false" synchronized="false"
  8199. static="false" final="false" visibility="public"
  8200. deprecated="not deprecated">
  8201. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8202. <param name="names" type="java.util.List"/>
  8203. <exception name="IOException" type="java.io.IOException"/>
  8204. <doc>
  8205. <![CDATA[Get all of the xattrs for a file or directory.
  8206. Only those xattrs for which the logged-in user has permissions to view
  8207. are returned.
  8208. <p>
  8209. Refer to the HDFS extended attributes user documentation for details.
  8210. @param path Path to get extended attributes
  8211. @param names XAttr names.
  8212. @return Map{@literal <}String, byte[]{@literal >} describing the XAttrs
  8213. of the file or directory
  8214. @throws IOException If an I/O error occurred.]]>
  8215. </doc>
  8216. </method>
  8217. <method name="removeXAttr"
  8218. abstract="false" native="false" synchronized="false"
  8219. static="false" final="false" visibility="public"
  8220. deprecated="not deprecated">
  8221. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8222. <param name="name" type="java.lang.String"/>
  8223. <exception name="IOException" type="java.io.IOException"/>
  8224. <doc>
  8225. <![CDATA[Remove an xattr of a file or directory.
  8226. The name must be prefixed with the namespace followed by ".". For example,
  8227. "user.attr".
  8228. <p>
  8229. Refer to the HDFS extended attributes user documentation for details.
  8230. @param path Path to remove extended attribute
  8231. @param name xattr name
  8232. @throws IOException If an I/O error occurred.]]>
  8233. </doc>
  8234. </method>
  8235. <method name="listXAttrs" return="java.util.List"
  8236. abstract="false" native="false" synchronized="false"
  8237. static="false" final="false" visibility="public"
  8238. deprecated="not deprecated">
  8239. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8240. <exception name="IOException" type="java.io.IOException"/>
  8241. <doc>
  8242. <![CDATA[Get all of the xattr names for a file or directory.
  8243. Only those xattr names which the logged-in user has permissions to view
  8244. are returned.
  8245. <p>
  8246. Refer to the HDFS extended attributes user documentation for details.
  8247. @param path Path to get extended attributes
  8248. @return List{@literal <}String{@literal >} of the XAttr names of the
  8249. file or directory
  8250. @throws IOException If an I/O error occurred.]]>
  8251. </doc>
  8252. </method>
  8253. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  8254. abstract="false" native="false" synchronized="false"
  8255. static="false" final="true" visibility="public"
  8256. deprecated="not deprecated">
  8257. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8258. <exception name="IOException" type="java.io.IOException"/>
  8259. <doc>
  8260. <![CDATA[Create a snapshot with a default name.
  8261. @param path The directory where snapshots will be taken.
  8262. @return the snapshot path.
  8263. @throws IOException If an I/O error occurred
  8264. <p>Exceptions applicable to file systems accessed over RPC:
  8265. @throws RpcClientException If an exception occurred in the RPC client
  8266. @throws RpcServerException If an exception occurred in the RPC server
  8267. @throws UnexpectedServerException If server implementation throws
  8268. undeclared exception to RPC server]]>
  8269. </doc>
  8270. </method>
  8271. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  8272. abstract="false" native="false" synchronized="false"
  8273. static="false" final="false" visibility="public"
  8274. deprecated="not deprecated">
  8275. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8276. <param name="snapshotName" type="java.lang.String"/>
  8277. <exception name="IOException" type="java.io.IOException"/>
  8278. <doc>
  8279. <![CDATA[Create a snapshot.
  8280. @param path The directory where snapshots will be taken.
  8281. @param snapshotName The name of the snapshot
  8282. @return the snapshot path.
  8283. @throws IOException If an I/O error occurred
  8284. <p>Exceptions applicable to file systems accessed over RPC:
  8285. @throws RpcClientException If an exception occurred in the RPC client
  8286. @throws RpcServerException If an exception occurred in the RPC server
  8287. @throws UnexpectedServerException If server implementation throws
  8288. undeclared exception to RPC server]]>
  8289. </doc>
  8290. </method>
  8291. <method name="renameSnapshot"
  8292. abstract="false" native="false" synchronized="false"
  8293. static="false" final="false" visibility="public"
  8294. deprecated="not deprecated">
  8295. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8296. <param name="snapshotOldName" type="java.lang.String"/>
  8297. <param name="snapshotNewName" type="java.lang.String"/>
  8298. <exception name="IOException" type="java.io.IOException"/>
  8299. <doc>
  8300. <![CDATA[Rename a snapshot.
  8301. @param path The directory path where the snapshot was taken
  8302. @param snapshotOldName Old name of the snapshot
  8303. @param snapshotNewName New name of the snapshot
  8304. @throws IOException If an I/O error occurred
  8305. <p>Exceptions applicable to file systems accessed over RPC:
  8306. @throws RpcClientException If an exception occurred in the RPC client
  8307. @throws RpcServerException If an exception occurred in the RPC server
  8308. @throws UnexpectedServerException If server implementation throws
  8309. undeclared exception to RPC server]]>
  8310. </doc>
  8311. </method>
  8312. <method name="deleteSnapshot"
  8313. abstract="false" native="false" synchronized="false"
  8314. static="false" final="false" visibility="public"
  8315. deprecated="not deprecated">
  8316. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8317. <param name="snapshotName" type="java.lang.String"/>
  8318. <exception name="IOException" type="java.io.IOException"/>
  8319. <doc>
  8320. <![CDATA[Delete a snapshot of a directory.
  8321. @param path The directory that the to-be-deleted snapshot belongs to
  8322. @param snapshotName The name of the snapshot
  8323. @throws IOException If an I/O error occurred
  8324. <p>Exceptions applicable to file systems accessed over RPC:
  8325. @throws RpcClientException If an exception occurred in the RPC client
  8326. @throws RpcServerException If an exception occurred in the RPC server
  8327. @throws UnexpectedServerException If server implementation throws
  8328. undeclared exception to RPC server]]>
  8329. </doc>
  8330. </method>
  8331. <method name="satisfyStoragePolicy"
  8332. abstract="false" native="false" synchronized="false"
  8333. static="false" final="false" visibility="public"
  8334. deprecated="not deprecated">
  8335. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8336. <exception name="IOException" type="java.io.IOException"/>
  8337. <doc>
  8338. <![CDATA[Set the source path to satisfy storage policy.
  8339. @param path The source path referring to either a directory or a file.
  8340. @throws IOException If an I/O error occurred.]]>
  8341. </doc>
  8342. </method>
  8343. <method name="setStoragePolicy"
  8344. abstract="false" native="false" synchronized="false"
  8345. static="false" final="false" visibility="public"
  8346. deprecated="not deprecated">
  8347. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8348. <param name="policyName" type="java.lang.String"/>
  8349. <exception name="IOException" type="java.io.IOException"/>
  8350. <doc>
  8351. <![CDATA[Set the storage policy for a given file or directory.
  8352. @param path file or directory path.
  8353. @param policyName the name of the target storage policy. The list
  8354. of supported Storage policies can be retrieved
  8355. via {@link #getAllStoragePolicies}.
  8356. @throws IOException If an I/O error occurred.]]>
  8357. </doc>
  8358. </method>
  8359. <method name="unsetStoragePolicy"
  8360. abstract="false" native="false" synchronized="false"
  8361. static="false" final="false" visibility="public"
  8362. deprecated="not deprecated">
  8363. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8364. <exception name="IOException" type="java.io.IOException"/>
  8365. <doc>
  8366. <![CDATA[Unset the storage policy set for a given file or directory.
  8367. @param src file or directory path.
  8368. @throws IOException If an I/O error occurred.]]>
  8369. </doc>
  8370. </method>
  8371. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  8372. abstract="false" native="false" synchronized="false"
  8373. static="false" final="false" visibility="public"
  8374. deprecated="not deprecated">
  8375. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8376. <exception name="IOException" type="java.io.IOException"/>
  8377. <doc>
  8378. <![CDATA[Query the effective storage policy ID for the given file or directory.
  8379. @param path file or directory path.
  8380. @return storage policy for give file.
  8381. @throws IOException If an I/O error occurred.]]>
  8382. </doc>
  8383. </method>
  8384. <method name="getAllStoragePolicies" return="java.util.Collection"
  8385. abstract="false" native="false" synchronized="false"
  8386. static="false" final="false" visibility="public"
  8387. deprecated="not deprecated">
  8388. <exception name="IOException" type="java.io.IOException"/>
  8389. <doc>
  8390. <![CDATA[Retrieve all the storage policies supported by this file system.
  8391. @return all storage policies supported by this filesystem.
  8392. @throws IOException If an I/O error occurred.]]>
  8393. </doc>
  8394. </method>
  8395. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  8396. abstract="false" native="false" synchronized="false"
  8397. static="false" final="false" visibility="public"
  8398. deprecated="not deprecated">
  8399. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8400. <exception name="IOException" type="java.io.IOException"/>
  8401. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  8402. <doc>
  8403. <![CDATA[Open a file for reading through a builder API.
  8404. Ultimately calls {@link #open(Path, int)} unless a subclass
  8405. executes the open command differently.
  8406. The semantics of this call are therefore the same as that of
  8407. {@link #open(Path, int)} with one special point: it is in
  8408. {@code FSDataInputStreamBuilder.build()} in which the open operation
  8409. takes place -it is there where all preconditions to the operation
  8410. are checked.
  8411. @param path file path
  8412. @return a FSDataInputStreamBuilder object to build the input stream
  8413. @throws IOException if some early checks cause IO failures.
  8414. @throws UnsupportedOperationException if support is checked early.]]>
  8415. </doc>
  8416. </method>
  8417. <method name="hasPathCapability" return="boolean"
  8418. abstract="false" native="false" synchronized="false"
  8419. static="false" final="false" visibility="public"
  8420. deprecated="not deprecated">
  8421. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8422. <param name="capability" type="java.lang.String"/>
  8423. <exception name="IOException" type="java.io.IOException"/>
  8424. <doc>
  8425. <![CDATA[Return the path capabilities of the bonded {@code AbstractFileSystem}.
  8426. @param path path to query the capability of.
  8427. @param capability string to query the stream support for.
  8428. @return true iff the capability is supported under that FS.
  8429. @throws IOException path resolution or other IO failure
  8430. @throws IllegalArgumentException invalid arguments]]>
  8431. </doc>
  8432. </method>
  8433. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8434. abstract="false" native="false" synchronized="false"
  8435. static="false" final="false" visibility="public"
  8436. deprecated="not deprecated">
  8437. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8438. <exception name="IOException" type="java.io.IOException"/>
  8439. <doc>
  8440. <![CDATA[Return a set of server default configuration values based on path.
  8441. @param path path to fetch server defaults
  8442. @return server default configuration values for path
  8443. @throws IOException an I/O error occurred]]>
  8444. </doc>
  8445. </method>
  8446. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  8447. abstract="false" native="false" synchronized="false"
  8448. static="false" final="false" visibility="public"
  8449. deprecated="not deprecated">
  8450. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  8451. <exception name="IOException" type="java.io.IOException"/>
  8452. <doc>
  8453. <![CDATA[Create a multipart uploader.
  8454. @param basePath file path under which all files are uploaded
  8455. @return a MultipartUploaderBuilder object to build the uploader
  8456. @throws IOException if some early checks cause IO failures.
  8457. @throws UnsupportedOperationException if support is checked early.]]>
  8458. </doc>
  8459. </method>
  8460. <field name="LOG" type="org.slf4j.Logger"
  8461. transient="false" volatile="false"
  8462. static="true" final="true" visibility="public"
  8463. deprecated="not deprecated">
  8464. </field>
  8465. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  8466. transient="false" volatile="false"
  8467. static="true" final="true" visibility="public"
  8468. deprecated="not deprecated">
  8469. <doc>
  8470. <![CDATA[Default permission for directory and symlink
  8471. In previous versions, this default permission was also used to
  8472. create files, so files created end up with ugo+x permission.
  8473. See HADOOP-9155 for detail.
  8474. Two new constants are added to solve this, please use
  8475. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  8476. {@link FileContext#FILE_DEFAULT_PERM} for file.
  8477. This constant is kept for compatibility.]]>
  8478. </doc>
  8479. </field>
  8480. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  8481. transient="false" volatile="false"
  8482. static="true" final="true" visibility="public"
  8483. deprecated="not deprecated">
  8484. <doc>
  8485. <![CDATA[Default permission for directory]]>
  8486. </doc>
  8487. </field>
  8488. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  8489. transient="false" volatile="false"
  8490. static="true" final="true" visibility="public"
  8491. deprecated="not deprecated">
  8492. <doc>
  8493. <![CDATA[Default permission for file]]>
  8494. </doc>
  8495. </field>
  8496. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  8497. transient="false" volatile="false"
  8498. static="true" final="true" visibility="public"
  8499. deprecated="not deprecated">
  8500. <doc>
  8501. <![CDATA[Priority of the FileContext shutdown hook.]]>
  8502. </doc>
  8503. </field>
  8504. <doc>
  8505. <![CDATA[The FileContext class provides an interface for users of the Hadoop
  8506. file system. It exposes a number of file system operations, e.g. create,
  8507. open, list.
  8508. <h2>Path Names</h2>
  8509. The Hadoop file system supports a URI namespace and URI names. This enables
  8510. multiple types of file systems to be referenced using fully-qualified URIs.
  8511. Two common Hadoop file system implementations are
  8512. <ul>
  8513. <li>the local file system: file:///path
  8514. <li>the HDFS file system: hdfs://nnAddress:nnPort/path
  8515. </ul>
  8516. The Hadoop file system also supports additional naming schemes besides URIs.
  8517. Hadoop has the concept of a <i>default file system</i>, which implies a
  8518. default URI scheme and authority. This enables <i>slash-relative names</i>
  8519. relative to the default FS, which are more convenient for users and
  8520. application writers. The default FS is typically set by the user's
  8521. environment, though it can also be manually specified.
  8522. <p>
  8523. Hadoop also supports <i>working-directory-relative</i> names, which are paths
  8524. relative to the current working directory (similar to Unix). The working
  8525. directory can be in a different file system than the default FS.
  8526. <p>
  8527. Thus, Hadoop path names can be specified as one of the following:
  8528. <ul>
  8529. <li>a fully-qualified URI: scheme://authority/path (e.g.
  8530. hdfs://nnAddress:nnPort/foo/bar)
  8531. <li>a slash-relative name: path relative to the default file system (e.g.
  8532. /foo/bar)
  8533. <li>a working-directory-relative name: path relative to the working dir (e.g.
  8534. foo/bar)
  8535. </ul>
  8536. Relative paths with scheme (scheme:foo/bar) are illegal.
  8537. <h2>Role of FileContext and Configuration Defaults</h2>
  8538. The FileContext is the analogue of per-process file-related state in Unix. It
  8539. contains two properties:
  8540. <ul>
  8541. <li>the default file system (for resolving slash-relative names)
  8542. <li>the umask (for file permissions)
  8543. </ul>
  8544. In general, these properties are obtained from the default configuration file
  8545. in the user's environment (see {@link Configuration}).
  8546. Further file system properties are specified on the server-side. File system
  8547. operations default to using these server-side defaults unless otherwise
  8548. specified.
  8549. <p>
  8550. The file system related server-side defaults are:
  8551. <ul>
  8552. <li> the home directory (default is "/user/userName")
  8553. <li> the initial wd (only for local fs)
  8554. <li> replication factor
  8555. <li> block size
  8556. <li> buffer size
  8557. <li> encryptDataTransfer
  8558. <li> checksum option. (checksumType and bytesPerChecksum)
  8559. </ul>
  8560. <h2>Example Usage</h2>
  8561. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  8562. Unspecified values come from core-defaults.xml in the release jar.
  8563. <ul>
  8564. <li> myFContext = FileContext.getFileContext(); // uses the default config
  8565. // which has your default FS
  8566. <li> myFContext.create(path, ...);
  8567. <li> myFContext.setWorkingDir(path);
  8568. <li> myFContext.open (path, ...);
  8569. <li>...
  8570. </ul>
  8571. Example 2: Get a FileContext with a specific URI as the default FS
  8572. <ul>
  8573. <li> myFContext = FileContext.getFileContext(URI);
  8574. <li> myFContext.create(path, ...);
  8575. <li>...
  8576. </ul>
  8577. Example 3: FileContext with local file system as the default
  8578. <ul>
  8579. <li> myFContext = FileContext.getLocalFSFileContext();
  8580. <li> myFContext.create(path, ...);
  8581. <li> ...
  8582. </ul>
  8583. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  8584. Generally you should not need use a config unless you are doing
  8585. <ul>
  8586. <li> configX = someConfigSomeOnePassedToYou;
  8587. <li> myFContext = getFileContext(configX); // configX is not changed,
  8588. // is passed down
  8589. <li> myFContext.create(path, ...);
  8590. <li>...
  8591. </ul>]]>
  8592. </doc>
  8593. </class>
  8594. <!-- end class org.apache.hadoop.fs.FileContext -->
  8595. <!-- start class org.apache.hadoop.fs.FileStatus -->
  8596. <class name="FileStatus" extends="java.lang.Object"
  8597. abstract="false"
  8598. static="false" final="false" visibility="public"
  8599. deprecated="not deprecated">
  8600. <implements name="org.apache.hadoop.io.Writable"/>
  8601. <implements name="java.lang.Comparable"/>
  8602. <implements name="java.io.Serializable"/>
  8603. <implements name="java.io.ObjectInputValidation"/>
  8604. <constructor name="FileStatus"
  8605. static="false" final="false" visibility="public"
  8606. deprecated="not deprecated">
  8607. </constructor>
  8608. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  8609. static="false" final="false" visibility="public"
  8610. deprecated="not deprecated">
  8611. </constructor>
  8612. <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"
  8613. static="false" final="false" visibility="public"
  8614. deprecated="not deprecated">
  8615. <doc>
  8616. <![CDATA[Constructor for file systems on which symbolic links are not supported
  8617. @param length length.
  8618. @param isdir isdir.
  8619. @param block_replication block replication.
  8620. @param blocksize block size.
  8621. @param modification_time modification time.
  8622. @param access_time access_time.
  8623. @param permission permission.
  8624. @param owner owner.
  8625. @param group group.
  8626. @param path the path.]]>
  8627. </doc>
  8628. </constructor>
  8629. <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"
  8630. static="false" final="false" visibility="public"
  8631. deprecated="not deprecated">
  8632. </constructor>
  8633. <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"
  8634. static="false" final="false" visibility="public"
  8635. deprecated="not deprecated">
  8636. </constructor>
  8637. <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"
  8638. static="false" final="false" visibility="public"
  8639. deprecated="not deprecated">
  8640. </constructor>
  8641. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  8642. static="false" final="false" visibility="public"
  8643. deprecated="not deprecated">
  8644. <exception name="IOException" type="java.io.IOException"/>
  8645. <doc>
  8646. <![CDATA[Copy constructor.
  8647. @param other FileStatus to copy
  8648. @throws IOException raised on errors performing I/O.]]>
  8649. </doc>
  8650. </constructor>
  8651. <method name="attributes" return="java.util.Set"
  8652. abstract="false" native="false" synchronized="false"
  8653. static="true" final="false" visibility="public"
  8654. deprecated="not deprecated">
  8655. <param name="acl" type="boolean"/>
  8656. <param name="crypt" type="boolean"/>
  8657. <param name="ec" type="boolean"/>
  8658. <param name="sn" type="boolean"/>
  8659. <doc>
  8660. <![CDATA[Convert boolean attributes to a set of flags.
  8661. @param acl See {@link AttrFlags#HAS_ACL}.
  8662. @param crypt See {@link AttrFlags#HAS_CRYPT}.
  8663. @param ec See {@link AttrFlags#HAS_EC}.
  8664. @param sn See {@link AttrFlags#SNAPSHOT_ENABLED}.
  8665. @return converted set of flags.]]>
  8666. </doc>
  8667. </method>
  8668. <method name="getLen" return="long"
  8669. abstract="false" native="false" synchronized="false"
  8670. static="false" final="false" visibility="public"
  8671. deprecated="not deprecated">
  8672. <doc>
  8673. <![CDATA[Get the length of this file, in bytes.
  8674. @return the length of this file, in bytes.]]>
  8675. </doc>
  8676. </method>
  8677. <method name="isFile" return="boolean"
  8678. abstract="false" native="false" synchronized="false"
  8679. static="false" final="false" visibility="public"
  8680. deprecated="not deprecated">
  8681. <doc>
  8682. <![CDATA[Is this a file?
  8683. @return true if this is a file]]>
  8684. </doc>
  8685. </method>
  8686. <method name="isDirectory" return="boolean"
  8687. abstract="false" native="false" synchronized="false"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <doc>
  8691. <![CDATA[Is this a directory?
  8692. @return true if this is a directory]]>
  8693. </doc>
  8694. </method>
  8695. <method name="isDir" return="boolean"
  8696. abstract="false" native="false" synchronized="false"
  8697. static="false" final="true" visibility="public"
  8698. deprecated="Use {@link FileStatus#isFile()},
  8699. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8700. instead.">
  8701. <doc>
  8702. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  8703. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8704. @return true if this is a directory.
  8705. @deprecated Use {@link FileStatus#isFile()},
  8706. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8707. instead.]]>
  8708. </doc>
  8709. </method>
  8710. <method name="isSymlink" return="boolean"
  8711. abstract="false" native="false" synchronized="false"
  8712. static="false" final="false" visibility="public"
  8713. deprecated="not deprecated">
  8714. <doc>
  8715. <![CDATA[Is this a symbolic link?
  8716. @return true if this is a symbolic link]]>
  8717. </doc>
  8718. </method>
  8719. <method name="getBlockSize" return="long"
  8720. abstract="false" native="false" synchronized="false"
  8721. static="false" final="false" visibility="public"
  8722. deprecated="not deprecated">
  8723. <doc>
  8724. <![CDATA[Get the block size of the file.
  8725. @return the number of bytes]]>
  8726. </doc>
  8727. </method>
  8728. <method name="getReplication" return="short"
  8729. abstract="false" native="false" synchronized="false"
  8730. static="false" final="false" visibility="public"
  8731. deprecated="not deprecated">
  8732. <doc>
  8733. <![CDATA[Get the replication factor of a file.
  8734. @return the replication factor of a file.]]>
  8735. </doc>
  8736. </method>
  8737. <method name="getModificationTime" return="long"
  8738. abstract="false" native="false" synchronized="false"
  8739. static="false" final="false" visibility="public"
  8740. deprecated="not deprecated">
  8741. <doc>
  8742. <![CDATA[Get the modification time of the file.
  8743. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  8744. </doc>
  8745. </method>
  8746. <method name="getAccessTime" return="long"
  8747. abstract="false" native="false" synchronized="false"
  8748. static="false" final="false" visibility="public"
  8749. deprecated="not deprecated">
  8750. <doc>
  8751. <![CDATA[Get the access time of the file.
  8752. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  8753. </doc>
  8754. </method>
  8755. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  8756. abstract="false" native="false" synchronized="false"
  8757. static="false" final="false" visibility="public"
  8758. deprecated="not deprecated">
  8759. <doc>
  8760. <![CDATA[Get FsPermission associated with the file.
  8761. @return permission. If a filesystem does not have a notion of permissions
  8762. or if permissions could not be determined, then default
  8763. permissions equivalent of "rwxrwxrwx" is returned.]]>
  8764. </doc>
  8765. </method>
  8766. <method name="hasAcl" return="boolean"
  8767. abstract="false" native="false" synchronized="false"
  8768. static="false" final="false" visibility="public"
  8769. deprecated="not deprecated">
  8770. <doc>
  8771. <![CDATA[Tell whether the underlying file or directory has ACLs set.
  8772. @return true if the underlying file or directory has ACLs set.]]>
  8773. </doc>
  8774. </method>
  8775. <method name="isEncrypted" return="boolean"
  8776. abstract="false" native="false" synchronized="false"
  8777. static="false" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <doc>
  8780. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  8781. @return true if the underlying file is encrypted.]]>
  8782. </doc>
  8783. </method>
  8784. <method name="isErasureCoded" return="boolean"
  8785. abstract="false" native="false" synchronized="false"
  8786. static="false" final="false" visibility="public"
  8787. deprecated="not deprecated">
  8788. <doc>
  8789. <![CDATA[Tell whether the underlying file or directory is erasure coded or not.
  8790. @return true if the underlying file or directory is erasure coded.]]>
  8791. </doc>
  8792. </method>
  8793. <method name="isSnapshotEnabled" return="boolean"
  8794. abstract="false" native="false" synchronized="false"
  8795. static="false" final="false" visibility="public"
  8796. deprecated="not deprecated">
  8797. <doc>
  8798. <![CDATA[Check if directory is Snapshot enabled or not.
  8799. @return true if directory is snapshot enabled]]>
  8800. </doc>
  8801. </method>
  8802. <method name="getOwner" return="java.lang.String"
  8803. abstract="false" native="false" synchronized="false"
  8804. static="false" final="false" visibility="public"
  8805. deprecated="not deprecated">
  8806. <doc>
  8807. <![CDATA[Get the owner of the file.
  8808. @return owner of the file. The string could be empty if there is no
  8809. notion of owner of a file in a filesystem or if it could not
  8810. be determined (rare).]]>
  8811. </doc>
  8812. </method>
  8813. <method name="getGroup" return="java.lang.String"
  8814. abstract="false" native="false" synchronized="false"
  8815. static="false" final="false" visibility="public"
  8816. deprecated="not deprecated">
  8817. <doc>
  8818. <![CDATA[Get the group associated with the file.
  8819. @return group for the file. The string could be empty if there is no
  8820. notion of group of a file in a filesystem or if it could not
  8821. be determined (rare).]]>
  8822. </doc>
  8823. </method>
  8824. <method name="getPath" return="org.apache.hadoop.fs.Path"
  8825. abstract="false" native="false" synchronized="false"
  8826. static="false" final="false" visibility="public"
  8827. deprecated="not deprecated">
  8828. </method>
  8829. <method name="setPath"
  8830. abstract="false" native="false" synchronized="false"
  8831. static="false" final="false" visibility="public"
  8832. deprecated="not deprecated">
  8833. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8834. </method>
  8835. <method name="setPermission"
  8836. abstract="false" native="false" synchronized="false"
  8837. static="false" final="false" visibility="protected"
  8838. deprecated="not deprecated">
  8839. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8840. <doc>
  8841. <![CDATA[Sets permission.
  8842. @param permission if permission is null, default value is set]]>
  8843. </doc>
  8844. </method>
  8845. <method name="setOwner"
  8846. abstract="false" native="false" synchronized="false"
  8847. static="false" final="false" visibility="protected"
  8848. deprecated="not deprecated">
  8849. <param name="owner" type="java.lang.String"/>
  8850. <doc>
  8851. <![CDATA[Sets owner.
  8852. @param owner if it is null, default value is set]]>
  8853. </doc>
  8854. </method>
  8855. <method name="setGroup"
  8856. abstract="false" native="false" synchronized="false"
  8857. static="false" final="false" visibility="protected"
  8858. deprecated="not deprecated">
  8859. <param name="group" type="java.lang.String"/>
  8860. <doc>
  8861. <![CDATA[Sets group.
  8862. @param group if it is null, default value is set]]>
  8863. </doc>
  8864. </method>
  8865. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  8866. abstract="false" native="false" synchronized="false"
  8867. static="false" final="false" visibility="public"
  8868. deprecated="not deprecated">
  8869. <exception name="IOException" type="java.io.IOException"/>
  8870. <doc>
  8871. <![CDATA[@return The contents of the symbolic link.
  8872. @throws IOException raised on errors performing I/O.]]>
  8873. </doc>
  8874. </method>
  8875. <method name="setSymlink"
  8876. abstract="false" native="false" synchronized="false"
  8877. static="false" final="false" visibility="public"
  8878. deprecated="not deprecated">
  8879. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8880. </method>
  8881. <method name="compareTo" return="int"
  8882. abstract="false" native="false" synchronized="false"
  8883. static="false" final="false" visibility="public"
  8884. deprecated="not deprecated">
  8885. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  8886. <doc>
  8887. <![CDATA[Compare this FileStatus to another FileStatus
  8888. @param o the FileStatus to be compared.
  8889. @return a negative integer, zero, or a positive integer as this object
  8890. is less than, equal to, or greater than the specified object.]]>
  8891. </doc>
  8892. </method>
  8893. <method name="compareTo" return="int"
  8894. abstract="false" native="false" synchronized="false"
  8895. static="false" final="false" visibility="public"
  8896. deprecated="not deprecated">
  8897. <param name="o" type="java.lang.Object"/>
  8898. <doc>
  8899. <![CDATA[Compare this FileStatus to another FileStatus.
  8900. This method was added back by HADOOP-14683 to keep binary compatibility.
  8901. @param o the FileStatus to be compared.
  8902. @return a negative integer, zero, or a positive integer as this object
  8903. is less than, equal to, or greater than the specified object.
  8904. @throws ClassCastException if the specified object is not FileStatus]]>
  8905. </doc>
  8906. </method>
  8907. <method name="equals" return="boolean"
  8908. abstract="false" native="false" synchronized="false"
  8909. static="false" final="false" visibility="public"
  8910. deprecated="not deprecated">
  8911. <param name="o" type="java.lang.Object"/>
  8912. <doc>
  8913. <![CDATA[Compare if this object is equal to another object
  8914. @param o the object to be compared.
  8915. @return true if two file status has the same path name; false if not.]]>
  8916. </doc>
  8917. </method>
  8918. <method name="hashCode" return="int"
  8919. abstract="false" native="false" synchronized="false"
  8920. static="false" final="false" visibility="public"
  8921. deprecated="not deprecated">
  8922. <doc>
  8923. <![CDATA[Returns a hash code value for the object, which is defined as
  8924. the hash code of the path name.
  8925. @return a hash code value for the path name.]]>
  8926. </doc>
  8927. </method>
  8928. <method name="toString" return="java.lang.String"
  8929. abstract="false" native="false" synchronized="false"
  8930. static="false" final="false" visibility="public"
  8931. deprecated="not deprecated">
  8932. </method>
  8933. <method name="readFields"
  8934. abstract="false" native="false" synchronized="false"
  8935. static="false" final="false" visibility="public"
  8936. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8937. <param name="in" type="java.io.DataInput"/>
  8938. <exception name="IOException" type="java.io.IOException"/>
  8939. <doc>
  8940. <![CDATA[Read instance encoded as protobuf from stream.
  8941. @param in Input stream
  8942. @see PBHelper#convert(FileStatus)
  8943. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8944. </doc>
  8945. </method>
  8946. <method name="write"
  8947. abstract="false" native="false" synchronized="false"
  8948. static="false" final="false" visibility="public"
  8949. deprecated="Use the {@link PBHelper} and protobuf serialization directly.">
  8950. <param name="out" type="java.io.DataOutput"/>
  8951. <exception name="IOException" type="java.io.IOException"/>
  8952. <doc>
  8953. <![CDATA[Write instance encoded as protobuf to stream.
  8954. @param out Output stream
  8955. @see PBHelper#convert(FileStatus)
  8956. @deprecated Use the {@link PBHelper} and protobuf serialization directly.]]>
  8957. </doc>
  8958. </method>
  8959. <method name="validateObject"
  8960. abstract="false" native="false" synchronized="false"
  8961. static="false" final="false" visibility="public"
  8962. deprecated="not deprecated">
  8963. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  8964. </method>
  8965. <field name="NONE" type="java.util.Set"
  8966. transient="false" volatile="false"
  8967. static="true" final="true" visibility="public"
  8968. deprecated="not deprecated">
  8969. <doc>
  8970. <![CDATA[Shared, empty set of attributes (a common case for FileStatus).]]>
  8971. </doc>
  8972. </field>
  8973. <doc>
  8974. <![CDATA[Interface that represents the client side information for a file.]]>
  8975. </doc>
  8976. </class>
  8977. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8978. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8979. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8980. abstract="true"
  8981. static="false" final="false" visibility="public"
  8982. deprecated="not deprecated">
  8983. <implements name="java.io.Closeable"/>
  8984. <implements name="org.apache.hadoop.security.token.DelegationTokenIssuer"/>
  8985. <implements name="org.apache.hadoop.fs.PathCapabilities"/>
  8986. <constructor name="FileSystem"
  8987. static="false" final="false" visibility="protected"
  8988. deprecated="not deprecated">
  8989. </constructor>
  8990. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8991. abstract="false" native="false" synchronized="false"
  8992. static="true" final="false" visibility="public"
  8993. deprecated="not deprecated">
  8994. <param name="uri" type="java.net.URI"/>
  8995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8996. <param name="user" type="java.lang.String"/>
  8997. <exception name="IOException" type="java.io.IOException"/>
  8998. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8999. <doc>
  9000. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  9001. configuration and the user.
  9002. @param uri of the filesystem
  9003. @param conf the configuration to use
  9004. @param user to perform the get as
  9005. @return the filesystem instance
  9006. @throws IOException failure to load
  9007. @throws InterruptedException If the {@code UGI.doAs()} call was
  9008. somehow interrupted.]]>
  9009. </doc>
  9010. </method>
  9011. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  9012. abstract="false" native="false" synchronized="false"
  9013. static="true" final="false" visibility="public"
  9014. deprecated="not deprecated">
  9015. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9016. <exception name="IOException" type="java.io.IOException"/>
  9017. <doc>
  9018. <![CDATA[Returns the configured FileSystem implementation.
  9019. @param conf the configuration to use
  9020. @return FileSystem.
  9021. @throws IOException If an I/O error occurred.]]>
  9022. </doc>
  9023. </method>
  9024. <method name="getDefaultUri" return="java.net.URI"
  9025. abstract="false" native="false" synchronized="false"
  9026. static="true" final="false" visibility="public"
  9027. deprecated="not deprecated">
  9028. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9029. <doc>
  9030. <![CDATA[Get the default FileSystem URI from a configuration.
  9031. @param conf the configuration to use
  9032. @return the uri of the default filesystem]]>
  9033. </doc>
  9034. </method>
  9035. <method name="setDefaultUri"
  9036. abstract="false" native="false" synchronized="false"
  9037. static="true" final="false" visibility="public"
  9038. deprecated="not deprecated">
  9039. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9040. <param name="uri" type="java.net.URI"/>
  9041. <doc>
  9042. <![CDATA[Set the default FileSystem URI in a configuration.
  9043. @param conf the configuration to alter
  9044. @param uri the new default filesystem uri]]>
  9045. </doc>
  9046. </method>
  9047. <method name="setDefaultUri"
  9048. abstract="false" native="false" synchronized="false"
  9049. static="true" final="false" visibility="public"
  9050. deprecated="not deprecated">
  9051. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9052. <param name="uri" type="java.lang.String"/>
  9053. <doc>
  9054. <![CDATA[Set the default FileSystem URI in a configuration.
  9055. @param conf the configuration to alter
  9056. @param uri the new default filesystem uri]]>
  9057. </doc>
  9058. </method>
  9059. <method name="initialize"
  9060. abstract="false" native="false" synchronized="false"
  9061. static="false" final="false" visibility="public"
  9062. deprecated="not deprecated">
  9063. <param name="name" type="java.net.URI"/>
  9064. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9065. <exception name="IOException" type="java.io.IOException"/>
  9066. <doc>
  9067. <![CDATA[Initialize a FileSystem.
  9068. Called after the new FileSystem instance is constructed, and before it
  9069. is ready for use.
  9070. FileSystem implementations overriding this method MUST forward it to
  9071. their superclass, though the order in which it is done, and whether
  9072. to alter the configuration before the invocation are options of the
  9073. subclass.
  9074. @param name a URI whose authority section names the host, port, etc.
  9075. for this FileSystem
  9076. @param conf the configuration
  9077. @throws IOException on any failure to initialize this instance.
  9078. @throws IllegalArgumentException if the URI is considered invalid.]]>
  9079. </doc>
  9080. </method>
  9081. <method name="getScheme" return="java.lang.String"
  9082. abstract="false" native="false" synchronized="false"
  9083. static="false" final="false" visibility="public"
  9084. deprecated="not deprecated">
  9085. <doc>
  9086. <![CDATA[Return the protocol scheme for this FileSystem.
  9087. <p>
  9088. This implementation throws an <code>UnsupportedOperationException</code>.
  9089. @return the protocol scheme for this FileSystem.
  9090. @throws UnsupportedOperationException if the operation is unsupported
  9091. (default).]]>
  9092. </doc>
  9093. </method>
  9094. <method name="getUri" return="java.net.URI"
  9095. abstract="true" native="false" synchronized="false"
  9096. static="false" final="false" visibility="public"
  9097. deprecated="not deprecated">
  9098. <doc>
  9099. <![CDATA[Returns a URI which identifies this FileSystem.
  9100. @return the URI of this filesystem.]]>
  9101. </doc>
  9102. </method>
  9103. <method name="getCanonicalUri" return="java.net.URI"
  9104. abstract="false" native="false" synchronized="false"
  9105. static="false" final="false" visibility="protected"
  9106. deprecated="not deprecated">
  9107. <doc>
  9108. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  9109. The default implementation simply calls {@link #canonicalizeUri(URI)}
  9110. on the filesystem's own URI, so subclasses typically only need to
  9111. implement that method.
  9112. @see #canonicalizeUri(URI)
  9113. @return the URI of this filesystem.]]>
  9114. </doc>
  9115. </method>
  9116. <method name="canonicalizeUri" return="java.net.URI"
  9117. abstract="false" native="false" synchronized="false"
  9118. static="false" final="false" visibility="protected"
  9119. deprecated="not deprecated">
  9120. <param name="uri" type="java.net.URI"/>
  9121. <doc>
  9122. <![CDATA[Canonicalize the given URI.
  9123. This is implementation-dependent, and may for example consist of
  9124. canonicalizing the hostname using DNS and adding the default
  9125. port if not specified.
  9126. The default implementation simply fills in the default port if
  9127. not specified and if {@link #getDefaultPort()} returns a
  9128. default port.
  9129. @param uri url.
  9130. @return URI
  9131. @see NetUtils#getCanonicalUri(URI, int)]]>
  9132. </doc>
  9133. </method>
  9134. <method name="getDefaultPort" return="int"
  9135. abstract="false" native="false" synchronized="false"
  9136. static="false" final="false" visibility="protected"
  9137. deprecated="not deprecated">
  9138. <doc>
  9139. <![CDATA[Get the default port for this FileSystem.
  9140. @return the default port or 0 if there isn't one]]>
  9141. </doc>
  9142. </method>
  9143. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  9144. abstract="false" native="false" synchronized="false"
  9145. static="true" final="false" visibility="protected"
  9146. deprecated="not deprecated">
  9147. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  9148. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9149. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9150. <exception name="IOException" type="java.io.IOException"/>
  9151. </method>
  9152. <method name="getCanonicalServiceName" return="java.lang.String"
  9153. abstract="false" native="false" synchronized="false"
  9154. static="false" final="false" visibility="public"
  9155. deprecated="not deprecated">
  9156. <doc>
  9157. <![CDATA[Get a canonical service name for this FileSystem.
  9158. The token cache is the only user of the canonical service name,
  9159. and uses it to lookup this FileSystem's service tokens.
  9160. If the file system provides a token of its own then it must have a
  9161. canonical name, otherwise the canonical name can be null.
  9162. Default implementation: If the FileSystem has child file systems
  9163. (such as an embedded file system) then it is assumed that the FS has no
  9164. tokens of its own and hence returns a null name; otherwise a service
  9165. name is built using Uri and port.
  9166. @return a service string that uniquely identifies this file system, null
  9167. if the filesystem does not implement tokens
  9168. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  9169. </doc>
  9170. </method>
  9171. <method name="getName" return="java.lang.String"
  9172. abstract="false" native="false" synchronized="false"
  9173. static="false" final="false" visibility="public"
  9174. deprecated="call {@link #getUri()} instead.">
  9175. <doc>
  9176. <![CDATA[@return uri to string.
  9177. @deprecated call {@link #getUri()} instead.]]>
  9178. </doc>
  9179. </method>
  9180. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  9181. abstract="false" native="false" synchronized="false"
  9182. static="true" final="false" visibility="public"
  9183. deprecated="call {@link #get(URI, Configuration)} instead.">
  9184. <param name="name" type="java.lang.String"/>
  9185. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9186. <exception name="IOException" type="java.io.IOException"/>
  9187. <doc>
  9188. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.
  9189. @param name name.
  9190. @param conf configuration.
  9191. @return file system.
  9192. @throws IOException If an I/O error occurred.]]>
  9193. </doc>
  9194. </method>
  9195. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  9196. abstract="false" native="false" synchronized="false"
  9197. static="true" final="false" visibility="public"
  9198. deprecated="not deprecated">
  9199. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9200. <exception name="IOException" type="java.io.IOException"/>
  9201. <doc>
  9202. <![CDATA[Get the local FileSystem.
  9203. @param conf the configuration to configure the FileSystem with
  9204. if it is newly instantiated.
  9205. @return a LocalFileSystem
  9206. @throws IOException if somehow the local FS cannot be instantiated.]]>
  9207. </doc>
  9208. </method>
  9209. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  9210. abstract="false" native="false" synchronized="false"
  9211. static="true" final="false" visibility="public"
  9212. deprecated="not deprecated">
  9213. <param name="uri" type="java.net.URI"/>
  9214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9215. <exception name="IOException" type="java.io.IOException"/>
  9216. <doc>
  9217. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  9218. <ol>
  9219. <li>
  9220. If the configuration has the property
  9221. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  9222. a new instance will be created, initialized with the supplied URI and
  9223. configuration, then returned without being cached.
  9224. </li>
  9225. <li>
  9226. If the there is a cached FS instance matching the same URI, it will
  9227. be returned.
  9228. </li>
  9229. <li>
  9230. Otherwise: a new FS instance will be created, initialized with the
  9231. configuration and URI, cached and returned to the caller.
  9232. </li>
  9233. </ol>
  9234. @param uri uri of the filesystem.
  9235. @param conf configrution.
  9236. @return filesystem instance.
  9237. @throws IOException if the FileSystem cannot be instantiated.]]>
  9238. </doc>
  9239. </method>
  9240. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  9241. abstract="false" native="false" synchronized="false"
  9242. static="true" final="false" visibility="public"
  9243. deprecated="not deprecated">
  9244. <param name="uri" type="java.net.URI"/>
  9245. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9246. <param name="user" type="java.lang.String"/>
  9247. <exception name="IOException" type="java.io.IOException"/>
  9248. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9249. <doc>
  9250. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  9251. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  9252. @param uri uri of the filesystem.
  9253. @param conf the configuration to use
  9254. @param user to perform the get as
  9255. @return filesystem instance
  9256. @throws IOException if the FileSystem cannot be instantiated.
  9257. @throws InterruptedException If the {@code UGI.doAs()} call was
  9258. somehow interrupted.]]>
  9259. </doc>
  9260. </method>
  9261. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  9262. abstract="false" native="false" synchronized="false"
  9263. static="true" final="false" visibility="public"
  9264. deprecated="not deprecated">
  9265. <param name="uri" type="java.net.URI"/>
  9266. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  9267. <exception name="IOException" type="java.io.IOException"/>
  9268. <doc>
  9269. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  9270. The entire URI is passed to the FileSystem instance's initialize method.
  9271. This always returns a new FileSystem object.
  9272. @param uri FS URI
  9273. @param config configuration to use
  9274. @return the new FS instance
  9275. @throws IOException FS creation or initialization failure.]]>
  9276. </doc>
  9277. </method>
  9278. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  9279. abstract="false" native="false" synchronized="false"
  9280. static="true" final="false" visibility="public"
  9281. deprecated="not deprecated">
  9282. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9283. <exception name="IOException" type="java.io.IOException"/>
  9284. <doc>
  9285. <![CDATA[Returns a unique configured FileSystem implementation for the default
  9286. filesystem of the supplied configuration.
  9287. This always returns a new FileSystem object.
  9288. @param conf the configuration to use
  9289. @return the new FS instance
  9290. @throws IOException FS creation or initialization failure.]]>
  9291. </doc>
  9292. </method>
  9293. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  9294. abstract="false" native="false" synchronized="false"
  9295. static="true" final="false" visibility="public"
  9296. deprecated="not deprecated">
  9297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9298. <exception name="IOException" type="java.io.IOException"/>
  9299. <doc>
  9300. <![CDATA[Get a unique local FileSystem object.
  9301. @param conf the configuration to configure the FileSystem with
  9302. @return a new LocalFileSystem object.
  9303. @throws IOException FS creation or initialization failure.]]>
  9304. </doc>
  9305. </method>
  9306. <method name="closeAll"
  9307. abstract="false" native="false" synchronized="false"
  9308. static="true" final="false" visibility="public"
  9309. deprecated="not deprecated">
  9310. <exception name="IOException" type="java.io.IOException"/>
  9311. <doc>
  9312. <![CDATA[Close all cached FileSystem instances. After this operation, they
  9313. may not be used in any operations.
  9314. @throws IOException a problem arose closing one or more filesystem.]]>
  9315. </doc>
  9316. </method>
  9317. <method name="closeAllForUGI"
  9318. abstract="false" native="false" synchronized="false"
  9319. static="true" final="false" visibility="public"
  9320. deprecated="not deprecated">
  9321. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  9322. <exception name="IOException" type="java.io.IOException"/>
  9323. <doc>
  9324. <![CDATA[Close all cached FileSystem instances for a given UGI.
  9325. Be sure those filesystems are not used anymore.
  9326. @param ugi user group info to close
  9327. @throws IOException a problem arose closing one or more filesystem.]]>
  9328. </doc>
  9329. </method>
  9330. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  9331. abstract="false" native="false" synchronized="false"
  9332. static="false" final="false" visibility="public"
  9333. deprecated="not deprecated">
  9334. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9335. <doc>
  9336. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  9337. made absolute.
  9338. @param path to qualify.
  9339. @return this path if it contains a scheme and authority and is absolute, or
  9340. a new path that includes a path and authority and is fully qualified
  9341. @see Path#makeQualified(URI, Path)
  9342. @throws IllegalArgumentException if the path has a schema/URI different
  9343. from this FileSystem.]]>
  9344. </doc>
  9345. </method>
  9346. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9347. abstract="false" native="false" synchronized="false"
  9348. static="true" final="false" visibility="public"
  9349. deprecated="not deprecated">
  9350. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9351. <param name="file" type="org.apache.hadoop.fs.Path"/>
  9352. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9353. <exception name="IOException" type="java.io.IOException"/>
  9354. <doc>
  9355. <![CDATA[Create a file with the provided permission.
  9356. The permission of the file is set to be the provided permission as in
  9357. setPermission, not permission{@literal &~}umask
  9358. The HDFS implementation is implemented using two RPCs.
  9359. It is understood that it is inefficient,
  9360. but the implementation is thread-safe. The other option is to change the
  9361. value of umask in configuration to be 0, but it is not thread-safe.
  9362. @param fs FileSystem
  9363. @param file the name of the file to be created
  9364. @param permission the permission of the file
  9365. @return an output stream
  9366. @throws IOException IO failure]]>
  9367. </doc>
  9368. </method>
  9369. <method name="mkdirs" return="boolean"
  9370. abstract="false" native="false" synchronized="false"
  9371. static="true" final="false" visibility="public"
  9372. deprecated="not deprecated">
  9373. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9374. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9375. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9376. <exception name="IOException" type="java.io.IOException"/>
  9377. <doc>
  9378. <![CDATA[Create a directory with the provided permission.
  9379. The permission of the directory is set to be the provided permission as in
  9380. setPermission, not permission{@literal &~}umask
  9381. @see #create(FileSystem, Path, FsPermission)
  9382. @param fs FileSystem handle
  9383. @param dir the name of the directory to be created
  9384. @param permission the permission of the directory
  9385. @return true if the directory creation succeeds; false otherwise
  9386. @throws IOException A problem creating the directories.]]>
  9387. </doc>
  9388. </method>
  9389. <method name="checkPath"
  9390. abstract="false" native="false" synchronized="false"
  9391. static="false" final="false" visibility="protected"
  9392. deprecated="not deprecated">
  9393. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9394. <doc>
  9395. <![CDATA[Check that a Path belongs to this FileSystem.
  9396. The base implementation performs case insensitive equality checks
  9397. of the URIs' schemes and authorities. Subclasses may implement slightly
  9398. different checks.
  9399. @param path to check
  9400. @throws IllegalArgumentException if the path is not considered to be
  9401. part of this FileSystem.]]>
  9402. </doc>
  9403. </method>
  9404. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9405. abstract="false" native="false" synchronized="false"
  9406. static="false" final="false" visibility="public"
  9407. deprecated="not deprecated">
  9408. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  9409. <param name="start" type="long"/>
  9410. <param name="len" type="long"/>
  9411. <exception name="IOException" type="java.io.IOException"/>
  9412. <doc>
  9413. <![CDATA[Return an array containing hostnames, offset and size of
  9414. portions of the given file. For nonexistent
  9415. file or regions, {@code null} is returned.
  9416. <pre>
  9417. if f == null :
  9418. result = null
  9419. elif f.getLen() {@literal <=} start:
  9420. result = []
  9421. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  9422. </pre>
  9423. This call is most helpful with and distributed filesystem
  9424. where the hostnames of machines that contain blocks of the given file
  9425. can be determined.
  9426. The default implementation returns an array containing one element:
  9427. <pre>
  9428. BlockLocation( { "localhost:9866" }, { "localhost" }, 0, file.getLen())
  9429. </pre>
  9430. In HDFS, if file is three-replicated, the returned array contains
  9431. elements like:
  9432. <pre>
  9433. BlockLocation(offset: 0, length: BLOCK_SIZE,
  9434. hosts: {"host1:9866", "host2:9866, host3:9866"})
  9435. BlockLocation(offset: BLOCK_SIZE, length: BLOCK_SIZE,
  9436. hosts: {"host2:9866", "host3:9866, host4:9866"})
  9437. </pre>
  9438. And if a file is erasure-coded, the returned BlockLocation are logical
  9439. block groups.
  9440. Suppose we have a RS_3_2 coded file (3 data units and 2 parity units).
  9441. 1. If the file size is less than one stripe size, say 2 * CELL_SIZE, then
  9442. there will be one BlockLocation returned, with 0 offset, actual file size
  9443. and 4 hosts (2 data blocks and 2 parity blocks) hosting the actual blocks.
  9444. 3. If the file size is less than one group size but greater than one
  9445. stripe size, then there will be one BlockLocation returned, with 0 offset,
  9446. actual file size with 5 hosts (3 data blocks and 2 parity blocks) hosting
  9447. the actual blocks.
  9448. 4. If the file size is greater than one group size, 3 * BLOCK_SIZE + 123
  9449. for example, then the result will be like:
  9450. <pre>
  9451. BlockLocation(offset: 0, length: 3 * BLOCK_SIZE, hosts: {"host1:9866",
  9452. "host2:9866","host3:9866","host4:9866","host5:9866"})
  9453. BlockLocation(offset: 3 * BLOCK_SIZE, length: 123, hosts: {"host1:9866",
  9454. "host4:9866", "host5:9866"})
  9455. </pre>
  9456. @param file FilesStatus to get data from
  9457. @param start offset into the given file
  9458. @param len length for which to get locations for
  9459. @throws IOException IO failure
  9460. @return block location array.]]>
  9461. </doc>
  9462. </method>
  9463. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9464. abstract="false" native="false" synchronized="false"
  9465. static="false" final="false" visibility="public"
  9466. deprecated="not deprecated">
  9467. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9468. <param name="start" type="long"/>
  9469. <param name="len" type="long"/>
  9470. <exception name="IOException" type="java.io.IOException"/>
  9471. <doc>
  9472. <![CDATA[Return an array containing hostnames, offset and size of
  9473. portions of the given file. For a nonexistent
  9474. file or regions, {@code null} is returned.
  9475. This call is most helpful with location-aware distributed
  9476. filesystems, where it returns hostnames of machines that
  9477. contain the given file.
  9478. A FileSystem will normally return the equivalent result
  9479. of passing the {@code FileStatus} of the path to
  9480. {@link #getFileBlockLocations(FileStatus, long, long)}
  9481. @param p path is used to identify an FS since an FS could have
  9482. another FS that it could be delegating the call to
  9483. @param start offset into the given file
  9484. @param len length for which to get locations for
  9485. @throws FileNotFoundException when the path does not exist
  9486. @throws IOException IO failure
  9487. @return block location array.]]>
  9488. </doc>
  9489. </method>
  9490. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  9491. abstract="false" native="false" synchronized="false"
  9492. static="false" final="false" visibility="public"
  9493. deprecated="use {@link #getServerDefaults(Path)} instead">
  9494. <exception name="IOException" type="java.io.IOException"/>
  9495. <doc>
  9496. <![CDATA[Return a set of server default configuration values.
  9497. @return server default configuration values
  9498. @throws IOException IO failure
  9499. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  9500. </doc>
  9501. </method>
  9502. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  9503. abstract="false" native="false" synchronized="false"
  9504. static="false" final="false" visibility="public"
  9505. deprecated="not deprecated">
  9506. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9507. <exception name="IOException" type="java.io.IOException"/>
  9508. <doc>
  9509. <![CDATA[Return a set of server default configuration values.
  9510. @param p path is used to identify an FS since an FS could have
  9511. another FS that it could be delegating the call to
  9512. @return server default configuration values
  9513. @throws IOException IO failure]]>
  9514. </doc>
  9515. </method>
  9516. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  9517. abstract="false" native="false" synchronized="false"
  9518. static="false" final="false" visibility="public"
  9519. deprecated="not deprecated">
  9520. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9521. <exception name="IOException" type="java.io.IOException"/>
  9522. <doc>
  9523. <![CDATA[Return the fully-qualified path of path, resolving the path
  9524. through any symlinks or mount point.
  9525. @param p path to be resolved
  9526. @return fully qualified path
  9527. @throws FileNotFoundException if the path is not present
  9528. @throws IOException for any other error]]>
  9529. </doc>
  9530. </method>
  9531. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9532. abstract="true" native="false" synchronized="false"
  9533. static="false" final="false" visibility="public"
  9534. deprecated="not deprecated">
  9535. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9536. <param name="bufferSize" type="int"/>
  9537. <exception name="IOException" type="java.io.IOException"/>
  9538. <doc>
  9539. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9540. @param f the file name to open
  9541. @param bufferSize the size of the buffer to be used.
  9542. @throws IOException IO failure
  9543. @return input stream.]]>
  9544. </doc>
  9545. </method>
  9546. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9547. abstract="false" native="false" synchronized="false"
  9548. static="false" final="false" visibility="public"
  9549. deprecated="not deprecated">
  9550. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9551. <exception name="IOException" type="java.io.IOException"/>
  9552. <doc>
  9553. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9554. @param f the file to open
  9555. @throws IOException IO failure
  9556. @return input stream.]]>
  9557. </doc>
  9558. </method>
  9559. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9560. abstract="false" native="false" synchronized="false"
  9561. static="false" final="false" visibility="public"
  9562. deprecated="not deprecated">
  9563. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  9564. <exception name="IOException" type="java.io.IOException"/>
  9565. <doc>
  9566. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  9567. implementation may encode metadata in PathHandle to address the
  9568. resource directly and verify that the resource referenced
  9569. satisfies constraints specified at its construciton.
  9570. @param fd PathHandle object returned by the FS authority.
  9571. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  9572. not satisfied
  9573. @throws IOException IO failure
  9574. @throws UnsupportedOperationException If {@link #open(PathHandle, int)}
  9575. not overridden by subclass
  9576. @return input stream.]]>
  9577. </doc>
  9578. </method>
  9579. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9580. abstract="false" native="false" synchronized="false"
  9581. static="false" final="false" visibility="public"
  9582. deprecated="not deprecated">
  9583. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  9584. <param name="bufferSize" type="int"/>
  9585. <exception name="IOException" type="java.io.IOException"/>
  9586. <doc>
  9587. <![CDATA[Open an FSDataInputStream matching the PathHandle instance. The
  9588. implementation may encode metadata in PathHandle to address the
  9589. resource directly and verify that the resource referenced
  9590. satisfies constraints specified at its construciton.
  9591. @param fd PathHandle object returned by the FS authority.
  9592. @param bufferSize the size of the buffer to use
  9593. @throws InvalidPathHandleException If {@link PathHandle} constraints are
  9594. not satisfied
  9595. @throws IOException IO failure
  9596. @throws UnsupportedOperationException If not overridden by subclass
  9597. @return input stream.]]>
  9598. </doc>
  9599. </method>
  9600. <method name="getPathHandle" return="org.apache.hadoop.fs.PathHandle"
  9601. abstract="false" native="false" synchronized="false"
  9602. static="false" final="true" visibility="public"
  9603. deprecated="not deprecated">
  9604. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  9605. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  9606. <doc>
  9607. <![CDATA[Create a durable, serializable handle to the referent of the given
  9608. entity.
  9609. @param stat Referent in the target FileSystem
  9610. @param opt If absent, assume {@link HandleOpt#path()}.
  9611. @throws IllegalArgumentException If the FileStatus does not belong to
  9612. this FileSystem
  9613. @throws UnsupportedOperationException If {@link #createPathHandle}
  9614. not overridden by subclass.
  9615. @throws UnsupportedOperationException If this FileSystem cannot enforce
  9616. the specified constraints.
  9617. @return path handle.]]>
  9618. </doc>
  9619. </method>
  9620. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  9621. abstract="false" native="false" synchronized="false"
  9622. static="false" final="false" visibility="protected"
  9623. deprecated="not deprecated">
  9624. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  9625. <param name="opt" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  9626. <doc>
  9627. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  9628. @param stat Referent in the target FileSystem
  9629. @param opt Constraints that determine the validity of the
  9630. {@link PathHandle} reference.
  9631. @return path handle.]]>
  9632. </doc>
  9633. </method>
  9634. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9635. abstract="false" native="false" synchronized="false"
  9636. static="false" final="false" visibility="public"
  9637. deprecated="not deprecated">
  9638. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9639. <exception name="IOException" type="java.io.IOException"/>
  9640. <doc>
  9641. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9642. Files are overwritten by default.
  9643. @param f the file to create
  9644. @throws IOException IO failure
  9645. @return output stream.]]>
  9646. </doc>
  9647. </method>
  9648. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9649. abstract="false" native="false" synchronized="false"
  9650. static="false" final="false" visibility="public"
  9651. deprecated="not deprecated">
  9652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9653. <param name="overwrite" type="boolean"/>
  9654. <exception name="IOException" type="java.io.IOException"/>
  9655. <doc>
  9656. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9657. @param f the file to create
  9658. @param overwrite if a file with this name already exists, then if true,
  9659. the file will be overwritten, and if false an exception will be thrown.
  9660. @throws IOException IO failure
  9661. @return output stream.]]>
  9662. </doc>
  9663. </method>
  9664. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9665. abstract="false" native="false" synchronized="false"
  9666. static="false" final="false" visibility="public"
  9667. deprecated="not deprecated">
  9668. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9669. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9670. <exception name="IOException" type="java.io.IOException"/>
  9671. <doc>
  9672. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9673. reporting.
  9674. Files are overwritten by default.
  9675. @param f the file to create
  9676. @param progress to report progress
  9677. @throws IOException IO failure
  9678. @return output stream.]]>
  9679. </doc>
  9680. </method>
  9681. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9682. abstract="false" native="false" synchronized="false"
  9683. static="false" final="false" visibility="public"
  9684. deprecated="not deprecated">
  9685. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9686. <param name="replication" type="short"/>
  9687. <exception name="IOException" type="java.io.IOException"/>
  9688. <doc>
  9689. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9690. Files are overwritten by default.
  9691. @param f the file to create
  9692. @param replication the replication factor
  9693. @throws IOException IO failure
  9694. @return output stream1]]>
  9695. </doc>
  9696. </method>
  9697. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9698. abstract="false" native="false" synchronized="false"
  9699. static="false" final="false" visibility="public"
  9700. deprecated="not deprecated">
  9701. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9702. <param name="replication" type="short"/>
  9703. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9704. <exception name="IOException" type="java.io.IOException"/>
  9705. <doc>
  9706. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9707. reporting.
  9708. Files are overwritten by default.
  9709. @param f the file to create
  9710. @param replication the replication factor
  9711. @param progress to report progress
  9712. @throws IOException IO failure
  9713. @return output stream.]]>
  9714. </doc>
  9715. </method>
  9716. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9717. abstract="false" native="false" synchronized="false"
  9718. static="false" final="false" visibility="public"
  9719. deprecated="not deprecated">
  9720. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9721. <param name="overwrite" type="boolean"/>
  9722. <param name="bufferSize" type="int"/>
  9723. <exception name="IOException" type="java.io.IOException"/>
  9724. <doc>
  9725. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9726. @param f the file to create
  9727. @param overwrite if a path with this name already exists, then if true,
  9728. the file will be overwritten, and if false an error will be thrown.
  9729. @param bufferSize the size of the buffer to be used.
  9730. @throws IOException IO failure
  9731. @return output stream.]]>
  9732. </doc>
  9733. </method>
  9734. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9735. abstract="false" native="false" synchronized="false"
  9736. static="false" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9739. <param name="overwrite" type="boolean"/>
  9740. <param name="bufferSize" type="int"/>
  9741. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9742. <exception name="IOException" type="java.io.IOException"/>
  9743. <doc>
  9744. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  9745. with write-progress reporting.
  9746. The frequency of callbacks is implementation-specific; it may be "none".
  9747. @param f the path of the file to open
  9748. @param overwrite if a file with this name already exists, then if true,
  9749. the file will be overwritten, and if false an error will be thrown.
  9750. @param bufferSize the size of the buffer to be used.
  9751. @param progress to report progress.
  9752. @throws IOException IO failure
  9753. @return output stream.]]>
  9754. </doc>
  9755. </method>
  9756. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9757. abstract="false" native="false" synchronized="false"
  9758. static="false" final="false" visibility="public"
  9759. deprecated="not deprecated">
  9760. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9761. <param name="overwrite" type="boolean"/>
  9762. <param name="bufferSize" type="int"/>
  9763. <param name="replication" type="short"/>
  9764. <param name="blockSize" type="long"/>
  9765. <exception name="IOException" type="java.io.IOException"/>
  9766. <doc>
  9767. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9768. @param f the file name to open
  9769. @param overwrite if a file with this name already exists, then if true,
  9770. the file will be overwritten, and if false an error will be thrown.
  9771. @param bufferSize the size of the buffer to be used.
  9772. @param replication required block replication for the file.
  9773. @param blockSize the size of the buffer to be used.
  9774. @throws IOException IO failure
  9775. @return output stream.]]>
  9776. </doc>
  9777. </method>
  9778. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9779. abstract="false" native="false" synchronized="false"
  9780. static="false" final="false" visibility="public"
  9781. deprecated="not deprecated">
  9782. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9783. <param name="overwrite" type="boolean"/>
  9784. <param name="bufferSize" type="int"/>
  9785. <param name="replication" type="short"/>
  9786. <param name="blockSize" type="long"/>
  9787. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9788. <exception name="IOException" type="java.io.IOException"/>
  9789. <doc>
  9790. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9791. reporting.
  9792. @param f the file name to open
  9793. @param overwrite if a file with this name already exists, then if true,
  9794. the file will be overwritten, and if false an error will be thrown.
  9795. @param bufferSize the size of the buffer to be used.
  9796. @param replication required block replication for the file.
  9797. @param blockSize the size of the buffer to be used.
  9798. @param progress to report progress.
  9799. @throws IOException IO failure
  9800. @return output stream.]]>
  9801. </doc>
  9802. </method>
  9803. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9804. abstract="true" native="false" synchronized="false"
  9805. static="false" final="false" visibility="public"
  9806. deprecated="not deprecated">
  9807. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9808. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9809. <param name="overwrite" type="boolean"/>
  9810. <param name="bufferSize" type="int"/>
  9811. <param name="replication" type="short"/>
  9812. <param name="blockSize" type="long"/>
  9813. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9814. <exception name="IOException" type="java.io.IOException"/>
  9815. <doc>
  9816. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9817. reporting.
  9818. @param f the file name to open
  9819. @param permission file permission
  9820. @param overwrite if a file with this name already exists, then if true,
  9821. the file will be overwritten, and if false an error will be thrown.
  9822. @param bufferSize the size of the buffer to be used.
  9823. @param replication required block replication for the file.
  9824. @param blockSize block size
  9825. @param progress the progress reporter
  9826. @throws IOException IO failure
  9827. @see #setPermission(Path, FsPermission)
  9828. @return output stream.]]>
  9829. </doc>
  9830. </method>
  9831. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9832. abstract="false" native="false" synchronized="false"
  9833. static="false" final="false" visibility="public"
  9834. deprecated="not deprecated">
  9835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9836. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9837. <param name="flags" type="java.util.EnumSet"/>
  9838. <param name="bufferSize" type="int"/>
  9839. <param name="replication" type="short"/>
  9840. <param name="blockSize" type="long"/>
  9841. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9842. <exception name="IOException" type="java.io.IOException"/>
  9843. <doc>
  9844. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9845. reporting.
  9846. @param f the file name to open
  9847. @param permission file permission
  9848. @param flags {@link CreateFlag}s to use for this stream.
  9849. @param bufferSize the size of the buffer to be used.
  9850. @param replication required block replication for the file.
  9851. @param blockSize block size
  9852. @param progress the progress reporter
  9853. @throws IOException IO failure
  9854. @see #setPermission(Path, FsPermission)
  9855. @return output stream.]]>
  9856. </doc>
  9857. </method>
  9858. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9859. abstract="false" native="false" synchronized="false"
  9860. static="false" final="false" visibility="public"
  9861. deprecated="not deprecated">
  9862. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9863. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9864. <param name="flags" type="java.util.EnumSet"/>
  9865. <param name="bufferSize" type="int"/>
  9866. <param name="replication" type="short"/>
  9867. <param name="blockSize" type="long"/>
  9868. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9869. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9870. <exception name="IOException" type="java.io.IOException"/>
  9871. <doc>
  9872. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  9873. checksum option.
  9874. @param f the file name to open
  9875. @param permission file permission
  9876. @param flags {@link CreateFlag}s to use for this stream.
  9877. @param bufferSize the size of the buffer to be used.
  9878. @param replication required block replication for the file.
  9879. @param blockSize block size
  9880. @param progress the progress reporter
  9881. @param checksumOpt checksum parameter. If null, the values
  9882. found in conf will be used.
  9883. @throws IOException IO failure
  9884. @see #setPermission(Path, FsPermission)
  9885. @return output stream.]]>
  9886. </doc>
  9887. </method>
  9888. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9889. abstract="false" native="false" synchronized="false"
  9890. static="false" final="false" visibility="protected"
  9891. deprecated="not deprecated">
  9892. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9893. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9894. <param name="flag" type="java.util.EnumSet"/>
  9895. <param name="bufferSize" type="int"/>
  9896. <param name="replication" type="short"/>
  9897. <param name="blockSize" type="long"/>
  9898. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9899. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9900. <exception name="IOException" type="java.io.IOException"/>
  9901. <doc>
  9902. <![CDATA[This create has been added to support the FileContext that processes
  9903. the permission with umask before calling this method.
  9904. This a temporary method added to support the transition from FileSystem
  9905. to FileContext for user applications.
  9906. @param f path.
  9907. @param absolutePermission permission.
  9908. @param flag create flag.
  9909. @param bufferSize buffer size.
  9910. @param replication replication.
  9911. @param blockSize block size.
  9912. @param progress progress.
  9913. @param checksumOpt check sum opt.
  9914. @return output stream.
  9915. @throws IOException IO failure]]>
  9916. </doc>
  9917. </method>
  9918. <method name="primitiveMkdir" return="boolean"
  9919. abstract="false" native="false" synchronized="false"
  9920. static="false" final="false" visibility="protected"
  9921. deprecated="not deprecated">
  9922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9923. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9924. <exception name="IOException" type="java.io.IOException"/>
  9925. <doc>
  9926. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9927. It has been added to support the FileContext that processes the permission
  9928. with umask before calling this method.
  9929. This a temporary method added to support the transition from FileSystem
  9930. to FileContext for user applications.
  9931. @param f path
  9932. @param absolutePermission permissions
  9933. @return true if the directory was actually created.
  9934. @throws IOException IO failure
  9935. @see #mkdirs(Path, FsPermission)]]>
  9936. </doc>
  9937. </method>
  9938. <method name="primitiveMkdir"
  9939. abstract="false" native="false" synchronized="false"
  9940. static="false" final="false" visibility="protected"
  9941. deprecated="not deprecated">
  9942. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9943. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9944. <param name="createParent" type="boolean"/>
  9945. <exception name="IOException" type="java.io.IOException"/>
  9946. <doc>
  9947. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9948. It has been added to support the FileContext that processes the permission
  9949. with umask before calling this method.
  9950. This a temporary method added to support the transition from FileSystem
  9951. to FileContext for user applications.
  9952. @param f the path.
  9953. @param absolutePermission permission.
  9954. @param createParent create parent.
  9955. @throws IOException IO failure.]]>
  9956. </doc>
  9957. </method>
  9958. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9959. abstract="false" native="false" synchronized="false"
  9960. static="false" final="false" visibility="public"
  9961. deprecated="not deprecated">
  9962. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9963. <param name="overwrite" type="boolean"/>
  9964. <param name="bufferSize" type="int"/>
  9965. <param name="replication" type="short"/>
  9966. <param name="blockSize" type="long"/>
  9967. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9968. <exception name="IOException" type="java.io.IOException"/>
  9969. <doc>
  9970. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9971. reporting. Same as create(), except fails if parent directory doesn't
  9972. already exist.
  9973. @param f the file name to open
  9974. @param overwrite if a file with this name already exists, then if true,
  9975. the file will be overwritten, and if false an error will be thrown.
  9976. @param bufferSize the size of the buffer to be used.
  9977. @param replication required block replication for the file.
  9978. @param blockSize block size
  9979. @param progress the progress reporter
  9980. @throws IOException IO failure
  9981. @see #setPermission(Path, FsPermission)
  9982. @return output stream.]]>
  9983. </doc>
  9984. </method>
  9985. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9986. abstract="false" native="false" synchronized="false"
  9987. static="false" final="false" visibility="public"
  9988. deprecated="not deprecated">
  9989. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9990. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9991. <param name="overwrite" type="boolean"/>
  9992. <param name="bufferSize" type="int"/>
  9993. <param name="replication" type="short"/>
  9994. <param name="blockSize" type="long"/>
  9995. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9996. <exception name="IOException" type="java.io.IOException"/>
  9997. <doc>
  9998. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9999. reporting. Same as create(), except fails if parent directory doesn't
  10000. already exist.
  10001. @param f the file name to open
  10002. @param permission file permission
  10003. @param overwrite if a file with this name already exists, then if true,
  10004. the file will be overwritten, and if false an error will be thrown.
  10005. @param bufferSize the size of the buffer to be used.
  10006. @param replication required block replication for the file.
  10007. @param blockSize block size
  10008. @param progress the progress reporter
  10009. @throws IOException IO failure
  10010. @see #setPermission(Path, FsPermission)
  10011. @return output stream.]]>
  10012. </doc>
  10013. </method>
  10014. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  10015. abstract="false" native="false" synchronized="false"
  10016. static="false" final="false" visibility="public"
  10017. deprecated="not deprecated">
  10018. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10019. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10020. <param name="flags" type="java.util.EnumSet"/>
  10021. <param name="bufferSize" type="int"/>
  10022. <param name="replication" type="short"/>
  10023. <param name="blockSize" type="long"/>
  10024. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10025. <exception name="IOException" type="java.io.IOException"/>
  10026. <doc>
  10027. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  10028. reporting. Same as create(), except fails if parent directory doesn't
  10029. already exist.
  10030. @param f the file name to open
  10031. @param permission file permission
  10032. @param flags {@link CreateFlag}s to use for this stream.
  10033. @param bufferSize the size of the buffer to be used.
  10034. @param replication required block replication for the file.
  10035. @param blockSize block size
  10036. @param progress the progress reporter
  10037. @throws IOException IO failure
  10038. @see #setPermission(Path, FsPermission)
  10039. @return output stream.]]>
  10040. </doc>
  10041. </method>
  10042. <method name="createNewFile" return="boolean"
  10043. abstract="false" 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="IOException" type="java.io.IOException"/>
  10048. <doc>
  10049. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  10050. create fails, or if it already existed, return false.
  10051. <i>Important: the default implementation is not atomic</i>
  10052. @param f path to use for create
  10053. @throws IOException IO failure
  10054. @return if create new file success true,not false.]]>
  10055. </doc>
  10056. </method>
  10057. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10058. abstract="false" native="false" synchronized="false"
  10059. static="false" final="false" visibility="public"
  10060. deprecated="not deprecated">
  10061. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10062. <exception name="IOException" type="java.io.IOException"/>
  10063. <doc>
  10064. <![CDATA[Append to an existing file (optional operation).
  10065. Same as
  10066. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  10067. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  10068. @param f the existing file to be appended.
  10069. @throws IOException IO failure
  10070. @throws UnsupportedOperationException if the operation is unsupported
  10071. (default).
  10072. @return output stream.]]>
  10073. </doc>
  10074. </method>
  10075. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10076. abstract="false" native="false" synchronized="false"
  10077. static="false" final="false" visibility="public"
  10078. deprecated="not deprecated">
  10079. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10080. <param name="bufferSize" type="int"/>
  10081. <exception name="IOException" type="java.io.IOException"/>
  10082. <doc>
  10083. <![CDATA[Append to an existing file (optional operation).
  10084. Same as append(f, bufferSize, null).
  10085. @param f the existing file to be appended.
  10086. @param bufferSize the size of the buffer to be used.
  10087. @throws IOException IO failure
  10088. @throws UnsupportedOperationException if the operation is unsupported
  10089. (default).
  10090. @return output stream.]]>
  10091. </doc>
  10092. </method>
  10093. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10094. abstract="true" native="false" synchronized="false"
  10095. static="false" final="false" visibility="public"
  10096. deprecated="not deprecated">
  10097. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10098. <param name="bufferSize" type="int"/>
  10099. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10100. <exception name="IOException" type="java.io.IOException"/>
  10101. <doc>
  10102. <![CDATA[Append to an existing file (optional operation).
  10103. @param f the existing file to be appended.
  10104. @param bufferSize the size of the buffer to be used.
  10105. @param progress for reporting progress if it is not null.
  10106. @throws IOException IO failure
  10107. @throws UnsupportedOperationException if the operation is unsupported
  10108. (default).
  10109. @return output stream.]]>
  10110. </doc>
  10111. </method>
  10112. <method name="concat"
  10113. abstract="false" native="false" synchronized="false"
  10114. static="false" final="false" visibility="public"
  10115. deprecated="not deprecated">
  10116. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  10117. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  10118. <exception name="IOException" type="java.io.IOException"/>
  10119. <doc>
  10120. <![CDATA[Concat existing files together.
  10121. @param trg the path to the target destination.
  10122. @param psrcs the paths to the sources to use for the concatenation.
  10123. @throws IOException IO failure
  10124. @throws UnsupportedOperationException if the operation is unsupported
  10125. (default).]]>
  10126. </doc>
  10127. </method>
  10128. <method name="getReplication" return="short"
  10129. abstract="false" native="false" synchronized="false"
  10130. static="false" final="false" visibility="public"
  10131. deprecated="Use {@link #getFileStatus(Path)} instead">
  10132. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10133. <exception name="IOException" type="java.io.IOException"/>
  10134. <doc>
  10135. <![CDATA[Get the replication factor.
  10136. @deprecated Use {@link #getFileStatus(Path)} instead
  10137. @param src file name
  10138. @return file replication
  10139. @throws FileNotFoundException if the path does not resolve.
  10140. @throws IOException an IO failure]]>
  10141. </doc>
  10142. </method>
  10143. <method name="setReplication" return="boolean"
  10144. abstract="false" native="false" synchronized="false"
  10145. static="false" final="false" visibility="public"
  10146. deprecated="not deprecated">
  10147. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10148. <param name="replication" type="short"/>
  10149. <exception name="IOException" type="java.io.IOException"/>
  10150. <doc>
  10151. <![CDATA[Set the replication for an existing file.
  10152. If a filesystem does not support replication, it will always
  10153. return true: the check for a file existing may be bypassed.
  10154. This is the default behavior.
  10155. @param src file name
  10156. @param replication new replication
  10157. @throws IOException an IO failure.
  10158. @return true if successful, or the feature in unsupported;
  10159. false if replication is supported but the file does not exist,
  10160. or is a directory]]>
  10161. </doc>
  10162. </method>
  10163. <method name="rename" return="boolean"
  10164. abstract="true" native="false" synchronized="false"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10168. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10169. <exception name="IOException" type="java.io.IOException"/>
  10170. <doc>
  10171. <![CDATA[Renames Path src to Path dst.
  10172. @param src path to be renamed
  10173. @param dst new path after rename
  10174. @throws IOException on failure
  10175. @return true if rename is successful]]>
  10176. </doc>
  10177. </method>
  10178. <method name="rename"
  10179. abstract="false" native="false" synchronized="false"
  10180. static="false" final="false" visibility="protected"
  10181. deprecated="not deprecated">
  10182. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10183. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10184. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  10185. <exception name="IOException" type="java.io.IOException"/>
  10186. <doc>
  10187. <![CDATA[Renames Path src to Path dst
  10188. <ul>
  10189. <li>Fails if src is a file and dst is a directory.</li>
  10190. <li>Fails if src is a directory and dst is a file.</li>
  10191. <li>Fails if the parent of dst does not exist or is a file.</li>
  10192. </ul>
  10193. <p>
  10194. If OVERWRITE option is not passed as an argument, rename fails
  10195. if the dst already exists.
  10196. </p>
  10197. <p>
  10198. If OVERWRITE option is passed as an argument, rename overwrites
  10199. the dst if it is a file or an empty directory. Rename fails if dst is
  10200. a non-empty directory.
  10201. </p>
  10202. Note that atomicity of rename is dependent on the file system
  10203. implementation. Please refer to the file system documentation for
  10204. details. This default implementation is non atomic.
  10205. <p>
  10206. This method is deprecated since it is a temporary method added to
  10207. support the transition from FileSystem to FileContext for user
  10208. applications.
  10209. </p>
  10210. @param src path to be renamed
  10211. @param dst new path after rename
  10212. @param options rename options.
  10213. @throws FileNotFoundException src path does not exist, or the parent
  10214. path of dst does not exist.
  10215. @throws FileAlreadyExistsException dest path exists and is a file
  10216. @throws ParentNotDirectoryException if the parent path of dest is not
  10217. a directory
  10218. @throws IOException on failure]]>
  10219. </doc>
  10220. </method>
  10221. <method name="truncate" return="boolean"
  10222. abstract="false" native="false" synchronized="false"
  10223. static="false" final="false" visibility="public"
  10224. deprecated="not deprecated">
  10225. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10226. <param name="newLength" type="long"/>
  10227. <exception name="IOException" type="java.io.IOException"/>
  10228. <doc>
  10229. <![CDATA[Truncate the file in the indicated path to the indicated size.
  10230. <ul>
  10231. <li>Fails if path is a directory.</li>
  10232. <li>Fails if path does not exist.</li>
  10233. <li>Fails if path is not closed.</li>
  10234. <li>Fails if new size is greater than current size.</li>
  10235. </ul>
  10236. @param f The path to the file to be truncated
  10237. @param newLength The size the file is to be truncated to
  10238. @return <code>true</code> if the file has been truncated to the desired
  10239. <code>newLength</code> and is immediately available to be reused for
  10240. write operations such as <code>append</code>, or
  10241. <code>false</code> if a background process of adjusting the length of
  10242. the last block has been started, and clients should wait for it to
  10243. complete before proceeding with further file updates.
  10244. @throws IOException IO failure
  10245. @throws UnsupportedOperationException if the operation is unsupported
  10246. (default).]]>
  10247. </doc>
  10248. </method>
  10249. <method name="delete" return="boolean"
  10250. abstract="false" native="false" synchronized="false"
  10251. static="false" final="false" visibility="public"
  10252. deprecated="Use {@link #delete(Path, boolean)} instead.">
  10253. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10254. <exception name="IOException" type="java.io.IOException"/>
  10255. <doc>
  10256. <![CDATA[Delete a file/directory.
  10257. @param f the path.
  10258. @throws IOException IO failure.
  10259. @return if delete success true, not false.
  10260. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  10261. </doc>
  10262. </method>
  10263. <method name="delete" return="boolean"
  10264. abstract="true" native="false" synchronized="false"
  10265. static="false" final="false" visibility="public"
  10266. deprecated="not deprecated">
  10267. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10268. <param name="recursive" type="boolean"/>
  10269. <exception name="IOException" type="java.io.IOException"/>
  10270. <doc>
  10271. <![CDATA[Delete a file.
  10272. @param f the path to delete.
  10273. @param recursive if path is a directory and set to
  10274. true, the directory is deleted else throws an exception. In
  10275. case of a file the recursive can be set to either true or false.
  10276. @return true if delete is successful else false.
  10277. @throws IOException IO failure]]>
  10278. </doc>
  10279. </method>
  10280. <method name="deleteOnExit" return="boolean"
  10281. abstract="false" native="false" synchronized="false"
  10282. static="false" final="false" visibility="public"
  10283. deprecated="not deprecated">
  10284. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10285. <exception name="IOException" type="java.io.IOException"/>
  10286. <doc>
  10287. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  10288. When the JVM shuts down cleanly, all cached FileSystem objects will be
  10289. closed automatically. These the marked paths will be deleted as a result.
  10290. If a FileSystem instance is not cached, i.e. has been created with
  10291. {@link #createFileSystem(URI, Configuration)}, then the paths will
  10292. be deleted in when {@link #close()} is called on that instance.
  10293. The path must exist in the filesystem at the time of the method call;
  10294. it does not have to exist at the time of JVM shutdown.
  10295. Notes
  10296. <ol>
  10297. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  10298. <li>The time to shut down a FileSystem will depends on the number of
  10299. files to delete. For filesystems where the cost of checking
  10300. for the existence of a file/directory and the actual delete operation
  10301. (for example: object stores) is high, the time to shutdown the JVM can be
  10302. significantly extended by over-use of this feature.</li>
  10303. <li>Connectivity problems with a remote filesystem may delay shutdown
  10304. further, and may cause the files to not be deleted.</li>
  10305. </ol>
  10306. @param f the path to delete.
  10307. @return true if deleteOnExit is successful, otherwise false.
  10308. @throws IOException IO failure]]>
  10309. </doc>
  10310. </method>
  10311. <method name="cancelDeleteOnExit" return="boolean"
  10312. abstract="false" native="false" synchronized="false"
  10313. static="false" final="false" visibility="public"
  10314. deprecated="not deprecated">
  10315. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10316. <doc>
  10317. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  10318. @param f the path to cancel deletion
  10319. @return true if the path was found in the delete-on-exit list.]]>
  10320. </doc>
  10321. </method>
  10322. <method name="processDeleteOnExit"
  10323. abstract="false" native="false" synchronized="false"
  10324. static="false" final="false" visibility="protected"
  10325. deprecated="not deprecated">
  10326. <doc>
  10327. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  10328. deletes all files and directories in the specified paths.
  10329. The time to process this operation is {@code O(paths)}, with the actual
  10330. time dependent on the time for existence and deletion operations to
  10331. complete, successfully or not.]]>
  10332. </doc>
  10333. </method>
  10334. <method name="exists" return="boolean"
  10335. abstract="false" native="false" synchronized="false"
  10336. static="false" final="false" visibility="public"
  10337. deprecated="not deprecated">
  10338. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10339. <exception name="IOException" type="java.io.IOException"/>
  10340. <doc>
  10341. <![CDATA[Check if a path exists.
  10342. It is highly discouraged to call this method back to back with other
  10343. {@link #getFileStatus(Path)} calls, as this will involve multiple redundant
  10344. RPC calls in HDFS.
  10345. @param f source path
  10346. @return true if the path exists
  10347. @throws IOException IO failure]]>
  10348. </doc>
  10349. </method>
  10350. <method name="isDirectory" return="boolean"
  10351. abstract="false" native="false" synchronized="false"
  10352. static="false" final="false" visibility="public"
  10353. deprecated="Use {@link #getFileStatus(Path)} instead">
  10354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10355. <exception name="IOException" type="java.io.IOException"/>
  10356. <doc>
  10357. <![CDATA[True iff the named path is a directory.
  10358. Note: Avoid using this method. Instead reuse the FileStatus
  10359. returned by getFileStatus() or listStatus() methods.
  10360. @param f path to check
  10361. @throws IOException IO failure
  10362. @deprecated Use {@link #getFileStatus(Path)} instead
  10363. @return if f is directory true, not false.]]>
  10364. </doc>
  10365. </method>
  10366. <method name="isFile" return="boolean"
  10367. abstract="false" native="false" synchronized="false"
  10368. static="false" final="false" visibility="public"
  10369. deprecated="Use {@link #getFileStatus(Path)} instead">
  10370. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10371. <exception name="IOException" type="java.io.IOException"/>
  10372. <doc>
  10373. <![CDATA[True iff the named path is a regular file.
  10374. Note: Avoid using this method. Instead reuse the FileStatus
  10375. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  10376. @param f path to check
  10377. @throws IOException IO failure
  10378. @deprecated Use {@link #getFileStatus(Path)} instead
  10379. @return if f is file true, not false.]]>
  10380. </doc>
  10381. </method>
  10382. <method name="getLength" return="long"
  10383. abstract="false" native="false" synchronized="false"
  10384. static="false" final="false" visibility="public"
  10385. deprecated="Use {@link #getFileStatus(Path)} instead.">
  10386. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10387. <exception name="IOException" type="java.io.IOException"/>
  10388. <doc>
  10389. <![CDATA[The number of bytes in a file.
  10390. @param f the path.
  10391. @return the number of bytes; 0 for a directory
  10392. @deprecated Use {@link #getFileStatus(Path)} instead.
  10393. @throws FileNotFoundException if the path does not resolve
  10394. @throws IOException IO failure]]>
  10395. </doc>
  10396. </method>
  10397. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  10398. abstract="false" native="false" synchronized="false"
  10399. static="false" final="false" visibility="public"
  10400. deprecated="not deprecated">
  10401. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10402. <exception name="IOException" type="java.io.IOException"/>
  10403. <doc>
  10404. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  10405. @param f path to use
  10406. @throws FileNotFoundException if the path does not resolve
  10407. @throws IOException IO failure
  10408. @return content summary.]]>
  10409. </doc>
  10410. </method>
  10411. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  10412. abstract="false" native="false" synchronized="false"
  10413. static="false" final="false" visibility="public"
  10414. deprecated="not deprecated">
  10415. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10416. <exception name="IOException" type="java.io.IOException"/>
  10417. <doc>
  10418. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  10419. @param f path to use
  10420. @return the quota usage
  10421. @throws IOException IO failure]]>
  10422. </doc>
  10423. </method>
  10424. <method name="setQuota"
  10425. abstract="false" native="false" synchronized="false"
  10426. static="false" final="false" visibility="public"
  10427. deprecated="not deprecated">
  10428. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10429. <param name="namespaceQuota" type="long"/>
  10430. <param name="storagespaceQuota" type="long"/>
  10431. <exception name="IOException" type="java.io.IOException"/>
  10432. <doc>
  10433. <![CDATA[Set quota for the given {@link Path}.
  10434. @param src the target path to set quota for
  10435. @param namespaceQuota the namespace quota (i.e., # of files/directories)
  10436. to set
  10437. @param storagespaceQuota the storage space quota to set
  10438. @throws IOException IO failure]]>
  10439. </doc>
  10440. </method>
  10441. <method name="setQuotaByStorageType"
  10442. abstract="false" native="false" synchronized="false"
  10443. static="false" final="false" visibility="public"
  10444. deprecated="not deprecated">
  10445. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10446. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  10447. <param name="quota" type="long"/>
  10448. <exception name="IOException" type="java.io.IOException"/>
  10449. <doc>
  10450. <![CDATA[Set per storage type quota for the given {@link Path}.
  10451. @param src the target path to set storage type quota for
  10452. @param type the storage type to set
  10453. @param quota the quota to set for the given storage type
  10454. @throws IOException IO failure]]>
  10455. </doc>
  10456. </method>
  10457. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10458. abstract="true" native="false" synchronized="false"
  10459. static="false" final="false" visibility="public"
  10460. deprecated="not deprecated">
  10461. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10462. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10463. <exception name="IOException" type="java.io.IOException"/>
  10464. <doc>
  10465. <![CDATA[List the statuses of the files/directories in the given path if the path is
  10466. a directory.
  10467. <p>
  10468. Does not guarantee to return the List of files/directories status in a
  10469. sorted order.
  10470. <p>
  10471. Will not return null. Expect IOException upon access error.
  10472. @param f given path
  10473. @return the statuses of the files/directories in the given patch
  10474. @throws FileNotFoundException when the path does not exist
  10475. @throws IOException see specific implementation]]>
  10476. </doc>
  10477. </method>
  10478. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  10479. abstract="false" native="false" synchronized="false"
  10480. static="false" final="false" visibility="public"
  10481. deprecated="not deprecated">
  10482. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10483. <exception name="IOException" type="java.io.IOException"/>
  10484. <doc>
  10485. <![CDATA[List corrupted file blocks.
  10486. @param path the path.
  10487. @return an iterator over the corrupt files under the given path
  10488. (may contain duplicates if a file has more than one corrupt block)
  10489. @throws UnsupportedOperationException if the operation is unsupported
  10490. (default).
  10491. @throws IOException IO failure]]>
  10492. </doc>
  10493. </method>
  10494. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10495. abstract="false" native="false" synchronized="false"
  10496. static="false" final="false" visibility="public"
  10497. deprecated="not deprecated">
  10498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10499. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10500. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10501. <exception name="IOException" type="java.io.IOException"/>
  10502. <doc>
  10503. <![CDATA[Filter files/directories in the given path using the user-supplied path
  10504. filter.
  10505. <p>
  10506. Does not guarantee to return the List of files/directories status in a
  10507. sorted order.
  10508. @param f
  10509. a path name
  10510. @param filter
  10511. the user-supplied path filter
  10512. @return an array of FileStatus objects for the files under the given path
  10513. after applying the filter
  10514. @throws FileNotFoundException when the path does not exist
  10515. @throws IOException see specific implementation]]>
  10516. </doc>
  10517. </method>
  10518. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10519. abstract="false" native="false" synchronized="false"
  10520. static="false" final="false" visibility="public"
  10521. deprecated="not deprecated">
  10522. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  10523. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10524. <exception name="IOException" type="java.io.IOException"/>
  10525. <doc>
  10526. <![CDATA[Filter files/directories in the given list of paths using default
  10527. path filter.
  10528. <p>
  10529. Does not guarantee to return the List of files/directories status in a
  10530. sorted order.
  10531. @param files
  10532. a list of paths
  10533. @return a list of statuses for the files under the given paths after
  10534. applying the filter default Path filter
  10535. @throws FileNotFoundException when the path does not exist
  10536. @throws IOException see specific implementation]]>
  10537. </doc>
  10538. </method>
  10539. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10540. abstract="false" native="false" synchronized="false"
  10541. static="false" final="false" visibility="public"
  10542. deprecated="not deprecated">
  10543. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  10544. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10545. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10546. <exception name="IOException" type="java.io.IOException"/>
  10547. <doc>
  10548. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  10549. path filter.
  10550. <p>
  10551. Does not guarantee to return the List of files/directories status in a
  10552. sorted order.
  10553. @param files
  10554. a list of paths
  10555. @param filter
  10556. the user-supplied path filter
  10557. @return a list of statuses for the files under the given paths after
  10558. applying the filter
  10559. @throws FileNotFoundException when the path does not exist
  10560. @throws IOException see specific implementation]]>
  10561. </doc>
  10562. </method>
  10563. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10564. abstract="false" native="false" synchronized="false"
  10565. static="false" final="false" visibility="public"
  10566. deprecated="not deprecated">
  10567. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  10568. <exception name="IOException" type="java.io.IOException"/>
  10569. <doc>
  10570. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  10571. files. Results are sorted by their names.
  10572. <p>
  10573. A filename pattern is composed of <i>regular</i> characters and
  10574. <i>special pattern matching</i> characters, which are:
  10575. <dl>
  10576. <dd>
  10577. <dl>
  10578. <dt> <tt> ? </tt>
  10579. <dd> Matches any single character.
  10580. <dt> <tt> * </tt>
  10581. <dd> Matches zero or more characters.
  10582. <dt> <tt> [<i>abc</i>] </tt>
  10583. <dd> Matches a single character from character set
  10584. <tt>{<i>a,b,c</i>}</tt>.
  10585. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  10586. <dd> Matches a single character from the character range
  10587. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  10588. lexicographically less than or equal to character <tt><i>b</i></tt>.
  10589. <dt> <tt> [^<i>a</i>] </tt>
  10590. <dd> Matches a single character that is not from character set or range
  10591. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  10592. immediately to the right of the opening bracket.
  10593. <dt> <tt> \<i>c</i> </tt>
  10594. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  10595. <dt> <tt> {ab,cd} </tt>
  10596. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  10597. <dt> <tt> {ab,c{de,fh}} </tt>
  10598. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  10599. </dl>
  10600. </dd>
  10601. </dl>
  10602. @param pathPattern a glob specifying a path pattern
  10603. @return an array of paths that match the path pattern
  10604. @throws IOException IO failure]]>
  10605. </doc>
  10606. </method>
  10607. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10608. abstract="false" native="false" synchronized="false"
  10609. static="false" final="false" visibility="public"
  10610. deprecated="not deprecated">
  10611. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  10612. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10613. <exception name="IOException" type="java.io.IOException"/>
  10614. <doc>
  10615. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  10616. {@code pathPattern} and is accepted by the user-supplied path filter.
  10617. Results are sorted by their path names.
  10618. @param pathPattern a glob specifying the path pattern
  10619. @param filter a user-supplied path filter
  10620. @return null if {@code pathPattern} has no glob and the path does not exist
  10621. an empty array if {@code pathPattern} has a glob and no path
  10622. matches it else an array of {@link FileStatus} objects matching the
  10623. pattern
  10624. @throws IOException if any I/O error occurs when fetching file status]]>
  10625. </doc>
  10626. </method>
  10627. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10628. abstract="false" native="false" synchronized="false"
  10629. static="false" final="false" visibility="public"
  10630. deprecated="not deprecated">
  10631. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10632. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10633. <exception name="IOException" type="java.io.IOException"/>
  10634. <doc>
  10635. <![CDATA[List the statuses of the files/directories in the given path if the path is
  10636. a directory.
  10637. Return the file's status and block locations If the path is a file.
  10638. If a returned status is a file, it contains the file's block locations.
  10639. @param f is the path
  10640. @return an iterator that traverses statuses of the files/directories
  10641. in the given path
  10642. @throws FileNotFoundException If <code>f</code> does not exist
  10643. @throws IOException If an I/O error occurred]]>
  10644. </doc>
  10645. </method>
  10646. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10647. abstract="false" native="false" synchronized="false"
  10648. static="false" final="false" visibility="protected"
  10649. deprecated="not deprecated">
  10650. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10651. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10652. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10653. <exception name="IOException" type="java.io.IOException"/>
  10654. <doc>
  10655. <![CDATA[List a directory.
  10656. The returned results include its block location if it is a file
  10657. The results are filtered by the given path filter
  10658. @param f a path
  10659. @param filter a path filter
  10660. @return an iterator that traverses statuses of the files/directories
  10661. in the given path
  10662. @throws FileNotFoundException if <code>f</code> does not exist
  10663. @throws IOException if any I/O error occurred]]>
  10664. </doc>
  10665. </method>
  10666. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  10667. abstract="false" native="false" synchronized="false"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10671. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10672. <exception name="IOException" type="java.io.IOException"/>
  10673. <doc>
  10674. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  10675. while consuming the entries. Each FileSystem implementation should
  10676. override this method and provide a more efficient implementation, if
  10677. possible.
  10678. Does not guarantee to return the iterator that traverses statuses
  10679. of the files in a sorted order.
  10680. @param p target path
  10681. @return remote iterator
  10682. @throws FileNotFoundException if <code>p</code> does not exist
  10683. @throws IOException if any I/O error occurred]]>
  10684. </doc>
  10685. </method>
  10686. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  10687. abstract="false" native="false" synchronized="false"
  10688. static="false" final="false" visibility="public"
  10689. deprecated="not deprecated">
  10690. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10691. <param name="recursive" type="boolean"/>
  10692. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10693. <exception name="IOException" type="java.io.IOException"/>
  10694. <doc>
  10695. <![CDATA[List the statuses and block locations of the files in the given path.
  10696. Does not guarantee to return the iterator that traverses statuses
  10697. of the files in a sorted order.
  10698. <pre>
  10699. If the path is a directory,
  10700. if recursive is false, returns files in the directory;
  10701. if recursive is true, return files in the subtree rooted at the path.
  10702. If the path is a file, return the file's status and block locations.
  10703. </pre>
  10704. @param f is the path
  10705. @param recursive if the subdirectories need to be traversed recursively
  10706. @return an iterator that traverses statuses of the files
  10707. @throws FileNotFoundException when the path does not exist;
  10708. @throws IOException see specific implementation]]>
  10709. </doc>
  10710. </method>
  10711. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10712. abstract="false" native="false" synchronized="false"
  10713. static="false" final="false" visibility="public"
  10714. deprecated="not deprecated">
  10715. <doc>
  10716. <![CDATA[Return the current user's home directory in this FileSystem.
  10717. The default implementation returns {@code "/user/$USER/"}.
  10718. @return the path.]]>
  10719. </doc>
  10720. </method>
  10721. <method name="setWorkingDirectory"
  10722. abstract="true" native="false" synchronized="false"
  10723. static="false" final="false" visibility="public"
  10724. deprecated="not deprecated">
  10725. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  10726. <doc>
  10727. <![CDATA[Set the current working directory for the given FileSystem. All relative
  10728. paths will be resolved relative to it.
  10729. @param new_dir Path of new working directory]]>
  10730. </doc>
  10731. </method>
  10732. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10733. abstract="true" native="false" synchronized="false"
  10734. static="false" final="false" visibility="public"
  10735. deprecated="not deprecated">
  10736. <doc>
  10737. <![CDATA[Get the current working directory for the given FileSystem
  10738. @return the directory pathname]]>
  10739. </doc>
  10740. </method>
  10741. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10742. abstract="false" native="false" synchronized="false"
  10743. static="false" final="false" visibility="protected"
  10744. deprecated="not deprecated">
  10745. <doc>
  10746. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  10747. will be removed.
  10748. The working directory is implemented in FileContext.
  10749. Some FileSystems like LocalFileSystem have an initial workingDir
  10750. that we use as the starting workingDir. For other file systems
  10751. like HDFS there is no built in notion of an initial workingDir.
  10752. @return if there is built in notion of workingDir then it
  10753. is returned; else a null is returned.]]>
  10754. </doc>
  10755. </method>
  10756. <method name="mkdirs" return="boolean"
  10757. abstract="false" native="false" synchronized="false"
  10758. static="false" final="false" visibility="public"
  10759. deprecated="not deprecated">
  10760. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10761. <exception name="IOException" type="java.io.IOException"/>
  10762. <doc>
  10763. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  10764. @param f path
  10765. @return true if the directory was created
  10766. @throws IOException IO failure]]>
  10767. </doc>
  10768. </method>
  10769. <method name="mkdirs" return="boolean"
  10770. abstract="true" native="false" synchronized="false"
  10771. static="false" final="false" visibility="public"
  10772. deprecated="not deprecated">
  10773. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10774. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10775. <exception name="IOException" type="java.io.IOException"/>
  10776. <doc>
  10777. <![CDATA[Make the given file and all non-existent parents into
  10778. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  10779. Existence of the directory hierarchy is not an error.
  10780. @param f path to create
  10781. @param permission to apply to f
  10782. @throws IOException IO failure
  10783. @return if mkdir success true, not false.]]>
  10784. </doc>
  10785. </method>
  10786. <method name="copyFromLocalFile"
  10787. abstract="false" native="false" synchronized="false"
  10788. static="false" final="false" visibility="public"
  10789. deprecated="not deprecated">
  10790. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10791. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10792. <exception name="IOException" type="java.io.IOException"/>
  10793. <doc>
  10794. <![CDATA[The src file is on the local disk. Add it to filesystem at
  10795. the given dst name and the source is kept intact afterwards
  10796. @param src path
  10797. @param dst path
  10798. @throws IOException IO failure]]>
  10799. </doc>
  10800. </method>
  10801. <method name="moveFromLocalFile"
  10802. abstract="false" native="false" synchronized="false"
  10803. static="false" final="false" visibility="public"
  10804. deprecated="not deprecated">
  10805. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10806. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10807. <exception name="IOException" type="java.io.IOException"/>
  10808. <doc>
  10809. <![CDATA[The src files is on the local disk. Add it to filesystem at
  10810. the given dst name, removing the source afterwards.
  10811. @param srcs source paths
  10812. @param dst path
  10813. @throws IOException IO failure]]>
  10814. </doc>
  10815. </method>
  10816. <method name="moveFromLocalFile"
  10817. abstract="false" native="false" synchronized="false"
  10818. static="false" final="false" visibility="public"
  10819. deprecated="not deprecated">
  10820. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10821. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10822. <exception name="IOException" type="java.io.IOException"/>
  10823. <doc>
  10824. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10825. the given dst name, removing the source afterwards.
  10826. @param src local path
  10827. @param dst path
  10828. @throws IOException IO failure]]>
  10829. </doc>
  10830. </method>
  10831. <method name="copyFromLocalFile"
  10832. abstract="false" native="false" synchronized="false"
  10833. static="false" final="false" visibility="public"
  10834. deprecated="not deprecated">
  10835. <param name="delSrc" type="boolean"/>
  10836. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10837. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10838. <exception name="IOException" type="java.io.IOException"/>
  10839. <doc>
  10840. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10841. the given dst name.
  10842. delSrc indicates if the source should be removed
  10843. @param delSrc whether to delete the src
  10844. @param src path
  10845. @param dst path
  10846. @throws IOException IO failure.]]>
  10847. </doc>
  10848. </method>
  10849. <method name="copyFromLocalFile"
  10850. abstract="false" native="false" synchronized="false"
  10851. static="false" final="false" visibility="public"
  10852. deprecated="not deprecated">
  10853. <param name="delSrc" type="boolean"/>
  10854. <param name="overwrite" type="boolean"/>
  10855. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10856. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10857. <exception name="IOException" type="java.io.IOException"/>
  10858. <doc>
  10859. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  10860. the given dst name.
  10861. delSrc indicates if the source should be removed
  10862. @param delSrc whether to delete the src
  10863. @param overwrite whether to overwrite an existing file
  10864. @param srcs array of paths which are source
  10865. @param dst path
  10866. @throws IOException IO failure]]>
  10867. </doc>
  10868. </method>
  10869. <method name="copyFromLocalFile"
  10870. abstract="false" native="false" synchronized="false"
  10871. static="false" final="false" visibility="public"
  10872. deprecated="not deprecated">
  10873. <param name="delSrc" type="boolean"/>
  10874. <param name="overwrite" type="boolean"/>
  10875. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10876. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10877. <exception name="IOException" type="java.io.IOException"/>
  10878. <doc>
  10879. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10880. the given dst name.
  10881. delSrc indicates if the source should be removed
  10882. @param delSrc whether to delete the src
  10883. @param overwrite whether to overwrite an existing file
  10884. @param src path
  10885. @param dst path
  10886. @throws IOException IO failure]]>
  10887. </doc>
  10888. </method>
  10889. <method name="copyToLocalFile"
  10890. abstract="false" native="false" synchronized="false"
  10891. static="false" final="false" visibility="public"
  10892. deprecated="not deprecated">
  10893. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10894. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10895. <exception name="IOException" type="java.io.IOException"/>
  10896. <doc>
  10897. <![CDATA[Copy it a file from the remote filesystem to the local one.
  10898. @param src path src file in the remote filesystem
  10899. @param dst path local destination
  10900. @throws IOException IO failure]]>
  10901. </doc>
  10902. </method>
  10903. <method name="moveToLocalFile"
  10904. abstract="false" native="false" synchronized="false"
  10905. static="false" final="false" visibility="public"
  10906. deprecated="not deprecated">
  10907. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10908. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10909. <exception name="IOException" type="java.io.IOException"/>
  10910. <doc>
  10911. <![CDATA[Copy a file to the local filesystem, then delete it from the
  10912. remote filesystem (if successfully copied).
  10913. @param src path src file in the remote filesystem
  10914. @param dst path local destination
  10915. @throws IOException IO failure]]>
  10916. </doc>
  10917. </method>
  10918. <method name="copyToLocalFile"
  10919. abstract="false" native="false" synchronized="false"
  10920. static="false" final="false" visibility="public"
  10921. deprecated="not deprecated">
  10922. <param name="delSrc" type="boolean"/>
  10923. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10924. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10925. <exception name="IOException" type="java.io.IOException"/>
  10926. <doc>
  10927. <![CDATA[Copy it a file from a remote filesystem to the local one.
  10928. delSrc indicates if the src will be removed or not.
  10929. @param delSrc whether to delete the src
  10930. @param src path src file in the remote filesystem
  10931. @param dst path local destination
  10932. @throws IOException IO failure]]>
  10933. </doc>
  10934. </method>
  10935. <method name="copyToLocalFile"
  10936. abstract="false" native="false" synchronized="false"
  10937. static="false" final="false" visibility="public"
  10938. deprecated="not deprecated">
  10939. <param name="delSrc" type="boolean"/>
  10940. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10941. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10942. <param name="useRawLocalFileSystem" type="boolean"/>
  10943. <exception name="IOException" type="java.io.IOException"/>
  10944. <doc>
  10945. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  10946. Copy it from the remote filesystem to the local dst name.
  10947. delSrc indicates if the src will be removed
  10948. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  10949. as the local file system or not. RawLocalFileSystem is non checksumming,
  10950. So, It will not create any crc files at local.
  10951. @param delSrc
  10952. whether to delete the src
  10953. @param src
  10954. path
  10955. @param dst
  10956. path
  10957. @param useRawLocalFileSystem
  10958. whether to use RawLocalFileSystem as local file system or not.
  10959. @throws IOException for any IO error]]>
  10960. </doc>
  10961. </method>
  10962. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10963. abstract="false" native="false" synchronized="false"
  10964. static="false" final="false" visibility="public"
  10965. deprecated="not deprecated">
  10966. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10967. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10968. <exception name="IOException" type="java.io.IOException"/>
  10969. <doc>
  10970. <![CDATA[Returns a local file that the user can write output to. The caller
  10971. provides both the eventual target name in this FileSystem
  10972. and the local working file path.
  10973. If this FileSystem is local, we write directly into the target. If
  10974. the FileSystem is not local, we write into the tmp local area.
  10975. @param fsOutputFile path of output file
  10976. @param tmpLocalFile path of local tmp file
  10977. @throws IOException IO failure
  10978. @return the path.]]>
  10979. </doc>
  10980. </method>
  10981. <method name="completeLocalOutput"
  10982. abstract="false" native="false" synchronized="false"
  10983. static="false" final="false" visibility="public"
  10984. deprecated="not deprecated">
  10985. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10986. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10987. <exception name="IOException" type="java.io.IOException"/>
  10988. <doc>
  10989. <![CDATA[Called when we're all done writing to the target.
  10990. A local FS will do nothing, because we've written to exactly the
  10991. right place.
  10992. A remote FS will copy the contents of tmpLocalFile to the correct target at
  10993. fsOutputFile.
  10994. @param fsOutputFile path of output file
  10995. @param tmpLocalFile path to local tmp file
  10996. @throws IOException IO failure]]>
  10997. </doc>
  10998. </method>
  10999. <method name="close"
  11000. abstract="false" native="false" synchronized="false"
  11001. static="false" final="false" visibility="public"
  11002. deprecated="not deprecated">
  11003. <exception name="IOException" type="java.io.IOException"/>
  11004. <doc>
  11005. <![CDATA[Close this FileSystem instance.
  11006. Will release any held locks, delete all files queued for deletion
  11007. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  11008. from the cache, if cached.
  11009. After this operation, the outcome of any method call on this FileSystem
  11010. instance, or any input/output stream created by it is <i>undefined</i>.
  11011. @throws IOException IO failure]]>
  11012. </doc>
  11013. </method>
  11014. <method name="getUsed" return="long"
  11015. abstract="false" native="false" synchronized="false"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <exception name="IOException" type="java.io.IOException"/>
  11019. <doc>
  11020. <![CDATA[Return the total size of all files in the filesystem.
  11021. @throws IOException IO failure
  11022. @return the number of path used.]]>
  11023. </doc>
  11024. </method>
  11025. <method name="getUsed" return="long"
  11026. abstract="false" native="false" synchronized="false"
  11027. static="false" final="false" visibility="public"
  11028. deprecated="not deprecated">
  11029. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11030. <exception name="IOException" type="java.io.IOException"/>
  11031. <doc>
  11032. <![CDATA[Return the total size of all files from a specified path.
  11033. @param path the path.
  11034. @throws IOException IO failure
  11035. @return the number of path content summary.]]>
  11036. </doc>
  11037. </method>
  11038. <method name="getBlockSize" return="long"
  11039. abstract="false" native="false" synchronized="false"
  11040. static="false" final="false" visibility="public"
  11041. deprecated="Use {@link #getFileStatus(Path)} instead">
  11042. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11043. <exception name="IOException" type="java.io.IOException"/>
  11044. <doc>
  11045. <![CDATA[Get the block size for a particular file.
  11046. @param f the filename
  11047. @return the number of bytes in a block
  11048. @deprecated Use {@link #getFileStatus(Path)} instead
  11049. @throws FileNotFoundException if the path is not present
  11050. @throws IOException IO failure]]>
  11051. </doc>
  11052. </method>
  11053. <method name="getDefaultBlockSize" return="long"
  11054. abstract="false" native="false" synchronized="false"
  11055. static="false" final="false" visibility="public"
  11056. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  11057. <doc>
  11058. <![CDATA[Return the number of bytes that large input files should be optimally
  11059. be split into to minimize I/O time.
  11060. @deprecated use {@link #getDefaultBlockSize(Path)} instead
  11061. @return default block size.]]>
  11062. </doc>
  11063. </method>
  11064. <method name="getDefaultBlockSize" return="long"
  11065. abstract="false" native="false" synchronized="false"
  11066. static="false" final="false" visibility="public"
  11067. deprecated="not deprecated">
  11068. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11069. <doc>
  11070. <![CDATA[Return the number of bytes that large input files should be optimally
  11071. be split into to minimize I/O time. The given path will be used to
  11072. locate the actual filesystem. The full path does not have to exist.
  11073. @param f path of file
  11074. @return the default block size for the path's filesystem]]>
  11075. </doc>
  11076. </method>
  11077. <method name="getDefaultReplication" return="short"
  11078. abstract="false" native="false" synchronized="false"
  11079. static="false" final="false" visibility="public"
  11080. deprecated="use {@link #getDefaultReplication(Path)} instead">
  11081. <doc>
  11082. <![CDATA[Get the default replication.
  11083. @return the replication; the default value is "1".
  11084. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  11085. </doc>
  11086. </method>
  11087. <method name="getDefaultReplication" return="short"
  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. <doc>
  11093. <![CDATA[Get the default replication for a path.
  11094. The given path will be used to locate the actual FileSystem to query.
  11095. The full path does not have to exist.
  11096. @param path of the file
  11097. @return default replication for the path's filesystem]]>
  11098. </doc>
  11099. </method>
  11100. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11101. abstract="true" native="false" synchronized="false"
  11102. static="false" final="false" visibility="public"
  11103. deprecated="not deprecated">
  11104. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11105. <exception name="IOException" type="java.io.IOException"/>
  11106. <doc>
  11107. <![CDATA[Return a file status object that represents the path.
  11108. @param f The path we want information from
  11109. @return a FileStatus object
  11110. @throws FileNotFoundException when the path does not exist
  11111. @throws IOException see specific implementation]]>
  11112. </doc>
  11113. </method>
  11114. <method name="msync"
  11115. abstract="false" native="false" synchronized="false"
  11116. static="false" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <exception name="IOException" type="java.io.IOException"/>
  11119. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11120. <doc>
  11121. <![CDATA[Synchronize client metadata state.
  11122. <p>
  11123. In some FileSystem implementations such as HDFS metadata
  11124. synchronization is essential to guarantee consistency of read requests
  11125. particularly in HA setting.
  11126. @throws IOException If an I/O error occurred.
  11127. @throws UnsupportedOperationException if the operation is unsupported.]]>
  11128. </doc>
  11129. </method>
  11130. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  11131. abstract="false" native="false" synchronized="false"
  11132. static="false" final="false" visibility="protected"
  11133. deprecated="not deprecated">
  11134. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11135. <doc>
  11136. <![CDATA[See {@link FileContext#fixRelativePart}.
  11137. @param p the path.
  11138. @return relative part.]]>
  11139. </doc>
  11140. </method>
  11141. <method name="createSymlink"
  11142. abstract="false" native="false" synchronized="false"
  11143. static="false" final="false" visibility="public"
  11144. deprecated="not deprecated">
  11145. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11146. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11147. <param name="createParent" type="boolean"/>
  11148. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11149. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  11150. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11151. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  11152. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11153. <exception name="IOException" type="java.io.IOException"/>
  11154. <doc>
  11155. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.
  11156. @param target target path.
  11157. @param link link.
  11158. @param createParent create parent.
  11159. @throws AccessControlException if access is denied.
  11160. @throws FileAlreadyExistsException when the path does not exist.
  11161. @throws FileNotFoundException when the path does not exist.
  11162. @throws ParentNotDirectoryException if the parent path of dest is not
  11163. a directory.
  11164. @throws UnsupportedFileSystemException if there was no known implementation
  11165. for the scheme.
  11166. @throws IOException raised on errors performing I/O.]]>
  11167. </doc>
  11168. </method>
  11169. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11170. abstract="false" native="false" synchronized="false"
  11171. static="false" final="false" visibility="public"
  11172. deprecated="not deprecated">
  11173. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11174. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11175. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11176. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11177. <exception name="IOException" type="java.io.IOException"/>
  11178. <doc>
  11179. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  11180. @param f the path.
  11181. @throws AccessControlException if access is denied.
  11182. @throws FileNotFoundException when the path does not exist.
  11183. @throws IOException raised on errors performing I/O.
  11184. @throws UnsupportedFileSystemException if there was no known implementation
  11185. for the scheme.
  11186. @return file status]]>
  11187. </doc>
  11188. </method>
  11189. <method name="supportsSymlinks" return="boolean"
  11190. abstract="false" native="false" synchronized="false"
  11191. static="false" final="false" visibility="public"
  11192. deprecated="not deprecated">
  11193. <doc>
  11194. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.
  11195. @return if support symlinkls true, not false.]]>
  11196. </doc>
  11197. </method>
  11198. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11199. abstract="false" native="false" synchronized="false"
  11200. static="false" final="false" visibility="public"
  11201. deprecated="not deprecated">
  11202. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11203. <exception name="IOException" type="java.io.IOException"/>
  11204. <doc>
  11205. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  11206. @param f the path.
  11207. @throws UnsupportedOperationException if the operation is unsupported
  11208. (default outcome).
  11209. @throws IOException IO failure.
  11210. @return the path.]]>
  11211. </doc>
  11212. </method>
  11213. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  11214. abstract="false" native="false" synchronized="false"
  11215. static="false" final="false" visibility="protected"
  11216. deprecated="not deprecated">
  11217. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11218. <exception name="IOException" type="java.io.IOException"/>
  11219. <doc>
  11220. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  11221. @param f the path.
  11222. @throws UnsupportedOperationException if the operation is unsupported
  11223. (default outcome).
  11224. @throws IOException IO failure.
  11225. @return the path.]]>
  11226. </doc>
  11227. </method>
  11228. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11229. abstract="false" native="false" synchronized="false"
  11230. static="false" final="false" visibility="public"
  11231. deprecated="not deprecated">
  11232. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11233. <exception name="IOException" type="java.io.IOException"/>
  11234. <doc>
  11235. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  11236. @param f The file path
  11237. @return The file checksum. The default return value is null,
  11238. which indicates that no checksum algorithm is implemented
  11239. in the corresponding FileSystem.
  11240. @throws IOException IO failure]]>
  11241. </doc>
  11242. </method>
  11243. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11244. abstract="false" native="false" synchronized="false"
  11245. static="false" final="false" visibility="public"
  11246. deprecated="not deprecated">
  11247. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11248. <param name="length" type="long"/>
  11249. <exception name="IOException" type="java.io.IOException"/>
  11250. <doc>
  11251. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  11252. specific length.
  11253. @param f The file path
  11254. @param length The length of the file range for checksum calculation
  11255. @return The file checksum or null if checksums are not supported.
  11256. @throws IOException IO failure]]>
  11257. </doc>
  11258. </method>
  11259. <method name="setVerifyChecksum"
  11260. abstract="false" native="false" synchronized="false"
  11261. static="false" final="false" visibility="public"
  11262. deprecated="not deprecated">
  11263. <param name="verifyChecksum" type="boolean"/>
  11264. <doc>
  11265. <![CDATA[Set the verify checksum flag. This is only applicable if the
  11266. corresponding filesystem supports checksums.
  11267. By default doesn't do anything.
  11268. @param verifyChecksum Verify checksum flag]]>
  11269. </doc>
  11270. </method>
  11271. <method name="setWriteChecksum"
  11272. abstract="false" native="false" synchronized="false"
  11273. static="false" final="false" visibility="public"
  11274. deprecated="not deprecated">
  11275. <param name="writeChecksum" type="boolean"/>
  11276. <doc>
  11277. <![CDATA[Set the write checksum flag. This is only applicable if the
  11278. corresponding filesystem supports checksums.
  11279. By default doesn't do anything.
  11280. @param writeChecksum Write checksum flag]]>
  11281. </doc>
  11282. </method>
  11283. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11284. abstract="false" native="false" synchronized="false"
  11285. static="false" final="false" visibility="public"
  11286. deprecated="not deprecated">
  11287. <exception name="IOException" type="java.io.IOException"/>
  11288. <doc>
  11289. <![CDATA[Returns a status object describing the use and capacity of the
  11290. filesystem. If the filesystem has multiple partitions, the
  11291. use and capacity of the root partition is reflected.
  11292. @return a FsStatus object
  11293. @throws IOException
  11294. see specific implementation]]>
  11295. </doc>
  11296. </method>
  11297. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11298. abstract="false" native="false" synchronized="false"
  11299. static="false" final="false" visibility="public"
  11300. deprecated="not deprecated">
  11301. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11302. <exception name="IOException" type="java.io.IOException"/>
  11303. <doc>
  11304. <![CDATA[Returns a status object describing the use and capacity of the
  11305. filesystem. If the filesystem has multiple partitions, the
  11306. use and capacity of the partition pointed to by the specified
  11307. path is reflected.
  11308. @param p Path for which status should be obtained. null means
  11309. the default partition.
  11310. @return a FsStatus object
  11311. @throws IOException
  11312. see specific implementation]]>
  11313. </doc>
  11314. </method>
  11315. <method name="setPermission"
  11316. abstract="false" native="false" synchronized="false"
  11317. static="false" final="false" visibility="public"
  11318. deprecated="not deprecated">
  11319. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11320. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11321. <exception name="IOException" type="java.io.IOException"/>
  11322. <doc>
  11323. <![CDATA[Set permission of a path.
  11324. @param p The path
  11325. @param permission permission
  11326. @throws IOException IO failure]]>
  11327. </doc>
  11328. </method>
  11329. <method name="setOwner"
  11330. abstract="false" native="false" synchronized="false"
  11331. static="false" final="false" visibility="public"
  11332. deprecated="not deprecated">
  11333. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11334. <param name="username" type="java.lang.String"/>
  11335. <param name="groupname" type="java.lang.String"/>
  11336. <exception name="IOException" type="java.io.IOException"/>
  11337. <doc>
  11338. <![CDATA[Set owner of a path (i.e. a file or a directory).
  11339. The parameters username and groupname cannot both be null.
  11340. @param p The path
  11341. @param username If it is null, the original username remains unchanged.
  11342. @param groupname If it is null, the original groupname remains unchanged.
  11343. @throws IOException IO failure]]>
  11344. </doc>
  11345. </method>
  11346. <method name="setTimes"
  11347. abstract="false" native="false" synchronized="false"
  11348. static="false" final="false" visibility="public"
  11349. deprecated="not deprecated">
  11350. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11351. <param name="mtime" type="long"/>
  11352. <param name="atime" type="long"/>
  11353. <exception name="IOException" type="java.io.IOException"/>
  11354. <doc>
  11355. <![CDATA[Set access time of a file.
  11356. @param p The path
  11357. @param mtime Set the modification time of this file.
  11358. The number of milliseconds since Jan 1, 1970.
  11359. A value of -1 means that this call should not set modification time.
  11360. @param atime Set the access time of this file.
  11361. The number of milliseconds since Jan 1, 1970.
  11362. A value of -1 means that this call should not set access time.
  11363. @throws IOException IO failure]]>
  11364. </doc>
  11365. </method>
  11366. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  11367. abstract="false" native="false" synchronized="false"
  11368. static="false" final="true" visibility="public"
  11369. deprecated="not deprecated">
  11370. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11371. <exception name="IOException" type="java.io.IOException"/>
  11372. <doc>
  11373. <![CDATA[Create a snapshot with a default name.
  11374. @param path The directory where snapshots will be taken.
  11375. @return the snapshot path.
  11376. @throws IOException IO failure
  11377. @throws UnsupportedOperationException if the operation is unsupported]]>
  11378. </doc>
  11379. </method>
  11380. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  11381. abstract="false" native="false" synchronized="false"
  11382. static="false" final="false" visibility="public"
  11383. deprecated="not deprecated">
  11384. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11385. <param name="snapshotName" type="java.lang.String"/>
  11386. <exception name="IOException" type="java.io.IOException"/>
  11387. <doc>
  11388. <![CDATA[Create a snapshot.
  11389. @param path The directory where snapshots will be taken.
  11390. @param snapshotName The name of the snapshot
  11391. @return the snapshot path.
  11392. @throws IOException IO failure
  11393. @throws UnsupportedOperationException if the operation is unsupported]]>
  11394. </doc>
  11395. </method>
  11396. <method name="renameSnapshot"
  11397. abstract="false" native="false" synchronized="false"
  11398. static="false" final="false" visibility="public"
  11399. deprecated="not deprecated">
  11400. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11401. <param name="snapshotOldName" type="java.lang.String"/>
  11402. <param name="snapshotNewName" type="java.lang.String"/>
  11403. <exception name="IOException" type="java.io.IOException"/>
  11404. <doc>
  11405. <![CDATA[Rename a snapshot.
  11406. @param path The directory path where the snapshot was taken
  11407. @param snapshotOldName Old name of the snapshot
  11408. @param snapshotNewName New name of the snapshot
  11409. @throws IOException IO failure
  11410. @throws UnsupportedOperationException if the operation is unsupported
  11411. (default outcome).]]>
  11412. </doc>
  11413. </method>
  11414. <method name="deleteSnapshot"
  11415. abstract="false" native="false" synchronized="false"
  11416. static="false" final="false" visibility="public"
  11417. deprecated="not deprecated">
  11418. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11419. <param name="snapshotName" type="java.lang.String"/>
  11420. <exception name="IOException" type="java.io.IOException"/>
  11421. <doc>
  11422. <![CDATA[Delete a snapshot of a directory.
  11423. @param path The directory that the to-be-deleted snapshot belongs to
  11424. @param snapshotName The name of the snapshot
  11425. @throws IOException IO failure
  11426. @throws UnsupportedOperationException if the operation is unsupported
  11427. (default outcome).]]>
  11428. </doc>
  11429. </method>
  11430. <method name="modifyAclEntries"
  11431. abstract="false" native="false" synchronized="false"
  11432. static="false" final="false" visibility="public"
  11433. deprecated="not deprecated">
  11434. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11435. <param name="aclSpec" type="java.util.List"/>
  11436. <exception name="IOException" type="java.io.IOException"/>
  11437. <doc>
  11438. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  11439. entries or modify the permissions on existing ACL entries. All existing
  11440. ACL entries that are not specified in this call are retained without
  11441. changes. (Modifications are merged into the current ACL.)
  11442. @param path Path to modify
  11443. @param aclSpec List&lt;AclEntry&gt; describing modifications
  11444. @throws IOException if an ACL could not be modified
  11445. @throws UnsupportedOperationException if the operation is unsupported
  11446. (default outcome).]]>
  11447. </doc>
  11448. </method>
  11449. <method name="removeAclEntries"
  11450. abstract="false" native="false" synchronized="false"
  11451. static="false" final="false" visibility="public"
  11452. deprecated="not deprecated">
  11453. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11454. <param name="aclSpec" type="java.util.List"/>
  11455. <exception name="IOException" type="java.io.IOException"/>
  11456. <doc>
  11457. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  11458. retained.
  11459. @param path Path to modify
  11460. @param aclSpec List describing entries to remove
  11461. @throws IOException if an ACL could not be modified
  11462. @throws UnsupportedOperationException if the operation is unsupported
  11463. (default outcome).]]>
  11464. </doc>
  11465. </method>
  11466. <method name="removeDefaultAcl"
  11467. abstract="false" native="false" synchronized="false"
  11468. static="false" final="false" visibility="public"
  11469. deprecated="not deprecated">
  11470. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11471. <exception name="IOException" type="java.io.IOException"/>
  11472. <doc>
  11473. <![CDATA[Removes all default ACL entries from files and directories.
  11474. @param path Path to modify
  11475. @throws IOException if an ACL could not be modified
  11476. @throws UnsupportedOperationException if the operation is unsupported
  11477. (default outcome).]]>
  11478. </doc>
  11479. </method>
  11480. <method name="removeAcl"
  11481. abstract="false" native="false" synchronized="false"
  11482. static="false" final="false" visibility="public"
  11483. deprecated="not deprecated">
  11484. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11485. <exception name="IOException" type="java.io.IOException"/>
  11486. <doc>
  11487. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  11488. for user, group, and others are retained for compatibility with permission
  11489. bits.
  11490. @param path Path to modify
  11491. @throws IOException if an ACL could not be removed
  11492. @throws UnsupportedOperationException if the operation is unsupported
  11493. (default outcome).]]>
  11494. </doc>
  11495. </method>
  11496. <method name="setAcl"
  11497. abstract="false" native="false" synchronized="false"
  11498. static="false" final="false" visibility="public"
  11499. deprecated="not deprecated">
  11500. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11501. <param name="aclSpec" type="java.util.List"/>
  11502. <exception name="IOException" type="java.io.IOException"/>
  11503. <doc>
  11504. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  11505. entries.
  11506. @param path Path to modify
  11507. @param aclSpec List describing modifications, which must include entries
  11508. for user, group, and others for compatibility with permission bits.
  11509. @throws IOException if an ACL could not be modified
  11510. @throws UnsupportedOperationException if the operation is unsupported
  11511. (default outcome).]]>
  11512. </doc>
  11513. </method>
  11514. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11515. abstract="false" native="false" synchronized="false"
  11516. static="false" final="false" visibility="public"
  11517. deprecated="not deprecated">
  11518. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11519. <exception name="IOException" type="java.io.IOException"/>
  11520. <doc>
  11521. <![CDATA[Gets the ACL of a file or directory.
  11522. @param path Path to get
  11523. @return AclStatus describing the ACL of the file or directory
  11524. @throws IOException if an ACL could not be read
  11525. @throws UnsupportedOperationException if the operation is unsupported
  11526. (default outcome).]]>
  11527. </doc>
  11528. </method>
  11529. <method name="setXAttr"
  11530. abstract="false" native="false" synchronized="false"
  11531. static="false" final="false" visibility="public"
  11532. deprecated="not deprecated">
  11533. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11534. <param name="name" type="java.lang.String"/>
  11535. <param name="value" type="byte[]"/>
  11536. <exception name="IOException" type="java.io.IOException"/>
  11537. <doc>
  11538. <![CDATA[Set an xattr of a file or directory.
  11539. The name must be prefixed with the namespace followed by ".". For example,
  11540. "user.attr".
  11541. <p>
  11542. Refer to the HDFS extended attributes user documentation for details.
  11543. @param path Path to modify
  11544. @param name xattr name.
  11545. @param value xattr value.
  11546. @throws IOException IO failure
  11547. @throws UnsupportedOperationException if the operation is unsupported
  11548. (default outcome).]]>
  11549. </doc>
  11550. </method>
  11551. <method name="setXAttr"
  11552. abstract="false" native="false" synchronized="false"
  11553. static="false" final="false" visibility="public"
  11554. deprecated="not deprecated">
  11555. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11556. <param name="name" type="java.lang.String"/>
  11557. <param name="value" type="byte[]"/>
  11558. <param name="flag" type="java.util.EnumSet"/>
  11559. <exception name="IOException" type="java.io.IOException"/>
  11560. <doc>
  11561. <![CDATA[Set an xattr of a file or directory.
  11562. The name must be prefixed with the namespace followed by ".". For example,
  11563. "user.attr".
  11564. <p>
  11565. Refer to the HDFS extended attributes user documentation for details.
  11566. @param path Path to modify
  11567. @param name xattr name.
  11568. @param value xattr value.
  11569. @param flag xattr set flag
  11570. @throws IOException IO failure
  11571. @throws UnsupportedOperationException if the operation is unsupported
  11572. (default outcome).]]>
  11573. </doc>
  11574. </method>
  11575. <method name="getXAttr" return="byte[]"
  11576. abstract="false" native="false" synchronized="false"
  11577. static="false" final="false" visibility="public"
  11578. deprecated="not deprecated">
  11579. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11580. <param name="name" type="java.lang.String"/>
  11581. <exception name="IOException" type="java.io.IOException"/>
  11582. <doc>
  11583. <![CDATA[Get an xattr name and value for a file or directory.
  11584. The name must be prefixed with the namespace followed by ".". For example,
  11585. "user.attr".
  11586. <p>
  11587. Refer to the HDFS extended attributes user documentation for details.
  11588. @param path Path to get extended attribute
  11589. @param name xattr name.
  11590. @return byte[] xattr value.
  11591. @throws IOException IO failure
  11592. @throws UnsupportedOperationException if the operation is unsupported
  11593. (default outcome).]]>
  11594. </doc>
  11595. </method>
  11596. <method name="getXAttrs" return="java.util.Map"
  11597. abstract="false" native="false" synchronized="false"
  11598. static="false" final="false" visibility="public"
  11599. deprecated="not deprecated">
  11600. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11601. <exception name="IOException" type="java.io.IOException"/>
  11602. <doc>
  11603. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  11604. Only those xattrs which the logged-in user has permissions to view
  11605. are returned.
  11606. <p>
  11607. Refer to the HDFS extended attributes user documentation for details.
  11608. @param path Path to get extended attributes
  11609. @return Map describing the XAttrs of the file or directory
  11610. @throws IOException IO failure
  11611. @throws UnsupportedOperationException if the operation is unsupported
  11612. (default outcome).]]>
  11613. </doc>
  11614. </method>
  11615. <method name="getXAttrs" return="java.util.Map"
  11616. abstract="false" native="false" synchronized="false"
  11617. static="false" final="false" visibility="public"
  11618. deprecated="not deprecated">
  11619. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11620. <param name="names" type="java.util.List"/>
  11621. <exception name="IOException" type="java.io.IOException"/>
  11622. <doc>
  11623. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  11624. Only those xattrs which the logged-in user has permissions to view
  11625. are returned.
  11626. <p>
  11627. Refer to the HDFS extended attributes user documentation for details.
  11628. @param path Path to get extended attributes
  11629. @param names XAttr names.
  11630. @return Map describing the XAttrs of the file or directory
  11631. @throws IOException IO failure
  11632. @throws UnsupportedOperationException if the operation is unsupported
  11633. (default outcome).]]>
  11634. </doc>
  11635. </method>
  11636. <method name="listXAttrs" return="java.util.List"
  11637. abstract="false" native="false" synchronized="false"
  11638. static="false" final="false" visibility="public"
  11639. deprecated="not deprecated">
  11640. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11641. <exception name="IOException" type="java.io.IOException"/>
  11642. <doc>
  11643. <![CDATA[Get all of the xattr names for a file or directory.
  11644. Only those xattr names which the logged-in user has permissions to view
  11645. are returned.
  11646. <p>
  11647. Refer to the HDFS extended attributes user documentation for details.
  11648. @param path Path to get extended attributes
  11649. @return List{@literal <String>} of the XAttr names of the file or directory
  11650. @throws IOException IO failure
  11651. @throws UnsupportedOperationException if the operation is unsupported
  11652. (default outcome).]]>
  11653. </doc>
  11654. </method>
  11655. <method name="removeXAttr"
  11656. abstract="false" native="false" synchronized="false"
  11657. static="false" final="false" visibility="public"
  11658. deprecated="not deprecated">
  11659. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11660. <param name="name" type="java.lang.String"/>
  11661. <exception name="IOException" type="java.io.IOException"/>
  11662. <doc>
  11663. <![CDATA[Remove an xattr of a file or directory.
  11664. The name must be prefixed with the namespace followed by ".". For example,
  11665. "user.attr".
  11666. <p>
  11667. Refer to the HDFS extended attributes user documentation for details.
  11668. @param path Path to remove extended attribute
  11669. @param name xattr name
  11670. @throws IOException IO failure
  11671. @throws UnsupportedOperationException if the operation is unsupported
  11672. (default outcome).]]>
  11673. </doc>
  11674. </method>
  11675. <method name="satisfyStoragePolicy"
  11676. abstract="false" native="false" synchronized="false"
  11677. static="false" final="false" visibility="public"
  11678. deprecated="not deprecated">
  11679. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11680. <exception name="IOException" type="java.io.IOException"/>
  11681. <doc>
  11682. <![CDATA[Set the source path to satisfy storage policy.
  11683. @param path The source path referring to either a directory or a file.
  11684. @throws IOException If an I/O error occurred.]]>
  11685. </doc>
  11686. </method>
  11687. <method name="setStoragePolicy"
  11688. abstract="false" native="false" synchronized="false"
  11689. static="false" final="false" visibility="public"
  11690. deprecated="not deprecated">
  11691. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11692. <param name="policyName" type="java.lang.String"/>
  11693. <exception name="IOException" type="java.io.IOException"/>
  11694. <doc>
  11695. <![CDATA[Set the storage policy for a given file or directory.
  11696. @param src file or directory path.
  11697. @param policyName the name of the target storage policy. The list
  11698. of supported Storage policies can be retrieved
  11699. via {@link #getAllStoragePolicies}.
  11700. @throws IOException IO failure
  11701. @throws UnsupportedOperationException if the operation is unsupported
  11702. (default outcome).]]>
  11703. </doc>
  11704. </method>
  11705. <method name="unsetStoragePolicy"
  11706. abstract="false" native="false" synchronized="false"
  11707. static="false" final="false" visibility="public"
  11708. deprecated="not deprecated">
  11709. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11710. <exception name="IOException" type="java.io.IOException"/>
  11711. <doc>
  11712. <![CDATA[Unset the storage policy set for a given file or directory.
  11713. @param src file or directory path.
  11714. @throws IOException IO failure
  11715. @throws UnsupportedOperationException if the operation is unsupported
  11716. (default outcome).]]>
  11717. </doc>
  11718. </method>
  11719. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  11720. abstract="false" native="false" synchronized="false"
  11721. static="false" final="false" visibility="public"
  11722. deprecated="not deprecated">
  11723. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11724. <exception name="IOException" type="java.io.IOException"/>
  11725. <doc>
  11726. <![CDATA[Query the effective storage policy ID for the given file or directory.
  11727. @param src file or directory path.
  11728. @return storage policy for give file.
  11729. @throws IOException IO failure
  11730. @throws UnsupportedOperationException if the operation is unsupported
  11731. (default outcome).]]>
  11732. </doc>
  11733. </method>
  11734. <method name="getAllStoragePolicies" return="java.util.Collection"
  11735. abstract="false" native="false" synchronized="false"
  11736. static="false" final="false" visibility="public"
  11737. deprecated="not deprecated">
  11738. <exception name="IOException" type="java.io.IOException"/>
  11739. <doc>
  11740. <![CDATA[Retrieve all the storage policies supported by this file system.
  11741. @return all storage policies supported by this filesystem.
  11742. @throws IOException IO failure
  11743. @throws UnsupportedOperationException if the operation is unsupported
  11744. (default outcome).]]>
  11745. </doc>
  11746. </method>
  11747. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  11748. abstract="false" native="false" synchronized="false"
  11749. static="false" final="false" visibility="public"
  11750. deprecated="not deprecated">
  11751. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11752. <doc>
  11753. <![CDATA[Get the root directory of Trash for current user when the path specified
  11754. is deleted.
  11755. @param path the trash root of the path to be determined.
  11756. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  11757. </doc>
  11758. </method>
  11759. <method name="getTrashRoots" return="java.util.Collection"
  11760. abstract="false" native="false" synchronized="false"
  11761. static="false" final="false" visibility="public"
  11762. deprecated="not deprecated">
  11763. <param name="allUsers" type="boolean"/>
  11764. <doc>
  11765. <![CDATA[Get all the trash roots for current user or all users.
  11766. @param allUsers return trash roots for all users if true.
  11767. @return all the trash root directories.
  11768. Default FileSystem returns .Trash under users' home directories if
  11769. {@code /user/$USER/.Trash} exists.]]>
  11770. </doc>
  11771. </method>
  11772. <method name="hasPathCapability" return="boolean"
  11773. abstract="false" native="false" synchronized="false"
  11774. static="false" final="false" visibility="public"
  11775. deprecated="not deprecated">
  11776. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11777. <param name="capability" type="java.lang.String"/>
  11778. <exception name="IOException" type="java.io.IOException"/>
  11779. <doc>
  11780. <![CDATA[The base FileSystem implementation generally has no knowledge
  11781. of the capabilities of actual implementations.
  11782. Unless it has a way to explicitly determine the capabilities,
  11783. this method returns false.
  11784. {@inheritDoc}]]>
  11785. </doc>
  11786. </method>
  11787. <method name="getFileSystemClass" return="java.lang.Class"
  11788. abstract="false" native="false" synchronized="false"
  11789. static="true" final="false" visibility="public"
  11790. deprecated="not deprecated">
  11791. <param name="scheme" type="java.lang.String"/>
  11792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11793. <exception name="IOException" type="java.io.IOException"/>
  11794. <doc>
  11795. <![CDATA[Get the FileSystem implementation class of a filesystem.
  11796. This triggers a scan and load of all FileSystem implementations listed as
  11797. services and discovered via the {@link ServiceLoader}
  11798. @param scheme URL scheme of FS
  11799. @param conf configuration: can be null, in which case the check for
  11800. a filesystem binding declaration in the configuration is skipped.
  11801. @return the filesystem
  11802. @throws UnsupportedFileSystemException if there was no known implementation
  11803. for the scheme.
  11804. @throws IOException if the filesystem could not be loaded]]>
  11805. </doc>
  11806. </method>
  11807. <method name="getStatistics" return="java.util.Map"
  11808. abstract="false" native="false" synchronized="true"
  11809. static="true" final="false" visibility="public"
  11810. deprecated="use {@link #getGlobalStorageStatistics()}">
  11811. <doc>
  11812. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  11813. @return a Map having a key as URI scheme and value as Statistics object
  11814. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11815. </doc>
  11816. </method>
  11817. <method name="getAllStatistics" return="java.util.List"
  11818. abstract="false" native="false" synchronized="true"
  11819. static="true" final="false" visibility="public"
  11820. deprecated="use {@link #getGlobalStorageStatistics()}">
  11821. <doc>
  11822. <![CDATA[Return the FileSystem classes that have Statistics.
  11823. @deprecated use {@link #getGlobalStorageStatistics()}
  11824. @return statistics lists.]]>
  11825. </doc>
  11826. </method>
  11827. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  11828. abstract="false" native="false" synchronized="true"
  11829. static="true" final="false" visibility="public"
  11830. deprecated="use {@link #getGlobalStorageStatistics()}">
  11831. <param name="scheme" type="java.lang.String"/>
  11832. <param name="cls" type="java.lang.Class"/>
  11833. <doc>
  11834. <![CDATA[Get the statistics for a particular file system.
  11835. @param scheme scheme.
  11836. @param cls the class to lookup
  11837. @return a statistics object
  11838. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11839. </doc>
  11840. </method>
  11841. <method name="clearStatistics"
  11842. abstract="false" native="false" synchronized="true"
  11843. static="true" final="false" visibility="public"
  11844. deprecated="not deprecated">
  11845. <doc>
  11846. <![CDATA[Reset all statistics for all file systems.]]>
  11847. </doc>
  11848. </method>
  11849. <method name="printStatistics"
  11850. abstract="false" native="false" synchronized="true"
  11851. static="true" final="false" visibility="public"
  11852. deprecated="not deprecated">
  11853. <exception name="IOException" type="java.io.IOException"/>
  11854. <doc>
  11855. <![CDATA[Print all statistics for all file systems to {@code System.out}
  11856. @throws IOException If an I/O error occurred.]]>
  11857. </doc>
  11858. </method>
  11859. <method name="areSymlinksEnabled" return="boolean"
  11860. abstract="false" native="false" synchronized="false"
  11861. static="true" final="false" visibility="public"
  11862. deprecated="not deprecated">
  11863. </method>
  11864. <method name="enableSymlinks"
  11865. abstract="false" native="false" synchronized="false"
  11866. static="true" final="false" visibility="public"
  11867. deprecated="not deprecated">
  11868. </method>
  11869. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  11870. abstract="false" native="false" synchronized="false"
  11871. static="false" final="false" visibility="public"
  11872. deprecated="not deprecated">
  11873. <doc>
  11874. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  11875. per-instance. They are not shared with any other FileSystem object.
  11876. <p>This is a default method which is intended to be overridden by
  11877. subclasses. The default implementation returns an empty storage statistics
  11878. object.</p>
  11879. @return The StorageStatistics for this FileSystem instance.
  11880. Will never be null.]]>
  11881. </doc>
  11882. </method>
  11883. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  11884. abstract="false" native="false" synchronized="false"
  11885. static="true" final="false" visibility="public"
  11886. deprecated="not deprecated">
  11887. <doc>
  11888. <![CDATA[Get the global storage statistics.
  11889. @return global storage statistics.]]>
  11890. </doc>
  11891. </method>
  11892. <method name="createDataOutputStreamBuilder" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11893. abstract="false" native="false" synchronized="false"
  11894. static="true" final="false" visibility="protected"
  11895. deprecated="not deprecated">
  11896. <param name="fileSystem" type="org.apache.hadoop.fs.FileSystem"/>
  11897. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11898. <doc>
  11899. <![CDATA[Create instance of the standard FSDataOutputStreamBuilder for the
  11900. given filesystem and path.
  11901. @param fileSystem owner
  11902. @param path path to create
  11903. @return a builder.]]>
  11904. </doc>
  11905. </method>
  11906. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11907. abstract="false" native="false" synchronized="false"
  11908. static="false" final="false" visibility="public"
  11909. deprecated="not deprecated">
  11910. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11911. <doc>
  11912. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  11913. Files are overwritten by default.
  11914. @param path file path
  11915. @return a FSDataOutputStreamBuilder object to build the file
  11916. HADOOP-14384. Temporarily reduce the visibility of method before the
  11917. builder interface becomes stable.]]>
  11918. </doc>
  11919. </method>
  11920. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11921. abstract="false" native="false" synchronized="false"
  11922. static="false" final="false" visibility="public"
  11923. deprecated="not deprecated">
  11924. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11925. <doc>
  11926. <![CDATA[Create a Builder to append a file.
  11927. @param path file path.
  11928. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  11929. </doc>
  11930. </method>
  11931. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  11932. abstract="false" native="false" synchronized="false"
  11933. static="false" final="false" visibility="public"
  11934. deprecated="not deprecated">
  11935. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11936. <exception name="IOException" type="java.io.IOException"/>
  11937. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11938. <doc>
  11939. <![CDATA[Open a file for reading through a builder API.
  11940. Ultimately calls {@link #open(Path, int)} unless a subclass
  11941. executes the open command differently.
  11942. The semantics of this call are therefore the same as that of
  11943. {@link #open(Path, int)} with one special point: it is in
  11944. {@code FSDataInputStreamBuilder.build()} in which the open operation
  11945. takes place -it is there where all preconditions to the operation
  11946. are checked.
  11947. @param path file path
  11948. @return a FSDataInputStreamBuilder object to build the input stream
  11949. @throws IOException if some early checks cause IO failures.
  11950. @throws UnsupportedOperationException if support is checked early.]]>
  11951. </doc>
  11952. </method>
  11953. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  11954. abstract="false" native="false" synchronized="false"
  11955. static="false" final="false" visibility="public"
  11956. deprecated="not deprecated">
  11957. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  11958. <exception name="IOException" type="java.io.IOException"/>
  11959. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11960. <doc>
  11961. <![CDATA[Open a file for reading through a builder API.
  11962. Ultimately calls {@link #open(PathHandle, int)} unless a subclass
  11963. executes the open command differently.
  11964. If PathHandles are unsupported, this may fail in the
  11965. {@code FSDataInputStreamBuilder.build()} command,
  11966. rather than in this {@code openFile()} operation.
  11967. @param pathHandle path handle.
  11968. @return a FSDataInputStreamBuilder object to build the input stream
  11969. @throws IOException if some early checks cause IO failures.
  11970. @throws UnsupportedOperationException if support is checked early.]]>
  11971. </doc>
  11972. </method>
  11973. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  11974. abstract="false" native="false" synchronized="false"
  11975. static="false" final="false" visibility="protected"
  11976. deprecated="not deprecated">
  11977. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11978. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  11979. <exception name="IOException" type="java.io.IOException"/>
  11980. <doc>
  11981. <![CDATA[Execute the actual open file operation.
  11982. This is invoked from {@code FSDataInputStreamBuilder.build()}
  11983. and from {@link DelegateToFileSystem} and is where
  11984. the action of opening the file should begin.
  11985. The base implementation performs a blocking
  11986. call to {@link #open(Path, int)} in this call;
  11987. the actual outcome is in the returned {@code CompletableFuture}.
  11988. This avoids having to create some thread pool, while still
  11989. setting up the expectation that the {@code get()} call
  11990. is needed to evaluate the result.
  11991. @param path path to the file
  11992. @param parameters open file parameters from the builder.
  11993. @return a future which will evaluate to the opened file.
  11994. @throws IOException failure to resolve the link.
  11995. @throws IllegalArgumentException unknown mandatory key]]>
  11996. </doc>
  11997. </method>
  11998. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  11999. abstract="false" native="false" synchronized="false"
  12000. static="false" final="false" visibility="protected"
  12001. deprecated="not deprecated">
  12002. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  12003. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  12004. <exception name="IOException" type="java.io.IOException"/>
  12005. <doc>
  12006. <![CDATA[Execute the actual open file operation.
  12007. The base implementation performs a blocking
  12008. call to {@link #open(Path, int)} in this call;
  12009. the actual outcome is in the returned {@code CompletableFuture}.
  12010. This avoids having to create some thread pool, while still
  12011. setting up the expectation that the {@code get()} call
  12012. is needed to evaluate the result.
  12013. @param pathHandle path to the file
  12014. @param parameters open file parameters from the builder.
  12015. @return a future which will evaluate to the opened file.
  12016. @throws IOException failure to resolve the link.
  12017. @throws IllegalArgumentException unknown mandatory key
  12018. @throws UnsupportedOperationException PathHandles are not supported.
  12019. This may be deferred until the future is evaluated.]]>
  12020. </doc>
  12021. </method>
  12022. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  12023. abstract="false" native="false" synchronized="false"
  12024. static="false" final="false" visibility="public"
  12025. deprecated="not deprecated">
  12026. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  12027. <exception name="IOException" type="java.io.IOException"/>
  12028. <doc>
  12029. <![CDATA[Create a multipart uploader.
  12030. @param basePath file path under which all files are uploaded
  12031. @return a MultipartUploaderBuilder object to build the uploader
  12032. @throws IOException if some early checks cause IO failures.
  12033. @throws UnsupportedOperationException if support is checked early.]]>
  12034. </doc>
  12035. </method>
  12036. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  12037. transient="false" volatile="false"
  12038. static="true" final="true" visibility="public"
  12039. deprecated="not deprecated">
  12040. </field>
  12041. <field name="DEFAULT_FS" type="java.lang.String"
  12042. transient="false" volatile="false"
  12043. static="true" final="true" visibility="public"
  12044. deprecated="not deprecated">
  12045. </field>
  12046. <field name="LOG" type="org.apache.commons.logging.Log"
  12047. transient="false" volatile="false"
  12048. static="true" final="true" visibility="public"
  12049. deprecated="not deprecated">
  12050. <doc>
  12051. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  12052. so must be considered something to only be changed with care.]]>
  12053. </doc>
  12054. </field>
  12055. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  12056. transient="false" volatile="false"
  12057. static="true" final="true" visibility="public"
  12058. deprecated="not deprecated">
  12059. <doc>
  12060. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  12061. </doc>
  12062. </field>
  12063. <field name="TRASH_PREFIX" type="java.lang.String"
  12064. transient="false" volatile="false"
  12065. static="true" final="true" visibility="public"
  12066. deprecated="not deprecated">
  12067. <doc>
  12068. <![CDATA[Prefix for trash directory: {@value}.]]>
  12069. </doc>
  12070. </field>
  12071. <field name="USER_HOME_PREFIX" type="java.lang.String"
  12072. transient="false" volatile="false"
  12073. static="true" final="true" visibility="public"
  12074. deprecated="not deprecated">
  12075. </field>
  12076. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  12077. transient="false" volatile="false"
  12078. static="false" final="false" visibility="protected"
  12079. deprecated="not deprecated">
  12080. <doc>
  12081. <![CDATA[The statistics for this file system.]]>
  12082. </doc>
  12083. </field>
  12084. <doc>
  12085. <![CDATA[An abstract base class for a fairly generic filesystem. It
  12086. may be implemented as a distributed filesystem, or as a "local"
  12087. one that reflects the locally-connected disk. The local version
  12088. exists for small Hadoop instances and for testing.
  12089. <p>
  12090. All user code that may potentially use the Hadoop Distributed
  12091. File System should be written to use a FileSystem object or its
  12092. successor, {@link FileContext}.
  12093. </p>
  12094. <p>
  12095. The local implementation is {@link LocalFileSystem} and distributed
  12096. implementation is DistributedFileSystem. There are other implementations
  12097. for object stores and (outside the Apache Hadoop codebase),
  12098. third party filesystems.
  12099. </p>
  12100. Notes
  12101. <ol>
  12102. <li>The behaviour of the filesystem is
  12103. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  12104. specified in the Hadoop documentation. </a>
  12105. However, the normative specification of the behavior of this class is
  12106. actually HDFS: if HDFS does not behave the way these Javadocs or
  12107. the specification in the Hadoop documentations define, assume that
  12108. the documentation is incorrect.
  12109. </li>
  12110. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  12111. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  12112. <li>The term {@code filesystem} refers to the distributed/local filesystem
  12113. itself, rather than the class used to interact with it.</li>
  12114. <li>The term "file" refers to a file in the remote filesystem,
  12115. rather than instances of {@code java.io.File}.</li>
  12116. </ol>
  12117. This is a carefully evolving class.
  12118. New methods may be marked as Unstable or Evolving for their initial release,
  12119. as a warning that they are new and may change based on the
  12120. experience of use in applications.
  12121. <p>
  12122. <b>Important note for developers</b>
  12123. </p>
  12124. If you are making changes here to the public API or protected methods,
  12125. you must review the following subclasses and make sure that
  12126. they are filtering/passing through new methods as appropriate.
  12127. {@link FilterFileSystem}: methods are passed through. If not,
  12128. then {@code TestFilterFileSystem.MustNotImplement} must be
  12129. updated with the unsupported interface.
  12130. Furthermore, if the new API's support is probed for via
  12131. {@link #hasPathCapability(Path, String)} then
  12132. {@link FilterFileSystem#hasPathCapability(Path, String)}
  12133. must return false, always.
  12134. <p>
  12135. {@link ChecksumFileSystem}: checksums are created and
  12136. verified.
  12137. </p>
  12138. {@code TestHarFileSystem} will need its {@code MustNotImplement}
  12139. interface updated.
  12140. <p>
  12141. There are some external places your changes will break things.
  12142. Do co-ordinate changes here.
  12143. </p>
  12144. HBase: HBoss
  12145. <p>
  12146. Hive: HiveShim23
  12147. </p>
  12148. {@code shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java}]]>
  12149. </doc>
  12150. </class>
  12151. <!-- end class org.apache.hadoop.fs.FileSystem -->
  12152. <!-- start class org.apache.hadoop.fs.FileUtil -->
  12153. <class name="FileUtil" extends="java.lang.Object"
  12154. abstract="false"
  12155. static="false" final="false" visibility="public"
  12156. deprecated="not deprecated">
  12157. <constructor name="FileUtil"
  12158. static="false" final="false" visibility="public"
  12159. deprecated="not deprecated">
  12160. </constructor>
  12161. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  12162. abstract="false" native="false" synchronized="false"
  12163. static="true" final="false" visibility="public"
  12164. deprecated="not deprecated">
  12165. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  12166. <doc>
  12167. <![CDATA[convert an array of FileStatus to an array of Path
  12168. @param stats
  12169. an array of FileStatus objects
  12170. @return an array of paths corresponding to the input]]>
  12171. </doc>
  12172. </method>
  12173. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  12174. abstract="false" native="false" synchronized="false"
  12175. static="true" final="false" visibility="public"
  12176. deprecated="not deprecated">
  12177. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  12178. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12179. <doc>
  12180. <![CDATA[convert an array of FileStatus to an array of Path.
  12181. If stats if null, return path
  12182. @param stats
  12183. an array of FileStatus objects
  12184. @param path
  12185. default path to return in stats is null
  12186. @return an array of paths corresponding to the input]]>
  12187. </doc>
  12188. </method>
  12189. <method name="fullyDeleteOnExit"
  12190. abstract="false" native="false" synchronized="false"
  12191. static="true" final="false" visibility="public"
  12192. deprecated="not deprecated">
  12193. <param name="file" type="java.io.File"/>
  12194. <doc>
  12195. <![CDATA[Register all files recursively to be deleted on exit.
  12196. @param file File/directory to be deleted]]>
  12197. </doc>
  12198. </method>
  12199. <method name="fullyDelete" return="boolean"
  12200. abstract="false" native="false" synchronized="false"
  12201. static="true" final="false" visibility="public"
  12202. deprecated="not deprecated">
  12203. <param name="dir" type="java.io.File"/>
  12204. <doc>
  12205. <![CDATA[Delete a directory and all its contents. If
  12206. we return false, the directory may be partially-deleted.
  12207. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  12208. to by the symlink is not deleted.
  12209. (2) If dir is symlink to a directory, symlink is deleted. The directory
  12210. pointed to by symlink is not deleted.
  12211. (3) If dir is a normal file, it is deleted.
  12212. (4) If dir is a normal directory, then dir and all its contents recursively
  12213. are deleted.
  12214. @param dir dir.
  12215. @return fully delete status.]]>
  12216. </doc>
  12217. </method>
  12218. <method name="fullyDelete" return="boolean"
  12219. abstract="false" native="false" synchronized="false"
  12220. static="true" final="false" visibility="public"
  12221. deprecated="not deprecated">
  12222. <param name="dir" type="java.io.File"/>
  12223. <param name="tryGrantPermissions" type="boolean"/>
  12224. <doc>
  12225. <![CDATA[Delete a directory and all its contents. If
  12226. we return false, the directory may be partially-deleted.
  12227. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  12228. to by the symlink is not deleted.
  12229. (2) If dir is symlink to a directory, symlink is deleted. The directory
  12230. pointed to by symlink is not deleted.
  12231. (3) If dir is a normal file, it is deleted.
  12232. (4) If dir is a normal directory, then dir and all its contents recursively
  12233. are deleted.
  12234. @param dir the file or directory to be deleted
  12235. @param tryGrantPermissions true if permissions should be modified to delete a file.
  12236. @return true on success false on failure.]]>
  12237. </doc>
  12238. </method>
  12239. <method name="readLink" return="java.lang.String"
  12240. abstract="false" native="false" synchronized="false"
  12241. static="true" final="false" visibility="public"
  12242. deprecated="not deprecated">
  12243. <param name="f" type="java.io.File"/>
  12244. <doc>
  12245. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  12246. the given path does not refer to a symlink or there is an error
  12247. accessing the symlink.
  12248. @param f File representing the symbolic link.
  12249. @return The target of the symbolic link, empty string on error or if not
  12250. a symlink.]]>
  12251. </doc>
  12252. </method>
  12253. <method name="fullyDeleteContents" return="boolean"
  12254. abstract="false" native="false" synchronized="false"
  12255. static="true" final="false" visibility="public"
  12256. deprecated="not deprecated">
  12257. <param name="dir" type="java.io.File"/>
  12258. <doc>
  12259. <![CDATA[Delete the contents of a directory, not the directory itself. If
  12260. we return false, the directory may be partially-deleted.
  12261. If dir is a symlink to a directory, all the contents of the actual
  12262. directory pointed to by dir will be deleted.
  12263. @param dir dir.
  12264. @return fullyDeleteContents Status.]]>
  12265. </doc>
  12266. </method>
  12267. <method name="fullyDeleteContents" return="boolean"
  12268. abstract="false" native="false" synchronized="false"
  12269. static="true" final="false" visibility="public"
  12270. deprecated="not deprecated">
  12271. <param name="dir" type="java.io.File"/>
  12272. <param name="tryGrantPermissions" type="boolean"/>
  12273. <doc>
  12274. <![CDATA[Delete the contents of a directory, not the directory itself. If
  12275. we return false, the directory may be partially-deleted.
  12276. If dir is a symlink to a directory, all the contents of the actual
  12277. directory pointed to by dir will be deleted.
  12278. @param dir dir.
  12279. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  12280. and all the underlying directories before trying to delete their contents.
  12281. @return fully delete contents status.]]>
  12282. </doc>
  12283. </method>
  12284. <method name="fullyDelete"
  12285. abstract="false" native="false" synchronized="false"
  12286. static="true" final="false" visibility="public"
  12287. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  12288. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12289. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  12290. <exception name="IOException" type="java.io.IOException"/>
  12291. <doc>
  12292. <![CDATA[Recursively delete a directory.
  12293. @param fs {@link FileSystem} on which the path is present
  12294. @param dir directory to recursively delete
  12295. @throws IOException raised on errors performing I/O.
  12296. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  12297. </doc>
  12298. </method>
  12299. <method name="copy" return="boolean"
  12300. abstract="false" native="false" synchronized="false"
  12301. static="true" final="false" visibility="public"
  12302. deprecated="not deprecated">
  12303. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12304. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12305. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12306. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12307. <param name="deleteSource" type="boolean"/>
  12308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12309. <exception name="IOException" type="java.io.IOException"/>
  12310. <doc>
  12311. <![CDATA[Copy files between FileSystems.
  12312. @param srcFS src fs.
  12313. @param src src.
  12314. @param dstFS dst fs.
  12315. @param dst dst.
  12316. @param deleteSource delete source.
  12317. @param conf configuration.
  12318. @return if copy success true, not false.
  12319. @throws IOException raised on errors performing I/O.]]>
  12320. </doc>
  12321. </method>
  12322. <method name="copy" return="boolean"
  12323. abstract="false" native="false" synchronized="false"
  12324. static="true" final="false" visibility="public"
  12325. deprecated="not deprecated">
  12326. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12327. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  12328. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12329. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12330. <param name="deleteSource" type="boolean"/>
  12331. <param name="overwrite" type="boolean"/>
  12332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12333. <exception name="IOException" type="java.io.IOException"/>
  12334. </method>
  12335. <method name="copy" return="boolean"
  12336. abstract="false" native="false" synchronized="false"
  12337. static="true" final="false" visibility="public"
  12338. deprecated="not deprecated">
  12339. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12340. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12341. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12342. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12343. <param name="deleteSource" type="boolean"/>
  12344. <param name="overwrite" type="boolean"/>
  12345. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12346. <exception name="IOException" type="java.io.IOException"/>
  12347. <doc>
  12348. <![CDATA[Copy files between FileSystems.
  12349. @param srcFS srcFs.
  12350. @param src src.
  12351. @param dstFS dstFs.
  12352. @param dst dst.
  12353. @param deleteSource delete source.
  12354. @param overwrite overwrite.
  12355. @param conf configuration.
  12356. @throws IOException raised on errors performing I/O.
  12357. @return true if the operation succeeded.]]>
  12358. </doc>
  12359. </method>
  12360. <method name="copy" return="boolean"
  12361. abstract="false" native="false" synchronized="false"
  12362. static="true" final="false" visibility="public"
  12363. deprecated="not deprecated">
  12364. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12365. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  12366. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12367. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12368. <param name="deleteSource" type="boolean"/>
  12369. <param name="overwrite" type="boolean"/>
  12370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12371. <exception name="IOException" type="java.io.IOException"/>
  12372. <doc>
  12373. <![CDATA[Copy a file/directory tree within/between filesystems.
  12374. <p>
  12375. returns true if the operation succeeded. When deleteSource is true,
  12376. this means "after the copy, delete(source) returned true"
  12377. If the destination is a directory, and mkdirs (dest) fails,
  12378. the operation will return false rather than raise any exception.
  12379. </p>
  12380. The overwrite flag is about overwriting files; it has no effect about
  12381. handing an attempt to copy a file atop a directory (expect an IOException),
  12382. or a directory over a path which contains a file (mkdir will fail, so
  12383. "false").
  12384. <p>
  12385. The operation is recursive, and the deleteSource operation takes place
  12386. as each subdirectory is copied. Therefore, if an operation fails partway
  12387. through, the source tree may be partially deleted.
  12388. </p>
  12389. @param srcFS source filesystem
  12390. @param srcStatus status of source
  12391. @param dstFS destination filesystem
  12392. @param dst path of source
  12393. @param deleteSource delete the source?
  12394. @param overwrite overwrite files at destination?
  12395. @param conf configuration to use when opening files
  12396. @return true if the operation succeeded.
  12397. @throws IOException failure]]>
  12398. </doc>
  12399. </method>
  12400. <method name="copy" return="boolean"
  12401. abstract="false" native="false" synchronized="false"
  12402. static="true" final="false" visibility="public"
  12403. deprecated="not deprecated">
  12404. <param name="src" type="java.io.File"/>
  12405. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12406. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12407. <param name="deleteSource" type="boolean"/>
  12408. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12409. <exception name="IOException" type="java.io.IOException"/>
  12410. <doc>
  12411. <![CDATA[Copy local files to a FileSystem.
  12412. @param src src.
  12413. @param dstFS dstFs.
  12414. @param dst dst.
  12415. @param deleteSource delete source.
  12416. @param conf configuration.
  12417. @throws IOException raised on errors performing I/O.
  12418. @return true if the operation succeeded.]]>
  12419. </doc>
  12420. </method>
  12421. <method name="copy" return="boolean"
  12422. abstract="false" native="false" synchronized="false"
  12423. static="true" final="false" visibility="public"
  12424. deprecated="not deprecated">
  12425. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12426. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12427. <param name="dst" type="java.io.File"/>
  12428. <param name="deleteSource" type="boolean"/>
  12429. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12430. <exception name="IOException" type="java.io.IOException"/>
  12431. <doc>
  12432. <![CDATA[Copy FileSystem files to local files.
  12433. @param srcFS srcFs.
  12434. @param src src.
  12435. @param dst dst.
  12436. @param deleteSource delete source.
  12437. @param conf configuration.
  12438. @throws IOException raised on errors performing I/O.
  12439. @return true if the operation succeeded.]]>
  12440. </doc>
  12441. </method>
  12442. <method name="makeShellPath" return="java.lang.String"
  12443. abstract="false" native="false" synchronized="false"
  12444. static="true" final="false" visibility="public"
  12445. deprecated="not deprecated">
  12446. <param name="filename" type="java.lang.String"/>
  12447. <exception name="IOException" type="java.io.IOException"/>
  12448. <doc>
  12449. <![CDATA[Convert a os-native filename to a path that works for the shell.
  12450. @param filename The filename to convert
  12451. @return The unix pathname
  12452. @throws IOException on windows, there can be problems with the subprocess]]>
  12453. </doc>
  12454. </method>
  12455. <method name="makeShellPath" return="java.lang.String"
  12456. abstract="false" native="false" synchronized="false"
  12457. static="true" final="false" visibility="public"
  12458. deprecated="not deprecated">
  12459. <param name="file" type="java.io.File"/>
  12460. <exception name="IOException" type="java.io.IOException"/>
  12461. <doc>
  12462. <![CDATA[Convert a os-native filename to a path that works for the shell.
  12463. @param file The filename to convert
  12464. @return The unix pathname
  12465. @throws IOException on windows, there can be problems with the subprocess]]>
  12466. </doc>
  12467. </method>
  12468. <method name="makeSecureShellPath" return="java.lang.String"
  12469. abstract="false" native="false" synchronized="false"
  12470. static="true" final="false" visibility="public"
  12471. deprecated="not deprecated">
  12472. <param name="file" type="java.io.File"/>
  12473. <exception name="IOException" type="java.io.IOException"/>
  12474. <doc>
  12475. <![CDATA[Convert a os-native filename to a path that works for the shell
  12476. and avoids script injection attacks.
  12477. @param file The filename to convert
  12478. @return The unix pathname
  12479. @throws IOException on windows, there can be problems with the subprocess]]>
  12480. </doc>
  12481. </method>
  12482. <method name="makeShellPath" return="java.lang.String"
  12483. abstract="false" native="false" synchronized="false"
  12484. static="true" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. <param name="file" type="java.io.File"/>
  12487. <param name="makeCanonicalPath" type="boolean"/>
  12488. <exception name="IOException" type="java.io.IOException"/>
  12489. <doc>
  12490. <![CDATA[Convert a os-native filename to a path that works for the shell.
  12491. @param file The filename to convert
  12492. @param makeCanonicalPath
  12493. Whether to make canonical path for the file passed
  12494. @return The unix pathname
  12495. @throws IOException on windows, there can be problems with the subprocess]]>
  12496. </doc>
  12497. </method>
  12498. <method name="getDU" return="long"
  12499. abstract="false" native="false" synchronized="false"
  12500. static="true" final="false" visibility="public"
  12501. deprecated="not deprecated">
  12502. <param name="dir" type="java.io.File"/>
  12503. <doc>
  12504. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  12505. implementation.
  12506. @param dir
  12507. The input dir to get the disk space of this local dir
  12508. @return The total disk space of the input local directory]]>
  12509. </doc>
  12510. </method>
  12511. <method name="unZip"
  12512. abstract="false" native="false" synchronized="false"
  12513. static="true" final="false" visibility="public"
  12514. deprecated="not deprecated">
  12515. <param name="inputStream" type="java.io.InputStream"/>
  12516. <param name="toDir" type="java.io.File"/>
  12517. <exception name="IOException" type="java.io.IOException"/>
  12518. <doc>
  12519. <![CDATA[Given a stream input it will unzip the it in the unzip directory.
  12520. passed as the second parameter
  12521. @param inputStream The zip file as input
  12522. @param toDir The unzip directory where to unzip the zip file.
  12523. @throws IOException an exception occurred]]>
  12524. </doc>
  12525. </method>
  12526. <method name="unZip"
  12527. abstract="false" native="false" synchronized="false"
  12528. static="true" final="false" visibility="public"
  12529. deprecated="not deprecated">
  12530. <param name="inFile" type="java.io.File"/>
  12531. <param name="unzipDir" type="java.io.File"/>
  12532. <exception name="IOException" type="java.io.IOException"/>
  12533. <doc>
  12534. <![CDATA[Given a File input it will unzip it in the unzip directory.
  12535. passed as the second parameter
  12536. @param inFile The zip file as input
  12537. @param unzipDir The unzip directory where to unzip the zip file.
  12538. @throws IOException An I/O exception has occurred]]>
  12539. </doc>
  12540. </method>
  12541. <method name="unTar"
  12542. abstract="false" native="false" synchronized="false"
  12543. static="true" final="false" visibility="public"
  12544. deprecated="not deprecated">
  12545. <param name="inputStream" type="java.io.InputStream"/>
  12546. <param name="untarDir" type="java.io.File"/>
  12547. <param name="gzipped" type="boolean"/>
  12548. <exception name="IOException" type="java.io.IOException"/>
  12549. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  12550. <exception name="ExecutionException" type="java.util.concurrent.ExecutionException"/>
  12551. <doc>
  12552. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  12553. passed as the second parameter
  12554. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  12555. @param inputStream The tar file as input.
  12556. @param untarDir The untar directory where to untar the tar file.
  12557. @param gzipped The input stream is gzipped
  12558. TODO Use magic number and PusbackInputStream to identify
  12559. @throws IOException an exception occurred
  12560. @throws InterruptedException command interrupted
  12561. @throws ExecutionException task submit failed]]>
  12562. </doc>
  12563. </method>
  12564. <method name="unTar"
  12565. abstract="false" native="false" synchronized="false"
  12566. static="true" final="false" visibility="public"
  12567. deprecated="not deprecated">
  12568. <param name="inFile" type="java.io.File"/>
  12569. <param name="untarDir" type="java.io.File"/>
  12570. <exception name="IOException" type="java.io.IOException"/>
  12571. <doc>
  12572. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  12573. passed as the second parameter
  12574. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  12575. @param inFile The tar file as input.
  12576. @param untarDir The untar directory where to untar the tar file.
  12577. @throws IOException an exception occurred.]]>
  12578. </doc>
  12579. </method>
  12580. <method name="symLink" return="int"
  12581. abstract="false" native="false" synchronized="false"
  12582. static="true" final="false" visibility="public"
  12583. deprecated="not deprecated">
  12584. <param name="target" type="java.lang.String"/>
  12585. <param name="linkname" type="java.lang.String"/>
  12586. <exception name="IOException" type="java.io.IOException"/>
  12587. <doc>
  12588. <![CDATA[Create a soft link between a src and destination
  12589. only on a local disk. HDFS does not support this.
  12590. On Windows, when symlink creation fails due to security
  12591. setting, we will log a warning. The return code in this
  12592. case is 2.
  12593. @param target the target for symlink
  12594. @param linkname the symlink
  12595. @return 0 on success
  12596. @throws IOException raised on errors performing I/O.]]>
  12597. </doc>
  12598. </method>
  12599. <method name="chmod" return="int"
  12600. abstract="false" native="false" synchronized="false"
  12601. static="true" final="false" visibility="public"
  12602. deprecated="not deprecated">
  12603. <param name="filename" type="java.lang.String"/>
  12604. <param name="perm" type="java.lang.String"/>
  12605. <exception name="IOException" type="java.io.IOException"/>
  12606. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  12607. <doc>
  12608. <![CDATA[Change the permissions on a filename.
  12609. @param filename the name of the file to change
  12610. @param perm the permission string
  12611. @return the exit code from the command
  12612. @throws IOException raised on errors performing I/O.
  12613. @throws InterruptedException command interrupted.]]>
  12614. </doc>
  12615. </method>
  12616. <method name="chmod" return="int"
  12617. abstract="false" native="false" synchronized="false"
  12618. static="true" final="false" visibility="public"
  12619. deprecated="not deprecated">
  12620. <param name="filename" type="java.lang.String"/>
  12621. <param name="perm" type="java.lang.String"/>
  12622. <param name="recursive" type="boolean"/>
  12623. <exception name="IOException" type="java.io.IOException"/>
  12624. <doc>
  12625. <![CDATA[Change the permissions on a file / directory, recursively, if
  12626. needed.
  12627. @param filename name of the file whose permissions are to change
  12628. @param perm permission string
  12629. @param recursive true, if permissions should be changed recursively
  12630. @return the exit code from the command.
  12631. @throws IOException raised on errors performing I/O.]]>
  12632. </doc>
  12633. </method>
  12634. <method name="setOwner"
  12635. abstract="false" native="false" synchronized="false"
  12636. static="true" final="false" visibility="public"
  12637. deprecated="not deprecated">
  12638. <param name="file" type="java.io.File"/>
  12639. <param name="username" type="java.lang.String"/>
  12640. <param name="groupname" type="java.lang.String"/>
  12641. <exception name="IOException" type="java.io.IOException"/>
  12642. <doc>
  12643. <![CDATA[Set the ownership on a file / directory. User name and group name
  12644. cannot both be null.
  12645. @param file the file to change
  12646. @param username the new user owner name
  12647. @param groupname the new group owner name
  12648. @throws IOException raised on errors performing I/O.]]>
  12649. </doc>
  12650. </method>
  12651. <method name="setReadable" return="boolean"
  12652. abstract="false" native="false" synchronized="false"
  12653. static="true" final="false" visibility="public"
  12654. deprecated="not deprecated">
  12655. <param name="f" type="java.io.File"/>
  12656. <param name="readable" type="boolean"/>
  12657. <doc>
  12658. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  12659. File#setReadable does not work as expected on Windows.
  12660. @param f input file
  12661. @param readable readable.
  12662. @return true on success, false otherwise]]>
  12663. </doc>
  12664. </method>
  12665. <method name="setWritable" return="boolean"
  12666. abstract="false" native="false" synchronized="false"
  12667. static="true" final="false" visibility="public"
  12668. deprecated="not deprecated">
  12669. <param name="f" type="java.io.File"/>
  12670. <param name="writable" type="boolean"/>
  12671. <doc>
  12672. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  12673. File#setWritable does not work as expected on Windows.
  12674. @param f input file
  12675. @param writable writable.
  12676. @return true on success, false otherwise]]>
  12677. </doc>
  12678. </method>
  12679. <method name="setExecutable" return="boolean"
  12680. abstract="false" native="false" synchronized="false"
  12681. static="true" final="false" visibility="public"
  12682. deprecated="not deprecated">
  12683. <param name="f" type="java.io.File"/>
  12684. <param name="executable" type="boolean"/>
  12685. <doc>
  12686. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  12687. File#setExecutable does not work as expected on Windows.
  12688. Note: revoking execute permission on folders does not have the same
  12689. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  12690. a file within that folder will still succeed on Windows.
  12691. @param f input file
  12692. @param executable executable.
  12693. @return true on success, false otherwise]]>
  12694. </doc>
  12695. </method>
  12696. <method name="canRead" return="boolean"
  12697. abstract="false" native="false" synchronized="false"
  12698. static="true" final="false" visibility="public"
  12699. deprecated="not deprecated">
  12700. <param name="f" type="java.io.File"/>
  12701. <doc>
  12702. <![CDATA[Platform independent implementation for {@link File#canRead()}
  12703. @param f input file
  12704. @return On Unix, same as {@link File#canRead()}
  12705. On Windows, true if process has read access on the path]]>
  12706. </doc>
  12707. </method>
  12708. <method name="canWrite" return="boolean"
  12709. abstract="false" native="false" synchronized="false"
  12710. static="true" final="false" visibility="public"
  12711. deprecated="not deprecated">
  12712. <param name="f" type="java.io.File"/>
  12713. <doc>
  12714. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  12715. @param f input file
  12716. @return On Unix, same as {@link File#canWrite()}
  12717. On Windows, true if process has write access on the path]]>
  12718. </doc>
  12719. </method>
  12720. <method name="canExecute" return="boolean"
  12721. abstract="false" native="false" synchronized="false"
  12722. static="true" final="false" visibility="public"
  12723. deprecated="not deprecated">
  12724. <param name="f" type="java.io.File"/>
  12725. <doc>
  12726. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  12727. @param f input file
  12728. @return On Unix, same as {@link File#canExecute()}
  12729. On Windows, true if process has execute access on the path]]>
  12730. </doc>
  12731. </method>
  12732. <method name="setPermission"
  12733. abstract="false" native="false" synchronized="false"
  12734. static="true" final="false" visibility="public"
  12735. deprecated="not deprecated">
  12736. <param name="f" type="java.io.File"/>
  12737. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12738. <exception name="IOException" type="java.io.IOException"/>
  12739. <doc>
  12740. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  12741. of forking if group == other.
  12742. @param f the file to change
  12743. @param permission the new permissions
  12744. @throws IOException raised on errors performing I/O.]]>
  12745. </doc>
  12746. </method>
  12747. <method name="createLocalTempFile" return="java.io.File"
  12748. abstract="false" native="false" synchronized="false"
  12749. static="true" final="true" visibility="public"
  12750. deprecated="not deprecated">
  12751. <param name="basefile" type="java.io.File"/>
  12752. <param name="prefix" type="java.lang.String"/>
  12753. <param name="isDeleteOnExit" type="boolean"/>
  12754. <exception name="IOException" type="java.io.IOException"/>
  12755. <doc>
  12756. <![CDATA[Create a tmp file for a base file.
  12757. @param basefile the base file of the tmp
  12758. @param prefix file name prefix of tmp
  12759. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  12760. @return a newly created tmp file
  12761. @exception IOException If a tmp file cannot created
  12762. @see java.io.File#createTempFile(String, String, File)
  12763. @see java.io.File#deleteOnExit()]]>
  12764. </doc>
  12765. </method>
  12766. <method name="replaceFile"
  12767. abstract="false" native="false" synchronized="false"
  12768. static="true" final="false" visibility="public"
  12769. deprecated="not deprecated">
  12770. <param name="src" type="java.io.File"/>
  12771. <param name="target" type="java.io.File"/>
  12772. <exception name="IOException" type="java.io.IOException"/>
  12773. <doc>
  12774. <![CDATA[Move the src file to the name specified by target.
  12775. @param src the source file
  12776. @param target the target file
  12777. @exception IOException If this operation fails]]>
  12778. </doc>
  12779. </method>
  12780. <method name="listFiles" return="java.io.File[]"
  12781. abstract="false" native="false" synchronized="false"
  12782. static="true" final="false" visibility="public"
  12783. deprecated="not deprecated">
  12784. <param name="dir" type="java.io.File"/>
  12785. <exception name="IOException" type="java.io.IOException"/>
  12786. <doc>
  12787. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  12788. when a dir is not a directory or for any I/O error. Instead of having
  12789. null check everywhere File#listFiles() is used, we will add utility API
  12790. to get around this problem. For the majority of cases where we prefer
  12791. an IOException to be thrown.
  12792. @param dir directory for which listing should be performed
  12793. @return list of files or empty list
  12794. @exception IOException for invalid directory or for a bad disk.]]>
  12795. </doc>
  12796. </method>
  12797. <method name="list" return="java.lang.String[]"
  12798. abstract="false" native="false" synchronized="false"
  12799. static="true" final="false" visibility="public"
  12800. deprecated="not deprecated">
  12801. <param name="dir" type="java.io.File"/>
  12802. <exception name="IOException" type="java.io.IOException"/>
  12803. <doc>
  12804. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  12805. when a dir is not a directory or for any I/O error. Instead of having
  12806. null check everywhere File#list() is used, we will add utility API
  12807. to get around this problem. For the majority of cases where we prefer
  12808. an IOException to be thrown.
  12809. @param dir directory for which listing should be performed
  12810. @return list of file names or empty string list
  12811. @exception AccessDeniedException for unreadable directory
  12812. @exception IOException for invalid directory or for bad disk]]>
  12813. </doc>
  12814. </method>
  12815. <method name="createJarWithClassPath" return="java.lang.String[]"
  12816. abstract="false" native="false" synchronized="false"
  12817. static="true" final="false" visibility="public"
  12818. deprecated="not deprecated">
  12819. <param name="inputClassPath" type="java.lang.String"/>
  12820. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  12821. <param name="callerEnv" type="java.util.Map"/>
  12822. <exception name="IOException" type="java.io.IOException"/>
  12823. </method>
  12824. <method name="createJarWithClassPath" return="java.lang.String[]"
  12825. abstract="false" native="false" synchronized="false"
  12826. static="true" final="false" visibility="public"
  12827. deprecated="not deprecated">
  12828. <param name="inputClassPath" type="java.lang.String"/>
  12829. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  12830. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  12831. <param name="callerEnv" type="java.util.Map"/>
  12832. <exception name="IOException" type="java.io.IOException"/>
  12833. <doc>
  12834. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  12835. that references all specified entries.
  12836. Some platforms may have an upper limit on command line length. For example,
  12837. the maximum command line length on Windows is 8191 characters, but the
  12838. length of the classpath may exceed this. To work around this limitation,
  12839. use this method to create a small intermediate jar with a manifest that
  12840. contains the full classpath. It returns the absolute path to the new jar,
  12841. which the caller may set as the classpath for a new process.
  12842. Environment variable evaluation is not supported within a jar manifest, so
  12843. this method expands environment variables before inserting classpath entries
  12844. to the manifest. The method parses environment variables according to
  12845. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  12846. environment variables are case-insensitive. For example, %VAR% and %var%
  12847. evaluate to the same value.
  12848. Specifying the classpath in a jar manifest does not support wildcards, so
  12849. this method expands wildcards internally. Any classpath entry that ends
  12850. with * is translated to all files at that path with extension .jar or .JAR.
  12851. @param inputClassPath String input classpath to bundle into the jar manifest
  12852. @param pwd Path to working directory to save jar
  12853. @param targetDir path to where the jar execution will have its working dir
  12854. @param callerEnv Map {@literal <}String, String{@literal >} caller's
  12855. environment variables to use for expansion
  12856. @return String[] with absolute path to new jar in position 0 and
  12857. unexpanded wild card entry path in position 1
  12858. @throws IOException if there is an I/O error while writing the jar file]]>
  12859. </doc>
  12860. </method>
  12861. <method name="getJarsInDirectory" return="java.util.List"
  12862. abstract="false" native="false" synchronized="false"
  12863. static="true" final="false" visibility="public"
  12864. deprecated="not deprecated">
  12865. <param name="path" type="java.lang.String"/>
  12866. <doc>
  12867. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  12868. wildcard path to return all jars from the directory to use in a classpath.
  12869. It operates only on local paths.
  12870. @param path the path to the directory. The path may include the wildcard.
  12871. @return the list of jars as URLs, or an empty list if there are no jars, or
  12872. the directory does not exist locally]]>
  12873. </doc>
  12874. </method>
  12875. <method name="getJarsInDirectory" return="java.util.List"
  12876. abstract="false" native="false" synchronized="false"
  12877. static="true" final="false" visibility="public"
  12878. deprecated="not deprecated">
  12879. <param name="path" type="java.lang.String"/>
  12880. <param name="useLocal" type="boolean"/>
  12881. <doc>
  12882. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  12883. wildcard path to return all jars from the directory to use in a classpath.
  12884. @param path the path to the directory. The path may include the wildcard.
  12885. @param useLocal use local.
  12886. @return the list of jars as URLs, or an empty list if there are no jars, or
  12887. the directory does not exist]]>
  12888. </doc>
  12889. </method>
  12890. <method name="compareFs" return="boolean"
  12891. abstract="false" native="false" synchronized="false"
  12892. static="true" final="false" visibility="public"
  12893. deprecated="not deprecated">
  12894. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  12895. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  12896. </method>
  12897. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12898. abstract="false" native="false" synchronized="false"
  12899. static="true" final="false" visibility="public"
  12900. deprecated="not deprecated">
  12901. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12902. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12903. <param name="bytes" type="byte[]"/>
  12904. <exception name="IOException" type="java.io.IOException"/>
  12905. <doc>
  12906. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  12907. creating the file if it does not exist, or overwrites an existing file. All
  12908. bytes in the byte array are written to the file.
  12909. @param fs the file system with which to create the file
  12910. @param path the path to the file
  12911. @param bytes the byte array with the bytes to write
  12912. @return the file system
  12913. @throws NullPointerException if any of the arguments are {@code null}
  12914. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12915. </doc>
  12916. </method>
  12917. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12918. abstract="false" native="false" synchronized="false"
  12919. static="true" final="false" visibility="public"
  12920. deprecated="not deprecated">
  12921. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  12922. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12923. <param name="bytes" type="byte[]"/>
  12924. <exception name="IOException" type="java.io.IOException"/>
  12925. <doc>
  12926. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  12927. creating the file if it does not exist, or overwrites an existing file. All
  12928. bytes in the byte array are written to the file.
  12929. @param fileContext the file context with which to create the file
  12930. @param path the path to the file
  12931. @param bytes the byte array with the bytes to write
  12932. @return the file context
  12933. @throws NullPointerException if any of the arguments are {@code null}
  12934. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12935. </doc>
  12936. </method>
  12937. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12938. abstract="false" native="false" synchronized="false"
  12939. static="true" final="false" visibility="public"
  12940. deprecated="not deprecated">
  12941. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12942. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12943. <param name="lines" type="java.lang.Iterable"/>
  12944. <param name="cs" type="java.nio.charset.Charset"/>
  12945. <exception name="IOException" type="java.io.IOException"/>
  12946. <doc>
  12947. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  12948. to the file in sequence with each line terminated by the platform's line
  12949. separator, as defined by the system property {@code
  12950. line.separator}. Characters are encoded into bytes using the specified
  12951. charset. This utility method opens the file for writing, creating the file
  12952. if it does not exist, or overwrites an existing file.
  12953. @param fs the file system with which to create the file
  12954. @param path the path to the file
  12955. @param lines a Collection to iterate over the char sequences
  12956. @param cs the charset to use for encoding
  12957. @return the file system
  12958. @throws NullPointerException if any of the arguments are {@code null}
  12959. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12960. </doc>
  12961. </method>
  12962. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12963. abstract="false" native="false" synchronized="false"
  12964. static="true" final="false" visibility="public"
  12965. deprecated="not deprecated">
  12966. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  12967. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12968. <param name="lines" type="java.lang.Iterable"/>
  12969. <param name="cs" type="java.nio.charset.Charset"/>
  12970. <exception name="IOException" type="java.io.IOException"/>
  12971. <doc>
  12972. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  12973. to the file in sequence with each line terminated by the platform's line
  12974. separator, as defined by the system property {@code
  12975. line.separator}. Characters are encoded into bytes using the specified
  12976. charset. This utility method opens the file for writing, creating the file
  12977. if it does not exist, or overwrites an existing file.
  12978. @param fileContext the file context with which to create the file
  12979. @param path the path to the file
  12980. @param lines a Collection to iterate over the char sequences
  12981. @param cs the charset to use for encoding
  12982. @return the file context
  12983. @throws NullPointerException if any of the arguments are {@code null}
  12984. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12985. </doc>
  12986. </method>
  12987. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12988. abstract="false" native="false" synchronized="false"
  12989. static="true" final="false" visibility="public"
  12990. deprecated="not deprecated">
  12991. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12992. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12993. <param name="charseq" type="java.lang.CharSequence"/>
  12994. <param name="cs" type="java.nio.charset.Charset"/>
  12995. <exception name="IOException" type="java.io.IOException"/>
  12996. <doc>
  12997. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  12998. specified charset. This utility method opens the file for writing, creating
  12999. the file if it does not exist, or overwrites an existing file.
  13000. @param fs the file system with which to create the file
  13001. @param path the path to the file
  13002. @param charseq the char sequence to write to the file
  13003. @param cs the charset to use for encoding
  13004. @return the file system
  13005. @throws NullPointerException if any of the arguments are {@code null}
  13006. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13007. </doc>
  13008. </method>
  13009. <method name="write" return="org.apache.hadoop.fs.FileContext"
  13010. abstract="false" native="false" synchronized="false"
  13011. static="true" final="false" visibility="public"
  13012. deprecated="not deprecated">
  13013. <param name="fs" type="org.apache.hadoop.fs.FileContext"/>
  13014. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13015. <param name="charseq" type="java.lang.CharSequence"/>
  13016. <param name="cs" type="java.nio.charset.Charset"/>
  13017. <exception name="IOException" type="java.io.IOException"/>
  13018. <doc>
  13019. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  13020. specified charset. This utility method opens the file for writing, creating
  13021. the file if it does not exist, or overwrites an existing file.
  13022. @param fs the file context with which to create the file
  13023. @param path the path to the file
  13024. @param charseq the char sequence to write to the file
  13025. @param cs the charset to use for encoding
  13026. @return the file context
  13027. @throws NullPointerException if any of the arguments are {@code null}
  13028. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13029. </doc>
  13030. </method>
  13031. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  13032. abstract="false" native="false" synchronized="false"
  13033. static="true" final="false" visibility="public"
  13034. deprecated="not deprecated">
  13035. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13036. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13037. <param name="charseq" type="java.lang.CharSequence"/>
  13038. <exception name="IOException" type="java.io.IOException"/>
  13039. <doc>
  13040. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  13041. UTF-8. This utility method opens the file for writing, creating the file if
  13042. it does not exist, or overwrites an existing file.
  13043. @param fs the files system with which to create the file
  13044. @param path the path to the file
  13045. @param charseq the char sequence to write to the file
  13046. @return the file system
  13047. @throws NullPointerException if any of the arguments are {@code null}
  13048. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13049. </doc>
  13050. </method>
  13051. <method name="write" return="org.apache.hadoop.fs.FileContext"
  13052. abstract="false" native="false" synchronized="false"
  13053. static="true" final="false" visibility="public"
  13054. deprecated="not deprecated">
  13055. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  13056. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13057. <param name="charseq" type="java.lang.CharSequence"/>
  13058. <exception name="IOException" type="java.io.IOException"/>
  13059. <doc>
  13060. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  13061. UTF-8. This utility method opens the file for writing, creating the file if
  13062. it does not exist, or overwrites an existing file.
  13063. @param fileContext the files system with which to create the file
  13064. @param path the path to the file
  13065. @param charseq the char sequence to write to the file
  13066. @return the file context
  13067. @throws NullPointerException if any of the arguments are {@code null}
  13068. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13069. </doc>
  13070. </method>
  13071. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  13072. transient="false" volatile="false"
  13073. static="true" final="true" visibility="public"
  13074. deprecated="not deprecated">
  13075. </field>
  13076. <doc>
  13077. <![CDATA[A collection of file-processing util methods]]>
  13078. </doc>
  13079. </class>
  13080. <!-- end class org.apache.hadoop.fs.FileUtil -->
  13081. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  13082. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13083. abstract="false"
  13084. static="false" final="false" visibility="public"
  13085. deprecated="not deprecated">
  13086. <constructor name="FilterFileSystem"
  13087. static="false" final="false" visibility="public"
  13088. deprecated="not deprecated">
  13089. </constructor>
  13090. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13091. static="false" final="false" visibility="public"
  13092. deprecated="not deprecated">
  13093. </constructor>
  13094. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  13095. abstract="false" native="false" synchronized="false"
  13096. static="false" final="false" visibility="public"
  13097. deprecated="not deprecated">
  13098. <doc>
  13099. <![CDATA[Get the raw file system
  13100. @return FileSystem being filtered]]>
  13101. </doc>
  13102. </method>
  13103. <method name="initialize"
  13104. abstract="false" native="false" synchronized="false"
  13105. static="false" final="false" visibility="public"
  13106. deprecated="not deprecated">
  13107. <param name="name" type="java.net.URI"/>
  13108. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13109. <exception name="IOException" type="java.io.IOException"/>
  13110. <doc>
  13111. <![CDATA[Called after a new FileSystem instance is constructed.
  13112. @param name a uri whose authority section names the host, port, etc.
  13113. for this FileSystem
  13114. @param conf the configuration]]>
  13115. </doc>
  13116. </method>
  13117. <method name="getUri" return="java.net.URI"
  13118. abstract="false" native="false" synchronized="false"
  13119. static="false" final="false" visibility="public"
  13120. deprecated="not deprecated">
  13121. <doc>
  13122. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  13123. </doc>
  13124. </method>
  13125. <method name="getCanonicalUri" return="java.net.URI"
  13126. abstract="false" native="false" synchronized="false"
  13127. static="false" final="false" visibility="protected"
  13128. deprecated="not deprecated">
  13129. </method>
  13130. <method name="canonicalizeUri" return="java.net.URI"
  13131. abstract="false" native="false" synchronized="false"
  13132. static="false" final="false" visibility="protected"
  13133. deprecated="not deprecated">
  13134. <param name="uri" type="java.net.URI"/>
  13135. </method>
  13136. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="false" final="false" visibility="public"
  13139. deprecated="not deprecated">
  13140. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13141. <doc>
  13142. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  13143. </doc>
  13144. </method>
  13145. <method name="checkPath"
  13146. abstract="false" native="false" synchronized="false"
  13147. static="false" final="false" visibility="protected"
  13148. deprecated="not deprecated">
  13149. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13150. <doc>
  13151. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  13152. </doc>
  13153. </method>
  13154. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13155. abstract="false" native="false" synchronized="false"
  13156. static="false" final="false" visibility="public"
  13157. deprecated="not deprecated">
  13158. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  13159. <param name="start" type="long"/>
  13160. <param name="len" type="long"/>
  13161. <exception name="IOException" type="java.io.IOException"/>
  13162. </method>
  13163. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  13164. abstract="false" native="false" synchronized="false"
  13165. static="false" final="false" visibility="public"
  13166. deprecated="not deprecated">
  13167. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13168. <exception name="IOException" type="java.io.IOException"/>
  13169. </method>
  13170. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13171. abstract="false" native="false" synchronized="false"
  13172. static="false" final="false" visibility="public"
  13173. deprecated="not deprecated">
  13174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13175. <param name="bufferSize" type="int"/>
  13176. <exception name="IOException" type="java.io.IOException"/>
  13177. <doc>
  13178. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  13179. @param f the file name to open
  13180. @param bufferSize the size of the buffer to be used.]]>
  13181. </doc>
  13182. </method>
  13183. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13184. abstract="false" native="false" synchronized="false"
  13185. static="false" final="false" visibility="public"
  13186. deprecated="not deprecated">
  13187. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  13188. <param name="bufferSize" type="int"/>
  13189. <exception name="IOException" type="java.io.IOException"/>
  13190. </method>
  13191. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  13192. abstract="false" native="false" synchronized="false"
  13193. static="false" final="false" visibility="protected"
  13194. deprecated="not deprecated">
  13195. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  13196. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  13197. </method>
  13198. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13199. abstract="false" native="false" synchronized="false"
  13200. static="false" final="false" visibility="public"
  13201. deprecated="not deprecated">
  13202. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13203. <param name="bufferSize" type="int"/>
  13204. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13205. <exception name="IOException" type="java.io.IOException"/>
  13206. </method>
  13207. <method name="concat"
  13208. abstract="false" native="false" synchronized="false"
  13209. static="false" final="false" visibility="public"
  13210. deprecated="not deprecated">
  13211. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13212. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  13213. <exception name="IOException" type="java.io.IOException"/>
  13214. </method>
  13215. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13216. abstract="false" native="false" synchronized="false"
  13217. static="false" final="false" visibility="public"
  13218. deprecated="not deprecated">
  13219. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13220. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13221. <param name="overwrite" type="boolean"/>
  13222. <param name="bufferSize" type="int"/>
  13223. <param name="replication" type="short"/>
  13224. <param name="blockSize" type="long"/>
  13225. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13226. <exception name="IOException" type="java.io.IOException"/>
  13227. </method>
  13228. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13229. abstract="false" native="false" synchronized="false"
  13230. static="false" final="false" visibility="public"
  13231. deprecated="not deprecated">
  13232. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13233. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13234. <param name="flags" type="java.util.EnumSet"/>
  13235. <param name="bufferSize" type="int"/>
  13236. <param name="replication" type="short"/>
  13237. <param name="blockSize" type="long"/>
  13238. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13239. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13240. <exception name="IOException" type="java.io.IOException"/>
  13241. </method>
  13242. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  13243. abstract="false" native="false" synchronized="false"
  13244. static="false" final="false" visibility="protected"
  13245. deprecated="not deprecated">
  13246. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13247. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  13248. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13249. <exception name="IOException" type="java.io.IOException"/>
  13250. </method>
  13251. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13252. abstract="false" native="false" synchronized="false"
  13253. static="false" final="false" visibility="public"
  13254. deprecated="not deprecated">
  13255. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13256. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13257. <param name="flags" type="java.util.EnumSet"/>
  13258. <param name="bufferSize" type="int"/>
  13259. <param name="replication" type="short"/>
  13260. <param name="blockSize" type="long"/>
  13261. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13262. <exception name="IOException" type="java.io.IOException"/>
  13263. </method>
  13264. <method name="setReplication" return="boolean"
  13265. abstract="false" native="false" synchronized="false"
  13266. static="false" final="false" visibility="public"
  13267. deprecated="not deprecated">
  13268. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13269. <param name="replication" type="short"/>
  13270. <exception name="IOException" type="java.io.IOException"/>
  13271. <doc>
  13272. <![CDATA[Set replication for an existing file.
  13273. @param src file name
  13274. @param replication new replication
  13275. @throws IOException raised on errors performing I/O.
  13276. @return true if successful;
  13277. false if file does not exist or is a directory]]>
  13278. </doc>
  13279. </method>
  13280. <method name="rename" return="boolean"
  13281. abstract="false" native="false" synchronized="false"
  13282. static="false" final="false" visibility="public"
  13283. deprecated="not deprecated">
  13284. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13285. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13286. <exception name="IOException" type="java.io.IOException"/>
  13287. <doc>
  13288. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  13289. or remote DFS.]]>
  13290. </doc>
  13291. </method>
  13292. <method name="rename"
  13293. abstract="false" native="false" synchronized="false"
  13294. static="false" final="false" visibility="protected"
  13295. deprecated="not deprecated">
  13296. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13297. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13298. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  13299. <exception name="IOException" type="java.io.IOException"/>
  13300. </method>
  13301. <method name="truncate" return="boolean"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="false" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13306. <param name="newLength" type="long"/>
  13307. <exception name="IOException" type="java.io.IOException"/>
  13308. </method>
  13309. <method name="delete" return="boolean"
  13310. abstract="false" native="false" synchronized="false"
  13311. static="false" final="false" visibility="public"
  13312. deprecated="not deprecated">
  13313. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13314. <param name="recursive" type="boolean"/>
  13315. <exception name="IOException" type="java.io.IOException"/>
  13316. <doc>
  13317. <![CDATA[Delete a file]]>
  13318. </doc>
  13319. </method>
  13320. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13321. abstract="false" native="false" synchronized="false"
  13322. static="false" final="false" visibility="public"
  13323. deprecated="not deprecated">
  13324. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13325. <exception name="IOException" type="java.io.IOException"/>
  13326. <doc>
  13327. <![CDATA[List files in a directory.]]>
  13328. </doc>
  13329. </method>
  13330. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  13331. abstract="false" native="false" synchronized="false"
  13332. static="false" final="false" visibility="public"
  13333. deprecated="not deprecated">
  13334. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13335. <exception name="IOException" type="java.io.IOException"/>
  13336. </method>
  13337. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  13338. abstract="false" native="false" synchronized="false"
  13339. static="false" final="false" visibility="public"
  13340. deprecated="not deprecated">
  13341. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13342. <exception name="IOException" type="java.io.IOException"/>
  13343. <doc>
  13344. <![CDATA[List files and its block locations in a directory.]]>
  13345. </doc>
  13346. </method>
  13347. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  13348. abstract="false" native="false" synchronized="false"
  13349. static="false" final="false" visibility="public"
  13350. deprecated="not deprecated">
  13351. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13352. <exception name="IOException" type="java.io.IOException"/>
  13353. <doc>
  13354. <![CDATA[Return a remote iterator for listing in a directory]]>
  13355. </doc>
  13356. </method>
  13357. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13358. abstract="false" native="false" synchronized="false"
  13359. static="false" final="false" visibility="public"
  13360. deprecated="not deprecated">
  13361. </method>
  13362. <method name="setWorkingDirectory"
  13363. abstract="false" native="false" synchronized="false"
  13364. static="false" final="false" visibility="public"
  13365. deprecated="not deprecated">
  13366. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13367. <doc>
  13368. <![CDATA[Set the current working directory for the given file system. All relative
  13369. paths will be resolved relative to it.
  13370. @param newDir new dir.]]>
  13371. </doc>
  13372. </method>
  13373. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13374. abstract="false" native="false" synchronized="false"
  13375. static="false" final="false" visibility="public"
  13376. deprecated="not deprecated">
  13377. <doc>
  13378. <![CDATA[Get the current working directory for the given file system
  13379. @return the directory pathname]]>
  13380. </doc>
  13381. </method>
  13382. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13383. abstract="false" native="false" synchronized="false"
  13384. static="false" final="false" visibility="protected"
  13385. deprecated="not deprecated">
  13386. </method>
  13387. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  13388. abstract="false" native="false" synchronized="false"
  13389. static="false" final="false" visibility="public"
  13390. deprecated="not deprecated">
  13391. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13392. <exception name="IOException" type="java.io.IOException"/>
  13393. </method>
  13394. <method name="mkdirs" return="boolean"
  13395. abstract="false" native="false" synchronized="false"
  13396. static="false" final="false" visibility="public"
  13397. deprecated="not deprecated">
  13398. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13399. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13400. <exception name="IOException" type="java.io.IOException"/>
  13401. </method>
  13402. <method name="mkdirs" return="boolean"
  13403. abstract="false" native="false" synchronized="false"
  13404. static="false" final="false" visibility="public"
  13405. deprecated="not deprecated">
  13406. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13407. <exception name="IOException" type="java.io.IOException"/>
  13408. </method>
  13409. <method name="copyFromLocalFile"
  13410. abstract="false" native="false" synchronized="false"
  13411. static="false" final="false" visibility="public"
  13412. deprecated="not deprecated">
  13413. <param name="delSrc" type="boolean"/>
  13414. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13415. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13416. <exception name="IOException" type="java.io.IOException"/>
  13417. <doc>
  13418. <![CDATA[The src file is on the local disk. Add it to FS at
  13419. the given dst name.
  13420. delSrc indicates if the source should be removed]]>
  13421. </doc>
  13422. </method>
  13423. <method name="copyFromLocalFile"
  13424. abstract="false" native="false" synchronized="false"
  13425. static="false" final="false" visibility="public"
  13426. deprecated="not deprecated">
  13427. <param name="delSrc" type="boolean"/>
  13428. <param name="overwrite" type="boolean"/>
  13429. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  13430. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13431. <exception name="IOException" type="java.io.IOException"/>
  13432. <doc>
  13433. <![CDATA[The src files are on the local disk. Add it to FS at
  13434. the given dst name.
  13435. delSrc indicates if the source should be removed]]>
  13436. </doc>
  13437. </method>
  13438. <method name="copyFromLocalFile"
  13439. abstract="false" native="false" synchronized="false"
  13440. static="false" final="false" visibility="public"
  13441. deprecated="not deprecated">
  13442. <param name="delSrc" type="boolean"/>
  13443. <param name="overwrite" type="boolean"/>
  13444. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13445. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13446. <exception name="IOException" type="java.io.IOException"/>
  13447. <doc>
  13448. <![CDATA[The src file is on the local disk. Add it to FS at
  13449. the given dst name.
  13450. delSrc indicates if the source should be removed]]>
  13451. </doc>
  13452. </method>
  13453. <method name="copyToLocalFile"
  13454. abstract="false" native="false" synchronized="false"
  13455. static="false" final="false" visibility="public"
  13456. deprecated="not deprecated">
  13457. <param name="delSrc" type="boolean"/>
  13458. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13459. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13460. <exception name="IOException" type="java.io.IOException"/>
  13461. <doc>
  13462. <![CDATA[The src file is under FS, and the dst is on the local disk.
  13463. Copy it from FS control to the local dst name.
  13464. delSrc indicates if the src will be removed or not.]]>
  13465. </doc>
  13466. </method>
  13467. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  13468. abstract="false" native="false" synchronized="false"
  13469. static="false" final="false" visibility="public"
  13470. deprecated="not deprecated">
  13471. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13472. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13473. <exception name="IOException" type="java.io.IOException"/>
  13474. <doc>
  13475. <![CDATA[Returns a local File that the user can write output to. The caller
  13476. provides both the eventual FS target name and the local working
  13477. file. If the FS is local, we write directly into the target. If
  13478. the FS is remote, we write into the tmp local area.]]>
  13479. </doc>
  13480. </method>
  13481. <method name="completeLocalOutput"
  13482. abstract="false" native="false" synchronized="false"
  13483. static="false" final="false" visibility="public"
  13484. deprecated="not deprecated">
  13485. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13486. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13487. <exception name="IOException" type="java.io.IOException"/>
  13488. <doc>
  13489. <![CDATA[Called when we're all done writing to the target. A local FS will
  13490. do nothing, because we've written to exactly the right place. A remote
  13491. FS will copy the contents of tmpLocalFile to the correct target at
  13492. fsOutputFile.]]>
  13493. </doc>
  13494. </method>
  13495. <method name="getUsed" return="long"
  13496. abstract="false" native="false" synchronized="false"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <exception name="IOException" type="java.io.IOException"/>
  13500. <doc>
  13501. <![CDATA[Return the total size of all files in the filesystem.]]>
  13502. </doc>
  13503. </method>
  13504. <method name="getUsed" return="long"
  13505. abstract="false" native="false" synchronized="false"
  13506. static="false" final="false" visibility="public"
  13507. deprecated="not deprecated">
  13508. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13509. <exception name="IOException" type="java.io.IOException"/>
  13510. <doc>
  13511. <![CDATA[Return the total size of all files from a specified path.]]>
  13512. </doc>
  13513. </method>
  13514. <method name="getDefaultBlockSize" return="long"
  13515. abstract="false" native="false" synchronized="false"
  13516. static="false" final="false" visibility="public"
  13517. deprecated="not deprecated">
  13518. </method>
  13519. <method name="getDefaultReplication" return="short"
  13520. abstract="false" native="false" synchronized="false"
  13521. static="false" final="false" visibility="public"
  13522. deprecated="not deprecated">
  13523. </method>
  13524. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13525. abstract="false" native="false" synchronized="false"
  13526. static="false" final="false" visibility="public"
  13527. deprecated="not deprecated">
  13528. <exception name="IOException" type="java.io.IOException"/>
  13529. </method>
  13530. <method name="getDefaultBlockSize" return="long"
  13531. abstract="false" native="false" synchronized="false"
  13532. static="false" final="false" visibility="public"
  13533. deprecated="not deprecated">
  13534. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13535. </method>
  13536. <method name="getDefaultReplication" return="short"
  13537. abstract="false" native="false" synchronized="false"
  13538. static="false" final="false" visibility="public"
  13539. deprecated="not deprecated">
  13540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13541. </method>
  13542. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="false" final="false" visibility="public"
  13545. deprecated="not deprecated">
  13546. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13547. <exception name="IOException" type="java.io.IOException"/>
  13548. </method>
  13549. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13550. abstract="false" native="false" synchronized="false"
  13551. static="false" final="false" visibility="public"
  13552. deprecated="not deprecated">
  13553. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13554. <exception name="IOException" type="java.io.IOException"/>
  13555. <doc>
  13556. <![CDATA[Get file status.]]>
  13557. </doc>
  13558. </method>
  13559. <method name="msync"
  13560. abstract="false" native="false" synchronized="false"
  13561. static="false" final="false" visibility="public"
  13562. deprecated="not deprecated">
  13563. <exception name="IOException" type="java.io.IOException"/>
  13564. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13565. </method>
  13566. <method name="access"
  13567. abstract="false" native="false" synchronized="false"
  13568. static="false" final="false" visibility="public"
  13569. deprecated="not deprecated">
  13570. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13571. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  13572. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13573. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13574. <exception name="IOException" type="java.io.IOException"/>
  13575. </method>
  13576. <method name="createSymlink"
  13577. abstract="false" native="false" synchronized="false"
  13578. static="false" final="false" visibility="public"
  13579. deprecated="not deprecated">
  13580. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13581. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13582. <param name="createParent" type="boolean"/>
  13583. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13584. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  13585. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13586. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  13587. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13588. <exception name="IOException" type="java.io.IOException"/>
  13589. </method>
  13590. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13591. abstract="false" native="false" synchronized="false"
  13592. static="false" final="false" visibility="public"
  13593. deprecated="not deprecated">
  13594. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13595. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13596. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13597. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13598. <exception name="IOException" type="java.io.IOException"/>
  13599. </method>
  13600. <method name="supportsSymlinks" return="boolean"
  13601. abstract="false" native="false" synchronized="false"
  13602. static="false" final="false" visibility="public"
  13603. deprecated="not deprecated">
  13604. </method>
  13605. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13606. abstract="false" native="false" synchronized="false"
  13607. static="false" final="false" visibility="public"
  13608. deprecated="not deprecated">
  13609. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13610. <exception name="IOException" type="java.io.IOException"/>
  13611. </method>
  13612. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  13613. abstract="false" native="false" synchronized="false"
  13614. static="false" final="false" visibility="protected"
  13615. deprecated="not deprecated">
  13616. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13617. <exception name="IOException" type="java.io.IOException"/>
  13618. </method>
  13619. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="false" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13624. <exception name="IOException" type="java.io.IOException"/>
  13625. </method>
  13626. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13627. abstract="false" native="false" synchronized="false"
  13628. static="false" final="false" visibility="public"
  13629. deprecated="not deprecated">
  13630. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13631. <param name="length" type="long"/>
  13632. <exception name="IOException" type="java.io.IOException"/>
  13633. </method>
  13634. <method name="setVerifyChecksum"
  13635. abstract="false" native="false" synchronized="false"
  13636. static="false" final="false" visibility="public"
  13637. deprecated="not deprecated">
  13638. <param name="verifyChecksum" type="boolean"/>
  13639. </method>
  13640. <method name="setWriteChecksum"
  13641. abstract="false" native="false" synchronized="false"
  13642. static="false" final="false" visibility="public"
  13643. deprecated="not deprecated">
  13644. <param name="writeChecksum" type="boolean"/>
  13645. </method>
  13646. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13647. abstract="false" native="false" synchronized="false"
  13648. static="false" final="false" visibility="public"
  13649. deprecated="not deprecated">
  13650. </method>
  13651. <method name="close"
  13652. abstract="false" native="false" synchronized="false"
  13653. static="false" final="false" visibility="public"
  13654. deprecated="not deprecated">
  13655. <exception name="IOException" type="java.io.IOException"/>
  13656. </method>
  13657. <method name="setOwner"
  13658. abstract="false" native="false" synchronized="false"
  13659. static="false" final="false" visibility="public"
  13660. deprecated="not deprecated">
  13661. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13662. <param name="username" type="java.lang.String"/>
  13663. <param name="groupname" type="java.lang.String"/>
  13664. <exception name="IOException" type="java.io.IOException"/>
  13665. </method>
  13666. <method name="setTimes"
  13667. abstract="false" native="false" synchronized="false"
  13668. static="false" final="false" visibility="public"
  13669. deprecated="not deprecated">
  13670. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13671. <param name="mtime" type="long"/>
  13672. <param name="atime" type="long"/>
  13673. <exception name="IOException" type="java.io.IOException"/>
  13674. </method>
  13675. <method name="setPermission"
  13676. abstract="false" native="false" synchronized="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13680. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13681. <exception name="IOException" type="java.io.IOException"/>
  13682. </method>
  13683. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  13684. abstract="false" native="false" synchronized="false"
  13685. static="false" final="false" visibility="protected"
  13686. deprecated="not deprecated">
  13687. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13688. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13689. <param name="flag" type="java.util.EnumSet"/>
  13690. <param name="bufferSize" type="int"/>
  13691. <param name="replication" type="short"/>
  13692. <param name="blockSize" type="long"/>
  13693. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13694. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13695. <exception name="IOException" type="java.io.IOException"/>
  13696. </method>
  13697. <method name="primitiveMkdir" return="boolean"
  13698. abstract="false" native="false" synchronized="false"
  13699. static="false" final="false" visibility="protected"
  13700. deprecated="not deprecated">
  13701. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13702. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13703. <exception name="IOException" type="java.io.IOException"/>
  13704. </method>
  13705. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  13706. abstract="false" native="false" synchronized="false"
  13707. static="false" final="false" visibility="public"
  13708. deprecated="not deprecated">
  13709. </method>
  13710. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  13711. abstract="false" native="false" synchronized="false"
  13712. static="false" final="false" visibility="public"
  13713. deprecated="not deprecated">
  13714. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13715. <param name="snapshotName" type="java.lang.String"/>
  13716. <exception name="IOException" type="java.io.IOException"/>
  13717. </method>
  13718. <method name="renameSnapshot"
  13719. abstract="false" native="false" synchronized="false"
  13720. static="false" final="false" visibility="public"
  13721. deprecated="not deprecated">
  13722. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13723. <param name="snapshotOldName" type="java.lang.String"/>
  13724. <param name="snapshotNewName" type="java.lang.String"/>
  13725. <exception name="IOException" type="java.io.IOException"/>
  13726. </method>
  13727. <method name="deleteSnapshot"
  13728. abstract="false" native="false" synchronized="false"
  13729. static="false" final="false" visibility="public"
  13730. deprecated="not deprecated">
  13731. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13732. <param name="snapshotName" type="java.lang.String"/>
  13733. <exception name="IOException" type="java.io.IOException"/>
  13734. </method>
  13735. <method name="modifyAclEntries"
  13736. abstract="false" native="false" synchronized="false"
  13737. static="false" final="false" visibility="public"
  13738. deprecated="not deprecated">
  13739. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13740. <param name="aclSpec" type="java.util.List"/>
  13741. <exception name="IOException" type="java.io.IOException"/>
  13742. </method>
  13743. <method name="removeAclEntries"
  13744. abstract="false" native="false" synchronized="false"
  13745. static="false" final="false" visibility="public"
  13746. deprecated="not deprecated">
  13747. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13748. <param name="aclSpec" type="java.util.List"/>
  13749. <exception name="IOException" type="java.io.IOException"/>
  13750. </method>
  13751. <method name="removeDefaultAcl"
  13752. abstract="false" native="false" synchronized="false"
  13753. static="false" final="false" visibility="public"
  13754. deprecated="not deprecated">
  13755. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13756. <exception name="IOException" type="java.io.IOException"/>
  13757. </method>
  13758. <method name="removeAcl"
  13759. abstract="false" native="false" synchronized="false"
  13760. static="false" final="false" visibility="public"
  13761. deprecated="not deprecated">
  13762. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13763. <exception name="IOException" type="java.io.IOException"/>
  13764. </method>
  13765. <method name="setAcl"
  13766. abstract="false" native="false" synchronized="false"
  13767. static="false" final="false" visibility="public"
  13768. deprecated="not deprecated">
  13769. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13770. <param name="aclSpec" type="java.util.List"/>
  13771. <exception name="IOException" type="java.io.IOException"/>
  13772. </method>
  13773. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  13774. abstract="false" native="false" synchronized="false"
  13775. static="false" final="false" visibility="public"
  13776. deprecated="not deprecated">
  13777. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13778. <exception name="IOException" type="java.io.IOException"/>
  13779. </method>
  13780. <method name="setXAttr"
  13781. abstract="false" native="false" synchronized="false"
  13782. static="false" final="false" visibility="public"
  13783. deprecated="not deprecated">
  13784. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13785. <param name="name" type="java.lang.String"/>
  13786. <param name="value" type="byte[]"/>
  13787. <exception name="IOException" type="java.io.IOException"/>
  13788. </method>
  13789. <method name="setXAttr"
  13790. abstract="false" native="false" synchronized="false"
  13791. static="false" final="false" visibility="public"
  13792. deprecated="not deprecated">
  13793. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13794. <param name="name" type="java.lang.String"/>
  13795. <param name="value" type="byte[]"/>
  13796. <param name="flag" type="java.util.EnumSet"/>
  13797. <exception name="IOException" type="java.io.IOException"/>
  13798. </method>
  13799. <method name="getXAttr" return="byte[]"
  13800. abstract="false" native="false" synchronized="false"
  13801. static="false" final="false" visibility="public"
  13802. deprecated="not deprecated">
  13803. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13804. <param name="name" type="java.lang.String"/>
  13805. <exception name="IOException" type="java.io.IOException"/>
  13806. </method>
  13807. <method name="getXAttrs" return="java.util.Map"
  13808. abstract="false" native="false" synchronized="false"
  13809. static="false" final="false" visibility="public"
  13810. deprecated="not deprecated">
  13811. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13812. <exception name="IOException" type="java.io.IOException"/>
  13813. </method>
  13814. <method name="getXAttrs" return="java.util.Map"
  13815. abstract="false" native="false" synchronized="false"
  13816. static="false" final="false" visibility="public"
  13817. deprecated="not deprecated">
  13818. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13819. <param name="names" type="java.util.List"/>
  13820. <exception name="IOException" type="java.io.IOException"/>
  13821. </method>
  13822. <method name="listXAttrs" return="java.util.List"
  13823. abstract="false" native="false" synchronized="false"
  13824. static="false" final="false" visibility="public"
  13825. deprecated="not deprecated">
  13826. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13827. <exception name="IOException" type="java.io.IOException"/>
  13828. </method>
  13829. <method name="removeXAttr"
  13830. abstract="false" native="false" synchronized="false"
  13831. static="false" final="false" visibility="public"
  13832. deprecated="not deprecated">
  13833. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13834. <param name="name" type="java.lang.String"/>
  13835. <exception name="IOException" type="java.io.IOException"/>
  13836. </method>
  13837. <method name="satisfyStoragePolicy"
  13838. abstract="false" native="false" synchronized="false"
  13839. static="false" final="false" visibility="public"
  13840. deprecated="not deprecated">
  13841. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13842. <exception name="IOException" type="java.io.IOException"/>
  13843. </method>
  13844. <method name="setStoragePolicy"
  13845. abstract="false" native="false" synchronized="false"
  13846. static="false" final="false" visibility="public"
  13847. deprecated="not deprecated">
  13848. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13849. <param name="policyName" type="java.lang.String"/>
  13850. <exception name="IOException" type="java.io.IOException"/>
  13851. </method>
  13852. <method name="unsetStoragePolicy"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13857. <exception name="IOException" type="java.io.IOException"/>
  13858. </method>
  13859. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  13860. abstract="false" native="false" synchronized="false"
  13861. static="false" final="false" visibility="public"
  13862. deprecated="not deprecated">
  13863. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13864. <exception name="IOException" type="java.io.IOException"/>
  13865. </method>
  13866. <method name="getAllStoragePolicies" return="java.util.Collection"
  13867. abstract="false" native="false" synchronized="false"
  13868. static="false" final="false" visibility="public"
  13869. deprecated="not deprecated">
  13870. <exception name="IOException" type="java.io.IOException"/>
  13871. </method>
  13872. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  13873. abstract="false" native="false" synchronized="false"
  13874. static="false" final="false" visibility="public"
  13875. deprecated="not deprecated">
  13876. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13877. </method>
  13878. <method name="getTrashRoots" return="java.util.Collection"
  13879. abstract="false" native="false" synchronized="false"
  13880. static="false" final="false" visibility="public"
  13881. deprecated="not deprecated">
  13882. <param name="allUsers" type="boolean"/>
  13883. </method>
  13884. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  13885. abstract="false" native="false" synchronized="false"
  13886. static="false" final="false" visibility="public"
  13887. deprecated="not deprecated">
  13888. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13889. </method>
  13890. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  13891. abstract="false" native="false" synchronized="false"
  13892. static="false" final="false" visibility="public"
  13893. deprecated="not deprecated">
  13894. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13895. </method>
  13896. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  13897. abstract="false" native="false" synchronized="false"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13901. <exception name="IOException" type="java.io.IOException"/>
  13902. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13903. </method>
  13904. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  13905. abstract="false" native="false" synchronized="false"
  13906. static="false" final="false" visibility="public"
  13907. deprecated="not deprecated">
  13908. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  13909. <exception name="IOException" type="java.io.IOException"/>
  13910. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13911. </method>
  13912. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  13913. abstract="false" native="false" synchronized="false"
  13914. static="false" final="false" visibility="protected"
  13915. deprecated="not deprecated">
  13916. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13917. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  13918. <exception name="IOException" type="java.io.IOException"/>
  13919. </method>
  13920. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  13921. abstract="false" native="false" synchronized="false"
  13922. static="false" final="false" visibility="protected"
  13923. deprecated="not deprecated">
  13924. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  13925. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  13926. <exception name="IOException" type="java.io.IOException"/>
  13927. </method>
  13928. <method name="hasPathCapability" return="boolean"
  13929. abstract="false" native="false" synchronized="false"
  13930. static="false" final="false" visibility="public"
  13931. deprecated="not deprecated">
  13932. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13933. <param name="capability" type="java.lang.String"/>
  13934. <exception name="IOException" type="java.io.IOException"/>
  13935. </method>
  13936. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  13937. transient="false" volatile="false"
  13938. static="false" final="false" visibility="protected"
  13939. deprecated="not deprecated">
  13940. </field>
  13941. <field name="swapScheme" type="java.lang.String"
  13942. transient="false" volatile="false"
  13943. static="false" final="false" visibility="protected"
  13944. deprecated="not deprecated">
  13945. </field>
  13946. <doc>
  13947. <![CDATA[A <code>FilterFileSystem</code> contains
  13948. some other file system, which it uses as
  13949. its basic file system, possibly transforming
  13950. the data along the way or providing additional
  13951. functionality. The class <code>FilterFileSystem</code>
  13952. itself simply overrides all methods of
  13953. <code>FileSystem</code> with versions that
  13954. pass all requests to the contained file
  13955. system. Subclasses of <code>FilterFileSystem</code>
  13956. may further override some of these methods
  13957. and may also provide additional methods
  13958. and fields.]]>
  13959. </doc>
  13960. </class>
  13961. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  13962. <!-- start interface org.apache.hadoop.fs.FSBuilder -->
  13963. <interface name="FSBuilder" abstract="true"
  13964. static="false" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <method name="opt" return="B"
  13967. abstract="true" native="false" synchronized="false"
  13968. static="false" final="false" visibility="public"
  13969. deprecated="not deprecated">
  13970. <param name="key" type="java.lang.String"/>
  13971. <param name="value" type="java.lang.String"/>
  13972. <doc>
  13973. <![CDATA[Set optional Builder parameter.
  13974. @param key key.
  13975. @param value value.
  13976. @return generic type B.]]>
  13977. </doc>
  13978. </method>
  13979. <method name="opt" return="B"
  13980. abstract="true" native="false" synchronized="false"
  13981. static="false" final="false" visibility="public"
  13982. deprecated="not deprecated">
  13983. <param name="key" type="java.lang.String"/>
  13984. <param name="value" type="boolean"/>
  13985. <doc>
  13986. <![CDATA[Set optional boolean parameter for the Builder.
  13987. @param key key.
  13988. @param value value.
  13989. @return generic type B.
  13990. @see #opt(String, String)]]>
  13991. </doc>
  13992. </method>
  13993. <method name="opt" return="B"
  13994. abstract="true" native="false" synchronized="false"
  13995. static="false" final="false" visibility="public"
  13996. deprecated="not deprecated">
  13997. <param name="key" type="java.lang.String"/>
  13998. <param name="value" type="int"/>
  13999. <doc>
  14000. <![CDATA[Set optional int parameter for the Builder.
  14001. @param key key.
  14002. @param value value.
  14003. @return generic type B.
  14004. @see #opt(String, String)]]>
  14005. </doc>
  14006. </method>
  14007. <method name="opt" return="B"
  14008. abstract="true" native="false" synchronized="false"
  14009. static="false" final="false" visibility="public"
  14010. deprecated="not deprecated">
  14011. <param name="key" type="java.lang.String"/>
  14012. <param name="value" type="float"/>
  14013. <doc>
  14014. <![CDATA[Set optional float parameter for the Builder.
  14015. @param key key.
  14016. @param value value.
  14017. @return generic type B.
  14018. @see #opt(String, String)]]>
  14019. </doc>
  14020. </method>
  14021. <method name="opt" return="B"
  14022. abstract="true" native="false" synchronized="false"
  14023. static="false" final="false" visibility="public"
  14024. deprecated="not deprecated">
  14025. <param name="key" type="java.lang.String"/>
  14026. <param name="value" type="long"/>
  14027. <doc>
  14028. <![CDATA[Set optional long parameter for the Builder.
  14029. @param key key.
  14030. @param value value.
  14031. @return generic type B.
  14032. @see #opt(String, String)]]>
  14033. </doc>
  14034. </method>
  14035. <method name="opt" return="B"
  14036. abstract="true" native="false" synchronized="false"
  14037. static="false" final="false" visibility="public"
  14038. deprecated="not deprecated">
  14039. <param name="key" type="java.lang.String"/>
  14040. <param name="value" type="double"/>
  14041. <doc>
  14042. <![CDATA[Set optional double parameter for the Builder.
  14043. @param key key.
  14044. @param value value.
  14045. @return generic type B.
  14046. @see #opt(String, String)]]>
  14047. </doc>
  14048. </method>
  14049. <method name="opt" return="B"
  14050. abstract="true" native="false" synchronized="false"
  14051. static="false" final="false" visibility="public"
  14052. deprecated="not deprecated">
  14053. <param name="key" type="java.lang.String"/>
  14054. <param name="values" type="java.lang.String[]"/>
  14055. <doc>
  14056. <![CDATA[Set an array of string values as optional parameter for the Builder.
  14057. @param key key.
  14058. @param values values.
  14059. @return generic type B.
  14060. @see #opt(String, String)]]>
  14061. </doc>
  14062. </method>
  14063. <method name="must" return="B"
  14064. abstract="true" native="false" synchronized="false"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <param name="key" type="java.lang.String"/>
  14068. <param name="value" type="java.lang.String"/>
  14069. <doc>
  14070. <![CDATA[Set mandatory option to the Builder.
  14071. If the option is not supported or unavailable,
  14072. the client should expect {@link #build()} throws IllegalArgumentException.
  14073. @param key key.
  14074. @param value value.
  14075. @return generic type B.]]>
  14076. </doc>
  14077. </method>
  14078. <method name="must" return="B"
  14079. abstract="true" native="false" synchronized="false"
  14080. static="false" final="false" visibility="public"
  14081. deprecated="not deprecated">
  14082. <param name="key" type="java.lang.String"/>
  14083. <param name="value" type="boolean"/>
  14084. <doc>
  14085. <![CDATA[Set mandatory boolean option.
  14086. @param key key.
  14087. @param value value.
  14088. @return generic type B.
  14089. @see #must(String, String)]]>
  14090. </doc>
  14091. </method>
  14092. <method name="must" return="B"
  14093. abstract="true" native="false" synchronized="false"
  14094. static="false" final="false" visibility="public"
  14095. deprecated="not deprecated">
  14096. <param name="key" type="java.lang.String"/>
  14097. <param name="value" type="int"/>
  14098. <doc>
  14099. <![CDATA[Set mandatory int option.
  14100. @param key key.
  14101. @param value value.
  14102. @return generic type B.
  14103. @see #must(String, String)]]>
  14104. </doc>
  14105. </method>
  14106. <method name="must" return="B"
  14107. abstract="true" native="false" synchronized="false"
  14108. static="false" final="false" visibility="public"
  14109. deprecated="not deprecated">
  14110. <param name="key" type="java.lang.String"/>
  14111. <param name="value" type="float"/>
  14112. <doc>
  14113. <![CDATA[Set mandatory float option.
  14114. @param key key.
  14115. @param value value.
  14116. @return generic type B.
  14117. @see #must(String, String)]]>
  14118. </doc>
  14119. </method>
  14120. <method name="must" return="B"
  14121. abstract="true" native="false" synchronized="false"
  14122. static="false" final="false" visibility="public"
  14123. deprecated="not deprecated">
  14124. <param name="key" type="java.lang.String"/>
  14125. <param name="value" type="long"/>
  14126. <doc>
  14127. <![CDATA[Set mandatory long option.
  14128. @param key key.
  14129. @param value value.
  14130. @return generic type B.
  14131. @see #must(String, String)]]>
  14132. </doc>
  14133. </method>
  14134. <method name="must" return="B"
  14135. abstract="true" native="false" synchronized="false"
  14136. static="false" final="false" visibility="public"
  14137. deprecated="not deprecated">
  14138. <param name="key" type="java.lang.String"/>
  14139. <param name="value" type="double"/>
  14140. <doc>
  14141. <![CDATA[Set mandatory double option.
  14142. @param key key.
  14143. @param value value.
  14144. @return generic type B.
  14145. @see #must(String, String)]]>
  14146. </doc>
  14147. </method>
  14148. <method name="must" return="B"
  14149. abstract="true" native="false" synchronized="false"
  14150. static="false" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. <param name="key" type="java.lang.String"/>
  14153. <param name="values" type="java.lang.String[]"/>
  14154. <doc>
  14155. <![CDATA[Set a string array as mandatory option.
  14156. @param key key.
  14157. @param values values.
  14158. @return generic type B.
  14159. @see #must(String, String)]]>
  14160. </doc>
  14161. </method>
  14162. <method name="build" return="S"
  14163. abstract="true" native="false" synchronized="false"
  14164. static="false" final="false" visibility="public"
  14165. deprecated="not deprecated">
  14166. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14167. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14168. <exception name="IOException" type="java.io.IOException"/>
  14169. <doc>
  14170. <![CDATA[Instantiate the object which was being built.
  14171. @throws IllegalArgumentException if the parameters are not valid.
  14172. @throws UnsupportedOperationException if the filesystem does not support
  14173. the specific operation.
  14174. @throws IOException on filesystem IO errors.
  14175. @return generic type S.]]>
  14176. </doc>
  14177. </method>
  14178. <doc>
  14179. <![CDATA[The base interface which various FileSystem FileContext Builder
  14180. interfaces can extend, and which underlying implementations
  14181. will then implement.
  14182. @param <S> Return type on the {@link #build()} call.
  14183. @param <B> type of builder itself.]]>
  14184. </doc>
  14185. </interface>
  14186. <!-- end interface org.apache.hadoop.fs.FSBuilder -->
  14187. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  14188. <interface name="FsConstants" abstract="true"
  14189. static="false" final="false" visibility="public"
  14190. deprecated="not deprecated">
  14191. <field name="LOCAL_FS_URI" type="java.net.URI"
  14192. transient="false" volatile="false"
  14193. static="true" final="true" visibility="public"
  14194. deprecated="not deprecated">
  14195. </field>
  14196. <field name="FTP_SCHEME" type="java.lang.String"
  14197. transient="false" volatile="false"
  14198. static="true" final="true" visibility="public"
  14199. deprecated="not deprecated">
  14200. </field>
  14201. <field name="MAX_PATH_LINKS" type="int"
  14202. transient="false" volatile="false"
  14203. static="true" final="true" visibility="public"
  14204. deprecated="not deprecated">
  14205. </field>
  14206. <field name="VIEWFS_URI" type="java.net.URI"
  14207. transient="false" volatile="false"
  14208. static="true" final="true" visibility="public"
  14209. deprecated="not deprecated">
  14210. <doc>
  14211. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  14212. </doc>
  14213. </field>
  14214. <field name="VIEWFS_SCHEME" type="java.lang.String"
  14215. transient="false" volatile="false"
  14216. static="true" final="true" visibility="public"
  14217. deprecated="not deprecated">
  14218. </field>
  14219. <field name="FS_VIEWFS_OVERLOAD_SCHEME_TARGET_FS_IMPL_PATTERN" type="java.lang.String"
  14220. transient="false" volatile="false"
  14221. static="true" final="true" visibility="public"
  14222. deprecated="not deprecated">
  14223. </field>
  14224. <field name="VIEWFS_TYPE" type="java.lang.String"
  14225. transient="false" volatile="false"
  14226. static="true" final="true" visibility="public"
  14227. deprecated="not deprecated">
  14228. </field>
  14229. <doc>
  14230. <![CDATA[FileSystem related constants.]]>
  14231. </doc>
  14232. </interface>
  14233. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  14234. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  14235. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  14236. abstract="false"
  14237. static="false" final="false" visibility="public"
  14238. deprecated="not deprecated">
  14239. <implements name="org.apache.hadoop.fs.Seekable"/>
  14240. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  14241. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  14242. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  14243. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  14244. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  14245. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  14246. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  14247. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  14248. <implements name="org.apache.hadoop.fs.ByteBufferPositionedReadable"/>
  14249. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  14250. <constructor name="FSDataInputStream" type="java.io.InputStream"
  14251. static="false" final="false" visibility="public"
  14252. deprecated="not deprecated">
  14253. </constructor>
  14254. <method name="seek"
  14255. abstract="false" native="false" synchronized="false"
  14256. static="false" final="false" visibility="public"
  14257. deprecated="not deprecated">
  14258. <param name="desired" type="long"/>
  14259. <exception name="IOException" type="java.io.IOException"/>
  14260. <doc>
  14261. <![CDATA[Seek to the given offset.
  14262. @param desired offset to seek to]]>
  14263. </doc>
  14264. </method>
  14265. <method name="getPos" return="long"
  14266. abstract="false" native="false" synchronized="false"
  14267. static="false" final="false" visibility="public"
  14268. deprecated="not deprecated">
  14269. <exception name="IOException" type="java.io.IOException"/>
  14270. <doc>
  14271. <![CDATA[Get the current position in the input stream.
  14272. @return current position in the input stream]]>
  14273. </doc>
  14274. </method>
  14275. <method name="read" return="int"
  14276. abstract="false" native="false" synchronized="false"
  14277. static="false" final="false" visibility="public"
  14278. deprecated="not deprecated">
  14279. <param name="position" type="long"/>
  14280. <param name="buffer" type="byte[]"/>
  14281. <param name="offset" type="int"/>
  14282. <param name="length" type="int"/>
  14283. <exception name="IOException" type="java.io.IOException"/>
  14284. <doc>
  14285. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  14286. @param position position in the input stream to seek
  14287. @param buffer buffer into which data is read
  14288. @param offset offset into the buffer in which data is written
  14289. @param length maximum number of bytes to read
  14290. @return total number of bytes read into the buffer, or <code>-1</code>
  14291. if there is no more data because the end of the stream has been
  14292. reached]]>
  14293. </doc>
  14294. </method>
  14295. <method name="readFully"
  14296. abstract="false" native="false" synchronized="false"
  14297. static="false" final="false" visibility="public"
  14298. deprecated="not deprecated">
  14299. <param name="position" type="long"/>
  14300. <param name="buffer" type="byte[]"/>
  14301. <param name="offset" type="int"/>
  14302. <param name="length" type="int"/>
  14303. <exception name="IOException" type="java.io.IOException"/>
  14304. <doc>
  14305. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  14306. Continues to read until <code>length</code> bytes have been read.
  14307. @param position position in the input stream to seek
  14308. @param buffer buffer into which data is read
  14309. @param offset offset into the buffer in which data is written
  14310. @param length the number of bytes to read
  14311. @throws IOException IO problems
  14312. @throws EOFException If the end of stream is reached while reading.
  14313. If an exception is thrown an undetermined number
  14314. of bytes in the buffer may have been written.]]>
  14315. </doc>
  14316. </method>
  14317. <method name="readFully"
  14318. abstract="false" native="false" synchronized="false"
  14319. static="false" final="false" visibility="public"
  14320. deprecated="not deprecated">
  14321. <param name="position" type="long"/>
  14322. <param name="buffer" type="byte[]"/>
  14323. <exception name="IOException" type="java.io.IOException"/>
  14324. <doc>
  14325. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  14326. </doc>
  14327. </method>
  14328. <method name="seekToNewSource" return="boolean"
  14329. abstract="false" native="false" synchronized="false"
  14330. static="false" final="false" visibility="public"
  14331. deprecated="not deprecated">
  14332. <param name="targetPos" type="long"/>
  14333. <exception name="IOException" type="java.io.IOException"/>
  14334. <doc>
  14335. <![CDATA[Seek to the given position on an alternate copy of the data.
  14336. @param targetPos position to seek to
  14337. @return true if a new source is found, false otherwise]]>
  14338. </doc>
  14339. </method>
  14340. <method name="getWrappedStream" return="java.io.InputStream"
  14341. abstract="false" native="false" synchronized="false"
  14342. static="false" final="false" visibility="public"
  14343. deprecated="not deprecated">
  14344. <doc>
  14345. <![CDATA[Get a reference to the wrapped input stream. Used by unit tests.
  14346. @return the underlying input stream]]>
  14347. </doc>
  14348. </method>
  14349. <method name="read" return="int"
  14350. abstract="false" native="false" synchronized="false"
  14351. static="false" final="false" visibility="public"
  14352. deprecated="not deprecated">
  14353. <param name="buf" type="java.nio.ByteBuffer"/>
  14354. <exception name="IOException" type="java.io.IOException"/>
  14355. </method>
  14356. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  14357. abstract="false" native="false" synchronized="false"
  14358. static="false" final="false" visibility="public"
  14359. deprecated="not deprecated">
  14360. <exception name="IOException" type="java.io.IOException"/>
  14361. </method>
  14362. <method name="setReadahead"
  14363. abstract="false" native="false" synchronized="false"
  14364. static="false" final="false" visibility="public"
  14365. deprecated="not deprecated">
  14366. <param name="readahead" type="java.lang.Long"/>
  14367. <exception name="IOException" type="java.io.IOException"/>
  14368. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14369. </method>
  14370. <method name="setDropBehind"
  14371. abstract="false" native="false" synchronized="false"
  14372. static="false" final="false" visibility="public"
  14373. deprecated="not deprecated">
  14374. <param name="dropBehind" type="java.lang.Boolean"/>
  14375. <exception name="IOException" type="java.io.IOException"/>
  14376. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14377. </method>
  14378. <method name="read" return="java.nio.ByteBuffer"
  14379. abstract="false" native="false" synchronized="false"
  14380. static="false" final="false" visibility="public"
  14381. deprecated="not deprecated">
  14382. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  14383. <param name="maxLength" type="int"/>
  14384. <param name="opts" type="java.util.EnumSet"/>
  14385. <exception name="IOException" type="java.io.IOException"/>
  14386. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14387. </method>
  14388. <method name="read" return="java.nio.ByteBuffer"
  14389. abstract="false" native="false" synchronized="false"
  14390. static="false" final="true" visibility="public"
  14391. deprecated="not deprecated">
  14392. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  14393. <param name="maxLength" type="int"/>
  14394. <exception name="IOException" type="java.io.IOException"/>
  14395. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14396. </method>
  14397. <method name="releaseBuffer"
  14398. abstract="false" native="false" synchronized="false"
  14399. static="false" final="false" visibility="public"
  14400. deprecated="not deprecated">
  14401. <param name="buffer" type="java.nio.ByteBuffer"/>
  14402. </method>
  14403. <method name="unbuffer"
  14404. abstract="false" native="false" synchronized="false"
  14405. static="false" final="false" visibility="public"
  14406. deprecated="not deprecated">
  14407. </method>
  14408. <method name="hasCapability" return="boolean"
  14409. abstract="false" native="false" synchronized="false"
  14410. static="false" final="false" visibility="public"
  14411. deprecated="not deprecated">
  14412. <param name="capability" type="java.lang.String"/>
  14413. </method>
  14414. <method name="toString" return="java.lang.String"
  14415. abstract="false" native="false" synchronized="false"
  14416. static="false" final="false" visibility="public"
  14417. deprecated="not deprecated">
  14418. <doc>
  14419. <![CDATA[String value. Includes the string value of the inner stream
  14420. @return the stream]]>
  14421. </doc>
  14422. </method>
  14423. <method name="read" return="int"
  14424. abstract="false" native="false" synchronized="false"
  14425. static="false" final="false" visibility="public"
  14426. deprecated="not deprecated">
  14427. <param name="position" type="long"/>
  14428. <param name="buf" type="java.nio.ByteBuffer"/>
  14429. <exception name="IOException" type="java.io.IOException"/>
  14430. </method>
  14431. <method name="readFully"
  14432. abstract="false" native="false" synchronized="false"
  14433. static="false" final="false" visibility="public"
  14434. deprecated="not deprecated">
  14435. <param name="position" type="long"/>
  14436. <param name="buf" type="java.nio.ByteBuffer"/>
  14437. <exception name="IOException" type="java.io.IOException"/>
  14438. </method>
  14439. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  14440. abstract="false" native="false" synchronized="false"
  14441. static="false" final="false" visibility="public"
  14442. deprecated="not deprecated">
  14443. <doc>
  14444. <![CDATA[Get the IO Statistics of the nested stream, falling back to
  14445. null if the stream does not implement the interface
  14446. {@link IOStatisticsSource}.
  14447. @return an IOStatistics instance or null]]>
  14448. </doc>
  14449. </method>
  14450. <method name="minSeekForVectorReads" return="int"
  14451. abstract="false" native="false" synchronized="false"
  14452. static="false" final="false" visibility="public"
  14453. deprecated="not deprecated">
  14454. </method>
  14455. <method name="maxReadSizeForVectorReads" return="int"
  14456. abstract="false" native="false" synchronized="false"
  14457. static="false" final="false" visibility="public"
  14458. deprecated="not deprecated">
  14459. </method>
  14460. <method name="readVectored"
  14461. abstract="false" native="false" synchronized="false"
  14462. static="false" final="false" visibility="public"
  14463. deprecated="not deprecated">
  14464. <param name="ranges" type="java.util.List"/>
  14465. <param name="allocate" type="java.util.function.IntFunction"/>
  14466. <exception name="IOException" type="java.io.IOException"/>
  14467. </method>
  14468. <doc>
  14469. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  14470. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  14471. </doc>
  14472. </class>
  14473. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  14474. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  14475. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  14476. abstract="false"
  14477. static="false" final="false" visibility="public"
  14478. deprecated="not deprecated">
  14479. <implements name="org.apache.hadoop.fs.Syncable"/>
  14480. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  14481. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  14482. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  14483. <implements name="org.apache.hadoop.fs.Abortable"/>
  14484. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  14485. static="false" final="false" visibility="public"
  14486. deprecated="not deprecated">
  14487. </constructor>
  14488. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  14489. static="false" final="false" visibility="public"
  14490. deprecated="not deprecated">
  14491. </constructor>
  14492. <method name="getPos" return="long"
  14493. abstract="false" native="false" synchronized="false"
  14494. static="false" final="false" visibility="public"
  14495. deprecated="not deprecated">
  14496. <doc>
  14497. <![CDATA[Get the current position in the output stream.
  14498. @return the current position in the output stream]]>
  14499. </doc>
  14500. </method>
  14501. <method name="close"
  14502. abstract="false" native="false" synchronized="false"
  14503. static="false" final="false" visibility="public"
  14504. deprecated="not deprecated">
  14505. <exception name="IOException" type="java.io.IOException"/>
  14506. <doc>
  14507. <![CDATA[Close the underlying output stream.]]>
  14508. </doc>
  14509. </method>
  14510. <method name="toString" return="java.lang.String"
  14511. abstract="false" native="false" synchronized="false"
  14512. static="false" final="false" visibility="public"
  14513. deprecated="not deprecated">
  14514. </method>
  14515. <method name="hasCapability" return="boolean"
  14516. abstract="false" native="false" synchronized="false"
  14517. static="false" final="false" visibility="public"
  14518. deprecated="not deprecated">
  14519. <param name="capability" type="java.lang.String"/>
  14520. </method>
  14521. <method name="hflush"
  14522. abstract="false" native="false" synchronized="false"
  14523. static="false" final="false" visibility="public"
  14524. deprecated="not deprecated">
  14525. <exception name="IOException" type="java.io.IOException"/>
  14526. </method>
  14527. <method name="hsync"
  14528. abstract="false" native="false" synchronized="false"
  14529. static="false" final="false" visibility="public"
  14530. deprecated="not deprecated">
  14531. <exception name="IOException" type="java.io.IOException"/>
  14532. </method>
  14533. <method name="setDropBehind"
  14534. abstract="false" native="false" synchronized="false"
  14535. static="false" final="false" visibility="public"
  14536. deprecated="not deprecated">
  14537. <param name="dropBehind" type="java.lang.Boolean"/>
  14538. <exception name="IOException" type="java.io.IOException"/>
  14539. </method>
  14540. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  14541. abstract="false" native="false" synchronized="false"
  14542. static="false" final="false" visibility="public"
  14543. deprecated="not deprecated">
  14544. <doc>
  14545. <![CDATA[Get the IO Statistics of the nested stream, falling back to
  14546. empty statistics if the stream does not implement the interface
  14547. {@link IOStatisticsSource}.
  14548. @return an IOStatistics instance.]]>
  14549. </doc>
  14550. </method>
  14551. <method name="abort" return="org.apache.hadoop.fs.Abortable.AbortableResult"
  14552. abstract="false" native="false" synchronized="false"
  14553. static="false" final="false" visibility="public"
  14554. deprecated="not deprecated">
  14555. <doc>
  14556. <![CDATA[Invoke {@code abort()} on the wrapped stream if it
  14557. is Abortable, otherwise raise an
  14558. {@code UnsupportedOperationException}.
  14559. @throws UnsupportedOperationException if not available.
  14560. @return the result.]]>
  14561. </doc>
  14562. </method>
  14563. <doc>
  14564. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  14565. </doc>
  14566. </class>
  14567. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  14568. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  14569. <class name="FSDataOutputStreamBuilder" extends="org.apache.hadoop.fs.impl.AbstractFSBuilderImpl"
  14570. abstract="true"
  14571. static="false" final="false" visibility="public"
  14572. deprecated="not deprecated">
  14573. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  14574. static="false" final="false" visibility="protected"
  14575. deprecated="not deprecated">
  14576. <doc>
  14577. <![CDATA[Constructor.
  14578. @param fileSystem file system.
  14579. @param p the path.]]>
  14580. </doc>
  14581. </constructor>
  14582. <method name="getThisBuilder" return="B"
  14583. abstract="true" native="false" synchronized="false"
  14584. static="false" final="false" visibility="public"
  14585. deprecated="not deprecated">
  14586. <doc>
  14587. <![CDATA[Return the concrete implementation of the builder instance.]]>
  14588. </doc>
  14589. </method>
  14590. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  14591. abstract="false" native="false" synchronized="false"
  14592. static="false" final="false" visibility="protected"
  14593. deprecated="not deprecated">
  14594. </method>
  14595. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="false" final="false" visibility="protected"
  14598. deprecated="not deprecated">
  14599. </method>
  14600. <method name="permission" return="B"
  14601. abstract="false" native="false" synchronized="false"
  14602. static="false" final="false" visibility="public"
  14603. deprecated="not deprecated">
  14604. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14605. <doc>
  14606. <![CDATA[Set permission for the file.
  14607. @param perm permission.
  14608. @return B Generics Type.]]>
  14609. </doc>
  14610. </method>
  14611. <method name="getBufferSize" return="int"
  14612. abstract="false" native="false" synchronized="false"
  14613. static="false" final="false" visibility="protected"
  14614. deprecated="not deprecated">
  14615. </method>
  14616. <method name="bufferSize" return="B"
  14617. abstract="false" native="false" synchronized="false"
  14618. static="false" final="false" visibility="public"
  14619. deprecated="not deprecated">
  14620. <param name="bufSize" type="int"/>
  14621. <doc>
  14622. <![CDATA[Set the size of the buffer to be used.
  14623. @param bufSize buffer size.
  14624. @return Generics Type B.]]>
  14625. </doc>
  14626. </method>
  14627. <method name="getReplication" return="short"
  14628. abstract="false" native="false" synchronized="false"
  14629. static="false" final="false" visibility="protected"
  14630. deprecated="not deprecated">
  14631. </method>
  14632. <method name="replication" return="B"
  14633. abstract="false" native="false" synchronized="false"
  14634. static="false" final="false" visibility="public"
  14635. deprecated="not deprecated">
  14636. <param name="replica" type="short"/>
  14637. <doc>
  14638. <![CDATA[Set replication factor.
  14639. @param replica replica.
  14640. @return Generics Type B.]]>
  14641. </doc>
  14642. </method>
  14643. <method name="getBlockSize" return="long"
  14644. abstract="false" native="false" synchronized="false"
  14645. static="false" final="false" visibility="protected"
  14646. deprecated="not deprecated">
  14647. </method>
  14648. <method name="blockSize" return="B"
  14649. abstract="false" native="false" synchronized="false"
  14650. static="false" final="false" visibility="public"
  14651. deprecated="not deprecated">
  14652. <param name="blkSize" type="long"/>
  14653. <doc>
  14654. <![CDATA[Set block size.
  14655. @param blkSize block size.
  14656. @return B Generics Type.]]>
  14657. </doc>
  14658. </method>
  14659. <method name="isRecursive" return="boolean"
  14660. abstract="false" native="false" synchronized="false"
  14661. static="false" final="false" visibility="protected"
  14662. deprecated="not deprecated">
  14663. <doc>
  14664. <![CDATA[Return true to create the parent directories if they do not exist.
  14665. @return if create the parent directories if they do not exist true,not false.]]>
  14666. </doc>
  14667. </method>
  14668. <method name="recursive" return="B"
  14669. abstract="false" native="false" synchronized="false"
  14670. static="false" final="false" visibility="public"
  14671. deprecated="not deprecated">
  14672. <doc>
  14673. <![CDATA[Create the parent directory if they do not exist.
  14674. @return B Generics Type.]]>
  14675. </doc>
  14676. </method>
  14677. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  14678. abstract="false" native="false" synchronized="false"
  14679. static="false" final="false" visibility="protected"
  14680. deprecated="not deprecated">
  14681. </method>
  14682. <method name="progress" return="B"
  14683. abstract="false" native="false" synchronized="false"
  14684. static="false" final="false" visibility="public"
  14685. deprecated="not deprecated">
  14686. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  14687. <doc>
  14688. <![CDATA[Set the facility of reporting progress.
  14689. @param prog progress.
  14690. @return B Generics Type.]]>
  14691. </doc>
  14692. </method>
  14693. <method name="getFlags" return="java.util.EnumSet"
  14694. abstract="false" native="false" synchronized="false"
  14695. static="false" final="false" visibility="protected"
  14696. deprecated="not deprecated">
  14697. </method>
  14698. <method name="create" return="B"
  14699. abstract="false" native="false" synchronized="false"
  14700. static="false" final="false" visibility="public"
  14701. deprecated="not deprecated">
  14702. <doc>
  14703. <![CDATA[Create an FSDataOutputStream at the specified path.
  14704. @return return Generics Type B.]]>
  14705. </doc>
  14706. </method>
  14707. <method name="overwrite" return="B"
  14708. abstract="false" native="false" synchronized="false"
  14709. static="false" final="false" visibility="public"
  14710. deprecated="not deprecated">
  14711. <param name="overwrite" type="boolean"/>
  14712. <doc>
  14713. <![CDATA[Set to true to overwrite the existing file.
  14714. Set it to false, an exception will be thrown when calling {@link #build()}
  14715. if the file exists.
  14716. @param overwrite overrite.
  14717. @return Generics Type B.]]>
  14718. </doc>
  14719. </method>
  14720. <method name="append" return="B"
  14721. abstract="false" native="false" synchronized="false"
  14722. static="false" final="false" visibility="public"
  14723. deprecated="not deprecated">
  14724. <doc>
  14725. <![CDATA[Append to an existing file (optional operation).
  14726. @return Generics Type B.]]>
  14727. </doc>
  14728. </method>
  14729. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14730. abstract="false" native="false" synchronized="false"
  14731. static="false" final="false" visibility="protected"
  14732. deprecated="not deprecated">
  14733. </method>
  14734. <method name="checksumOpt" return="B"
  14735. abstract="false" native="false" synchronized="false"
  14736. static="false" final="false" visibility="public"
  14737. deprecated="not deprecated">
  14738. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14739. <doc>
  14740. <![CDATA[Set checksum opt.
  14741. @param chksumOpt check sum opt.
  14742. @return Generics Type B.]]>
  14743. </doc>
  14744. </method>
  14745. <method name="build" return="S"
  14746. abstract="true" native="false" synchronized="false"
  14747. static="false" final="false" visibility="public"
  14748. deprecated="not deprecated">
  14749. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14750. <exception name="IOException" type="java.io.IOException"/>
  14751. <doc>
  14752. <![CDATA[Create the FSDataOutputStream to write on the file system.
  14753. @throws IllegalArgumentException if the parameters are not valid.
  14754. @throws IOException on errors when file system creates or appends the file.]]>
  14755. </doc>
  14756. </method>
  14757. <doc>
  14758. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  14759. It is used to create {@link FSDataOutputStream} when creating a new file or
  14760. appending an existing file on {@link FileSystem}.
  14761. By default, it does not create parent directory that do not exist.
  14762. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  14763. Progressable)}.
  14764. To create missing parent directory, use {@link #recursive()}.
  14765. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  14766. variants provide implementation-agnostic way to customize the builder.
  14767. Each FS-specific builder implementation can interpret the FS-specific
  14768. options accordingly, for example:
  14769. <code>
  14770. // Don't
  14771. if (fs instanceof FooFileSystem) {
  14772. FooFileSystem fs = (FooFileSystem) fs;
  14773. OutputStream out = dfs.createFile(path)
  14774. .optionA()
  14775. .optionB("value")
  14776. .cache()
  14777. .build()
  14778. } else if (fs instanceof BarFileSystem) {
  14779. ...
  14780. }
  14781. // Do
  14782. OutputStream out = fs.createFile(path)
  14783. .permission(perm)
  14784. .bufferSize(bufSize)
  14785. .opt("foofs:option.a", true)
  14786. .opt("foofs:option.b", "value")
  14787. .opt("barfs:cache", true)
  14788. .must("foofs:cache", true)
  14789. .must("barfs:cache-size", 256 * 1024 * 1024)
  14790. .build();
  14791. </code>
  14792. If the option is not related to the file system, the option will be ignored.
  14793. If the option is must, but not supported by the file system, a
  14794. {@link IllegalArgumentException} will be thrown.]]>
  14795. </doc>
  14796. </class>
  14797. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  14798. <!-- start class org.apache.hadoop.fs.FSError -->
  14799. <class name="FSError" extends="java.lang.Error"
  14800. abstract="false"
  14801. static="false" final="false" visibility="public"
  14802. deprecated="not deprecated">
  14803. <doc>
  14804. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  14805. in the native filesystem.]]>
  14806. </doc>
  14807. </class>
  14808. <!-- end class org.apache.hadoop.fs.FSError -->
  14809. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  14810. <class name="FSInputStream" extends="java.io.InputStream"
  14811. abstract="true"
  14812. static="false" final="false" visibility="public"
  14813. deprecated="not deprecated">
  14814. <implements name="org.apache.hadoop.fs.Seekable"/>
  14815. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  14816. <constructor name="FSInputStream"
  14817. static="false" final="false" visibility="public"
  14818. deprecated="not deprecated">
  14819. </constructor>
  14820. <method name="seek"
  14821. abstract="true" native="false" synchronized="false"
  14822. static="false" final="false" visibility="public"
  14823. deprecated="not deprecated">
  14824. <param name="pos" type="long"/>
  14825. <exception name="IOException" type="java.io.IOException"/>
  14826. <doc>
  14827. <![CDATA[Seek to the given offset from the start of the file.
  14828. The next read() will be from that location. Can't
  14829. seek past the end of the file.]]>
  14830. </doc>
  14831. </method>
  14832. <method name="getPos" return="long"
  14833. abstract="true" native="false" synchronized="false"
  14834. static="false" final="false" visibility="public"
  14835. deprecated="not deprecated">
  14836. <exception name="IOException" type="java.io.IOException"/>
  14837. <doc>
  14838. <![CDATA[Return the current offset from the start of the file]]>
  14839. </doc>
  14840. </method>
  14841. <method name="seekToNewSource" return="boolean"
  14842. abstract="true" native="false" synchronized="false"
  14843. static="false" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <param name="targetPos" type="long"/>
  14846. <exception name="IOException" type="java.io.IOException"/>
  14847. <doc>
  14848. <![CDATA[Seeks a different copy of the data. Returns true if
  14849. found a new source, false otherwise.]]>
  14850. </doc>
  14851. </method>
  14852. <method name="read" return="int"
  14853. abstract="false" native="false" synchronized="false"
  14854. static="false" final="false" visibility="public"
  14855. deprecated="not deprecated">
  14856. <param name="position" type="long"/>
  14857. <param name="buffer" type="byte[]"/>
  14858. <param name="offset" type="int"/>
  14859. <param name="length" type="int"/>
  14860. <exception name="IOException" type="java.io.IOException"/>
  14861. </method>
  14862. <method name="validatePositionedReadArgs"
  14863. abstract="false" native="false" synchronized="false"
  14864. static="false" final="false" visibility="protected"
  14865. deprecated="not deprecated">
  14866. <param name="position" type="long"/>
  14867. <param name="buffer" type="byte[]"/>
  14868. <param name="offset" type="int"/>
  14869. <param name="length" type="int"/>
  14870. <exception name="EOFException" type="java.io.EOFException"/>
  14871. <doc>
  14872. <![CDATA[Validation code, available for use in subclasses.
  14873. @param position position: if negative an EOF exception is raised
  14874. @param buffer destination buffer
  14875. @param offset offset within the buffer
  14876. @param length length of bytes to read
  14877. @throws EOFException if the position is negative
  14878. @throws IndexOutOfBoundsException if there isn't space for the amount of
  14879. data requested.
  14880. @throws IllegalArgumentException other arguments are invalid.]]>
  14881. </doc>
  14882. </method>
  14883. <method name="readFully"
  14884. abstract="false" native="false" synchronized="false"
  14885. static="false" final="false" visibility="public"
  14886. deprecated="not deprecated">
  14887. <param name="position" type="long"/>
  14888. <param name="buffer" type="byte[]"/>
  14889. <param name="offset" type="int"/>
  14890. <param name="length" type="int"/>
  14891. <exception name="IOException" type="java.io.IOException"/>
  14892. </method>
  14893. <method name="readFully"
  14894. abstract="false" native="false" synchronized="false"
  14895. static="false" final="false" visibility="public"
  14896. deprecated="not deprecated">
  14897. <param name="position" type="long"/>
  14898. <param name="buffer" type="byte[]"/>
  14899. <exception name="IOException" type="java.io.IOException"/>
  14900. </method>
  14901. <method name="toString" return="java.lang.String"
  14902. abstract="false" native="false" synchronized="false"
  14903. static="false" final="false" visibility="public"
  14904. deprecated="not deprecated">
  14905. <doc>
  14906. <![CDATA[toString method returns the superclass toString, but if the subclass
  14907. implements {@link IOStatisticsSource} then those statistics are
  14908. extracted and included in the output.
  14909. That is: statistics of subclasses are automatically reported.
  14910. @return a string value.]]>
  14911. </doc>
  14912. </method>
  14913. <doc>
  14914. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  14915. of RAF-style seek ability.]]>
  14916. </doc>
  14917. </class>
  14918. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  14919. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  14920. <class name="FsServerDefaults" extends="java.lang.Object"
  14921. abstract="false"
  14922. static="false" final="false" visibility="public"
  14923. deprecated="not deprecated">
  14924. <implements name="org.apache.hadoop.io.Writable"/>
  14925. <constructor name="FsServerDefaults"
  14926. static="false" final="false" visibility="public"
  14927. deprecated="not deprecated">
  14928. </constructor>
  14929. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  14930. static="false" final="false" visibility="public"
  14931. deprecated="not deprecated">
  14932. </constructor>
  14933. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  14934. static="false" final="false" visibility="public"
  14935. deprecated="not deprecated">
  14936. </constructor>
  14937. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  14938. static="false" final="false" visibility="public"
  14939. deprecated="not deprecated">
  14940. </constructor>
  14941. <method name="getBlockSize" return="long"
  14942. abstract="false" native="false" synchronized="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. </method>
  14946. <method name="getBytesPerChecksum" return="int"
  14947. abstract="false" native="false" synchronized="false"
  14948. static="false" final="false" visibility="public"
  14949. deprecated="not deprecated">
  14950. </method>
  14951. <method name="getWritePacketSize" return="int"
  14952. abstract="false" native="false" synchronized="false"
  14953. static="false" final="false" visibility="public"
  14954. deprecated="not deprecated">
  14955. </method>
  14956. <method name="getReplication" return="short"
  14957. abstract="false" native="false" synchronized="false"
  14958. static="false" final="false" visibility="public"
  14959. deprecated="not deprecated">
  14960. </method>
  14961. <method name="getFileBufferSize" return="int"
  14962. abstract="false" native="false" synchronized="false"
  14963. static="false" final="false" visibility="public"
  14964. deprecated="not deprecated">
  14965. </method>
  14966. <method name="getEncryptDataTransfer" return="boolean"
  14967. abstract="false" native="false" synchronized="false"
  14968. static="false" final="false" visibility="public"
  14969. deprecated="not deprecated">
  14970. </method>
  14971. <method name="getTrashInterval" return="long"
  14972. abstract="false" native="false" synchronized="false"
  14973. static="false" final="false" visibility="public"
  14974. deprecated="not deprecated">
  14975. </method>
  14976. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  14977. abstract="false" native="false" synchronized="false"
  14978. static="false" final="false" visibility="public"
  14979. deprecated="not deprecated">
  14980. </method>
  14981. <method name="getKeyProviderUri" return="java.lang.String"
  14982. abstract="false" native="false" synchronized="false"
  14983. static="false" final="false" visibility="public"
  14984. deprecated="not deprecated">
  14985. </method>
  14986. <method name="getDefaultStoragePolicyId" return="byte"
  14987. abstract="false" native="false" synchronized="false"
  14988. static="false" final="false" visibility="public"
  14989. deprecated="not deprecated">
  14990. </method>
  14991. <doc>
  14992. <![CDATA[Provides server default configuration values to clients.]]>
  14993. </doc>
  14994. </class>
  14995. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  14996. <!-- start class org.apache.hadoop.fs.FsStatus -->
  14997. <class name="FsStatus" extends="java.lang.Object"
  14998. abstract="false"
  14999. static="false" final="false" visibility="public"
  15000. deprecated="not deprecated">
  15001. <implements name="org.apache.hadoop.io.Writable"/>
  15002. <constructor name="FsStatus" type="long, long, long"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. <doc>
  15006. <![CDATA[Construct a FsStatus object, using the specified statistics.
  15007. @param capacity capacity.
  15008. @param used used.
  15009. @param remaining remaining.]]>
  15010. </doc>
  15011. </constructor>
  15012. <method name="getCapacity" return="long"
  15013. abstract="false" native="false" synchronized="false"
  15014. static="false" final="false" visibility="public"
  15015. deprecated="not deprecated">
  15016. <doc>
  15017. <![CDATA[Return the capacity in bytes of the file system.
  15018. @return capacity.]]>
  15019. </doc>
  15020. </method>
  15021. <method name="getUsed" return="long"
  15022. abstract="false" native="false" synchronized="false"
  15023. static="false" final="false" visibility="public"
  15024. deprecated="not deprecated">
  15025. <doc>
  15026. <![CDATA[Return the number of bytes used on the file system.
  15027. @return used.]]>
  15028. </doc>
  15029. </method>
  15030. <method name="getRemaining" return="long"
  15031. abstract="false" native="false" synchronized="false"
  15032. static="false" final="false" visibility="public"
  15033. deprecated="not deprecated">
  15034. <doc>
  15035. <![CDATA[Return the number of remaining bytes on the file system.
  15036. @return remaining.]]>
  15037. </doc>
  15038. </method>
  15039. <method name="write"
  15040. abstract="false" native="false" synchronized="false"
  15041. static="false" final="false" visibility="public"
  15042. deprecated="not deprecated">
  15043. <param name="out" type="java.io.DataOutput"/>
  15044. <exception name="IOException" type="java.io.IOException"/>
  15045. </method>
  15046. <method name="readFields"
  15047. abstract="false" native="false" synchronized="false"
  15048. static="false" final="false" visibility="public"
  15049. deprecated="not deprecated">
  15050. <param name="in" type="java.io.DataInput"/>
  15051. <exception name="IOException" type="java.io.IOException"/>
  15052. </method>
  15053. <doc>
  15054. <![CDATA[This class is used to represent the capacity, free and used space on a
  15055. {@link FileSystem}.]]>
  15056. </doc>
  15057. </class>
  15058. <!-- end class org.apache.hadoop.fs.FsStatus -->
  15059. <!-- start interface org.apache.hadoop.fs.FutureDataInputStreamBuilder -->
  15060. <interface name="FutureDataInputStreamBuilder" abstract="true"
  15061. static="false" final="false" visibility="public"
  15062. deprecated="not deprecated">
  15063. <implements name="org.apache.hadoop.fs.FSBuilder"/>
  15064. <method name="build" return="java.util.concurrent.CompletableFuture"
  15065. abstract="true" native="false" synchronized="false"
  15066. static="false" final="false" visibility="public"
  15067. deprecated="not deprecated">
  15068. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15069. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  15070. <exception name="IOException" type="java.io.IOException"/>
  15071. </method>
  15072. <method name="withFileStatus" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  15073. abstract="false" native="false" synchronized="false"
  15074. static="false" final="false" visibility="public"
  15075. deprecated="not deprecated">
  15076. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  15077. <doc>
  15078. <![CDATA[A FileStatus may be provided to the open request.
  15079. It is up to the implementation whether to use this or not.
  15080. @param status status: may be null
  15081. @return the builder.]]>
  15082. </doc>
  15083. </method>
  15084. <doc>
  15085. <![CDATA[Builder for input streams and subclasses whose return value is
  15086. actually a completable future: this allows for better asynchronous
  15087. operation.
  15088. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  15089. variants provide implementation-agnostic way to customize the builder.
  15090. Each FS-specific builder implementation can interpret the FS-specific
  15091. options accordingly, for example:
  15092. If the option is not related to the file system, the option will be ignored.
  15093. If the option is must, but not supported/known by the file system, an
  15094. {@link IllegalArgumentException} will be thrown.]]>
  15095. </doc>
  15096. </interface>
  15097. <!-- end interface org.apache.hadoop.fs.FutureDataInputStreamBuilder -->
  15098. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  15099. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  15100. abstract="false"
  15101. static="false" final="true" visibility="public"
  15102. deprecated="not deprecated">
  15103. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  15104. abstract="false" native="false" synchronized="false"
  15105. static="true" final="false" visibility="public"
  15106. deprecated="not deprecated">
  15107. </method>
  15108. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  15109. abstract="false" native="false" synchronized="false"
  15110. static="true" final="false" visibility="public"
  15111. deprecated="not deprecated">
  15112. <param name="name" type="java.lang.String"/>
  15113. </method>
  15114. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  15115. abstract="false" native="false" synchronized="true"
  15116. static="false" final="false" visibility="public"
  15117. deprecated="not deprecated">
  15118. <param name="name" type="java.lang.String"/>
  15119. <doc>
  15120. <![CDATA[Get the StorageStatistics object with the given name.
  15121. @param name The storage statistics object name.
  15122. @return The StorageStatistics object with the given name, or
  15123. null if there is none.]]>
  15124. </doc>
  15125. </method>
  15126. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  15127. abstract="false" native="false" synchronized="true"
  15128. static="false" final="false" visibility="public"
  15129. deprecated="not deprecated">
  15130. <param name="name" type="java.lang.String"/>
  15131. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  15132. <doc>
  15133. <![CDATA[Create or return the StorageStatistics object with the given name.
  15134. @param name The storage statistics object name.
  15135. @param provider An object which can create a new StorageStatistics
  15136. object if needed.
  15137. @return The StorageStatistics object with the given name.
  15138. @throws RuntimeException If the StorageStatisticsProvider provides a null
  15139. object or a new StorageStatistics object with the
  15140. wrong name.]]>
  15141. </doc>
  15142. </method>
  15143. <method name="reset"
  15144. abstract="false" native="false" synchronized="true"
  15145. static="false" final="false" visibility="public"
  15146. deprecated="not deprecated">
  15147. <doc>
  15148. <![CDATA[Reset all global storage statistics.]]>
  15149. </doc>
  15150. </method>
  15151. <method name="iterator" return="java.util.Iterator"
  15152. abstract="false" native="false" synchronized="true"
  15153. static="false" final="false" visibility="public"
  15154. deprecated="not deprecated">
  15155. <doc>
  15156. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  15157. statistics objects.
  15158. @return StorageStatistics Iterator.]]>
  15159. </doc>
  15160. </method>
  15161. <doc>
  15162. <![CDATA[Stores global storage statistics objects.]]>
  15163. </doc>
  15164. </class>
  15165. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  15166. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  15167. <class name="GlobFilter" extends="java.lang.Object"
  15168. abstract="false"
  15169. static="false" final="false" visibility="public"
  15170. deprecated="not deprecated">
  15171. <implements name="org.apache.hadoop.fs.PathFilter"/>
  15172. <constructor name="GlobFilter" type="java.lang.String"
  15173. static="false" final="false" visibility="public"
  15174. deprecated="not deprecated">
  15175. <exception name="IOException" type="java.io.IOException"/>
  15176. <doc>
  15177. <![CDATA[Creates a glob filter with the specified file pattern.
  15178. @param filePattern the file pattern.
  15179. @throws IOException thrown if the file pattern is incorrect.]]>
  15180. </doc>
  15181. </constructor>
  15182. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  15183. static="false" final="false" visibility="public"
  15184. deprecated="not deprecated">
  15185. <exception name="IOException" type="java.io.IOException"/>
  15186. <doc>
  15187. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  15188. @param filePattern the file pattern.
  15189. @param filter user filter in addition to the glob pattern.
  15190. @throws IOException thrown if the file pattern is incorrect.]]>
  15191. </doc>
  15192. </constructor>
  15193. <method name="hasPattern" return="boolean"
  15194. abstract="false" native="false" synchronized="false"
  15195. static="false" final="false" visibility="public"
  15196. deprecated="not deprecated">
  15197. </method>
  15198. <method name="accept" return="boolean"
  15199. abstract="false" native="false" synchronized="false"
  15200. static="false" final="false" visibility="public"
  15201. deprecated="not deprecated">
  15202. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15203. </method>
  15204. <doc>
  15205. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  15206. </doc>
  15207. </class>
  15208. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  15209. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  15210. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  15211. abstract="false"
  15212. static="false" final="false" visibility="public"
  15213. deprecated="not deprecated">
  15214. <constructor name="InvalidPathException" type="java.lang.String"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="not deprecated">
  15217. <doc>
  15218. <![CDATA[Constructs exception with the specified detail message.
  15219. @param path invalid path.]]>
  15220. </doc>
  15221. </constructor>
  15222. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  15223. static="false" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <doc>
  15226. <![CDATA[Constructs exception with the specified detail message.
  15227. @param path invalid path.
  15228. @param reason Reason <code>path</code> is invalid]]>
  15229. </doc>
  15230. </constructor>
  15231. <doc>
  15232. <![CDATA[Path string is invalid either because it has invalid characters or due to
  15233. other file system specific reasons.]]>
  15234. </doc>
  15235. </class>
  15236. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  15237. <!-- start class org.apache.hadoop.fs.InvalidPathHandleException -->
  15238. <class name="InvalidPathHandleException" extends="java.io.IOException"
  15239. abstract="false"
  15240. static="false" final="false" visibility="public"
  15241. deprecated="not deprecated">
  15242. <constructor name="InvalidPathHandleException" type="java.lang.String"
  15243. static="false" final="false" visibility="public"
  15244. deprecated="not deprecated">
  15245. </constructor>
  15246. <constructor name="InvalidPathHandleException" type="java.lang.String, java.lang.Throwable"
  15247. static="false" final="false" visibility="public"
  15248. deprecated="not deprecated">
  15249. </constructor>
  15250. <doc>
  15251. <![CDATA[Thrown when the constraints enoded in a {@link PathHandle} do not hold.
  15252. For example, if a handle were created with the default
  15253. {@link Options.HandleOpt#path()} constraints, a call to
  15254. {@link FileSystem#open(PathHandle)} would succeed if the file were
  15255. modified, but if a different file was at that location then it would throw
  15256. this exception.]]>
  15257. </doc>
  15258. </class>
  15259. <!-- end class org.apache.hadoop.fs.InvalidPathHandleException -->
  15260. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  15261. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  15262. abstract="false"
  15263. static="false" final="false" visibility="public"
  15264. deprecated="not deprecated">
  15265. <constructor name="LocalFileSystem"
  15266. static="false" final="false" visibility="public"
  15267. deprecated="not deprecated">
  15268. </constructor>
  15269. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  15270. static="false" final="false" visibility="public"
  15271. deprecated="not deprecated">
  15272. </constructor>
  15273. <method name="initialize"
  15274. abstract="false" native="false" synchronized="false"
  15275. static="false" final="false" visibility="public"
  15276. deprecated="not deprecated">
  15277. <param name="name" type="java.net.URI"/>
  15278. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15279. <exception name="IOException" type="java.io.IOException"/>
  15280. </method>
  15281. <method name="getScheme" return="java.lang.String"
  15282. abstract="false" native="false" synchronized="false"
  15283. static="false" final="false" visibility="public"
  15284. deprecated="not deprecated">
  15285. <doc>
  15286. <![CDATA[Return the protocol scheme for the FileSystem.
  15287. <p>
  15288. @return <code>file</code>]]>
  15289. </doc>
  15290. </method>
  15291. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  15292. abstract="false" native="false" synchronized="false"
  15293. static="false" final="false" visibility="public"
  15294. deprecated="not deprecated">
  15295. </method>
  15296. <method name="pathToFile" return="java.io.File"
  15297. abstract="false" native="false" synchronized="false"
  15298. static="false" final="false" visibility="public"
  15299. deprecated="not deprecated">
  15300. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15301. <doc>
  15302. <![CDATA[Convert a path to a File.
  15303. @param path the path.
  15304. @return file.]]>
  15305. </doc>
  15306. </method>
  15307. <method name="copyFromLocalFile"
  15308. abstract="false" native="false" synchronized="false"
  15309. static="false" final="false" visibility="public"
  15310. deprecated="not deprecated">
  15311. <param name="delSrc" type="boolean"/>
  15312. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15313. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15314. <exception name="IOException" type="java.io.IOException"/>
  15315. </method>
  15316. <method name="copyToLocalFile"
  15317. abstract="false" native="false" synchronized="false"
  15318. static="false" final="false" visibility="public"
  15319. deprecated="not deprecated">
  15320. <param name="delSrc" type="boolean"/>
  15321. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15322. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15323. <exception name="IOException" type="java.io.IOException"/>
  15324. </method>
  15325. <method name="reportChecksumFailure" return="boolean"
  15326. abstract="false" native="false" synchronized="false"
  15327. static="false" final="false" visibility="public"
  15328. deprecated="not deprecated">
  15329. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15330. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  15331. <param name="inPos" type="long"/>
  15332. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  15333. <param name="sumsPos" type="long"/>
  15334. <doc>
  15335. <![CDATA[Moves files to a bad file directory on the same device, so that their
  15336. storage will not be reused.]]>
  15337. </doc>
  15338. </method>
  15339. <method name="supportsSymlinks" return="boolean"
  15340. abstract="false" native="false" synchronized="false"
  15341. static="false" final="false" visibility="public"
  15342. deprecated="not deprecated">
  15343. </method>
  15344. <method name="createSymlink"
  15345. abstract="false" native="false" synchronized="false"
  15346. static="false" final="false" visibility="public"
  15347. deprecated="not deprecated">
  15348. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15349. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15350. <param name="createParent" type="boolean"/>
  15351. <exception name="IOException" type="java.io.IOException"/>
  15352. </method>
  15353. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="false" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15358. <exception name="IOException" type="java.io.IOException"/>
  15359. </method>
  15360. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15361. abstract="false" native="false" synchronized="false"
  15362. static="false" final="false" visibility="public"
  15363. deprecated="not deprecated">
  15364. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15365. <exception name="IOException" type="java.io.IOException"/>
  15366. </method>
  15367. <doc>
  15368. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  15369. </doc>
  15370. </class>
  15371. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  15372. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  15373. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  15374. abstract="false"
  15375. static="false" final="false" visibility="public"
  15376. deprecated="not deprecated">
  15377. <constructor name="LocatedFileStatus"
  15378. static="false" final="false" visibility="public"
  15379. deprecated="not deprecated">
  15380. </constructor>
  15381. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  15382. static="false" final="false" visibility="public"
  15383. deprecated="not deprecated">
  15384. <doc>
  15385. <![CDATA[Constructor
  15386. @param stat a file status
  15387. @param locations a file's block locations]]>
  15388. </doc>
  15389. </constructor>
  15390. <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[]"
  15391. static="false" final="false" visibility="public"
  15392. deprecated="not deprecated">
  15393. <doc>
  15394. <![CDATA[Constructor
  15395. @param length a file's length
  15396. @param isdir if the path is a directory
  15397. @param block_replication the file's replication factor
  15398. @param blocksize a file's block size
  15399. @param modification_time a file's modification time
  15400. @param access_time a file's access time
  15401. @param permission a file's permission
  15402. @param owner a file's owner
  15403. @param group a file's group
  15404. @param symlink symlink if the path is a symbolic link
  15405. @param path the path's qualified name
  15406. @param locations a file's block locations]]>
  15407. </doc>
  15408. </constructor>
  15409. <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[]"
  15410. static="false" final="false" visibility="public"
  15411. deprecated="not deprecated">
  15412. <doc>
  15413. <![CDATA[Constructor.
  15414. @param length a file's length
  15415. @param isdir if the path is a directory
  15416. @param block_replication the file's replication factor
  15417. @param blocksize a file's block size
  15418. @param modification_time a file's modification time
  15419. @param access_time a file's access time
  15420. @param permission a file's permission
  15421. @param owner a file's owner
  15422. @param group a file's group
  15423. @param symlink symlink if the path is a symbolic link
  15424. @param path the path's qualified name
  15425. @param hasAcl entity has associated ACLs
  15426. @param isEncrypted entity is encrypted
  15427. @param isErasureCoded entity is erasure coded
  15428. @param locations a file's block locations]]>
  15429. </doc>
  15430. </constructor>
  15431. <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[]"
  15432. static="false" final="false" visibility="public"
  15433. deprecated="not deprecated">
  15434. <doc>
  15435. <![CDATA[Constructor.
  15436. @param length a file's length
  15437. @param isdir if the path is a directory
  15438. @param block_replication the file's replication factor
  15439. @param blocksize a file's block size
  15440. @param modification_time a file's modification time
  15441. @param access_time a file's access time
  15442. @param permission a file's permission
  15443. @param owner a file's owner
  15444. @param group a file's group
  15445. @param symlink symlink if the path is a symbolic link
  15446. @param path the path's qualified name
  15447. @param attr Attribute flags (See {@link FileStatus.AttrFlags}).
  15448. @param locations a file's block locations]]>
  15449. </doc>
  15450. </constructor>
  15451. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15452. abstract="false" native="false" synchronized="false"
  15453. static="false" final="false" visibility="public"
  15454. deprecated="not deprecated">
  15455. <doc>
  15456. <![CDATA[Get the file's block locations
  15457. In HDFS, the returned BlockLocation will have different formats for
  15458. replicated and erasure coded file.
  15459. Please refer to
  15460. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  15461. for more details.
  15462. @return the file's block locations]]>
  15463. </doc>
  15464. </method>
  15465. <method name="setBlockLocations"
  15466. abstract="false" native="false" synchronized="false"
  15467. static="false" final="false" visibility="protected"
  15468. deprecated="not deprecated">
  15469. <param name="locations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  15470. <doc>
  15471. <![CDATA[Hook for subclasses to lazily set block locations. The {@link #locations}
  15472. field should be null before this is called.
  15473. @param locations Block locations for this instance.]]>
  15474. </doc>
  15475. </method>
  15476. <method name="compareTo" return="int"
  15477. abstract="false" native="false" synchronized="false"
  15478. static="false" final="false" visibility="public"
  15479. deprecated="not deprecated">
  15480. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  15481. <doc>
  15482. <![CDATA[Compare this FileStatus to another FileStatus
  15483. @param o the FileStatus to be compared.
  15484. @return a negative integer, zero, or a positive integer as this object
  15485. is less than, equal to, or greater than the specified object.]]>
  15486. </doc>
  15487. </method>
  15488. <method name="equals" return="boolean"
  15489. abstract="false" native="false" synchronized="false"
  15490. static="false" final="false" visibility="public"
  15491. deprecated="not deprecated">
  15492. <param name="o" type="java.lang.Object"/>
  15493. <doc>
  15494. <![CDATA[Compare if this object is equal to another object
  15495. @param o the object to be compared.
  15496. @return true if two file status has the same path name; false if not.]]>
  15497. </doc>
  15498. </method>
  15499. <method name="hashCode" return="int"
  15500. abstract="false" native="false" synchronized="false"
  15501. static="false" final="false" visibility="public"
  15502. deprecated="not deprecated">
  15503. <doc>
  15504. <![CDATA[Returns a hash code value for the object, which is defined as
  15505. the hash code of the path name.
  15506. @return a hash code value for the path name.]]>
  15507. </doc>
  15508. </method>
  15509. <doc>
  15510. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  15511. </doc>
  15512. </class>
  15513. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  15514. <!-- start interface org.apache.hadoop.fs.MultipartUploader -->
  15515. <interface name="MultipartUploader" abstract="true"
  15516. static="false" final="false" visibility="public"
  15517. deprecated="not deprecated">
  15518. <implements name="java.io.Closeable"/>
  15519. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  15520. <method name="startUpload" return="java.util.concurrent.CompletableFuture"
  15521. abstract="true" native="false" synchronized="false"
  15522. static="false" final="false" visibility="public"
  15523. deprecated="not deprecated">
  15524. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15525. <exception name="IOException" type="java.io.IOException"/>
  15526. <doc>
  15527. <![CDATA[Initialize a multipart upload.
  15528. @param filePath Target path for upload.
  15529. @return unique identifier associating part uploads.
  15530. @throws IOException IO failure]]>
  15531. </doc>
  15532. </method>
  15533. <method name="putPart" return="java.util.concurrent.CompletableFuture"
  15534. abstract="true" native="false" synchronized="false"
  15535. static="false" final="false" visibility="public"
  15536. deprecated="not deprecated">
  15537. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  15538. <param name="partNumber" type="int"/>
  15539. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15540. <param name="inputStream" type="java.io.InputStream"/>
  15541. <param name="lengthInBytes" type="long"/>
  15542. <exception name="IOException" type="java.io.IOException"/>
  15543. <doc>
  15544. <![CDATA[Put part as part of a multipart upload.
  15545. It is possible to have parts uploaded in any order (or in parallel).
  15546. @param uploadId Identifier from {@link #startUpload(Path)}.
  15547. @param partNumber Index of the part relative to others.
  15548. @param filePath Target path for upload (as {@link #startUpload(Path)}).
  15549. @param inputStream Data for this part. Implementations MUST close this
  15550. stream after reading in the data.
  15551. @param lengthInBytes Target length to read from the stream.
  15552. @return unique PartHandle identifier for the uploaded part.
  15553. @throws IOException IO failure]]>
  15554. </doc>
  15555. </method>
  15556. <method name="complete" return="java.util.concurrent.CompletableFuture"
  15557. abstract="true" native="false" synchronized="false"
  15558. static="false" final="false" visibility="public"
  15559. deprecated="not deprecated">
  15560. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  15561. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15562. <param name="handles" type="java.util.Map"/>
  15563. <exception name="IOException" type="java.io.IOException"/>
  15564. <doc>
  15565. <![CDATA[Complete a multipart upload.
  15566. @param uploadId Identifier from {@link #startUpload(Path)}.
  15567. @param filePath Target path for upload (as {@link #startUpload(Path)}.
  15568. @param handles non-empty map of part number to part handle.
  15569. from {@link #putPart(UploadHandle, int, Path, InputStream, long)}.
  15570. @return unique PathHandle identifier for the uploaded file.
  15571. @throws IOException IO failure]]>
  15572. </doc>
  15573. </method>
  15574. <method name="abort" return="java.util.concurrent.CompletableFuture"
  15575. abstract="true" native="false" synchronized="false"
  15576. static="false" final="false" visibility="public"
  15577. deprecated="not deprecated">
  15578. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  15579. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15580. <exception name="IOException" type="java.io.IOException"/>
  15581. <doc>
  15582. <![CDATA[Aborts a multipart upload.
  15583. @param uploadId Identifier from {@link #startUpload(Path)}.
  15584. @param filePath Target path for upload (same as {@link #startUpload(Path)}.
  15585. @throws IOException IO failure
  15586. @return a future; the operation will have completed]]>
  15587. </doc>
  15588. </method>
  15589. <method name="abortUploadsUnderPath" return="java.util.concurrent.CompletableFuture"
  15590. abstract="true" native="false" synchronized="false"
  15591. static="false" final="false" visibility="public"
  15592. deprecated="not deprecated">
  15593. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15594. <exception name="IOException" type="java.io.IOException"/>
  15595. <doc>
  15596. <![CDATA[Best effort attempt to aborts multipart uploads under a path.
  15597. Not all implementations support this, and those which do may
  15598. be vulnerable to eventually consistent listings of current uploads
  15599. -some may be missed.
  15600. @param path path to abort uploads under.
  15601. @return a future to the number of entries aborted;
  15602. -1 if aborting is unsupported
  15603. @throws IOException IO failure]]>
  15604. </doc>
  15605. </method>
  15606. <doc>
  15607. <![CDATA[MultipartUploader is an interface for copying files multipart and across
  15608. multiple nodes.
  15609. <p>
  15610. The interface extends {@link IOStatisticsSource} so that there is no
  15611. need to cast an instance to see if is a source of statistics.
  15612. However, implementations MAY return null for their actual statistics.
  15613. </p>]]>
  15614. </doc>
  15615. </interface>
  15616. <!-- end interface org.apache.hadoop.fs.MultipartUploader -->
  15617. <!-- start class org.apache.hadoop.fs.Options -->
  15618. <class name="Options" extends="java.lang.Object"
  15619. abstract="false"
  15620. static="false" final="true" visibility="public"
  15621. deprecated="not deprecated">
  15622. <constructor name="Options"
  15623. static="false" final="false" visibility="public"
  15624. deprecated="not deprecated">
  15625. </constructor>
  15626. <doc>
  15627. <![CDATA[This class contains options related to file system operations.]]>
  15628. </doc>
  15629. </class>
  15630. <!-- end class org.apache.hadoop.fs.Options -->
  15631. <!-- start class org.apache.hadoop.fs.Options.OpenFileOptions -->
  15632. <class name="Options.OpenFileOptions" extends="java.lang.Object"
  15633. abstract="false"
  15634. static="true" final="true" visibility="public"
  15635. deprecated="not deprecated">
  15636. <field name="FS_OPTION_OPENFILE" type="java.lang.String"
  15637. transient="false" volatile="false"
  15638. static="true" final="true" visibility="public"
  15639. deprecated="not deprecated">
  15640. <doc>
  15641. <![CDATA[Prefix for all openFile options: {@value}.]]>
  15642. </doc>
  15643. </field>
  15644. <field name="FS_OPTION_OPENFILE_LENGTH" type="java.lang.String"
  15645. transient="false" volatile="false"
  15646. static="true" final="true" visibility="public"
  15647. deprecated="not deprecated">
  15648. <doc>
  15649. <![CDATA[OpenFile option for file length: {@value}.]]>
  15650. </doc>
  15651. </field>
  15652. <field name="FS_OPTION_OPENFILE_SPLIT_START" type="java.lang.String"
  15653. transient="false" volatile="false"
  15654. static="true" final="true" visibility="public"
  15655. deprecated="not deprecated">
  15656. <doc>
  15657. <![CDATA[OpenFile option for split start: {@value}.]]>
  15658. </doc>
  15659. </field>
  15660. <field name="FS_OPTION_OPENFILE_SPLIT_END" type="java.lang.String"
  15661. transient="false" volatile="false"
  15662. static="true" final="true" visibility="public"
  15663. deprecated="not deprecated">
  15664. <doc>
  15665. <![CDATA[OpenFile option for split end: {@value}.]]>
  15666. </doc>
  15667. </field>
  15668. <field name="FS_OPTION_OPENFILE_BUFFER_SIZE" type="java.lang.String"
  15669. transient="false" volatile="false"
  15670. static="true" final="true" visibility="public"
  15671. deprecated="not deprecated">
  15672. <doc>
  15673. <![CDATA[OpenFile option for buffer size: {@value}.]]>
  15674. </doc>
  15675. </field>
  15676. <field name="FS_OPTION_OPENFILE_READ_POLICY" type="java.lang.String"
  15677. transient="false" volatile="false"
  15678. static="true" final="true" visibility="public"
  15679. deprecated="not deprecated">
  15680. <doc>
  15681. <![CDATA[OpenFile option for read policies: {@value}.]]>
  15682. </doc>
  15683. </field>
  15684. <field name="FS_OPTION_OPENFILE_STANDARD_OPTIONS" type="java.util.Set"
  15685. transient="false" volatile="false"
  15686. static="true" final="true" visibility="public"
  15687. deprecated="not deprecated">
  15688. <doc>
  15689. <![CDATA[Set of standard options which openFile implementations
  15690. MUST recognize, even if they ignore the actual values.]]>
  15691. </doc>
  15692. </field>
  15693. <field name="FS_OPTION_OPENFILE_READ_POLICY_ADAPTIVE" type="java.lang.String"
  15694. transient="false" volatile="false"
  15695. static="true" final="true" visibility="public"
  15696. deprecated="not deprecated">
  15697. <doc>
  15698. <![CDATA[Read policy for adaptive IO: {@value}.]]>
  15699. </doc>
  15700. </field>
  15701. <field name="FS_OPTION_OPENFILE_READ_POLICY_DEFAULT" type="java.lang.String"
  15702. transient="false" volatile="false"
  15703. static="true" final="true" visibility="public"
  15704. deprecated="not deprecated">
  15705. <doc>
  15706. <![CDATA[Read policy {@value} -whateve the implementation does by default.]]>
  15707. </doc>
  15708. </field>
  15709. <field name="FS_OPTION_OPENFILE_READ_POLICY_RANDOM" type="java.lang.String"
  15710. transient="false" volatile="false"
  15711. static="true" final="true" visibility="public"
  15712. deprecated="not deprecated">
  15713. <doc>
  15714. <![CDATA[Read policy for random IO: {@value}.]]>
  15715. </doc>
  15716. </field>
  15717. <field name="FS_OPTION_OPENFILE_READ_POLICY_SEQUENTIAL" type="java.lang.String"
  15718. transient="false" volatile="false"
  15719. static="true" final="true" visibility="public"
  15720. deprecated="not deprecated">
  15721. <doc>
  15722. <![CDATA[Read policy for sequential IO: {@value}.]]>
  15723. </doc>
  15724. </field>
  15725. <field name="FS_OPTION_OPENFILE_READ_POLICY_VECTOR" type="java.lang.String"
  15726. transient="false" volatile="false"
  15727. static="true" final="true" visibility="public"
  15728. deprecated="not deprecated">
  15729. <doc>
  15730. <![CDATA[Vectored IO API to be used: {@value}.]]>
  15731. </doc>
  15732. </field>
  15733. <field name="FS_OPTION_OPENFILE_READ_POLICY_WHOLE_FILE" type="java.lang.String"
  15734. transient="false" volatile="false"
  15735. static="true" final="true" visibility="public"
  15736. deprecated="not deprecated">
  15737. <doc>
  15738. <![CDATA[Whole file to be read, end-to-end: {@value}.]]>
  15739. </doc>
  15740. </field>
  15741. <field name="FS_OPTION_OPENFILE_READ_POLICIES" type="java.util.Set"
  15742. transient="false" volatile="false"
  15743. static="true" final="true" visibility="public"
  15744. deprecated="not deprecated">
  15745. <doc>
  15746. <![CDATA[All the current read policies as a set.]]>
  15747. </doc>
  15748. </field>
  15749. <doc>
  15750. <![CDATA[The standard {@code openFile()} options.]]>
  15751. </doc>
  15752. </class>
  15753. <!-- end class org.apache.hadoop.fs.Options.OpenFileOptions -->
  15754. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  15755. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  15756. abstract="false"
  15757. static="false" final="false" visibility="public"
  15758. deprecated="not deprecated">
  15759. <constructor name="ParentNotDirectoryException"
  15760. static="false" final="false" visibility="public"
  15761. deprecated="not deprecated">
  15762. </constructor>
  15763. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  15764. static="false" final="false" visibility="public"
  15765. deprecated="not deprecated">
  15766. </constructor>
  15767. <doc>
  15768. <![CDATA[Indicates that the parent of specified Path is not a directory
  15769. as expected.]]>
  15770. </doc>
  15771. </class>
  15772. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  15773. <!-- start interface org.apache.hadoop.fs.PartHandle -->
  15774. <interface name="PartHandle" abstract="true"
  15775. static="false" final="false" visibility="public"
  15776. deprecated="not deprecated">
  15777. <implements name="java.io.Serializable"/>
  15778. <method name="toByteArray" return="byte[]"
  15779. abstract="false" native="false" synchronized="false"
  15780. static="false" final="false" visibility="public"
  15781. deprecated="not deprecated">
  15782. <doc>
  15783. <![CDATA[@return Serialized from in bytes.]]>
  15784. </doc>
  15785. </method>
  15786. <method name="bytes" return="java.nio.ByteBuffer"
  15787. abstract="true" native="false" synchronized="false"
  15788. static="false" final="false" visibility="public"
  15789. deprecated="not deprecated">
  15790. </method>
  15791. <method name="equals" return="boolean"
  15792. abstract="true" native="false" synchronized="false"
  15793. static="false" final="false" visibility="public"
  15794. deprecated="not deprecated">
  15795. <param name="other" type="java.lang.Object"/>
  15796. </method>
  15797. <doc>
  15798. <![CDATA[Opaque, serializable reference to a part id for multipart uploads.]]>
  15799. </doc>
  15800. </interface>
  15801. <!-- end interface org.apache.hadoop.fs.PartHandle -->
  15802. <!-- start class org.apache.hadoop.fs.PartialListing -->
  15803. <class name="PartialListing" extends="java.lang.Object"
  15804. abstract="false"
  15805. static="false" final="false" visibility="public"
  15806. deprecated="not deprecated">
  15807. <constructor name="PartialListing" type="org.apache.hadoop.fs.Path, java.util.List"
  15808. static="false" final="false" visibility="public"
  15809. deprecated="not deprecated">
  15810. </constructor>
  15811. <constructor name="PartialListing" type="org.apache.hadoop.fs.Path, org.apache.hadoop.ipc.RemoteException"
  15812. static="false" final="false" visibility="public"
  15813. deprecated="not deprecated">
  15814. </constructor>
  15815. <method name="get" return="java.util.List"
  15816. abstract="false" native="false" synchronized="false"
  15817. static="false" final="false" visibility="public"
  15818. deprecated="not deprecated">
  15819. <exception name="IOException" type="java.io.IOException"/>
  15820. <doc>
  15821. <![CDATA[Partial listing of the path being listed. In the case where the path is
  15822. a file. The list will be a singleton with the file itself.
  15823. @return Partial listing of the path being listed.
  15824. @throws IOException if there was an exception getting the listing.]]>
  15825. </doc>
  15826. </method>
  15827. <method name="getListedPath" return="org.apache.hadoop.fs.Path"
  15828. abstract="false" native="false" synchronized="false"
  15829. static="false" final="false" visibility="public"
  15830. deprecated="not deprecated">
  15831. <doc>
  15832. <![CDATA[Path being listed.
  15833. @return the path being listed.]]>
  15834. </doc>
  15835. </method>
  15836. <method name="toString" return="java.lang.String"
  15837. abstract="false" native="false" synchronized="false"
  15838. static="false" final="false" visibility="public"
  15839. deprecated="not deprecated">
  15840. </method>
  15841. <doc>
  15842. <![CDATA[<p>
  15843. A partial listing of the children of a parent directory. Since it is a
  15844. partial listing, multiple PartialListing may need to be combined to obtain
  15845. the full listing of a parent directory.
  15846. </p>
  15847. ListingBatch behaves similar to a Future, in that getting the result via
  15848. {@link #get()} will throw an Exception if there was a failure.]]>
  15849. </doc>
  15850. </class>
  15851. <!-- end class org.apache.hadoop.fs.PartialListing -->
  15852. <!-- start class org.apache.hadoop.fs.Path -->
  15853. <class name="Path" extends="java.lang.Object"
  15854. abstract="false"
  15855. static="false" final="false" visibility="public"
  15856. deprecated="not deprecated">
  15857. <implements name="java.lang.Comparable"/>
  15858. <implements name="java.io.Serializable"/>
  15859. <implements name="java.io.ObjectInputValidation"/>
  15860. <constructor name="Path" type="java.lang.String, java.lang.String"
  15861. static="false" final="false" visibility="public"
  15862. deprecated="not deprecated">
  15863. <doc>
  15864. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15865. @param parent the parent path
  15866. @param child the child path]]>
  15867. </doc>
  15868. </constructor>
  15869. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  15870. static="false" final="false" visibility="public"
  15871. deprecated="not deprecated">
  15872. <doc>
  15873. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15874. @param parent the parent path
  15875. @param child the child path]]>
  15876. </doc>
  15877. </constructor>
  15878. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  15879. static="false" final="false" visibility="public"
  15880. deprecated="not deprecated">
  15881. <doc>
  15882. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15883. @param parent the parent path
  15884. @param child the child path]]>
  15885. </doc>
  15886. </constructor>
  15887. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  15888. static="false" final="false" visibility="public"
  15889. deprecated="not deprecated">
  15890. <doc>
  15891. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15892. @param parent the parent path
  15893. @param child the child path]]>
  15894. </doc>
  15895. </constructor>
  15896. <constructor name="Path" type="java.lang.String"
  15897. static="false" final="false" visibility="public"
  15898. deprecated="not deprecated">
  15899. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15900. <doc>
  15901. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  15902. unescaped elements and some additional normalization.
  15903. @param pathString the path string]]>
  15904. </doc>
  15905. </constructor>
  15906. <constructor name="Path" type="java.net.URI"
  15907. static="false" final="false" visibility="public"
  15908. deprecated="not deprecated">
  15909. <doc>
  15910. <![CDATA[Construct a path from a URI
  15911. @param aUri the source URI]]>
  15912. </doc>
  15913. </constructor>
  15914. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  15915. static="false" final="false" visibility="public"
  15916. deprecated="not deprecated">
  15917. <doc>
  15918. <![CDATA[Construct a Path from components.
  15919. @param scheme the scheme
  15920. @param authority the authority
  15921. @param path the path]]>
  15922. </doc>
  15923. </constructor>
  15924. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  15925. abstract="false" native="false" synchronized="false"
  15926. static="true" final="false" visibility="public"
  15927. deprecated="not deprecated">
  15928. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15929. <doc>
  15930. <![CDATA[Return a version of the given Path without the scheme information.
  15931. @param path the source Path
  15932. @return a copy of this Path without the scheme information]]>
  15933. </doc>
  15934. </method>
  15935. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  15936. abstract="false" native="false" synchronized="false"
  15937. static="true" final="false" visibility="public"
  15938. deprecated="not deprecated">
  15939. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  15940. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  15941. <doc>
  15942. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  15943. The returned path has the scheme and authority of the first path. On
  15944. Windows, the drive specification in the second path is discarded.
  15945. @param path1 the first path
  15946. @param path2 the second path, to be appended relative to path1
  15947. @return the merged path]]>
  15948. </doc>
  15949. </method>
  15950. <method name="isWindowsAbsolutePath" return="boolean"
  15951. abstract="false" native="false" synchronized="false"
  15952. static="true" final="false" visibility="public"
  15953. deprecated="not deprecated">
  15954. <param name="pathString" type="java.lang.String"/>
  15955. <param name="slashed" type="boolean"/>
  15956. <doc>
  15957. <![CDATA[Determine whether a given path string represents an absolute path on
  15958. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  15959. @param pathString the path string to evaluate
  15960. @param slashed true if the given path is prefixed with "/"
  15961. @return true if the supplied path looks like an absolute path with a Windows
  15962. drive-specifier]]>
  15963. </doc>
  15964. </method>
  15965. <method name="toUri" return="java.net.URI"
  15966. abstract="false" native="false" synchronized="false"
  15967. static="false" final="false" visibility="public"
  15968. deprecated="not deprecated">
  15969. <doc>
  15970. <![CDATA[Convert this Path to a URI.
  15971. @return this Path as a URI]]>
  15972. </doc>
  15973. </method>
  15974. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  15975. abstract="false" native="false" synchronized="false"
  15976. static="false" final="false" visibility="public"
  15977. deprecated="not deprecated">
  15978. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15979. <exception name="IOException" type="java.io.IOException"/>
  15980. <doc>
  15981. <![CDATA[Return the FileSystem that owns this Path.
  15982. @param conf the configuration to use when resolving the FileSystem
  15983. @return the FileSystem that owns this Path
  15984. @throws java.io.IOException thrown if there's an issue resolving the
  15985. FileSystem]]>
  15986. </doc>
  15987. </method>
  15988. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  15989. abstract="false" native="false" synchronized="false"
  15990. static="false" final="false" visibility="public"
  15991. deprecated="not deprecated">
  15992. <doc>
  15993. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  15994. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  15995. is null.
  15996. @return whether the path is absolute and the URI has no scheme nor
  15997. authority parts]]>
  15998. </doc>
  15999. </method>
  16000. <method name="isUriPathAbsolute" return="boolean"
  16001. abstract="false" native="false" synchronized="false"
  16002. static="false" final="false" visibility="public"
  16003. deprecated="not deprecated">
  16004. <doc>
  16005. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  16006. absolute.
  16007. @return whether this URI's path is absolute]]>
  16008. </doc>
  16009. </method>
  16010. <method name="isAbsolute" return="boolean"
  16011. abstract="false" native="false" synchronized="false"
  16012. static="false" final="false" visibility="public"
  16013. deprecated="not deprecated">
  16014. <doc>
  16015. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  16016. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  16017. @return whether this URI's path is absolute]]>
  16018. </doc>
  16019. </method>
  16020. <method name="isRoot" return="boolean"
  16021. abstract="false" native="false" synchronized="false"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <doc>
  16025. <![CDATA[Returns true if and only if this path represents the root of a file system.
  16026. @return true if and only if this path represents the root of a file system]]>
  16027. </doc>
  16028. </method>
  16029. <method name="getName" return="java.lang.String"
  16030. abstract="false" native="false" synchronized="false"
  16031. static="false" final="false" visibility="public"
  16032. deprecated="not deprecated">
  16033. <doc>
  16034. <![CDATA[Returns the final component of this path.
  16035. @return the final component of this path]]>
  16036. </doc>
  16037. </method>
  16038. <method name="getParent" return="org.apache.hadoop.fs.Path"
  16039. abstract="false" native="false" synchronized="false"
  16040. static="false" final="false" visibility="public"
  16041. deprecated="not deprecated">
  16042. <doc>
  16043. <![CDATA[Returns the parent of a path or null if at root.
  16044. @return the parent of a path or null if at root]]>
  16045. </doc>
  16046. </method>
  16047. <method name="suffix" return="org.apache.hadoop.fs.Path"
  16048. abstract="false" native="false" synchronized="false"
  16049. static="false" final="false" visibility="public"
  16050. deprecated="not deprecated">
  16051. <param name="suffix" type="java.lang.String"/>
  16052. <doc>
  16053. <![CDATA[Adds a suffix to the final name in the path.
  16054. @param suffix the suffix to add
  16055. @return a new path with the suffix added]]>
  16056. </doc>
  16057. </method>
  16058. <method name="toString" return="java.lang.String"
  16059. abstract="false" native="false" synchronized="false"
  16060. static="false" final="false" visibility="public"
  16061. deprecated="not deprecated">
  16062. </method>
  16063. <method name="equals" return="boolean"
  16064. abstract="false" native="false" synchronized="false"
  16065. static="false" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. <param name="o" type="java.lang.Object"/>
  16068. </method>
  16069. <method name="hashCode" return="int"
  16070. abstract="false" native="false" synchronized="false"
  16071. static="false" final="false" visibility="public"
  16072. deprecated="not deprecated">
  16073. </method>
  16074. <method name="compareTo" return="int"
  16075. abstract="false" native="false" synchronized="false"
  16076. static="false" final="false" visibility="public"
  16077. deprecated="not deprecated">
  16078. <param name="o" type="org.apache.hadoop.fs.Path"/>
  16079. </method>
  16080. <method name="depth" return="int"
  16081. abstract="false" native="false" synchronized="false"
  16082. static="false" final="false" visibility="public"
  16083. deprecated="not deprecated">
  16084. <doc>
  16085. <![CDATA[Returns the number of elements in this path.
  16086. @return the number of elements in this path]]>
  16087. </doc>
  16088. </method>
  16089. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  16090. abstract="false" native="false" synchronized="false"
  16091. static="false" final="false" visibility="public"
  16092. deprecated="use {@link #makeQualified(URI, Path)}">
  16093. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16094. <doc>
  16095. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  16096. directory.
  16097. @param fs the target FileSystem
  16098. @return a qualified path object for the FileSystem's working directory
  16099. @deprecated use {@link #makeQualified(URI, Path)}]]>
  16100. </doc>
  16101. </method>
  16102. <method name="validateObject"
  16103. abstract="false" native="false" synchronized="false"
  16104. static="false" final="false" visibility="public"
  16105. deprecated="not deprecated">
  16106. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  16107. <doc>
  16108. <![CDATA[Validate the contents of a deserialized Path, so as
  16109. to defend against malicious object streams.
  16110. @throws InvalidObjectException if there's no URI]]>
  16111. </doc>
  16112. </method>
  16113. <field name="SEPARATOR" type="java.lang.String"
  16114. transient="false" volatile="false"
  16115. static="true" final="true" visibility="public"
  16116. deprecated="not deprecated">
  16117. <doc>
  16118. <![CDATA[The directory separator, a slash.]]>
  16119. </doc>
  16120. </field>
  16121. <field name="SEPARATOR_CHAR" type="char"
  16122. transient="false" volatile="false"
  16123. static="true" final="true" visibility="public"
  16124. deprecated="not deprecated">
  16125. <doc>
  16126. <![CDATA[The directory separator, a slash, as a character.]]>
  16127. </doc>
  16128. </field>
  16129. <field name="CUR_DIR" type="java.lang.String"
  16130. transient="false" volatile="false"
  16131. static="true" final="true" visibility="public"
  16132. deprecated="not deprecated">
  16133. <doc>
  16134. <![CDATA[The current directory, ".".]]>
  16135. </doc>
  16136. </field>
  16137. <field name="WINDOWS" type="boolean"
  16138. transient="false" volatile="false"
  16139. static="true" final="true" visibility="public"
  16140. deprecated="not deprecated">
  16141. <doc>
  16142. <![CDATA[Whether the current host is a Windows machine.]]>
  16143. </doc>
  16144. </field>
  16145. <doc>
  16146. <![CDATA[Names a file or directory in a {@link FileSystem}.
  16147. Path strings use slash as the directory separator.]]>
  16148. </doc>
  16149. </class>
  16150. <!-- end class org.apache.hadoop.fs.Path -->
  16151. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  16152. <interface name="PathFilter" abstract="true"
  16153. static="false" final="false" visibility="public"
  16154. deprecated="not deprecated">
  16155. <method name="accept" return="boolean"
  16156. abstract="true" native="false" synchronized="false"
  16157. static="false" final="false" visibility="public"
  16158. deprecated="not deprecated">
  16159. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16160. <doc>
  16161. <![CDATA[Tests whether or not the specified abstract pathname should be
  16162. included in a pathname list.
  16163. @param path The abstract pathname to be tested
  16164. @return <code>true</code> if and only if <code>pathname</code>
  16165. should be included]]>
  16166. </doc>
  16167. </method>
  16168. </interface>
  16169. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  16170. <!-- start interface org.apache.hadoop.fs.PathHandle -->
  16171. <interface name="PathHandle" abstract="true"
  16172. static="false" final="false" visibility="public"
  16173. deprecated="not deprecated">
  16174. <implements name="java.io.Serializable"/>
  16175. <method name="toByteArray" return="byte[]"
  16176. abstract="false" native="false" synchronized="false"
  16177. static="false" final="false" visibility="public"
  16178. deprecated="not deprecated">
  16179. <doc>
  16180. <![CDATA[@return Serialized form in bytes.]]>
  16181. </doc>
  16182. </method>
  16183. <method name="bytes" return="java.nio.ByteBuffer"
  16184. abstract="true" native="false" synchronized="false"
  16185. static="false" final="false" visibility="public"
  16186. deprecated="not deprecated">
  16187. <doc>
  16188. <![CDATA[Get the bytes of this path handle.
  16189. @return the bytes to get to the process completing the upload.]]>
  16190. </doc>
  16191. </method>
  16192. <method name="equals" return="boolean"
  16193. abstract="true" native="false" synchronized="false"
  16194. static="false" final="false" visibility="public"
  16195. deprecated="not deprecated">
  16196. <param name="other" type="java.lang.Object"/>
  16197. </method>
  16198. <doc>
  16199. <![CDATA[Opaque, serializable reference to an entity in the FileSystem. May contain
  16200. metadata sufficient to resolve or verify subsequent accesses independent of
  16201. other modifications to the FileSystem.]]>
  16202. </doc>
  16203. </interface>
  16204. <!-- end interface org.apache.hadoop.fs.PathHandle -->
  16205. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  16206. <interface name="PositionedReadable" abstract="true"
  16207. static="false" final="false" visibility="public"
  16208. deprecated="not deprecated">
  16209. <method name="read" return="int"
  16210. abstract="true" native="false" synchronized="false"
  16211. static="false" final="false" visibility="public"
  16212. deprecated="not deprecated">
  16213. <param name="position" type="long"/>
  16214. <param name="buffer" type="byte[]"/>
  16215. <param name="offset" type="int"/>
  16216. <param name="length" type="int"/>
  16217. <exception name="IOException" type="java.io.IOException"/>
  16218. <doc>
  16219. <![CDATA[Read up to the specified number of bytes, from a given
  16220. position within a file, and return the number of bytes read. This does not
  16221. change the current offset of a file, and is thread-safe.
  16222. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  16223. @param position position within file
  16224. @param buffer destination buffer
  16225. @param offset offset in the buffer
  16226. @param length number of bytes to read
  16227. @return actual number of bytes read; -1 means "none"
  16228. @throws IOException IO problems.]]>
  16229. </doc>
  16230. </method>
  16231. <method name="readFully"
  16232. abstract="true" native="false" synchronized="false"
  16233. static="false" final="false" visibility="public"
  16234. deprecated="not deprecated">
  16235. <param name="position" type="long"/>
  16236. <param name="buffer" type="byte[]"/>
  16237. <param name="offset" type="int"/>
  16238. <param name="length" type="int"/>
  16239. <exception name="IOException" type="java.io.IOException"/>
  16240. <doc>
  16241. <![CDATA[Read the specified number of bytes, from a given
  16242. position within a file. This does not
  16243. change the current offset of a file, and is thread-safe.
  16244. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  16245. @param position position within file
  16246. @param buffer destination buffer
  16247. @param offset offset in the buffer
  16248. @param length number of bytes to read
  16249. @throws IOException IO problems.
  16250. @throws EOFException the end of the data was reached before
  16251. the read operation completed]]>
  16252. </doc>
  16253. </method>
  16254. <method name="readFully"
  16255. abstract="true" native="false" synchronized="false"
  16256. static="false" final="false" visibility="public"
  16257. deprecated="not deprecated">
  16258. <param name="position" type="long"/>
  16259. <param name="buffer" type="byte[]"/>
  16260. <exception name="IOException" type="java.io.IOException"/>
  16261. <doc>
  16262. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  16263. position within a file. This does not
  16264. change the current offset of a file, and is thread-safe.
  16265. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  16266. @param position position within file
  16267. @param buffer destination buffer
  16268. @throws IOException IO problems.
  16269. @throws EOFException the end of the data was reached before
  16270. the read operation completed]]>
  16271. </doc>
  16272. </method>
  16273. <method name="minSeekForVectorReads" return="int"
  16274. abstract="false" native="false" synchronized="false"
  16275. static="false" final="false" visibility="public"
  16276. deprecated="not deprecated">
  16277. <doc>
  16278. <![CDATA[What is the smallest reasonable seek?
  16279. @return the minimum number of bytes]]>
  16280. </doc>
  16281. </method>
  16282. <method name="maxReadSizeForVectorReads" return="int"
  16283. abstract="false" native="false" synchronized="false"
  16284. static="false" final="false" visibility="public"
  16285. deprecated="not deprecated">
  16286. <doc>
  16287. <![CDATA[What is the largest size that we should group ranges together as?
  16288. @return the number of bytes to read at once]]>
  16289. </doc>
  16290. </method>
  16291. <method name="readVectored"
  16292. abstract="false" native="false" synchronized="false"
  16293. static="false" final="false" visibility="public"
  16294. deprecated="not deprecated">
  16295. <param name="ranges" type="java.util.List"/>
  16296. <param name="allocate" type="java.util.function.IntFunction"/>
  16297. <exception name="IOException" type="java.io.IOException"/>
  16298. <doc>
  16299. <![CDATA[Read fully a list of file ranges asynchronously from this file.
  16300. The default iterates through the ranges to read each synchronously, but
  16301. the intent is that FSDataInputStream subclasses can make more efficient
  16302. readers.
  16303. As a result of the call, each range will have FileRange.setData(CompletableFuture)
  16304. called with a future that when complete will have a ByteBuffer with the
  16305. data from the file's range.
  16306. <p>
  16307. The position returned by getPos() after readVectored() is undefined.
  16308. </p>
  16309. <p>
  16310. If a file is changed while the readVectored() operation is in progress, the output is
  16311. undefined. Some ranges may have old data, some may have new and some may have both.
  16312. </p>
  16313. <p>
  16314. While a readVectored() operation is in progress, normal read api calls may block.
  16315. </p>
  16316. @param ranges the byte ranges to read
  16317. @param allocate the function to allocate ByteBuffer
  16318. @throws IOException any IOE.]]>
  16319. </doc>
  16320. </method>
  16321. <doc>
  16322. <![CDATA[Stream that permits positional reading.
  16323. Implementations are required to implement thread-safe operations; this may
  16324. be supported by concurrent access to the data, or by using a synchronization
  16325. mechanism to serialize access.
  16326. Not all implementations meet this requirement. Those that do not cannot
  16327. be used as a backing store for some applications, such as Apache HBase.
  16328. Independent of whether or not they are thread safe, some implementations
  16329. may make the intermediate state of the system, specifically the position
  16330. obtained in {@code Seekable.getPos()} visible.]]>
  16331. </doc>
  16332. </interface>
  16333. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  16334. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  16335. <class name="QuotaUsage" extends="java.lang.Object"
  16336. abstract="false"
  16337. static="false" final="false" visibility="public"
  16338. deprecated="not deprecated">
  16339. <constructor name="QuotaUsage"
  16340. static="false" final="false" visibility="protected"
  16341. deprecated="not deprecated">
  16342. </constructor>
  16343. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  16344. static="false" final="false" visibility="protected"
  16345. deprecated="not deprecated">
  16346. <doc>
  16347. <![CDATA[Build the instance based on the builder.
  16348. @param builder bulider.]]>
  16349. </doc>
  16350. </constructor>
  16351. <method name="setQuota"
  16352. abstract="false" native="false" synchronized="false"
  16353. static="false" final="false" visibility="protected"
  16354. deprecated="not deprecated">
  16355. <param name="quota" type="long"/>
  16356. </method>
  16357. <method name="setSpaceConsumed"
  16358. abstract="false" native="false" synchronized="false"
  16359. static="false" final="false" visibility="protected"
  16360. deprecated="not deprecated">
  16361. <param name="spaceConsumed" type="long"/>
  16362. </method>
  16363. <method name="setSpaceQuota"
  16364. abstract="false" native="false" synchronized="false"
  16365. static="false" final="false" visibility="protected"
  16366. deprecated="not deprecated">
  16367. <param name="spaceQuota" type="long"/>
  16368. </method>
  16369. <method name="getFileAndDirectoryCount" return="long"
  16370. abstract="false" native="false" synchronized="false"
  16371. static="false" final="false" visibility="public"
  16372. deprecated="not deprecated">
  16373. <doc>
  16374. <![CDATA[Return the directory count.
  16375. @return file and directory count.]]>
  16376. </doc>
  16377. </method>
  16378. <method name="getQuota" return="long"
  16379. abstract="false" native="false" synchronized="false"
  16380. static="false" final="false" visibility="public"
  16381. deprecated="not deprecated">
  16382. <doc>
  16383. <![CDATA[Return the directory quota.
  16384. @return quota.]]>
  16385. </doc>
  16386. </method>
  16387. <method name="getSpaceConsumed" return="long"
  16388. abstract="false" native="false" synchronized="false"
  16389. static="false" final="false" visibility="public"
  16390. deprecated="not deprecated">
  16391. <doc>
  16392. <![CDATA[Return (disk) space consumed.
  16393. @return space consumed.]]>
  16394. </doc>
  16395. </method>
  16396. <method name="getSpaceQuota" return="long"
  16397. abstract="false" native="false" synchronized="false"
  16398. static="false" final="false" visibility="public"
  16399. deprecated="not deprecated">
  16400. <doc>
  16401. <![CDATA[Return (disk) space quota.
  16402. @return space quota.]]>
  16403. </doc>
  16404. </method>
  16405. <method name="getTypeQuota" return="long"
  16406. abstract="false" native="false" synchronized="false"
  16407. static="false" final="false" visibility="public"
  16408. deprecated="not deprecated">
  16409. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  16410. <doc>
  16411. <![CDATA[Return storage type quota.
  16412. @param type storage type.
  16413. @return type quota.]]>
  16414. </doc>
  16415. </method>
  16416. <method name="getTypeConsumed" return="long"
  16417. abstract="false" native="false" synchronized="false"
  16418. static="false" final="false" visibility="public"
  16419. deprecated="not deprecated">
  16420. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  16421. <doc>
  16422. <![CDATA[Return storage type consumed.
  16423. @param type storage type.
  16424. @return type consumed.]]>
  16425. </doc>
  16426. </method>
  16427. <method name="isTypeQuotaSet" return="boolean"
  16428. abstract="false" native="false" synchronized="false"
  16429. static="false" final="false" visibility="public"
  16430. deprecated="not deprecated">
  16431. <doc>
  16432. <![CDATA[Return true if any storage type quota has been set.
  16433. @return if any storage type quota has been set true, not false.]]>
  16434. </doc>
  16435. </method>
  16436. <method name="isTypeConsumedAvailable" return="boolean"
  16437. abstract="false" native="false" synchronized="false"
  16438. static="false" final="false" visibility="public"
  16439. deprecated="not deprecated">
  16440. <doc>
  16441. <![CDATA[Return true if any storage type consumption information is available.
  16442. @return if any storage type consumption information
  16443. is available, not false.]]>
  16444. </doc>
  16445. </method>
  16446. <method name="hashCode" return="int"
  16447. abstract="false" native="false" synchronized="false"
  16448. static="false" final="false" visibility="public"
  16449. deprecated="not deprecated">
  16450. </method>
  16451. <method name="equals" return="boolean"
  16452. abstract="false" native="false" synchronized="false"
  16453. static="false" final="false" visibility="public"
  16454. deprecated="not deprecated">
  16455. <param name="obj" type="java.lang.Object"/>
  16456. </method>
  16457. <method name="getHeader" return="java.lang.String"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="true" final="false" visibility="public"
  16460. deprecated="not deprecated">
  16461. <doc>
  16462. <![CDATA[Return the header of the output.
  16463. @return the header of the output]]>
  16464. </doc>
  16465. </method>
  16466. <method name="toString" return="java.lang.String"
  16467. abstract="false" native="false" synchronized="false"
  16468. static="false" final="false" visibility="public"
  16469. deprecated="not deprecated">
  16470. </method>
  16471. <method name="toString" return="java.lang.String"
  16472. abstract="false" native="false" synchronized="false"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. <param name="hOption" type="boolean"/>
  16476. </method>
  16477. <method name="toString" return="java.lang.String"
  16478. abstract="false" native="false" synchronized="false"
  16479. static="false" final="false" visibility="public"
  16480. deprecated="not deprecated">
  16481. <param name="hOption" type="boolean"/>
  16482. <param name="tOption" type="boolean"/>
  16483. <param name="types" type="java.util.List"/>
  16484. <doc>
  16485. <![CDATA[Return the string representation of the object in the output format.
  16486. if hOption is false file sizes are returned in bytes
  16487. if hOption is true file sizes are returned in human readable
  16488. @param hOption a flag indicating if human readable output if to be used
  16489. @param tOption type option.
  16490. @param types storage types.
  16491. @return the string representation of the object.]]>
  16492. </doc>
  16493. </method>
  16494. <method name="getQuotaUsage" return="java.lang.String"
  16495. abstract="false" native="false" synchronized="false"
  16496. static="false" final="false" visibility="protected"
  16497. deprecated="not deprecated">
  16498. <param name="hOption" type="boolean"/>
  16499. </method>
  16500. <method name="getTypesQuotaUsage" return="java.lang.String"
  16501. abstract="false" native="false" synchronized="false"
  16502. static="false" final="false" visibility="protected"
  16503. deprecated="not deprecated">
  16504. <param name="hOption" type="boolean"/>
  16505. <param name="types" type="java.util.List"/>
  16506. </method>
  16507. <method name="getStorageTypeHeader" return="java.lang.String"
  16508. abstract="false" native="false" synchronized="false"
  16509. static="true" final="false" visibility="public"
  16510. deprecated="not deprecated">
  16511. <param name="storageTypes" type="java.util.List"/>
  16512. <doc>
  16513. <![CDATA[return the header of with the StorageTypes.
  16514. @param storageTypes storage types.
  16515. @return storage header string]]>
  16516. </doc>
  16517. </method>
  16518. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  16519. transient="false" volatile="false"
  16520. static="true" final="true" visibility="protected"
  16521. deprecated="not deprecated">
  16522. <doc>
  16523. <![CDATA[Output format:
  16524. |----12----| |----15----| |----15----| |----15----| |-------18-------|
  16525. QUOTA REMAINING_QUOTA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  16526. </doc>
  16527. </field>
  16528. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  16529. transient="false" volatile="false"
  16530. static="true" final="true" visibility="protected"
  16531. deprecated="not deprecated">
  16532. </field>
  16533. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  16534. transient="false" volatile="false"
  16535. static="true" final="true" visibility="protected"
  16536. deprecated="not deprecated">
  16537. </field>
  16538. <field name="QUOTA_HEADER" type="java.lang.String"
  16539. transient="false" volatile="false"
  16540. static="true" final="true" visibility="protected"
  16541. deprecated="not deprecated">
  16542. </field>
  16543. <doc>
  16544. <![CDATA[Store the quota usage of a directory.]]>
  16545. </doc>
  16546. </class>
  16547. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  16548. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  16549. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  16550. abstract="false"
  16551. static="false" final="false" visibility="public"
  16552. deprecated="not deprecated">
  16553. <constructor name="RawLocalFileSystem"
  16554. static="false" final="false" visibility="public"
  16555. deprecated="not deprecated">
  16556. </constructor>
  16557. <method name="useStatIfAvailable"
  16558. abstract="false" native="false" synchronized="false"
  16559. static="true" final="false" visibility="public"
  16560. deprecated="not deprecated">
  16561. </method>
  16562. <method name="pathToFile" return="java.io.File"
  16563. abstract="false" native="false" synchronized="false"
  16564. static="false" final="false" visibility="public"
  16565. deprecated="not deprecated">
  16566. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16567. <doc>
  16568. <![CDATA[Convert a path to a File.
  16569. @param path the path.
  16570. @return file.]]>
  16571. </doc>
  16572. </method>
  16573. <method name="getUri" return="java.net.URI"
  16574. abstract="false" native="false" synchronized="false"
  16575. static="false" final="false" visibility="public"
  16576. deprecated="not deprecated">
  16577. </method>
  16578. <method name="initialize"
  16579. abstract="false" native="false" synchronized="false"
  16580. static="false" final="false" visibility="public"
  16581. deprecated="not deprecated">
  16582. <param name="uri" type="java.net.URI"/>
  16583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16584. <exception name="IOException" type="java.io.IOException"/>
  16585. </method>
  16586. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16587. abstract="false" native="false" synchronized="false"
  16588. static="false" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16591. <param name="bufferSize" type="int"/>
  16592. <exception name="IOException" type="java.io.IOException"/>
  16593. </method>
  16594. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="false" final="false" visibility="public"
  16597. deprecated="not deprecated">
  16598. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  16599. <param name="bufferSize" type="int"/>
  16600. <exception name="IOException" type="java.io.IOException"/>
  16601. </method>
  16602. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  16603. abstract="false" native="false" synchronized="false"
  16604. static="false" final="false" visibility="public"
  16605. deprecated="not deprecated">
  16606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16607. <param name="bufferSize" type="int"/>
  16608. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16609. <exception name="IOException" type="java.io.IOException"/>
  16610. </method>
  16611. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16612. abstract="false" native="false" synchronized="false"
  16613. static="false" final="false" visibility="public"
  16614. deprecated="not deprecated">
  16615. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16616. <param name="overwrite" type="boolean"/>
  16617. <param name="bufferSize" type="int"/>
  16618. <param name="replication" type="short"/>
  16619. <param name="blockSize" type="long"/>
  16620. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16621. <exception name="IOException" type="java.io.IOException"/>
  16622. </method>
  16623. <method name="createOutputStream" return="java.io.OutputStream"
  16624. abstract="false" native="false" synchronized="false"
  16625. static="false" final="false" visibility="protected"
  16626. deprecated="not deprecated">
  16627. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16628. <param name="append" type="boolean"/>
  16629. <exception name="IOException" type="java.io.IOException"/>
  16630. </method>
  16631. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  16632. abstract="false" native="false" synchronized="false"
  16633. static="false" final="false" visibility="protected"
  16634. deprecated="not deprecated">
  16635. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16636. <param name="append" type="boolean"/>
  16637. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16638. <exception name="IOException" type="java.io.IOException"/>
  16639. </method>
  16640. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  16641. abstract="false" native="false" synchronized="false"
  16642. static="false" final="false" visibility="public"
  16643. deprecated="not deprecated">
  16644. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16645. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16646. <param name="flags" type="java.util.EnumSet"/>
  16647. <param name="bufferSize" type="int"/>
  16648. <param name="replication" type="short"/>
  16649. <param name="blockSize" type="long"/>
  16650. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16651. <exception name="IOException" type="java.io.IOException"/>
  16652. </method>
  16653. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16654. abstract="false" native="false" synchronized="false"
  16655. static="false" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16658. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16659. <param name="overwrite" type="boolean"/>
  16660. <param name="bufferSize" type="int"/>
  16661. <param name="replication" type="short"/>
  16662. <param name="blockSize" type="long"/>
  16663. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16664. <exception name="IOException" type="java.io.IOException"/>
  16665. </method>
  16666. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  16667. abstract="false" native="false" synchronized="false"
  16668. static="false" final="false" visibility="public"
  16669. deprecated="not deprecated">
  16670. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16671. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16672. <param name="overwrite" type="boolean"/>
  16673. <param name="bufferSize" type="int"/>
  16674. <param name="replication" type="short"/>
  16675. <param name="blockSize" type="long"/>
  16676. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16677. <exception name="IOException" type="java.io.IOException"/>
  16678. </method>
  16679. <method name="concat"
  16680. abstract="false" native="false" synchronized="false"
  16681. static="false" final="false" visibility="public"
  16682. deprecated="not deprecated">
  16683. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  16684. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  16685. <exception name="IOException" type="java.io.IOException"/>
  16686. </method>
  16687. <method name="rename" return="boolean"
  16688. abstract="false" native="false" synchronized="false"
  16689. static="false" final="false" visibility="public"
  16690. deprecated="not deprecated">
  16691. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16692. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16693. <exception name="IOException" type="java.io.IOException"/>
  16694. </method>
  16695. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  16696. abstract="false" native="false" synchronized="false"
  16697. static="false" final="true" visibility="public"
  16698. deprecated="not deprecated">
  16699. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16700. <param name="srcFile" type="java.io.File"/>
  16701. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16702. <param name="dstFile" type="java.io.File"/>
  16703. <exception name="IOException" type="java.io.IOException"/>
  16704. </method>
  16705. <method name="truncate" return="boolean"
  16706. abstract="false" native="false" synchronized="false"
  16707. static="false" final="false" visibility="public"
  16708. deprecated="not deprecated">
  16709. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16710. <param name="newLength" type="long"/>
  16711. <exception name="IOException" type="java.io.IOException"/>
  16712. </method>
  16713. <method name="delete" return="boolean"
  16714. abstract="false" native="false" synchronized="false"
  16715. static="false" final="false" visibility="public"
  16716. deprecated="not deprecated">
  16717. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16718. <param name="recursive" type="boolean"/>
  16719. <exception name="IOException" type="java.io.IOException"/>
  16720. <doc>
  16721. <![CDATA[Delete the given path to a file or directory.
  16722. @param p the path to delete
  16723. @param recursive to delete sub-directories
  16724. @return true if the file or directory and all its contents were deleted
  16725. @throws IOException if p is non-empty and recursive is false]]>
  16726. </doc>
  16727. </method>
  16728. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16729. abstract="false" native="false" synchronized="false"
  16730. static="false" final="false" visibility="public"
  16731. deprecated="not deprecated">
  16732. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16733. <exception name="IOException" type="java.io.IOException"/>
  16734. <doc>
  16735. <![CDATA[{@inheritDoc}
  16736. (<b>Note</b>: Returned list is not sorted in any given order,
  16737. due to reliance on Java's {@link File#list()} API.)]]>
  16738. </doc>
  16739. </method>
  16740. <method name="exists" return="boolean"
  16741. abstract="false" native="false" synchronized="false"
  16742. static="false" final="false" visibility="public"
  16743. deprecated="not deprecated">
  16744. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16745. <exception name="IOException" type="java.io.IOException"/>
  16746. </method>
  16747. <method name="mkOneDir" return="boolean"
  16748. abstract="false" native="false" synchronized="false"
  16749. static="false" final="false" visibility="protected"
  16750. deprecated="not deprecated">
  16751. <param name="p2f" type="java.io.File"/>
  16752. <exception name="IOException" type="java.io.IOException"/>
  16753. </method>
  16754. <method name="mkOneDirWithMode" return="boolean"
  16755. abstract="false" native="false" synchronized="false"
  16756. static="false" final="false" visibility="protected"
  16757. deprecated="not deprecated">
  16758. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16759. <param name="p2f" type="java.io.File"/>
  16760. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16761. <exception name="IOException" type="java.io.IOException"/>
  16762. </method>
  16763. <method name="mkdirs" return="boolean"
  16764. abstract="false" native="false" synchronized="false"
  16765. static="false" final="false" visibility="public"
  16766. deprecated="not deprecated">
  16767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16768. <exception name="IOException" type="java.io.IOException"/>
  16769. <doc>
  16770. <![CDATA[Creates the specified directory hierarchy. Does not
  16771. treat existence as an error.]]>
  16772. </doc>
  16773. </method>
  16774. <method name="mkdirs" return="boolean"
  16775. abstract="false" native="false" synchronized="false"
  16776. static="false" final="false" visibility="public"
  16777. deprecated="not deprecated">
  16778. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16779. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16780. <exception name="IOException" type="java.io.IOException"/>
  16781. </method>
  16782. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16783. abstract="false" native="false" synchronized="false"
  16784. static="false" final="false" visibility="public"
  16785. deprecated="not deprecated">
  16786. </method>
  16787. <method name="setWorkingDirectory"
  16788. abstract="false" native="false" synchronized="false"
  16789. static="false" final="false" visibility="public"
  16790. deprecated="not deprecated">
  16791. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  16792. <doc>
  16793. <![CDATA[Set the working directory to the given directory.]]>
  16794. </doc>
  16795. </method>
  16796. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16797. abstract="false" native="false" synchronized="false"
  16798. static="false" final="false" visibility="public"
  16799. deprecated="not deprecated">
  16800. </method>
  16801. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16802. abstract="false" native="false" synchronized="false"
  16803. static="false" final="false" visibility="protected"
  16804. deprecated="not deprecated">
  16805. </method>
  16806. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  16807. abstract="false" native="false" synchronized="false"
  16808. static="false" final="false" visibility="public"
  16809. deprecated="not deprecated">
  16810. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16811. <exception name="IOException" type="java.io.IOException"/>
  16812. </method>
  16813. <method name="moveFromLocalFile"
  16814. abstract="false" native="false" synchronized="false"
  16815. static="false" final="false" visibility="public"
  16816. deprecated="not deprecated">
  16817. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16818. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16819. <exception name="IOException" type="java.io.IOException"/>
  16820. </method>
  16821. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  16822. abstract="false" native="false" synchronized="false"
  16823. static="false" final="false" visibility="public"
  16824. deprecated="not deprecated">
  16825. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  16826. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  16827. <exception name="IOException" type="java.io.IOException"/>
  16828. </method>
  16829. <method name="completeLocalOutput"
  16830. abstract="false" native="false" synchronized="false"
  16831. static="false" final="false" visibility="public"
  16832. deprecated="not deprecated">
  16833. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  16834. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  16835. <exception name="IOException" type="java.io.IOException"/>
  16836. </method>
  16837. <method name="close"
  16838. abstract="false" native="false" synchronized="false"
  16839. static="false" final="false" visibility="public"
  16840. deprecated="not deprecated">
  16841. <exception name="IOException" type="java.io.IOException"/>
  16842. </method>
  16843. <method name="toString" return="java.lang.String"
  16844. abstract="false" native="false" synchronized="false"
  16845. static="false" final="false" visibility="public"
  16846. deprecated="not deprecated">
  16847. </method>
  16848. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16849. abstract="false" native="false" synchronized="false"
  16850. static="false" final="false" visibility="public"
  16851. deprecated="not deprecated">
  16852. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16853. <exception name="IOException" type="java.io.IOException"/>
  16854. </method>
  16855. <method name="setOwner"
  16856. abstract="false" native="false" synchronized="false"
  16857. static="false" final="false" visibility="public"
  16858. deprecated="not deprecated">
  16859. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16860. <param name="username" type="java.lang.String"/>
  16861. <param name="groupname" type="java.lang.String"/>
  16862. <exception name="IOException" type="java.io.IOException"/>
  16863. <doc>
  16864. <![CDATA[Use the command chown to set owner.]]>
  16865. </doc>
  16866. </method>
  16867. <method name="setPermission"
  16868. abstract="false" native="false" synchronized="false"
  16869. static="false" final="false" visibility="public"
  16870. deprecated="not deprecated">
  16871. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16872. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16873. <exception name="IOException" type="java.io.IOException"/>
  16874. <doc>
  16875. <![CDATA[Use the command chmod to set permission.]]>
  16876. </doc>
  16877. </method>
  16878. <method name="setTimes"
  16879. abstract="false" native="false" synchronized="false"
  16880. static="false" final="false" visibility="public"
  16881. deprecated="not deprecated">
  16882. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16883. <param name="mtime" type="long"/>
  16884. <param name="atime" type="long"/>
  16885. <exception name="IOException" type="java.io.IOException"/>
  16886. <doc>
  16887. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  16888. the given valid times.
  16889. @param mtime the modification time to set (only if no less than zero).
  16890. @param atime the access time to set (only if no less than zero).
  16891. @throws IOException if setting the times fails.]]>
  16892. </doc>
  16893. </method>
  16894. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  16895. abstract="false" native="false" synchronized="false"
  16896. static="false" final="false" visibility="protected"
  16897. deprecated="not deprecated">
  16898. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  16899. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  16900. <doc>
  16901. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  16902. @param stat Referent in the target FileSystem
  16903. @param opts Constraints that determine the validity of the
  16904. {@link PathHandle} reference.]]>
  16905. </doc>
  16906. </method>
  16907. <method name="supportsSymlinks" return="boolean"
  16908. abstract="false" native="false" synchronized="false"
  16909. static="false" final="false" visibility="public"
  16910. deprecated="not deprecated">
  16911. </method>
  16912. <method name="createSymlink"
  16913. abstract="false" native="false" synchronized="false"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. <param name="target" type="org.apache.hadoop.fs.Path"/>
  16917. <param name="link" type="org.apache.hadoop.fs.Path"/>
  16918. <param name="createParent" type="boolean"/>
  16919. <exception name="IOException" type="java.io.IOException"/>
  16920. </method>
  16921. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  16922. abstract="false" native="false" synchronized="false"
  16923. static="false" final="false" visibility="public"
  16924. deprecated="not deprecated">
  16925. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16926. <exception name="IOException" type="java.io.IOException"/>
  16927. <doc>
  16928. <![CDATA[Return a FileStatus representing the given path. If the path refers
  16929. to a symlink return a FileStatus representing the link rather than
  16930. the object the link refers to.]]>
  16931. </doc>
  16932. </method>
  16933. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  16934. abstract="false" native="false" synchronized="false"
  16935. static="false" final="false" visibility="public"
  16936. deprecated="not deprecated">
  16937. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16938. <exception name="IOException" type="java.io.IOException"/>
  16939. </method>
  16940. <method name="hasPathCapability" return="boolean"
  16941. abstract="false" native="false" synchronized="false"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16945. <param name="capability" type="java.lang.String"/>
  16946. <exception name="IOException" type="java.io.IOException"/>
  16947. </method>
  16948. <doc>
  16949. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  16950. </doc>
  16951. </class>
  16952. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  16953. <!-- start class org.apache.hadoop.fs.ReadOption -->
  16954. <class name="ReadOption" extends="java.lang.Enum"
  16955. abstract="false"
  16956. static="false" final="true" visibility="public"
  16957. deprecated="not deprecated">
  16958. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  16959. abstract="false" native="false" synchronized="false"
  16960. static="true" final="false" visibility="public"
  16961. deprecated="not deprecated">
  16962. </method>
  16963. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  16964. abstract="false" native="false" synchronized="false"
  16965. static="true" final="false" visibility="public"
  16966. deprecated="not deprecated">
  16967. <param name="name" type="java.lang.String"/>
  16968. </method>
  16969. <doc>
  16970. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  16971. </doc>
  16972. </class>
  16973. <!-- end class org.apache.hadoop.fs.ReadOption -->
  16974. <!-- start interface org.apache.hadoop.fs.Seekable -->
  16975. <interface name="Seekable" abstract="true"
  16976. static="false" final="false" visibility="public"
  16977. deprecated="not deprecated">
  16978. <method name="seek"
  16979. abstract="true" native="false" synchronized="false"
  16980. static="false" final="false" visibility="public"
  16981. deprecated="not deprecated">
  16982. <param name="pos" type="long"/>
  16983. <exception name="IOException" type="java.io.IOException"/>
  16984. <doc>
  16985. <![CDATA[Seek to the given offset from the start of the file.
  16986. The next read() will be from that location. Can't
  16987. seek past the end of the file.
  16988. @param pos offset from the start of the file.
  16989. @throws IOException raised on errors performing I/O.]]>
  16990. </doc>
  16991. </method>
  16992. <method name="getPos" return="long"
  16993. abstract="true" native="false" synchronized="false"
  16994. static="false" final="false" visibility="public"
  16995. deprecated="not deprecated">
  16996. <exception name="IOException" type="java.io.IOException"/>
  16997. <doc>
  16998. <![CDATA[Return the current offset from the start of the file
  16999. @return offset from the start of the file.
  17000. @throws IOException raised on errors performing I/O.]]>
  17001. </doc>
  17002. </method>
  17003. <doc>
  17004. <![CDATA[Stream that permits seeking.]]>
  17005. </doc>
  17006. </interface>
  17007. <!-- end interface org.apache.hadoop.fs.Seekable -->
  17008. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  17009. <class name="StorageStatistics" extends="java.lang.Object"
  17010. abstract="true"
  17011. static="false" final="false" visibility="public"
  17012. deprecated="not deprecated">
  17013. <constructor name="StorageStatistics" type="java.lang.String"
  17014. static="false" final="false" visibility="public"
  17015. deprecated="not deprecated">
  17016. </constructor>
  17017. <method name="getName" return="java.lang.String"
  17018. abstract="false" native="false" synchronized="false"
  17019. static="false" final="false" visibility="public"
  17020. deprecated="not deprecated">
  17021. <doc>
  17022. <![CDATA[Get the name of this StorageStatistics object.
  17023. @return name of this StorageStatistics object]]>
  17024. </doc>
  17025. </method>
  17026. <method name="getScheme" return="java.lang.String"
  17027. abstract="false" native="false" synchronized="false"
  17028. static="false" final="false" visibility="public"
  17029. deprecated="not deprecated">
  17030. <doc>
  17031. <![CDATA[@return the associated file system scheme if this is scheme specific,
  17032. else return null.]]>
  17033. </doc>
  17034. </method>
  17035. <method name="getLongStatistics" return="java.util.Iterator"
  17036. abstract="true" native="false" synchronized="false"
  17037. static="false" final="false" visibility="public"
  17038. deprecated="not deprecated">
  17039. <doc>
  17040. <![CDATA[Get an iterator over all the currently tracked long statistics.
  17041. The values returned will depend on the type of FileSystem or FileContext
  17042. object. The values do not necessarily reflect a snapshot in time.
  17043. @return LongStatistic Iterator.]]>
  17044. </doc>
  17045. </method>
  17046. <method name="getLong" return="java.lang.Long"
  17047. abstract="true" native="false" synchronized="false"
  17048. static="false" final="false" visibility="public"
  17049. deprecated="not deprecated">
  17050. <param name="key" type="java.lang.String"/>
  17051. <doc>
  17052. <![CDATA[Get the value of a statistic.
  17053. @param key key.
  17054. @return null if the statistic is not being tracked or is not a
  17055. long statistic. The value of the statistic, otherwise.]]>
  17056. </doc>
  17057. </method>
  17058. <method name="isTracked" return="boolean"
  17059. abstract="true" native="false" synchronized="false"
  17060. static="false" final="false" visibility="public"
  17061. deprecated="not deprecated">
  17062. <param name="key" type="java.lang.String"/>
  17063. <doc>
  17064. <![CDATA[Return true if a statistic is being tracked.
  17065. @param key key.
  17066. @return True only if the statistic is being tracked.]]>
  17067. </doc>
  17068. </method>
  17069. <method name="reset"
  17070. abstract="true" native="false" synchronized="false"
  17071. static="false" final="false" visibility="public"
  17072. deprecated="not deprecated">
  17073. <doc>
  17074. <![CDATA[Reset all the statistic data.]]>
  17075. </doc>
  17076. </method>
  17077. <doc>
  17078. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  17079. instance.]]>
  17080. </doc>
  17081. </class>
  17082. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  17083. <!-- start class org.apache.hadoop.fs.StorageType -->
  17084. <class name="StorageType" extends="java.lang.Enum"
  17085. abstract="false"
  17086. static="false" final="true" visibility="public"
  17087. deprecated="not deprecated">
  17088. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  17089. abstract="false" native="false" synchronized="false"
  17090. static="true" final="false" visibility="public"
  17091. deprecated="not deprecated">
  17092. </method>
  17093. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  17094. abstract="false" native="false" synchronized="false"
  17095. static="true" final="false" visibility="public"
  17096. deprecated="not deprecated">
  17097. <param name="name" type="java.lang.String"/>
  17098. </method>
  17099. <method name="isTransient" return="boolean"
  17100. abstract="false" native="false" synchronized="false"
  17101. static="false" final="false" visibility="public"
  17102. deprecated="not deprecated">
  17103. </method>
  17104. <method name="supportTypeQuota" return="boolean"
  17105. abstract="false" native="false" synchronized="false"
  17106. static="false" final="false" visibility="public"
  17107. deprecated="not deprecated">
  17108. </method>
  17109. <method name="isMovable" return="boolean"
  17110. abstract="false" native="false" synchronized="false"
  17111. static="false" final="false" visibility="public"
  17112. deprecated="not deprecated">
  17113. </method>
  17114. <method name="asList" return="java.util.List"
  17115. abstract="false" native="false" synchronized="false"
  17116. static="true" final="false" visibility="public"
  17117. deprecated="not deprecated">
  17118. </method>
  17119. <method name="getMovableTypes" return="java.util.List"
  17120. abstract="false" native="false" synchronized="false"
  17121. static="true" final="false" visibility="public"
  17122. deprecated="not deprecated">
  17123. </method>
  17124. <method name="getTypesSupportingQuota" return="java.util.List"
  17125. abstract="false" native="false" synchronized="false"
  17126. static="true" final="false" visibility="public"
  17127. deprecated="not deprecated">
  17128. </method>
  17129. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  17130. abstract="false" native="false" synchronized="false"
  17131. static="true" final="false" visibility="public"
  17132. deprecated="not deprecated">
  17133. <param name="i" type="int"/>
  17134. </method>
  17135. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  17136. abstract="false" native="false" synchronized="false"
  17137. static="true" final="false" visibility="public"
  17138. deprecated="not deprecated">
  17139. <param name="s" type="java.lang.String"/>
  17140. </method>
  17141. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  17142. transient="false" volatile="false"
  17143. static="true" final="true" visibility="public"
  17144. deprecated="not deprecated">
  17145. </field>
  17146. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  17147. transient="false" volatile="false"
  17148. static="true" final="true" visibility="public"
  17149. deprecated="not deprecated">
  17150. </field>
  17151. <doc>
  17152. <![CDATA[Defines the types of supported storage media. The default storage
  17153. medium is assumed to be DISK.]]>
  17154. </doc>
  17155. </class>
  17156. <!-- end class org.apache.hadoop.fs.StorageType -->
  17157. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  17158. <interface name="StreamCapabilities" abstract="true"
  17159. static="false" final="false" visibility="public"
  17160. deprecated="not deprecated">
  17161. <method name="hasCapability" return="boolean"
  17162. abstract="true" native="false" synchronized="false"
  17163. static="false" final="false" visibility="public"
  17164. deprecated="not deprecated">
  17165. <param name="capability" type="java.lang.String"/>
  17166. <doc>
  17167. <![CDATA[Query the stream for a specific capability.
  17168. @param capability string to query the stream support for.
  17169. @return True if the stream supports capability.]]>
  17170. </doc>
  17171. </method>
  17172. <field name="HFLUSH" type="java.lang.String"
  17173. transient="false" volatile="false"
  17174. static="true" final="true" visibility="public"
  17175. deprecated="not deprecated">
  17176. <doc>
  17177. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.
  17178. Use the {@link #HSYNC} probe to check for the support of Syncable;
  17179. it's that presence of {@code hsync()} which matters.]]>
  17180. </doc>
  17181. </field>
  17182. <field name="HSYNC" type="java.lang.String"
  17183. transient="false" volatile="false"
  17184. static="true" final="true" visibility="public"
  17185. deprecated="not deprecated">
  17186. <doc>
  17187. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  17188. </doc>
  17189. </field>
  17190. <field name="READAHEAD" type="java.lang.String"
  17191. transient="false" volatile="false"
  17192. static="true" final="true" visibility="public"
  17193. deprecated="not deprecated">
  17194. <doc>
  17195. <![CDATA[Stream setReadahead capability implemented by
  17196. {@link CanSetReadahead#setReadahead(Long)}.]]>
  17197. </doc>
  17198. </field>
  17199. <field name="DROPBEHIND" type="java.lang.String"
  17200. transient="false" volatile="false"
  17201. static="true" final="true" visibility="public"
  17202. deprecated="not deprecated">
  17203. <doc>
  17204. <![CDATA[Stream setDropBehind capability implemented by
  17205. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  17206. </doc>
  17207. </field>
  17208. <field name="UNBUFFER" type="java.lang.String"
  17209. transient="false" volatile="false"
  17210. static="true" final="true" visibility="public"
  17211. deprecated="not deprecated">
  17212. <doc>
  17213. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  17214. </doc>
  17215. </field>
  17216. <field name="READBYTEBUFFER" type="java.lang.String"
  17217. transient="false" volatile="false"
  17218. static="true" final="true" visibility="public"
  17219. deprecated="not deprecated">
  17220. <doc>
  17221. <![CDATA[Stream read(ByteBuffer) capability implemented by
  17222. {@link ByteBufferReadable#read(java.nio.ByteBuffer)}.]]>
  17223. </doc>
  17224. </field>
  17225. <field name="PREADBYTEBUFFER" type="java.lang.String"
  17226. transient="false" volatile="false"
  17227. static="true" final="true" visibility="public"
  17228. deprecated="not deprecated">
  17229. <doc>
  17230. <![CDATA[Stream read(long, ByteBuffer) capability implemented by
  17231. {@link ByteBufferPositionedReadable#read(long, java.nio.ByteBuffer)}.]]>
  17232. </doc>
  17233. </field>
  17234. <field name="IOSTATISTICS" type="java.lang.String"
  17235. transient="false" volatile="false"
  17236. static="true" final="true" visibility="public"
  17237. deprecated="not deprecated">
  17238. <doc>
  17239. <![CDATA[IOStatisticsSource API.]]>
  17240. </doc>
  17241. </field>
  17242. <field name="VECTOREDIO" type="java.lang.String"
  17243. transient="false" volatile="false"
  17244. static="true" final="true" visibility="public"
  17245. deprecated="not deprecated">
  17246. <doc>
  17247. <![CDATA[Support for vectored IO api.
  17248. See {@code PositionedReadable#readVectored(List, IntFunction)}.]]>
  17249. </doc>
  17250. </field>
  17251. <field name="ABORTABLE_STREAM" type="java.lang.String"
  17252. transient="false" volatile="false"
  17253. static="true" final="true" visibility="public"
  17254. deprecated="not deprecated">
  17255. <doc>
  17256. <![CDATA[Stream abort() capability implemented by {@link Abortable#abort()}.
  17257. This matches the Path Capability
  17258. {@link CommonPathCapabilities#ABORTABLE_STREAM}.]]>
  17259. </doc>
  17260. </field>
  17261. <field name="IOSTATISTICS_CONTEXT" type="java.lang.String"
  17262. transient="false" volatile="false"
  17263. static="true" final="true" visibility="public"
  17264. deprecated="not deprecated">
  17265. <doc>
  17266. <![CDATA[Streams that support IOStatistics context and capture thread-level
  17267. IOStatistics.]]>
  17268. </doc>
  17269. </field>
  17270. <doc>
  17271. <![CDATA[Interface to query streams for supported capabilities.
  17272. Capability strings must be in lower case.
  17273. Constant strings are chosen over enums in order to allow other file systems
  17274. to define their own capabilities.]]>
  17275. </doc>
  17276. </interface>
  17277. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  17278. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  17279. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  17280. abstract="false"
  17281. static="false" final="false" visibility="public"
  17282. deprecated="not deprecated">
  17283. <constructor name="StreamCapabilitiesPolicy"
  17284. static="false" final="false" visibility="public"
  17285. deprecated="not deprecated">
  17286. </constructor>
  17287. <method name="unbuffer"
  17288. abstract="false" native="false" synchronized="false"
  17289. static="true" final="false" visibility="public"
  17290. deprecated="not deprecated">
  17291. <param name="in" type="java.io.InputStream"/>
  17292. <doc>
  17293. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  17294. @param in the input stream]]>
  17295. </doc>
  17296. </method>
  17297. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  17298. transient="false" volatile="false"
  17299. static="true" final="true" visibility="public"
  17300. deprecated="not deprecated">
  17301. </field>
  17302. <doc>
  17303. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  17304. </doc>
  17305. </class>
  17306. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  17307. <!-- start interface org.apache.hadoop.fs.Syncable -->
  17308. <interface name="Syncable" abstract="true"
  17309. static="false" final="false" visibility="public"
  17310. deprecated="not deprecated">
  17311. <method name="hflush"
  17312. abstract="true" native="false" synchronized="false"
  17313. static="false" final="false" visibility="public"
  17314. deprecated="not deprecated">
  17315. <exception name="IOException" type="java.io.IOException"/>
  17316. <doc>
  17317. <![CDATA[Flush out the data in client's user buffer. After the return of
  17318. this call, new readers will see the data.
  17319. @throws IOException if any error occurs]]>
  17320. </doc>
  17321. </method>
  17322. <method name="hsync"
  17323. abstract="true" native="false" synchronized="false"
  17324. static="false" final="false" visibility="public"
  17325. deprecated="not deprecated">
  17326. <exception name="IOException" type="java.io.IOException"/>
  17327. <doc>
  17328. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  17329. all the way to the disk device (but the disk may have it in its cache).
  17330. @throws IOException if error occurs]]>
  17331. </doc>
  17332. </method>
  17333. <doc>
  17334. <![CDATA[This is the interface for flush/sync operations.
  17335. Consult the Hadoop filesystem specification for the definition of the
  17336. semantics of these operations.]]>
  17337. </doc>
  17338. </interface>
  17339. <!-- end interface org.apache.hadoop.fs.Syncable -->
  17340. <!-- start class org.apache.hadoop.fs.Trash -->
  17341. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  17342. abstract="false"
  17343. static="false" final="false" visibility="public"
  17344. deprecated="not deprecated">
  17345. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  17346. static="false" final="false" visibility="public"
  17347. deprecated="not deprecated">
  17348. <exception name="IOException" type="java.io.IOException"/>
  17349. <doc>
  17350. <![CDATA[Construct a trash can accessor.
  17351. @param conf a Configuration
  17352. @throws IOException raised on errors performing I/O.]]>
  17353. </doc>
  17354. </constructor>
  17355. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  17356. static="false" final="false" visibility="public"
  17357. deprecated="not deprecated">
  17358. <exception name="IOException" type="java.io.IOException"/>
  17359. <doc>
  17360. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  17361. @param fs the FileSystem
  17362. @param conf a Configuration
  17363. @throws IOException raised on errors performing I/O.]]>
  17364. </doc>
  17365. </constructor>
  17366. <method name="moveToAppropriateTrash" return="boolean"
  17367. abstract="false" native="false" synchronized="false"
  17368. static="true" final="false" visibility="public"
  17369. deprecated="not deprecated">
  17370. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17371. <param name="p" type="org.apache.hadoop.fs.Path"/>
  17372. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17373. <exception name="IOException" type="java.io.IOException"/>
  17374. <doc>
  17375. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  17376. trashbin in the actual volume of the path p being deleted.
  17377. Hence we get the file system of the fully-qualified resolved-path and
  17378. then move the path p to the trashbin in that volume,
  17379. @param fs - the filesystem of path p
  17380. @param p - the path being deleted - to be moved to trasg
  17381. @param conf - configuration
  17382. @return false if the item is already in the trash or trash is disabled
  17383. @throws IOException on error]]>
  17384. </doc>
  17385. </method>
  17386. <method name="isEnabled" return="boolean"
  17387. abstract="false" native="false" synchronized="false"
  17388. static="false" final="false" visibility="public"
  17389. deprecated="not deprecated">
  17390. <doc>
  17391. <![CDATA[Returns whether the trash is enabled for this filesystem.
  17392. @return return if isEnabled true,not false.]]>
  17393. </doc>
  17394. </method>
  17395. <method name="moveToTrash" return="boolean"
  17396. abstract="false" native="false" synchronized="false"
  17397. static="false" final="false" visibility="public"
  17398. deprecated="not deprecated">
  17399. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17400. <exception name="IOException" type="java.io.IOException"/>
  17401. <doc>
  17402. <![CDATA[Move a file or directory to the current trash directory.
  17403. @param path the path.
  17404. @return false if the item is already in the trash or trash is disabled
  17405. @throws IOException raised on errors performing I/O.]]>
  17406. </doc>
  17407. </method>
  17408. <method name="checkpoint"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. <exception name="IOException" type="java.io.IOException"/>
  17413. <doc>
  17414. <![CDATA[Create a trash checkpoint.
  17415. @throws IOException raised on errors performing I/O.]]>
  17416. </doc>
  17417. </method>
  17418. <method name="expunge"
  17419. abstract="false" native="false" synchronized="false"
  17420. static="false" final="false" visibility="public"
  17421. deprecated="not deprecated">
  17422. <exception name="IOException" type="java.io.IOException"/>
  17423. <doc>
  17424. <![CDATA[Delete old checkpoint(s).
  17425. @throws IOException raised on errors performing I/O.]]>
  17426. </doc>
  17427. </method>
  17428. <method name="expungeImmediately"
  17429. abstract="false" native="false" synchronized="false"
  17430. static="false" final="false" visibility="public"
  17431. deprecated="not deprecated">
  17432. <exception name="IOException" type="java.io.IOException"/>
  17433. <doc>
  17434. <![CDATA[Delete all trash immediately.
  17435. @throws IOException raised on errors performing I/O.]]>
  17436. </doc>
  17437. </method>
  17438. <method name="getEmptier" return="java.lang.Runnable"
  17439. abstract="false" native="false" synchronized="false"
  17440. static="false" final="false" visibility="public"
  17441. deprecated="not deprecated">
  17442. <exception name="IOException" type="java.io.IOException"/>
  17443. <doc>
  17444. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  17445. users, intended to be run by the superuser.
  17446. @throws IOException on raised on errors performing I/O.
  17447. @return Runnable.]]>
  17448. </doc>
  17449. </method>
  17450. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  17451. abstract="false" native="false" synchronized="false"
  17452. static="false" final="false" visibility="public"
  17453. deprecated="not deprecated">
  17454. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17455. <exception name="IOException" type="java.io.IOException"/>
  17456. </method>
  17457. <doc>
  17458. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  17459. See the implementation of the configured TrashPolicy for more
  17460. details.]]>
  17461. </doc>
  17462. </class>
  17463. <!-- end class org.apache.hadoop.fs.Trash -->
  17464. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  17465. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  17466. abstract="true"
  17467. static="false" final="false" visibility="public"
  17468. deprecated="not deprecated">
  17469. <constructor name="TrashPolicy"
  17470. static="false" final="false" visibility="public"
  17471. deprecated="not deprecated">
  17472. </constructor>
  17473. <method name="initialize"
  17474. abstract="true" native="false" synchronized="false"
  17475. static="false" final="false" visibility="public"
  17476. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  17477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17478. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17479. <param name="home" type="org.apache.hadoop.fs.Path"/>
  17480. <doc>
  17481. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  17482. implementations.
  17483. @param conf the configuration to be used
  17484. @param fs the filesystem to be used
  17485. @param home the home directory
  17486. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  17487. </doc>
  17488. </method>
  17489. <method name="initialize"
  17490. abstract="false" native="false" synchronized="false"
  17491. static="false" final="false" visibility="public"
  17492. deprecated="not deprecated">
  17493. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17494. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17495. <doc>
  17496. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  17497. implementations. Different from initialize(conf, fs, home), this one does
  17498. not assume trash always under /user/$USER due to HDFS encryption zone.
  17499. @param conf the configuration to be used
  17500. @param fs the filesystem to be used]]>
  17501. </doc>
  17502. </method>
  17503. <method name="isEnabled" return="boolean"
  17504. abstract="true" native="false" synchronized="false"
  17505. static="false" final="false" visibility="public"
  17506. deprecated="not deprecated">
  17507. <doc>
  17508. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.
  17509. @return if isEnabled true,not false.]]>
  17510. </doc>
  17511. </method>
  17512. <method name="moveToTrash" return="boolean"
  17513. abstract="true" native="false" synchronized="false"
  17514. static="false" final="false" visibility="public"
  17515. deprecated="not deprecated">
  17516. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17517. <exception name="IOException" type="java.io.IOException"/>
  17518. <doc>
  17519. <![CDATA[Move a file or directory to the current trash directory.
  17520. @param path the path.
  17521. @return false if the item is already in the trash or trash is disabled
  17522. @throws IOException raised on errors performing I/O.]]>
  17523. </doc>
  17524. </method>
  17525. <method name="createCheckpoint"
  17526. abstract="true" native="false" synchronized="false"
  17527. static="false" final="false" visibility="public"
  17528. deprecated="not deprecated">
  17529. <exception name="IOException" type="java.io.IOException"/>
  17530. <doc>
  17531. <![CDATA[Create a trash checkpoint.
  17532. @throws IOException raised on errors performing I/O.]]>
  17533. </doc>
  17534. </method>
  17535. <method name="deleteCheckpoint"
  17536. abstract="true" native="false" synchronized="false"
  17537. static="false" final="false" visibility="public"
  17538. deprecated="not deprecated">
  17539. <exception name="IOException" type="java.io.IOException"/>
  17540. <doc>
  17541. <![CDATA[Delete old trash checkpoint(s).
  17542. @throws IOException raised on errors performing I/O.]]>
  17543. </doc>
  17544. </method>
  17545. <method name="deleteCheckpointsImmediately"
  17546. abstract="true" native="false" synchronized="false"
  17547. static="false" final="false" visibility="public"
  17548. deprecated="not deprecated">
  17549. <exception name="IOException" type="java.io.IOException"/>
  17550. <doc>
  17551. <![CDATA[Delete all checkpoints immediately, ie empty trash.
  17552. @throws IOException raised on errors performing I/O.]]>
  17553. </doc>
  17554. </method>
  17555. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  17556. abstract="true" native="false" synchronized="false"
  17557. static="false" final="false" visibility="public"
  17558. deprecated="not deprecated">
  17559. <doc>
  17560. <![CDATA[Get the current working directory of the Trash Policy
  17561. This API does not work with files deleted from encryption zone when HDFS
  17562. data encryption at rest feature is enabled as rename file between
  17563. encryption zones or encryption zone and non-encryption zone is not allowed.
  17564. The caller is recommend to use the new API
  17565. TrashPolicy#getCurrentTrashDir(Path path).
  17566. It returns the trash location correctly for the path specified no matter
  17567. the path is in encryption zone or not.
  17568. @return the path.]]>
  17569. </doc>
  17570. </method>
  17571. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  17572. abstract="false" native="false" synchronized="false"
  17573. static="false" final="false" visibility="public"
  17574. deprecated="not deprecated">
  17575. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17576. <exception name="IOException" type="java.io.IOException"/>
  17577. <doc>
  17578. <![CDATA[Get the current trash directory for path specified based on the Trash
  17579. Policy
  17580. @param path path to be deleted
  17581. @return current trash directory for the path to be deleted
  17582. @throws IOException raised on errors performing I/O.]]>
  17583. </doc>
  17584. </method>
  17585. <method name="getEmptier" return="java.lang.Runnable"
  17586. abstract="true" native="false" synchronized="false"
  17587. static="false" final="false" visibility="public"
  17588. deprecated="not deprecated">
  17589. <exception name="IOException" type="java.io.IOException"/>
  17590. <doc>
  17591. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  17592. users, intended to be run by the superuser.
  17593. @throws IOException raised on errors performing I/O.
  17594. @return Runnable.]]>
  17595. </doc>
  17596. </method>
  17597. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  17598. abstract="false" native="false" synchronized="false"
  17599. static="true" final="false" visibility="public"
  17600. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  17601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17602. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17603. <param name="home" type="org.apache.hadoop.fs.Path"/>
  17604. <doc>
  17605. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  17606. of the configuration parameter fs.trash.classname.
  17607. @param conf the configuration to be used
  17608. @param fs the file system to be used
  17609. @param home the home directory
  17610. @return an instance of TrashPolicy
  17611. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  17612. </doc>
  17613. </method>
  17614. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  17615. abstract="false" native="false" synchronized="false"
  17616. static="true" final="false" visibility="public"
  17617. deprecated="not deprecated">
  17618. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17619. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17620. <doc>
  17621. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  17622. of the configuration parameter fs.trash.classname.
  17623. @param conf the configuration to be used
  17624. @param fs the file system to be used
  17625. @return an instance of TrashPolicy]]>
  17626. </doc>
  17627. </method>
  17628. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  17629. transient="false" volatile="false"
  17630. static="false" final="false" visibility="protected"
  17631. deprecated="not deprecated">
  17632. </field>
  17633. <field name="trash" type="org.apache.hadoop.fs.Path"
  17634. transient="false" volatile="false"
  17635. static="false" final="false" visibility="protected"
  17636. deprecated="not deprecated">
  17637. </field>
  17638. <field name="deletionInterval" type="long"
  17639. transient="false" volatile="false"
  17640. static="false" final="false" visibility="protected"
  17641. deprecated="not deprecated">
  17642. </field>
  17643. <doc>
  17644. <![CDATA[This interface is used for implementing different Trash policies.
  17645. Provides factory method to create instances of the configured Trash policy.]]>
  17646. </doc>
  17647. </class>
  17648. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  17649. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  17650. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  17651. abstract="false"
  17652. static="false" final="false" visibility="public"
  17653. deprecated="not deprecated">
  17654. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  17655. static="false" final="false" visibility="public"
  17656. deprecated="not deprecated">
  17657. <doc>
  17658. <![CDATA[Constructs exception with the specified detail message.
  17659. @param message exception message.]]>
  17660. </doc>
  17661. </constructor>
  17662. <doc>
  17663. <![CDATA[File system for a given file system name/scheme is not supported]]>
  17664. </doc>
  17665. </class>
  17666. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  17667. <!-- start class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  17668. <class name="UnsupportedMultipartUploaderException" extends="java.io.IOException"
  17669. abstract="false"
  17670. static="false" final="false" visibility="public"
  17671. deprecated="not deprecated">
  17672. <constructor name="UnsupportedMultipartUploaderException" type="java.lang.String"
  17673. static="false" final="false" visibility="public"
  17674. deprecated="not deprecated">
  17675. <doc>
  17676. <![CDATA[Constructs exception with the specified detail message.
  17677. @param message exception message.]]>
  17678. </doc>
  17679. </constructor>
  17680. <doc>
  17681. <![CDATA[MultipartUploader for a given file system name/scheme is not supported.]]>
  17682. </doc>
  17683. </class>
  17684. <!-- end class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  17685. <!-- start interface org.apache.hadoop.fs.UploadHandle -->
  17686. <interface name="UploadHandle" abstract="true"
  17687. static="false" final="false" visibility="public"
  17688. deprecated="not deprecated">
  17689. <implements name="java.io.Serializable"/>
  17690. <method name="toByteArray" return="byte[]"
  17691. abstract="false" native="false" synchronized="false"
  17692. static="false" final="false" visibility="public"
  17693. deprecated="not deprecated">
  17694. <doc>
  17695. <![CDATA[@return Serialized from in bytes.]]>
  17696. </doc>
  17697. </method>
  17698. <method name="bytes" return="java.nio.ByteBuffer"
  17699. abstract="true" native="false" synchronized="false"
  17700. static="false" final="false" visibility="public"
  17701. deprecated="not deprecated">
  17702. </method>
  17703. <method name="equals" return="boolean"
  17704. abstract="true" native="false" synchronized="false"
  17705. static="false" final="false" visibility="public"
  17706. deprecated="not deprecated">
  17707. <param name="other" type="java.lang.Object"/>
  17708. </method>
  17709. <doc>
  17710. <![CDATA[Opaque, serializable reference to an uploadId for multipart uploads.]]>
  17711. </doc>
  17712. </interface>
  17713. <!-- end interface org.apache.hadoop.fs.UploadHandle -->
  17714. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  17715. <class name="XAttrCodec" extends="java.lang.Enum"
  17716. abstract="false"
  17717. static="false" final="true" visibility="public"
  17718. deprecated="not deprecated">
  17719. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  17720. abstract="false" native="false" synchronized="false"
  17721. static="true" final="false" visibility="public"
  17722. deprecated="not deprecated">
  17723. </method>
  17724. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  17725. abstract="false" native="false" synchronized="false"
  17726. static="true" final="false" visibility="public"
  17727. deprecated="not deprecated">
  17728. <param name="name" type="java.lang.String"/>
  17729. </method>
  17730. <method name="decodeValue" return="byte[]"
  17731. abstract="false" native="false" synchronized="false"
  17732. static="true" final="false" visibility="public"
  17733. deprecated="not deprecated">
  17734. <param name="value" type="java.lang.String"/>
  17735. <exception name="IOException" type="java.io.IOException"/>
  17736. <doc>
  17737. <![CDATA[Decode string representation of a value and check whether it's
  17738. encoded. If the given string begins with 0x or 0X, it expresses
  17739. a hexadecimal number. If the given string begins with 0s or 0S,
  17740. base64 encoding is expected. If the given string is enclosed in
  17741. double quotes, the inner string is treated as text. Otherwise
  17742. the given string is treated as text.
  17743. @param value string representation of the value.
  17744. @return byte[] the value
  17745. @throws IOException raised on errors performing I/O.]]>
  17746. </doc>
  17747. </method>
  17748. <method name="encodeValue" return="java.lang.String"
  17749. abstract="false" native="false" synchronized="false"
  17750. static="true" final="false" visibility="public"
  17751. deprecated="not deprecated">
  17752. <param name="value" type="byte[]"/>
  17753. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  17754. <exception name="IOException" type="java.io.IOException"/>
  17755. <doc>
  17756. <![CDATA[Encode byte[] value to string representation with encoding.
  17757. Values encoded as text strings are enclosed in double quotes (\"),
  17758. while strings encoded as hexadecimal and base64 are prefixed with
  17759. 0x and 0s, respectively.
  17760. @param value byte[] value
  17761. @param encoding encoding.
  17762. @return String string representation of value
  17763. @throws IOException raised on errors performing I/O.]]>
  17764. </doc>
  17765. </method>
  17766. <doc>
  17767. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  17768. covert byte[] to some kind of string representation or convert back.
  17769. String representation is convenient for display and input. For example
  17770. display in screen as shell response and json response, input as http
  17771. or shell parameter.]]>
  17772. </doc>
  17773. </class>
  17774. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  17775. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  17776. <class name="XAttrSetFlag" extends="java.lang.Enum"
  17777. abstract="false"
  17778. static="false" final="true" visibility="public"
  17779. deprecated="not deprecated">
  17780. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  17781. abstract="false" native="false" synchronized="false"
  17782. static="true" final="false" visibility="public"
  17783. deprecated="not deprecated">
  17784. </method>
  17785. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  17786. abstract="false" native="false" synchronized="false"
  17787. static="true" final="false" visibility="public"
  17788. deprecated="not deprecated">
  17789. <param name="name" type="java.lang.String"/>
  17790. </method>
  17791. <method name="validate"
  17792. abstract="false" native="false" synchronized="false"
  17793. static="true" final="false" visibility="public"
  17794. deprecated="not deprecated">
  17795. <param name="xAttrName" type="java.lang.String"/>
  17796. <param name="xAttrExists" type="boolean"/>
  17797. <param name="flag" type="java.util.EnumSet"/>
  17798. <exception name="IOException" type="java.io.IOException"/>
  17799. </method>
  17800. </class>
  17801. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  17802. <doc>
  17803. <![CDATA[An abstract file system API.]]>
  17804. </doc>
  17805. </package>
  17806. <package name="org.apache.hadoop.fs.audit">
  17807. <!-- start class org.apache.hadoop.fs.audit.CommonAuditContext -->
  17808. <class name="CommonAuditContext" extends="java.lang.Object"
  17809. abstract="false"
  17810. static="false" final="true" visibility="public"
  17811. deprecated="not deprecated">
  17812. <method name="put" return="java.util.function.Supplier"
  17813. abstract="false" native="false" synchronized="false"
  17814. static="false" final="false" visibility="public"
  17815. deprecated="not deprecated">
  17816. <param name="key" type="java.lang.String"/>
  17817. <param name="value" type="java.lang.String"/>
  17818. <doc>
  17819. <![CDATA[Put a context entry.
  17820. @param key key
  17821. @param value new value., If null, triggers removal.
  17822. @return old value or null]]>
  17823. </doc>
  17824. </method>
  17825. <method name="put" return="java.util.function.Supplier"
  17826. abstract="false" native="false" synchronized="false"
  17827. static="false" final="false" visibility="public"
  17828. deprecated="not deprecated">
  17829. <param name="key" type="java.lang.String"/>
  17830. <param name="value" type="java.util.function.Supplier"/>
  17831. <doc>
  17832. <![CDATA[Put a context entry dynamically evaluated on demand.
  17833. Important: as these supplier methods are long-lived,
  17834. the supplier function <i>MUST NOT</i> be part of/refer to
  17835. any object instance of significant memory size.
  17836. Applications SHOULD remove references when they are
  17837. no longer needed.
  17838. When logged at TRACE, prints the key and stack trace of the caller,
  17839. to allow for debugging of any problems.
  17840. @param key key
  17841. @param value new value
  17842. @return old value or null]]>
  17843. </doc>
  17844. </method>
  17845. <method name="remove"
  17846. abstract="false" native="false" synchronized="false"
  17847. static="false" final="false" visibility="public"
  17848. deprecated="not deprecated">
  17849. <param name="key" type="java.lang.String"/>
  17850. <doc>
  17851. <![CDATA[Remove a context entry.
  17852. @param key key]]>
  17853. </doc>
  17854. </method>
  17855. <method name="get" return="java.lang.String"
  17856. abstract="false" native="false" synchronized="false"
  17857. static="false" final="false" visibility="public"
  17858. deprecated="not deprecated">
  17859. <param name="key" type="java.lang.String"/>
  17860. <doc>
  17861. <![CDATA[Get a context entry.
  17862. @param key key
  17863. @return value or null]]>
  17864. </doc>
  17865. </method>
  17866. <method name="reset"
  17867. abstract="false" native="false" synchronized="false"
  17868. static="false" final="false" visibility="public"
  17869. deprecated="not deprecated">
  17870. <doc>
  17871. <![CDATA[Rest the context; will set the standard options again.
  17872. Primarily for testing.]]>
  17873. </doc>
  17874. </method>
  17875. <method name="containsKey" return="boolean"
  17876. abstract="false" native="false" synchronized="false"
  17877. static="false" final="false" visibility="public"
  17878. deprecated="not deprecated">
  17879. <param name="key" type="java.lang.String"/>
  17880. <doc>
  17881. <![CDATA[Does the context contain a specific key?
  17882. @param key key
  17883. @return true if it is in the context.]]>
  17884. </doc>
  17885. </method>
  17886. <method name="currentAuditContext" return="org.apache.hadoop.fs.audit.CommonAuditContext"
  17887. abstract="false" native="false" synchronized="false"
  17888. static="true" final="false" visibility="public"
  17889. deprecated="not deprecated">
  17890. <doc>
  17891. <![CDATA[Get the current common audit context. Thread local.
  17892. @return the audit context of this thread.]]>
  17893. </doc>
  17894. </method>
  17895. <method name="currentThreadID" return="java.lang.String"
  17896. abstract="false" native="false" synchronized="false"
  17897. static="true" final="false" visibility="public"
  17898. deprecated="not deprecated">
  17899. <doc>
  17900. <![CDATA[A thread ID which is unique for this process and shared across all
  17901. S3A clients on the same thread, even those using different FS instances.
  17902. @return a thread ID for reporting.]]>
  17903. </doc>
  17904. </method>
  17905. <method name="getEvaluatedEntries" return="java.util.Map"
  17906. abstract="false" native="false" synchronized="false"
  17907. static="false" final="false" visibility="public"
  17908. deprecated="not deprecated">
  17909. <doc>
  17910. <![CDATA[Get the evaluated operations.
  17911. This is the map unique to this context.
  17912. @return the operations map.]]>
  17913. </doc>
  17914. </method>
  17915. <method name="setGlobalContextEntry"
  17916. abstract="false" native="false" synchronized="false"
  17917. static="true" final="false" visibility="public"
  17918. deprecated="not deprecated">
  17919. <param name="key" type="java.lang.String"/>
  17920. <param name="value" type="java.lang.String"/>
  17921. <doc>
  17922. <![CDATA[Set a global entry.
  17923. @param key key
  17924. @param value value]]>
  17925. </doc>
  17926. </method>
  17927. <method name="getGlobalContextEntry" return="java.lang.String"
  17928. abstract="false" native="false" synchronized="false"
  17929. static="true" final="false" visibility="public"
  17930. deprecated="not deprecated">
  17931. <param name="key" type="java.lang.String"/>
  17932. <doc>
  17933. <![CDATA[Get a global entry.
  17934. @param key key
  17935. @return value or null]]>
  17936. </doc>
  17937. </method>
  17938. <method name="removeGlobalContextEntry"
  17939. abstract="false" native="false" synchronized="false"
  17940. static="true" final="false" visibility="public"
  17941. deprecated="not deprecated">
  17942. <param name="key" type="java.lang.String"/>
  17943. <doc>
  17944. <![CDATA[Remove a global entry.
  17945. @param key key to clear.]]>
  17946. </doc>
  17947. </method>
  17948. <method name="noteEntryPoint"
  17949. abstract="false" native="false" synchronized="false"
  17950. static="true" final="false" visibility="public"
  17951. deprecated="not deprecated">
  17952. <param name="tool" type="java.lang.Object"/>
  17953. <doc>
  17954. <![CDATA[Add the entry point as a context entry with the key
  17955. {@link AuditConstants#PARAM_COMMAND}
  17956. if it has not already been recorded.
  17957. This is called via ToolRunner but may be used at any
  17958. other entry point.
  17959. @param tool object loaded/being launched.]]>
  17960. </doc>
  17961. </method>
  17962. <method name="getGlobalContextEntries" return="java.lang.Iterable"
  17963. abstract="false" native="false" synchronized="false"
  17964. static="true" final="false" visibility="public"
  17965. deprecated="not deprecated">
  17966. <doc>
  17967. <![CDATA[Get an iterator over the global entries.
  17968. Thread safe.
  17969. @return an iterable to enumerate the values.]]>
  17970. </doc>
  17971. </method>
  17972. <field name="PROCESS_ID" type="java.lang.String"
  17973. transient="false" volatile="false"
  17974. static="true" final="true" visibility="public"
  17975. deprecated="not deprecated">
  17976. <doc>
  17977. <![CDATA[Process ID; currently built from UUID and timestamp.]]>
  17978. </doc>
  17979. </field>
  17980. <doc>
  17981. <![CDATA[The common audit context is a map of common context information
  17982. which can be used with any audit span.
  17983. This context is shared across all Filesystems within the
  17984. thread.
  17985. Audit spans will be created with a reference to the current
  17986. context of their thread;
  17987. That reference is retained even as they are moved across threads, so
  17988. context information (including thread ID Java runtime).
  17989. The Global context entries are a set of key-value pairs which span
  17990. all threads; the {@code HttpReferrerAuditHeader} picks these
  17991. up automatically. It is intended for minimal use of
  17992. shared constant values (process ID, entry point).
  17993. An attribute set in {@link #setGlobalContextEntry(String, String)}
  17994. will be set across all audit spans in all threads.
  17995. The {@link #noteEntryPoint(Object)} method should be
  17996. used in entry points (ToolRunner.run, etc). It extracts
  17997. the final element of the classname and attaches that
  17998. to the global context with the attribute key
  17999. {@link AuditConstants#PARAM_COMMAND}, if not already
  18000. set.
  18001. This helps identify the application being executued.
  18002. All other values set are specific to this context, which
  18003. is thread local.
  18004. The attributes which can be added to ths common context include
  18005. evaluator methods which will be evaluated in whichever thread
  18006. invokes {@link #getEvaluatedEntries()} and then evaluates them.
  18007. That map of evaluated options may evaluated later, in a different
  18008. thread.
  18009. For setting and clearing thread-level options, use
  18010. {@link #currentAuditContext()} to get the thread-local
  18011. context for the caller, which can then be manipulated.
  18012. For further information, especially related to memory consumption,
  18013. read the document `auditing_architecture` in the `hadoop-aws` module.]]>
  18014. </doc>
  18015. </class>
  18016. <!-- end class org.apache.hadoop.fs.audit.CommonAuditContext -->
  18017. </package>
  18018. <package name="org.apache.hadoop.fs.crypto">
  18019. </package>
  18020. <package name="org.apache.hadoop.fs.ftp">
  18021. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  18022. <class name="FTPException" extends="java.lang.RuntimeException"
  18023. abstract="false"
  18024. static="false" final="false" visibility="public"
  18025. deprecated="not deprecated">
  18026. <constructor name="FTPException" type="java.lang.String"
  18027. static="false" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. </constructor>
  18030. <constructor name="FTPException" type="java.lang.Throwable"
  18031. static="false" final="false" visibility="public"
  18032. deprecated="not deprecated">
  18033. </constructor>
  18034. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  18035. static="false" final="false" visibility="public"
  18036. deprecated="not deprecated">
  18037. </constructor>
  18038. <doc>
  18039. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  18040. </doc>
  18041. </class>
  18042. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  18043. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  18044. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  18045. abstract="false"
  18046. static="false" final="false" visibility="public"
  18047. deprecated="not deprecated">
  18048. <constructor name="FTPFileSystem"
  18049. static="false" final="false" visibility="public"
  18050. deprecated="not deprecated">
  18051. </constructor>
  18052. <method name="getScheme" return="java.lang.String"
  18053. abstract="false" native="false" synchronized="false"
  18054. static="false" final="false" visibility="public"
  18055. deprecated="not deprecated">
  18056. <doc>
  18057. <![CDATA[Return the protocol scheme for the FileSystem.
  18058. <p>
  18059. @return <code>ftp</code>]]>
  18060. </doc>
  18061. </method>
  18062. <method name="getDefaultPort" return="int"
  18063. abstract="false" native="false" synchronized="false"
  18064. static="false" final="false" visibility="protected"
  18065. deprecated="not deprecated">
  18066. <doc>
  18067. <![CDATA[Get the default port for this FTPFileSystem.
  18068. @return the default port]]>
  18069. </doc>
  18070. </method>
  18071. <method name="initialize"
  18072. abstract="false" native="false" synchronized="false"
  18073. static="false" final="false" visibility="public"
  18074. deprecated="not deprecated">
  18075. <param name="uri" type="java.net.URI"/>
  18076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18077. <exception name="IOException" type="java.io.IOException"/>
  18078. </method>
  18079. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  18080. abstract="false" native="false" synchronized="false"
  18081. static="false" final="false" visibility="public"
  18082. deprecated="not deprecated">
  18083. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18084. <param name="bufferSize" type="int"/>
  18085. <exception name="IOException" type="java.io.IOException"/>
  18086. </method>
  18087. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  18088. abstract="false" native="false" synchronized="false"
  18089. static="false" final="false" visibility="public"
  18090. deprecated="not deprecated">
  18091. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18092. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18093. <param name="overwrite" type="boolean"/>
  18094. <param name="bufferSize" type="int"/>
  18095. <param name="replication" type="short"/>
  18096. <param name="blockSize" type="long"/>
  18097. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18098. <exception name="IOException" type="java.io.IOException"/>
  18099. <doc>
  18100. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  18101. this class or else the invocation will block.]]>
  18102. </doc>
  18103. </method>
  18104. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  18105. abstract="false" native="false" synchronized="false"
  18106. static="false" final="false" visibility="public"
  18107. deprecated="not deprecated">
  18108. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18109. <param name="bufferSize" type="int"/>
  18110. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18111. <exception name="IOException" type="java.io.IOException"/>
  18112. <doc>
  18113. <![CDATA[This optional operation is not yet supported.]]>
  18114. </doc>
  18115. </method>
  18116. <method name="delete" return="boolean"
  18117. abstract="false" native="false" synchronized="false"
  18118. static="false" final="false" visibility="public"
  18119. deprecated="not deprecated">
  18120. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18121. <param name="recursive" type="boolean"/>
  18122. <exception name="IOException" type="java.io.IOException"/>
  18123. </method>
  18124. <method name="getUri" return="java.net.URI"
  18125. abstract="false" native="false" synchronized="false"
  18126. static="false" final="false" visibility="public"
  18127. deprecated="not deprecated">
  18128. </method>
  18129. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  18130. abstract="false" native="false" synchronized="false"
  18131. static="false" final="false" visibility="public"
  18132. deprecated="not deprecated">
  18133. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18134. <exception name="IOException" type="java.io.IOException"/>
  18135. </method>
  18136. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  18137. abstract="false" native="false" synchronized="false"
  18138. static="false" final="false" visibility="public"
  18139. deprecated="not deprecated">
  18140. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18141. <exception name="IOException" type="java.io.IOException"/>
  18142. </method>
  18143. <method name="mkdirs" return="boolean"
  18144. abstract="false" native="false" synchronized="false"
  18145. static="false" final="false" visibility="public"
  18146. deprecated="not deprecated">
  18147. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18148. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18149. <exception name="IOException" type="java.io.IOException"/>
  18150. </method>
  18151. <method name="rename" return="boolean"
  18152. abstract="false" native="false" synchronized="false"
  18153. static="false" final="false" visibility="public"
  18154. deprecated="not deprecated">
  18155. <param name="src" type="org.apache.hadoop.fs.Path"/>
  18156. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  18157. <exception name="IOException" type="java.io.IOException"/>
  18158. </method>
  18159. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  18160. abstract="false" native="false" synchronized="false"
  18161. static="false" final="false" visibility="public"
  18162. deprecated="not deprecated">
  18163. </method>
  18164. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  18165. abstract="false" native="false" synchronized="false"
  18166. static="false" final="false" visibility="public"
  18167. deprecated="not deprecated">
  18168. </method>
  18169. <method name="setWorkingDirectory"
  18170. abstract="false" native="false" synchronized="false"
  18171. static="false" final="false" visibility="public"
  18172. deprecated="not deprecated">
  18173. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  18174. </method>
  18175. <field name="LOG" type="org.slf4j.Logger"
  18176. transient="false" volatile="false"
  18177. static="true" final="true" visibility="public"
  18178. deprecated="not deprecated">
  18179. </field>
  18180. <field name="DEFAULT_BUFFER_SIZE" type="int"
  18181. transient="false" volatile="false"
  18182. static="true" final="true" visibility="public"
  18183. deprecated="not deprecated">
  18184. </field>
  18185. <field name="DEFAULT_BLOCK_SIZE" type="int"
  18186. transient="false" volatile="false"
  18187. static="true" final="true" visibility="public"
  18188. deprecated="not deprecated">
  18189. </field>
  18190. <field name="DEFAULT_TIMEOUT" type="long"
  18191. transient="false" volatile="false"
  18192. static="true" final="true" visibility="public"
  18193. deprecated="not deprecated">
  18194. </field>
  18195. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  18196. transient="false" volatile="false"
  18197. static="true" final="true" visibility="public"
  18198. deprecated="not deprecated">
  18199. </field>
  18200. <field name="FS_FTP_HOST" type="java.lang.String"
  18201. transient="false" volatile="false"
  18202. static="true" final="true" visibility="public"
  18203. deprecated="not deprecated">
  18204. </field>
  18205. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  18206. transient="false" volatile="false"
  18207. static="true" final="true" visibility="public"
  18208. deprecated="not deprecated">
  18209. </field>
  18210. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  18211. transient="false" volatile="false"
  18212. static="true" final="true" visibility="public"
  18213. deprecated="not deprecated">
  18214. </field>
  18215. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  18216. transient="false" volatile="false"
  18217. static="true" final="true" visibility="public"
  18218. deprecated="not deprecated">
  18219. </field>
  18220. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  18221. transient="false" volatile="false"
  18222. static="true" final="true" visibility="public"
  18223. deprecated="not deprecated">
  18224. </field>
  18225. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  18226. transient="false" volatile="false"
  18227. static="true" final="true" visibility="public"
  18228. deprecated="not deprecated">
  18229. </field>
  18230. <field name="FS_FTP_TIMEOUT" type="java.lang.String"
  18231. transient="false" volatile="false"
  18232. static="true" final="true" visibility="public"
  18233. deprecated="not deprecated">
  18234. </field>
  18235. <doc>
  18236. <![CDATA[<p>
  18237. A {@link FileSystem} backed by an FTP client provided by <a
  18238. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  18239. </p>]]>
  18240. </doc>
  18241. </class>
  18242. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  18243. </package>
  18244. <package name="org.apache.hadoop.fs.http">
  18245. </package>
  18246. <package name="org.apache.hadoop.fs.protocolPB">
  18247. </package>
  18248. <package name="org.apache.hadoop.fs.sftp">
  18249. </package>
  18250. <package name="org.apache.hadoop.fs.shell.find">
  18251. </package>
  18252. <package name="org.apache.hadoop.fs.statistics">
  18253. <!-- start class org.apache.hadoop.fs.statistics.DurationStatisticSummary -->
  18254. <class name="DurationStatisticSummary" extends="java.lang.Object"
  18255. abstract="false"
  18256. static="false" final="true" visibility="public"
  18257. deprecated="not deprecated">
  18258. <implements name="java.io.Serializable"/>
  18259. <constructor name="DurationStatisticSummary" type="java.lang.String, boolean, long, long, long, org.apache.hadoop.fs.statistics.MeanStatistic"
  18260. static="false" final="false" visibility="public"
  18261. deprecated="not deprecated">
  18262. <doc>
  18263. <![CDATA[Constructor.
  18264. @param key Statistic key.
  18265. @param success Are these success or failure statistics.
  18266. @param count Count of operation invocations.
  18267. @param max Max duration; -1 if unknown.
  18268. @param min Min duration; -1 if unknown.
  18269. @param mean Mean duration -may be null. (will be cloned)]]>
  18270. </doc>
  18271. </constructor>
  18272. <method name="getKey" return="java.lang.String"
  18273. abstract="false" native="false" synchronized="false"
  18274. static="false" final="false" visibility="public"
  18275. deprecated="not deprecated">
  18276. </method>
  18277. <method name="isSuccess" return="boolean"
  18278. abstract="false" native="false" synchronized="false"
  18279. static="false" final="false" visibility="public"
  18280. deprecated="not deprecated">
  18281. </method>
  18282. <method name="getCount" return="long"
  18283. abstract="false" native="false" synchronized="false"
  18284. static="false" final="false" visibility="public"
  18285. deprecated="not deprecated">
  18286. </method>
  18287. <method name="getMax" return="long"
  18288. abstract="false" native="false" synchronized="false"
  18289. static="false" final="false" visibility="public"
  18290. deprecated="not deprecated">
  18291. </method>
  18292. <method name="getMin" return="long"
  18293. abstract="false" native="false" synchronized="false"
  18294. static="false" final="false" visibility="public"
  18295. deprecated="not deprecated">
  18296. </method>
  18297. <method name="getMean" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18298. abstract="false" native="false" synchronized="false"
  18299. static="false" final="false" visibility="public"
  18300. deprecated="not deprecated">
  18301. </method>
  18302. <method name="toString" return="java.lang.String"
  18303. abstract="false" native="false" synchronized="false"
  18304. static="false" final="false" visibility="public"
  18305. deprecated="not deprecated">
  18306. </method>
  18307. <method name="fetchDurationSummary" return="org.apache.hadoop.fs.statistics.DurationStatisticSummary"
  18308. abstract="false" native="false" synchronized="false"
  18309. static="true" final="false" visibility="public"
  18310. deprecated="not deprecated">
  18311. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18312. <param name="key" type="java.lang.String"/>
  18313. <param name="success" type="boolean"/>
  18314. <doc>
  18315. <![CDATA[Fetch the duration timing summary of success or failure operations
  18316. from an IO Statistics source.
  18317. If the duration key is unknown, the summary will be incomplete.
  18318. @param source source of data
  18319. @param key duration statistic key
  18320. @param success fetch success statistics, or if false, failure stats.
  18321. @return a summary of the statistics.]]>
  18322. </doc>
  18323. </method>
  18324. <method name="fetchSuccessSummary" return="org.apache.hadoop.fs.statistics.DurationStatisticSummary"
  18325. abstract="false" native="false" synchronized="false"
  18326. static="true" final="false" visibility="public"
  18327. deprecated="not deprecated">
  18328. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18329. <param name="key" type="java.lang.String"/>
  18330. <doc>
  18331. <![CDATA[Fetch the duration timing summary from an IOStatistics source.
  18332. If the duration key is unknown, the summary will be incomplete.
  18333. @param source source of data
  18334. @param key duration statistic key
  18335. @return a summary of the statistics.]]>
  18336. </doc>
  18337. </method>
  18338. <doc>
  18339. <![CDATA[Summary of duration tracking statistics
  18340. as extracted from an IOStatistics instance.
  18341. <p>
  18342. This is for reporting and testing.]]>
  18343. </doc>
  18344. </class>
  18345. <!-- end class org.apache.hadoop.fs.statistics.DurationStatisticSummary -->
  18346. <!-- start interface org.apache.hadoop.fs.statistics.IOStatistics -->
  18347. <interface name="IOStatistics" abstract="true"
  18348. static="false" final="false" visibility="public"
  18349. deprecated="not deprecated">
  18350. <method name="counters" return="java.util.Map"
  18351. abstract="true" native="false" synchronized="false"
  18352. static="false" final="false" visibility="public"
  18353. deprecated="not deprecated">
  18354. <doc>
  18355. <![CDATA[Map of counters.
  18356. @return the current map of counters.]]>
  18357. </doc>
  18358. </method>
  18359. <method name="gauges" return="java.util.Map"
  18360. abstract="true" native="false" synchronized="false"
  18361. static="false" final="false" visibility="public"
  18362. deprecated="not deprecated">
  18363. <doc>
  18364. <![CDATA[Map of gauges.
  18365. @return the current map of gauges.]]>
  18366. </doc>
  18367. </method>
  18368. <method name="minimums" return="java.util.Map"
  18369. abstract="true" native="false" synchronized="false"
  18370. static="false" final="false" visibility="public"
  18371. deprecated="not deprecated">
  18372. <doc>
  18373. <![CDATA[Map of minimums.
  18374. @return the current map of minimums.]]>
  18375. </doc>
  18376. </method>
  18377. <method name="maximums" return="java.util.Map"
  18378. abstract="true" native="false" synchronized="false"
  18379. static="false" final="false" visibility="public"
  18380. deprecated="not deprecated">
  18381. <doc>
  18382. <![CDATA[Map of maximums.
  18383. @return the current map of maximums.]]>
  18384. </doc>
  18385. </method>
  18386. <method name="meanStatistics" return="java.util.Map"
  18387. abstract="true" native="false" synchronized="false"
  18388. static="false" final="false" visibility="public"
  18389. deprecated="not deprecated">
  18390. <doc>
  18391. <![CDATA[Map of meanStatistics.
  18392. @return the current map of MeanStatistic statistics.]]>
  18393. </doc>
  18394. </method>
  18395. <field name="MIN_UNSET_VALUE" type="long"
  18396. transient="false" volatile="false"
  18397. static="true" final="true" visibility="public"
  18398. deprecated="not deprecated">
  18399. <doc>
  18400. <![CDATA[Value when a minimum value has never been set.]]>
  18401. </doc>
  18402. </field>
  18403. <field name="MAX_UNSET_VALUE" type="long"
  18404. transient="false" volatile="false"
  18405. static="true" final="true" visibility="public"
  18406. deprecated="not deprecated">
  18407. <doc>
  18408. <![CDATA[Value when a max value has never been set.]]>
  18409. </doc>
  18410. </field>
  18411. <doc>
  18412. <![CDATA[IO Statistics.
  18413. <p>
  18414. These are low-cost per-instance statistics provided by any Hadoop
  18415. I/O class instance.
  18416. <p>
  18417. Consult the filesystem specification document for the requirements
  18418. of an implementation of this interface.]]>
  18419. </doc>
  18420. </interface>
  18421. <!-- end interface org.apache.hadoop.fs.statistics.IOStatistics -->
  18422. <!-- start interface org.apache.hadoop.fs.statistics.IOStatisticsAggregator -->
  18423. <interface name="IOStatisticsAggregator" abstract="true"
  18424. static="false" final="false" visibility="public"
  18425. deprecated="not deprecated">
  18426. <method name="aggregate" return="boolean"
  18427. abstract="true" native="false" synchronized="false"
  18428. static="false" final="false" visibility="public"
  18429. deprecated="not deprecated">
  18430. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18431. <doc>
  18432. <![CDATA[Aggregate the supplied statistics into the current
  18433. set.
  18434. @param statistics statistics; may be null
  18435. @return true if the statistics reference was not null and
  18436. so aggregated.]]>
  18437. </doc>
  18438. </method>
  18439. <doc>
  18440. <![CDATA[Interface exported by classes which support
  18441. aggregation of {@link IOStatistics}.
  18442. Implementations MAY aggregate all statistics
  18443. exported by the IOStatistics reference passed in to
  18444. {@link #aggregate(IOStatistics)}, or they
  18445. may selectively aggregate specific values/classes
  18446. of statistics.]]>
  18447. </doc>
  18448. </interface>
  18449. <!-- end interface org.apache.hadoop.fs.statistics.IOStatisticsAggregator -->
  18450. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsLogging -->
  18451. <class name="IOStatisticsLogging" extends="java.lang.Object"
  18452. abstract="false"
  18453. static="false" final="true" visibility="public"
  18454. deprecated="not deprecated">
  18455. <method name="ioStatisticsSourceToString" return="java.lang.String"
  18456. abstract="false" native="false" synchronized="false"
  18457. static="true" final="false" visibility="public"
  18458. deprecated="not deprecated">
  18459. <param name="source" type="java.lang.Object"/>
  18460. <doc>
  18461. <![CDATA[Extract the statistics from a source object -or ""
  18462. if it is not an instance of {@link IOStatistics},
  18463. {@link IOStatisticsSource} or the retrieved
  18464. statistics are null.
  18465. <p>
  18466. Exceptions are caught and downgraded to debug logging.
  18467. @param source source of statistics.
  18468. @return a string for logging.]]>
  18469. </doc>
  18470. </method>
  18471. <method name="ioStatisticsToString" return="java.lang.String"
  18472. abstract="false" native="false" synchronized="false"
  18473. static="true" final="false" visibility="public"
  18474. deprecated="not deprecated">
  18475. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18476. <doc>
  18477. <![CDATA[Convert IOStatistics to a string form.
  18478. @param statistics A statistics instance.
  18479. @return string value or the empty string if null]]>
  18480. </doc>
  18481. </method>
  18482. <method name="ioStatisticsToPrettyString" return="java.lang.String"
  18483. abstract="false" native="false" synchronized="false"
  18484. static="true" final="false" visibility="public"
  18485. deprecated="not deprecated">
  18486. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18487. <doc>
  18488. <![CDATA[Convert IOStatistics to a string form, with all the metrics sorted
  18489. and empty value stripped.
  18490. This is more expensive than the simple conversion, so should only
  18491. be used for logging/output where it's known/highly likely that the
  18492. caller wants to see the values. Not for debug logging.
  18493. @param statistics A statistics instance.
  18494. @return string value or the empty string if null]]>
  18495. </doc>
  18496. </method>
  18497. <method name="demandStringifyIOStatisticsSource" return="java.lang.Object"
  18498. abstract="false" native="false" synchronized="false"
  18499. static="true" final="false" visibility="public"
  18500. deprecated="not deprecated">
  18501. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  18502. <doc>
  18503. <![CDATA[On demand stringifier of an IOStatisticsSource instance.
  18504. <p>
  18505. Whenever this object's toString() method is called, it evaluates the
  18506. statistics.
  18507. <p>
  18508. This is designed to affordable to use in log statements.
  18509. @param source source of statistics -may be null.
  18510. @return an object whose toString() operation returns the current values.]]>
  18511. </doc>
  18512. </method>
  18513. <method name="demandStringifyIOStatistics" return="java.lang.Object"
  18514. abstract="false" native="false" synchronized="false"
  18515. static="true" final="false" visibility="public"
  18516. deprecated="not deprecated">
  18517. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18518. <doc>
  18519. <![CDATA[On demand stringifier of an IOStatistics instance.
  18520. <p>
  18521. Whenever this object's toString() method is called, it evaluates the
  18522. statistics.
  18523. <p>
  18524. This is for use in log statements where for the cost of creation
  18525. of this entry is low; it is affordable to use in log statements.
  18526. @param statistics statistics to stringify -may be null.
  18527. @return an object whose toString() operation returns the current values.]]>
  18528. </doc>
  18529. </method>
  18530. <method name="logIOStatisticsAtDebug"
  18531. abstract="false" native="false" synchronized="false"
  18532. static="true" final="false" visibility="public"
  18533. deprecated="not deprecated">
  18534. <param name="log" type="org.slf4j.Logger"/>
  18535. <param name="message" type="java.lang.String"/>
  18536. <param name="source" type="java.lang.Object"/>
  18537. <doc>
  18538. <![CDATA[Extract any statistics from the source and log at debug, if
  18539. the log is set to log at debug.
  18540. No-op if logging is not at debug or the source is null/of
  18541. the wrong type/doesn't provide statistics.
  18542. @param log log to log to
  18543. @param message message for log -this must contain "{}" for the
  18544. statistics report to actually get logged.
  18545. @param source source object]]>
  18546. </doc>
  18547. </method>
  18548. <method name="logIOStatisticsAtDebug"
  18549. abstract="false" native="false" synchronized="false"
  18550. static="true" final="false" visibility="public"
  18551. deprecated="not deprecated">
  18552. <param name="message" type="java.lang.String"/>
  18553. <param name="source" type="java.lang.Object"/>
  18554. <doc>
  18555. <![CDATA[Extract any statistics from the source and log to
  18556. this class's log at debug, if
  18557. the log is set to log at debug.
  18558. No-op if logging is not at debug or the source is null/of
  18559. the wrong type/doesn't provide statistics.
  18560. @param message message for log -this must contain "{}" for the
  18561. statistics report to actually get logged.
  18562. @param source source object]]>
  18563. </doc>
  18564. </method>
  18565. <method name="logIOStatisticsAtLevel"
  18566. abstract="false" native="false" synchronized="false"
  18567. static="true" final="false" visibility="public"
  18568. deprecated="not deprecated">
  18569. <param name="log" type="org.slf4j.Logger"/>
  18570. <param name="level" type="java.lang.String"/>
  18571. <param name="source" type="java.lang.Object"/>
  18572. <doc>
  18573. <![CDATA[A method to log IOStatistics from a source at different levels.
  18574. @param log Logger for logging.
  18575. @param level LOG level.
  18576. @param source Source to LOG.]]>
  18577. </doc>
  18578. </method>
  18579. <doc>
  18580. <![CDATA[Utility operations convert IO Statistics sources/instances
  18581. to strings, especially for robustly logging.]]>
  18582. </doc>
  18583. </class>
  18584. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsLogging -->
  18585. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsSnapshot -->
  18586. <class name="IOStatisticsSnapshot" extends="java.lang.Object"
  18587. abstract="false"
  18588. static="false" final="true" visibility="public"
  18589. deprecated="not deprecated">
  18590. <implements name="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18591. <implements name="java.io.Serializable"/>
  18592. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsAggregator"/>
  18593. <constructor name="IOStatisticsSnapshot"
  18594. static="false" final="false" visibility="public"
  18595. deprecated="not deprecated">
  18596. <doc>
  18597. <![CDATA[Construct.]]>
  18598. </doc>
  18599. </constructor>
  18600. <constructor name="IOStatisticsSnapshot" type="org.apache.hadoop.fs.statistics.IOStatistics"
  18601. static="false" final="false" visibility="public"
  18602. deprecated="not deprecated">
  18603. <doc>
  18604. <![CDATA[Construct, taking a snapshot of the source statistics data
  18605. if the source is non-null.
  18606. If the source is null, the empty maps are created
  18607. @param source statistics source. Nullable.]]>
  18608. </doc>
  18609. </constructor>
  18610. <method name="clear"
  18611. abstract="false" native="false" synchronized="true"
  18612. static="false" final="false" visibility="public"
  18613. deprecated="not deprecated">
  18614. <doc>
  18615. <![CDATA[Clear all the maps.]]>
  18616. </doc>
  18617. </method>
  18618. <method name="snapshot"
  18619. abstract="false" native="false" synchronized="true"
  18620. static="false" final="false" visibility="public"
  18621. deprecated="not deprecated">
  18622. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18623. <doc>
  18624. <![CDATA[Take a snapshot.
  18625. This completely overwrites the map data with the statistics
  18626. from the source.
  18627. @param source statistics source.]]>
  18628. </doc>
  18629. </method>
  18630. <method name="aggregate" return="boolean"
  18631. abstract="false" native="false" synchronized="true"
  18632. static="false" final="false" visibility="public"
  18633. deprecated="not deprecated">
  18634. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18635. <doc>
  18636. <![CDATA[Aggregate the current statistics with the
  18637. source reference passed in.
  18638. The operation is synchronized.
  18639. @param source source; may be null
  18640. @return true if a merge took place.]]>
  18641. </doc>
  18642. </method>
  18643. <method name="counters" return="java.util.Map"
  18644. abstract="false" native="false" synchronized="true"
  18645. static="false" final="false" visibility="public"
  18646. deprecated="not deprecated">
  18647. </method>
  18648. <method name="gauges" return="java.util.Map"
  18649. abstract="false" native="false" synchronized="true"
  18650. static="false" final="false" visibility="public"
  18651. deprecated="not deprecated">
  18652. </method>
  18653. <method name="minimums" return="java.util.Map"
  18654. abstract="false" native="false" synchronized="true"
  18655. static="false" final="false" visibility="public"
  18656. deprecated="not deprecated">
  18657. </method>
  18658. <method name="maximums" return="java.util.Map"
  18659. abstract="false" native="false" synchronized="true"
  18660. static="false" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. </method>
  18663. <method name="meanStatistics" return="java.util.Map"
  18664. abstract="false" native="false" synchronized="true"
  18665. static="false" final="false" visibility="public"
  18666. deprecated="not deprecated">
  18667. </method>
  18668. <method name="toString" return="java.lang.String"
  18669. abstract="false" native="false" synchronized="false"
  18670. static="false" final="false" visibility="public"
  18671. deprecated="not deprecated">
  18672. </method>
  18673. <method name="serializer" return="org.apache.hadoop.util.JsonSerialization"
  18674. abstract="false" native="false" synchronized="false"
  18675. static="true" final="false" visibility="public"
  18676. deprecated="not deprecated">
  18677. <doc>
  18678. <![CDATA[Get a JSON serializer for this class.
  18679. @return a serializer.]]>
  18680. </doc>
  18681. </method>
  18682. <method name="requiredSerializationClasses" return="java.util.List"
  18683. abstract="false" native="false" synchronized="false"
  18684. static="true" final="false" visibility="public"
  18685. deprecated="not deprecated">
  18686. <doc>
  18687. <![CDATA[What classes are needed to deserialize this class?
  18688. Needed to securely unmarshall this from untrusted sources.
  18689. @return a list of required classes to deserialize the data.]]>
  18690. </doc>
  18691. </method>
  18692. <doc>
  18693. <![CDATA[Snapshot of statistics from a different source.
  18694. <p>
  18695. It is serializable so that frameworks which can use java serialization
  18696. to propagate data (Spark, Flink...) can send the statistics
  18697. back. For this reason, TreeMaps are explicitly used as field types,
  18698. even though IDEs can recommend use of Map instead.
  18699. For security reasons, untrusted java object streams should never be
  18700. deserialized. If for some reason this is required, use
  18701. {@link #requiredSerializationClasses()} to get the list of classes
  18702. used when deserializing instances of this object.
  18703. </p>
  18704. <p>
  18705. It is annotated for correct serializations with jackson2.
  18706. </p>]]>
  18707. </doc>
  18708. </class>
  18709. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsSnapshot -->
  18710. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsSupport -->
  18711. <class name="IOStatisticsSupport" extends="java.lang.Object"
  18712. abstract="false"
  18713. static="false" final="true" visibility="public"
  18714. deprecated="not deprecated">
  18715. <method name="snapshotIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatisticsSnapshot"
  18716. abstract="false" native="false" synchronized="false"
  18717. static="true" final="false" visibility="public"
  18718. deprecated="not deprecated">
  18719. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18720. <doc>
  18721. <![CDATA[Take a snapshot of the current statistics state.
  18722. <p>
  18723. This is not an atomic option.
  18724. <p>
  18725. The instance can be serialized, and its
  18726. {@code toString()} method lists all the values.
  18727. @param statistics statistics
  18728. @return a snapshot of the current values.]]>
  18729. </doc>
  18730. </method>
  18731. <method name="snapshotIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatisticsSnapshot"
  18732. abstract="false" native="false" synchronized="false"
  18733. static="true" final="false" visibility="public"
  18734. deprecated="not deprecated">
  18735. <doc>
  18736. <![CDATA[Create a snapshot statistics instance ready to aggregate data.
  18737. The instance can be serialized, and its
  18738. {@code toString()} method lists all the values.
  18739. @return an empty snapshot]]>
  18740. </doc>
  18741. </method>
  18742. <method name="retrieveIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  18743. abstract="false" native="false" synchronized="false"
  18744. static="true" final="false" visibility="public"
  18745. deprecated="not deprecated">
  18746. <param name="source" type="java.lang.Object"/>
  18747. <doc>
  18748. <![CDATA[Get the IOStatistics of the source, casting it
  18749. if it is of the relevant type, otherwise,
  18750. if it implements {@link IOStatisticsSource}
  18751. extracting the value.
  18752. Returns null if the source isn't of the write type
  18753. or the return value of
  18754. {@link IOStatisticsSource#getIOStatistics()} was null.
  18755. @param source source.
  18756. @return an IOStatistics instance or null]]>
  18757. </doc>
  18758. </method>
  18759. <method name="stubDurationTrackerFactory" return="org.apache.hadoop.fs.statistics.DurationTrackerFactory"
  18760. abstract="false" native="false" synchronized="false"
  18761. static="true" final="false" visibility="public"
  18762. deprecated="not deprecated">
  18763. <doc>
  18764. <![CDATA[Return a stub duration tracker factory whose returned trackers
  18765. are always no-ops.
  18766. As singletons are returned, this is very low-cost to use.
  18767. @return a duration tracker factory.]]>
  18768. </doc>
  18769. </method>
  18770. <method name="stubDurationTracker" return="org.apache.hadoop.fs.statistics.DurationTracker"
  18771. abstract="false" native="false" synchronized="false"
  18772. static="true" final="false" visibility="public"
  18773. deprecated="not deprecated">
  18774. <doc>
  18775. <![CDATA[Get a stub duration tracker.
  18776. @return a stub tracker.]]>
  18777. </doc>
  18778. </method>
  18779. <doc>
  18780. <![CDATA[Support for working with IOStatistics.]]>
  18781. </doc>
  18782. </class>
  18783. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsSupport -->
  18784. <!-- start class org.apache.hadoop.fs.statistics.MeanStatistic -->
  18785. <class name="MeanStatistic" extends="java.lang.Object"
  18786. abstract="false"
  18787. static="false" final="true" visibility="public"
  18788. deprecated="not deprecated">
  18789. <implements name="java.io.Serializable"/>
  18790. <implements name="java.lang.Cloneable"/>
  18791. <constructor name="MeanStatistic" type="long, long"
  18792. static="false" final="false" visibility="public"
  18793. deprecated="not deprecated">
  18794. <doc>
  18795. <![CDATA[Constructor, with some resilience against invalid sample counts.
  18796. If the sample count is 0 or less, the sum is set to 0 and
  18797. the sample count to 0.
  18798. @param samples sample count.
  18799. @param sum sum value]]>
  18800. </doc>
  18801. </constructor>
  18802. <constructor name="MeanStatistic" type="org.apache.hadoop.fs.statistics.MeanStatistic"
  18803. static="false" final="false" visibility="public"
  18804. deprecated="not deprecated">
  18805. <doc>
  18806. <![CDATA[Create from another statistic.
  18807. @param that source]]>
  18808. </doc>
  18809. </constructor>
  18810. <constructor name="MeanStatistic"
  18811. static="false" final="false" visibility="public"
  18812. deprecated="not deprecated">
  18813. <doc>
  18814. <![CDATA[Create an empty statistic.]]>
  18815. </doc>
  18816. </constructor>
  18817. <method name="getSum" return="long"
  18818. abstract="false" native="false" synchronized="true"
  18819. static="false" final="false" visibility="public"
  18820. deprecated="not deprecated">
  18821. <doc>
  18822. <![CDATA[Get the sum of samples.
  18823. @return the sum]]>
  18824. </doc>
  18825. </method>
  18826. <method name="getSamples" return="long"
  18827. abstract="false" native="false" synchronized="true"
  18828. static="false" final="false" visibility="public"
  18829. deprecated="not deprecated">
  18830. <doc>
  18831. <![CDATA[Get the sample count.
  18832. @return the sample count; 0 means empty]]>
  18833. </doc>
  18834. </method>
  18835. <method name="isEmpty" return="boolean"
  18836. abstract="false" native="false" synchronized="true"
  18837. static="false" final="false" visibility="public"
  18838. deprecated="not deprecated">
  18839. <doc>
  18840. <![CDATA[Is a statistic empty?
  18841. @return true if the sample count is 0]]>
  18842. </doc>
  18843. </method>
  18844. <method name="clear"
  18845. abstract="false" native="false" synchronized="false"
  18846. static="false" final="false" visibility="public"
  18847. deprecated="not deprecated">
  18848. <doc>
  18849. <![CDATA[Set the values to 0.]]>
  18850. </doc>
  18851. </method>
  18852. <method name="setSamplesAndSum"
  18853. abstract="false" native="false" synchronized="true"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <param name="sampleCount" type="long"/>
  18857. <param name="newSum" type="long"/>
  18858. <doc>
  18859. <![CDATA[Set the sum and samples.
  18860. Synchronized.
  18861. @param sampleCount new sample count.
  18862. @param newSum new sum]]>
  18863. </doc>
  18864. </method>
  18865. <method name="set"
  18866. abstract="false" native="false" synchronized="false"
  18867. static="false" final="false" visibility="public"
  18868. deprecated="not deprecated">
  18869. <param name="other" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  18870. <doc>
  18871. <![CDATA[Set the statistic to the values of another.
  18872. Synchronized.
  18873. @param other the source.]]>
  18874. </doc>
  18875. </method>
  18876. <method name="setSum"
  18877. abstract="false" native="false" synchronized="true"
  18878. static="false" final="false" visibility="public"
  18879. deprecated="not deprecated">
  18880. <param name="sum" type="long"/>
  18881. <doc>
  18882. <![CDATA[Set the sum.
  18883. @param sum new sum]]>
  18884. </doc>
  18885. </method>
  18886. <method name="setSamples"
  18887. abstract="false" native="false" synchronized="true"
  18888. static="false" final="false" visibility="public"
  18889. deprecated="not deprecated">
  18890. <param name="samples" type="long"/>
  18891. <doc>
  18892. <![CDATA[Set the sample count.
  18893. If this is less than zero, it is set to zero.
  18894. This stops an ill-formed JSON entry from
  18895. breaking deserialization, or get an invalid sample count
  18896. into an entry.
  18897. @param samples sample count.]]>
  18898. </doc>
  18899. </method>
  18900. <method name="mean" return="double"
  18901. abstract="false" native="false" synchronized="true"
  18902. static="false" final="false" visibility="public"
  18903. deprecated="not deprecated">
  18904. <doc>
  18905. <![CDATA[Get the arithmetic mean value.
  18906. @return the mean]]>
  18907. </doc>
  18908. </method>
  18909. <method name="add" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18910. abstract="false" native="false" synchronized="true"
  18911. static="false" final="false" visibility="public"
  18912. deprecated="not deprecated">
  18913. <param name="other" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  18914. <doc>
  18915. <![CDATA[Add another MeanStatistic.
  18916. @param other other value
  18917. @return mean statistic.]]>
  18918. </doc>
  18919. </method>
  18920. <method name="addSample"
  18921. abstract="false" native="false" synchronized="true"
  18922. static="false" final="false" visibility="public"
  18923. deprecated="not deprecated">
  18924. <param name="value" type="long"/>
  18925. <doc>
  18926. <![CDATA[Add a sample.
  18927. Thread safe.
  18928. @param value value to add to the sum]]>
  18929. </doc>
  18930. </method>
  18931. <method name="hashCode" return="int"
  18932. abstract="false" native="false" synchronized="true"
  18933. static="false" final="false" visibility="public"
  18934. deprecated="not deprecated">
  18935. <doc>
  18936. <![CDATA[The hash code is derived from the mean
  18937. and sample count: if either is changed
  18938. the statistic cannot be used as a key
  18939. for hash tables/maps.
  18940. @return a hash value]]>
  18941. </doc>
  18942. </method>
  18943. <method name="equals" return="boolean"
  18944. abstract="false" native="false" synchronized="true"
  18945. static="false" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <param name="o" type="java.lang.Object"/>
  18948. </method>
  18949. <method name="clone" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18950. abstract="false" native="false" synchronized="false"
  18951. static="false" final="false" visibility="public"
  18952. deprecated="not deprecated">
  18953. </method>
  18954. <method name="copy" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18955. abstract="false" native="false" synchronized="false"
  18956. static="false" final="false" visibility="public"
  18957. deprecated="not deprecated">
  18958. <doc>
  18959. <![CDATA[Create a copy of this instance.
  18960. @return copy.]]>
  18961. </doc>
  18962. </method>
  18963. <method name="toString" return="java.lang.String"
  18964. abstract="false" native="false" synchronized="false"
  18965. static="false" final="false" visibility="public"
  18966. deprecated="not deprecated">
  18967. </method>
  18968. <doc>
  18969. <![CDATA[A mean statistic represented as the sum and the sample count;
  18970. the mean is calculated on demand.
  18971. <p>
  18972. It can be used to accrue values so as to dynamically update
  18973. the mean. If so, know that there is no synchronization
  18974. on the methods.
  18975. </p>
  18976. <p>
  18977. If a statistic has 0 samples then it is considered to be empty.
  18978. </p>
  18979. <p>
  18980. All 'empty' statistics are equivalent, independent of the sum value.
  18981. </p>
  18982. <p>
  18983. For non-empty statistics, sum and sample values must match
  18984. for equality.
  18985. </p>
  18986. <p>
  18987. It is serializable and annotated for correct serializations with jackson2.
  18988. </p>
  18989. <p>
  18990. Thread safety. The operations to add/copy sample data, are thread safe.
  18991. </p>
  18992. <ol>
  18993. <li>{@link #add(MeanStatistic)}</li>
  18994. <li>{@link #addSample(long)} </li>
  18995. <li>{@link #clear()} </li>
  18996. <li>{@link #setSamplesAndSum(long, long)}</li>
  18997. <li>{@link #set(MeanStatistic)}</li>
  18998. <li>{@link #setSamples(long)} and {@link #setSum(long)}</li>
  18999. </ol>
  19000. <p>
  19001. So is the {@link #mean()} method. This ensures that when
  19002. used to aggregated statistics, the aggregate value and sample
  19003. count are set and evaluated consistently.
  19004. </p>
  19005. <p>
  19006. Other methods marked as synchronized because Findbugs overreacts
  19007. to the idea that some operations to update sum and sample count
  19008. are synchronized, but that things like equals are not.
  19009. </p>]]>
  19010. </doc>
  19011. </class>
  19012. <!-- end class org.apache.hadoop.fs.statistics.MeanStatistic -->
  19013. <!-- start class org.apache.hadoop.fs.statistics.StoreStatisticNames -->
  19014. <class name="StoreStatisticNames" extends="java.lang.Object"
  19015. abstract="false"
  19016. static="false" final="true" visibility="public"
  19017. deprecated="not deprecated">
  19018. <field name="OP_ABORT" type="java.lang.String"
  19019. transient="false" volatile="false"
  19020. static="true" final="true" visibility="public"
  19021. deprecated="not deprecated">
  19022. <doc>
  19023. <![CDATA[{@value}.]]>
  19024. </doc>
  19025. </field>
  19026. <field name="OP_ACCESS" type="java.lang.String"
  19027. transient="false" volatile="false"
  19028. static="true" final="true" visibility="public"
  19029. deprecated="not deprecated">
  19030. <doc>
  19031. <![CDATA[access() API call {@value}.]]>
  19032. </doc>
  19033. </field>
  19034. <field name="OP_APPEND" type="java.lang.String"
  19035. transient="false" volatile="false"
  19036. static="true" final="true" visibility="public"
  19037. deprecated="not deprecated">
  19038. <doc>
  19039. <![CDATA[{@value}.]]>
  19040. </doc>
  19041. </field>
  19042. <field name="OP_COPY_FROM_LOCAL_FILE" type="java.lang.String"
  19043. transient="false" volatile="false"
  19044. static="true" final="true" visibility="public"
  19045. deprecated="not deprecated">
  19046. <doc>
  19047. <![CDATA[{@value}.]]>
  19048. </doc>
  19049. </field>
  19050. <field name="OP_CREATE" type="java.lang.String"
  19051. transient="false" volatile="false"
  19052. static="true" final="true" visibility="public"
  19053. deprecated="not deprecated">
  19054. <doc>
  19055. <![CDATA[{@value}.]]>
  19056. </doc>
  19057. </field>
  19058. <field name="OP_CREATE_FILE" type="java.lang.String"
  19059. transient="false" volatile="false"
  19060. static="true" final="true" visibility="public"
  19061. deprecated="not deprecated">
  19062. <doc>
  19063. <![CDATA[{@value}.]]>
  19064. </doc>
  19065. </field>
  19066. <field name="OP_CREATE_NON_RECURSIVE" type="java.lang.String"
  19067. transient="false" volatile="false"
  19068. static="true" final="true" visibility="public"
  19069. deprecated="not deprecated">
  19070. <doc>
  19071. <![CDATA[{@value}.]]>
  19072. </doc>
  19073. </field>
  19074. <field name="OP_DELETE" type="java.lang.String"
  19075. transient="false" volatile="false"
  19076. static="true" final="true" visibility="public"
  19077. deprecated="not deprecated">
  19078. <doc>
  19079. <![CDATA[{@value}.]]>
  19080. </doc>
  19081. </field>
  19082. <field name="OP_EXISTS" type="java.lang.String"
  19083. transient="false" volatile="false"
  19084. static="true" final="true" visibility="public"
  19085. deprecated="not deprecated">
  19086. <doc>
  19087. <![CDATA[{@value}.]]>
  19088. </doc>
  19089. </field>
  19090. <field name="OP_GET_CONTENT_SUMMARY" type="java.lang.String"
  19091. transient="false" volatile="false"
  19092. static="true" final="true" visibility="public"
  19093. deprecated="not deprecated">
  19094. <doc>
  19095. <![CDATA[{@value}.]]>
  19096. </doc>
  19097. </field>
  19098. <field name="OP_GET_DELEGATION_TOKEN" type="java.lang.String"
  19099. transient="false" volatile="false"
  19100. static="true" final="true" visibility="public"
  19101. deprecated="not deprecated">
  19102. <doc>
  19103. <![CDATA[{@value}.]]>
  19104. </doc>
  19105. </field>
  19106. <field name="OP_GET_FILE_CHECKSUM" type="java.lang.String"
  19107. transient="false" volatile="false"
  19108. static="true" final="true" visibility="public"
  19109. deprecated="not deprecated">
  19110. <doc>
  19111. <![CDATA[{@value}.]]>
  19112. </doc>
  19113. </field>
  19114. <field name="OP_GET_FILE_STATUS" type="java.lang.String"
  19115. transient="false" volatile="false"
  19116. static="true" final="true" visibility="public"
  19117. deprecated="not deprecated">
  19118. <doc>
  19119. <![CDATA[{@value}.]]>
  19120. </doc>
  19121. </field>
  19122. <field name="OP_GET_STATUS" type="java.lang.String"
  19123. transient="false" volatile="false"
  19124. static="true" final="true" visibility="public"
  19125. deprecated="not deprecated">
  19126. <doc>
  19127. <![CDATA[{@value}.]]>
  19128. </doc>
  19129. </field>
  19130. <field name="OP_GLOB_STATUS" type="java.lang.String"
  19131. transient="false" volatile="false"
  19132. static="true" final="true" visibility="public"
  19133. deprecated="not deprecated">
  19134. <doc>
  19135. <![CDATA[{@value}.]]>
  19136. </doc>
  19137. </field>
  19138. <field name="OP_IS_FILE" type="java.lang.String"
  19139. transient="false" volatile="false"
  19140. static="true" final="true" visibility="public"
  19141. deprecated="not deprecated">
  19142. <doc>
  19143. <![CDATA[{@value}.]]>
  19144. </doc>
  19145. </field>
  19146. <field name="OP_HFLUSH" type="java.lang.String"
  19147. transient="false" volatile="false"
  19148. static="true" final="true" visibility="public"
  19149. deprecated="not deprecated">
  19150. <doc>
  19151. <![CDATA[{@value}.]]>
  19152. </doc>
  19153. </field>
  19154. <field name="OP_HSYNC" type="java.lang.String"
  19155. transient="false" volatile="false"
  19156. static="true" final="true" visibility="public"
  19157. deprecated="not deprecated">
  19158. <doc>
  19159. <![CDATA[{@value}.]]>
  19160. </doc>
  19161. </field>
  19162. <field name="OP_IS_DIRECTORY" type="java.lang.String"
  19163. transient="false" volatile="false"
  19164. static="true" final="true" visibility="public"
  19165. deprecated="not deprecated">
  19166. <doc>
  19167. <![CDATA[{@value}.]]>
  19168. </doc>
  19169. </field>
  19170. <field name="OP_LIST_FILES" type="java.lang.String"
  19171. transient="false" volatile="false"
  19172. static="true" final="true" visibility="public"
  19173. deprecated="not deprecated">
  19174. <doc>
  19175. <![CDATA[{@value}.]]>
  19176. </doc>
  19177. </field>
  19178. <field name="OP_LIST_LOCATED_STATUS" type="java.lang.String"
  19179. transient="false" volatile="false"
  19180. static="true" final="true" visibility="public"
  19181. deprecated="not deprecated">
  19182. <doc>
  19183. <![CDATA[{@value}.]]>
  19184. </doc>
  19185. </field>
  19186. <field name="OP_LIST_STATUS" type="java.lang.String"
  19187. transient="false" volatile="false"
  19188. static="true" final="true" visibility="public"
  19189. deprecated="not deprecated">
  19190. <doc>
  19191. <![CDATA[{@value}.]]>
  19192. </doc>
  19193. </field>
  19194. <field name="OP_MKDIRS" type="java.lang.String"
  19195. transient="false" volatile="false"
  19196. static="true" final="true" visibility="public"
  19197. deprecated="not deprecated">
  19198. <doc>
  19199. <![CDATA[{@value}.]]>
  19200. </doc>
  19201. </field>
  19202. <field name="OP_MODIFY_ACL_ENTRIES" type="java.lang.String"
  19203. transient="false" volatile="false"
  19204. static="true" final="true" visibility="public"
  19205. deprecated="not deprecated">
  19206. <doc>
  19207. <![CDATA[{@value}.]]>
  19208. </doc>
  19209. </field>
  19210. <field name="OP_MSYNC" type="java.lang.String"
  19211. transient="false" volatile="false"
  19212. static="true" final="true" visibility="public"
  19213. deprecated="not deprecated">
  19214. <doc>
  19215. <![CDATA[{@value}.]]>
  19216. </doc>
  19217. </field>
  19218. <field name="OP_OPEN" type="java.lang.String"
  19219. transient="false" volatile="false"
  19220. static="true" final="true" visibility="public"
  19221. deprecated="not deprecated">
  19222. <doc>
  19223. <![CDATA[{@value}.]]>
  19224. </doc>
  19225. </field>
  19226. <field name="OP_OPENFILE" type="java.lang.String"
  19227. transient="false" volatile="false"
  19228. static="true" final="true" visibility="public"
  19229. deprecated="not deprecated">
  19230. <doc>
  19231. <![CDATA[Call to openFile() {@value}.]]>
  19232. </doc>
  19233. </field>
  19234. <field name="OP_REMOVE_ACL" type="java.lang.String"
  19235. transient="false" volatile="false"
  19236. static="true" final="true" visibility="public"
  19237. deprecated="not deprecated">
  19238. <doc>
  19239. <![CDATA[{@value}.]]>
  19240. </doc>
  19241. </field>
  19242. <field name="OP_REMOVE_ACL_ENTRIES" type="java.lang.String"
  19243. transient="false" volatile="false"
  19244. static="true" final="true" visibility="public"
  19245. deprecated="not deprecated">
  19246. <doc>
  19247. <![CDATA[{@value}.]]>
  19248. </doc>
  19249. </field>
  19250. <field name="OP_REMOVE_DEFAULT_ACL" type="java.lang.String"
  19251. transient="false" volatile="false"
  19252. static="true" final="true" visibility="public"
  19253. deprecated="not deprecated">
  19254. <doc>
  19255. <![CDATA[{@value}.]]>
  19256. </doc>
  19257. </field>
  19258. <field name="OP_RENAME" type="java.lang.String"
  19259. transient="false" volatile="false"
  19260. static="true" final="true" visibility="public"
  19261. deprecated="not deprecated">
  19262. <doc>
  19263. <![CDATA[{@value}.]]>
  19264. </doc>
  19265. </field>
  19266. <field name="OP_SET_ACL" type="java.lang.String"
  19267. transient="false" volatile="false"
  19268. static="true" final="true" visibility="public"
  19269. deprecated="not deprecated">
  19270. <doc>
  19271. <![CDATA[{@value}.]]>
  19272. </doc>
  19273. </field>
  19274. <field name="OP_SET_OWNER" type="java.lang.String"
  19275. transient="false" volatile="false"
  19276. static="true" final="true" visibility="public"
  19277. deprecated="not deprecated">
  19278. <doc>
  19279. <![CDATA[{@value}.]]>
  19280. </doc>
  19281. </field>
  19282. <field name="OP_SET_PERMISSION" type="java.lang.String"
  19283. transient="false" volatile="false"
  19284. static="true" final="true" visibility="public"
  19285. deprecated="not deprecated">
  19286. <doc>
  19287. <![CDATA[{@value}.]]>
  19288. </doc>
  19289. </field>
  19290. <field name="OP_SET_TIMES" type="java.lang.String"
  19291. transient="false" volatile="false"
  19292. static="true" final="true" visibility="public"
  19293. deprecated="not deprecated">
  19294. <doc>
  19295. <![CDATA[{@value}.]]>
  19296. </doc>
  19297. </field>
  19298. <field name="OP_TRUNCATE" type="java.lang.String"
  19299. transient="false" volatile="false"
  19300. static="true" final="true" visibility="public"
  19301. deprecated="not deprecated">
  19302. <doc>
  19303. <![CDATA[{@value}.]]>
  19304. </doc>
  19305. </field>
  19306. <field name="OP_XATTR_GET_MAP" type="java.lang.String"
  19307. transient="false" volatile="false"
  19308. static="true" final="true" visibility="public"
  19309. deprecated="not deprecated">
  19310. <doc>
  19311. <![CDATA[Invoke {@code getXAttrs(Path path)}: {@value}.]]>
  19312. </doc>
  19313. </field>
  19314. <field name="OP_XATTR_GET_NAMED" type="java.lang.String"
  19315. transient="false" volatile="false"
  19316. static="true" final="true" visibility="public"
  19317. deprecated="not deprecated">
  19318. <doc>
  19319. <![CDATA[Invoke {@code getXAttr(Path, String)}: {@value}.]]>
  19320. </doc>
  19321. </field>
  19322. <field name="OP_XATTR_GET_NAMED_MAP" type="java.lang.String"
  19323. transient="false" volatile="false"
  19324. static="true" final="true" visibility="public"
  19325. deprecated="not deprecated">
  19326. <doc>
  19327. <![CDATA[Invoke {@code getXAttrs(Path path, List<String> names)}: {@value}.]]>
  19328. </doc>
  19329. </field>
  19330. <field name="OP_XATTR_LIST" type="java.lang.String"
  19331. transient="false" volatile="false"
  19332. static="true" final="true" visibility="public"
  19333. deprecated="not deprecated">
  19334. <doc>
  19335. <![CDATA[Invoke {@code listXAttrs(Path path)}: {@value}.]]>
  19336. </doc>
  19337. </field>
  19338. <field name="DELEGATION_TOKENS_ISSUED" type="java.lang.String"
  19339. transient="false" volatile="false"
  19340. static="true" final="true" visibility="public"
  19341. deprecated="not deprecated">
  19342. <doc>
  19343. <![CDATA[{@value}.]]>
  19344. </doc>
  19345. </field>
  19346. <field name="STORE_EXISTS_PROBE" type="java.lang.String"
  19347. transient="false" volatile="false"
  19348. static="true" final="true" visibility="public"
  19349. deprecated="not deprecated">
  19350. <doc>
  19351. <![CDATA[Probe for store existing: {@value}.]]>
  19352. </doc>
  19353. </field>
  19354. <field name="STORE_IO_THROTTLED" type="java.lang.String"
  19355. transient="false" volatile="false"
  19356. static="true" final="true" visibility="public"
  19357. deprecated="not deprecated">
  19358. <doc>
  19359. <![CDATA[Requests throttled and retried: {@value}.]]>
  19360. </doc>
  19361. </field>
  19362. <field name="STORE_IO_RATE_LIMITED" type="java.lang.String"
  19363. transient="false" volatile="false"
  19364. static="true" final="true" visibility="public"
  19365. deprecated="not deprecated">
  19366. <doc>
  19367. <![CDATA[Rate limiting was reported {@value}.]]>
  19368. </doc>
  19369. </field>
  19370. <field name="STORE_IO_REQUEST" type="java.lang.String"
  19371. transient="false" volatile="false"
  19372. static="true" final="true" visibility="public"
  19373. deprecated="not deprecated">
  19374. <doc>
  19375. <![CDATA[Requests made of a store: {@value}.]]>
  19376. </doc>
  19377. </field>
  19378. <field name="STORE_IO_RETRY" type="java.lang.String"
  19379. transient="false" volatile="false"
  19380. static="true" final="true" visibility="public"
  19381. deprecated="not deprecated">
  19382. <doc>
  19383. <![CDATA[IO retried: {@value}.]]>
  19384. </doc>
  19385. </field>
  19386. <field name="OBJECT_LIST_REQUEST" type="java.lang.String"
  19387. transient="false" volatile="false"
  19388. static="true" final="true" visibility="public"
  19389. deprecated="not deprecated">
  19390. <doc>
  19391. <![CDATA[A store's equivalent of a paged LIST request was initiated: {@value}.]]>
  19392. </doc>
  19393. </field>
  19394. <field name="OBJECT_CONTINUE_LIST_REQUEST" type="java.lang.String"
  19395. transient="false" volatile="false"
  19396. static="true" final="true" visibility="public"
  19397. deprecated="not deprecated">
  19398. <doc>
  19399. <![CDATA[Number of continued object listings made.
  19400. Value :{@value}.]]>
  19401. </doc>
  19402. </field>
  19403. <field name="OBJECT_BULK_DELETE_REQUEST" type="java.lang.String"
  19404. transient="false" volatile="false"
  19405. static="true" final="true" visibility="public"
  19406. deprecated="not deprecated">
  19407. <doc>
  19408. <![CDATA[A bulk DELETE request was made: {@value}.
  19409. A separate statistic from {@link #OBJECT_DELETE_REQUEST}
  19410. so that metrics on duration of the operations can
  19411. be distinguished.]]>
  19412. </doc>
  19413. </field>
  19414. <field name="OBJECT_DELETE_REQUEST" type="java.lang.String"
  19415. transient="false" volatile="false"
  19416. static="true" final="true" visibility="public"
  19417. deprecated="not deprecated">
  19418. <doc>
  19419. <![CDATA[A store's equivalent of a DELETE request was made: {@value}.
  19420. This may be an HTTP DELETE verb, or it may be some custom
  19421. operation which takes a list of objects to delete.]]>
  19422. </doc>
  19423. </field>
  19424. <field name="OBJECT_DELETE_OBJECTS" type="java.lang.String"
  19425. transient="false" volatile="false"
  19426. static="true" final="true" visibility="public"
  19427. deprecated="not deprecated">
  19428. <doc>
  19429. <![CDATA[The count of objects deleted in delete requests.]]>
  19430. </doc>
  19431. </field>
  19432. <field name="OBJECT_MULTIPART_UPLOAD_INITIATED" type="java.lang.String"
  19433. transient="false" volatile="false"
  19434. static="true" final="true" visibility="public"
  19435. deprecated="not deprecated">
  19436. <doc>
  19437. <![CDATA[Object multipart upload initiated.
  19438. Value :{@value}.]]>
  19439. </doc>
  19440. </field>
  19441. <field name="OBJECT_MULTIPART_UPLOAD_ABORTED" type="java.lang.String"
  19442. transient="false" volatile="false"
  19443. static="true" final="true" visibility="public"
  19444. deprecated="not deprecated">
  19445. <doc>
  19446. <![CDATA[Object multipart upload aborted.
  19447. Value :{@value}.]]>
  19448. </doc>
  19449. </field>
  19450. <field name="OBJECT_PUT_REQUEST" type="java.lang.String"
  19451. transient="false" volatile="false"
  19452. static="true" final="true" visibility="public"
  19453. deprecated="not deprecated">
  19454. <doc>
  19455. <![CDATA[Object put/multipart upload count.
  19456. Value :{@value}.]]>
  19457. </doc>
  19458. </field>
  19459. <field name="OBJECT_PUT_REQUEST_COMPLETED" type="java.lang.String"
  19460. transient="false" volatile="false"
  19461. static="true" final="true" visibility="public"
  19462. deprecated="not deprecated">
  19463. <doc>
  19464. <![CDATA[Object put/multipart upload completed count.
  19465. Value :{@value}.]]>
  19466. </doc>
  19467. </field>
  19468. <field name="OBJECT_PUT_REQUEST_ACTIVE" type="java.lang.String"
  19469. transient="false" volatile="false"
  19470. static="true" final="true" visibility="public"
  19471. deprecated="not deprecated">
  19472. <doc>
  19473. <![CDATA[Current number of active put requests.
  19474. Value :{@value}.]]>
  19475. </doc>
  19476. </field>
  19477. <field name="OBJECT_PUT_BYTES" type="java.lang.String"
  19478. transient="false" volatile="false"
  19479. static="true" final="true" visibility="public"
  19480. deprecated="not deprecated">
  19481. <doc>
  19482. <![CDATA[number of bytes uploaded.
  19483. Value :{@value}.]]>
  19484. </doc>
  19485. </field>
  19486. <field name="OBJECT_PUT_BYTES_PENDING" type="java.lang.String"
  19487. transient="false" volatile="false"
  19488. static="true" final="true" visibility="public"
  19489. deprecated="not deprecated">
  19490. <doc>
  19491. <![CDATA[number of bytes queued for upload/being actively uploaded.
  19492. Value :{@value}.]]>
  19493. </doc>
  19494. </field>
  19495. <field name="OBJECT_SELECT_REQUESTS" type="java.lang.String"
  19496. transient="false" volatile="false"
  19497. static="true" final="true" visibility="public"
  19498. deprecated="not deprecated">
  19499. <doc>
  19500. <![CDATA[Count of S3 Select (or similar) requests issued.
  19501. Value :{@value}.]]>
  19502. </doc>
  19503. </field>
  19504. <field name="SUFFIX_MIN" type="java.lang.String"
  19505. transient="false" volatile="false"
  19506. static="true" final="true" visibility="public"
  19507. deprecated="not deprecated">
  19508. <doc>
  19509. <![CDATA[Suffix to use for a minimum value when
  19510. the same key is shared across min/mean/max
  19511. statistics.
  19512. Value {@value}.]]>
  19513. </doc>
  19514. </field>
  19515. <field name="SUFFIX_MAX" type="java.lang.String"
  19516. transient="false" volatile="false"
  19517. static="true" final="true" visibility="public"
  19518. deprecated="not deprecated">
  19519. <doc>
  19520. <![CDATA[Suffix to use for a maximum value when
  19521. the same key is shared across max/mean/max
  19522. statistics.
  19523. Value {@value}.]]>
  19524. </doc>
  19525. </field>
  19526. <field name="SUFFIX_MEAN" type="java.lang.String"
  19527. transient="false" volatile="false"
  19528. static="true" final="true" visibility="public"
  19529. deprecated="not deprecated">
  19530. <doc>
  19531. <![CDATA[Suffix to use for a mean statistic value when
  19532. the same key is shared across mean/mean/max
  19533. statistics.
  19534. Value {@value}.]]>
  19535. </doc>
  19536. </field>
  19537. <field name="SUFFIX_FAILURES" type="java.lang.String"
  19538. transient="false" volatile="false"
  19539. static="true" final="true" visibility="public"
  19540. deprecated="not deprecated">
  19541. <doc>
  19542. <![CDATA[String to add to counters and other stats to track failures.
  19543. This comes before the .min/.mean//max suffixes.
  19544. Value {@value}.]]>
  19545. </doc>
  19546. </field>
  19547. <field name="ACTION_EXECUTOR_ACQUIRED" type="java.lang.String"
  19548. transient="false" volatile="false"
  19549. static="true" final="true" visibility="public"
  19550. deprecated="not deprecated">
  19551. <doc>
  19552. <![CDATA[The name of the statistic collected for executor acquisition if
  19553. a duration tracker factory is passed in to the constructor.
  19554. {@value}.]]>
  19555. </doc>
  19556. </field>
  19557. <field name="ACTION_FILE_OPENED" type="java.lang.String"
  19558. transient="false" volatile="false"
  19559. static="true" final="true" visibility="public"
  19560. deprecated="not deprecated">
  19561. <doc>
  19562. <![CDATA[A file was opened: {@value}.]]>
  19563. </doc>
  19564. </field>
  19565. <field name="ACTION_HTTP_HEAD_REQUEST" type="java.lang.String"
  19566. transient="false" volatile="false"
  19567. static="true" final="true" visibility="public"
  19568. deprecated="not deprecated">
  19569. <doc>
  19570. <![CDATA[An HTTP HEAD request was made: {@value}.]]>
  19571. </doc>
  19572. </field>
  19573. <field name="ACTION_HTTP_GET_REQUEST" type="java.lang.String"
  19574. transient="false" volatile="false"
  19575. static="true" final="true" visibility="public"
  19576. deprecated="not deprecated">
  19577. <doc>
  19578. <![CDATA[An HTTP GET request was made: {@value}.]]>
  19579. </doc>
  19580. </field>
  19581. <field name="ACTION_HTTP_DELETE_REQUEST" type="java.lang.String"
  19582. transient="false" volatile="false"
  19583. static="true" final="true" visibility="public"
  19584. deprecated="not deprecated">
  19585. <doc>
  19586. <![CDATA[An HTTP DELETE request was made: {@value}.]]>
  19587. </doc>
  19588. </field>
  19589. <field name="ACTION_HTTP_PUT_REQUEST" type="java.lang.String"
  19590. transient="false" volatile="false"
  19591. static="true" final="true" visibility="public"
  19592. deprecated="not deprecated">
  19593. <doc>
  19594. <![CDATA[An HTTP PUT request was made: {@value}.]]>
  19595. </doc>
  19596. </field>
  19597. <field name="ACTION_HTTP_PATCH_REQUEST" type="java.lang.String"
  19598. transient="false" volatile="false"
  19599. static="true" final="true" visibility="public"
  19600. deprecated="not deprecated">
  19601. <doc>
  19602. <![CDATA[An HTTP PATCH request was made: {@value}.]]>
  19603. </doc>
  19604. </field>
  19605. <field name="ACTION_HTTP_POST_REQUEST" type="java.lang.String"
  19606. transient="false" volatile="false"
  19607. static="true" final="true" visibility="public"
  19608. deprecated="not deprecated">
  19609. <doc>
  19610. <![CDATA[An HTTP POST request was made: {@value}.]]>
  19611. </doc>
  19612. </field>
  19613. <field name="OBJECT_METADATA_REQUESTS" type="java.lang.String"
  19614. transient="false" volatile="false"
  19615. static="true" final="true" visibility="public"
  19616. deprecated="not deprecated">
  19617. <doc>
  19618. <![CDATA[An HTTP HEAD request was made: {@value}.]]>
  19619. </doc>
  19620. </field>
  19621. <field name="OBJECT_COPY_REQUESTS" type="java.lang.String"
  19622. transient="false" volatile="false"
  19623. static="true" final="true" visibility="public"
  19624. deprecated="not deprecated">
  19625. </field>
  19626. <field name="STORE_IO_THROTTLE_RATE" type="java.lang.String"
  19627. transient="false" volatile="false"
  19628. static="true" final="true" visibility="public"
  19629. deprecated="not deprecated">
  19630. </field>
  19631. <field name="MULTIPART_UPLOAD_INSTANTIATED" type="java.lang.String"
  19632. transient="false" volatile="false"
  19633. static="true" final="true" visibility="public"
  19634. deprecated="not deprecated">
  19635. </field>
  19636. <field name="MULTIPART_UPLOAD_PART_PUT" type="java.lang.String"
  19637. transient="false" volatile="false"
  19638. static="true" final="true" visibility="public"
  19639. deprecated="not deprecated">
  19640. </field>
  19641. <field name="MULTIPART_UPLOAD_PART_PUT_BYTES" type="java.lang.String"
  19642. transient="false" volatile="false"
  19643. static="true" final="true" visibility="public"
  19644. deprecated="not deprecated">
  19645. </field>
  19646. <field name="MULTIPART_UPLOAD_ABORTED" type="java.lang.String"
  19647. transient="false" volatile="false"
  19648. static="true" final="true" visibility="public"
  19649. deprecated="not deprecated">
  19650. </field>
  19651. <field name="MULTIPART_UPLOAD_ABORT_UNDER_PATH_INVOKED" type="java.lang.String"
  19652. transient="false" volatile="false"
  19653. static="true" final="true" visibility="public"
  19654. deprecated="not deprecated">
  19655. </field>
  19656. <field name="MULTIPART_UPLOAD_COMPLETED" type="java.lang.String"
  19657. transient="false" volatile="false"
  19658. static="true" final="true" visibility="public"
  19659. deprecated="not deprecated">
  19660. </field>
  19661. <field name="MULTIPART_UPLOAD_STARTED" type="java.lang.String"
  19662. transient="false" volatile="false"
  19663. static="true" final="true" visibility="public"
  19664. deprecated="not deprecated">
  19665. </field>
  19666. <field name="MULTIPART_UPLOAD_LIST" type="java.lang.String"
  19667. transient="false" volatile="false"
  19668. static="true" final="true" visibility="public"
  19669. deprecated="not deprecated">
  19670. </field>
  19671. <doc>
  19672. <![CDATA[Common statistic names for object store operations..
  19673. <p>
  19674. When adding new common statistic name constants, please make them unique.
  19675. By convention:
  19676. </p>
  19677. <ul>
  19678. <li>the name of the constants are uppercase, words separated by
  19679. underscores.</li>
  19680. <li>the value of the constants are lowercase of the constant names.</li>
  19681. </ul>]]>
  19682. </doc>
  19683. </class>
  19684. <!-- end class org.apache.hadoop.fs.statistics.StoreStatisticNames -->
  19685. <!-- start class org.apache.hadoop.fs.statistics.StreamStatisticNames -->
  19686. <class name="StreamStatisticNames" extends="java.lang.Object"
  19687. abstract="false"
  19688. static="false" final="true" visibility="public"
  19689. deprecated="not deprecated">
  19690. <field name="STREAM_READ_ABORTED" type="java.lang.String"
  19691. transient="false" volatile="false"
  19692. static="true" final="true" visibility="public"
  19693. deprecated="not deprecated">
  19694. <doc>
  19695. <![CDATA[Count of times the TCP stream was aborted.
  19696. Value: {@value}.]]>
  19697. </doc>
  19698. </field>
  19699. <field name="STREAM_READ_BYTES" type="java.lang.String"
  19700. transient="false" volatile="false"
  19701. static="true" final="true" visibility="public"
  19702. deprecated="not deprecated">
  19703. <doc>
  19704. <![CDATA[Bytes read from an input stream in read()/readVectored() calls.
  19705. Does not include bytes read and then discarded in seek/close etc.
  19706. These are the bytes returned to the caller.
  19707. Value: {@value}.]]>
  19708. </doc>
  19709. </field>
  19710. <field name="STREAM_READ_BYTES_DISCARDED_ABORT" type="java.lang.String"
  19711. transient="false" volatile="false"
  19712. static="true" final="true" visibility="public"
  19713. deprecated="not deprecated">
  19714. <doc>
  19715. <![CDATA[Count of bytes discarded by aborting an input stream .
  19716. Value: {@value}.]]>
  19717. </doc>
  19718. </field>
  19719. <field name="STREAM_READ_BYTES_DISCARDED_CLOSE" type="java.lang.String"
  19720. transient="false" volatile="false"
  19721. static="true" final="true" visibility="public"
  19722. deprecated="not deprecated">
  19723. <doc>
  19724. <![CDATA[Count of bytes read and discarded when closing an input stream.
  19725. Value: {@value}.]]>
  19726. </doc>
  19727. </field>
  19728. <field name="STREAM_READ_CLOSED" type="java.lang.String"
  19729. transient="false" volatile="false"
  19730. static="true" final="true" visibility="public"
  19731. deprecated="not deprecated">
  19732. <doc>
  19733. <![CDATA[Count of times the TCP stream was closed.
  19734. Value: {@value}.]]>
  19735. </doc>
  19736. </field>
  19737. <field name="STREAM_READ_CLOSE_OPERATIONS" type="java.lang.String"
  19738. transient="false" volatile="false"
  19739. static="true" final="true" visibility="public"
  19740. deprecated="not deprecated">
  19741. <doc>
  19742. <![CDATA[Total count of times an attempt to close an input stream was made.
  19743. Value: {@value}.]]>
  19744. </doc>
  19745. </field>
  19746. <field name="STREAM_READ_OPENED" type="java.lang.String"
  19747. transient="false" volatile="false"
  19748. static="true" final="true" visibility="public"
  19749. deprecated="not deprecated">
  19750. <doc>
  19751. <![CDATA[Total count of times an input stream to was opened.
  19752. For object stores, that means the count a GET request was initiated.
  19753. Value: {@value}.]]>
  19754. </doc>
  19755. </field>
  19756. <field name="STREAM_READ_EXCEPTIONS" type="java.lang.String"
  19757. transient="false" volatile="false"
  19758. static="true" final="true" visibility="public"
  19759. deprecated="not deprecated">
  19760. <doc>
  19761. <![CDATA[Count of exceptions raised during input stream reads.
  19762. Value: {@value}.]]>
  19763. </doc>
  19764. </field>
  19765. <field name="STREAM_READ_FULLY_OPERATIONS" type="java.lang.String"
  19766. transient="false" volatile="false"
  19767. static="true" final="true" visibility="public"
  19768. deprecated="not deprecated">
  19769. <doc>
  19770. <![CDATA[Count of readFully() operations in an input stream.
  19771. Value: {@value}.]]>
  19772. </doc>
  19773. </field>
  19774. <field name="STREAM_READ_OPERATIONS" type="java.lang.String"
  19775. transient="false" volatile="false"
  19776. static="true" final="true" visibility="public"
  19777. deprecated="not deprecated">
  19778. <doc>
  19779. <![CDATA[Count of read() operations in an input stream.
  19780. Value: {@value}.]]>
  19781. </doc>
  19782. </field>
  19783. <field name="STREAM_READ_VECTORED_OPERATIONS" type="java.lang.String"
  19784. transient="false" volatile="false"
  19785. static="true" final="true" visibility="public"
  19786. deprecated="not deprecated">
  19787. <doc>
  19788. <![CDATA[Count of readVectored() operations in an input stream.
  19789. Value: {@value}.]]>
  19790. </doc>
  19791. </field>
  19792. <field name="STREAM_READ_VECTORED_READ_BYTES_DISCARDED" type="java.lang.String"
  19793. transient="false" volatile="false"
  19794. static="true" final="true" visibility="public"
  19795. deprecated="not deprecated">
  19796. <doc>
  19797. <![CDATA[Count of bytes discarded during readVectored() operation
  19798. in an input stream.
  19799. Value: {@value}.]]>
  19800. </doc>
  19801. </field>
  19802. <field name="STREAM_READ_VECTORED_INCOMING_RANGES" type="java.lang.String"
  19803. transient="false" volatile="false"
  19804. static="true" final="true" visibility="public"
  19805. deprecated="not deprecated">
  19806. <doc>
  19807. <![CDATA[Count of incoming file ranges during readVectored() operation.
  19808. Value: {@value}]]>
  19809. </doc>
  19810. </field>
  19811. <field name="STREAM_READ_VECTORED_COMBINED_RANGES" type="java.lang.String"
  19812. transient="false" volatile="false"
  19813. static="true" final="true" visibility="public"
  19814. deprecated="not deprecated">
  19815. <doc>
  19816. <![CDATA[Count of combined file ranges during readVectored() operation.
  19817. Value: {@value}]]>
  19818. </doc>
  19819. </field>
  19820. <field name="STREAM_READ_OPERATIONS_INCOMPLETE" type="java.lang.String"
  19821. transient="false" volatile="false"
  19822. static="true" final="true" visibility="public"
  19823. deprecated="not deprecated">
  19824. <doc>
  19825. <![CDATA[Count of incomplete read() operations in an input stream,
  19826. that is, when the bytes returned were less than that requested.
  19827. Value: {@value}.]]>
  19828. </doc>
  19829. </field>
  19830. <field name="STREAM_READ_REMOTE_STREAM_ABORTED" type="java.lang.String"
  19831. transient="false" volatile="false"
  19832. static="true" final="true" visibility="public"
  19833. deprecated="not deprecated">
  19834. <doc>
  19835. <![CDATA[count/duration of aborting a remote stream during stream IO
  19836. IO.
  19837. Value: {@value}.]]>
  19838. </doc>
  19839. </field>
  19840. <field name="STREAM_READ_REMOTE_STREAM_DRAINED" type="java.lang.String"
  19841. transient="false" volatile="false"
  19842. static="true" final="true" visibility="public"
  19843. deprecated="not deprecated">
  19844. <doc>
  19845. <![CDATA[count/duration of closing a remote stream,
  19846. possibly including draining the stream to recycle
  19847. the HTTP connection.
  19848. Value: {@value}.]]>
  19849. </doc>
  19850. </field>
  19851. <field name="STREAM_READ_VERSION_MISMATCHES" type="java.lang.String"
  19852. transient="false" volatile="false"
  19853. static="true" final="true" visibility="public"
  19854. deprecated="not deprecated">
  19855. <doc>
  19856. <![CDATA[Count of version mismatches encountered while reading an input stream.
  19857. Value: {@value}.]]>
  19858. </doc>
  19859. </field>
  19860. <field name="STREAM_READ_SEEK_BACKWARD_OPERATIONS" type="java.lang.String"
  19861. transient="false" volatile="false"
  19862. static="true" final="true" visibility="public"
  19863. deprecated="not deprecated">
  19864. <doc>
  19865. <![CDATA[Count of executed seek operations which went backwards in a stream.
  19866. Value: {@value}.]]>
  19867. </doc>
  19868. </field>
  19869. <field name="STREAM_READ_SEEK_BYTES_BACKWARDS" type="java.lang.String"
  19870. transient="false" volatile="false"
  19871. static="true" final="true" visibility="public"
  19872. deprecated="not deprecated">
  19873. <doc>
  19874. <![CDATA[Count of bytes moved backwards during seek operations
  19875. in an input stream.
  19876. Value: {@value}.]]>
  19877. </doc>
  19878. </field>
  19879. <field name="STREAM_READ_SEEK_BYTES_DISCARDED" type="java.lang.String"
  19880. transient="false" volatile="false"
  19881. static="true" final="true" visibility="public"
  19882. deprecated="not deprecated">
  19883. <doc>
  19884. <![CDATA[Count of bytes read and discarded during seek() in an input stream.
  19885. Value: {@value}.]]>
  19886. </doc>
  19887. </field>
  19888. <field name="STREAM_READ_SEEK_BYTES_SKIPPED" type="java.lang.String"
  19889. transient="false" volatile="false"
  19890. static="true" final="true" visibility="public"
  19891. deprecated="not deprecated">
  19892. <doc>
  19893. <![CDATA[Count of bytes skipped during forward seek operations.
  19894. Value: {@value}.]]>
  19895. </doc>
  19896. </field>
  19897. <field name="STREAM_READ_SEEK_FORWARD_OPERATIONS" type="java.lang.String"
  19898. transient="false" volatile="false"
  19899. static="true" final="true" visibility="public"
  19900. deprecated="not deprecated">
  19901. <doc>
  19902. <![CDATA[Count of executed seek operations which went forward in
  19903. an input stream.
  19904. Value: {@value}.]]>
  19905. </doc>
  19906. </field>
  19907. <field name="STREAM_READ_SEEK_POLICY_CHANGED" type="java.lang.String"
  19908. transient="false" volatile="false"
  19909. static="true" final="true" visibility="public"
  19910. deprecated="not deprecated">
  19911. <doc>
  19912. <![CDATA[Count of times the seek policy was dynamically changed
  19913. in an input stream.
  19914. Value: {@value}.]]>
  19915. </doc>
  19916. </field>
  19917. <field name="STREAM_READ_SEEK_OPERATIONS" type="java.lang.String"
  19918. transient="false" volatile="false"
  19919. static="true" final="true" visibility="public"
  19920. deprecated="not deprecated">
  19921. <doc>
  19922. <![CDATA[Count of seek operations in an input stream.
  19923. Value: {@value}.]]>
  19924. </doc>
  19925. </field>
  19926. <field name="STREAM_READ_SKIP_OPERATIONS" type="java.lang.String"
  19927. transient="false" volatile="false"
  19928. static="true" final="true" visibility="public"
  19929. deprecated="not deprecated">
  19930. <doc>
  19931. <![CDATA[Count of {@code InputStream.skip()} calls.
  19932. Value: {@value}.]]>
  19933. </doc>
  19934. </field>
  19935. <field name="STREAM_READ_SKIP_BYTES" type="java.lang.String"
  19936. transient="false" volatile="false"
  19937. static="true" final="true" visibility="public"
  19938. deprecated="not deprecated">
  19939. <doc>
  19940. <![CDATA[Count bytes skipped in {@code InputStream.skip()} calls.
  19941. Value: {@value}.]]>
  19942. </doc>
  19943. </field>
  19944. <field name="STREAM_READ_TOTAL_BYTES" type="java.lang.String"
  19945. transient="false" volatile="false"
  19946. static="true" final="true" visibility="public"
  19947. deprecated="not deprecated">
  19948. <doc>
  19949. <![CDATA[Total count of bytes read from an input stream.
  19950. Value: {@value}.]]>
  19951. </doc>
  19952. </field>
  19953. <field name="STREAM_READ_UNBUFFERED" type="java.lang.String"
  19954. transient="false" volatile="false"
  19955. static="true" final="true" visibility="public"
  19956. deprecated="not deprecated">
  19957. <doc>
  19958. <![CDATA[Count of calls of {@code CanUnbuffer.unbuffer()}.
  19959. Value: {@value}.]]>
  19960. </doc>
  19961. </field>
  19962. <field name="STREAM_WRITE_EXCEPTIONS" type="java.lang.String"
  19963. transient="false" volatile="false"
  19964. static="true" final="true" visibility="public"
  19965. deprecated="not deprecated">
  19966. <doc>
  19967. <![CDATA["Count of stream write failures reported.
  19968. Value: {@value}.]]>
  19969. </doc>
  19970. </field>
  19971. <field name="STREAM_WRITE_EXCEPTIONS_COMPLETING_UPLOADS" type="java.lang.String"
  19972. transient="false" volatile="false"
  19973. static="true" final="true" visibility="public"
  19974. deprecated="not deprecated">
  19975. <doc>
  19976. <![CDATA[Count of failures when finalizing a multipart upload:
  19977. {@value}.]]>
  19978. </doc>
  19979. </field>
  19980. <field name="STREAM_WRITE_BLOCK_UPLOADS" type="java.lang.String"
  19981. transient="false" volatile="false"
  19982. static="true" final="true" visibility="public"
  19983. deprecated="not deprecated">
  19984. <doc>
  19985. <![CDATA[Count of block/partition uploads complete.
  19986. Value: {@value}.]]>
  19987. </doc>
  19988. </field>
  19989. <field name="STREAM_WRITE_BLOCK_UPLOADS_ABORTED" type="java.lang.String"
  19990. transient="false" volatile="false"
  19991. static="true" final="true" visibility="public"
  19992. deprecated="not deprecated">
  19993. <doc>
  19994. <![CDATA[Count of number of block uploads aborted.
  19995. Value: {@value}.]]>
  19996. </doc>
  19997. </field>
  19998. <field name="STREAM_WRITE_BLOCK_UPLOADS_ACTIVE" type="java.lang.String"
  19999. transient="false" volatile="false"
  20000. static="true" final="true" visibility="public"
  20001. deprecated="not deprecated">
  20002. <doc>
  20003. <![CDATA[Count of block/partition uploads active.
  20004. Value: {@value}.]]>
  20005. </doc>
  20006. </field>
  20007. <field name="STREAM_WRITE_BLOCK_UPLOADS_BYTES_PENDING" type="java.lang.String"
  20008. transient="false" volatile="false"
  20009. static="true" final="true" visibility="public"
  20010. deprecated="not deprecated">
  20011. <doc>
  20012. <![CDATA[Gauge of data queued to be written.
  20013. Value: {@value}.]]>
  20014. </doc>
  20015. </field>
  20016. <field name="STREAM_WRITE_BLOCK_UPLOADS_COMMITTED" type="java.lang.String"
  20017. transient="false" volatile="false"
  20018. static="true" final="true" visibility="public"
  20019. deprecated="not deprecated">
  20020. <doc>
  20021. <![CDATA[Count of number of block uploads committed.
  20022. Value: {@value}.]]>
  20023. </doc>
  20024. </field>
  20025. <field name="STREAM_WRITE_BLOCK_UPLOADS_PENDING" type="java.lang.String"
  20026. transient="false" volatile="false"
  20027. static="true" final="true" visibility="public"
  20028. deprecated="not deprecated">
  20029. <doc>
  20030. <![CDATA[Gauge of block/partitions uploads queued to be written.
  20031. Value: {@value}.]]>
  20032. </doc>
  20033. </field>
  20034. <field name="STREAM_WRITE_BYTES" type="java.lang.String"
  20035. transient="false" volatile="false"
  20036. static="true" final="true" visibility="public"
  20037. deprecated="not deprecated">
  20038. <doc>
  20039. <![CDATA["Count of bytes written to output stream including all not yet uploaded.
  20040. {@value}.]]>
  20041. </doc>
  20042. </field>
  20043. <field name="STREAM_WRITE_TOTAL_TIME" type="java.lang.String"
  20044. transient="false" volatile="false"
  20045. static="true" final="true" visibility="public"
  20046. deprecated="not deprecated">
  20047. <doc>
  20048. <![CDATA[Count of total time taken for uploads to complete.
  20049. {@value}.]]>
  20050. </doc>
  20051. </field>
  20052. <field name="STREAM_WRITE_QUEUE_DURATION" type="java.lang.String"
  20053. transient="false" volatile="false"
  20054. static="true" final="true" visibility="public"
  20055. deprecated="not deprecated">
  20056. <doc>
  20057. <![CDATA[Total queue duration of all block uploads.
  20058. {@value}.]]>
  20059. </doc>
  20060. </field>
  20061. <field name="STREAM_WRITE_TOTAL_DATA" type="java.lang.String"
  20062. transient="false" volatile="false"
  20063. static="true" final="true" visibility="public"
  20064. deprecated="not deprecated">
  20065. </field>
  20066. <field name="BYTES_TO_UPLOAD" type="java.lang.String"
  20067. transient="false" volatile="false"
  20068. static="true" final="true" visibility="public"
  20069. deprecated="not deprecated">
  20070. <doc>
  20071. <![CDATA[Number of bytes to upload from an OutputStream.]]>
  20072. </doc>
  20073. </field>
  20074. <field name="BYTES_UPLOAD_SUCCESSFUL" type="java.lang.String"
  20075. transient="false" volatile="false"
  20076. static="true" final="true" visibility="public"
  20077. deprecated="not deprecated">
  20078. <doc>
  20079. <![CDATA[Number of bytes uploaded successfully to the object store.]]>
  20080. </doc>
  20081. </field>
  20082. <field name="BYTES_UPLOAD_FAILED" type="java.lang.String"
  20083. transient="false" volatile="false"
  20084. static="true" final="true" visibility="public"
  20085. deprecated="not deprecated">
  20086. <doc>
  20087. <![CDATA[Number of bytes failed to upload to the object store.]]>
  20088. </doc>
  20089. </field>
  20090. <field name="TIME_SPENT_ON_TASK_WAIT" type="java.lang.String"
  20091. transient="false" volatile="false"
  20092. static="true" final="true" visibility="public"
  20093. deprecated="not deprecated">
  20094. <doc>
  20095. <![CDATA[Total time spent on waiting for a task to complete.]]>
  20096. </doc>
  20097. </field>
  20098. <field name="QUEUE_SHRUNK_OPS" type="java.lang.String"
  20099. transient="false" volatile="false"
  20100. static="true" final="true" visibility="public"
  20101. deprecated="not deprecated">
  20102. <doc>
  20103. <![CDATA[Number of task queue shrunk operations.]]>
  20104. </doc>
  20105. </field>
  20106. <field name="WRITE_CURRENT_BUFFER_OPERATIONS" type="java.lang.String"
  20107. transient="false" volatile="false"
  20108. static="true" final="true" visibility="public"
  20109. deprecated="not deprecated">
  20110. <doc>
  20111. <![CDATA[Number of times current buffer is written to the service.]]>
  20112. </doc>
  20113. </field>
  20114. <field name="TIME_SPENT_ON_PUT_REQUEST" type="java.lang.String"
  20115. transient="false" volatile="false"
  20116. static="true" final="true" visibility="public"
  20117. deprecated="not deprecated">
  20118. <doc>
  20119. <![CDATA[Total time spent on completing a PUT request.]]>
  20120. </doc>
  20121. </field>
  20122. <field name="SEEK_IN_BUFFER" type="java.lang.String"
  20123. transient="false" volatile="false"
  20124. static="true" final="true" visibility="public"
  20125. deprecated="not deprecated">
  20126. <doc>
  20127. <![CDATA[Number of seeks in buffer.]]>
  20128. </doc>
  20129. </field>
  20130. <field name="BYTES_READ_BUFFER" type="java.lang.String"
  20131. transient="false" volatile="false"
  20132. static="true" final="true" visibility="public"
  20133. deprecated="not deprecated">
  20134. <doc>
  20135. <![CDATA[Number of bytes read from the buffer.]]>
  20136. </doc>
  20137. </field>
  20138. <field name="REMOTE_READ_OP" type="java.lang.String"
  20139. transient="false" volatile="false"
  20140. static="true" final="true" visibility="public"
  20141. deprecated="not deprecated">
  20142. <doc>
  20143. <![CDATA[Total number of remote read operations performed.]]>
  20144. </doc>
  20145. </field>
  20146. <field name="READ_AHEAD_BYTES_READ" type="java.lang.String"
  20147. transient="false" volatile="false"
  20148. static="true" final="true" visibility="public"
  20149. deprecated="not deprecated">
  20150. <doc>
  20151. <![CDATA[Total number of bytes read from readAhead.]]>
  20152. </doc>
  20153. </field>
  20154. <field name="REMOTE_BYTES_READ" type="java.lang.String"
  20155. transient="false" volatile="false"
  20156. static="true" final="true" visibility="public"
  20157. deprecated="not deprecated">
  20158. <doc>
  20159. <![CDATA[Total number of bytes read from remote operations.]]>
  20160. </doc>
  20161. </field>
  20162. <field name="BLOCKS_ALLOCATED" type="java.lang.String"
  20163. transient="false" volatile="false"
  20164. static="true" final="true" visibility="public"
  20165. deprecated="not deprecated">
  20166. <doc>
  20167. <![CDATA[Total number of Data blocks allocated by an outputStream.]]>
  20168. </doc>
  20169. </field>
  20170. <field name="BLOCKS_RELEASED" type="java.lang.String"
  20171. transient="false" volatile="false"
  20172. static="true" final="true" visibility="public"
  20173. deprecated="not deprecated">
  20174. <doc>
  20175. <![CDATA[Total number of Data blocks released by an outputStream.]]>
  20176. </doc>
  20177. </field>
  20178. <doc>
  20179. <![CDATA[These are common statistic names.
  20180. <p>
  20181. When adding new common statistic name constants, please make them unique.
  20182. By convention, they are implicitly unique:
  20183. <ul>
  20184. <li>
  20185. The name of the constants are uppercase, words separated by
  20186. underscores.
  20187. </li>
  20188. <li>
  20189. The value of the constants are lowercase of the constant names.
  20190. </li>
  20191. </ul>]]>
  20192. </doc>
  20193. </class>
  20194. <!-- end class org.apache.hadoop.fs.statistics.StreamStatisticNames -->
  20195. </package>
  20196. <package name="org.apache.hadoop.ha">
  20197. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  20198. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  20199. abstract="false"
  20200. static="false" final="false" visibility="public"
  20201. deprecated="not deprecated">
  20202. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  20203. static="false" final="false" visibility="public"
  20204. deprecated="not deprecated">
  20205. </constructor>
  20206. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  20207. static="false" final="false" visibility="public"
  20208. deprecated="not deprecated">
  20209. </constructor>
  20210. <doc>
  20211. <![CDATA[Indicates that the operator has specified an invalid configuration
  20212. for fencing methods.]]>
  20213. </doc>
  20214. </class>
  20215. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  20216. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  20217. <class name="FailoverFailedException" extends="java.lang.Exception"
  20218. abstract="false"
  20219. static="false" final="false" visibility="public"
  20220. deprecated="not deprecated">
  20221. <constructor name="FailoverFailedException" type="java.lang.String"
  20222. static="false" final="false" visibility="public"
  20223. deprecated="not deprecated">
  20224. </constructor>
  20225. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  20226. static="false" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. </constructor>
  20229. <doc>
  20230. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  20231. </doc>
  20232. </class>
  20233. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  20234. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  20235. <interface name="FenceMethod" abstract="true"
  20236. static="false" final="false" visibility="public"
  20237. deprecated="not deprecated">
  20238. <method name="checkArgs"
  20239. abstract="true" native="false" synchronized="false"
  20240. static="false" final="false" visibility="public"
  20241. deprecated="not deprecated">
  20242. <param name="args" type="java.lang.String"/>
  20243. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  20244. <doc>
  20245. <![CDATA[Verify that the given fencing method's arguments are valid.
  20246. @param args the arguments provided in the configuration. This may
  20247. be null if the operator did not configure any arguments.
  20248. @throws BadFencingConfigurationException if the arguments are invalid]]>
  20249. </doc>
  20250. </method>
  20251. <method name="tryFence" return="boolean"
  20252. abstract="true" native="false" synchronized="false"
  20253. static="false" final="false" visibility="public"
  20254. deprecated="not deprecated">
  20255. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  20256. <param name="args" type="java.lang.String"/>
  20257. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  20258. <doc>
  20259. <![CDATA[Attempt to fence the target node.
  20260. @param target the target of the service to fence
  20261. @param args the configured arguments, which were checked at startup by
  20262. {@link #checkArgs(String)}
  20263. @return true if fencing was successful, false if unsuccessful or
  20264. indeterminate
  20265. @throws BadFencingConfigurationException if the configuration was
  20266. determined to be invalid only at runtime]]>
  20267. </doc>
  20268. </method>
  20269. <doc>
  20270. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  20271. another node from making continued progress. This might be implemented
  20272. by killing a process on the other node, by denying the other node's
  20273. access to shared storage, or by accessing a PDU to cut the other node's
  20274. power.
  20275. <p>
  20276. Since these methods are often vendor- or device-specific, operators
  20277. may implement this interface in order to achieve fencing.
  20278. <p>
  20279. Fencing is configured by the operator as an ordered list of methods to
  20280. attempt. Each method will be tried in turn, and the next in the list
  20281. will only be attempted if the previous one fails. See {@link NodeFencer}
  20282. for more information.
  20283. <p>
  20284. If an implementation also implements {@link Configurable} then its
  20285. <code>setConf</code> method will be called upon instantiation.]]>
  20286. </doc>
  20287. </interface>
  20288. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  20289. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  20290. <interface name="HAServiceProtocol" abstract="true"
  20291. static="false" final="false" visibility="public"
  20292. deprecated="not deprecated">
  20293. <method name="monitorHealth"
  20294. abstract="true" native="false" synchronized="false"
  20295. static="false" final="false" visibility="public"
  20296. deprecated="not deprecated">
  20297. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  20298. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20299. <exception name="IOException" type="java.io.IOException"/>
  20300. <doc>
  20301. <![CDATA[Monitor the health of service. This periodically called by the HA
  20302. frameworks to monitor the health of the service.
  20303. Service is expected to perform checks to ensure it is functional.
  20304. If the service is not healthy due to failure or partial failure,
  20305. it is expected to throw {@link HealthCheckFailedException}.
  20306. The definition of service not healthy is left to the service.
  20307. Note that when health check of an Active service fails,
  20308. failover to standby may be done.
  20309. @throws HealthCheckFailedException
  20310. if the health check of a service fails.
  20311. @throws AccessControlException
  20312. if access is denied.
  20313. @throws IOException
  20314. if other errors happen]]>
  20315. </doc>
  20316. </method>
  20317. <method name="transitionToActive"
  20318. abstract="true" native="false" synchronized="false"
  20319. static="false" final="false" visibility="public"
  20320. deprecated="not deprecated">
  20321. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20322. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  20323. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20324. <exception name="IOException" type="java.io.IOException"/>
  20325. <doc>
  20326. <![CDATA[Request service to transition to active state. No operation, if the
  20327. service is already in active state.
  20328. @param reqInfo reqInfo.
  20329. @throws ServiceFailedException
  20330. if transition from standby to active fails.
  20331. @throws AccessControlException
  20332. if access is denied.
  20333. @throws IOException
  20334. if other errors happen]]>
  20335. </doc>
  20336. </method>
  20337. <method name="transitionToStandby"
  20338. abstract="true" native="false" synchronized="false"
  20339. static="false" final="false" visibility="public"
  20340. deprecated="not deprecated">
  20341. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20342. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  20343. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20344. <exception name="IOException" type="java.io.IOException"/>
  20345. <doc>
  20346. <![CDATA[Request service to transition to standby state. No operation, if the
  20347. service is already in standby state.
  20348. @param reqInfo reqInfo.
  20349. @throws ServiceFailedException
  20350. if transition from active to standby fails.
  20351. @throws AccessControlException
  20352. if access is denied.
  20353. @throws IOException
  20354. if other errors happen]]>
  20355. </doc>
  20356. </method>
  20357. <method name="transitionToObserver"
  20358. abstract="true" native="false" synchronized="false"
  20359. static="false" final="false" visibility="public"
  20360. deprecated="not deprecated">
  20361. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20362. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  20363. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20364. <exception name="IOException" type="java.io.IOException"/>
  20365. <doc>
  20366. <![CDATA[Request service to transition to observer state. No operation, if the
  20367. service is already in observer state.
  20368. @param reqInfo reqInfo.
  20369. @throws ServiceFailedException
  20370. if transition from standby to observer fails.
  20371. @throws AccessControlException
  20372. if access is denied.
  20373. @throws IOException
  20374. if other errors happen]]>
  20375. </doc>
  20376. </method>
  20377. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  20378. abstract="true" native="false" synchronized="false"
  20379. static="false" final="false" visibility="public"
  20380. deprecated="not deprecated">
  20381. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20382. <exception name="IOException" type="java.io.IOException"/>
  20383. <doc>
  20384. <![CDATA[Return the current status of the service. The status indicates
  20385. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  20386. some additional information.
  20387. @throws AccessControlException
  20388. if access is denied.
  20389. @throws IOException
  20390. if other errors happen
  20391. @see HAServiceStatus
  20392. @return HAServiceStatus.]]>
  20393. </doc>
  20394. </method>
  20395. <field name="versionID" type="long"
  20396. transient="false" volatile="false"
  20397. static="true" final="true" visibility="public"
  20398. deprecated="not deprecated">
  20399. <doc>
  20400. <![CDATA[Initial version of the protocol]]>
  20401. </doc>
  20402. </field>
  20403. <doc>
  20404. <![CDATA[Protocol interface that provides High Availability related primitives to
  20405. monitor and fail-over the service.
  20406. This interface could be used by HA frameworks to manage the service.]]>
  20407. </doc>
  20408. </interface>
  20409. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  20410. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  20411. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  20412. abstract="false"
  20413. static="false" final="false" visibility="public"
  20414. deprecated="not deprecated">
  20415. <constructor name="HAServiceProtocolHelper"
  20416. static="false" final="false" visibility="public"
  20417. deprecated="not deprecated">
  20418. </constructor>
  20419. <method name="monitorHealth"
  20420. abstract="false" native="false" synchronized="false"
  20421. static="true" final="false" visibility="public"
  20422. deprecated="not deprecated">
  20423. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20424. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20425. <exception name="IOException" type="java.io.IOException"/>
  20426. </method>
  20427. <method name="transitionToActive"
  20428. abstract="false" native="false" synchronized="false"
  20429. static="true" final="false" visibility="public"
  20430. deprecated="not deprecated">
  20431. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20432. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20433. <exception name="IOException" type="java.io.IOException"/>
  20434. </method>
  20435. <method name="transitionToStandby"
  20436. abstract="false" native="false" synchronized="false"
  20437. static="true" final="false" visibility="public"
  20438. deprecated="not deprecated">
  20439. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20440. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20441. <exception name="IOException" type="java.io.IOException"/>
  20442. </method>
  20443. <method name="transitionToObserver"
  20444. abstract="false" native="false" synchronized="false"
  20445. static="true" final="false" visibility="public"
  20446. deprecated="not deprecated">
  20447. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20448. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20449. <exception name="IOException" type="java.io.IOException"/>
  20450. </method>
  20451. <doc>
  20452. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  20453. unwraps the {@link RemoteException} to specific exceptions.]]>
  20454. </doc>
  20455. </class>
  20456. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  20457. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  20458. <class name="HAServiceTarget" extends="java.lang.Object"
  20459. abstract="true"
  20460. static="false" final="false" visibility="public"
  20461. deprecated="not deprecated">
  20462. <constructor name="HAServiceTarget"
  20463. static="false" final="false" visibility="public"
  20464. deprecated="not deprecated">
  20465. </constructor>
  20466. <method name="getAddress" return="java.net.InetSocketAddress"
  20467. abstract="true" native="false" synchronized="false"
  20468. static="false" final="false" visibility="public"
  20469. deprecated="not deprecated">
  20470. <doc>
  20471. <![CDATA[@return the IPC address of the target node.]]>
  20472. </doc>
  20473. </method>
  20474. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  20475. abstract="false" native="false" synchronized="false"
  20476. static="false" final="false" visibility="public"
  20477. deprecated="not deprecated">
  20478. <doc>
  20479. <![CDATA[Returns an optional separate RPC server address for health checks at the
  20480. target node. If defined, then this address is used by the health monitor
  20481. for the {@link HAServiceProtocol#monitorHealth()} and
  20482. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  20483. separating out these calls onto separate RPC handlers to protect against
  20484. resource exhaustion in the main RPC handler pool. If null (which is the
  20485. default implementation), then all RPC calls go to the address defined by
  20486. {@link #getAddress()}.
  20487. @return IPC address of the lifeline RPC server on the target node, or null
  20488. if no lifeline RPC server is used]]>
  20489. </doc>
  20490. </method>
  20491. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  20492. abstract="true" native="false" synchronized="false"
  20493. static="false" final="false" visibility="public"
  20494. deprecated="not deprecated">
  20495. <doc>
  20496. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  20497. </doc>
  20498. </method>
  20499. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  20500. abstract="true" native="false" synchronized="false"
  20501. static="false" final="false" visibility="public"
  20502. deprecated="not deprecated">
  20503. <doc>
  20504. <![CDATA[@return a Fencer implementation configured for this target node]]>
  20505. </doc>
  20506. </method>
  20507. <method name="checkFencingConfigured"
  20508. abstract="true" native="false" synchronized="false"
  20509. static="false" final="false" visibility="public"
  20510. deprecated="not deprecated">
  20511. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  20512. <doc>
  20513. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  20514. appears to be invalid. This is divorced from the above
  20515. {@link #getFencer()} method so that the configuration can be checked
  20516. during the pre-flight phase of failover.]]>
  20517. </doc>
  20518. </method>
  20519. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  20520. abstract="false" native="false" synchronized="false"
  20521. static="false" final="false" visibility="public"
  20522. deprecated="not deprecated">
  20523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20524. <param name="timeoutMs" type="int"/>
  20525. <exception name="IOException" type="java.io.IOException"/>
  20526. <doc>
  20527. <![CDATA[@return a proxy to connect to the target HA Service.
  20528. @param timeoutMs timeout in milliseconds.
  20529. @param conf Configuration.
  20530. @throws IOException raised on errors performing I/O.]]>
  20531. </doc>
  20532. </method>
  20533. <method name="setTransitionTargetHAStatus"
  20534. abstract="false" native="false" synchronized="false"
  20535. static="false" final="false" visibility="public"
  20536. deprecated="not deprecated">
  20537. <param name="status" type="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"/>
  20538. </method>
  20539. <method name="getTransitionTargetHAStatus" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  20540. abstract="false" native="false" synchronized="false"
  20541. static="false" final="false" visibility="public"
  20542. deprecated="not deprecated">
  20543. </method>
  20544. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  20545. abstract="false" native="false" synchronized="false"
  20546. static="false" final="false" visibility="public"
  20547. deprecated="not deprecated">
  20548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20549. <param name="timeoutMs" type="int"/>
  20550. <exception name="IOException" type="java.io.IOException"/>
  20551. <doc>
  20552. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  20553. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  20554. address, then this proxy will connect to that address. Otherwise, the
  20555. returned proxy defaults to using {@link #getAddress()}, which means this
  20556. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  20557. @param conf configuration.
  20558. @param timeoutMs timeout in milliseconds
  20559. @return a proxy to connect to the target HA service for health monitoring
  20560. @throws IOException if there is an error]]>
  20561. </doc>
  20562. </method>
  20563. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  20564. abstract="false" native="false" synchronized="false"
  20565. static="false" final="false" visibility="public"
  20566. deprecated="not deprecated">
  20567. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20568. <param name="timeoutMs" type="int"/>
  20569. <param name="retries" type="int"/>
  20570. <exception name="IOException" type="java.io.IOException"/>
  20571. </method>
  20572. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  20573. abstract="false" native="false" synchronized="false"
  20574. static="false" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20577. <param name="timeoutMs" type="int"/>
  20578. <exception name="IOException" type="java.io.IOException"/>
  20579. <doc>
  20580. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.
  20581. @param conf configuration.
  20582. @param timeoutMs timeout in milliseconds.
  20583. @throws IOException raised on errors performing I/O.]]>
  20584. </doc>
  20585. </method>
  20586. <method name="getFencingParameters" return="java.util.Map"
  20587. abstract="false" native="false" synchronized="false"
  20588. static="false" final="true" visibility="public"
  20589. deprecated="not deprecated">
  20590. </method>
  20591. <method name="addFencingParameters"
  20592. abstract="false" native="false" synchronized="false"
  20593. static="false" final="false" visibility="protected"
  20594. deprecated="not deprecated">
  20595. <param name="ret" type="java.util.Map"/>
  20596. <doc>
  20597. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  20598. expose to fencing implementations/scripts. Fencing methods are free
  20599. to use this map as they see fit -- notably, the shell script
  20600. implementation takes each entry, prepends 'target_', substitutes
  20601. '_' for '.', and adds it to the environment of the script.
  20602. Subclass implementations should be sure to delegate to the superclass
  20603. implementation as well as adding their own keys.
  20604. @param ret map which can be mutated to pass parameters to the fencer]]>
  20605. </doc>
  20606. </method>
  20607. <method name="isAutoFailoverEnabled" return="boolean"
  20608. abstract="false" native="false" synchronized="false"
  20609. static="false" final="false" visibility="public"
  20610. deprecated="not deprecated">
  20611. <doc>
  20612. <![CDATA[@return true if auto failover should be considered enabled]]>
  20613. </doc>
  20614. </method>
  20615. <method name="supportObserver" return="boolean"
  20616. abstract="false" native="false" synchronized="false"
  20617. static="false" final="false" visibility="public"
  20618. deprecated="not deprecated">
  20619. <doc>
  20620. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  20621. </doc>
  20622. </method>
  20623. <doc>
  20624. <![CDATA[Represents a target of the client side HA administration commands.]]>
  20625. </doc>
  20626. </class>
  20627. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  20628. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  20629. <class name="HealthCheckFailedException" extends="java.io.IOException"
  20630. abstract="false"
  20631. static="false" final="false" visibility="public"
  20632. deprecated="not deprecated">
  20633. <constructor name="HealthCheckFailedException" type="java.lang.String"
  20634. static="false" final="false" visibility="public"
  20635. deprecated="not deprecated">
  20636. </constructor>
  20637. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  20638. static="false" final="false" visibility="public"
  20639. deprecated="not deprecated">
  20640. </constructor>
  20641. <doc>
  20642. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  20643. </doc>
  20644. </class>
  20645. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  20646. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  20647. <class name="ServiceFailedException" extends="java.io.IOException"
  20648. abstract="false"
  20649. static="false" final="false" visibility="public"
  20650. deprecated="not deprecated">
  20651. <constructor name="ServiceFailedException" type="java.lang.String"
  20652. static="false" final="false" visibility="public"
  20653. deprecated="not deprecated">
  20654. </constructor>
  20655. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  20656. static="false" final="false" visibility="public"
  20657. deprecated="not deprecated">
  20658. </constructor>
  20659. <doc>
  20660. <![CDATA[Exception thrown to indicate that an operation performed
  20661. to modify the state of a service or application failed.]]>
  20662. </doc>
  20663. </class>
  20664. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  20665. </package>
  20666. <package name="org.apache.hadoop.ha.protocolPB">
  20667. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  20668. <interface name="HAServiceProtocolPB" abstract="true"
  20669. static="false" final="false" visibility="public"
  20670. deprecated="not deprecated">
  20671. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  20672. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  20673. </interface>
  20674. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  20675. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  20676. <interface name="ZKFCProtocolPB" abstract="true"
  20677. static="false" final="false" visibility="public"
  20678. deprecated="not deprecated">
  20679. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  20680. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  20681. </interface>
  20682. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  20683. </package>
  20684. <package name="org.apache.hadoop.http.lib">
  20685. <doc>
  20686. <![CDATA[This package provides user-selectable (via configuration) classes that add
  20687. functionality to the web UI. They are configured as a list of classes in the
  20688. configuration parameter <b>hadoop.http.filter.initializers</b>.
  20689. <ul>
  20690. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  20691. users a static configured user.
  20692. </ul>]]>
  20693. </doc>
  20694. </package>
  20695. <package name="org.apache.hadoop.io">
  20696. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  20697. <class name="AbstractMapWritable" extends="java.lang.Object"
  20698. abstract="true"
  20699. static="false" final="false" visibility="public"
  20700. deprecated="not deprecated">
  20701. <implements name="org.apache.hadoop.io.Writable"/>
  20702. <implements name="org.apache.hadoop.conf.Configurable"/>
  20703. <constructor name="AbstractMapWritable"
  20704. static="false" final="false" visibility="protected"
  20705. deprecated="not deprecated">
  20706. <doc>
  20707. <![CDATA[constructor.]]>
  20708. </doc>
  20709. </constructor>
  20710. <method name="addToMap"
  20711. abstract="false" native="false" synchronized="true"
  20712. static="false" final="false" visibility="protected"
  20713. deprecated="not deprecated">
  20714. <param name="clazz" type="java.lang.Class"/>
  20715. <doc>
  20716. <![CDATA[Add a Class to the maps if it is not already present.
  20717. @param clazz clazz.]]>
  20718. </doc>
  20719. </method>
  20720. <method name="getClass" return="java.lang.Class"
  20721. abstract="false" native="false" synchronized="false"
  20722. static="false" final="false" visibility="protected"
  20723. deprecated="not deprecated">
  20724. <param name="id" type="byte"/>
  20725. <doc>
  20726. <![CDATA[the Class class for the specified id.
  20727. @param id id.
  20728. @return the Class class for the specified id.]]>
  20729. </doc>
  20730. </method>
  20731. <method name="getId" return="byte"
  20732. abstract="false" native="false" synchronized="false"
  20733. static="false" final="false" visibility="protected"
  20734. deprecated="not deprecated">
  20735. <param name="clazz" type="java.lang.Class"/>
  20736. <doc>
  20737. <![CDATA[get id.
  20738. @return the id for the specified Class.
  20739. @param clazz clazz.]]>
  20740. </doc>
  20741. </method>
  20742. <method name="copy"
  20743. abstract="false" native="false" synchronized="true"
  20744. static="false" final="false" visibility="protected"
  20745. deprecated="not deprecated">
  20746. <param name="other" type="org.apache.hadoop.io.Writable"/>
  20747. <doc>
  20748. <![CDATA[Used by child copy constructors.
  20749. @param other other.]]>
  20750. </doc>
  20751. </method>
  20752. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20753. abstract="false" native="false" synchronized="false"
  20754. static="false" final="false" visibility="public"
  20755. deprecated="not deprecated">
  20756. <doc>
  20757. <![CDATA[@return the conf]]>
  20758. </doc>
  20759. </method>
  20760. <method name="setConf"
  20761. abstract="false" native="false" synchronized="false"
  20762. static="false" final="false" visibility="public"
  20763. deprecated="not deprecated">
  20764. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20765. <doc>
  20766. <![CDATA[@param conf the conf to set]]>
  20767. </doc>
  20768. </method>
  20769. <method name="write"
  20770. abstract="false" native="false" synchronized="false"
  20771. static="false" final="false" visibility="public"
  20772. deprecated="not deprecated">
  20773. <param name="out" type="java.io.DataOutput"/>
  20774. <exception name="IOException" type="java.io.IOException"/>
  20775. </method>
  20776. <method name="readFields"
  20777. abstract="false" native="false" synchronized="false"
  20778. static="false" final="false" visibility="public"
  20779. deprecated="not deprecated">
  20780. <param name="in" type="java.io.DataInput"/>
  20781. <exception name="IOException" type="java.io.IOException"/>
  20782. </method>
  20783. <doc>
  20784. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  20785. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  20786. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  20787. maps travel with the class instead of being static.
  20788. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  20789. in any specific map instance.]]>
  20790. </doc>
  20791. </class>
  20792. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  20793. <!-- start class org.apache.hadoop.io.ArrayFile -->
  20794. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  20795. abstract="false"
  20796. static="false" final="false" visibility="public"
  20797. deprecated="not deprecated">
  20798. <constructor name="ArrayFile"
  20799. static="false" final="false" visibility="protected"
  20800. deprecated="not deprecated">
  20801. </constructor>
  20802. <doc>
  20803. <![CDATA[A dense file-based mapping from integers to values.]]>
  20804. </doc>
  20805. </class>
  20806. <!-- end class org.apache.hadoop.io.ArrayFile -->
  20807. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  20808. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  20809. abstract="false"
  20810. static="false" final="false" visibility="public"
  20811. deprecated="not deprecated">
  20812. <implements name="org.apache.hadoop.io.Writable"/>
  20813. <constructor name="ArrayPrimitiveWritable"
  20814. static="false" final="false" visibility="public"
  20815. deprecated="not deprecated">
  20816. <doc>
  20817. <![CDATA[Construct an empty instance, for use during Writable read]]>
  20818. </doc>
  20819. </constructor>
  20820. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  20821. static="false" final="false" visibility="public"
  20822. deprecated="not deprecated">
  20823. <doc>
  20824. <![CDATA[Construct an instance of known type but no value yet
  20825. for use with type-specific wrapper classes.
  20826. @param componentType componentType.]]>
  20827. </doc>
  20828. </constructor>
  20829. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  20830. static="false" final="false" visibility="public"
  20831. deprecated="not deprecated">
  20832. <doc>
  20833. <![CDATA[Wrap an existing array of primitives
  20834. @param value - array of primitives]]>
  20835. </doc>
  20836. </constructor>
  20837. <method name="get" return="java.lang.Object"
  20838. abstract="false" native="false" synchronized="false"
  20839. static="false" final="false" visibility="public"
  20840. deprecated="not deprecated">
  20841. <doc>
  20842. <![CDATA[Get the original array.
  20843. Client must cast it back to type componentType[]
  20844. (or may use type-specific wrapper classes).
  20845. @return - original array as Object]]>
  20846. </doc>
  20847. </method>
  20848. <method name="getComponentType" return="java.lang.Class"
  20849. abstract="false" native="false" synchronized="false"
  20850. static="false" final="false" visibility="public"
  20851. deprecated="not deprecated">
  20852. </method>
  20853. <method name="getDeclaredComponentType" return="java.lang.Class"
  20854. abstract="false" native="false" synchronized="false"
  20855. static="false" final="false" visibility="public"
  20856. deprecated="not deprecated">
  20857. </method>
  20858. <method name="isDeclaredComponentType" return="boolean"
  20859. abstract="false" native="false" synchronized="false"
  20860. static="false" final="false" visibility="public"
  20861. deprecated="not deprecated">
  20862. <param name="componentType" type="java.lang.Class"/>
  20863. </method>
  20864. <method name="set"
  20865. abstract="false" native="false" synchronized="false"
  20866. static="false" final="false" visibility="public"
  20867. deprecated="not deprecated">
  20868. <param name="value" type="java.lang.Object"/>
  20869. </method>
  20870. <method name="write"
  20871. abstract="false" native="false" synchronized="false"
  20872. static="false" final="false" visibility="public"
  20873. deprecated="not deprecated">
  20874. <param name="out" type="java.io.DataOutput"/>
  20875. <exception name="IOException" type="java.io.IOException"/>
  20876. </method>
  20877. <method name="readFields"
  20878. abstract="false" native="false" synchronized="false"
  20879. static="false" final="false" visibility="public"
  20880. deprecated="not deprecated">
  20881. <param name="in" type="java.io.DataInput"/>
  20882. <exception name="IOException" type="java.io.IOException"/>
  20883. </method>
  20884. <doc>
  20885. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  20886. an array of primitives (e.g., int[], long[], etc.), with optimized
  20887. wire format, and without creating new objects per element.
  20888. This is a wrapper class only; it does not make a copy of the
  20889. underlying array.]]>
  20890. </doc>
  20891. </class>
  20892. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  20893. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  20894. <class name="ArrayWritable" extends="java.lang.Object"
  20895. abstract="false"
  20896. static="false" final="false" visibility="public"
  20897. deprecated="not deprecated">
  20898. <implements name="org.apache.hadoop.io.Writable"/>
  20899. <constructor name="ArrayWritable" type="java.lang.Class"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. </constructor>
  20903. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  20904. static="false" final="false" visibility="public"
  20905. deprecated="not deprecated">
  20906. </constructor>
  20907. <constructor name="ArrayWritable" type="java.lang.String[]"
  20908. static="false" final="false" visibility="public"
  20909. deprecated="not deprecated">
  20910. </constructor>
  20911. <method name="getValueClass" return="java.lang.Class"
  20912. abstract="false" native="false" synchronized="false"
  20913. static="false" final="false" visibility="public"
  20914. deprecated="not deprecated">
  20915. </method>
  20916. <method name="toStrings" return="java.lang.String[]"
  20917. abstract="false" native="false" synchronized="false"
  20918. static="false" final="false" visibility="public"
  20919. deprecated="not deprecated">
  20920. </method>
  20921. <method name="toArray" return="java.lang.Object"
  20922. abstract="false" native="false" synchronized="false"
  20923. static="false" final="false" visibility="public"
  20924. deprecated="not deprecated">
  20925. </method>
  20926. <method name="set"
  20927. abstract="false" native="false" synchronized="false"
  20928. static="false" final="false" visibility="public"
  20929. deprecated="not deprecated">
  20930. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  20931. </method>
  20932. <method name="get" return="org.apache.hadoop.io.Writable[]"
  20933. abstract="false" native="false" synchronized="false"
  20934. static="false" final="false" visibility="public"
  20935. deprecated="not deprecated">
  20936. </method>
  20937. <method name="readFields"
  20938. abstract="false" native="false" synchronized="false"
  20939. static="false" final="false" visibility="public"
  20940. deprecated="not deprecated">
  20941. <param name="in" type="java.io.DataInput"/>
  20942. <exception name="IOException" type="java.io.IOException"/>
  20943. </method>
  20944. <method name="write"
  20945. abstract="false" native="false" synchronized="false"
  20946. static="false" final="false" visibility="public"
  20947. deprecated="not deprecated">
  20948. <param name="out" type="java.io.DataOutput"/>
  20949. <exception name="IOException" type="java.io.IOException"/>
  20950. </method>
  20951. <method name="toString" return="java.lang.String"
  20952. abstract="false" native="false" synchronized="false"
  20953. static="false" final="false" visibility="public"
  20954. deprecated="not deprecated">
  20955. </method>
  20956. <doc>
  20957. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  20958. writable must all be instances of the same class. If this writable will be
  20959. the input for a Reducer, you will need to create a subclass that sets the
  20960. value to be of the proper type.
  20961. For example:
  20962. <code>
  20963. public class IntArrayWritable extends ArrayWritable {
  20964. public IntArrayWritable() {
  20965. super(IntWritable.class);
  20966. }
  20967. }
  20968. </code>]]>
  20969. </doc>
  20970. </class>
  20971. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  20972. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  20973. <class name="BinaryComparable" extends="java.lang.Object"
  20974. abstract="true"
  20975. static="false" final="false" visibility="public"
  20976. deprecated="not deprecated">
  20977. <implements name="java.lang.Comparable"/>
  20978. <constructor name="BinaryComparable"
  20979. static="false" final="false" visibility="public"
  20980. deprecated="not deprecated">
  20981. </constructor>
  20982. <method name="getLength" return="int"
  20983. abstract="true" native="false" synchronized="false"
  20984. static="false" final="false" visibility="public"
  20985. deprecated="not deprecated">
  20986. <doc>
  20987. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.
  20988. @return length.]]>
  20989. </doc>
  20990. </method>
  20991. <method name="getBytes" return="byte[]"
  20992. abstract="true" native="false" synchronized="false"
  20993. static="false" final="false" visibility="public"
  20994. deprecated="not deprecated">
  20995. <doc>
  20996. <![CDATA[Return representative byte array for this instance.
  20997. @return getBytes.]]>
  20998. </doc>
  20999. </method>
  21000. <method name="compareTo" return="int"
  21001. abstract="false" native="false" synchronized="false"
  21002. static="false" final="false" visibility="public"
  21003. deprecated="not deprecated">
  21004. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  21005. <doc>
  21006. <![CDATA[Compare bytes from {#getBytes()}.
  21007. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  21008. </doc>
  21009. </method>
  21010. <method name="compareTo" return="int"
  21011. abstract="false" native="false" synchronized="false"
  21012. static="false" final="false" visibility="public"
  21013. deprecated="not deprecated">
  21014. <param name="other" type="byte[]"/>
  21015. <param name="off" type="int"/>
  21016. <param name="len" type="int"/>
  21017. <doc>
  21018. <![CDATA[Compare bytes from {#getBytes()} to those provided.
  21019. @param other other.
  21020. @param off off.
  21021. @param len len.
  21022. @return compareBytes.]]>
  21023. </doc>
  21024. </method>
  21025. <method name="equals" return="boolean"
  21026. abstract="false" native="false" synchronized="false"
  21027. static="false" final="false" visibility="public"
  21028. deprecated="not deprecated">
  21029. <param name="other" type="java.lang.Object"/>
  21030. <doc>
  21031. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  21032. </doc>
  21033. </method>
  21034. <method name="hashCode" return="int"
  21035. abstract="false" native="false" synchronized="false"
  21036. static="false" final="false" visibility="public"
  21037. deprecated="not deprecated">
  21038. <doc>
  21039. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  21040. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  21041. </doc>
  21042. </method>
  21043. <doc>
  21044. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  21045. types supporting ordering/permutation by a representative set of bytes.]]>
  21046. </doc>
  21047. </class>
  21048. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  21049. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  21050. <class name="BloomMapFile" extends="java.lang.Object"
  21051. abstract="false"
  21052. static="false" final="false" visibility="public"
  21053. deprecated="not deprecated">
  21054. <constructor name="BloomMapFile"
  21055. static="false" final="false" visibility="public"
  21056. deprecated="not deprecated">
  21057. </constructor>
  21058. <method name="delete"
  21059. abstract="false" native="false" synchronized="false"
  21060. static="true" final="false" visibility="public"
  21061. deprecated="not deprecated">
  21062. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21063. <param name="name" type="java.lang.String"/>
  21064. <exception name="IOException" type="java.io.IOException"/>
  21065. </method>
  21066. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  21067. transient="false" volatile="false"
  21068. static="true" final="true" visibility="public"
  21069. deprecated="not deprecated">
  21070. </field>
  21071. <field name="HASH_COUNT" type="int"
  21072. transient="false" volatile="false"
  21073. static="true" final="true" visibility="public"
  21074. deprecated="not deprecated">
  21075. </field>
  21076. <doc>
  21077. <![CDATA[This class extends {@link MapFile} and provides very much the same
  21078. functionality. However, it uses dynamic Bloom filters to provide
  21079. quick membership test for keys, and it offers a fast version of
  21080. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  21081. case of sparsely populated MapFile-s.]]>
  21082. </doc>
  21083. </class>
  21084. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  21085. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  21086. <class name="BooleanWritable" extends="java.lang.Object"
  21087. abstract="false"
  21088. static="false" final="false" visibility="public"
  21089. deprecated="not deprecated">
  21090. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21091. <constructor name="BooleanWritable"
  21092. static="false" final="false" visibility="public"
  21093. deprecated="not deprecated">
  21094. </constructor>
  21095. <constructor name="BooleanWritable" type="boolean"
  21096. static="false" final="false" visibility="public"
  21097. deprecated="not deprecated">
  21098. <doc>
  21099. <![CDATA[@param value value.]]>
  21100. </doc>
  21101. </constructor>
  21102. <method name="set"
  21103. abstract="false" native="false" synchronized="false"
  21104. static="false" final="false" visibility="public"
  21105. deprecated="not deprecated">
  21106. <param name="value" type="boolean"/>
  21107. <doc>
  21108. <![CDATA[Set the value of the BooleanWritable.
  21109. @param value value.]]>
  21110. </doc>
  21111. </method>
  21112. <method name="get" return="boolean"
  21113. abstract="false" native="false" synchronized="false"
  21114. static="false" final="false" visibility="public"
  21115. deprecated="not deprecated">
  21116. <doc>
  21117. <![CDATA[Returns the value of the BooleanWritable.
  21118. @return the value of the BooleanWritable.]]>
  21119. </doc>
  21120. </method>
  21121. <method name="readFields"
  21122. abstract="false" native="false" synchronized="false"
  21123. static="false" final="false" visibility="public"
  21124. deprecated="not deprecated">
  21125. <param name="in" type="java.io.DataInput"/>
  21126. <exception name="IOException" type="java.io.IOException"/>
  21127. </method>
  21128. <method name="write"
  21129. abstract="false" native="false" synchronized="false"
  21130. static="false" final="false" visibility="public"
  21131. deprecated="not deprecated">
  21132. <param name="out" type="java.io.DataOutput"/>
  21133. <exception name="IOException" type="java.io.IOException"/>
  21134. </method>
  21135. <method name="equals" return="boolean"
  21136. abstract="false" native="false" synchronized="false"
  21137. static="false" final="false" visibility="public"
  21138. deprecated="not deprecated">
  21139. <param name="o" type="java.lang.Object"/>
  21140. </method>
  21141. <method name="hashCode" return="int"
  21142. abstract="false" native="false" synchronized="false"
  21143. static="false" final="false" visibility="public"
  21144. deprecated="not deprecated">
  21145. </method>
  21146. <method name="compareTo" return="int"
  21147. abstract="false" native="false" synchronized="false"
  21148. static="false" final="false" visibility="public"
  21149. deprecated="not deprecated">
  21150. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  21151. </method>
  21152. <method name="toString" return="java.lang.String"
  21153. abstract="false" native="false" synchronized="false"
  21154. static="false" final="false" visibility="public"
  21155. deprecated="not deprecated">
  21156. </method>
  21157. <doc>
  21158. <![CDATA[A WritableComparable for booleans.]]>
  21159. </doc>
  21160. </class>
  21161. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  21162. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  21163. <interface name="ByteBufferPool" abstract="true"
  21164. static="false" final="false" visibility="public"
  21165. deprecated="not deprecated">
  21166. <method name="getBuffer" return="java.nio.ByteBuffer"
  21167. abstract="true" native="false" synchronized="false"
  21168. static="false" final="false" visibility="public"
  21169. deprecated="not deprecated">
  21170. <param name="direct" type="boolean"/>
  21171. <param name="length" type="int"/>
  21172. <doc>
  21173. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  21174. removing a buffer from its internal cache, or by allocating a
  21175. new buffer.
  21176. @param direct Whether the buffer should be direct.
  21177. @param length The minimum length the buffer will have.
  21178. @return A new ByteBuffer. This ByteBuffer must be direct.
  21179. Its capacity can be less than what was requested, but
  21180. must be at least 1 byte.]]>
  21181. </doc>
  21182. </method>
  21183. <method name="putBuffer"
  21184. abstract="true" native="false" synchronized="false"
  21185. static="false" final="false" visibility="public"
  21186. deprecated="not deprecated">
  21187. <param name="buffer" type="java.nio.ByteBuffer"/>
  21188. <doc>
  21189. <![CDATA[Release a buffer back to the pool.
  21190. The pool may choose to put this buffer into its cache.
  21191. @param buffer a direct bytebuffer]]>
  21192. </doc>
  21193. </method>
  21194. <method name="release"
  21195. abstract="false" native="false" synchronized="false"
  21196. static="false" final="false" visibility="public"
  21197. deprecated="not deprecated">
  21198. <doc>
  21199. <![CDATA[Clear the buffer pool thus releasing all the buffers.]]>
  21200. </doc>
  21201. </method>
  21202. </interface>
  21203. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  21204. <!-- start class org.apache.hadoop.io.BytesWritable -->
  21205. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  21206. abstract="false"
  21207. static="false" final="false" visibility="public"
  21208. deprecated="not deprecated">
  21209. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21210. <constructor name="BytesWritable"
  21211. static="false" final="false" visibility="public"
  21212. deprecated="not deprecated">
  21213. <doc>
  21214. <![CDATA[Create a zero-size sequence.]]>
  21215. </doc>
  21216. </constructor>
  21217. <constructor name="BytesWritable" type="byte[]"
  21218. static="false" final="false" visibility="public"
  21219. deprecated="not deprecated">
  21220. <doc>
  21221. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  21222. @param bytes This array becomes the backing storage for the object.]]>
  21223. </doc>
  21224. </constructor>
  21225. <constructor name="BytesWritable" type="byte[], int"
  21226. static="false" final="false" visibility="public"
  21227. deprecated="not deprecated">
  21228. <doc>
  21229. <![CDATA[Create a BytesWritable using the byte array as the initial value
  21230. and length as the length. Use this constructor if the array is larger
  21231. than the value it represents.
  21232. @param bytes This array becomes the backing storage for the object.
  21233. @param length The number of bytes to use from array.]]>
  21234. </doc>
  21235. </constructor>
  21236. <method name="copyBytes" return="byte[]"
  21237. abstract="false" native="false" synchronized="false"
  21238. static="false" final="false" visibility="public"
  21239. deprecated="not deprecated">
  21240. <doc>
  21241. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  21242. See {@link #getBytes()} for faster access to the underlying array.
  21243. @return copyBytes.]]>
  21244. </doc>
  21245. </method>
  21246. <method name="getBytes" return="byte[]"
  21247. abstract="false" native="false" synchronized="false"
  21248. static="false" final="false" visibility="public"
  21249. deprecated="not deprecated">
  21250. <doc>
  21251. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  21252. if you need the returned array to be precisely the length of the data.
  21253. @return The data is only valid between 0 and getLength() - 1.]]>
  21254. </doc>
  21255. </method>
  21256. <method name="get" return="byte[]"
  21257. abstract="false" native="false" synchronized="false"
  21258. static="false" final="false" visibility="public"
  21259. deprecated="Use {@link #getBytes()} instead.">
  21260. <doc>
  21261. <![CDATA[Get the data from the BytesWritable.
  21262. @deprecated Use {@link #getBytes()} instead.
  21263. @return data from the BytesWritable.]]>
  21264. </doc>
  21265. </method>
  21266. <method name="getLength" return="int"
  21267. abstract="false" native="false" synchronized="false"
  21268. static="false" final="false" visibility="public"
  21269. deprecated="not deprecated">
  21270. <doc>
  21271. <![CDATA[Get the current size of the buffer.]]>
  21272. </doc>
  21273. </method>
  21274. <method name="getSize" return="int"
  21275. abstract="false" native="false" synchronized="false"
  21276. static="false" final="false" visibility="public"
  21277. deprecated="Use {@link #getLength()} instead.">
  21278. <doc>
  21279. <![CDATA[Get the current size of the buffer.
  21280. @deprecated Use {@link #getLength()} instead.
  21281. @return current size of the buffer.]]>
  21282. </doc>
  21283. </method>
  21284. <method name="setSize"
  21285. abstract="false" native="false" synchronized="false"
  21286. static="false" final="false" visibility="public"
  21287. deprecated="not deprecated">
  21288. <param name="size" type="int"/>
  21289. <doc>
  21290. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  21291. and any new values are undefined. The capacity is changed if it is
  21292. necessary.
  21293. @param size The new number of bytes]]>
  21294. </doc>
  21295. </method>
  21296. <method name="getCapacity" return="int"
  21297. abstract="false" native="false" synchronized="false"
  21298. static="false" final="false" visibility="public"
  21299. deprecated="not deprecated">
  21300. <doc>
  21301. <![CDATA[Get the capacity, which is the maximum size that could handled without
  21302. resizing the backing storage.
  21303. @return The number of bytes]]>
  21304. </doc>
  21305. </method>
  21306. <method name="setCapacity"
  21307. abstract="false" native="false" synchronized="false"
  21308. static="false" final="false" visibility="public"
  21309. deprecated="not deprecated">
  21310. <param name="new_cap" type="int"/>
  21311. <doc>
  21312. <![CDATA[Change the capacity of the backing storage.
  21313. The data is preserved.
  21314. @param new_cap The new capacity in bytes.]]>
  21315. </doc>
  21316. </method>
  21317. <method name="set"
  21318. abstract="false" native="false" synchronized="false"
  21319. static="false" final="false" visibility="public"
  21320. deprecated="not deprecated">
  21321. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  21322. <doc>
  21323. <![CDATA[Set the BytesWritable to the contents of the given newData.
  21324. @param newData the value to set this BytesWritable to.]]>
  21325. </doc>
  21326. </method>
  21327. <method name="set"
  21328. abstract="false" native="false" synchronized="false"
  21329. static="false" final="false" visibility="public"
  21330. deprecated="not deprecated">
  21331. <param name="newData" type="byte[]"/>
  21332. <param name="offset" type="int"/>
  21333. <param name="length" type="int"/>
  21334. <doc>
  21335. <![CDATA[Set the value to a copy of the given byte range
  21336. @param newData the new values to copy in
  21337. @param offset the offset in newData to start at
  21338. @param length the number of bytes to copy]]>
  21339. </doc>
  21340. </method>
  21341. <method name="readFields"
  21342. abstract="false" native="false" synchronized="false"
  21343. static="false" final="false" visibility="public"
  21344. deprecated="not deprecated">
  21345. <param name="in" type="java.io.DataInput"/>
  21346. <exception name="IOException" type="java.io.IOException"/>
  21347. </method>
  21348. <method name="write"
  21349. abstract="false" native="false" synchronized="false"
  21350. static="false" final="false" visibility="public"
  21351. deprecated="not deprecated">
  21352. <param name="out" type="java.io.DataOutput"/>
  21353. <exception name="IOException" type="java.io.IOException"/>
  21354. </method>
  21355. <method name="hashCode" return="int"
  21356. abstract="false" native="false" synchronized="false"
  21357. static="false" final="false" visibility="public"
  21358. deprecated="not deprecated">
  21359. </method>
  21360. <method name="equals" return="boolean"
  21361. abstract="false" native="false" synchronized="false"
  21362. static="false" final="false" visibility="public"
  21363. deprecated="not deprecated">
  21364. <param name="right_obj" type="java.lang.Object"/>
  21365. <doc>
  21366. <![CDATA[Are the two byte sequences equal?]]>
  21367. </doc>
  21368. </method>
  21369. <method name="toString" return="java.lang.String"
  21370. abstract="false" native="false" synchronized="false"
  21371. static="false" final="false" visibility="public"
  21372. deprecated="not deprecated">
  21373. <doc>
  21374. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  21375. </doc>
  21376. </method>
  21377. <doc>
  21378. <![CDATA[A byte sequence that is usable as a key or value.
  21379. It is resizable and distinguishes between the size of the sequence and
  21380. the current capacity. The hash function is the front of the md5 of the
  21381. buffer. The sort order is the same as memcmp.]]>
  21382. </doc>
  21383. </class>
  21384. <!-- end class org.apache.hadoop.io.BytesWritable -->
  21385. <!-- start class org.apache.hadoop.io.ByteWritable -->
  21386. <class name="ByteWritable" extends="java.lang.Object"
  21387. abstract="false"
  21388. static="false" final="false" visibility="public"
  21389. deprecated="not deprecated">
  21390. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21391. <constructor name="ByteWritable"
  21392. static="false" final="false" visibility="public"
  21393. deprecated="not deprecated">
  21394. </constructor>
  21395. <constructor name="ByteWritable" type="byte"
  21396. static="false" final="false" visibility="public"
  21397. deprecated="not deprecated">
  21398. </constructor>
  21399. <method name="set"
  21400. abstract="false" native="false" synchronized="false"
  21401. static="false" final="false" visibility="public"
  21402. deprecated="not deprecated">
  21403. <param name="value" type="byte"/>
  21404. <doc>
  21405. <![CDATA[Set the value of this ByteWritable.
  21406. @param value value.]]>
  21407. </doc>
  21408. </method>
  21409. <method name="get" return="byte"
  21410. abstract="false" native="false" synchronized="false"
  21411. static="false" final="false" visibility="public"
  21412. deprecated="not deprecated">
  21413. <doc>
  21414. <![CDATA[Return the value of this ByteWritable.
  21415. @return value bytes.]]>
  21416. </doc>
  21417. </method>
  21418. <method name="readFields"
  21419. abstract="false" native="false" synchronized="false"
  21420. static="false" final="false" visibility="public"
  21421. deprecated="not deprecated">
  21422. <param name="in" type="java.io.DataInput"/>
  21423. <exception name="IOException" type="java.io.IOException"/>
  21424. </method>
  21425. <method name="write"
  21426. abstract="false" native="false" synchronized="false"
  21427. static="false" final="false" visibility="public"
  21428. deprecated="not deprecated">
  21429. <param name="out" type="java.io.DataOutput"/>
  21430. <exception name="IOException" type="java.io.IOException"/>
  21431. </method>
  21432. <method name="equals" return="boolean"
  21433. abstract="false" native="false" synchronized="false"
  21434. static="false" final="false" visibility="public"
  21435. deprecated="not deprecated">
  21436. <param name="o" type="java.lang.Object"/>
  21437. <doc>
  21438. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  21439. </doc>
  21440. </method>
  21441. <method name="hashCode" return="int"
  21442. abstract="false" native="false" synchronized="false"
  21443. static="false" final="false" visibility="public"
  21444. deprecated="not deprecated">
  21445. </method>
  21446. <method name="compareTo" return="int"
  21447. abstract="false" native="false" synchronized="false"
  21448. static="false" final="false" visibility="public"
  21449. deprecated="not deprecated">
  21450. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  21451. <doc>
  21452. <![CDATA[Compares two ByteWritables.]]>
  21453. </doc>
  21454. </method>
  21455. <method name="toString" return="java.lang.String"
  21456. abstract="false" native="false" synchronized="false"
  21457. static="false" final="false" visibility="public"
  21458. deprecated="not deprecated">
  21459. </method>
  21460. <doc>
  21461. <![CDATA[A WritableComparable for a single byte.]]>
  21462. </doc>
  21463. </class>
  21464. <!-- end class org.apache.hadoop.io.ByteWritable -->
  21465. <!-- start interface org.apache.hadoop.io.Closeable -->
  21466. <interface name="Closeable" abstract="true"
  21467. static="false" final="false" visibility="public"
  21468. deprecated="use java.io.Closeable">
  21469. <implements name="java.io.Closeable"/>
  21470. <doc>
  21471. <![CDATA[@deprecated use java.io.Closeable]]>
  21472. </doc>
  21473. </interface>
  21474. <!-- end interface org.apache.hadoop.io.Closeable -->
  21475. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  21476. <class name="CompressedWritable" extends="java.lang.Object"
  21477. abstract="true"
  21478. static="false" final="false" visibility="public"
  21479. deprecated="not deprecated">
  21480. <implements name="org.apache.hadoop.io.Writable"/>
  21481. <constructor name="CompressedWritable"
  21482. static="false" final="false" visibility="public"
  21483. deprecated="not deprecated">
  21484. </constructor>
  21485. <method name="readFields"
  21486. abstract="false" native="false" synchronized="false"
  21487. static="false" final="true" visibility="public"
  21488. deprecated="not deprecated">
  21489. <param name="in" type="java.io.DataInput"/>
  21490. <exception name="IOException" type="java.io.IOException"/>
  21491. </method>
  21492. <method name="ensureInflated"
  21493. abstract="false" native="false" synchronized="false"
  21494. static="false" final="false" visibility="protected"
  21495. deprecated="not deprecated">
  21496. <doc>
  21497. <![CDATA[Must be called by all methods which access fields to ensure that the data
  21498. has been uncompressed.]]>
  21499. </doc>
  21500. </method>
  21501. <method name="readFieldsCompressed"
  21502. abstract="true" native="false" synchronized="false"
  21503. static="false" final="false" visibility="protected"
  21504. deprecated="not deprecated">
  21505. <param name="in" type="java.io.DataInput"/>
  21506. <exception name="IOException" type="java.io.IOException"/>
  21507. <doc>
  21508. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.
  21509. @param in data input.
  21510. @throws IOException raised on errors performing I/O.]]>
  21511. </doc>
  21512. </method>
  21513. <method name="write"
  21514. abstract="false" native="false" synchronized="false"
  21515. static="false" final="true" visibility="public"
  21516. deprecated="not deprecated">
  21517. <param name="out" type="java.io.DataOutput"/>
  21518. <exception name="IOException" type="java.io.IOException"/>
  21519. </method>
  21520. <method name="writeCompressed"
  21521. abstract="true" native="false" synchronized="false"
  21522. static="false" final="false" visibility="protected"
  21523. deprecated="not deprecated">
  21524. <param name="out" type="java.io.DataOutput"/>
  21525. <exception name="IOException" type="java.io.IOException"/>
  21526. <doc>
  21527. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.
  21528. @param out data output.
  21529. @throws IOException raised on errors performing I/O.]]>
  21530. </doc>
  21531. </method>
  21532. <doc>
  21533. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  21534. inflate on field access. This is useful for large objects whose fields are
  21535. not be altered during a map or reduce operation: leaving the field data
  21536. compressed makes copying the instance from one file to another much
  21537. faster.]]>
  21538. </doc>
  21539. </class>
  21540. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  21541. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  21542. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  21543. abstract="false"
  21544. static="false" final="false" visibility="public"
  21545. deprecated="not deprecated">
  21546. <method name="constructOutputStream" return="java.io.OutputStream"
  21547. abstract="false" native="false" synchronized="false"
  21548. static="true" final="false" visibility="public"
  21549. deprecated="not deprecated">
  21550. <param name="out" type="java.io.DataOutput"/>
  21551. <doc>
  21552. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  21553. is already an OutputStream, simply returns it. Otherwise, wraps
  21554. it in an OutputStream.
  21555. @param out the DataOutput to wrap
  21556. @return an OutputStream instance that outputs to 'out']]>
  21557. </doc>
  21558. </method>
  21559. <method name="write"
  21560. abstract="false" native="false" synchronized="false"
  21561. static="false" final="false" visibility="public"
  21562. deprecated="not deprecated">
  21563. <param name="b" type="int"/>
  21564. <exception name="IOException" type="java.io.IOException"/>
  21565. </method>
  21566. <method name="write"
  21567. abstract="false" native="false" synchronized="false"
  21568. static="false" final="false" visibility="public"
  21569. deprecated="not deprecated">
  21570. <param name="b" type="byte[]"/>
  21571. <param name="off" type="int"/>
  21572. <param name="len" type="int"/>
  21573. <exception name="IOException" type="java.io.IOException"/>
  21574. </method>
  21575. <method name="write"
  21576. abstract="false" native="false" synchronized="false"
  21577. static="false" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <param name="b" type="byte[]"/>
  21580. <exception name="IOException" type="java.io.IOException"/>
  21581. </method>
  21582. <doc>
  21583. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  21584. </doc>
  21585. </class>
  21586. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  21587. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  21588. <class name="DefaultStringifier" extends="java.lang.Object"
  21589. abstract="false"
  21590. static="false" final="false" visibility="public"
  21591. deprecated="not deprecated">
  21592. <implements name="org.apache.hadoop.io.Stringifier"/>
  21593. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  21594. static="false" final="false" visibility="public"
  21595. deprecated="not deprecated">
  21596. </constructor>
  21597. <method name="fromString" return="T"
  21598. abstract="false" native="false" synchronized="false"
  21599. static="false" final="false" visibility="public"
  21600. deprecated="not deprecated">
  21601. <param name="str" type="java.lang.String"/>
  21602. <exception name="IOException" type="java.io.IOException"/>
  21603. </method>
  21604. <method name="toString" return="java.lang.String"
  21605. abstract="false" native="false" synchronized="false"
  21606. static="false" final="false" visibility="public"
  21607. deprecated="not deprecated">
  21608. <param name="obj" type="T"/>
  21609. <exception name="IOException" type="java.io.IOException"/>
  21610. </method>
  21611. <method name="close"
  21612. abstract="false" native="false" synchronized="false"
  21613. static="false" final="false" visibility="public"
  21614. deprecated="not deprecated">
  21615. <exception name="IOException" type="java.io.IOException"/>
  21616. </method>
  21617. <method name="store"
  21618. abstract="false" native="false" synchronized="false"
  21619. static="true" final="false" visibility="public"
  21620. deprecated="not deprecated">
  21621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21622. <param name="item" type="K"/>
  21623. <param name="keyName" type="java.lang.String"/>
  21624. <exception name="IOException" type="java.io.IOException"/>
  21625. <doc>
  21626. <![CDATA[Stores the item in the configuration with the given keyName.
  21627. @param <K> the class of the item
  21628. @param conf the configuration to store
  21629. @param item the object to be stored
  21630. @param keyName the name of the key to use
  21631. @throws IOException : forwards Exceptions from the underlying
  21632. {@link Serialization} classes.]]>
  21633. </doc>
  21634. </method>
  21635. <method name="load" return="K"
  21636. abstract="false" native="false" synchronized="false"
  21637. static="true" final="false" visibility="public"
  21638. deprecated="not deprecated">
  21639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21640. <param name="keyName" type="java.lang.String"/>
  21641. <param name="itemClass" type="java.lang.Class"/>
  21642. <exception name="IOException" type="java.io.IOException"/>
  21643. <doc>
  21644. <![CDATA[Restores the object from the configuration.
  21645. @param <K> the class of the item
  21646. @param conf the configuration to use
  21647. @param keyName the name of the key to use
  21648. @param itemClass the class of the item
  21649. @return restored object
  21650. @throws IOException : forwards Exceptions from the underlying
  21651. {@link Serialization} classes.]]>
  21652. </doc>
  21653. </method>
  21654. <method name="storeArray"
  21655. abstract="false" native="false" synchronized="false"
  21656. static="true" final="false" visibility="public"
  21657. deprecated="not deprecated">
  21658. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21659. <param name="items" type="K[]"/>
  21660. <param name="keyName" type="java.lang.String"/>
  21661. <exception name="IOException" type="java.io.IOException"/>
  21662. <doc>
  21663. <![CDATA[Stores the array of items in the configuration with the given keyName.
  21664. @param <K> the class of the item
  21665. @param conf the configuration to use
  21666. @param items the objects to be stored
  21667. @param keyName the name of the key to use
  21668. @throws IndexOutOfBoundsException if the items array is empty
  21669. @throws IOException : forwards Exceptions from the underlying
  21670. {@link Serialization} classes.]]>
  21671. </doc>
  21672. </method>
  21673. <method name="loadArray" return="K[]"
  21674. abstract="false" native="false" synchronized="false"
  21675. static="true" final="false" visibility="public"
  21676. deprecated="not deprecated">
  21677. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21678. <param name="keyName" type="java.lang.String"/>
  21679. <param name="itemClass" type="java.lang.Class"/>
  21680. <exception name="IOException" type="java.io.IOException"/>
  21681. <doc>
  21682. <![CDATA[Restores the array of objects from the configuration.
  21683. @param <K> the class of the item
  21684. @param conf the configuration to use
  21685. @param keyName the name of the key to use
  21686. @param itemClass the class of the item
  21687. @return restored object
  21688. @throws IOException : forwards Exceptions from the underlying
  21689. {@link Serialization} classes.]]>
  21690. </doc>
  21691. </method>
  21692. <doc>
  21693. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  21694. interface which stringifies the objects using base64 encoding of the
  21695. serialized version of the objects. The {@link Serializer} and
  21696. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  21697. <br>
  21698. DefaultStringifier offers convenience methods to store/load objects to/from
  21699. the configuration.
  21700. @param <T> the class of the objects to stringify]]>
  21701. </doc>
  21702. </class>
  21703. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  21704. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  21705. <class name="DoubleWritable" extends="java.lang.Object"
  21706. abstract="false"
  21707. static="false" final="false" visibility="public"
  21708. deprecated="not deprecated">
  21709. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21710. <constructor name="DoubleWritable"
  21711. static="false" final="false" visibility="public"
  21712. deprecated="not deprecated">
  21713. </constructor>
  21714. <constructor name="DoubleWritable" type="double"
  21715. static="false" final="false" visibility="public"
  21716. deprecated="not deprecated">
  21717. </constructor>
  21718. <method name="readFields"
  21719. abstract="false" native="false" synchronized="false"
  21720. static="false" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. <param name="in" type="java.io.DataInput"/>
  21723. <exception name="IOException" type="java.io.IOException"/>
  21724. </method>
  21725. <method name="write"
  21726. abstract="false" native="false" synchronized="false"
  21727. static="false" final="false" visibility="public"
  21728. deprecated="not deprecated">
  21729. <param name="out" type="java.io.DataOutput"/>
  21730. <exception name="IOException" type="java.io.IOException"/>
  21731. </method>
  21732. <method name="set"
  21733. abstract="false" native="false" synchronized="false"
  21734. static="false" final="false" visibility="public"
  21735. deprecated="not deprecated">
  21736. <param name="value" type="double"/>
  21737. </method>
  21738. <method name="get" return="double"
  21739. abstract="false" native="false" synchronized="false"
  21740. static="false" final="false" visibility="public"
  21741. deprecated="not deprecated">
  21742. </method>
  21743. <method name="equals" return="boolean"
  21744. abstract="false" native="false" synchronized="false"
  21745. static="false" final="false" visibility="public"
  21746. deprecated="not deprecated">
  21747. <param name="o" type="java.lang.Object"/>
  21748. <doc>
  21749. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  21750. </doc>
  21751. </method>
  21752. <method name="hashCode" return="int"
  21753. abstract="false" native="false" synchronized="false"
  21754. static="false" final="false" visibility="public"
  21755. deprecated="not deprecated">
  21756. </method>
  21757. <method name="compareTo" return="int"
  21758. abstract="false" native="false" synchronized="false"
  21759. static="false" final="false" visibility="public"
  21760. deprecated="not deprecated">
  21761. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  21762. </method>
  21763. <method name="toString" return="java.lang.String"
  21764. abstract="false" native="false" synchronized="false"
  21765. static="false" final="false" visibility="public"
  21766. deprecated="not deprecated">
  21767. </method>
  21768. <doc>
  21769. <![CDATA[Writable for Double values.]]>
  21770. </doc>
  21771. </class>
  21772. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  21773. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  21774. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  21775. abstract="false"
  21776. static="false" final="false" visibility="public"
  21777. deprecated="not deprecated">
  21778. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  21779. <constructor name="ElasticByteBufferPool"
  21780. static="false" final="false" visibility="public"
  21781. deprecated="not deprecated">
  21782. </constructor>
  21783. <method name="getBuffer" return="java.nio.ByteBuffer"
  21784. abstract="false" native="false" synchronized="true"
  21785. static="false" final="false" visibility="public"
  21786. deprecated="not deprecated">
  21787. <param name="direct" type="boolean"/>
  21788. <param name="length" type="int"/>
  21789. </method>
  21790. <method name="putBuffer"
  21791. abstract="false" native="false" synchronized="true"
  21792. static="false" final="false" visibility="public"
  21793. deprecated="not deprecated">
  21794. <param name="buffer" type="java.nio.ByteBuffer"/>
  21795. </method>
  21796. <doc>
  21797. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  21798. It also caches ByteBuffers after they're released. It will always return
  21799. the smallest cached buffer with at least the capacity you request.
  21800. We don't try to do anything clever here like try to limit the maximum cache
  21801. size.]]>
  21802. </doc>
  21803. </class>
  21804. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  21805. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  21806. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  21807. abstract="false"
  21808. static="false" final="false" visibility="public"
  21809. deprecated="not deprecated">
  21810. <implements name="org.apache.hadoop.io.Writable"/>
  21811. <implements name="org.apache.hadoop.conf.Configurable"/>
  21812. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  21813. static="false" final="false" visibility="public"
  21814. deprecated="not deprecated">
  21815. <doc>
  21816. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  21817. its size is zero, the <tt>elementType</tt> argument must not be null. If
  21818. the argument <tt>value</tt>'s size is bigger than zero, the argument
  21819. <tt>elementType</tt> is not be used.
  21820. @param value enumSet value.
  21821. @param elementType elementType.]]>
  21822. </doc>
  21823. </constructor>
  21824. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  21825. static="false" final="false" visibility="public"
  21826. deprecated="not deprecated">
  21827. <doc>
  21828. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  21829. or empty.
  21830. @param value enumSet value.]]>
  21831. </doc>
  21832. </constructor>
  21833. <method name="iterator" return="java.util.Iterator"
  21834. abstract="false" native="false" synchronized="false"
  21835. static="false" final="false" visibility="public"
  21836. deprecated="not deprecated">
  21837. </method>
  21838. <method name="size" return="int"
  21839. abstract="false" native="false" synchronized="false"
  21840. static="false" final="false" visibility="public"
  21841. deprecated="not deprecated">
  21842. </method>
  21843. <method name="add" return="boolean"
  21844. abstract="false" native="false" synchronized="false"
  21845. static="false" final="false" visibility="public"
  21846. deprecated="not deprecated">
  21847. <param name="e" type="E"/>
  21848. </method>
  21849. <method name="set"
  21850. abstract="false" native="false" synchronized="false"
  21851. static="false" final="false" visibility="public"
  21852. deprecated="not deprecated">
  21853. <param name="value" type="java.util.EnumSet"/>
  21854. <param name="elementType" type="java.lang.Class"/>
  21855. <doc>
  21856. <![CDATA[reset the EnumSetWritable with specified
  21857. <tt>value</tt> and <tt>elementType</tt>. If the <tt>value</tt> argument
  21858. is null or its size is zero, the <tt>elementType</tt> argument must not be
  21859. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  21860. argument <tt>elementType</tt> is not be used.
  21861. @param value enumSet Value.
  21862. @param elementType elementType.]]>
  21863. </doc>
  21864. </method>
  21865. <method name="get" return="java.util.EnumSet"
  21866. abstract="false" native="false" synchronized="false"
  21867. static="false" final="false" visibility="public"
  21868. deprecated="not deprecated">
  21869. <doc>
  21870. <![CDATA[Return the value of this EnumSetWritable.
  21871. @return EnumSet.]]>
  21872. </doc>
  21873. </method>
  21874. <method name="readFields"
  21875. abstract="false" native="false" synchronized="false"
  21876. static="false" final="false" visibility="public"
  21877. deprecated="not deprecated">
  21878. <param name="in" type="java.io.DataInput"/>
  21879. <exception name="IOException" type="java.io.IOException"/>
  21880. </method>
  21881. <method name="write"
  21882. abstract="false" native="false" synchronized="false"
  21883. static="false" final="false" visibility="public"
  21884. deprecated="not deprecated">
  21885. <param name="out" type="java.io.DataOutput"/>
  21886. <exception name="IOException" type="java.io.IOException"/>
  21887. </method>
  21888. <method name="equals" return="boolean"
  21889. abstract="false" native="false" synchronized="false"
  21890. static="false" final="false" visibility="public"
  21891. deprecated="not deprecated">
  21892. <param name="o" type="java.lang.Object"/>
  21893. <doc>
  21894. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  21895. or both are null.]]>
  21896. </doc>
  21897. </method>
  21898. <method name="getElementType" return="java.lang.Class"
  21899. abstract="false" native="false" synchronized="false"
  21900. static="false" final="false" visibility="public"
  21901. deprecated="not deprecated">
  21902. <doc>
  21903. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  21904. may return null.
  21905. @return the element class]]>
  21906. </doc>
  21907. </method>
  21908. <method name="hashCode" return="int"
  21909. abstract="false" native="false" synchronized="false"
  21910. static="false" final="false" visibility="public"
  21911. deprecated="not deprecated">
  21912. </method>
  21913. <method name="toString" return="java.lang.String"
  21914. abstract="false" native="false" synchronized="false"
  21915. static="false" final="false" visibility="public"
  21916. deprecated="not deprecated">
  21917. </method>
  21918. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21919. abstract="false" native="false" synchronized="false"
  21920. static="false" final="false" visibility="public"
  21921. deprecated="not deprecated">
  21922. </method>
  21923. <method name="setConf"
  21924. abstract="false" native="false" synchronized="false"
  21925. static="false" final="false" visibility="public"
  21926. deprecated="not deprecated">
  21927. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21928. </method>
  21929. <doc>
  21930. <![CDATA[A Writable wrapper for EnumSet.]]>
  21931. </doc>
  21932. </class>
  21933. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  21934. <!-- start class org.apache.hadoop.io.FloatWritable -->
  21935. <class name="FloatWritable" extends="java.lang.Object"
  21936. abstract="false"
  21937. static="false" final="false" visibility="public"
  21938. deprecated="not deprecated">
  21939. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21940. <constructor name="FloatWritable"
  21941. static="false" final="false" visibility="public"
  21942. deprecated="not deprecated">
  21943. </constructor>
  21944. <constructor name="FloatWritable" type="float"
  21945. static="false" final="false" visibility="public"
  21946. deprecated="not deprecated">
  21947. </constructor>
  21948. <method name="set"
  21949. abstract="false" native="false" synchronized="false"
  21950. static="false" final="false" visibility="public"
  21951. deprecated="not deprecated">
  21952. <param name="value" type="float"/>
  21953. <doc>
  21954. <![CDATA[Set the value of this FloatWritable.
  21955. @param value value.]]>
  21956. </doc>
  21957. </method>
  21958. <method name="get" return="float"
  21959. abstract="false" native="false" synchronized="false"
  21960. static="false" final="false" visibility="public"
  21961. deprecated="not deprecated">
  21962. <doc>
  21963. <![CDATA[Return the value of this FloatWritable.
  21964. @return value.]]>
  21965. </doc>
  21966. </method>
  21967. <method name="readFields"
  21968. abstract="false" native="false" synchronized="false"
  21969. static="false" final="false" visibility="public"
  21970. deprecated="not deprecated">
  21971. <param name="in" type="java.io.DataInput"/>
  21972. <exception name="IOException" type="java.io.IOException"/>
  21973. </method>
  21974. <method name="write"
  21975. abstract="false" native="false" synchronized="false"
  21976. static="false" final="false" visibility="public"
  21977. deprecated="not deprecated">
  21978. <param name="out" type="java.io.DataOutput"/>
  21979. <exception name="IOException" type="java.io.IOException"/>
  21980. </method>
  21981. <method name="equals" return="boolean"
  21982. abstract="false" native="false" synchronized="false"
  21983. static="false" final="false" visibility="public"
  21984. deprecated="not deprecated">
  21985. <param name="o" type="java.lang.Object"/>
  21986. <doc>
  21987. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  21988. </doc>
  21989. </method>
  21990. <method name="hashCode" return="int"
  21991. abstract="false" native="false" synchronized="false"
  21992. static="false" final="false" visibility="public"
  21993. deprecated="not deprecated">
  21994. </method>
  21995. <method name="compareTo" return="int"
  21996. abstract="false" native="false" synchronized="false"
  21997. static="false" final="false" visibility="public"
  21998. deprecated="not deprecated">
  21999. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  22000. <doc>
  22001. <![CDATA[Compares two FloatWritables.]]>
  22002. </doc>
  22003. </method>
  22004. <method name="toString" return="java.lang.String"
  22005. abstract="false" native="false" synchronized="false"
  22006. static="false" final="false" visibility="public"
  22007. deprecated="not deprecated">
  22008. </method>
  22009. <doc>
  22010. <![CDATA[A WritableComparable for floats.]]>
  22011. </doc>
  22012. </class>
  22013. <!-- end class org.apache.hadoop.io.FloatWritable -->
  22014. <!-- start class org.apache.hadoop.io.GenericWritable -->
  22015. <class name="GenericWritable" extends="java.lang.Object"
  22016. abstract="true"
  22017. static="false" final="false" visibility="public"
  22018. deprecated="not deprecated">
  22019. <implements name="org.apache.hadoop.io.Writable"/>
  22020. <implements name="org.apache.hadoop.conf.Configurable"/>
  22021. <constructor name="GenericWritable"
  22022. static="false" final="false" visibility="public"
  22023. deprecated="not deprecated">
  22024. </constructor>
  22025. <method name="set"
  22026. abstract="false" native="false" synchronized="false"
  22027. static="false" final="false" visibility="public"
  22028. deprecated="not deprecated">
  22029. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  22030. <doc>
  22031. <![CDATA[Set the instance that is wrapped.
  22032. @param obj input obj.]]>
  22033. </doc>
  22034. </method>
  22035. <method name="get" return="org.apache.hadoop.io.Writable"
  22036. abstract="false" native="false" synchronized="false"
  22037. static="false" final="false" visibility="public"
  22038. deprecated="not deprecated">
  22039. <doc>
  22040. <![CDATA[Return the wrapped instance.
  22041. @return the wrapped instance.]]>
  22042. </doc>
  22043. </method>
  22044. <method name="toString" return="java.lang.String"
  22045. abstract="false" native="false" synchronized="false"
  22046. static="false" final="false" visibility="public"
  22047. deprecated="not deprecated">
  22048. </method>
  22049. <method name="readFields"
  22050. abstract="false" native="false" synchronized="false"
  22051. static="false" final="false" visibility="public"
  22052. deprecated="not deprecated">
  22053. <param name="in" type="java.io.DataInput"/>
  22054. <exception name="IOException" type="java.io.IOException"/>
  22055. </method>
  22056. <method name="write"
  22057. abstract="false" native="false" synchronized="false"
  22058. static="false" final="false" visibility="public"
  22059. deprecated="not deprecated">
  22060. <param name="out" type="java.io.DataOutput"/>
  22061. <exception name="IOException" type="java.io.IOException"/>
  22062. </method>
  22063. <method name="getTypes" return="java.lang.Class[]"
  22064. abstract="true" native="false" synchronized="false"
  22065. static="false" final="false" visibility="protected"
  22066. deprecated="not deprecated">
  22067. <doc>
  22068. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  22069. to return a constant array of classes.
  22070. @return all classes that may be wrapped.]]>
  22071. </doc>
  22072. </method>
  22073. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22074. abstract="false" native="false" synchronized="false"
  22075. static="false" final="false" visibility="public"
  22076. deprecated="not deprecated">
  22077. </method>
  22078. <method name="setConf"
  22079. abstract="false" native="false" synchronized="false"
  22080. static="false" final="false" visibility="public"
  22081. deprecated="not deprecated">
  22082. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22083. </method>
  22084. <doc>
  22085. <![CDATA[A wrapper for Writable instances.
  22086. <p>
  22087. When two sequence files, which have same Key type but different Value
  22088. types, are mapped out to reduce, multiple Value types is not allowed.
  22089. In this case, this class can help you wrap instances with different types.
  22090. </p>
  22091. <p>
  22092. Compared with <code>ObjectWritable</code>, this class is much more effective,
  22093. because <code>ObjectWritable</code> will append the class declaration as a String
  22094. into the output file in every Key-Value pair.
  22095. </p>
  22096. <p>
  22097. Generic Writable implements {@link Configurable} interface, so that it will be
  22098. configured by the framework. The configuration is passed to the wrapped objects
  22099. implementing {@link Configurable} interface <i>before deserialization</i>.
  22100. </p>
  22101. how to use it: <br>
  22102. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  22103. 2. Implements the abstract method <code>getTypes()</code>, defines
  22104. the classes which will be wrapped in GenericObject in application.
  22105. Attention: this classes defined in <code>getTypes()</code> method, must
  22106. implement <code>Writable</code> interface.
  22107. <br><br>
  22108. The code looks like this:
  22109. <blockquote><pre>
  22110. public class GenericObject extends GenericWritable {
  22111. private static Class[] CLASSES = {
  22112. ClassType1.class,
  22113. ClassType2.class,
  22114. ClassType3.class,
  22115. };
  22116. protected Class[] getTypes() {
  22117. return CLASSES;
  22118. }
  22119. }
  22120. </pre></blockquote>
  22121. @since Nov 8, 2006]]>
  22122. </doc>
  22123. </class>
  22124. <!-- end class org.apache.hadoop.io.GenericWritable -->
  22125. <!-- start class org.apache.hadoop.io.IntWritable -->
  22126. <class name="IntWritable" extends="java.lang.Object"
  22127. abstract="false"
  22128. static="false" final="false" visibility="public"
  22129. deprecated="not deprecated">
  22130. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22131. <constructor name="IntWritable"
  22132. static="false" final="false" visibility="public"
  22133. deprecated="not deprecated">
  22134. </constructor>
  22135. <constructor name="IntWritable" type="int"
  22136. static="false" final="false" visibility="public"
  22137. deprecated="not deprecated">
  22138. </constructor>
  22139. <method name="set"
  22140. abstract="false" native="false" synchronized="false"
  22141. static="false" final="false" visibility="public"
  22142. deprecated="not deprecated">
  22143. <param name="value" type="int"/>
  22144. <doc>
  22145. <![CDATA[Set the value of this IntWritable.
  22146. @param value input value.]]>
  22147. </doc>
  22148. </method>
  22149. <method name="get" return="int"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="false" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <doc>
  22154. <![CDATA[Return the value of this IntWritable.
  22155. @return value of this IntWritable.]]>
  22156. </doc>
  22157. </method>
  22158. <method name="readFields"
  22159. abstract="false" native="false" synchronized="false"
  22160. static="false" final="false" visibility="public"
  22161. deprecated="not deprecated">
  22162. <param name="in" type="java.io.DataInput"/>
  22163. <exception name="IOException" type="java.io.IOException"/>
  22164. </method>
  22165. <method name="write"
  22166. abstract="false" native="false" synchronized="false"
  22167. static="false" final="false" visibility="public"
  22168. deprecated="not deprecated">
  22169. <param name="out" type="java.io.DataOutput"/>
  22170. <exception name="IOException" type="java.io.IOException"/>
  22171. </method>
  22172. <method name="equals" return="boolean"
  22173. abstract="false" native="false" synchronized="false"
  22174. static="false" final="false" visibility="public"
  22175. deprecated="not deprecated">
  22176. <param name="o" type="java.lang.Object"/>
  22177. <doc>
  22178. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  22179. </doc>
  22180. </method>
  22181. <method name="hashCode" return="int"
  22182. abstract="false" native="false" synchronized="false"
  22183. static="false" final="false" visibility="public"
  22184. deprecated="not deprecated">
  22185. </method>
  22186. <method name="compareTo" return="int"
  22187. abstract="false" native="false" synchronized="false"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  22191. <doc>
  22192. <![CDATA[Compares two IntWritables.]]>
  22193. </doc>
  22194. </method>
  22195. <method name="toString" return="java.lang.String"
  22196. abstract="false" native="false" synchronized="false"
  22197. static="false" final="false" visibility="public"
  22198. deprecated="not deprecated">
  22199. </method>
  22200. <doc>
  22201. <![CDATA[A WritableComparable for ints.]]>
  22202. </doc>
  22203. </class>
  22204. <!-- end class org.apache.hadoop.io.IntWritable -->
  22205. <!-- start class org.apache.hadoop.io.IOUtils -->
  22206. <class name="IOUtils" extends="java.lang.Object"
  22207. abstract="false"
  22208. static="false" final="false" visibility="public"
  22209. deprecated="not deprecated">
  22210. <constructor name="IOUtils"
  22211. static="false" final="false" visibility="public"
  22212. deprecated="not deprecated">
  22213. </constructor>
  22214. <method name="copyBytes"
  22215. abstract="false" native="false" synchronized="false"
  22216. static="true" final="false" visibility="public"
  22217. deprecated="not deprecated">
  22218. <param name="in" type="java.io.InputStream"/>
  22219. <param name="out" type="java.io.OutputStream"/>
  22220. <param name="buffSize" type="int"/>
  22221. <param name="close" type="boolean"/>
  22222. <exception name="IOException" type="java.io.IOException"/>
  22223. <doc>
  22224. <![CDATA[Copies from one stream to another.
  22225. @param in InputStrem to read from
  22226. @param out OutputStream to write to
  22227. @param buffSize the size of the buffer
  22228. @param close whether or not close the InputStream and
  22229. OutputStream at the end. The streams are closed in the finally clause.
  22230. @throws IOException raised on errors performing I/O.]]>
  22231. </doc>
  22232. </method>
  22233. <method name="copyBytes"
  22234. abstract="false" native="false" synchronized="false"
  22235. static="true" final="false" visibility="public"
  22236. deprecated="not deprecated">
  22237. <param name="in" type="java.io.InputStream"/>
  22238. <param name="out" type="java.io.OutputStream"/>
  22239. <param name="buffSize" type="int"/>
  22240. <exception name="IOException" type="java.io.IOException"/>
  22241. <doc>
  22242. <![CDATA[Copies from one stream to another.
  22243. @param in InputStrem to read from
  22244. @param out OutputStream to write to
  22245. @param buffSize the size of the buffer.
  22246. @throws IOException raised on errors performing I/O.]]>
  22247. </doc>
  22248. </method>
  22249. <method name="copyBytes"
  22250. abstract="false" native="false" synchronized="false"
  22251. static="true" final="false" visibility="public"
  22252. deprecated="not deprecated">
  22253. <param name="in" type="java.io.InputStream"/>
  22254. <param name="out" type="java.io.OutputStream"/>
  22255. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22256. <exception name="IOException" type="java.io.IOException"/>
  22257. <doc>
  22258. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  22259. at the end</strong>.
  22260. @param in InputStrem to read from
  22261. @param out OutputStream to write to
  22262. @param conf the Configuration object.
  22263. @throws IOException raised on errors performing I/O.]]>
  22264. </doc>
  22265. </method>
  22266. <method name="copyBytes"
  22267. abstract="false" native="false" synchronized="false"
  22268. static="true" final="false" visibility="public"
  22269. deprecated="not deprecated">
  22270. <param name="in" type="java.io.InputStream"/>
  22271. <param name="out" type="java.io.OutputStream"/>
  22272. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22273. <param name="close" type="boolean"/>
  22274. <exception name="IOException" type="java.io.IOException"/>
  22275. <doc>
  22276. <![CDATA[Copies from one stream to another.
  22277. @param in InputStream to read from
  22278. @param out OutputStream to write to
  22279. @param conf the Configuration object
  22280. @param close whether or not close the InputStream and
  22281. OutputStream at the end. The streams are closed in the finally clause.
  22282. @throws IOException raised on errors performing I/O.]]>
  22283. </doc>
  22284. </method>
  22285. <method name="copyBytes"
  22286. abstract="false" native="false" synchronized="false"
  22287. static="true" final="false" visibility="public"
  22288. deprecated="not deprecated">
  22289. <param name="in" type="java.io.InputStream"/>
  22290. <param name="out" type="java.io.OutputStream"/>
  22291. <param name="count" type="long"/>
  22292. <param name="close" type="boolean"/>
  22293. <exception name="IOException" type="java.io.IOException"/>
  22294. <doc>
  22295. <![CDATA[Copies count bytes from one stream to another.
  22296. @param in InputStream to read from
  22297. @param out OutputStream to write to
  22298. @param count number of bytes to copy
  22299. @param close whether to close the streams
  22300. @throws IOException if bytes can not be read or written]]>
  22301. </doc>
  22302. </method>
  22303. <method name="wrappedReadForCompressedData" return="int"
  22304. abstract="false" native="false" synchronized="false"
  22305. static="true" final="false" visibility="public"
  22306. deprecated="not deprecated">
  22307. <param name="is" type="java.io.InputStream"/>
  22308. <param name="buf" type="byte[]"/>
  22309. <param name="off" type="int"/>
  22310. <param name="len" type="int"/>
  22311. <exception name="IOException" type="java.io.IOException"/>
  22312. <doc>
  22313. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  22314. thrown by the underlying stream (either IO or decompression-related), and
  22315. re-throws as an IOException.
  22316. @param is - InputStream to be read from
  22317. @param buf - buffer the data is read into
  22318. @param off - offset within buf
  22319. @param len - amount of data to be read
  22320. @return number of bytes read
  22321. @throws IOException raised on errors performing I/O.]]>
  22322. </doc>
  22323. </method>
  22324. <method name="readFully"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="true" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. <param name="in" type="java.io.InputStream"/>
  22329. <param name="buf" type="byte[]"/>
  22330. <param name="off" type="int"/>
  22331. <param name="len" type="int"/>
  22332. <exception name="IOException" type="java.io.IOException"/>
  22333. <doc>
  22334. <![CDATA[Reads len bytes in a loop.
  22335. @param in InputStream to read from
  22336. @param buf The buffer to fill
  22337. @param off offset from the buffer
  22338. @param len the length of bytes to read
  22339. @throws IOException if it could not read requested number of bytes
  22340. for any reason (including EOF)]]>
  22341. </doc>
  22342. </method>
  22343. <method name="skipFully"
  22344. abstract="false" native="false" synchronized="false"
  22345. static="true" final="false" visibility="public"
  22346. deprecated="not deprecated">
  22347. <param name="in" type="java.io.InputStream"/>
  22348. <param name="len" type="long"/>
  22349. <exception name="IOException" type="java.io.IOException"/>
  22350. <doc>
  22351. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  22352. @param in The InputStream to skip bytes from
  22353. @param len number of bytes to skip.
  22354. @throws IOException if it could not skip requested number of bytes
  22355. for any reason (including EOF)]]>
  22356. </doc>
  22357. </method>
  22358. <method name="cleanup"
  22359. abstract="false" native="false" synchronized="false"
  22360. static="true" final="false" visibility="public"
  22361. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  22362. instead">
  22363. <param name="log" type="org.apache.commons.logging.Log"/>
  22364. <param name="closeables" type="java.io.Closeable[]"/>
  22365. <doc>
  22366. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  22367. null pointers. Must only be used for cleanup in exception handlers.
  22368. @param log the log to record problems to at debug level. Can be null.
  22369. @param closeables the objects to close
  22370. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  22371. instead]]>
  22372. </doc>
  22373. </method>
  22374. <method name="cleanupWithLogger"
  22375. abstract="false" native="false" synchronized="false"
  22376. static="true" final="false" visibility="public"
  22377. deprecated="not deprecated">
  22378. <param name="logger" type="org.slf4j.Logger"/>
  22379. <param name="closeables" type="java.io.Closeable[]"/>
  22380. <doc>
  22381. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  22382. null pointers. Must only be used for cleanup in exception handlers.
  22383. @param logger the log to record problems to at debug level. Can be null.
  22384. @param closeables the objects to close]]>
  22385. </doc>
  22386. </method>
  22387. <method name="closeStream"
  22388. abstract="false" native="false" synchronized="false"
  22389. static="true" final="false" visibility="public"
  22390. deprecated="not deprecated">
  22391. <param name="stream" type="java.io.Closeable"/>
  22392. <doc>
  22393. <![CDATA[Closes the stream ignoring {@link Throwable}.
  22394. Must only be called in cleaning up from exception handlers.
  22395. @param stream the Stream to close]]>
  22396. </doc>
  22397. </method>
  22398. <method name="closeStreams"
  22399. abstract="false" native="false" synchronized="false"
  22400. static="true" final="false" visibility="public"
  22401. deprecated="not deprecated">
  22402. <param name="streams" type="java.io.Closeable[]"/>
  22403. <doc>
  22404. <![CDATA[Closes the streams ignoring {@link Throwable}.
  22405. Must only be called in cleaning up from exception handlers.
  22406. @param streams the Streams to close]]>
  22407. </doc>
  22408. </method>
  22409. <method name="closeSocket"
  22410. abstract="false" native="false" synchronized="false"
  22411. static="true" final="false" visibility="public"
  22412. deprecated="not deprecated">
  22413. <param name="sock" type="java.net.Socket"/>
  22414. <doc>
  22415. <![CDATA[Closes the socket ignoring {@link IOException}
  22416. @param sock the Socket to close]]>
  22417. </doc>
  22418. </method>
  22419. <method name="writeFully"
  22420. abstract="false" native="false" synchronized="false"
  22421. static="true" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  22424. <param name="buf" type="java.nio.ByteBuffer"/>
  22425. <exception name="IOException" type="java.io.IOException"/>
  22426. <doc>
  22427. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  22428. @param bc The WritableByteChannel to write to
  22429. @param buf The input buffer
  22430. @throws IOException On I/O error]]>
  22431. </doc>
  22432. </method>
  22433. <method name="writeFully"
  22434. abstract="false" native="false" synchronized="false"
  22435. static="true" final="false" visibility="public"
  22436. deprecated="not deprecated">
  22437. <param name="fc" type="java.nio.channels.FileChannel"/>
  22438. <param name="buf" type="java.nio.ByteBuffer"/>
  22439. <param name="offset" type="long"/>
  22440. <exception name="IOException" type="java.io.IOException"/>
  22441. <doc>
  22442. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  22443. handling short writes.
  22444. @param fc The FileChannel to write to
  22445. @param buf The input buffer
  22446. @param offset The offset in the file to start writing at
  22447. @throws IOException On I/O error]]>
  22448. </doc>
  22449. </method>
  22450. <method name="listDirectory" return="java.util.List"
  22451. abstract="false" native="false" synchronized="false"
  22452. static="true" final="false" visibility="public"
  22453. deprecated="not deprecated">
  22454. <param name="dir" type="java.io.File"/>
  22455. <param name="filter" type="java.io.FilenameFilter"/>
  22456. <exception name="IOException" type="java.io.IOException"/>
  22457. <doc>
  22458. <![CDATA[Return the complete list of files in a directory as strings.<p>
  22459. This is better than File#listDir because it does not ignore IOExceptions.
  22460. @param dir The directory to list.
  22461. @param filter If non-null, the filter to use when listing
  22462. this directory.
  22463. @return The list of files in the directory.
  22464. @throws IOException On I/O error]]>
  22465. </doc>
  22466. </method>
  22467. <method name="fsync"
  22468. abstract="false" native="false" synchronized="false"
  22469. static="true" final="false" visibility="public"
  22470. deprecated="not deprecated">
  22471. <param name="fileToSync" type="java.io.File"/>
  22472. <exception name="IOException" type="java.io.IOException"/>
  22473. <doc>
  22474. <![CDATA[Ensure that any writes to the given file is written to the storage device
  22475. that contains it. This method opens channel on given File and closes it
  22476. once the sync is done.<br>
  22477. Borrowed from Uwe Schindler in LUCENE-5588
  22478. @param fileToSync the file to fsync
  22479. @throws IOException raised on errors performing I/O.]]>
  22480. </doc>
  22481. </method>
  22482. <method name="fsync"
  22483. abstract="false" native="false" synchronized="false"
  22484. static="true" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. <param name="channel" type="java.nio.channels.FileChannel"/>
  22487. <param name="isDir" type="boolean"/>
  22488. <exception name="IOException" type="java.io.IOException"/>
  22489. <doc>
  22490. <![CDATA[Ensure that any writes to the given file is written to the storage device
  22491. that contains it. This method opens channel on given File and closes it
  22492. once the sync is done.
  22493. Borrowed from Uwe Schindler in LUCENE-5588
  22494. @param channel Channel to sync
  22495. @param isDir if true, the given file is a directory (Channel should be
  22496. opened for read and ignore IOExceptions, because not all file
  22497. systems and operating systems allow to fsync on a directory)
  22498. @throws IOException raised on errors performing I/O.]]>
  22499. </doc>
  22500. </method>
  22501. <method name="wrapException" return="java.io.IOException"
  22502. abstract="false" native="false" synchronized="false"
  22503. static="true" final="false" visibility="public"
  22504. deprecated="not deprecated">
  22505. <param name="path" type="java.lang.String"/>
  22506. <param name="methodName" type="java.lang.String"/>
  22507. <param name="exception" type="java.io.IOException"/>
  22508. <doc>
  22509. <![CDATA[Takes an IOException, file/directory path, and method name and returns an
  22510. IOException with the input exception as the cause and also include the
  22511. file,method details. The new exception provides the stack trace of the
  22512. place where the exception is thrown and some extra diagnostics
  22513. information.
  22514. Return instance of same exception if exception class has a public string
  22515. constructor; Otherwise return an PathIOException.
  22516. InterruptedIOException and PathIOException are returned unwrapped.
  22517. @param path file/directory path
  22518. @param methodName method name
  22519. @param exception the caught exception.
  22520. @return an exception to throw]]>
  22521. </doc>
  22522. </method>
  22523. <method name="readFullyToByteArray" return="byte[]"
  22524. abstract="false" native="false" synchronized="false"
  22525. static="true" final="false" visibility="public"
  22526. deprecated="not deprecated">
  22527. <param name="in" type="java.io.DataInput"/>
  22528. <exception name="IOException" type="java.io.IOException"/>
  22529. <doc>
  22530. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  22531. pass in an infinite DataInput or this will never return.
  22532. @param in A DataInput
  22533. @return a byte array containing the data from the DataInput
  22534. @throws IOException on I/O error, other than EOF]]>
  22535. </doc>
  22536. </method>
  22537. <field name="LOG" type="org.slf4j.Logger"
  22538. transient="false" volatile="false"
  22539. static="true" final="true" visibility="public"
  22540. deprecated="not deprecated">
  22541. </field>
  22542. <doc>
  22543. <![CDATA[An utility class for I/O related functionality.]]>
  22544. </doc>
  22545. </class>
  22546. <!-- end class org.apache.hadoop.io.IOUtils -->
  22547. <!-- start class org.apache.hadoop.io.LongWritable -->
  22548. <class name="LongWritable" extends="java.lang.Object"
  22549. abstract="false"
  22550. static="false" final="false" visibility="public"
  22551. deprecated="not deprecated">
  22552. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22553. <constructor name="LongWritable"
  22554. static="false" final="false" visibility="public"
  22555. deprecated="not deprecated">
  22556. </constructor>
  22557. <constructor name="LongWritable" type="long"
  22558. static="false" final="false" visibility="public"
  22559. deprecated="not deprecated">
  22560. </constructor>
  22561. <method name="set"
  22562. abstract="false" native="false" synchronized="false"
  22563. static="false" final="false" visibility="public"
  22564. deprecated="not deprecated">
  22565. <param name="value" type="long"/>
  22566. <doc>
  22567. <![CDATA[Set the value of this LongWritable.
  22568. @param value value.]]>
  22569. </doc>
  22570. </method>
  22571. <method name="get" return="long"
  22572. abstract="false" native="false" synchronized="false"
  22573. static="false" final="false" visibility="public"
  22574. deprecated="not deprecated">
  22575. <doc>
  22576. <![CDATA[Return the value of this LongWritable.
  22577. @return value of this LongWritable.]]>
  22578. </doc>
  22579. </method>
  22580. <method name="readFields"
  22581. abstract="false" native="false" synchronized="false"
  22582. static="false" final="false" visibility="public"
  22583. deprecated="not deprecated">
  22584. <param name="in" type="java.io.DataInput"/>
  22585. <exception name="IOException" type="java.io.IOException"/>
  22586. </method>
  22587. <method name="write"
  22588. abstract="false" native="false" synchronized="false"
  22589. static="false" final="false" visibility="public"
  22590. deprecated="not deprecated">
  22591. <param name="out" type="java.io.DataOutput"/>
  22592. <exception name="IOException" type="java.io.IOException"/>
  22593. </method>
  22594. <method name="equals" return="boolean"
  22595. abstract="false" native="false" synchronized="false"
  22596. static="false" final="false" visibility="public"
  22597. deprecated="not deprecated">
  22598. <param name="o" type="java.lang.Object"/>
  22599. <doc>
  22600. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  22601. </doc>
  22602. </method>
  22603. <method name="hashCode" return="int"
  22604. abstract="false" native="false" synchronized="false"
  22605. static="false" final="false" visibility="public"
  22606. deprecated="not deprecated">
  22607. </method>
  22608. <method name="compareTo" return="int"
  22609. abstract="false" native="false" synchronized="false"
  22610. static="false" final="false" visibility="public"
  22611. deprecated="not deprecated">
  22612. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  22613. <doc>
  22614. <![CDATA[Compares two LongWritables.]]>
  22615. </doc>
  22616. </method>
  22617. <method name="toString" return="java.lang.String"
  22618. abstract="false" native="false" synchronized="false"
  22619. static="false" final="false" visibility="public"
  22620. deprecated="not deprecated">
  22621. </method>
  22622. <doc>
  22623. <![CDATA[A WritableComparable for longs.]]>
  22624. </doc>
  22625. </class>
  22626. <!-- end class org.apache.hadoop.io.LongWritable -->
  22627. <!-- start class org.apache.hadoop.io.MapFile -->
  22628. <class name="MapFile" extends="java.lang.Object"
  22629. abstract="false"
  22630. static="false" final="false" visibility="public"
  22631. deprecated="not deprecated">
  22632. <constructor name="MapFile"
  22633. static="false" final="false" visibility="protected"
  22634. deprecated="not deprecated">
  22635. </constructor>
  22636. <method name="rename"
  22637. abstract="false" native="false" synchronized="false"
  22638. static="true" final="false" visibility="public"
  22639. deprecated="not deprecated">
  22640. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22641. <param name="oldName" type="java.lang.String"/>
  22642. <param name="newName" type="java.lang.String"/>
  22643. <exception name="IOException" type="java.io.IOException"/>
  22644. <doc>
  22645. <![CDATA[Renames an existing map directory.
  22646. @param fs fs.
  22647. @param oldName oldName.
  22648. @param newName newName.
  22649. @throws IOException raised on errors performing I/O.]]>
  22650. </doc>
  22651. </method>
  22652. <method name="delete"
  22653. abstract="false" native="false" synchronized="false"
  22654. static="true" final="false" visibility="public"
  22655. deprecated="not deprecated">
  22656. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22657. <param name="name" type="java.lang.String"/>
  22658. <exception name="IOException" type="java.io.IOException"/>
  22659. <doc>
  22660. <![CDATA[Deletes the named map file.
  22661. @param fs input fs.
  22662. @param name input name.
  22663. @throws IOException raised on errors performing I/O.]]>
  22664. </doc>
  22665. </method>
  22666. <method name="fix" return="long"
  22667. abstract="false" native="false" synchronized="false"
  22668. static="true" final="false" visibility="public"
  22669. deprecated="not deprecated">
  22670. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22671. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22672. <param name="keyClass" type="java.lang.Class"/>
  22673. <param name="valueClass" type="java.lang.Class"/>
  22674. <param name="dryrun" type="boolean"/>
  22675. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22676. <exception name="Exception" type="java.lang.Exception"/>
  22677. <doc>
  22678. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  22679. @param fs filesystem
  22680. @param dir directory containing the MapFile data and index
  22681. @param keyClass key class (has to be a subclass of Writable)
  22682. @param valueClass value class (has to be a subclass of Writable)
  22683. @param dryrun do not perform any changes, just report what needs to be done
  22684. @param conf configuration.
  22685. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  22686. @throws Exception Exception.]]>
  22687. </doc>
  22688. </method>
  22689. <method name="main"
  22690. abstract="false" native="false" synchronized="false"
  22691. static="true" final="false" visibility="public"
  22692. deprecated="not deprecated">
  22693. <param name="args" type="java.lang.String[]"/>
  22694. <exception name="Exception" type="java.lang.Exception"/>
  22695. </method>
  22696. <field name="INDEX_FILE_NAME" type="java.lang.String"
  22697. transient="false" volatile="false"
  22698. static="true" final="true" visibility="public"
  22699. deprecated="not deprecated">
  22700. <doc>
  22701. <![CDATA[The name of the index file.]]>
  22702. </doc>
  22703. </field>
  22704. <field name="DATA_FILE_NAME" type="java.lang.String"
  22705. transient="false" volatile="false"
  22706. static="true" final="true" visibility="public"
  22707. deprecated="not deprecated">
  22708. <doc>
  22709. <![CDATA[The name of the data file.]]>
  22710. </doc>
  22711. </field>
  22712. <doc>
  22713. <![CDATA[A file-based map from keys to values.
  22714. <p>A map is a directory containing two files, the <code>data</code> file,
  22715. containing all keys and values in the map, and a smaller <code>index</code>
  22716. file, containing a fraction of the keys. The fraction is determined by
  22717. {@link Writer#getIndexInterval()}.
  22718. <p>The index file is read entirely into memory. Thus key implementations
  22719. should try to keep themselves small.
  22720. <p>Map files are created by adding entries in-order. To maintain a large
  22721. database, perform updates by copying the previous version of a database and
  22722. merging in a sorted change list, to create a new version of the database in
  22723. a new file. Sorting large change lists can be done with {@link
  22724. SequenceFile.Sorter}.]]>
  22725. </doc>
  22726. </class>
  22727. <!-- end class org.apache.hadoop.io.MapFile -->
  22728. <!-- start class org.apache.hadoop.io.MapWritable -->
  22729. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  22730. abstract="false"
  22731. static="false" final="false" visibility="public"
  22732. deprecated="not deprecated">
  22733. <implements name="java.util.Map"/>
  22734. <constructor name="MapWritable"
  22735. static="false" final="false" visibility="public"
  22736. deprecated="not deprecated">
  22737. <doc>
  22738. <![CDATA[Default constructor.]]>
  22739. </doc>
  22740. </constructor>
  22741. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  22742. static="false" final="false" visibility="public"
  22743. deprecated="not deprecated">
  22744. <doc>
  22745. <![CDATA[Copy constructor.
  22746. @param other the map to copy from]]>
  22747. </doc>
  22748. </constructor>
  22749. <method name="clear"
  22750. abstract="false" native="false" synchronized="false"
  22751. static="false" final="false" visibility="public"
  22752. deprecated="not deprecated">
  22753. </method>
  22754. <method name="containsKey" return="boolean"
  22755. abstract="false" native="false" synchronized="false"
  22756. static="false" final="false" visibility="public"
  22757. deprecated="not deprecated">
  22758. <param name="key" type="java.lang.Object"/>
  22759. </method>
  22760. <method name="containsValue" return="boolean"
  22761. abstract="false" native="false" synchronized="false"
  22762. static="false" final="false" visibility="public"
  22763. deprecated="not deprecated">
  22764. <param name="value" type="java.lang.Object"/>
  22765. </method>
  22766. <method name="entrySet" return="java.util.Set"
  22767. abstract="false" native="false" synchronized="false"
  22768. static="false" final="false" visibility="public"
  22769. deprecated="not deprecated">
  22770. </method>
  22771. <method name="equals" return="boolean"
  22772. abstract="false" native="false" synchronized="false"
  22773. static="false" final="false" visibility="public"
  22774. deprecated="not deprecated">
  22775. <param name="obj" type="java.lang.Object"/>
  22776. </method>
  22777. <method name="get" return="org.apache.hadoop.io.Writable"
  22778. abstract="false" native="false" synchronized="false"
  22779. static="false" final="false" visibility="public"
  22780. deprecated="not deprecated">
  22781. <param name="key" type="java.lang.Object"/>
  22782. </method>
  22783. <method name="hashCode" return="int"
  22784. abstract="false" native="false" synchronized="false"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="not deprecated">
  22787. </method>
  22788. <method name="isEmpty" return="boolean"
  22789. abstract="false" native="false" synchronized="false"
  22790. static="false" final="false" visibility="public"
  22791. deprecated="not deprecated">
  22792. </method>
  22793. <method name="keySet" return="java.util.Set"
  22794. abstract="false" native="false" synchronized="false"
  22795. static="false" final="false" visibility="public"
  22796. deprecated="not deprecated">
  22797. </method>
  22798. <method name="put" return="org.apache.hadoop.io.Writable"
  22799. abstract="false" native="false" synchronized="false"
  22800. static="false" final="false" visibility="public"
  22801. deprecated="not deprecated">
  22802. <param name="key" type="org.apache.hadoop.io.Writable"/>
  22803. <param name="value" type="org.apache.hadoop.io.Writable"/>
  22804. </method>
  22805. <method name="putAll"
  22806. abstract="false" native="false" synchronized="false"
  22807. static="false" final="false" visibility="public"
  22808. deprecated="not deprecated">
  22809. <param name="t" type="java.util.Map"/>
  22810. </method>
  22811. <method name="remove" return="org.apache.hadoop.io.Writable"
  22812. abstract="false" native="false" synchronized="false"
  22813. static="false" final="false" visibility="public"
  22814. deprecated="not deprecated">
  22815. <param name="key" type="java.lang.Object"/>
  22816. </method>
  22817. <method name="size" return="int"
  22818. abstract="false" native="false" synchronized="false"
  22819. static="false" final="false" visibility="public"
  22820. deprecated="not deprecated">
  22821. </method>
  22822. <method name="values" return="java.util.Collection"
  22823. abstract="false" native="false" synchronized="false"
  22824. static="false" final="false" visibility="public"
  22825. deprecated="not deprecated">
  22826. </method>
  22827. <method name="write"
  22828. abstract="false" native="false" synchronized="false"
  22829. static="false" final="false" visibility="public"
  22830. deprecated="not deprecated">
  22831. <param name="out" type="java.io.DataOutput"/>
  22832. <exception name="IOException" type="java.io.IOException"/>
  22833. </method>
  22834. <method name="readFields"
  22835. abstract="false" native="false" synchronized="false"
  22836. static="false" final="false" visibility="public"
  22837. deprecated="not deprecated">
  22838. <param name="in" type="java.io.DataInput"/>
  22839. <exception name="IOException" type="java.io.IOException"/>
  22840. </method>
  22841. <method name="toString" return="java.lang.String"
  22842. abstract="false" native="false" synchronized="false"
  22843. static="false" final="false" visibility="public"
  22844. deprecated="not deprecated">
  22845. </method>
  22846. <doc>
  22847. <![CDATA[A Writable Map.]]>
  22848. </doc>
  22849. </class>
  22850. <!-- end class org.apache.hadoop.io.MapWritable -->
  22851. <!-- start class org.apache.hadoop.io.MD5Hash -->
  22852. <class name="MD5Hash" extends="java.lang.Object"
  22853. abstract="false"
  22854. static="false" final="false" visibility="public"
  22855. deprecated="not deprecated">
  22856. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22857. <constructor name="MD5Hash"
  22858. static="false" final="false" visibility="public"
  22859. deprecated="not deprecated">
  22860. <doc>
  22861. <![CDATA[Constructs an MD5Hash.]]>
  22862. </doc>
  22863. </constructor>
  22864. <constructor name="MD5Hash" type="java.lang.String"
  22865. static="false" final="false" visibility="public"
  22866. deprecated="not deprecated">
  22867. <doc>
  22868. <![CDATA[Constructs an MD5Hash from a hex string.
  22869. @param hex input hex.]]>
  22870. </doc>
  22871. </constructor>
  22872. <constructor name="MD5Hash" type="byte[]"
  22873. static="false" final="false" visibility="public"
  22874. deprecated="not deprecated">
  22875. <doc>
  22876. <![CDATA[Constructs an MD5Hash with a specified value.
  22877. @param digest digest.]]>
  22878. </doc>
  22879. </constructor>
  22880. <method name="readFields"
  22881. abstract="false" native="false" synchronized="false"
  22882. static="false" final="false" visibility="public"
  22883. deprecated="not deprecated">
  22884. <param name="in" type="java.io.DataInput"/>
  22885. <exception name="IOException" type="java.io.IOException"/>
  22886. </method>
  22887. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  22888. abstract="false" native="false" synchronized="false"
  22889. static="true" final="false" visibility="public"
  22890. deprecated="not deprecated">
  22891. <param name="in" type="java.io.DataInput"/>
  22892. <exception name="IOException" type="java.io.IOException"/>
  22893. <doc>
  22894. <![CDATA[Constructs, reads and returns an instance.
  22895. @param in in.
  22896. @throws IOException raised on errors performing I/O.
  22897. @return MD5Hash.]]>
  22898. </doc>
  22899. </method>
  22900. <method name="write"
  22901. abstract="false" native="false" synchronized="false"
  22902. static="false" final="false" visibility="public"
  22903. deprecated="not deprecated">
  22904. <param name="out" type="java.io.DataOutput"/>
  22905. <exception name="IOException" type="java.io.IOException"/>
  22906. </method>
  22907. <method name="set"
  22908. abstract="false" native="false" synchronized="false"
  22909. static="false" final="false" visibility="public"
  22910. deprecated="not deprecated">
  22911. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  22912. <doc>
  22913. <![CDATA[Copy the contents of another instance into this instance.
  22914. @param that that.]]>
  22915. </doc>
  22916. </method>
  22917. <method name="getDigest" return="byte[]"
  22918. abstract="false" native="false" synchronized="false"
  22919. static="false" final="false" visibility="public"
  22920. deprecated="not deprecated">
  22921. <doc>
  22922. <![CDATA[Returns the digest bytes.
  22923. @return digest.]]>
  22924. </doc>
  22925. </method>
  22926. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22927. abstract="false" native="false" synchronized="false"
  22928. static="true" final="false" visibility="public"
  22929. deprecated="not deprecated">
  22930. <param name="data" type="byte[]"/>
  22931. <doc>
  22932. <![CDATA[Construct a hash value for a byte array.
  22933. @param data data.
  22934. @return MD5Hash.]]>
  22935. </doc>
  22936. </method>
  22937. <method name="getDigester" return="java.security.MessageDigest"
  22938. abstract="false" native="false" synchronized="false"
  22939. static="true" final="false" visibility="public"
  22940. deprecated="not deprecated">
  22941. <doc>
  22942. <![CDATA[Create a thread local MD5 digester.
  22943. @return MessageDigest.]]>
  22944. </doc>
  22945. </method>
  22946. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22947. abstract="false" native="false" synchronized="false"
  22948. static="true" final="false" visibility="public"
  22949. deprecated="not deprecated">
  22950. <param name="in" type="java.io.InputStream"/>
  22951. <exception name="IOException" type="java.io.IOException"/>
  22952. <doc>
  22953. <![CDATA[Construct a hash value for the content from the InputStream.
  22954. @param in input stream.
  22955. @return MD5Hash.
  22956. @throws IOException raised on errors performing I/O.]]>
  22957. </doc>
  22958. </method>
  22959. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22960. abstract="false" native="false" synchronized="false"
  22961. static="true" final="false" visibility="public"
  22962. deprecated="not deprecated">
  22963. <param name="data" type="byte[]"/>
  22964. <param name="start" type="int"/>
  22965. <param name="len" type="int"/>
  22966. <doc>
  22967. <![CDATA[Construct a hash value for a byte array.
  22968. @param data data.
  22969. @param start start.
  22970. @param len len.
  22971. @return MD5Hash.]]>
  22972. </doc>
  22973. </method>
  22974. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22975. abstract="false" native="false" synchronized="false"
  22976. static="true" final="false" visibility="public"
  22977. deprecated="not deprecated">
  22978. <param name="dataArr" type="byte[][]"/>
  22979. <param name="start" type="int"/>
  22980. <param name="len" type="int"/>
  22981. <doc>
  22982. <![CDATA[Construct a hash value for an array of byte array.
  22983. @param dataArr dataArr.
  22984. @param start start.
  22985. @param len len.
  22986. @return MD5Hash.]]>
  22987. </doc>
  22988. </method>
  22989. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22990. abstract="false" native="false" synchronized="false"
  22991. static="true" final="false" visibility="public"
  22992. deprecated="not deprecated">
  22993. <param name="string" type="java.lang.String"/>
  22994. <doc>
  22995. <![CDATA[Construct a hash value for a String.
  22996. @param string string.
  22997. @return MD5Hash.]]>
  22998. </doc>
  22999. </method>
  23000. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23001. abstract="false" native="false" synchronized="false"
  23002. static="true" final="false" visibility="public"
  23003. deprecated="not deprecated">
  23004. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  23005. <doc>
  23006. <![CDATA[Construct a hash value for a String.
  23007. @param utf8 utf8.
  23008. @return MD5Hash.]]>
  23009. </doc>
  23010. </method>
  23011. <method name="halfDigest" return="long"
  23012. abstract="false" native="false" synchronized="false"
  23013. static="false" final="false" visibility="public"
  23014. deprecated="not deprecated">
  23015. <doc>
  23016. <![CDATA[Construct a half-sized version of this MD5. Fits in a long.
  23017. @return halfDigest.]]>
  23018. </doc>
  23019. </method>
  23020. <method name="quarterDigest" return="int"
  23021. abstract="false" native="false" synchronized="false"
  23022. static="false" final="false" visibility="public"
  23023. deprecated="not deprecated">
  23024. <doc>
  23025. <![CDATA[Return a 32-bit digest of the MD5.
  23026. @return the first 4 bytes of the md5]]>
  23027. </doc>
  23028. </method>
  23029. <method name="equals" return="boolean"
  23030. abstract="false" native="false" synchronized="false"
  23031. static="false" final="false" visibility="public"
  23032. deprecated="not deprecated">
  23033. <param name="o" type="java.lang.Object"/>
  23034. <doc>
  23035. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  23036. same values.]]>
  23037. </doc>
  23038. </method>
  23039. <method name="hashCode" return="int"
  23040. abstract="false" native="false" synchronized="false"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. <doc>
  23044. <![CDATA[Returns a hash code value for this object.
  23045. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  23046. </doc>
  23047. </method>
  23048. <method name="compareTo" return="int"
  23049. abstract="false" native="false" synchronized="false"
  23050. static="false" final="false" visibility="public"
  23051. deprecated="not deprecated">
  23052. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  23053. <doc>
  23054. <![CDATA[Compares this object with the specified object for order.]]>
  23055. </doc>
  23056. </method>
  23057. <method name="toString" return="java.lang.String"
  23058. abstract="false" native="false" synchronized="false"
  23059. static="false" final="false" visibility="public"
  23060. deprecated="not deprecated">
  23061. <doc>
  23062. <![CDATA[Returns a string representation of this object.]]>
  23063. </doc>
  23064. </method>
  23065. <method name="setDigest"
  23066. abstract="false" native="false" synchronized="false"
  23067. static="false" final="false" visibility="public"
  23068. deprecated="not deprecated">
  23069. <param name="hex" type="java.lang.String"/>
  23070. <doc>
  23071. <![CDATA[Sets the digest value from a hex string.
  23072. @param hex hex.]]>
  23073. </doc>
  23074. </method>
  23075. <field name="MD5_LEN" type="int"
  23076. transient="false" volatile="false"
  23077. static="true" final="true" visibility="public"
  23078. deprecated="not deprecated">
  23079. </field>
  23080. <doc>
  23081. <![CDATA[A Writable for MD5 hash values.]]>
  23082. </doc>
  23083. </class>
  23084. <!-- end class org.apache.hadoop.io.MD5Hash -->
  23085. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  23086. <class name="MultipleIOException" extends="java.io.IOException"
  23087. abstract="false"
  23088. static="false" final="false" visibility="public"
  23089. deprecated="not deprecated">
  23090. <method name="getExceptions" return="java.util.List"
  23091. abstract="false" native="false" synchronized="false"
  23092. static="false" final="false" visibility="public"
  23093. deprecated="not deprecated">
  23094. <doc>
  23095. <![CDATA[@return the underlying exceptions]]>
  23096. </doc>
  23097. </method>
  23098. <method name="createIOException" return="java.io.IOException"
  23099. abstract="false" native="false" synchronized="false"
  23100. static="true" final="false" visibility="public"
  23101. deprecated="not deprecated">
  23102. <param name="exceptions" type="java.util.List"/>
  23103. <doc>
  23104. <![CDATA[A convenient method to create an {@link IOException}.
  23105. @param exceptions IOException List.
  23106. @return IOException.]]>
  23107. </doc>
  23108. </method>
  23109. <doc>
  23110. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  23111. </doc>
  23112. </class>
  23113. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  23114. <!-- start class org.apache.hadoop.io.NullWritable -->
  23115. <class name="NullWritable" extends="java.lang.Object"
  23116. abstract="false"
  23117. static="false" final="false" visibility="public"
  23118. deprecated="not deprecated">
  23119. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23120. <method name="get" return="org.apache.hadoop.io.NullWritable"
  23121. abstract="false" native="false" synchronized="false"
  23122. static="true" final="false" visibility="public"
  23123. deprecated="not deprecated">
  23124. <doc>
  23125. <![CDATA[Returns the single instance of this class.
  23126. @return the single instance of this class.]]>
  23127. </doc>
  23128. </method>
  23129. <method name="toString" return="java.lang.String"
  23130. abstract="false" native="false" synchronized="false"
  23131. static="false" final="false" visibility="public"
  23132. deprecated="not deprecated">
  23133. </method>
  23134. <method name="hashCode" return="int"
  23135. abstract="false" native="false" synchronized="false"
  23136. static="false" final="false" visibility="public"
  23137. deprecated="not deprecated">
  23138. </method>
  23139. <method name="compareTo" return="int"
  23140. abstract="false" native="false" synchronized="false"
  23141. static="false" final="false" visibility="public"
  23142. deprecated="not deprecated">
  23143. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  23144. </method>
  23145. <method name="equals" return="boolean"
  23146. abstract="false" native="false" synchronized="false"
  23147. static="false" final="false" visibility="public"
  23148. deprecated="not deprecated">
  23149. <param name="other" type="java.lang.Object"/>
  23150. </method>
  23151. <method name="readFields"
  23152. abstract="false" native="false" synchronized="false"
  23153. static="false" final="false" visibility="public"
  23154. deprecated="not deprecated">
  23155. <param name="in" type="java.io.DataInput"/>
  23156. <exception name="IOException" type="java.io.IOException"/>
  23157. </method>
  23158. <method name="write"
  23159. abstract="false" native="false" synchronized="false"
  23160. static="false" final="false" visibility="public"
  23161. deprecated="not deprecated">
  23162. <param name="out" type="java.io.DataOutput"/>
  23163. <exception name="IOException" type="java.io.IOException"/>
  23164. </method>
  23165. <doc>
  23166. <![CDATA[Singleton Writable with no data.]]>
  23167. </doc>
  23168. </class>
  23169. <!-- end class org.apache.hadoop.io.NullWritable -->
  23170. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  23171. <class name="ObjectWritable" extends="java.lang.Object"
  23172. abstract="false"
  23173. static="false" final="false" visibility="public"
  23174. deprecated="not deprecated">
  23175. <implements name="org.apache.hadoop.io.Writable"/>
  23176. <implements name="org.apache.hadoop.conf.Configurable"/>
  23177. <constructor name="ObjectWritable"
  23178. static="false" final="false" visibility="public"
  23179. deprecated="not deprecated">
  23180. </constructor>
  23181. <constructor name="ObjectWritable" type="java.lang.Object"
  23182. static="false" final="false" visibility="public"
  23183. deprecated="not deprecated">
  23184. </constructor>
  23185. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  23186. static="false" final="false" visibility="public"
  23187. deprecated="not deprecated">
  23188. </constructor>
  23189. <method name="get" return="java.lang.Object"
  23190. abstract="false" native="false" synchronized="false"
  23191. static="false" final="false" visibility="public"
  23192. deprecated="not deprecated">
  23193. <doc>
  23194. <![CDATA[Return the instance, or null if none.
  23195. @return the instance, or null if none.]]>
  23196. </doc>
  23197. </method>
  23198. <method name="getDeclaredClass" return="java.lang.Class"
  23199. abstract="false" native="false" synchronized="false"
  23200. static="false" final="false" visibility="public"
  23201. deprecated="not deprecated">
  23202. <doc>
  23203. <![CDATA[Return the class this is meant to be.
  23204. @return the class this is meant to be.]]>
  23205. </doc>
  23206. </method>
  23207. <method name="set"
  23208. abstract="false" native="false" synchronized="false"
  23209. static="false" final="false" visibility="public"
  23210. deprecated="not deprecated">
  23211. <param name="instance" type="java.lang.Object"/>
  23212. <doc>
  23213. <![CDATA[Reset the instance.
  23214. @param instance instance.]]>
  23215. </doc>
  23216. </method>
  23217. <method name="toString" return="java.lang.String"
  23218. abstract="false" native="false" synchronized="false"
  23219. static="false" final="false" visibility="public"
  23220. deprecated="not deprecated">
  23221. </method>
  23222. <method name="readFields"
  23223. abstract="false" native="false" synchronized="false"
  23224. static="false" final="false" visibility="public"
  23225. deprecated="not deprecated">
  23226. <param name="in" type="java.io.DataInput"/>
  23227. <exception name="IOException" type="java.io.IOException"/>
  23228. </method>
  23229. <method name="write"
  23230. abstract="false" native="false" synchronized="false"
  23231. static="false" final="false" visibility="public"
  23232. deprecated="not deprecated">
  23233. <param name="out" type="java.io.DataOutput"/>
  23234. <exception name="IOException" type="java.io.IOException"/>
  23235. </method>
  23236. <method name="writeObject"
  23237. abstract="false" native="false" synchronized="false"
  23238. static="true" final="false" visibility="public"
  23239. deprecated="not deprecated">
  23240. <param name="out" type="java.io.DataOutput"/>
  23241. <param name="instance" type="java.lang.Object"/>
  23242. <param name="declaredClass" type="java.lang.Class"/>
  23243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23244. <exception name="IOException" type="java.io.IOException"/>
  23245. <doc>
  23246. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  23247. the preceding.
  23248. @param out DataOutput.
  23249. @param instance instance.
  23250. @param conf Configuration.
  23251. @param declaredClass declaredClass.
  23252. @throws IOException raised on errors performing I/O.]]>
  23253. </doc>
  23254. </method>
  23255. <method name="writeObject"
  23256. abstract="false" native="false" synchronized="false"
  23257. static="true" final="false" visibility="public"
  23258. deprecated="not deprecated">
  23259. <param name="out" type="java.io.DataOutput"/>
  23260. <param name="instance" type="java.lang.Object"/>
  23261. <param name="declaredClass" type="java.lang.Class"/>
  23262. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23263. <param name="allowCompactArrays" type="boolean"/>
  23264. <exception name="IOException" type="java.io.IOException"/>
  23265. <doc>
  23266. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  23267. the preceding.
  23268. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  23269. usages. Set false for inter-cluster, File, and other persisted output
  23270. usages, to preserve the ability to interchange files with other clusters
  23271. that may not be running the same version of software. Sometime in ~2013
  23272. we can consider removing this parameter and always using the compact format.
  23273. @param conf configuration.
  23274. @param out dataoutput.
  23275. @param declaredClass declaredClass.
  23276. @param instance instance.
  23277. @throws IOException raised on errors performing I/O.]]>
  23278. </doc>
  23279. </method>
  23280. <method name="readObject" return="java.lang.Object"
  23281. abstract="false" native="false" synchronized="false"
  23282. static="true" final="false" visibility="public"
  23283. deprecated="not deprecated">
  23284. <param name="in" type="java.io.DataInput"/>
  23285. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23286. <exception name="IOException" type="java.io.IOException"/>
  23287. <doc>
  23288. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  23289. the preceding.
  23290. @param conf configuration.
  23291. @param in DataInput.
  23292. @return Object.
  23293. @throws IOException raised on errors performing I/O.]]>
  23294. </doc>
  23295. </method>
  23296. <method name="readObject" return="java.lang.Object"
  23297. abstract="false" native="false" synchronized="false"
  23298. static="true" final="false" visibility="public"
  23299. deprecated="not deprecated">
  23300. <param name="in" type="java.io.DataInput"/>
  23301. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  23302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23303. <exception name="IOException" type="java.io.IOException"/>
  23304. <doc>
  23305. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  23306. the preceding.
  23307. @param in DataInput.
  23308. @param objectWritable objectWritable.
  23309. @param conf configuration.
  23310. @return Object.
  23311. @throws IOException raised on errors performing I/O.]]>
  23312. </doc>
  23313. </method>
  23314. <method name="loadClass" return="java.lang.Class"
  23315. abstract="false" native="false" synchronized="false"
  23316. static="true" final="false" visibility="public"
  23317. deprecated="not deprecated">
  23318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23319. <param name="className" type="java.lang.String"/>
  23320. <doc>
  23321. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  23322. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  23323. try load it directly.
  23324. @param conf configuration.
  23325. @param className classname.
  23326. @return Class.]]>
  23327. </doc>
  23328. </method>
  23329. <method name="setConf"
  23330. abstract="false" native="false" synchronized="false"
  23331. static="false" final="false" visibility="public"
  23332. deprecated="not deprecated">
  23333. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23334. </method>
  23335. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23336. abstract="false" native="false" synchronized="false"
  23337. static="false" final="false" visibility="public"
  23338. deprecated="not deprecated">
  23339. </method>
  23340. <doc>
  23341. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  23342. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  23343. </doc>
  23344. </class>
  23345. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  23346. <!-- start interface org.apache.hadoop.io.RawComparator -->
  23347. <interface name="RawComparator" abstract="true"
  23348. static="false" final="false" visibility="public"
  23349. deprecated="not deprecated">
  23350. <implements name="java.util.Comparator"/>
  23351. <method name="compare" return="int"
  23352. abstract="true" native="false" synchronized="false"
  23353. static="false" final="false" visibility="public"
  23354. deprecated="not deprecated">
  23355. <param name="b1" type="byte[]"/>
  23356. <param name="s1" type="int"/>
  23357. <param name="l1" type="int"/>
  23358. <param name="b2" type="byte[]"/>
  23359. <param name="s2" type="int"/>
  23360. <param name="l2" type="int"/>
  23361. <doc>
  23362. <![CDATA[Compare two objects in binary.
  23363. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  23364. @param b1 The first byte array.
  23365. @param s1 The position index in b1. The object under comparison's starting index.
  23366. @param l1 The length of the object in b1.
  23367. @param b2 The second byte array.
  23368. @param s2 The position index in b2. The object under comparison's starting index.
  23369. @param l2 The length of the object under comparison in b2.
  23370. @return An integer result of the comparison.]]>
  23371. </doc>
  23372. </method>
  23373. <doc>
  23374. <![CDATA[<p>
  23375. A {@link Comparator} that operates directly on byte representations of
  23376. objects.
  23377. </p>
  23378. @param <T> generic type.
  23379. @see DeserializerComparator]]>
  23380. </doc>
  23381. </interface>
  23382. <!-- end interface org.apache.hadoop.io.RawComparator -->
  23383. <!-- start class org.apache.hadoop.io.SequenceFile -->
  23384. <class name="SequenceFile" extends="java.lang.Object"
  23385. abstract="false"
  23386. static="false" final="false" visibility="public"
  23387. deprecated="not deprecated">
  23388. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  23389. abstract="false" native="false" synchronized="false"
  23390. static="true" final="false" visibility="public"
  23391. deprecated="not deprecated">
  23392. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  23393. <doc>
  23394. <![CDATA[Get the compression type for the reduce outputs
  23395. @param job the job config to look in
  23396. @return the kind of compression to use]]>
  23397. </doc>
  23398. </method>
  23399. <method name="setDefaultCompressionType"
  23400. abstract="false" native="false" synchronized="false"
  23401. static="true" final="false" visibility="public"
  23402. deprecated="not deprecated">
  23403. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  23404. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23405. <doc>
  23406. <![CDATA[Set the default compression type for sequence files.
  23407. @param job the configuration to modify
  23408. @param val the new compression type (none, block, record)]]>
  23409. </doc>
  23410. </method>
  23411. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23412. abstract="false" native="false" synchronized="false"
  23413. static="true" final="false" visibility="public"
  23414. deprecated="not deprecated">
  23415. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23416. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  23417. <exception name="IOException" type="java.io.IOException"/>
  23418. <doc>
  23419. <![CDATA[Create a new Writer with the given options.
  23420. @param conf the configuration to use
  23421. @param opts the options to create the file with
  23422. @return a new Writer
  23423. @throws IOException raised on errors performing I/O.]]>
  23424. </doc>
  23425. </method>
  23426. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23427. abstract="false" native="false" synchronized="false"
  23428. static="true" final="false" visibility="public"
  23429. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23430. instead.">
  23431. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23432. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23433. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23434. <param name="keyClass" type="java.lang.Class"/>
  23435. <param name="valClass" type="java.lang.Class"/>
  23436. <exception name="IOException" type="java.io.IOException"/>
  23437. <doc>
  23438. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23439. @param fs The configured filesystem.
  23440. @param conf The configuration.
  23441. @param name The name of the file.
  23442. @param keyClass The 'key' type.
  23443. @param valClass The 'value' type.
  23444. @return Returns the handle to the constructed SequenceFile Writer.
  23445. @throws IOException raised on errors performing I/O.
  23446. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23447. instead.]]>
  23448. </doc>
  23449. </method>
  23450. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23451. abstract="false" native="false" synchronized="false"
  23452. static="true" final="false" visibility="public"
  23453. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23454. instead.">
  23455. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23456. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23457. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23458. <param name="keyClass" type="java.lang.Class"/>
  23459. <param name="valClass" type="java.lang.Class"/>
  23460. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23461. <exception name="IOException" type="java.io.IOException"/>
  23462. <doc>
  23463. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23464. @param fs The configured filesystem.
  23465. @param conf The configuration.
  23466. @param name The name of the file.
  23467. @param keyClass The 'key' type.
  23468. @param valClass The 'value' type.
  23469. @param compressionType The compression type.
  23470. @return Returns the handle to the constructed SequenceFile Writer.
  23471. @throws IOException raised on errors performing I/O.
  23472. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23473. instead.]]>
  23474. </doc>
  23475. </method>
  23476. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23477. abstract="false" native="false" synchronized="false"
  23478. static="true" final="false" visibility="public"
  23479. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23480. instead.">
  23481. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23482. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23483. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23484. <param name="keyClass" type="java.lang.Class"/>
  23485. <param name="valClass" type="java.lang.Class"/>
  23486. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23487. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23488. <exception name="IOException" type="java.io.IOException"/>
  23489. <doc>
  23490. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23491. @param fs The configured filesystem.
  23492. @param conf The configuration.
  23493. @param name The name of the file.
  23494. @param keyClass The 'key' type.
  23495. @param valClass The 'value' type.
  23496. @param compressionType The compression type.
  23497. @param progress The Progressable object to track progress.
  23498. @return Returns the handle to the constructed SequenceFile Writer.
  23499. @throws IOException raised on errors performing I/O.
  23500. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23501. instead.]]>
  23502. </doc>
  23503. </method>
  23504. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23505. abstract="false" native="false" synchronized="false"
  23506. static="true" final="false" visibility="public"
  23507. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23508. instead.">
  23509. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23510. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23511. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23512. <param name="keyClass" type="java.lang.Class"/>
  23513. <param name="valClass" type="java.lang.Class"/>
  23514. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23515. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23516. <exception name="IOException" type="java.io.IOException"/>
  23517. <doc>
  23518. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23519. @param fs The configured filesystem.
  23520. @param conf The configuration.
  23521. @param name The name of the file.
  23522. @param keyClass The 'key' type.
  23523. @param valClass The 'value' type.
  23524. @param compressionType The compression type.
  23525. @param codec The compression codec.
  23526. @return Returns the handle to the constructed SequenceFile Writer.
  23527. @throws IOException raised on errors performing I/O.
  23528. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23529. instead.]]>
  23530. </doc>
  23531. </method>
  23532. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23533. abstract="false" native="false" synchronized="false"
  23534. static="true" final="false" visibility="public"
  23535. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23536. instead.">
  23537. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23539. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23540. <param name="keyClass" type="java.lang.Class"/>
  23541. <param name="valClass" type="java.lang.Class"/>
  23542. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23543. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23544. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23545. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23546. <exception name="IOException" type="java.io.IOException"/>
  23547. <doc>
  23548. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23549. @param fs The configured filesystem.
  23550. @param conf The configuration.
  23551. @param name The name of the file.
  23552. @param keyClass The 'key' type.
  23553. @param valClass The 'value' type.
  23554. @param compressionType The compression type.
  23555. @param codec The compression codec.
  23556. @param progress The Progressable object to track progress.
  23557. @param metadata The metadata of the file.
  23558. @return Returns the handle to the constructed SequenceFile Writer.
  23559. @throws IOException raised on errors performing I/O.
  23560. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23561. instead.]]>
  23562. </doc>
  23563. </method>
  23564. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23565. abstract="false" native="false" synchronized="false"
  23566. static="true" final="false" visibility="public"
  23567. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23568. instead.">
  23569. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23571. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23572. <param name="keyClass" type="java.lang.Class"/>
  23573. <param name="valClass" type="java.lang.Class"/>
  23574. <param name="bufferSize" type="int"/>
  23575. <param name="replication" type="short"/>
  23576. <param name="blockSize" type="long"/>
  23577. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23578. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23579. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23580. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23581. <exception name="IOException" type="java.io.IOException"/>
  23582. <doc>
  23583. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23584. @param fs The configured filesystem.
  23585. @param conf The configuration.
  23586. @param name The name of the file.
  23587. @param keyClass The 'key' type.
  23588. @param valClass The 'value' type.
  23589. @param bufferSize buffer size for the underlaying outputstream.
  23590. @param replication replication factor for the file.
  23591. @param blockSize block size for the file.
  23592. @param compressionType The compression type.
  23593. @param codec The compression codec.
  23594. @param progress The Progressable object to track progress.
  23595. @param metadata The metadata of the file.
  23596. @return Returns the handle to the constructed SequenceFile Writer.
  23597. @throws IOException raised on errors performing I/O.
  23598. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23599. instead.]]>
  23600. </doc>
  23601. </method>
  23602. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23603. abstract="false" native="false" synchronized="false"
  23604. static="true" final="false" visibility="public"
  23605. deprecated="not deprecated">
  23606. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23608. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23609. <param name="keyClass" type="java.lang.Class"/>
  23610. <param name="valClass" type="java.lang.Class"/>
  23611. <param name="bufferSize" type="int"/>
  23612. <param name="replication" type="short"/>
  23613. <param name="blockSize" type="long"/>
  23614. <param name="createParent" type="boolean"/>
  23615. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23616. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23617. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23618. <exception name="IOException" type="java.io.IOException"/>
  23619. <doc>
  23620. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23621. @param fs The configured filesystem.
  23622. @param conf The configuration.
  23623. @param name The name of the file.
  23624. @param keyClass The 'key' type.
  23625. @param valClass The 'value' type.
  23626. @param bufferSize buffer size for the underlaying outputstream.
  23627. @param replication replication factor for the file.
  23628. @param blockSize block size for the file.
  23629. @param createParent create parent directory if non-existent
  23630. @param compressionType The compression type.
  23631. @param codec The compression codec.
  23632. @param metadata The metadata of the file.
  23633. @return Returns the handle to the constructed SequenceFile Writer.
  23634. @throws IOException raised on errors performing I/O.]]>
  23635. </doc>
  23636. </method>
  23637. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23638. abstract="false" native="false" synchronized="false"
  23639. static="true" final="false" visibility="public"
  23640. deprecated="not deprecated">
  23641. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  23642. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23643. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23644. <param name="keyClass" type="java.lang.Class"/>
  23645. <param name="valClass" type="java.lang.Class"/>
  23646. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23647. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23648. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23649. <param name="createFlag" type="java.util.EnumSet"/>
  23650. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  23651. <exception name="IOException" type="java.io.IOException"/>
  23652. <doc>
  23653. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23654. @param fc The context for the specified file.
  23655. @param conf The configuration.
  23656. @param name The name of the file.
  23657. @param keyClass The 'key' type.
  23658. @param valClass The 'value' type.
  23659. @param compressionType The compression type.
  23660. @param codec The compression codec.
  23661. @param metadata The metadata of the file.
  23662. @param createFlag gives the semantics of create: overwrite, append etc.
  23663. @param opts file creation options; see {@link CreateOpts}.
  23664. @return Returns the handle to the constructed SequenceFile Writer.
  23665. @throws IOException raised on errors performing I/O.]]>
  23666. </doc>
  23667. </method>
  23668. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23669. abstract="false" native="false" synchronized="false"
  23670. static="true" final="false" visibility="public"
  23671. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23672. instead.">
  23673. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23674. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23675. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23676. <param name="keyClass" type="java.lang.Class"/>
  23677. <param name="valClass" type="java.lang.Class"/>
  23678. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23679. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23680. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23681. <exception name="IOException" type="java.io.IOException"/>
  23682. <doc>
  23683. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23684. @param fs The configured filesystem.
  23685. @param conf The configuration.
  23686. @param name The name of the file.
  23687. @param keyClass The 'key' type.
  23688. @param valClass The 'value' type.
  23689. @param compressionType The compression type.
  23690. @param codec The compression codec.
  23691. @param progress The Progressable object to track progress.
  23692. @return Returns the handle to the constructed SequenceFile Writer.
  23693. @throws IOException raised on errors performing I/O.
  23694. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23695. instead.]]>
  23696. </doc>
  23697. </method>
  23698. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23699. abstract="false" native="false" synchronized="false"
  23700. static="true" final="false" visibility="public"
  23701. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23702. instead.">
  23703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23704. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  23705. <param name="keyClass" type="java.lang.Class"/>
  23706. <param name="valClass" type="java.lang.Class"/>
  23707. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23708. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23709. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23710. <exception name="IOException" type="java.io.IOException"/>
  23711. <doc>
  23712. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  23713. @param conf The configuration.
  23714. @param out The stream on top which the writer is to be constructed.
  23715. @param keyClass The 'key' type.
  23716. @param valClass The 'value' type.
  23717. @param compressionType The compression type.
  23718. @param codec The compression codec.
  23719. @param metadata The metadata of the file.
  23720. @return Returns the handle to the constructed SequenceFile Writer.
  23721. @throws IOException raised on errors performing I/O.
  23722. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23723. instead.]]>
  23724. </doc>
  23725. </method>
  23726. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23727. abstract="false" native="false" synchronized="false"
  23728. static="true" final="false" visibility="public"
  23729. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23730. instead.">
  23731. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23732. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  23733. <param name="keyClass" type="java.lang.Class"/>
  23734. <param name="valClass" type="java.lang.Class"/>
  23735. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23736. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23737. <exception name="IOException" type="java.io.IOException"/>
  23738. <doc>
  23739. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  23740. @param conf The configuration.
  23741. @param out The stream on top which the writer is to be constructed.
  23742. @param keyClass The 'key' type.
  23743. @param valClass The 'value' type.
  23744. @param compressionType The compression type.
  23745. @param codec The compression codec.
  23746. @return Returns the handle to the constructed SequenceFile Writer.
  23747. @throws IOException raised on errors performing I/O.
  23748. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23749. instead.]]>
  23750. </doc>
  23751. </method>
  23752. <field name="SYNC_INTERVAL" type="int"
  23753. transient="false" volatile="false"
  23754. static="true" final="true" visibility="public"
  23755. deprecated="not deprecated">
  23756. <doc>
  23757. <![CDATA[The number of bytes between sync points. 100 KB, default.
  23758. Computed as 5 KB * 20 = 100 KB]]>
  23759. </doc>
  23760. </field>
  23761. <doc>
  23762. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  23763. pairs.
  23764. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  23765. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  23766. reading and sorting respectively.</p>
  23767. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  23768. {@link CompressionType} used to compress key/value pairs:
  23769. <ol>
  23770. <li>
  23771. <code>Writer</code> : Uncompressed records.
  23772. </li>
  23773. <li>
  23774. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  23775. values.
  23776. </li>
  23777. <li>
  23778. <code>BlockCompressWriter</code> : Block-compressed files, both keys &amp;
  23779. values are collected in 'blocks'
  23780. separately and compressed. The size of
  23781. the 'block' is configurable.
  23782. </ol>
  23783. <p>The actual compression algorithm used to compress key and/or values can be
  23784. specified by using the appropriate {@link CompressionCodec}.</p>
  23785. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  23786. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  23787. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  23788. above <code>SequenceFile</code> formats.</p>
  23789. <h3 id="Formats">SequenceFile Formats</h3>
  23790. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  23791. depending on the <code>CompressionType</code> specified. All of them share a
  23792. <a href="#Header">common header</a> described below.
  23793. <h4 id="Header">SequenceFile Header</h4>
  23794. <ul>
  23795. <li>
  23796. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  23797. version number (e.g. SEQ4 or SEQ6)
  23798. </li>
  23799. <li>
  23800. keyClassName -key class
  23801. </li>
  23802. <li>
  23803. valueClassName - value class
  23804. </li>
  23805. <li>
  23806. compression - A boolean which specifies if compression is turned on for
  23807. keys/values in this file.
  23808. </li>
  23809. <li>
  23810. blockCompression - A boolean which specifies if block-compression is
  23811. turned on for keys/values in this file.
  23812. </li>
  23813. <li>
  23814. compression codec - <code>CompressionCodec</code> class which is used for
  23815. compression of keys and/or values (if compression is
  23816. enabled).
  23817. </li>
  23818. <li>
  23819. metadata - {@link Metadata} for this file.
  23820. </li>
  23821. <li>
  23822. sync - A sync marker to denote end of the header.
  23823. </li>
  23824. </ul>
  23825. <h5>Uncompressed SequenceFile Format</h5>
  23826. <ul>
  23827. <li>
  23828. <a href="#Header">Header</a>
  23829. </li>
  23830. <li>
  23831. Record
  23832. <ul>
  23833. <li>Record length</li>
  23834. <li>Key length</li>
  23835. <li>Key</li>
  23836. <li>Value</li>
  23837. </ul>
  23838. </li>
  23839. <li>
  23840. A sync-marker every few <code>100</code> kilobytes or so.
  23841. </li>
  23842. </ul>
  23843. <h5>Record-Compressed SequenceFile Format</h5>
  23844. <ul>
  23845. <li>
  23846. <a href="#Header">Header</a>
  23847. </li>
  23848. <li>
  23849. Record
  23850. <ul>
  23851. <li>Record length</li>
  23852. <li>Key length</li>
  23853. <li>Key</li>
  23854. <li><i>Compressed</i> Value</li>
  23855. </ul>
  23856. </li>
  23857. <li>
  23858. A sync-marker every few <code>100</code> kilobytes or so.
  23859. </li>
  23860. </ul>
  23861. <h5>Block-Compressed SequenceFile Format</h5>
  23862. <ul>
  23863. <li>
  23864. <a href="#Header">Header</a>
  23865. </li>
  23866. <li>
  23867. Record <i>Block</i>
  23868. <ul>
  23869. <li>Uncompressed number of records in the block</li>
  23870. <li>Compressed key-lengths block-size</li>
  23871. <li>Compressed key-lengths block</li>
  23872. <li>Compressed keys block-size</li>
  23873. <li>Compressed keys block</li>
  23874. <li>Compressed value-lengths block-size</li>
  23875. <li>Compressed value-lengths block</li>
  23876. <li>Compressed values block-size</li>
  23877. <li>Compressed values block</li>
  23878. </ul>
  23879. </li>
  23880. <li>
  23881. A sync-marker every block.
  23882. </li>
  23883. </ul>
  23884. <p>The compressed blocks of key lengths and value lengths consist of the
  23885. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  23886. format.</p>
  23887. @see CompressionCodec]]>
  23888. </doc>
  23889. </class>
  23890. <!-- end class org.apache.hadoop.io.SequenceFile -->
  23891. <!-- start class org.apache.hadoop.io.SetFile -->
  23892. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  23893. abstract="false"
  23894. static="false" final="false" visibility="public"
  23895. deprecated="not deprecated">
  23896. <constructor name="SetFile"
  23897. static="false" final="false" visibility="protected"
  23898. deprecated="not deprecated">
  23899. </constructor>
  23900. <doc>
  23901. <![CDATA[A file-based set of keys.]]>
  23902. </doc>
  23903. </class>
  23904. <!-- end class org.apache.hadoop.io.SetFile -->
  23905. <!-- start class org.apache.hadoop.io.ShortWritable -->
  23906. <class name="ShortWritable" extends="java.lang.Object"
  23907. abstract="false"
  23908. static="false" final="false" visibility="public"
  23909. deprecated="not deprecated">
  23910. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23911. <constructor name="ShortWritable"
  23912. static="false" final="false" visibility="public"
  23913. deprecated="not deprecated">
  23914. </constructor>
  23915. <constructor name="ShortWritable" type="short"
  23916. static="false" final="false" visibility="public"
  23917. deprecated="not deprecated">
  23918. </constructor>
  23919. <method name="set"
  23920. abstract="false" native="false" synchronized="false"
  23921. static="false" final="false" visibility="public"
  23922. deprecated="not deprecated">
  23923. <param name="value" type="short"/>
  23924. <doc>
  23925. <![CDATA[Set the value of this ShortWritable.
  23926. @param value input value.]]>
  23927. </doc>
  23928. </method>
  23929. <method name="get" return="short"
  23930. abstract="false" native="false" synchronized="false"
  23931. static="false" final="false" visibility="public"
  23932. deprecated="not deprecated">
  23933. <doc>
  23934. <![CDATA[@return Return the value of this ShortWritable.]]>
  23935. </doc>
  23936. </method>
  23937. <method name="readFields"
  23938. abstract="false" native="false" synchronized="false"
  23939. static="false" final="false" visibility="public"
  23940. deprecated="not deprecated">
  23941. <param name="in" type="java.io.DataInput"/>
  23942. <exception name="IOException" type="java.io.IOException"/>
  23943. <doc>
  23944. <![CDATA[read the short value]]>
  23945. </doc>
  23946. </method>
  23947. <method name="write"
  23948. abstract="false" native="false" synchronized="false"
  23949. static="false" final="false" visibility="public"
  23950. deprecated="not deprecated">
  23951. <param name="out" type="java.io.DataOutput"/>
  23952. <exception name="IOException" type="java.io.IOException"/>
  23953. <doc>
  23954. <![CDATA[write short value]]>
  23955. </doc>
  23956. </method>
  23957. <method name="equals" return="boolean"
  23958. abstract="false" native="false" synchronized="false"
  23959. static="false" final="false" visibility="public"
  23960. deprecated="not deprecated">
  23961. <param name="o" type="java.lang.Object"/>
  23962. <doc>
  23963. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  23964. </doc>
  23965. </method>
  23966. <method name="hashCode" return="int"
  23967. abstract="false" native="false" synchronized="false"
  23968. static="false" final="false" visibility="public"
  23969. deprecated="not deprecated">
  23970. <doc>
  23971. <![CDATA[hash code]]>
  23972. </doc>
  23973. </method>
  23974. <method name="compareTo" return="int"
  23975. abstract="false" native="false" synchronized="false"
  23976. static="false" final="false" visibility="public"
  23977. deprecated="not deprecated">
  23978. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  23979. <doc>
  23980. <![CDATA[Compares two ShortWritable.]]>
  23981. </doc>
  23982. </method>
  23983. <method name="toString" return="java.lang.String"
  23984. abstract="false" native="false" synchronized="false"
  23985. static="false" final="false" visibility="public"
  23986. deprecated="not deprecated">
  23987. <doc>
  23988. <![CDATA[Short values in string format]]>
  23989. </doc>
  23990. </method>
  23991. <doc>
  23992. <![CDATA[A WritableComparable for shorts.]]>
  23993. </doc>
  23994. </class>
  23995. <!-- end class org.apache.hadoop.io.ShortWritable -->
  23996. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  23997. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  23998. abstract="false"
  23999. static="false" final="false" visibility="public"
  24000. deprecated="not deprecated">
  24001. <implements name="java.util.SortedMap"/>
  24002. <constructor name="SortedMapWritable"
  24003. static="false" final="false" visibility="public"
  24004. deprecated="not deprecated">
  24005. <doc>
  24006. <![CDATA[default constructor.]]>
  24007. </doc>
  24008. </constructor>
  24009. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  24010. static="false" final="false" visibility="public"
  24011. deprecated="not deprecated">
  24012. <doc>
  24013. <![CDATA[Copy constructor.
  24014. @param other the map to copy from]]>
  24015. </doc>
  24016. </constructor>
  24017. <method name="comparator" return="java.util.Comparator"
  24018. abstract="false" native="false" synchronized="false"
  24019. static="false" final="false" visibility="public"
  24020. deprecated="not deprecated">
  24021. </method>
  24022. <method name="firstKey" return="K"
  24023. abstract="false" native="false" synchronized="false"
  24024. static="false" final="false" visibility="public"
  24025. deprecated="not deprecated">
  24026. </method>
  24027. <method name="headMap" return="java.util.SortedMap"
  24028. abstract="false" native="false" synchronized="false"
  24029. static="false" final="false" visibility="public"
  24030. deprecated="not deprecated">
  24031. <param name="toKey" type="K"/>
  24032. </method>
  24033. <method name="lastKey" return="K"
  24034. abstract="false" native="false" synchronized="false"
  24035. static="false" final="false" visibility="public"
  24036. deprecated="not deprecated">
  24037. </method>
  24038. <method name="subMap" return="java.util.SortedMap"
  24039. abstract="false" native="false" synchronized="false"
  24040. static="false" final="false" visibility="public"
  24041. deprecated="not deprecated">
  24042. <param name="fromKey" type="K"/>
  24043. <param name="toKey" type="K"/>
  24044. </method>
  24045. <method name="tailMap" return="java.util.SortedMap"
  24046. abstract="false" native="false" synchronized="false"
  24047. static="false" final="false" visibility="public"
  24048. deprecated="not deprecated">
  24049. <param name="fromKey" type="K"/>
  24050. </method>
  24051. <method name="clear"
  24052. abstract="false" native="false" synchronized="false"
  24053. static="false" final="false" visibility="public"
  24054. deprecated="not deprecated">
  24055. </method>
  24056. <method name="containsKey" return="boolean"
  24057. abstract="false" native="false" synchronized="false"
  24058. static="false" final="false" visibility="public"
  24059. deprecated="not deprecated">
  24060. <param name="key" type="java.lang.Object"/>
  24061. </method>
  24062. <method name="containsValue" return="boolean"
  24063. abstract="false" native="false" synchronized="false"
  24064. static="false" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. <param name="value" type="java.lang.Object"/>
  24067. </method>
  24068. <method name="entrySet" return="java.util.Set"
  24069. abstract="false" native="false" synchronized="false"
  24070. static="false" final="false" visibility="public"
  24071. deprecated="not deprecated">
  24072. </method>
  24073. <method name="get" return="org.apache.hadoop.io.Writable"
  24074. abstract="false" native="false" synchronized="false"
  24075. static="false" final="false" visibility="public"
  24076. deprecated="not deprecated">
  24077. <param name="key" type="java.lang.Object"/>
  24078. </method>
  24079. <method name="isEmpty" return="boolean"
  24080. abstract="false" native="false" synchronized="false"
  24081. static="false" final="false" visibility="public"
  24082. deprecated="not deprecated">
  24083. </method>
  24084. <method name="keySet" return="java.util.Set"
  24085. abstract="false" native="false" synchronized="false"
  24086. static="false" final="false" visibility="public"
  24087. deprecated="not deprecated">
  24088. </method>
  24089. <method name="put" return="org.apache.hadoop.io.Writable"
  24090. abstract="false" native="false" synchronized="false"
  24091. static="false" final="false" visibility="public"
  24092. deprecated="not deprecated">
  24093. <param name="key" type="K"/>
  24094. <param name="value" type="org.apache.hadoop.io.Writable"/>
  24095. </method>
  24096. <method name="putAll"
  24097. abstract="false" native="false" synchronized="false"
  24098. static="false" final="false" visibility="public"
  24099. deprecated="not deprecated">
  24100. <param name="t" type="java.util.Map"/>
  24101. </method>
  24102. <method name="remove" return="org.apache.hadoop.io.Writable"
  24103. abstract="false" native="false" synchronized="false"
  24104. static="false" final="false" visibility="public"
  24105. deprecated="not deprecated">
  24106. <param name="key" type="java.lang.Object"/>
  24107. </method>
  24108. <method name="size" return="int"
  24109. abstract="false" native="false" synchronized="false"
  24110. static="false" final="false" visibility="public"
  24111. deprecated="not deprecated">
  24112. </method>
  24113. <method name="values" return="java.util.Collection"
  24114. abstract="false" native="false" synchronized="false"
  24115. static="false" final="false" visibility="public"
  24116. deprecated="not deprecated">
  24117. </method>
  24118. <method name="readFields"
  24119. abstract="false" native="false" synchronized="false"
  24120. static="false" final="false" visibility="public"
  24121. deprecated="not deprecated">
  24122. <param name="in" type="java.io.DataInput"/>
  24123. <exception name="IOException" type="java.io.IOException"/>
  24124. </method>
  24125. <method name="write"
  24126. abstract="false" native="false" synchronized="false"
  24127. static="false" final="false" visibility="public"
  24128. deprecated="not deprecated">
  24129. <param name="out" type="java.io.DataOutput"/>
  24130. <exception name="IOException" type="java.io.IOException"/>
  24131. </method>
  24132. <method name="equals" return="boolean"
  24133. abstract="false" native="false" synchronized="false"
  24134. static="false" final="false" visibility="public"
  24135. deprecated="not deprecated">
  24136. <param name="obj" type="java.lang.Object"/>
  24137. </method>
  24138. <method name="hashCode" return="int"
  24139. abstract="false" native="false" synchronized="false"
  24140. static="false" final="false" visibility="public"
  24141. deprecated="not deprecated">
  24142. </method>
  24143. <doc>
  24144. <![CDATA[A Writable SortedMap.]]>
  24145. </doc>
  24146. </class>
  24147. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  24148. <!-- start interface org.apache.hadoop.io.Stringifier -->
  24149. <interface name="Stringifier" abstract="true"
  24150. static="false" final="false" visibility="public"
  24151. deprecated="not deprecated">
  24152. <implements name="java.io.Closeable"/>
  24153. <method name="toString" return="java.lang.String"
  24154. abstract="true" native="false" synchronized="false"
  24155. static="false" final="false" visibility="public"
  24156. deprecated="not deprecated">
  24157. <param name="obj" type="T"/>
  24158. <exception name="IOException" type="java.io.IOException"/>
  24159. <doc>
  24160. <![CDATA[Converts the object to a string representation
  24161. @param obj the object to convert
  24162. @return the string representation of the object
  24163. @throws IOException if the object cannot be converted]]>
  24164. </doc>
  24165. </method>
  24166. <method name="fromString" return="T"
  24167. abstract="true" native="false" synchronized="false"
  24168. static="false" final="false" visibility="public"
  24169. deprecated="not deprecated">
  24170. <param name="str" type="java.lang.String"/>
  24171. <exception name="IOException" type="java.io.IOException"/>
  24172. <doc>
  24173. <![CDATA[Restores the object from its string representation.
  24174. @param str the string representation of the object
  24175. @return restored object
  24176. @throws IOException if the object cannot be restored]]>
  24177. </doc>
  24178. </method>
  24179. <method name="close"
  24180. abstract="true" native="false" synchronized="false"
  24181. static="false" final="false" visibility="public"
  24182. deprecated="not deprecated">
  24183. <exception name="IOException" type="java.io.IOException"/>
  24184. <doc>
  24185. <![CDATA[Closes this object.
  24186. @throws IOException if an I/O error occurs]]>
  24187. </doc>
  24188. </method>
  24189. <doc>
  24190. <![CDATA[Stringifier interface offers two methods to convert an object
  24191. to a string representation and restore the object given its
  24192. string representation.
  24193. @param <T> the class of the objects to stringify]]>
  24194. </doc>
  24195. </interface>
  24196. <!-- end interface org.apache.hadoop.io.Stringifier -->
  24197. <!-- start class org.apache.hadoop.io.Text -->
  24198. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  24199. abstract="false"
  24200. static="false" final="false" visibility="public"
  24201. deprecated="not deprecated">
  24202. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24203. <constructor name="Text"
  24204. static="false" final="false" visibility="public"
  24205. deprecated="not deprecated">
  24206. </constructor>
  24207. <constructor name="Text" type="java.lang.String"
  24208. static="false" final="false" visibility="public"
  24209. deprecated="not deprecated">
  24210. <doc>
  24211. <![CDATA[Construct from a string.
  24212. @param string input string.]]>
  24213. </doc>
  24214. </constructor>
  24215. <constructor name="Text" type="org.apache.hadoop.io.Text"
  24216. static="false" final="false" visibility="public"
  24217. deprecated="not deprecated">
  24218. <doc>
  24219. <![CDATA[Construct from another text.
  24220. @param utf8 input utf8.]]>
  24221. </doc>
  24222. </constructor>
  24223. <constructor name="Text" type="byte[]"
  24224. static="false" final="false" visibility="public"
  24225. deprecated="not deprecated">
  24226. <doc>
  24227. <![CDATA[Construct from a byte array.
  24228. @param utf8 input utf8.]]>
  24229. </doc>
  24230. </constructor>
  24231. <method name="copyBytes" return="byte[]"
  24232. abstract="false" native="false" synchronized="false"
  24233. static="false" final="false" visibility="public"
  24234. deprecated="not deprecated">
  24235. <doc>
  24236. <![CDATA[@return Get a copy of the bytes that is exactly the length of the data.
  24237. See {@link #getBytes()} for faster access to the underlying array.]]>
  24238. </doc>
  24239. </method>
  24240. <method name="getBytes" return="byte[]"
  24241. abstract="false" native="false" synchronized="false"
  24242. static="false" final="false" visibility="public"
  24243. deprecated="not deprecated">
  24244. <doc>
  24245. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  24246. valid. Please use {@link #copyBytes()} if you
  24247. need the returned array to be precisely the length of the data.]]>
  24248. </doc>
  24249. </method>
  24250. <method name="getLength" return="int"
  24251. abstract="false" native="false" synchronized="false"
  24252. static="false" final="false" visibility="public"
  24253. deprecated="not deprecated">
  24254. <doc>
  24255. <![CDATA[Returns the number of bytes in the byte array]]>
  24256. </doc>
  24257. </method>
  24258. <method name="charAt" return="int"
  24259. abstract="false" native="false" synchronized="false"
  24260. static="false" final="false" visibility="public"
  24261. deprecated="not deprecated">
  24262. <param name="position" type="int"/>
  24263. <doc>
  24264. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  24265. for the character at <code>position</code>. Note that this
  24266. method avoids using the converter or doing String instantiation.
  24267. @param position input position.
  24268. @return the Unicode scalar value at position or -1
  24269. if the position is invalid or points to a
  24270. trailing byte.]]>
  24271. </doc>
  24272. </method>
  24273. <method name="find" return="int"
  24274. abstract="false" native="false" synchronized="false"
  24275. static="false" final="false" visibility="public"
  24276. deprecated="not deprecated">
  24277. <param name="what" type="java.lang.String"/>
  24278. </method>
  24279. <method name="find" return="int"
  24280. abstract="false" native="false" synchronized="false"
  24281. static="false" final="false" visibility="public"
  24282. deprecated="not deprecated">
  24283. <param name="what" type="java.lang.String"/>
  24284. <param name="start" type="int"/>
  24285. <doc>
  24286. <![CDATA[Finds any occurrence of <code>what</code> in the backing
  24287. buffer, starting as position <code>start</code>. The starting
  24288. position is measured in bytes and the return value is in
  24289. terms of byte position in the buffer. The backing buffer is
  24290. not converted to a string for this operation.
  24291. @param what input what.
  24292. @param start input start.
  24293. @return byte position of the first occurrence of the search
  24294. string in the UTF-8 buffer or -1 if not found]]>
  24295. </doc>
  24296. </method>
  24297. <method name="set"
  24298. abstract="false" native="false" synchronized="false"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. <param name="string" type="java.lang.String"/>
  24302. <doc>
  24303. <![CDATA[Set to contain the contents of a string.
  24304. @param string input string.]]>
  24305. </doc>
  24306. </method>
  24307. <method name="set"
  24308. abstract="false" native="false" synchronized="false"
  24309. static="false" final="false" visibility="public"
  24310. deprecated="not deprecated">
  24311. <param name="utf8" type="byte[]"/>
  24312. <doc>
  24313. <![CDATA[Set to a utf8 byte array.
  24314. @param utf8 input utf8.]]>
  24315. </doc>
  24316. </method>
  24317. <method name="set"
  24318. abstract="false" native="false" synchronized="false"
  24319. static="false" final="false" visibility="public"
  24320. deprecated="not deprecated">
  24321. <param name="other" type="org.apache.hadoop.io.Text"/>
  24322. <doc>
  24323. <![CDATA[copy a text.
  24324. @param other input other.]]>
  24325. </doc>
  24326. </method>
  24327. <method name="set"
  24328. abstract="false" native="false" synchronized="false"
  24329. static="false" final="false" visibility="public"
  24330. deprecated="not deprecated">
  24331. <param name="utf8" type="byte[]"/>
  24332. <param name="start" type="int"/>
  24333. <param name="len" type="int"/>
  24334. <doc>
  24335. <![CDATA[Set the Text to range of bytes
  24336. @param utf8 the data to copy from
  24337. @param start the first position of the new string
  24338. @param len the number of bytes of the new string]]>
  24339. </doc>
  24340. </method>
  24341. <method name="append"
  24342. abstract="false" native="false" synchronized="false"
  24343. static="false" final="false" visibility="public"
  24344. deprecated="not deprecated">
  24345. <param name="utf8" type="byte[]"/>
  24346. <param name="start" type="int"/>
  24347. <param name="len" type="int"/>
  24348. <doc>
  24349. <![CDATA[Append a range of bytes to the end of the given text
  24350. @param utf8 the data to copy from
  24351. @param start the first position to append from utf8
  24352. @param len the number of bytes to append]]>
  24353. </doc>
  24354. </method>
  24355. <method name="clear"
  24356. abstract="false" native="false" synchronized="false"
  24357. static="false" final="false" visibility="public"
  24358. deprecated="not deprecated">
  24359. <doc>
  24360. <![CDATA[Clear the string to empty.
  24361. <em>Note</em>: For performance reasons, this call does not clear the
  24362. underlying byte array that is retrievable via {@link #getBytes()}.
  24363. In order to free the byte-array memory, call {@link #set(byte[])}
  24364. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  24365. </doc>
  24366. </method>
  24367. <method name="toString" return="java.lang.String"
  24368. abstract="false" native="false" synchronized="false"
  24369. static="false" final="false" visibility="public"
  24370. deprecated="not deprecated">
  24371. <doc>
  24372. <![CDATA[Convert text back to string
  24373. @see java.lang.Object#toString()]]>
  24374. </doc>
  24375. </method>
  24376. <method name="readFields"
  24377. abstract="false" native="false" synchronized="false"
  24378. static="false" final="false" visibility="public"
  24379. deprecated="not deprecated">
  24380. <param name="in" type="java.io.DataInput"/>
  24381. <exception name="IOException" type="java.io.IOException"/>
  24382. <doc>
  24383. <![CDATA[deserialize]]>
  24384. </doc>
  24385. </method>
  24386. <method name="readFields"
  24387. abstract="false" native="false" synchronized="false"
  24388. static="false" final="false" visibility="public"
  24389. deprecated="not deprecated">
  24390. <param name="in" type="java.io.DataInput"/>
  24391. <param name="maxLength" type="int"/>
  24392. <exception name="IOException" type="java.io.IOException"/>
  24393. </method>
  24394. <method name="skip"
  24395. abstract="false" native="false" synchronized="false"
  24396. static="true" final="false" visibility="public"
  24397. deprecated="not deprecated">
  24398. <param name="in" type="java.io.DataInput"/>
  24399. <exception name="IOException" type="java.io.IOException"/>
  24400. <doc>
  24401. <![CDATA[Skips over one Text in the input.
  24402. @param in input in.
  24403. @throws IOException raised on errors performing I/O.]]>
  24404. </doc>
  24405. </method>
  24406. <method name="readWithKnownLength"
  24407. abstract="false" native="false" synchronized="false"
  24408. static="false" final="false" visibility="public"
  24409. deprecated="not deprecated">
  24410. <param name="in" type="java.io.DataInput"/>
  24411. <param name="len" type="int"/>
  24412. <exception name="IOException" type="java.io.IOException"/>
  24413. <doc>
  24414. <![CDATA[Read a Text object whose length is already known.
  24415. This allows creating Text from a stream which uses a different serialization
  24416. format.
  24417. @param in input in.
  24418. @param len input len.
  24419. @throws IOException raised on errors performing I/O.]]>
  24420. </doc>
  24421. </method>
  24422. <method name="write"
  24423. abstract="false" native="false" synchronized="false"
  24424. static="false" final="false" visibility="public"
  24425. deprecated="not deprecated">
  24426. <param name="out" type="java.io.DataOutput"/>
  24427. <exception name="IOException" type="java.io.IOException"/>
  24428. <doc>
  24429. <![CDATA[serialize
  24430. write this object to out
  24431. length uses zero-compressed encoding
  24432. @see Writable#write(DataOutput)]]>
  24433. </doc>
  24434. </method>
  24435. <method name="write"
  24436. abstract="false" native="false" synchronized="false"
  24437. static="false" final="false" visibility="public"
  24438. deprecated="not deprecated">
  24439. <param name="out" type="java.io.DataOutput"/>
  24440. <param name="maxLength" type="int"/>
  24441. <exception name="IOException" type="java.io.IOException"/>
  24442. </method>
  24443. <method name="equals" return="boolean"
  24444. abstract="false" native="false" synchronized="false"
  24445. static="false" final="false" visibility="public"
  24446. deprecated="not deprecated">
  24447. <param name="o" type="java.lang.Object"/>
  24448. <doc>
  24449. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  24450. </doc>
  24451. </method>
  24452. <method name="hashCode" return="int"
  24453. abstract="false" native="false" synchronized="false"
  24454. static="false" final="false" visibility="public"
  24455. deprecated="not deprecated">
  24456. </method>
  24457. <method name="decode" return="java.lang.String"
  24458. abstract="false" native="false" synchronized="false"
  24459. static="true" final="false" visibility="public"
  24460. deprecated="not deprecated">
  24461. <param name="utf8" type="byte[]"/>
  24462. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24463. <doc>
  24464. <![CDATA[@return Converts the provided byte array to a String using the
  24465. UTF-8 encoding. If the input is malformed,
  24466. replace by a default value.
  24467. @param utf8 input utf8.
  24468. @throws CharacterCodingException a character encoding or
  24469. decoding error occurs.]]>
  24470. </doc>
  24471. </method>
  24472. <method name="decode" return="java.lang.String"
  24473. abstract="false" native="false" synchronized="false"
  24474. static="true" final="false" visibility="public"
  24475. deprecated="not deprecated">
  24476. <param name="utf8" type="byte[]"/>
  24477. <param name="start" type="int"/>
  24478. <param name="length" type="int"/>
  24479. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24480. </method>
  24481. <method name="decode" return="java.lang.String"
  24482. abstract="false" native="false" synchronized="false"
  24483. static="true" final="false" visibility="public"
  24484. deprecated="not deprecated">
  24485. <param name="utf8" type="byte[]"/>
  24486. <param name="start" type="int"/>
  24487. <param name="length" type="int"/>
  24488. <param name="replace" type="boolean"/>
  24489. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24490. <doc>
  24491. <![CDATA[@return Converts the provided byte array to a String using the
  24492. UTF-8 encoding. If <code>replace</code> is true, then
  24493. malformed input is replaced with the
  24494. substitution character, which is U+FFFD. Otherwise the
  24495. method throws a MalformedInputException.
  24496. @param utf8 input utf8.
  24497. @param start input start.
  24498. @param length input length.
  24499. @param replace input replace.
  24500. @throws CharacterCodingException a character encoding or
  24501. decoding error occurs.]]>
  24502. </doc>
  24503. </method>
  24504. <method name="encode" return="java.nio.ByteBuffer"
  24505. abstract="false" native="false" synchronized="false"
  24506. static="true" final="false" visibility="public"
  24507. deprecated="not deprecated">
  24508. <param name="string" type="java.lang.String"/>
  24509. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24510. <doc>
  24511. <![CDATA[Converts the provided String to bytes using the
  24512. UTF-8 encoding. If the input is malformed,
  24513. invalid chars are replaced by a default value.
  24514. @param string input string.
  24515. @return ByteBuffer: bytes stores at ByteBuffer.array()
  24516. and length is ByteBuffer.limit()
  24517. @throws CharacterCodingException
  24518. a character encoding or decoding error occurs.]]>
  24519. </doc>
  24520. </method>
  24521. <method name="encode" return="java.nio.ByteBuffer"
  24522. abstract="false" native="false" synchronized="false"
  24523. static="true" final="false" visibility="public"
  24524. deprecated="not deprecated">
  24525. <param name="string" type="java.lang.String"/>
  24526. <param name="replace" type="boolean"/>
  24527. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24528. <doc>
  24529. <![CDATA[Converts the provided String to bytes using the
  24530. UTF-8 encoding. If <code>replace</code> is true, then
  24531. malformed input is replaced with the
  24532. substitution character, which is U+FFFD. Otherwise the
  24533. method throws a MalformedInputException.
  24534. @param string input string.
  24535. @param replace input replace.
  24536. @return ByteBuffer: bytes stores at ByteBuffer.array()
  24537. and length is ByteBuffer.limit()
  24538. @throws CharacterCodingException a character encoding or decoding error occurs.]]>
  24539. </doc>
  24540. </method>
  24541. <method name="readString" return="java.lang.String"
  24542. abstract="false" native="false" synchronized="false"
  24543. static="true" final="false" visibility="public"
  24544. deprecated="not deprecated">
  24545. <param name="in" type="java.io.DataInput"/>
  24546. <exception name="IOException" type="java.io.IOException"/>
  24547. <doc>
  24548. <![CDATA[@return Read a UTF8 encoded string from in.
  24549. @param in input in.
  24550. @throws IOException raised on errors performing I/O.]]>
  24551. </doc>
  24552. </method>
  24553. <method name="readString" return="java.lang.String"
  24554. abstract="false" native="false" synchronized="false"
  24555. static="true" final="false" visibility="public"
  24556. deprecated="not deprecated">
  24557. <param name="in" type="java.io.DataInput"/>
  24558. <param name="maxLength" type="int"/>
  24559. <exception name="IOException" type="java.io.IOException"/>
  24560. <doc>
  24561. <![CDATA[@return Read a UTF8 encoded string with a maximum size.
  24562. @param in input in.
  24563. @param maxLength input maxLength.
  24564. @throws IOException raised on errors performing I/O.]]>
  24565. </doc>
  24566. </method>
  24567. <method name="writeString" return="int"
  24568. abstract="false" native="false" synchronized="false"
  24569. static="true" final="false" visibility="public"
  24570. deprecated="not deprecated">
  24571. <param name="out" type="java.io.DataOutput"/>
  24572. <param name="s" type="java.lang.String"/>
  24573. <exception name="IOException" type="java.io.IOException"/>
  24574. <doc>
  24575. <![CDATA[@return Write a UTF8 encoded string to out.
  24576. @param out input out.
  24577. @param s input s.
  24578. @throws IOException raised on errors performing I/O.]]>
  24579. </doc>
  24580. </method>
  24581. <method name="writeString" return="int"
  24582. abstract="false" native="false" synchronized="false"
  24583. static="true" final="false" visibility="public"
  24584. deprecated="not deprecated">
  24585. <param name="out" type="java.io.DataOutput"/>
  24586. <param name="s" type="java.lang.String"/>
  24587. <param name="maxLength" type="int"/>
  24588. <exception name="IOException" type="java.io.IOException"/>
  24589. <doc>
  24590. <![CDATA[@return Write a UTF8 encoded string with a maximum size to out.
  24591. @param out input out.
  24592. @param s input s.
  24593. @param maxLength input maxLength.
  24594. @throws IOException raised on errors performing I/O.]]>
  24595. </doc>
  24596. </method>
  24597. <method name="validateUTF8"
  24598. abstract="false" native="false" synchronized="false"
  24599. static="true" final="false" visibility="public"
  24600. deprecated="not deprecated">
  24601. <param name="utf8" type="byte[]"/>
  24602. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  24603. <doc>
  24604. <![CDATA[Check if a byte array contains valid utf-8
  24605. @param utf8 byte array
  24606. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  24607. </doc>
  24608. </method>
  24609. <method name="validateUTF8"
  24610. abstract="false" native="false" synchronized="false"
  24611. static="true" final="false" visibility="public"
  24612. deprecated="not deprecated">
  24613. <param name="utf8" type="byte[]"/>
  24614. <param name="start" type="int"/>
  24615. <param name="len" type="int"/>
  24616. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  24617. <doc>
  24618. <![CDATA[Check to see if a byte array is valid utf-8
  24619. @param utf8 the array of bytes
  24620. @param start the offset of the first byte in the array
  24621. @param len the length of the byte sequence
  24622. @throws MalformedInputException if the byte array contains invalid bytes]]>
  24623. </doc>
  24624. </method>
  24625. <method name="bytesToCodePoint" return="int"
  24626. abstract="false" native="false" synchronized="false"
  24627. static="true" final="false" visibility="public"
  24628. deprecated="not deprecated">
  24629. <param name="bytes" type="java.nio.ByteBuffer"/>
  24630. <doc>
  24631. <![CDATA[@return Returns the next code point at the current position in
  24632. the buffer. The buffer's position will be incremented.
  24633. Any mark set on this buffer will be changed by this method!
  24634. @param bytes input bytes.]]>
  24635. </doc>
  24636. </method>
  24637. <method name="utf8Length" return="int"
  24638. abstract="false" native="false" synchronized="false"
  24639. static="true" final="false" visibility="public"
  24640. deprecated="not deprecated">
  24641. <param name="string" type="java.lang.String"/>
  24642. <doc>
  24643. <![CDATA[For the given string, returns the number of UTF-8 bytes
  24644. required to encode the string.
  24645. @param string text to encode
  24646. @return number of UTF-8 bytes required to encode]]>
  24647. </doc>
  24648. </method>
  24649. <field name="DEFAULT_MAX_LEN" type="int"
  24650. transient="false" volatile="false"
  24651. static="true" final="true" visibility="public"
  24652. deprecated="not deprecated">
  24653. </field>
  24654. <doc>
  24655. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  24656. to serialize, deserialize, and compare texts at byte level. The type of
  24657. length is integer and is serialized using zero-compressed format. <p>In
  24658. addition, it provides methods for string traversal without converting the
  24659. byte array to a string. <p>Also includes utilities for
  24660. serializing/deserialing a string, coding/decoding a string, checking if a
  24661. byte array contains valid UTF8 code, calculating the length of an encoded
  24662. string.]]>
  24663. </doc>
  24664. </class>
  24665. <!-- end class org.apache.hadoop.io.Text -->
  24666. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  24667. <class name="TwoDArrayWritable" extends="java.lang.Object"
  24668. abstract="false"
  24669. static="false" final="false" visibility="public"
  24670. deprecated="not deprecated">
  24671. <implements name="org.apache.hadoop.io.Writable"/>
  24672. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  24673. static="false" final="false" visibility="public"
  24674. deprecated="not deprecated">
  24675. </constructor>
  24676. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  24677. static="false" final="false" visibility="public"
  24678. deprecated="not deprecated">
  24679. </constructor>
  24680. <method name="toArray" return="java.lang.Object"
  24681. abstract="false" native="false" synchronized="false"
  24682. static="false" final="false" visibility="public"
  24683. deprecated="not deprecated">
  24684. </method>
  24685. <method name="set"
  24686. abstract="false" native="false" synchronized="false"
  24687. static="false" final="false" visibility="public"
  24688. deprecated="not deprecated">
  24689. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  24690. </method>
  24691. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  24692. abstract="false" native="false" synchronized="false"
  24693. static="false" final="false" visibility="public"
  24694. deprecated="not deprecated">
  24695. </method>
  24696. <method name="readFields"
  24697. abstract="false" native="false" synchronized="false"
  24698. static="false" final="false" visibility="public"
  24699. deprecated="not deprecated">
  24700. <param name="in" type="java.io.DataInput"/>
  24701. <exception name="IOException" type="java.io.IOException"/>
  24702. </method>
  24703. <method name="write"
  24704. abstract="false" native="false" synchronized="false"
  24705. static="false" final="false" visibility="public"
  24706. deprecated="not deprecated">
  24707. <param name="out" type="java.io.DataOutput"/>
  24708. <exception name="IOException" type="java.io.IOException"/>
  24709. </method>
  24710. <doc>
  24711. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  24712. </doc>
  24713. </class>
  24714. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  24715. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  24716. <class name="VersionedWritable" extends="java.lang.Object"
  24717. abstract="true"
  24718. static="false" final="false" visibility="public"
  24719. deprecated="not deprecated">
  24720. <implements name="org.apache.hadoop.io.Writable"/>
  24721. <constructor name="VersionedWritable"
  24722. static="false" final="false" visibility="public"
  24723. deprecated="not deprecated">
  24724. </constructor>
  24725. <method name="getVersion" return="byte"
  24726. abstract="true" native="false" synchronized="false"
  24727. static="false" final="false" visibility="public"
  24728. deprecated="not deprecated">
  24729. <doc>
  24730. <![CDATA[@return Return the version number of the current implementation.]]>
  24731. </doc>
  24732. </method>
  24733. <method name="write"
  24734. abstract="false" native="false" synchronized="false"
  24735. static="false" final="false" visibility="public"
  24736. deprecated="not deprecated">
  24737. <param name="out" type="java.io.DataOutput"/>
  24738. <exception name="IOException" type="java.io.IOException"/>
  24739. </method>
  24740. <method name="readFields"
  24741. abstract="false" native="false" synchronized="false"
  24742. static="false" final="false" visibility="public"
  24743. deprecated="not deprecated">
  24744. <param name="in" type="java.io.DataInput"/>
  24745. <exception name="IOException" type="java.io.IOException"/>
  24746. </method>
  24747. <doc>
  24748. <![CDATA[A base class for Writables that provides version checking.
  24749. <p>This is useful when a class may evolve, so that instances written by the
  24750. old version of the class may still be processed by the new version. To
  24751. handle this situation, {@link #readFields(DataInput)}
  24752. implementations should catch {@link VersionMismatchException}.]]>
  24753. </doc>
  24754. </class>
  24755. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  24756. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  24757. <class name="VersionMismatchException" extends="java.io.IOException"
  24758. abstract="false"
  24759. static="false" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <constructor name="VersionMismatchException" type="byte, byte"
  24762. static="false" final="false" visibility="public"
  24763. deprecated="not deprecated">
  24764. </constructor>
  24765. <method name="toString" return="java.lang.String"
  24766. abstract="false" native="false" synchronized="false"
  24767. static="false" final="false" visibility="public"
  24768. deprecated="not deprecated">
  24769. <doc>
  24770. <![CDATA[Returns a string representation of this object.]]>
  24771. </doc>
  24772. </method>
  24773. <doc>
  24774. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  24775. version of an object being read does not match the current implementation
  24776. version as returned by {@link VersionedWritable#getVersion()}.]]>
  24777. </doc>
  24778. </class>
  24779. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  24780. <!-- start class org.apache.hadoop.io.VIntWritable -->
  24781. <class name="VIntWritable" extends="java.lang.Object"
  24782. abstract="false"
  24783. static="false" final="false" visibility="public"
  24784. deprecated="not deprecated">
  24785. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24786. <constructor name="VIntWritable"
  24787. static="false" final="false" visibility="public"
  24788. deprecated="not deprecated">
  24789. </constructor>
  24790. <constructor name="VIntWritable" type="int"
  24791. static="false" final="false" visibility="public"
  24792. deprecated="not deprecated">
  24793. </constructor>
  24794. <method name="set"
  24795. abstract="false" native="false" synchronized="false"
  24796. static="false" final="false" visibility="public"
  24797. deprecated="not deprecated">
  24798. <param name="value" type="int"/>
  24799. <doc>
  24800. <![CDATA[Set the value of this VIntWritable.
  24801. @param value input value.]]>
  24802. </doc>
  24803. </method>
  24804. <method name="get" return="int"
  24805. abstract="false" native="false" synchronized="false"
  24806. static="false" final="false" visibility="public"
  24807. deprecated="not deprecated">
  24808. <doc>
  24809. <![CDATA[@return Return the value of this VIntWritable.]]>
  24810. </doc>
  24811. </method>
  24812. <method name="readFields"
  24813. abstract="false" native="false" synchronized="false"
  24814. static="false" final="false" visibility="public"
  24815. deprecated="not deprecated">
  24816. <param name="in" type="java.io.DataInput"/>
  24817. <exception name="IOException" type="java.io.IOException"/>
  24818. </method>
  24819. <method name="write"
  24820. abstract="false" native="false" synchronized="false"
  24821. static="false" final="false" visibility="public"
  24822. deprecated="not deprecated">
  24823. <param name="out" type="java.io.DataOutput"/>
  24824. <exception name="IOException" type="java.io.IOException"/>
  24825. </method>
  24826. <method name="equals" return="boolean"
  24827. abstract="false" native="false" synchronized="false"
  24828. static="false" final="false" visibility="public"
  24829. deprecated="not deprecated">
  24830. <param name="o" type="java.lang.Object"/>
  24831. <doc>
  24832. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  24833. </doc>
  24834. </method>
  24835. <method name="hashCode" return="int"
  24836. abstract="false" native="false" synchronized="false"
  24837. static="false" final="false" visibility="public"
  24838. deprecated="not deprecated">
  24839. </method>
  24840. <method name="compareTo" return="int"
  24841. abstract="false" native="false" synchronized="false"
  24842. static="false" final="false" visibility="public"
  24843. deprecated="not deprecated">
  24844. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  24845. <doc>
  24846. <![CDATA[Compares two VIntWritables.]]>
  24847. </doc>
  24848. </method>
  24849. <method name="toString" return="java.lang.String"
  24850. abstract="false" native="false" synchronized="false"
  24851. static="false" final="false" visibility="public"
  24852. deprecated="not deprecated">
  24853. </method>
  24854. <doc>
  24855. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  24856. Such values take between one and five bytes. Smaller values take fewer bytes.
  24857. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  24858. </doc>
  24859. </class>
  24860. <!-- end class org.apache.hadoop.io.VIntWritable -->
  24861. <!-- start class org.apache.hadoop.io.VLongWritable -->
  24862. <class name="VLongWritable" extends="java.lang.Object"
  24863. abstract="false"
  24864. static="false" final="false" visibility="public"
  24865. deprecated="not deprecated">
  24866. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24867. <constructor name="VLongWritable"
  24868. static="false" final="false" visibility="public"
  24869. deprecated="not deprecated">
  24870. </constructor>
  24871. <constructor name="VLongWritable" type="long"
  24872. static="false" final="false" visibility="public"
  24873. deprecated="not deprecated">
  24874. </constructor>
  24875. <method name="set"
  24876. abstract="false" native="false" synchronized="false"
  24877. static="false" final="false" visibility="public"
  24878. deprecated="not deprecated">
  24879. <param name="value" type="long"/>
  24880. <doc>
  24881. <![CDATA[Set the value of this LongWritable.
  24882. @param value input value.]]>
  24883. </doc>
  24884. </method>
  24885. <method name="get" return="long"
  24886. abstract="false" native="false" synchronized="false"
  24887. static="false" final="false" visibility="public"
  24888. deprecated="not deprecated">
  24889. <doc>
  24890. <![CDATA[@return Return the value of this LongWritable.]]>
  24891. </doc>
  24892. </method>
  24893. <method name="readFields"
  24894. abstract="false" native="false" synchronized="false"
  24895. static="false" final="false" visibility="public"
  24896. deprecated="not deprecated">
  24897. <param name="in" type="java.io.DataInput"/>
  24898. <exception name="IOException" type="java.io.IOException"/>
  24899. </method>
  24900. <method name="write"
  24901. abstract="false" native="false" synchronized="false"
  24902. static="false" final="false" visibility="public"
  24903. deprecated="not deprecated">
  24904. <param name="out" type="java.io.DataOutput"/>
  24905. <exception name="IOException" type="java.io.IOException"/>
  24906. </method>
  24907. <method name="equals" return="boolean"
  24908. abstract="false" native="false" synchronized="false"
  24909. static="false" final="false" visibility="public"
  24910. deprecated="not deprecated">
  24911. <param name="o" type="java.lang.Object"/>
  24912. <doc>
  24913. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  24914. </doc>
  24915. </method>
  24916. <method name="hashCode" return="int"
  24917. abstract="false" native="false" synchronized="false"
  24918. static="false" final="false" visibility="public"
  24919. deprecated="not deprecated">
  24920. </method>
  24921. <method name="compareTo" return="int"
  24922. abstract="false" native="false" synchronized="false"
  24923. static="false" final="false" visibility="public"
  24924. deprecated="not deprecated">
  24925. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  24926. <doc>
  24927. <![CDATA[Compares two VLongWritables.]]>
  24928. </doc>
  24929. </method>
  24930. <method name="toString" return="java.lang.String"
  24931. abstract="false" native="false" synchronized="false"
  24932. static="false" final="false" visibility="public"
  24933. deprecated="not deprecated">
  24934. </method>
  24935. <doc>
  24936. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  24937. between one and five bytes. Smaller values take fewer bytes.
  24938. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  24939. </doc>
  24940. </class>
  24941. <!-- end class org.apache.hadoop.io.VLongWritable -->
  24942. <!-- start interface org.apache.hadoop.io.Writable -->
  24943. <interface name="Writable" abstract="true"
  24944. static="false" final="false" visibility="public"
  24945. deprecated="not deprecated">
  24946. <method name="write"
  24947. abstract="true" native="false" synchronized="false"
  24948. static="false" final="false" visibility="public"
  24949. deprecated="not deprecated">
  24950. <param name="out" type="java.io.DataOutput"/>
  24951. <exception name="IOException" type="java.io.IOException"/>
  24952. <doc>
  24953. <![CDATA[Serialize the fields of this object to <code>out</code>.
  24954. @param out <code>DataOuput</code> to serialize this object into.
  24955. @throws IOException any other problem for write.]]>
  24956. </doc>
  24957. </method>
  24958. <method name="readFields"
  24959. abstract="true" native="false" synchronized="false"
  24960. static="false" final="false" visibility="public"
  24961. deprecated="not deprecated">
  24962. <param name="in" type="java.io.DataInput"/>
  24963. <exception name="IOException" type="java.io.IOException"/>
  24964. <doc>
  24965. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  24966. <p>For efficiency, implementations should attempt to re-use storage in the
  24967. existing object where possible.</p>
  24968. @param in <code>DataInput</code> to deseriablize this object from.
  24969. @throws IOException any other problem for readFields.]]>
  24970. </doc>
  24971. </method>
  24972. <doc>
  24973. <![CDATA[A serializable object which implements a simple, efficient, serialization
  24974. protocol, based on {@link DataInput} and {@link DataOutput}.
  24975. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  24976. framework implements this interface.</p>
  24977. <p>Implementations typically implement a static <code>read(DataInput)</code>
  24978. method which constructs a new instance, calls {@link #readFields(DataInput)}
  24979. and returns the instance.</p>
  24980. <p>Example:</p>
  24981. <blockquote><pre>
  24982. public class MyWritable implements Writable {
  24983. // Some data
  24984. private int counter;
  24985. private long timestamp;
  24986. // Default constructor to allow (de)serialization
  24987. MyWritable() { }
  24988. public void write(DataOutput out) throws IOException {
  24989. out.writeInt(counter);
  24990. out.writeLong(timestamp);
  24991. }
  24992. public void readFields(DataInput in) throws IOException {
  24993. counter = in.readInt();
  24994. timestamp = in.readLong();
  24995. }
  24996. public static MyWritable read(DataInput in) throws IOException {
  24997. MyWritable w = new MyWritable();
  24998. w.readFields(in);
  24999. return w;
  25000. }
  25001. }
  25002. </pre></blockquote>]]>
  25003. </doc>
  25004. </interface>
  25005. <!-- end interface org.apache.hadoop.io.Writable -->
  25006. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  25007. <interface name="WritableComparable" abstract="true"
  25008. static="false" final="false" visibility="public"
  25009. deprecated="not deprecated">
  25010. <implements name="org.apache.hadoop.io.Writable"/>
  25011. <implements name="java.lang.Comparable"/>
  25012. <doc>
  25013. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  25014. <p><code>WritableComparable</code>s can be compared to each other, typically
  25015. via <code>Comparator</code>s. Any type which is to be used as a
  25016. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  25017. interface.</p>
  25018. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  25019. keys. It's important that your implementation of hashCode() returns the same
  25020. result across different instances of the JVM. Note also that the default
  25021. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  25022. satisfy this property.</p>
  25023. <p>Example:</p>
  25024. <blockquote><pre>
  25025. public class MyWritableComparable implements
  25026. WritableComparable{@literal <MyWritableComparable>} {
  25027. // Some data
  25028. private int counter;
  25029. private long timestamp;
  25030. public void write(DataOutput out) throws IOException {
  25031. out.writeInt(counter);
  25032. out.writeLong(timestamp);
  25033. }
  25034. public void readFields(DataInput in) throws IOException {
  25035. counter = in.readInt();
  25036. timestamp = in.readLong();
  25037. }
  25038. public int compareTo(MyWritableComparable o) {
  25039. int thisValue = this.value;
  25040. int thatValue = o.value;
  25041. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  25042. }
  25043. public int hashCode() {
  25044. final int prime = 31;
  25045. int result = 1;
  25046. result = prime * result + counter;
  25047. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  25048. return result
  25049. }
  25050. }
  25051. </pre></blockquote>]]>
  25052. </doc>
  25053. </interface>
  25054. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  25055. <!-- start class org.apache.hadoop.io.WritableComparator -->
  25056. <class name="WritableComparator" extends="java.lang.Object"
  25057. abstract="false"
  25058. static="false" final="false" visibility="public"
  25059. deprecated="not deprecated">
  25060. <implements name="org.apache.hadoop.io.RawComparator"/>
  25061. <implements name="org.apache.hadoop.conf.Configurable"/>
  25062. <constructor name="WritableComparator"
  25063. static="false" final="false" visibility="protected"
  25064. deprecated="not deprecated">
  25065. </constructor>
  25066. <constructor name="WritableComparator" type="java.lang.Class"
  25067. static="false" final="false" visibility="protected"
  25068. deprecated="not deprecated">
  25069. <doc>
  25070. <![CDATA[Construct for a {@link WritableComparable} implementation.
  25071. @param keyClass WritableComparable Class.]]>
  25072. </doc>
  25073. </constructor>
  25074. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  25075. static="false" final="false" visibility="protected"
  25076. deprecated="not deprecated">
  25077. </constructor>
  25078. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  25079. static="false" final="false" visibility="protected"
  25080. deprecated="not deprecated">
  25081. </constructor>
  25082. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  25083. abstract="false" native="false" synchronized="false"
  25084. static="true" final="false" visibility="public"
  25085. deprecated="not deprecated">
  25086. <param name="c" type="java.lang.Class"/>
  25087. <doc>
  25088. <![CDATA[For backwards compatibility.
  25089. @param c WritableComparable Type.
  25090. @return WritableComparator.]]>
  25091. </doc>
  25092. </method>
  25093. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  25094. abstract="false" native="false" synchronized="false"
  25095. static="true" final="false" visibility="public"
  25096. deprecated="not deprecated">
  25097. <param name="c" type="java.lang.Class"/>
  25098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25099. <doc>
  25100. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.
  25101. @param c class.
  25102. @param conf configuration.
  25103. @return WritableComparator.]]>
  25104. </doc>
  25105. </method>
  25106. <method name="setConf"
  25107. abstract="false" native="false" synchronized="false"
  25108. static="false" final="false" visibility="public"
  25109. deprecated="not deprecated">
  25110. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25111. </method>
  25112. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25113. abstract="false" native="false" synchronized="false"
  25114. static="false" final="false" visibility="public"
  25115. deprecated="not deprecated">
  25116. </method>
  25117. <method name="define"
  25118. abstract="false" native="false" synchronized="false"
  25119. static="true" final="false" visibility="public"
  25120. deprecated="not deprecated">
  25121. <param name="c" type="java.lang.Class"/>
  25122. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  25123. <doc>
  25124. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  25125. implementation. Comparators registered with this method must be
  25126. thread-safe.
  25127. @param c class.
  25128. @param comparator WritableComparator.]]>
  25129. </doc>
  25130. </method>
  25131. <method name="getKeyClass" return="java.lang.Class"
  25132. abstract="false" native="false" synchronized="false"
  25133. static="false" final="false" visibility="public"
  25134. deprecated="not deprecated">
  25135. <doc>
  25136. <![CDATA[Returns the WritableComparable implementation class.
  25137. @return WritableComparable.]]>
  25138. </doc>
  25139. </method>
  25140. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  25141. abstract="false" native="false" synchronized="false"
  25142. static="false" final="false" visibility="public"
  25143. deprecated="not deprecated">
  25144. <doc>
  25145. <![CDATA[Construct a new {@link WritableComparable} instance.
  25146. @return WritableComparable.]]>
  25147. </doc>
  25148. </method>
  25149. <method name="compare" return="int"
  25150. abstract="false" native="false" synchronized="false"
  25151. static="false" final="false" visibility="public"
  25152. deprecated="not deprecated">
  25153. <param name="b1" type="byte[]"/>
  25154. <param name="s1" type="int"/>
  25155. <param name="l1" type="int"/>
  25156. <param name="b2" type="byte[]"/>
  25157. <param name="s2" type="int"/>
  25158. <param name="l2" type="int"/>
  25159. <doc>
  25160. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  25161. <p>The default implementation reads the data into two {@link
  25162. WritableComparable}s (using {@link
  25163. Writable#readFields(DataInput)}, then calls {@link
  25164. #compare(WritableComparable,WritableComparable)}.]]>
  25165. </doc>
  25166. </method>
  25167. <method name="compare" return="int"
  25168. abstract="false" native="false" synchronized="false"
  25169. static="false" final="false" visibility="public"
  25170. deprecated="not deprecated">
  25171. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  25172. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  25173. <doc>
  25174. <![CDATA[Compare two WritableComparables.
  25175. The default implementation uses the natural ordering, calling {@link
  25176. Comparable#compareTo(Object)}.
  25177. @param a the first object to be compared.
  25178. @param b the second object to be compared.
  25179. @return compare result.]]>
  25180. </doc>
  25181. </method>
  25182. <method name="compare" return="int"
  25183. abstract="false" native="false" synchronized="false"
  25184. static="false" final="false" visibility="public"
  25185. deprecated="not deprecated">
  25186. <param name="a" type="java.lang.Object"/>
  25187. <param name="b" type="java.lang.Object"/>
  25188. <doc>
  25189. <![CDATA[Compare two Object.
  25190. @param a the first object to be compared.
  25191. @param b the second object to be compared.
  25192. @return compare result.]]>
  25193. </doc>
  25194. </method>
  25195. <method name="compareBytes" return="int"
  25196. abstract="false" native="false" synchronized="false"
  25197. static="true" final="false" visibility="public"
  25198. deprecated="not deprecated">
  25199. <param name="b1" type="byte[]"/>
  25200. <param name="s1" type="int"/>
  25201. <param name="l1" type="int"/>
  25202. <param name="b2" type="byte[]"/>
  25203. <param name="s2" type="int"/>
  25204. <param name="l2" type="int"/>
  25205. <doc>
  25206. <![CDATA[Lexicographic order of binary data.
  25207. @param b1 b1.
  25208. @param s1 s1.
  25209. @param l1 l1.
  25210. @param b2 b2.
  25211. @param s2 s2.
  25212. @param l2 l2.
  25213. @return compare bytes.]]>
  25214. </doc>
  25215. </method>
  25216. <method name="hashBytes" return="int"
  25217. abstract="false" native="false" synchronized="false"
  25218. static="true" final="false" visibility="public"
  25219. deprecated="not deprecated">
  25220. <param name="bytes" type="byte[]"/>
  25221. <param name="offset" type="int"/>
  25222. <param name="length" type="int"/>
  25223. <doc>
  25224. <![CDATA[Compute hash for binary data.
  25225. @param bytes bytes.
  25226. @param offset offset.
  25227. @param length length.
  25228. @return hash for binary data.]]>
  25229. </doc>
  25230. </method>
  25231. <method name="hashBytes" return="int"
  25232. abstract="false" native="false" synchronized="false"
  25233. static="true" final="false" visibility="public"
  25234. deprecated="not deprecated">
  25235. <param name="bytes" type="byte[]"/>
  25236. <param name="length" type="int"/>
  25237. <doc>
  25238. <![CDATA[Compute hash for binary data.
  25239. @param bytes bytes.
  25240. @param length length.
  25241. @return hash for binary data.]]>
  25242. </doc>
  25243. </method>
  25244. <method name="readUnsignedShort" return="int"
  25245. abstract="false" native="false" synchronized="false"
  25246. static="true" final="false" visibility="public"
  25247. deprecated="not deprecated">
  25248. <param name="bytes" type="byte[]"/>
  25249. <param name="start" type="int"/>
  25250. <doc>
  25251. <![CDATA[Parse an unsigned short from a byte array.
  25252. @param bytes bytes.
  25253. @param start start.
  25254. @return unsigned short from a byte array]]>
  25255. </doc>
  25256. </method>
  25257. <method name="readInt" return="int"
  25258. abstract="false" native="false" synchronized="false"
  25259. static="true" final="false" visibility="public"
  25260. deprecated="not deprecated">
  25261. <param name="bytes" type="byte[]"/>
  25262. <param name="start" type="int"/>
  25263. <doc>
  25264. <![CDATA[Parse an integer from a byte array.
  25265. @param bytes bytes.
  25266. @param start start.
  25267. @return integer from a byte array]]>
  25268. </doc>
  25269. </method>
  25270. <method name="readFloat" return="float"
  25271. abstract="false" native="false" synchronized="false"
  25272. static="true" final="false" visibility="public"
  25273. deprecated="not deprecated">
  25274. <param name="bytes" type="byte[]"/>
  25275. <param name="start" type="int"/>
  25276. <doc>
  25277. <![CDATA[Parse a float from a byte array.
  25278. @param bytes bytes.
  25279. @param start start.
  25280. @return float from a byte array]]>
  25281. </doc>
  25282. </method>
  25283. <method name="readLong" return="long"
  25284. abstract="false" native="false" synchronized="false"
  25285. static="true" final="false" visibility="public"
  25286. deprecated="not deprecated">
  25287. <param name="bytes" type="byte[]"/>
  25288. <param name="start" type="int"/>
  25289. <doc>
  25290. <![CDATA[Parse a long from a byte array.
  25291. @param bytes bytes.
  25292. @param start start.
  25293. @return long from a byte array]]>
  25294. </doc>
  25295. </method>
  25296. <method name="readDouble" return="double"
  25297. abstract="false" native="false" synchronized="false"
  25298. static="true" final="false" visibility="public"
  25299. deprecated="not deprecated">
  25300. <param name="bytes" type="byte[]"/>
  25301. <param name="start" type="int"/>
  25302. <doc>
  25303. <![CDATA[Parse a double from a byte array.
  25304. @param bytes bytes.
  25305. @param start start.
  25306. @return double from a byte array.]]>
  25307. </doc>
  25308. </method>
  25309. <method name="readVLong" return="long"
  25310. abstract="false" native="false" synchronized="false"
  25311. static="true" final="false" visibility="public"
  25312. deprecated="not deprecated">
  25313. <param name="bytes" type="byte[]"/>
  25314. <param name="start" type="int"/>
  25315. <exception name="IOException" type="java.io.IOException"/>
  25316. <doc>
  25317. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  25318. @param bytes byte array with decode long
  25319. @param start starting index
  25320. @throws IOException raised on errors performing I/O.
  25321. @return deserialized long]]>
  25322. </doc>
  25323. </method>
  25324. <method name="readVInt" return="int"
  25325. abstract="false" native="false" synchronized="false"
  25326. static="true" final="false" visibility="public"
  25327. deprecated="not deprecated">
  25328. <param name="bytes" type="byte[]"/>
  25329. <param name="start" type="int"/>
  25330. <exception name="IOException" type="java.io.IOException"/>
  25331. <doc>
  25332. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  25333. @param bytes byte array with the encoded integer
  25334. @param start start index
  25335. @throws IOException raised on errors performing I/O.
  25336. @return deserialized integer]]>
  25337. </doc>
  25338. </method>
  25339. <doc>
  25340. <![CDATA[A Comparator for {@link WritableComparable}s.
  25341. <p>This base implementation uses the natural ordering. To define alternate
  25342. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  25343. <p>One may optimize compare-intensive operations by overriding
  25344. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  25345. provided to assist in optimized implementations of this method.]]>
  25346. </doc>
  25347. </class>
  25348. <!-- end class org.apache.hadoop.io.WritableComparator -->
  25349. <!-- start class org.apache.hadoop.io.WritableFactories -->
  25350. <class name="WritableFactories" extends="java.lang.Object"
  25351. abstract="false"
  25352. static="false" final="false" visibility="public"
  25353. deprecated="not deprecated">
  25354. <method name="setFactory"
  25355. abstract="false" native="false" synchronized="false"
  25356. static="true" final="false" visibility="public"
  25357. deprecated="not deprecated">
  25358. <param name="c" type="java.lang.Class"/>
  25359. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  25360. <doc>
  25361. <![CDATA[Define a factory for a class.
  25362. @param c input c.
  25363. @param factory input factory.]]>
  25364. </doc>
  25365. </method>
  25366. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  25367. abstract="false" native="false" synchronized="false"
  25368. static="true" final="false" visibility="public"
  25369. deprecated="not deprecated">
  25370. <param name="c" type="java.lang.Class"/>
  25371. <doc>
  25372. <![CDATA[Define a factory for a class.
  25373. @param c input c.
  25374. @return a factory for a class.]]>
  25375. </doc>
  25376. </method>
  25377. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25378. abstract="false" native="false" synchronized="false"
  25379. static="true" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. <param name="c" type="java.lang.Class"/>
  25382. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25383. <doc>
  25384. <![CDATA[Create a new instance of a class with a defined factory.
  25385. @param c input c.
  25386. @param conf input configuration.
  25387. @return a new instance of a class with a defined factory.]]>
  25388. </doc>
  25389. </method>
  25390. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25391. abstract="false" native="false" synchronized="false"
  25392. static="true" final="false" visibility="public"
  25393. deprecated="not deprecated">
  25394. <param name="c" type="java.lang.Class"/>
  25395. <doc>
  25396. <![CDATA[Create a new instance of a class with a defined factory.
  25397. @param c input c.
  25398. @return a new instance of a class with a defined factory.]]>
  25399. </doc>
  25400. </method>
  25401. <doc>
  25402. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  25403. ObjectWritable} to be able to construct instances of non-public classes.]]>
  25404. </doc>
  25405. </class>
  25406. <!-- end class org.apache.hadoop.io.WritableFactories -->
  25407. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  25408. <interface name="WritableFactory" abstract="true"
  25409. static="false" final="false" visibility="public"
  25410. deprecated="not deprecated">
  25411. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25412. abstract="true" native="false" synchronized="false"
  25413. static="false" final="false" visibility="public"
  25414. deprecated="not deprecated">
  25415. <doc>
  25416. <![CDATA[@return Return a new instance.]]>
  25417. </doc>
  25418. </method>
  25419. <doc>
  25420. <![CDATA[A factory for a class of Writable.
  25421. @see WritableFactories]]>
  25422. </doc>
  25423. </interface>
  25424. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  25425. <!-- start class org.apache.hadoop.io.WritableUtils -->
  25426. <class name="WritableUtils" extends="java.lang.Object"
  25427. abstract="false"
  25428. static="false" final="true" visibility="public"
  25429. deprecated="not deprecated">
  25430. <constructor name="WritableUtils"
  25431. static="false" final="false" visibility="public"
  25432. deprecated="not deprecated">
  25433. </constructor>
  25434. <method name="readCompressedByteArray" return="byte[]"
  25435. abstract="false" native="false" synchronized="false"
  25436. static="true" final="false" visibility="public"
  25437. deprecated="not deprecated">
  25438. <param name="in" type="java.io.DataInput"/>
  25439. <exception name="IOException" type="java.io.IOException"/>
  25440. </method>
  25441. <method name="skipCompressedByteArray"
  25442. abstract="false" native="false" synchronized="false"
  25443. static="true" final="false" visibility="public"
  25444. deprecated="not deprecated">
  25445. <param name="in" type="java.io.DataInput"/>
  25446. <exception name="IOException" type="java.io.IOException"/>
  25447. </method>
  25448. <method name="writeCompressedByteArray" return="int"
  25449. abstract="false" native="false" synchronized="false"
  25450. static="true" final="false" visibility="public"
  25451. deprecated="not deprecated">
  25452. <param name="out" type="java.io.DataOutput"/>
  25453. <param name="bytes" type="byte[]"/>
  25454. <exception name="IOException" type="java.io.IOException"/>
  25455. </method>
  25456. <method name="readCompressedString" return="java.lang.String"
  25457. abstract="false" native="false" synchronized="false"
  25458. static="true" final="false" visibility="public"
  25459. deprecated="not deprecated">
  25460. <param name="in" type="java.io.DataInput"/>
  25461. <exception name="IOException" type="java.io.IOException"/>
  25462. </method>
  25463. <method name="writeCompressedString" return="int"
  25464. abstract="false" native="false" synchronized="false"
  25465. static="true" final="false" visibility="public"
  25466. deprecated="not deprecated">
  25467. <param name="out" type="java.io.DataOutput"/>
  25468. <param name="s" type="java.lang.String"/>
  25469. <exception name="IOException" type="java.io.IOException"/>
  25470. </method>
  25471. <method name="writeString"
  25472. abstract="false" native="false" synchronized="false"
  25473. static="true" final="false" visibility="public"
  25474. deprecated="not deprecated">
  25475. <param name="out" type="java.io.DataOutput"/>
  25476. <param name="s" type="java.lang.String"/>
  25477. <exception name="IOException" type="java.io.IOException"/>
  25478. </method>
  25479. <method name="readString" return="java.lang.String"
  25480. abstract="false" native="false" synchronized="false"
  25481. static="true" final="false" visibility="public"
  25482. deprecated="not deprecated">
  25483. <param name="in" type="java.io.DataInput"/>
  25484. <exception name="IOException" type="java.io.IOException"/>
  25485. </method>
  25486. <method name="writeStringArray"
  25487. abstract="false" native="false" synchronized="false"
  25488. static="true" final="false" visibility="public"
  25489. deprecated="not deprecated">
  25490. <param name="out" type="java.io.DataOutput"/>
  25491. <param name="s" type="java.lang.String[]"/>
  25492. <exception name="IOException" type="java.io.IOException"/>
  25493. </method>
  25494. <method name="writeCompressedStringArray"
  25495. abstract="false" native="false" synchronized="false"
  25496. static="true" final="false" visibility="public"
  25497. deprecated="not deprecated">
  25498. <param name="out" type="java.io.DataOutput"/>
  25499. <param name="s" type="java.lang.String[]"/>
  25500. <exception name="IOException" type="java.io.IOException"/>
  25501. </method>
  25502. <method name="readStringArray" return="java.lang.String[]"
  25503. abstract="false" native="false" synchronized="false"
  25504. static="true" final="false" visibility="public"
  25505. deprecated="not deprecated">
  25506. <param name="in" type="java.io.DataInput"/>
  25507. <exception name="IOException" type="java.io.IOException"/>
  25508. </method>
  25509. <method name="readCompressedStringArray" return="java.lang.String[]"
  25510. abstract="false" native="false" synchronized="false"
  25511. static="true" final="false" visibility="public"
  25512. deprecated="not deprecated">
  25513. <param name="in" type="java.io.DataInput"/>
  25514. <exception name="IOException" type="java.io.IOException"/>
  25515. </method>
  25516. <method name="displayByteArray"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="true" final="false" visibility="public"
  25519. deprecated="not deprecated">
  25520. <param name="record" type="byte[]"/>
  25521. </method>
  25522. <method name="clone" return="T"
  25523. abstract="false" native="false" synchronized="false"
  25524. static="true" final="false" visibility="public"
  25525. deprecated="not deprecated">
  25526. <param name="orig" type="T"/>
  25527. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25528. <doc>
  25529. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  25530. @param <T> Generics Type T.
  25531. @param orig The object to copy
  25532. @param conf input Configuration.
  25533. @return The copied object]]>
  25534. </doc>
  25535. </method>
  25536. <method name="cloneInto"
  25537. abstract="false" native="false" synchronized="false"
  25538. static="true" final="false" visibility="public"
  25539. deprecated="use ReflectionUtils.cloneInto instead.">
  25540. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  25541. <param name="src" type="org.apache.hadoop.io.Writable"/>
  25542. <exception name="IOException" type="java.io.IOException"/>
  25543. <doc>
  25544. <![CDATA[Make a copy of the writable object using serialization to a buffer.
  25545. @param dst the object to copy from
  25546. @param src the object to copy into, which is destroyed
  25547. @throws IOException raised on errors performing I/O.
  25548. @deprecated use ReflectionUtils.cloneInto instead.]]>
  25549. </doc>
  25550. </method>
  25551. <method name="writeVInt"
  25552. abstract="false" native="false" synchronized="false"
  25553. static="true" final="false" visibility="public"
  25554. deprecated="not deprecated">
  25555. <param name="stream" type="java.io.DataOutput"/>
  25556. <param name="i" type="int"/>
  25557. <exception name="IOException" type="java.io.IOException"/>
  25558. <doc>
  25559. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  25560. For -112 {@literal <=} i {@literal <=} 127, only one byte is used with the
  25561. actual value.
  25562. For other values of i, the first byte value indicates whether the
  25563. integer is positive or negative, and the number of bytes that follow.
  25564. If the first byte value v is between -113 and -116, the following integer
  25565. is positive, with number of bytes that follow are -(v+112).
  25566. If the first byte value v is between -121 and -124, the following integer
  25567. is negative, with number of bytes that follow are -(v+120). Bytes are
  25568. stored in the high-non-zero-byte-first order.
  25569. @param stream Binary output stream
  25570. @param i Integer to be serialized
  25571. @throws IOException raised on errors performing I/O.]]>
  25572. </doc>
  25573. </method>
  25574. <method name="writeVLong"
  25575. abstract="false" native="false" synchronized="false"
  25576. static="true" final="false" visibility="public"
  25577. deprecated="not deprecated">
  25578. <param name="stream" type="java.io.DataOutput"/>
  25579. <param name="i" type="long"/>
  25580. <exception name="IOException" type="java.io.IOException"/>
  25581. <doc>
  25582. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  25583. For -112 {@literal <=} i {@literal <=} 127, only one byte is used with the
  25584. actual value.
  25585. For other values of i, the first byte value indicates whether the
  25586. long is positive or negative, and the number of bytes that follow.
  25587. If the first byte value v is between -113 and -120, the following long
  25588. is positive, with number of bytes that follow are -(v+112).
  25589. If the first byte value v is between -121 and -128, the following long
  25590. is negative, with number of bytes that follow are -(v+120). Bytes are
  25591. stored in the high-non-zero-byte-first order.
  25592. @param stream Binary output stream
  25593. @param i Long to be serialized
  25594. @throws IOException raised on errors performing I/O.]]>
  25595. </doc>
  25596. </method>
  25597. <method name="readVLong" return="long"
  25598. abstract="false" native="false" synchronized="false"
  25599. static="true" final="false" visibility="public"
  25600. deprecated="not deprecated">
  25601. <param name="stream" type="java.io.DataInput"/>
  25602. <exception name="IOException" type="java.io.IOException"/>
  25603. <doc>
  25604. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  25605. @param stream Binary input stream
  25606. @throws IOException raised on errors performing I/O.
  25607. @return deserialized long from stream.]]>
  25608. </doc>
  25609. </method>
  25610. <method name="readVInt" return="int"
  25611. abstract="false" native="false" synchronized="false"
  25612. static="true" final="false" visibility="public"
  25613. deprecated="not deprecated">
  25614. <param name="stream" type="java.io.DataInput"/>
  25615. <exception name="IOException" type="java.io.IOException"/>
  25616. <doc>
  25617. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  25618. @param stream Binary input stream
  25619. @throws IOException raised on errors performing I/O.
  25620. @return deserialized integer from stream.]]>
  25621. </doc>
  25622. </method>
  25623. <method name="readVIntInRange" return="int"
  25624. abstract="false" native="false" synchronized="false"
  25625. static="true" final="false" visibility="public"
  25626. deprecated="not deprecated">
  25627. <param name="stream" type="java.io.DataInput"/>
  25628. <param name="lower" type="int"/>
  25629. <param name="upper" type="int"/>
  25630. <exception name="IOException" type="java.io.IOException"/>
  25631. <doc>
  25632. <![CDATA[Reads an integer from the input stream and returns it.
  25633. This function validates that the integer is between [lower, upper],
  25634. inclusive.
  25635. @param stream Binary input stream
  25636. @param lower input lower.
  25637. @param upper input upper.
  25638. @throws IOException raised on errors performing I/O.
  25639. @return deserialized integer from stream.]]>
  25640. </doc>
  25641. </method>
  25642. <method name="isNegativeVInt" return="boolean"
  25643. abstract="false" native="false" synchronized="false"
  25644. static="true" final="false" visibility="public"
  25645. deprecated="not deprecated">
  25646. <param name="value" type="byte"/>
  25647. <doc>
  25648. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  25649. @param value the first byte
  25650. @return is the value negative]]>
  25651. </doc>
  25652. </method>
  25653. <method name="decodeVIntSize" return="int"
  25654. abstract="false" native="false" synchronized="false"
  25655. static="true" final="false" visibility="public"
  25656. deprecated="not deprecated">
  25657. <param name="value" type="byte"/>
  25658. <doc>
  25659. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  25660. @param value the first byte of the vint/vlong
  25661. @return the total number of bytes (1 to 9)]]>
  25662. </doc>
  25663. </method>
  25664. <method name="getVIntSize" return="int"
  25665. abstract="false" native="false" synchronized="false"
  25666. static="true" final="false" visibility="public"
  25667. deprecated="not deprecated">
  25668. <param name="i" type="long"/>
  25669. <doc>
  25670. <![CDATA[Get the encoded length if an integer is stored in a variable-length format.
  25671. @param i input i.
  25672. @return the encoded length]]>
  25673. </doc>
  25674. </method>
  25675. <method name="readEnum" return="T"
  25676. abstract="false" native="false" synchronized="false"
  25677. static="true" final="false" visibility="public"
  25678. deprecated="not deprecated">
  25679. <param name="in" type="java.io.DataInput"/>
  25680. <param name="enumType" type="java.lang.Class"/>
  25681. <exception name="IOException" type="java.io.IOException"/>
  25682. <doc>
  25683. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  25684. using String values.
  25685. @param <T> Enum type
  25686. @param in DataInput to read from
  25687. @param enumType Class type of Enum
  25688. @return Enum represented by String read from DataInput
  25689. @throws IOException raised on errors performing I/O.]]>
  25690. </doc>
  25691. </method>
  25692. <method name="writeEnum"
  25693. abstract="false" native="false" synchronized="false"
  25694. static="true" final="false" visibility="public"
  25695. deprecated="not deprecated">
  25696. <param name="out" type="java.io.DataOutput"/>
  25697. <param name="enumVal" type="java.lang.Enum"/>
  25698. <exception name="IOException" type="java.io.IOException"/>
  25699. <doc>
  25700. <![CDATA[writes String value of enum to DataOutput.
  25701. @param out Dataoutput stream
  25702. @param enumVal enum value
  25703. @throws IOException raised on errors performing I/O.]]>
  25704. </doc>
  25705. </method>
  25706. <method name="skipFully"
  25707. abstract="false" native="false" synchronized="false"
  25708. static="true" final="false" visibility="public"
  25709. deprecated="not deprecated">
  25710. <param name="in" type="java.io.DataInput"/>
  25711. <param name="len" type="int"/>
  25712. <exception name="IOException" type="java.io.IOException"/>
  25713. <doc>
  25714. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  25715. @param in input stream
  25716. @param len number of bytes to skip
  25717. @throws IOException when skipped less number of bytes]]>
  25718. </doc>
  25719. </method>
  25720. <method name="toByteArray" return="byte[]"
  25721. abstract="false" native="false" synchronized="false"
  25722. static="true" final="false" visibility="public"
  25723. deprecated="not deprecated">
  25724. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  25725. <doc>
  25726. <![CDATA[Convert writables to a byte array.
  25727. @param writables input writables.
  25728. @return ByteArray.]]>
  25729. </doc>
  25730. </method>
  25731. <method name="readStringSafely" return="java.lang.String"
  25732. abstract="false" native="false" synchronized="false"
  25733. static="true" final="false" visibility="public"
  25734. deprecated="not deprecated">
  25735. <param name="in" type="java.io.DataInput"/>
  25736. <param name="maxLength" type="int"/>
  25737. <exception name="IOException" type="java.io.IOException"/>
  25738. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  25739. <doc>
  25740. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  25741. followed by the given number of bytes.
  25742. @param in the stream to read from
  25743. @param maxLength the largest acceptable length of the encoded string
  25744. @return the bytes as a string
  25745. @throws IOException if reading from the DataInput fails
  25746. @throws IllegalArgumentException if the encoded byte size for string
  25747. is negative or larger than maxSize. Only the vint is read.]]>
  25748. </doc>
  25749. </method>
  25750. </class>
  25751. <!-- end class org.apache.hadoop.io.WritableUtils -->
  25752. <doc>
  25753. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  25754. to databases, and to files.]]>
  25755. </doc>
  25756. </package>
  25757. <package name="org.apache.hadoop.io.compress">
  25758. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  25759. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  25760. abstract="false"
  25761. static="false" final="false" visibility="public"
  25762. deprecated="not deprecated">
  25763. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  25764. static="false" final="false" visibility="public"
  25765. deprecated="not deprecated">
  25766. <doc>
  25767. <![CDATA[Create a {@link BlockCompressorStream}.
  25768. @param out stream
  25769. @param compressor compressor to be used
  25770. @param bufferSize size of buffer
  25771. @param compressionOverhead maximum 'overhead' of the compression
  25772. algorithm with given bufferSize]]>
  25773. </doc>
  25774. </constructor>
  25775. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  25776. static="false" final="false" visibility="public"
  25777. deprecated="not deprecated">
  25778. <doc>
  25779. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  25780. compressor.
  25781. Use default of 512 as bufferSize and compressionOverhead of
  25782. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  25783. @param out stream
  25784. @param compressor compressor to be used]]>
  25785. </doc>
  25786. </constructor>
  25787. <method name="write"
  25788. abstract="false" native="false" synchronized="false"
  25789. static="false" final="false" visibility="public"
  25790. deprecated="not deprecated">
  25791. <param name="b" type="byte[]"/>
  25792. <param name="off" type="int"/>
  25793. <param name="len" type="int"/>
  25794. <exception name="IOException" type="java.io.IOException"/>
  25795. <doc>
  25796. <![CDATA[Write the data provided to the compression codec, compressing no more
  25797. than the buffer size less the compression overhead as specified during
  25798. construction for each block.
  25799. Each block contains the uncompressed length for the block, followed by
  25800. one or more length-prefixed blocks of compressed data.]]>
  25801. </doc>
  25802. </method>
  25803. <method name="finish"
  25804. abstract="false" native="false" synchronized="false"
  25805. static="false" final="false" visibility="public"
  25806. deprecated="not deprecated">
  25807. <exception name="IOException" type="java.io.IOException"/>
  25808. </method>
  25809. <method name="compress"
  25810. abstract="false" native="false" synchronized="false"
  25811. static="false" final="false" visibility="protected"
  25812. deprecated="not deprecated">
  25813. <exception name="IOException" type="java.io.IOException"/>
  25814. </method>
  25815. <doc>
  25816. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  25817. with 'block-based' based compression algorithms, as opposed to
  25818. 'stream-based' compression algorithms.
  25819. It should be noted that this wrapper does not guarantee that blocks will
  25820. be sized for the compressor. If the
  25821. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  25822. effect meaningful compression, it is responsible for it.]]>
  25823. </doc>
  25824. </class>
  25825. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  25826. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  25827. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  25828. abstract="false"
  25829. static="false" final="false" visibility="public"
  25830. deprecated="not deprecated">
  25831. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  25832. static="false" final="false" visibility="public"
  25833. deprecated="not deprecated">
  25834. <exception name="IOException" type="java.io.IOException"/>
  25835. <doc>
  25836. <![CDATA[Create a {@link BlockDecompressorStream}.
  25837. @param in input stream
  25838. @param decompressor decompressor to use
  25839. @param bufferSize size of buffer
  25840. @throws IOException raised on errors performing I/O.]]>
  25841. </doc>
  25842. </constructor>
  25843. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  25844. static="false" final="false" visibility="public"
  25845. deprecated="not deprecated">
  25846. <exception name="IOException" type="java.io.IOException"/>
  25847. <doc>
  25848. <![CDATA[Create a {@link BlockDecompressorStream}.
  25849. @param in input stream
  25850. @param decompressor decompressor to use
  25851. @throws IOException raised on errors performing I/O.]]>
  25852. </doc>
  25853. </constructor>
  25854. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  25855. static="false" final="false" visibility="protected"
  25856. deprecated="not deprecated">
  25857. <exception name="IOException" type="java.io.IOException"/>
  25858. </constructor>
  25859. <method name="decompress" return="int"
  25860. abstract="false" native="false" synchronized="false"
  25861. static="false" final="false" visibility="protected"
  25862. deprecated="not deprecated">
  25863. <param name="b" type="byte[]"/>
  25864. <param name="off" type="int"/>
  25865. <param name="len" type="int"/>
  25866. <exception name="IOException" type="java.io.IOException"/>
  25867. </method>
  25868. <method name="getCompressedData" return="int"
  25869. abstract="false" native="false" synchronized="false"
  25870. static="false" final="false" visibility="protected"
  25871. deprecated="not deprecated">
  25872. <exception name="IOException" type="java.io.IOException"/>
  25873. </method>
  25874. <method name="resetState"
  25875. abstract="false" native="false" synchronized="false"
  25876. static="false" final="false" visibility="public"
  25877. deprecated="not deprecated">
  25878. <exception name="IOException" type="java.io.IOException"/>
  25879. </method>
  25880. <doc>
  25881. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  25882. with 'block-based' based compression algorithms, as opposed to
  25883. 'stream-based' compression algorithms.]]>
  25884. </doc>
  25885. </class>
  25886. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  25887. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  25888. <class name="BZip2Codec" extends="java.lang.Object"
  25889. abstract="false"
  25890. static="false" final="false" visibility="public"
  25891. deprecated="not deprecated">
  25892. <implements name="org.apache.hadoop.conf.Configurable"/>
  25893. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  25894. <constructor name="BZip2Codec"
  25895. static="false" final="false" visibility="public"
  25896. deprecated="not deprecated">
  25897. <doc>
  25898. <![CDATA[Creates a new instance of BZip2Codec.]]>
  25899. </doc>
  25900. </constructor>
  25901. <method name="setConf"
  25902. abstract="false" native="false" synchronized="false"
  25903. static="false" final="false" visibility="public"
  25904. deprecated="not deprecated">
  25905. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25906. <doc>
  25907. <![CDATA[Set the configuration to be used by this object.
  25908. @param conf the configuration object.]]>
  25909. </doc>
  25910. </method>
  25911. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25912. abstract="false" native="false" synchronized="false"
  25913. static="false" final="false" visibility="public"
  25914. deprecated="not deprecated">
  25915. <doc>
  25916. <![CDATA[Return the configuration used by this object.
  25917. @return the configuration object used by this objec.]]>
  25918. </doc>
  25919. </method>
  25920. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25921. abstract="false" native="false" synchronized="false"
  25922. static="false" final="false" visibility="public"
  25923. deprecated="not deprecated">
  25924. <param name="out" type="java.io.OutputStream"/>
  25925. <exception name="IOException" type="java.io.IOException"/>
  25926. <doc>
  25927. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  25928. {@link OutputStream}.
  25929. @param out the location for the final output stream
  25930. @return a stream the user can write uncompressed data to, to have it
  25931. compressed
  25932. @throws IOException raised on errors performing I/O.]]>
  25933. </doc>
  25934. </method>
  25935. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25936. abstract="false" native="false" synchronized="false"
  25937. static="false" final="false" visibility="public"
  25938. deprecated="not deprecated">
  25939. <param name="out" type="java.io.OutputStream"/>
  25940. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  25941. <exception name="IOException" type="java.io.IOException"/>
  25942. <doc>
  25943. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  25944. {@link OutputStream} with the given {@link Compressor}.
  25945. @param out the location for the final output stream
  25946. @param compressor compressor to use
  25947. @return a stream the user can write uncompressed data to, to have it
  25948. compressed
  25949. @throws IOException raised on errors performing I/O.]]>
  25950. </doc>
  25951. </method>
  25952. <method name="getCompressorType" return="java.lang.Class"
  25953. abstract="false" native="false" synchronized="false"
  25954. static="false" final="false" visibility="public"
  25955. deprecated="not deprecated">
  25956. <doc>
  25957. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  25958. @return the type of compressor needed by this codec.]]>
  25959. </doc>
  25960. </method>
  25961. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  25962. abstract="false" native="false" synchronized="false"
  25963. static="false" final="false" visibility="public"
  25964. deprecated="not deprecated">
  25965. <doc>
  25966. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  25967. @return a new compressor for use by this codec]]>
  25968. </doc>
  25969. </method>
  25970. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25971. abstract="false" native="false" synchronized="false"
  25972. static="false" final="false" visibility="public"
  25973. deprecated="not deprecated">
  25974. <param name="in" type="java.io.InputStream"/>
  25975. <exception name="IOException" type="java.io.IOException"/>
  25976. <doc>
  25977. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  25978. input stream and return a stream for uncompressed data.
  25979. @param in the stream to read compressed bytes from
  25980. @return a stream to read uncompressed bytes from
  25981. @throws IOException raised on errors performing I/O.]]>
  25982. </doc>
  25983. </method>
  25984. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25985. abstract="false" native="false" synchronized="false"
  25986. static="false" final="false" visibility="public"
  25987. deprecated="not deprecated">
  25988. <param name="in" type="java.io.InputStream"/>
  25989. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  25990. <exception name="IOException" type="java.io.IOException"/>
  25991. <doc>
  25992. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  25993. {@link InputStream} with the given {@link Decompressor}, and return a
  25994. stream for uncompressed data.
  25995. @param in the stream to read compressed bytes from
  25996. @param decompressor decompressor to use
  25997. @return a stream to read uncompressed bytes from
  25998. @throws IOException raised on errors performing I/O.]]>
  25999. </doc>
  26000. </method>
  26001. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  26002. abstract="false" native="false" synchronized="false"
  26003. static="false" final="false" visibility="public"
  26004. deprecated="not deprecated">
  26005. <param name="seekableIn" type="java.io.InputStream"/>
  26006. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26007. <param name="start" type="long"/>
  26008. <param name="end" type="long"/>
  26009. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  26010. <exception name="IOException" type="java.io.IOException"/>
  26011. <doc>
  26012. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  26013. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  26014. @param seekableIn The InputStream
  26015. @param start The start offset into the compressed stream
  26016. @param end The end offset into the compressed stream
  26017. @param readMode Controls whether progress is reported continuously or
  26018. only at block boundaries.
  26019. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  26020. </doc>
  26021. </method>
  26022. <method name="getDecompressorType" return="java.lang.Class"
  26023. abstract="false" native="false" synchronized="false"
  26024. static="false" final="false" visibility="public"
  26025. deprecated="not deprecated">
  26026. <doc>
  26027. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  26028. @return the type of decompressor needed by this codec.]]>
  26029. </doc>
  26030. </method>
  26031. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26032. abstract="false" native="false" synchronized="false"
  26033. static="false" final="false" visibility="public"
  26034. deprecated="not deprecated">
  26035. <doc>
  26036. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  26037. @return a new decompressor for use by this codec]]>
  26038. </doc>
  26039. </method>
  26040. <method name="getDefaultExtension" return="java.lang.String"
  26041. abstract="false" native="false" synchronized="false"
  26042. static="false" final="false" visibility="public"
  26043. deprecated="not deprecated">
  26044. <doc>
  26045. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  26046. @return A String telling the default bzip2 file extension]]>
  26047. </doc>
  26048. </method>
  26049. <method name="writeHeader"
  26050. abstract="false" native="false" synchronized="false"
  26051. static="true" final="false" visibility="public"
  26052. deprecated="not deprecated">
  26053. <param name="out" type="java.io.OutputStream"/>
  26054. <exception name="IOException" type="java.io.IOException"/>
  26055. </method>
  26056. <doc>
  26057. <![CDATA[This class provides output and input streams for bzip2 compression
  26058. and decompression. It uses the native bzip2 library on the system
  26059. if possible, else it uses a pure-Java implementation of the bzip2
  26060. algorithm. The configuration parameter
  26061. io.compression.codec.bzip2.library can be used to control this
  26062. behavior.
  26063. In the pure-Java mode, the Compressor and Decompressor interfaces
  26064. are not implemented. Therefore, in that mode, those methods of
  26065. CompressionCodec which have a Compressor or Decompressor type
  26066. argument, throw UnsupportedOperationException.
  26067. Currently, support for splittability is available only in the
  26068. pure-Java mode; therefore, if a SplitCompressionInputStream is
  26069. requested, the pure-Java implementation is used, regardless of the
  26070. setting of the configuration parameter mentioned above.]]>
  26071. </doc>
  26072. </class>
  26073. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  26074. <!-- start class org.apache.hadoop.io.compress.CodecConstants -->
  26075. <class name="CodecConstants" extends="java.lang.Object"
  26076. abstract="false"
  26077. static="false" final="true" visibility="public"
  26078. deprecated="not deprecated">
  26079. <field name="DEFAULT_CODEC_EXTENSION" type="java.lang.String"
  26080. transient="false" volatile="false"
  26081. static="true" final="true" visibility="public"
  26082. deprecated="not deprecated">
  26083. <doc>
  26084. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.DefaultCodec}.]]>
  26085. </doc>
  26086. </field>
  26087. <field name="BZIP2_CODEC_EXTENSION" type="java.lang.String"
  26088. transient="false" volatile="false"
  26089. static="true" final="true" visibility="public"
  26090. deprecated="not deprecated">
  26091. <doc>
  26092. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.BZip2Codec}.]]>
  26093. </doc>
  26094. </field>
  26095. <field name="GZIP_CODEC_EXTENSION" type="java.lang.String"
  26096. transient="false" volatile="false"
  26097. static="true" final="true" visibility="public"
  26098. deprecated="not deprecated">
  26099. <doc>
  26100. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.GzipCodec}.]]>
  26101. </doc>
  26102. </field>
  26103. <field name="LZ4_CODEC_EXTENSION" type="java.lang.String"
  26104. transient="false" volatile="false"
  26105. static="true" final="true" visibility="public"
  26106. deprecated="not deprecated">
  26107. <doc>
  26108. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.Lz4Codec}.]]>
  26109. </doc>
  26110. </field>
  26111. <field name="PASSTHROUGH_CODEC_EXTENSION" type="java.lang.String"
  26112. transient="false" volatile="false"
  26113. static="true" final="true" visibility="public"
  26114. deprecated="not deprecated">
  26115. <doc>
  26116. <![CDATA[Default extension for
  26117. {@link org.apache.hadoop.io.compress.PassthroughCodec}.]]>
  26118. </doc>
  26119. </field>
  26120. <field name="SNAPPY_CODEC_EXTENSION" type="java.lang.String"
  26121. transient="false" volatile="false"
  26122. static="true" final="true" visibility="public"
  26123. deprecated="not deprecated">
  26124. <doc>
  26125. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.SnappyCodec}.]]>
  26126. </doc>
  26127. </field>
  26128. <field name="ZSTANDARD_CODEC_EXTENSION" type="java.lang.String"
  26129. transient="false" volatile="false"
  26130. static="true" final="true" visibility="public"
  26131. deprecated="not deprecated">
  26132. <doc>
  26133. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.ZStandardCodec}.]]>
  26134. </doc>
  26135. </field>
  26136. <doc>
  26137. <![CDATA[Codec related constants.]]>
  26138. </doc>
  26139. </class>
  26140. <!-- end class org.apache.hadoop.io.compress.CodecConstants -->
  26141. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  26142. <class name="CodecPool" extends="java.lang.Object"
  26143. abstract="false"
  26144. static="false" final="false" visibility="public"
  26145. deprecated="not deprecated">
  26146. <constructor name="CodecPool"
  26147. static="false" final="false" visibility="public"
  26148. deprecated="not deprecated">
  26149. </constructor>
  26150. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26151. abstract="false" native="false" synchronized="false"
  26152. static="true" final="false" visibility="public"
  26153. deprecated="not deprecated">
  26154. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26156. <doc>
  26157. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  26158. pool or a new one.
  26159. @param codec the <code>CompressionCodec</code> for which to get the
  26160. <code>Compressor</code>
  26161. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  26162. @return <code>Compressor</code> for the given
  26163. <code>CompressionCodec</code> from the pool or a new one]]>
  26164. </doc>
  26165. </method>
  26166. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26167. abstract="false" native="false" synchronized="false"
  26168. static="true" final="false" visibility="public"
  26169. deprecated="not deprecated">
  26170. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26171. </method>
  26172. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26173. abstract="false" native="false" synchronized="false"
  26174. static="true" final="false" visibility="public"
  26175. deprecated="not deprecated">
  26176. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26177. <doc>
  26178. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  26179. pool or a new one.
  26180. @param codec the <code>CompressionCodec</code> for which to get the
  26181. <code>Decompressor</code>
  26182. @return <code>Decompressor</code> for the given
  26183. <code>CompressionCodec</code> the pool or a new one]]>
  26184. </doc>
  26185. </method>
  26186. <method name="returnCompressor"
  26187. abstract="false" native="false" synchronized="false"
  26188. static="true" final="false" visibility="public"
  26189. deprecated="not deprecated">
  26190. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26191. <doc>
  26192. <![CDATA[Return the {@link Compressor} to the pool.
  26193. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  26194. </doc>
  26195. </method>
  26196. <method name="returnDecompressor"
  26197. abstract="false" native="false" synchronized="false"
  26198. static="true" final="false" visibility="public"
  26199. deprecated="not deprecated">
  26200. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26201. <doc>
  26202. <![CDATA[Return the {@link Decompressor} to the pool.
  26203. @param decompressor the <code>Decompressor</code> to be returned to the
  26204. pool]]>
  26205. </doc>
  26206. </method>
  26207. <method name="getLeasedCompressorsCount" return="int"
  26208. abstract="false" native="false" synchronized="false"
  26209. static="true" final="false" visibility="public"
  26210. deprecated="not deprecated">
  26211. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26212. <doc>
  26213. <![CDATA[Return the number of leased {@link Compressor}s for this
  26214. {@link CompressionCodec}.
  26215. @param codec codec.
  26216. @return the number of leased.]]>
  26217. </doc>
  26218. </method>
  26219. <method name="getLeasedDecompressorsCount" return="int"
  26220. abstract="false" native="false" synchronized="false"
  26221. static="true" final="false" visibility="public"
  26222. deprecated="not deprecated">
  26223. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26224. <doc>
  26225. <![CDATA[Return the number of leased {@link Decompressor}s for this
  26226. {@link CompressionCodec}.
  26227. @param codec codec.
  26228. @return the number of leased]]>
  26229. </doc>
  26230. </method>
  26231. <doc>
  26232. <![CDATA[A global compressor/decompressor pool used to save and reuse
  26233. (possibly native) compression/decompression codecs.]]>
  26234. </doc>
  26235. </class>
  26236. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  26237. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  26238. <interface name="CompressionCodec" abstract="true"
  26239. static="false" final="false" visibility="public"
  26240. deprecated="not deprecated">
  26241. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26242. abstract="true" native="false" synchronized="false"
  26243. static="false" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <param name="out" type="java.io.OutputStream"/>
  26246. <exception name="IOException" type="java.io.IOException"/>
  26247. <doc>
  26248. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26249. {@link OutputStream}.
  26250. @param out the location for the final output stream
  26251. @return a stream the user can write uncompressed data to have it compressed
  26252. @throws IOException raised on errors performing I/O.]]>
  26253. </doc>
  26254. </method>
  26255. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26256. abstract="true" native="false" synchronized="false"
  26257. static="false" final="false" visibility="public"
  26258. deprecated="not deprecated">
  26259. <param name="out" type="java.io.OutputStream"/>
  26260. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26261. <exception name="IOException" type="java.io.IOException"/>
  26262. <doc>
  26263. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26264. {@link OutputStream} with the given {@link Compressor}.
  26265. @param out the location for the final output stream
  26266. @param compressor compressor to use
  26267. @return a stream the user can write uncompressed data to have it compressed
  26268. @throws IOException raised on errors performing I/O.]]>
  26269. </doc>
  26270. </method>
  26271. <method name="getCompressorType" return="java.lang.Class"
  26272. abstract="true" native="false" synchronized="false"
  26273. static="false" final="false" visibility="public"
  26274. deprecated="not deprecated">
  26275. <doc>
  26276. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  26277. @return the type of compressor needed by this codec.]]>
  26278. </doc>
  26279. </method>
  26280. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26281. abstract="true" native="false" synchronized="false"
  26282. static="false" final="false" visibility="public"
  26283. deprecated="not deprecated">
  26284. <doc>
  26285. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  26286. @return a new compressor for use by this codec]]>
  26287. </doc>
  26288. </method>
  26289. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26290. abstract="true" native="false" synchronized="false"
  26291. static="false" final="false" visibility="public"
  26292. deprecated="not deprecated">
  26293. <param name="in" type="java.io.InputStream"/>
  26294. <exception name="IOException" type="java.io.IOException"/>
  26295. <doc>
  26296. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26297. input stream.
  26298. @param in the stream to read compressed bytes from
  26299. @return a stream to read uncompressed bytes from
  26300. @throws IOException raised on errors performing I/O.]]>
  26301. </doc>
  26302. </method>
  26303. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26304. abstract="true" native="false" synchronized="false"
  26305. static="false" final="false" visibility="public"
  26306. deprecated="not deprecated">
  26307. <param name="in" type="java.io.InputStream"/>
  26308. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26309. <exception name="IOException" type="java.io.IOException"/>
  26310. <doc>
  26311. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26312. {@link InputStream} with the given {@link Decompressor}.
  26313. @param in the stream to read compressed bytes from
  26314. @param decompressor decompressor to use
  26315. @return a stream to read uncompressed bytes from
  26316. @throws IOException raised on errors performing I/O.]]>
  26317. </doc>
  26318. </method>
  26319. <method name="getDecompressorType" return="java.lang.Class"
  26320. abstract="true" native="false" synchronized="false"
  26321. static="false" final="false" visibility="public"
  26322. deprecated="not deprecated">
  26323. <doc>
  26324. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  26325. @return the type of decompressor needed by this codec.]]>
  26326. </doc>
  26327. </method>
  26328. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26329. abstract="true" native="false" synchronized="false"
  26330. static="false" final="false" visibility="public"
  26331. deprecated="not deprecated">
  26332. <doc>
  26333. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  26334. @return a new decompressor for use by this codec]]>
  26335. </doc>
  26336. </method>
  26337. <method name="getDefaultExtension" return="java.lang.String"
  26338. abstract="true" native="false" synchronized="false"
  26339. static="false" final="false" visibility="public"
  26340. deprecated="not deprecated">
  26341. <doc>
  26342. <![CDATA[Get the default filename extension for this kind of compression.
  26343. @return the extension including the '.']]>
  26344. </doc>
  26345. </method>
  26346. <doc>
  26347. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  26348. </doc>
  26349. </interface>
  26350. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  26351. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  26352. <class name="CompressionCodecFactory" extends="java.lang.Object"
  26353. abstract="false"
  26354. static="false" final="false" visibility="public"
  26355. deprecated="not deprecated">
  26356. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  26357. static="false" final="false" visibility="public"
  26358. deprecated="not deprecated">
  26359. <doc>
  26360. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  26361. and register them. Defaults to gzip and deflate.
  26362. @param conf configuration.]]>
  26363. </doc>
  26364. </constructor>
  26365. <method name="toString" return="java.lang.String"
  26366. abstract="false" native="false" synchronized="false"
  26367. static="false" final="false" visibility="public"
  26368. deprecated="not deprecated">
  26369. <doc>
  26370. <![CDATA[Print the extension map out as a string.]]>
  26371. </doc>
  26372. </method>
  26373. <method name="getCodecClasses" return="java.util.List"
  26374. abstract="false" native="false" synchronized="false"
  26375. static="true" final="false" visibility="public"
  26376. deprecated="not deprecated">
  26377. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26378. <doc>
  26379. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  26380. listed in the configuration. Codecs specified in configuration come
  26381. later in the returned list, and are considered to override those
  26382. from the ServiceLoader.
  26383. @param conf the configuration to look in
  26384. @return a list of the {@link CompressionCodec} classes]]>
  26385. </doc>
  26386. </method>
  26387. <method name="setCodecClasses"
  26388. abstract="false" native="false" synchronized="false"
  26389. static="true" final="false" visibility="public"
  26390. deprecated="not deprecated">
  26391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26392. <param name="classes" type="java.util.List"/>
  26393. <doc>
  26394. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  26395. classes specified using this method, {@link CompressionCodec} classes on
  26396. the classpath are discovered using a Java ServiceLoader.
  26397. @param conf the configuration to modify
  26398. @param classes the list of classes to set]]>
  26399. </doc>
  26400. </method>
  26401. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  26402. abstract="false" native="false" synchronized="false"
  26403. static="false" final="false" visibility="public"
  26404. deprecated="not deprecated">
  26405. <param name="file" type="org.apache.hadoop.fs.Path"/>
  26406. <doc>
  26407. <![CDATA[Find the relevant compression codec for the given file based on its
  26408. filename suffix.
  26409. @param file the filename to check
  26410. @return the codec object]]>
  26411. </doc>
  26412. </method>
  26413. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  26414. abstract="false" native="false" synchronized="false"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. <param name="classname" type="java.lang.String"/>
  26418. <doc>
  26419. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  26420. @param classname the canonical class name of the codec
  26421. @return the codec object]]>
  26422. </doc>
  26423. </method>
  26424. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  26425. abstract="false" native="false" synchronized="false"
  26426. static="false" final="false" visibility="public"
  26427. deprecated="not deprecated">
  26428. <param name="codecName" type="java.lang.String"/>
  26429. <doc>
  26430. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  26431. or by codec alias.
  26432. <p>
  26433. Codec aliases are case insensitive.
  26434. <p>
  26435. The code alias is the short class name (without the package name).
  26436. If the short class name ends with 'Codec', then there are two aliases for
  26437. the codec, the complete short class name and the short class name without
  26438. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  26439. alias are 'gzip' and 'gzipcodec'.
  26440. @param codecName the canonical class name of the codec
  26441. @return the codec object]]>
  26442. </doc>
  26443. </method>
  26444. <method name="getCodecClassByName" return="java.lang.Class"
  26445. abstract="false" native="false" synchronized="false"
  26446. static="false" final="false" visibility="public"
  26447. deprecated="not deprecated">
  26448. <param name="codecName" type="java.lang.String"/>
  26449. <doc>
  26450. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  26451. or by codec alias and returns its implemetation class.
  26452. <p>
  26453. Codec aliases are case insensitive.
  26454. <p>
  26455. The code alias is the short class name (without the package name).
  26456. If the short class name ends with 'Codec', then there are two aliases for
  26457. the codec, the complete short class name and the short class name without
  26458. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  26459. alias are 'gzip' and 'gzipcodec'.
  26460. @param codecName the canonical class name of the codec
  26461. @return the codec class]]>
  26462. </doc>
  26463. </method>
  26464. <method name="removeSuffix" return="java.lang.String"
  26465. abstract="false" native="false" synchronized="false"
  26466. static="true" final="false" visibility="public"
  26467. deprecated="not deprecated">
  26468. <param name="filename" type="java.lang.String"/>
  26469. <param name="suffix" type="java.lang.String"/>
  26470. <doc>
  26471. <![CDATA[Removes a suffix from a filename, if it has it.
  26472. @param filename the filename to strip
  26473. @param suffix the suffix to remove
  26474. @return the shortened filename]]>
  26475. </doc>
  26476. </method>
  26477. <method name="main"
  26478. abstract="false" native="false" synchronized="false"
  26479. static="true" final="false" visibility="public"
  26480. deprecated="not deprecated">
  26481. <param name="args" type="java.lang.String[]"/>
  26482. <exception name="Exception" type="java.lang.Exception"/>
  26483. <doc>
  26484. <![CDATA[A little test program.
  26485. @param args arguments.
  26486. @throws Exception exception.]]>
  26487. </doc>
  26488. </method>
  26489. <field name="LOG" type="org.slf4j.Logger"
  26490. transient="false" volatile="false"
  26491. static="true" final="true" visibility="public"
  26492. deprecated="not deprecated">
  26493. </field>
  26494. <doc>
  26495. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  26496. </doc>
  26497. </class>
  26498. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  26499. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  26500. <class name="CompressionInputStream" extends="java.io.InputStream"
  26501. abstract="true"
  26502. static="false" final="false" visibility="public"
  26503. deprecated="not deprecated">
  26504. <implements name="org.apache.hadoop.fs.Seekable"/>
  26505. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  26506. <constructor name="CompressionInputStream" type="java.io.InputStream"
  26507. static="false" final="false" visibility="protected"
  26508. deprecated="not deprecated">
  26509. <exception name="IOException" type="java.io.IOException"/>
  26510. <doc>
  26511. <![CDATA[Create a compression input stream that reads
  26512. the decompressed bytes from the given stream.
  26513. @param in The input stream to be compressed.
  26514. @throws IOException raised on errors performing I/O.]]>
  26515. </doc>
  26516. </constructor>
  26517. <method name="close"
  26518. abstract="false" native="false" synchronized="false"
  26519. static="false" final="false" visibility="public"
  26520. deprecated="not deprecated">
  26521. <exception name="IOException" type="java.io.IOException"/>
  26522. </method>
  26523. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  26524. abstract="false" native="false" synchronized="false"
  26525. static="false" final="false" visibility="public"
  26526. deprecated="not deprecated">
  26527. <doc>
  26528. <![CDATA[Return any IOStatistics provided by the underlying stream.
  26529. @return IO stats from the inner stream.]]>
  26530. </doc>
  26531. </method>
  26532. <method name="read" return="int"
  26533. abstract="true" native="false" synchronized="false"
  26534. static="false" final="false" visibility="public"
  26535. deprecated="not deprecated">
  26536. <param name="b" type="byte[]"/>
  26537. <param name="off" type="int"/>
  26538. <param name="len" type="int"/>
  26539. <exception name="IOException" type="java.io.IOException"/>
  26540. <doc>
  26541. <![CDATA[Read bytes from the stream.
  26542. Made abstract to prevent leakage to underlying stream.]]>
  26543. </doc>
  26544. </method>
  26545. <method name="resetState"
  26546. abstract="true" native="false" synchronized="false"
  26547. static="false" final="false" visibility="public"
  26548. deprecated="not deprecated">
  26549. <exception name="IOException" type="java.io.IOException"/>
  26550. <doc>
  26551. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  26552. as the underlying stream may have been repositioned.
  26553. @throws IOException raised on errors performing I/O.]]>
  26554. </doc>
  26555. </method>
  26556. <method name="getPos" return="long"
  26557. abstract="false" native="false" synchronized="false"
  26558. static="false" final="false" visibility="public"
  26559. deprecated="not deprecated">
  26560. <exception name="IOException" type="java.io.IOException"/>
  26561. <doc>
  26562. <![CDATA[This method returns the current position in the stream.
  26563. @return Current position in stream as a long]]>
  26564. </doc>
  26565. </method>
  26566. <method name="seek"
  26567. abstract="false" native="false" synchronized="false"
  26568. static="false" final="false" visibility="public"
  26569. deprecated="not deprecated">
  26570. <param name="pos" type="long"/>
  26571. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26572. <doc>
  26573. <![CDATA[This method is current not supported.
  26574. @throws UnsupportedOperationException Unsupported Operation Exception.]]>
  26575. </doc>
  26576. </method>
  26577. <method name="seekToNewSource" return="boolean"
  26578. abstract="false" native="false" synchronized="false"
  26579. static="false" final="false" visibility="public"
  26580. deprecated="not deprecated">
  26581. <param name="targetPos" type="long"/>
  26582. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26583. <doc>
  26584. <![CDATA[This method is current not supported.
  26585. @throws UnsupportedOperationException Unsupported Operation Exception.]]>
  26586. </doc>
  26587. </method>
  26588. <field name="in" type="java.io.InputStream"
  26589. transient="false" volatile="false"
  26590. static="false" final="true" visibility="protected"
  26591. deprecated="not deprecated">
  26592. <doc>
  26593. <![CDATA[The input stream to be compressed.]]>
  26594. </doc>
  26595. </field>
  26596. <field name="maxAvailableData" type="long"
  26597. transient="false" volatile="false"
  26598. static="false" final="false" visibility="protected"
  26599. deprecated="not deprecated">
  26600. </field>
  26601. <doc>
  26602. <![CDATA[A compression input stream.
  26603. <p>Implementations are assumed to be buffered. This permits clients to
  26604. reposition the underlying input stream then call {@link #resetState()},
  26605. without having to also synchronize client buffers.]]>
  26606. </doc>
  26607. </class>
  26608. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  26609. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  26610. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  26611. abstract="true"
  26612. static="false" final="false" visibility="public"
  26613. deprecated="not deprecated">
  26614. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  26615. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  26616. static="false" final="false" visibility="protected"
  26617. deprecated="not deprecated">
  26618. <doc>
  26619. <![CDATA[Create a compression output stream that writes
  26620. the compressed bytes to the given stream.
  26621. @param out out.]]>
  26622. </doc>
  26623. </constructor>
  26624. <method name="close"
  26625. abstract="false" native="false" synchronized="false"
  26626. static="false" final="false" visibility="public"
  26627. deprecated="not deprecated">
  26628. <exception name="IOException" type="java.io.IOException"/>
  26629. </method>
  26630. <method name="flush"
  26631. abstract="false" native="false" synchronized="false"
  26632. static="false" final="false" visibility="public"
  26633. deprecated="not deprecated">
  26634. <exception name="IOException" type="java.io.IOException"/>
  26635. </method>
  26636. <method name="write"
  26637. abstract="true" native="false" synchronized="false"
  26638. static="false" final="false" visibility="public"
  26639. deprecated="not deprecated">
  26640. <param name="b" type="byte[]"/>
  26641. <param name="off" type="int"/>
  26642. <param name="len" type="int"/>
  26643. <exception name="IOException" type="java.io.IOException"/>
  26644. <doc>
  26645. <![CDATA[Write compressed bytes to the stream.
  26646. Made abstract to prevent leakage to underlying stream.]]>
  26647. </doc>
  26648. </method>
  26649. <method name="finish"
  26650. abstract="true" native="false" synchronized="false"
  26651. static="false" final="false" visibility="public"
  26652. deprecated="not deprecated">
  26653. <exception name="IOException" type="java.io.IOException"/>
  26654. <doc>
  26655. <![CDATA[Finishes writing compressed data to the output stream
  26656. without closing the underlying stream.
  26657. @throws IOException raised on errors performing I/O.]]>
  26658. </doc>
  26659. </method>
  26660. <method name="resetState"
  26661. abstract="true" native="false" synchronized="false"
  26662. static="false" final="false" visibility="public"
  26663. deprecated="not deprecated">
  26664. <exception name="IOException" type="java.io.IOException"/>
  26665. <doc>
  26666. <![CDATA[Reset the compression to the initial state.
  26667. Does not reset the underlying stream.
  26668. @throws IOException raised on errors performing I/O.]]>
  26669. </doc>
  26670. </method>
  26671. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  26672. abstract="false" native="false" synchronized="false"
  26673. static="false" final="false" visibility="public"
  26674. deprecated="not deprecated">
  26675. <doc>
  26676. <![CDATA[Return any IOStatistics provided by the underlying stream.
  26677. @return IO stats from the inner stream.]]>
  26678. </doc>
  26679. </method>
  26680. <field name="out" type="java.io.OutputStream"
  26681. transient="false" volatile="false"
  26682. static="false" final="true" visibility="protected"
  26683. deprecated="not deprecated">
  26684. <doc>
  26685. <![CDATA[The output stream to be compressed.]]>
  26686. </doc>
  26687. </field>
  26688. <doc>
  26689. <![CDATA[A compression output stream.]]>
  26690. </doc>
  26691. </class>
  26692. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  26693. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  26694. <interface name="Compressor" abstract="true"
  26695. static="false" final="false" visibility="public"
  26696. deprecated="not deprecated">
  26697. <method name="setInput"
  26698. abstract="true" native="false" synchronized="false"
  26699. static="false" final="false" visibility="public"
  26700. deprecated="not deprecated">
  26701. <param name="b" type="byte[]"/>
  26702. <param name="off" type="int"/>
  26703. <param name="len" type="int"/>
  26704. <doc>
  26705. <![CDATA[Sets input data for compression.
  26706. This should be called whenever #needsInput() returns
  26707. <code>true</code> indicating that more input data is required.
  26708. @param b Input data
  26709. @param off Start offset
  26710. @param len Length]]>
  26711. </doc>
  26712. </method>
  26713. <method name="needsInput" return="boolean"
  26714. abstract="true" native="false" synchronized="false"
  26715. static="false" final="false" visibility="public"
  26716. deprecated="not deprecated">
  26717. <doc>
  26718. <![CDATA[Returns true if the input data buffer is empty and
  26719. #setInput() should be called to provide more input.
  26720. @return <code>true</code> if the input data buffer is empty and
  26721. #setInput() should be called in order to provide more input.]]>
  26722. </doc>
  26723. </method>
  26724. <method name="setDictionary"
  26725. abstract="true" native="false" synchronized="false"
  26726. static="false" final="false" visibility="public"
  26727. deprecated="not deprecated">
  26728. <param name="b" type="byte[]"/>
  26729. <param name="off" type="int"/>
  26730. <param name="len" type="int"/>
  26731. <doc>
  26732. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  26733. is used when the history buffer can be predetermined.
  26734. @param b Dictionary data bytes
  26735. @param off Start offset
  26736. @param len Length]]>
  26737. </doc>
  26738. </method>
  26739. <method name="getBytesRead" return="long"
  26740. abstract="true" native="false" synchronized="false"
  26741. static="false" final="false" visibility="public"
  26742. deprecated="not deprecated">
  26743. <doc>
  26744. <![CDATA[Return number of uncompressed bytes input so far.
  26745. @return bytes read.]]>
  26746. </doc>
  26747. </method>
  26748. <method name="getBytesWritten" return="long"
  26749. abstract="true" native="false" synchronized="false"
  26750. static="false" final="false" visibility="public"
  26751. deprecated="not deprecated">
  26752. <doc>
  26753. <![CDATA[Return number of compressed bytes output so far.
  26754. @return bytes written.]]>
  26755. </doc>
  26756. </method>
  26757. <method name="finish"
  26758. abstract="true" native="false" synchronized="false"
  26759. static="false" final="false" visibility="public"
  26760. deprecated="not deprecated">
  26761. <doc>
  26762. <![CDATA[When called, indicates that compression should end
  26763. with the current contents of the input buffer.]]>
  26764. </doc>
  26765. </method>
  26766. <method name="finished" return="boolean"
  26767. abstract="true" native="false" synchronized="false"
  26768. static="false" final="false" visibility="public"
  26769. deprecated="not deprecated">
  26770. <doc>
  26771. <![CDATA[Returns true if the end of the compressed
  26772. data output stream has been reached.
  26773. @return <code>true</code> if the end of the compressed
  26774. data output stream has been reached.]]>
  26775. </doc>
  26776. </method>
  26777. <method name="compress" return="int"
  26778. abstract="true" native="false" synchronized="false"
  26779. static="false" final="false" visibility="public"
  26780. deprecated="not deprecated">
  26781. <param name="b" type="byte[]"/>
  26782. <param name="off" type="int"/>
  26783. <param name="len" type="int"/>
  26784. <exception name="IOException" type="java.io.IOException"/>
  26785. <doc>
  26786. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  26787. of bytes of compressed data. A return value of 0 indicates that
  26788. needsInput() should be called in order to determine if more input
  26789. data is required.
  26790. @param b Buffer for the compressed data
  26791. @param off Start offset of the data
  26792. @param len Size of the buffer
  26793. @return The actual number of bytes of compressed data.
  26794. @throws IOException raised on errors performing I/O.]]>
  26795. </doc>
  26796. </method>
  26797. <method name="reset"
  26798. abstract="true" native="false" synchronized="false"
  26799. static="false" final="false" visibility="public"
  26800. deprecated="not deprecated">
  26801. <doc>
  26802. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  26803. </doc>
  26804. </method>
  26805. <method name="end"
  26806. abstract="true" native="false" synchronized="false"
  26807. static="false" final="false" visibility="public"
  26808. deprecated="not deprecated">
  26809. <doc>
  26810. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  26811. </doc>
  26812. </method>
  26813. <method name="reinit"
  26814. abstract="true" native="false" synchronized="false"
  26815. static="false" final="false" visibility="public"
  26816. deprecated="not deprecated">
  26817. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26818. <doc>
  26819. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  26820. the given Configuration
  26821. @param conf Configuration from which new setting are fetched]]>
  26822. </doc>
  26823. </method>
  26824. <doc>
  26825. <![CDATA[Specification of a stream-based 'compressor' which can be
  26826. plugged into a {@link CompressionOutputStream} to compress data.
  26827. This is modelled after {@link java.util.zip.Deflater}]]>
  26828. </doc>
  26829. </interface>
  26830. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  26831. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  26832. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  26833. abstract="false"
  26834. static="false" final="false" visibility="public"
  26835. deprecated="not deprecated">
  26836. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  26837. static="false" final="false" visibility="public"
  26838. deprecated="not deprecated">
  26839. </constructor>
  26840. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  26841. static="false" final="false" visibility="public"
  26842. deprecated="not deprecated">
  26843. </constructor>
  26844. <constructor name="CompressorStream" type="java.io.OutputStream"
  26845. static="false" final="false" visibility="protected"
  26846. deprecated="not deprecated">
  26847. <doc>
  26848. <![CDATA[Allow derived classes to directly set the underlying stream.
  26849. @param out Underlying output stream.]]>
  26850. </doc>
  26851. </constructor>
  26852. <method name="write"
  26853. abstract="false" native="false" synchronized="false"
  26854. static="false" final="false" visibility="public"
  26855. deprecated="not deprecated">
  26856. <param name="b" type="byte[]"/>
  26857. <param name="off" type="int"/>
  26858. <param name="len" type="int"/>
  26859. <exception name="IOException" type="java.io.IOException"/>
  26860. </method>
  26861. <method name="compress"
  26862. abstract="false" native="false" synchronized="false"
  26863. static="false" final="false" visibility="protected"
  26864. deprecated="not deprecated">
  26865. <exception name="IOException" type="java.io.IOException"/>
  26866. </method>
  26867. <method name="finish"
  26868. abstract="false" native="false" synchronized="false"
  26869. static="false" final="false" visibility="public"
  26870. deprecated="not deprecated">
  26871. <exception name="IOException" type="java.io.IOException"/>
  26872. </method>
  26873. <method name="resetState"
  26874. abstract="false" native="false" synchronized="false"
  26875. static="false" final="false" visibility="public"
  26876. deprecated="not deprecated">
  26877. <exception name="IOException" type="java.io.IOException"/>
  26878. </method>
  26879. <method name="close"
  26880. abstract="false" native="false" synchronized="false"
  26881. static="false" final="false" visibility="public"
  26882. deprecated="not deprecated">
  26883. <exception name="IOException" type="java.io.IOException"/>
  26884. </method>
  26885. <method name="write"
  26886. abstract="false" native="false" synchronized="false"
  26887. static="false" final="false" visibility="public"
  26888. deprecated="not deprecated">
  26889. <param name="b" type="int"/>
  26890. <exception name="IOException" type="java.io.IOException"/>
  26891. </method>
  26892. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  26893. transient="false" volatile="false"
  26894. static="false" final="false" visibility="protected"
  26895. deprecated="not deprecated">
  26896. </field>
  26897. <field name="buffer" type="byte[]"
  26898. transient="false" volatile="false"
  26899. static="false" final="false" visibility="protected"
  26900. deprecated="not deprecated">
  26901. </field>
  26902. <field name="closed" type="boolean"
  26903. transient="false" volatile="false"
  26904. static="false" final="false" visibility="protected"
  26905. deprecated="not deprecated">
  26906. </field>
  26907. </class>
  26908. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  26909. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  26910. <interface name="Decompressor" abstract="true"
  26911. static="false" final="false" visibility="public"
  26912. deprecated="not deprecated">
  26913. <method name="setInput"
  26914. abstract="true" native="false" synchronized="false"
  26915. static="false" final="false" visibility="public"
  26916. deprecated="not deprecated">
  26917. <param name="b" type="byte[]"/>
  26918. <param name="off" type="int"/>
  26919. <param name="len" type="int"/>
  26920. <doc>
  26921. <![CDATA[Sets input data for decompression.
  26922. This should be called if and only if {@link #needsInput()} returns
  26923. <code>true</code> indicating that more input data is required.
  26924. (Both native and non-native versions of various Decompressors require
  26925. that the data passed in via <code>b[]</code> remain unmodified until
  26926. the caller is explicitly notified--via {@link #needsInput()}--that the
  26927. buffer may be safely modified. With this requirement, an extra
  26928. buffer-copy can be avoided.)
  26929. @param b Input data
  26930. @param off Start offset
  26931. @param len Length]]>
  26932. </doc>
  26933. </method>
  26934. <method name="needsInput" return="boolean"
  26935. abstract="true" native="false" synchronized="false"
  26936. static="false" final="false" visibility="public"
  26937. deprecated="not deprecated">
  26938. <doc>
  26939. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  26940. {@link #setInput(byte[], int, int)} should be called to
  26941. provide more input.
  26942. @return <code>true</code> if the input data buffer is empty and
  26943. {@link #setInput(byte[], int, int)} should be called in
  26944. order to provide more input.]]>
  26945. </doc>
  26946. </method>
  26947. <method name="setDictionary"
  26948. abstract="true" native="false" synchronized="false"
  26949. static="false" final="false" visibility="public"
  26950. deprecated="not deprecated">
  26951. <param name="b" type="byte[]"/>
  26952. <param name="off" type="int"/>
  26953. <param name="len" type="int"/>
  26954. <doc>
  26955. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  26956. is used when the history buffer can be predetermined.
  26957. @param b Dictionary data bytes
  26958. @param off Start offset
  26959. @param len Length]]>
  26960. </doc>
  26961. </method>
  26962. <method name="needsDictionary" return="boolean"
  26963. abstract="true" native="false" synchronized="false"
  26964. static="false" final="false" visibility="public"
  26965. deprecated="not deprecated">
  26966. <doc>
  26967. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  26968. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  26969. </doc>
  26970. </method>
  26971. <method name="finished" return="boolean"
  26972. abstract="true" native="false" synchronized="false"
  26973. static="false" final="false" visibility="public"
  26974. deprecated="not deprecated">
  26975. <doc>
  26976. <![CDATA[Returns <code>true</code> if the end of the decompressed
  26977. data output stream has been reached. Indicates a concatenated data stream
  26978. when finished() returns <code>true</code> and {@link #getRemaining()}
  26979. returns a positive value. finished() will be reset with the
  26980. {@link #reset()} method.
  26981. @return <code>true</code> if the end of the decompressed
  26982. data output stream has been reached.]]>
  26983. </doc>
  26984. </method>
  26985. <method name="decompress" return="int"
  26986. abstract="true" native="false" synchronized="false"
  26987. static="false" final="false" visibility="public"
  26988. deprecated="not deprecated">
  26989. <param name="b" type="byte[]"/>
  26990. <param name="off" type="int"/>
  26991. <param name="len" type="int"/>
  26992. <exception name="IOException" type="java.io.IOException"/>
  26993. <doc>
  26994. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  26995. of bytes of uncompressed data. A return value of 0 indicates that
  26996. {@link #needsInput()} should be called in order to determine if more
  26997. input data is required.
  26998. @param b Buffer for the uncompressed data
  26999. @param off Start offset of the data
  27000. @param len Size of the buffer
  27001. @return The actual number of bytes of uncompressed data.
  27002. @throws IOException raised on errors performing I/O.]]>
  27003. </doc>
  27004. </method>
  27005. <method name="getRemaining" return="int"
  27006. abstract="true" native="false" synchronized="false"
  27007. static="false" final="false" visibility="public"
  27008. deprecated="not deprecated">
  27009. <doc>
  27010. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  27011. Indicates a concatenated data stream if {@link #finished()} returns
  27012. <code>true</code> and getRemaining() returns a positive value. If
  27013. {@link #finished()} returns <code>true</code> and getRemaining() returns
  27014. a zero value, indicates that the end of data stream has been reached and
  27015. is not a concatenated data stream.
  27016. @return The number of bytes remaining in the compressed data buffer.]]>
  27017. </doc>
  27018. </method>
  27019. <method name="reset"
  27020. abstract="true" native="false" synchronized="false"
  27021. static="false" final="false" visibility="public"
  27022. deprecated="not deprecated">
  27023. <doc>
  27024. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  27025. input data can be processed. If {@link #finished()}} returns
  27026. <code>true</code> and {@link #getRemaining()} returns a positive value,
  27027. reset() is called before processing of the next data stream in the
  27028. concatenated data stream. {@link #finished()} will be reset and will
  27029. return <code>false</code> when reset() is called.]]>
  27030. </doc>
  27031. </method>
  27032. <method name="end"
  27033. abstract="true" native="false" synchronized="false"
  27034. static="false" final="false" visibility="public"
  27035. deprecated="not deprecated">
  27036. <doc>
  27037. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  27038. </doc>
  27039. </method>
  27040. <doc>
  27041. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  27042. plugged into a {@link CompressionInputStream} to compress data.
  27043. This is modelled after {@link java.util.zip.Inflater}]]>
  27044. </doc>
  27045. </interface>
  27046. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  27047. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  27048. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  27049. abstract="false"
  27050. static="false" final="false" visibility="public"
  27051. deprecated="not deprecated">
  27052. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  27053. static="false" final="false" visibility="public"
  27054. deprecated="not deprecated">
  27055. <exception name="IOException" type="java.io.IOException"/>
  27056. </constructor>
  27057. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  27058. static="false" final="false" visibility="public"
  27059. deprecated="not deprecated">
  27060. <exception name="IOException" type="java.io.IOException"/>
  27061. </constructor>
  27062. <constructor name="DecompressorStream" type="java.io.InputStream"
  27063. static="false" final="false" visibility="protected"
  27064. deprecated="not deprecated">
  27065. <exception name="IOException" type="java.io.IOException"/>
  27066. <doc>
  27067. <![CDATA[Allow derived classes to directly set the underlying stream.
  27068. @param in Underlying input stream.
  27069. @throws IOException raised on errors performing I/O.]]>
  27070. </doc>
  27071. </constructor>
  27072. <method name="read" return="int"
  27073. abstract="false" native="false" synchronized="false"
  27074. static="false" final="false" visibility="public"
  27075. deprecated="not deprecated">
  27076. <exception name="IOException" type="java.io.IOException"/>
  27077. </method>
  27078. <method name="read" return="int"
  27079. abstract="false" native="false" synchronized="false"
  27080. static="false" final="false" visibility="public"
  27081. deprecated="not deprecated">
  27082. <param name="b" type="byte[]"/>
  27083. <param name="off" type="int"/>
  27084. <param name="len" type="int"/>
  27085. <exception name="IOException" type="java.io.IOException"/>
  27086. </method>
  27087. <method name="decompress" return="int"
  27088. abstract="false" native="false" synchronized="false"
  27089. static="false" final="false" visibility="protected"
  27090. deprecated="not deprecated">
  27091. <param name="b" type="byte[]"/>
  27092. <param name="off" type="int"/>
  27093. <param name="len" type="int"/>
  27094. <exception name="IOException" type="java.io.IOException"/>
  27095. </method>
  27096. <method name="getCompressedData" return="int"
  27097. abstract="false" native="false" synchronized="false"
  27098. static="false" final="false" visibility="protected"
  27099. deprecated="not deprecated">
  27100. <exception name="IOException" type="java.io.IOException"/>
  27101. </method>
  27102. <method name="checkStream"
  27103. abstract="false" native="false" synchronized="false"
  27104. static="false" final="false" visibility="protected"
  27105. deprecated="not deprecated">
  27106. <exception name="IOException" type="java.io.IOException"/>
  27107. </method>
  27108. <method name="resetState"
  27109. abstract="false" native="false" synchronized="false"
  27110. static="false" final="false" visibility="public"
  27111. deprecated="not deprecated">
  27112. <exception name="IOException" type="java.io.IOException"/>
  27113. </method>
  27114. <method name="skip" return="long"
  27115. abstract="false" native="false" synchronized="false"
  27116. static="false" final="false" visibility="public"
  27117. deprecated="not deprecated">
  27118. <param name="n" type="long"/>
  27119. <exception name="IOException" type="java.io.IOException"/>
  27120. </method>
  27121. <method name="available" return="int"
  27122. abstract="false" native="false" synchronized="false"
  27123. static="false" final="false" visibility="public"
  27124. deprecated="not deprecated">
  27125. <exception name="IOException" type="java.io.IOException"/>
  27126. </method>
  27127. <method name="close"
  27128. abstract="false" native="false" synchronized="false"
  27129. static="false" final="false" visibility="public"
  27130. deprecated="not deprecated">
  27131. <exception name="IOException" type="java.io.IOException"/>
  27132. </method>
  27133. <method name="markSupported" return="boolean"
  27134. abstract="false" native="false" synchronized="false"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. </method>
  27138. <method name="mark"
  27139. abstract="false" native="false" synchronized="true"
  27140. static="false" final="false" visibility="public"
  27141. deprecated="not deprecated">
  27142. <param name="readlimit" type="int"/>
  27143. </method>
  27144. <method name="reset"
  27145. abstract="false" native="false" synchronized="true"
  27146. static="false" final="false" visibility="public"
  27147. deprecated="not deprecated">
  27148. <exception name="IOException" type="java.io.IOException"/>
  27149. </method>
  27150. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  27151. transient="false" volatile="false"
  27152. static="false" final="false" visibility="protected"
  27153. deprecated="not deprecated">
  27154. </field>
  27155. <field name="buffer" type="byte[]"
  27156. transient="false" volatile="false"
  27157. static="false" final="false" visibility="protected"
  27158. deprecated="not deprecated">
  27159. </field>
  27160. <field name="eof" type="boolean"
  27161. transient="false" volatile="false"
  27162. static="false" final="false" visibility="protected"
  27163. deprecated="not deprecated">
  27164. </field>
  27165. <field name="closed" type="boolean"
  27166. transient="false" volatile="false"
  27167. static="false" final="false" visibility="protected"
  27168. deprecated="not deprecated">
  27169. </field>
  27170. </class>
  27171. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  27172. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  27173. <class name="DefaultCodec" extends="java.lang.Object"
  27174. abstract="false"
  27175. static="false" final="false" visibility="public"
  27176. deprecated="not deprecated">
  27177. <implements name="org.apache.hadoop.conf.Configurable"/>
  27178. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27179. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  27180. <constructor name="DefaultCodec"
  27181. static="false" final="false" visibility="public"
  27182. deprecated="not deprecated">
  27183. </constructor>
  27184. <method name="setConf"
  27185. abstract="false" native="false" synchronized="false"
  27186. static="false" final="false" visibility="public"
  27187. deprecated="not deprecated">
  27188. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27189. </method>
  27190. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27191. abstract="false" native="false" synchronized="false"
  27192. static="false" final="false" visibility="public"
  27193. deprecated="not deprecated">
  27194. </method>
  27195. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27196. abstract="false" native="false" synchronized="false"
  27197. static="false" final="false" visibility="public"
  27198. deprecated="not deprecated">
  27199. <param name="out" type="java.io.OutputStream"/>
  27200. <exception name="IOException" type="java.io.IOException"/>
  27201. </method>
  27202. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27203. abstract="false" native="false" synchronized="false"
  27204. static="false" final="false" visibility="public"
  27205. deprecated="not deprecated">
  27206. <param name="out" type="java.io.OutputStream"/>
  27207. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27208. <exception name="IOException" type="java.io.IOException"/>
  27209. </method>
  27210. <method name="getCompressorType" return="java.lang.Class"
  27211. abstract="false" native="false" synchronized="false"
  27212. static="false" final="false" visibility="public"
  27213. deprecated="not deprecated">
  27214. </method>
  27215. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27216. abstract="false" native="false" synchronized="false"
  27217. static="false" final="false" visibility="public"
  27218. deprecated="not deprecated">
  27219. </method>
  27220. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27221. abstract="false" native="false" synchronized="false"
  27222. static="false" final="false" visibility="public"
  27223. deprecated="not deprecated">
  27224. <param name="in" type="java.io.InputStream"/>
  27225. <exception name="IOException" type="java.io.IOException"/>
  27226. </method>
  27227. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27228. abstract="false" native="false" synchronized="false"
  27229. static="false" final="false" visibility="public"
  27230. deprecated="not deprecated">
  27231. <param name="in" type="java.io.InputStream"/>
  27232. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27233. <exception name="IOException" type="java.io.IOException"/>
  27234. </method>
  27235. <method name="getDecompressorType" return="java.lang.Class"
  27236. abstract="false" native="false" synchronized="false"
  27237. static="false" final="false" visibility="public"
  27238. deprecated="not deprecated">
  27239. </method>
  27240. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27241. abstract="false" native="false" synchronized="false"
  27242. static="false" final="false" visibility="public"
  27243. deprecated="not deprecated">
  27244. </method>
  27245. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27246. abstract="false" native="false" synchronized="false"
  27247. static="false" final="false" visibility="public"
  27248. deprecated="not deprecated">
  27249. <doc>
  27250. <![CDATA[{@inheritDoc}]]>
  27251. </doc>
  27252. </method>
  27253. <method name="getDefaultExtension" return="java.lang.String"
  27254. abstract="false" native="false" synchronized="false"
  27255. static="false" final="false" visibility="public"
  27256. deprecated="not deprecated">
  27257. </method>
  27258. </class>
  27259. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  27260. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  27261. <interface name="DirectDecompressionCodec" abstract="true"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27265. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27266. abstract="true" native="false" synchronized="false"
  27267. static="false" final="false" visibility="public"
  27268. deprecated="not deprecated">
  27269. <doc>
  27270. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  27271. @return a new direct decompressor for use by this codec]]>
  27272. </doc>
  27273. </method>
  27274. <doc>
  27275. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  27276. </doc>
  27277. </interface>
  27278. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  27279. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  27280. <interface name="DirectDecompressor" abstract="true"
  27281. static="false" final="false" visibility="public"
  27282. deprecated="not deprecated">
  27283. <method name="decompress"
  27284. abstract="true" native="false" synchronized="false"
  27285. static="false" final="false" visibility="public"
  27286. deprecated="not deprecated">
  27287. <param name="src" type="java.nio.ByteBuffer"/>
  27288. <param name="dst" type="java.nio.ByteBuffer"/>
  27289. <exception name="IOException" type="java.io.IOException"/>
  27290. </method>
  27291. <doc>
  27292. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  27293. </doc>
  27294. </interface>
  27295. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  27296. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  27297. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  27298. abstract="false"
  27299. static="false" final="false" visibility="public"
  27300. deprecated="not deprecated">
  27301. <constructor name="GzipCodec"
  27302. static="false" final="false" visibility="public"
  27303. deprecated="not deprecated">
  27304. </constructor>
  27305. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27306. abstract="false" native="false" synchronized="false"
  27307. static="false" final="false" visibility="public"
  27308. deprecated="not deprecated">
  27309. <param name="out" type="java.io.OutputStream"/>
  27310. <exception name="IOException" type="java.io.IOException"/>
  27311. </method>
  27312. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27313. abstract="false" native="false" synchronized="false"
  27314. static="false" final="false" visibility="public"
  27315. deprecated="not deprecated">
  27316. <param name="out" type="java.io.OutputStream"/>
  27317. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27318. <exception name="IOException" type="java.io.IOException"/>
  27319. </method>
  27320. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27321. abstract="false" native="false" synchronized="false"
  27322. static="false" final="false" visibility="public"
  27323. deprecated="not deprecated">
  27324. </method>
  27325. <method name="getCompressorType" return="java.lang.Class"
  27326. abstract="false" native="false" synchronized="false"
  27327. static="false" final="false" visibility="public"
  27328. deprecated="not deprecated">
  27329. </method>
  27330. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27331. abstract="false" native="false" synchronized="false"
  27332. static="false" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. <param name="in" type="java.io.InputStream"/>
  27335. <exception name="IOException" type="java.io.IOException"/>
  27336. </method>
  27337. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27338. abstract="false" native="false" synchronized="false"
  27339. static="false" final="false" visibility="public"
  27340. deprecated="not deprecated">
  27341. <param name="in" type="java.io.InputStream"/>
  27342. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27343. <exception name="IOException" type="java.io.IOException"/>
  27344. </method>
  27345. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27346. abstract="false" native="false" synchronized="false"
  27347. static="false" final="false" visibility="public"
  27348. deprecated="not deprecated">
  27349. </method>
  27350. <method name="getDecompressorType" return="java.lang.Class"
  27351. abstract="false" native="false" synchronized="false"
  27352. static="false" final="false" visibility="public"
  27353. deprecated="not deprecated">
  27354. </method>
  27355. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27356. abstract="false" native="false" synchronized="false"
  27357. static="false" final="false" visibility="public"
  27358. deprecated="not deprecated">
  27359. </method>
  27360. <method name="getDefaultExtension" return="java.lang.String"
  27361. abstract="false" native="false" synchronized="false"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. </method>
  27365. <doc>
  27366. <![CDATA[This class creates gzip compressors/decompressors.]]>
  27367. </doc>
  27368. </class>
  27369. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  27370. <!-- start class org.apache.hadoop.io.compress.PassthroughCodec -->
  27371. <class name="PassthroughCodec" extends="java.lang.Object"
  27372. abstract="false"
  27373. static="false" final="false" visibility="public"
  27374. deprecated="not deprecated">
  27375. <implements name="org.apache.hadoop.conf.Configurable"/>
  27376. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27377. <constructor name="PassthroughCodec"
  27378. static="false" final="false" visibility="public"
  27379. deprecated="not deprecated">
  27380. </constructor>
  27381. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27382. abstract="false" native="false" synchronized="false"
  27383. static="false" final="false" visibility="public"
  27384. deprecated="not deprecated">
  27385. </method>
  27386. <method name="setConf"
  27387. abstract="false" native="false" synchronized="false"
  27388. static="false" final="false" visibility="public"
  27389. deprecated="not deprecated">
  27390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27391. </method>
  27392. <method name="getDefaultExtension" return="java.lang.String"
  27393. abstract="false" native="false" synchronized="false"
  27394. static="false" final="false" visibility="public"
  27395. deprecated="not deprecated">
  27396. </method>
  27397. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27398. abstract="false" native="false" synchronized="false"
  27399. static="false" final="false" visibility="public"
  27400. deprecated="not deprecated">
  27401. <param name="out" type="java.io.OutputStream"/>
  27402. <exception name="IOException" type="java.io.IOException"/>
  27403. </method>
  27404. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27405. abstract="false" native="false" synchronized="false"
  27406. static="false" final="false" visibility="public"
  27407. deprecated="not deprecated">
  27408. <param name="out" type="java.io.OutputStream"/>
  27409. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27410. <exception name="IOException" type="java.io.IOException"/>
  27411. </method>
  27412. <method name="getCompressorType" return="java.lang.Class"
  27413. abstract="false" native="false" synchronized="false"
  27414. static="false" final="false" visibility="public"
  27415. deprecated="not deprecated">
  27416. </method>
  27417. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27418. abstract="false" native="false" synchronized="false"
  27419. static="false" final="false" visibility="public"
  27420. deprecated="not deprecated">
  27421. </method>
  27422. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27423. abstract="false" native="false" synchronized="false"
  27424. static="false" final="false" visibility="public"
  27425. deprecated="not deprecated">
  27426. <param name="in" type="java.io.InputStream"/>
  27427. <exception name="IOException" type="java.io.IOException"/>
  27428. </method>
  27429. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27430. abstract="false" native="false" synchronized="false"
  27431. static="false" final="false" visibility="public"
  27432. deprecated="not deprecated">
  27433. <param name="in" type="java.io.InputStream"/>
  27434. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27435. <exception name="IOException" type="java.io.IOException"/>
  27436. </method>
  27437. <method name="getDecompressorType" return="java.lang.Class"
  27438. abstract="false" native="false" synchronized="false"
  27439. static="false" final="false" visibility="public"
  27440. deprecated="not deprecated">
  27441. </method>
  27442. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27443. abstract="false" native="false" synchronized="false"
  27444. static="false" final="false" visibility="public"
  27445. deprecated="not deprecated">
  27446. </method>
  27447. <field name="CLASSNAME" type="java.lang.String"
  27448. transient="false" volatile="false"
  27449. static="true" final="true" visibility="public"
  27450. deprecated="not deprecated">
  27451. <doc>
  27452. <![CDATA[Classname of the codec: {@value}.]]>
  27453. </doc>
  27454. </field>
  27455. <field name="OPT_EXTENSION" type="java.lang.String"
  27456. transient="false" volatile="false"
  27457. static="true" final="true" visibility="public"
  27458. deprecated="not deprecated">
  27459. <doc>
  27460. <![CDATA[Option to control the extension of the code: {@value}.]]>
  27461. </doc>
  27462. </field>
  27463. <field name="DEFAULT_EXTENSION" type="java.lang.String"
  27464. transient="false" volatile="false"
  27465. static="true" final="true" visibility="public"
  27466. deprecated="not deprecated">
  27467. <doc>
  27468. <![CDATA[This default extension is here so that if no extension has been defined,
  27469. some value is still returned: {@value}..]]>
  27470. </doc>
  27471. </field>
  27472. <doc>
  27473. <![CDATA[This is a special codec which does not transform the output.
  27474. It can be declared as a codec in the option "io.compression.codecs",
  27475. and then it will declare that it supports the file extension
  27476. set in {@link #OPT_EXTENSION}.
  27477. This allows decompression to be disabled on a job, even when there is
  27478. a registered/discoverable decompression codec for a file extension
  27479. -without having to change the standard codec binding mechanism.
  27480. For example, to disable decompression for a gzipped files, set the
  27481. options
  27482. <pre>
  27483. io.compression.codecs = org.apache.hadoop.io.compress.PassthroughCodec
  27484. io.compress.passthrough.extension = .gz
  27485. </pre>
  27486. <i>Note:</i> this is not a Splittable codec: it doesn't know the
  27487. capabilities of the passed in stream. It should be possible to
  27488. extend this in a subclass: the inner classes are marked as protected
  27489. to enable this. <i>Do not retrofit splitting to this class.</i>.]]>
  27490. </doc>
  27491. </class>
  27492. <!-- end class org.apache.hadoop.io.compress.PassthroughCodec -->
  27493. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  27494. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  27495. abstract="true"
  27496. static="false" final="false" visibility="public"
  27497. deprecated="not deprecated">
  27498. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  27499. static="false" final="false" visibility="public"
  27500. deprecated="not deprecated">
  27501. <exception name="IOException" type="java.io.IOException"/>
  27502. </constructor>
  27503. <method name="setStart"
  27504. abstract="false" native="false" synchronized="false"
  27505. static="false" final="false" visibility="protected"
  27506. deprecated="not deprecated">
  27507. <param name="start" type="long"/>
  27508. </method>
  27509. <method name="setEnd"
  27510. abstract="false" native="false" synchronized="false"
  27511. static="false" final="false" visibility="protected"
  27512. deprecated="not deprecated">
  27513. <param name="end" type="long"/>
  27514. </method>
  27515. <method name="getAdjustedStart" return="long"
  27516. abstract="false" native="false" synchronized="false"
  27517. static="false" final="false" visibility="public"
  27518. deprecated="not deprecated">
  27519. <doc>
  27520. <![CDATA[After calling createInputStream, the values of start or end
  27521. might change. So this method can be used to get the new value of start.
  27522. @return The changed value of start]]>
  27523. </doc>
  27524. </method>
  27525. <method name="getAdjustedEnd" return="long"
  27526. abstract="false" native="false" synchronized="false"
  27527. static="false" final="false" visibility="public"
  27528. deprecated="not deprecated">
  27529. <doc>
  27530. <![CDATA[After calling createInputStream, the values of start or end
  27531. might change. So this method can be used to get the new value of end.
  27532. @return The changed value of end]]>
  27533. </doc>
  27534. </method>
  27535. <doc>
  27536. <![CDATA[An InputStream covering a range of compressed data. The start and end
  27537. offsets requested by a client may be modified by the codec to fit block
  27538. boundaries or other algorithm-dependent requirements.]]>
  27539. </doc>
  27540. </class>
  27541. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  27542. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  27543. <interface name="SplittableCompressionCodec" abstract="true"
  27544. static="false" final="false" visibility="public"
  27545. deprecated="not deprecated">
  27546. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27547. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  27548. abstract="true" native="false" synchronized="false"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. <param name="seekableIn" type="java.io.InputStream"/>
  27552. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27553. <param name="start" type="long"/>
  27554. <param name="end" type="long"/>
  27555. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  27556. <exception name="IOException" type="java.io.IOException"/>
  27557. <doc>
  27558. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  27559. the codecs wants the ability to work with the underlying stream positions.
  27560. @param decompressor decompressor.
  27561. @param seekableIn The seekable input stream (seeks in compressed data)
  27562. @param start The start offset into the compressed stream. May be changed
  27563. by the underlying codec.
  27564. @param end The end offset into the compressed stream. May be changed by
  27565. the underlying codec.
  27566. @param readMode Controls whether stream position is reported continuously
  27567. from the compressed stream only only at block boundaries.
  27568. @return a stream to read uncompressed bytes from
  27569. @throws IOException raised on errors performing I/O.]]>
  27570. </doc>
  27571. </method>
  27572. <doc>
  27573. <![CDATA[This interface is meant to be implemented by those compression codecs
  27574. which are capable to compress / de-compress a stream starting at any
  27575. arbitrary position.
  27576. Especially the process of de-compressing a stream starting at some arbitrary
  27577. position is challenging. Most of the codecs are only able to successfully
  27578. de-compress a stream, if they start from the very beginning till the end.
  27579. One of the reasons is the stored state at the beginning of the stream which
  27580. is crucial for de-compression.
  27581. Yet there are few codecs which do not save the whole state at the beginning
  27582. of the stream and hence can be used to de-compress stream starting at any
  27583. arbitrary points. This interface is meant to be used by such codecs. Such
  27584. codecs are highly valuable, especially in the context of Hadoop, because
  27585. an input compressed file can be split and hence can be worked on by multiple
  27586. machines in parallel.]]>
  27587. </doc>
  27588. </interface>
  27589. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  27590. </package>
  27591. <package name="org.apache.hadoop.io.erasurecode">
  27592. <!-- start class org.apache.hadoop.io.erasurecode.ECSchema -->
  27593. <class name="ECSchema" extends="java.lang.Object"
  27594. abstract="false"
  27595. static="false" final="true" visibility="public"
  27596. deprecated="not deprecated">
  27597. <implements name="java.io.Serializable"/>
  27598. <constructor name="ECSchema" type="java.util.Map"
  27599. static="false" final="false" visibility="public"
  27600. deprecated="not deprecated">
  27601. <doc>
  27602. <![CDATA[Constructor with schema name and provided all options. Note the options may
  27603. contain additional information for the erasure codec to interpret further.
  27604. @param allOptions all schema options]]>
  27605. </doc>
  27606. </constructor>
  27607. <constructor name="ECSchema" type="java.lang.String, int, int"
  27608. static="false" final="false" visibility="public"
  27609. deprecated="not deprecated">
  27610. <doc>
  27611. <![CDATA[Constructor with key parameters provided.
  27612. @param codecName codec name
  27613. @param numDataUnits number of data units used in the schema
  27614. @param numParityUnits number os parity units used in the schema]]>
  27615. </doc>
  27616. </constructor>
  27617. <constructor name="ECSchema" type="java.lang.String, int, int, java.util.Map"
  27618. static="false" final="false" visibility="public"
  27619. deprecated="not deprecated">
  27620. <doc>
  27621. <![CDATA[Constructor with key parameters provided. Note the extraOptions may contain
  27622. additional information for the erasure codec to interpret further.
  27623. @param codecName codec name
  27624. @param numDataUnits number of data units used in the schema
  27625. @param numParityUnits number os parity units used in the schema
  27626. @param extraOptions extra options to configure the codec]]>
  27627. </doc>
  27628. </constructor>
  27629. <method name="getCodecName" return="java.lang.String"
  27630. abstract="false" native="false" synchronized="false"
  27631. static="false" final="false" visibility="public"
  27632. deprecated="not deprecated">
  27633. <doc>
  27634. <![CDATA[Get the codec name
  27635. @return codec name]]>
  27636. </doc>
  27637. </method>
  27638. <method name="getExtraOptions" return="java.util.Map"
  27639. abstract="false" native="false" synchronized="false"
  27640. static="false" final="false" visibility="public"
  27641. deprecated="not deprecated">
  27642. <doc>
  27643. <![CDATA[Get extra options specific to a erasure code.
  27644. @return extra options]]>
  27645. </doc>
  27646. </method>
  27647. <method name="getNumDataUnits" return="int"
  27648. abstract="false" native="false" synchronized="false"
  27649. static="false" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. <doc>
  27652. <![CDATA[Get required data units count in a coding group
  27653. @return count of data units]]>
  27654. </doc>
  27655. </method>
  27656. <method name="getNumParityUnits" return="int"
  27657. abstract="false" native="false" synchronized="false"
  27658. static="false" final="false" visibility="public"
  27659. deprecated="not deprecated">
  27660. <doc>
  27661. <![CDATA[Get required parity units count in a coding group
  27662. @return count of parity units]]>
  27663. </doc>
  27664. </method>
  27665. <method name="toString" return="java.lang.String"
  27666. abstract="false" native="false" synchronized="false"
  27667. static="false" final="false" visibility="public"
  27668. deprecated="not deprecated">
  27669. <doc>
  27670. <![CDATA[Make a meaningful string representation for log output.
  27671. @return string representation]]>
  27672. </doc>
  27673. </method>
  27674. <method name="equals" return="boolean"
  27675. abstract="false" native="false" synchronized="false"
  27676. static="false" final="false" visibility="public"
  27677. deprecated="not deprecated">
  27678. <param name="o" type="java.lang.Object"/>
  27679. </method>
  27680. <method name="hashCode" return="int"
  27681. abstract="false" native="false" synchronized="false"
  27682. static="false" final="false" visibility="public"
  27683. deprecated="not deprecated">
  27684. </method>
  27685. <field name="NUM_DATA_UNITS_KEY" type="java.lang.String"
  27686. transient="false" volatile="false"
  27687. static="true" final="true" visibility="public"
  27688. deprecated="not deprecated">
  27689. </field>
  27690. <field name="NUM_PARITY_UNITS_KEY" type="java.lang.String"
  27691. transient="false" volatile="false"
  27692. static="true" final="true" visibility="public"
  27693. deprecated="not deprecated">
  27694. </field>
  27695. <field name="CODEC_NAME_KEY" type="java.lang.String"
  27696. transient="false" volatile="false"
  27697. static="true" final="true" visibility="public"
  27698. deprecated="not deprecated">
  27699. </field>
  27700. <doc>
  27701. <![CDATA[Erasure coding schema to housekeeper relevant information.]]>
  27702. </doc>
  27703. </class>
  27704. <!-- end class org.apache.hadoop.io.erasurecode.ECSchema -->
  27705. </package>
  27706. <package name="org.apache.hadoop.io.erasurecode.coder.util">
  27707. </package>
  27708. <package name="org.apache.hadoop.io.erasurecode.grouper">
  27709. </package>
  27710. <package name="org.apache.hadoop.io.file.tfile">
  27711. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  27712. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  27713. abstract="false"
  27714. static="false" final="false" visibility="public"
  27715. deprecated="not deprecated">
  27716. <doc>
  27717. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  27718. </doc>
  27719. </class>
  27720. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  27721. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  27722. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  27723. abstract="false"
  27724. static="false" final="false" visibility="public"
  27725. deprecated="not deprecated">
  27726. <doc>
  27727. <![CDATA[Exception - No such Meta Block with the given name.]]>
  27728. </doc>
  27729. </class>
  27730. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  27731. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  27732. <interface name="RawComparable" abstract="true"
  27733. static="false" final="false" visibility="public"
  27734. deprecated="not deprecated">
  27735. <method name="buffer" return="byte[]"
  27736. abstract="true" native="false" synchronized="false"
  27737. static="false" final="false" visibility="public"
  27738. deprecated="not deprecated">
  27739. <doc>
  27740. <![CDATA[Get the underlying byte array.
  27741. @return The underlying byte array.]]>
  27742. </doc>
  27743. </method>
  27744. <method name="offset" return="int"
  27745. abstract="true" native="false" synchronized="false"
  27746. static="false" final="false" visibility="public"
  27747. deprecated="not deprecated">
  27748. <doc>
  27749. <![CDATA[Get the offset of the first byte in the byte array.
  27750. @return The offset of the first byte in the byte array.]]>
  27751. </doc>
  27752. </method>
  27753. <method name="size" return="int"
  27754. abstract="true" native="false" synchronized="false"
  27755. static="false" final="false" visibility="public"
  27756. deprecated="not deprecated">
  27757. <doc>
  27758. <![CDATA[Get the size of the byte range in the byte array.
  27759. @return The size of the byte range in the byte array.]]>
  27760. </doc>
  27761. </method>
  27762. <doc>
  27763. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  27764. This is useful in places where we need a single object reference to specify a
  27765. range of bytes in a byte array, such as {@link Comparable} or
  27766. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  27767. The actual comparison among RawComparable's requires an external
  27768. RawComparator and it is applications' responsibility to ensure two
  27769. RawComparable are supposed to be semantically comparable with the same
  27770. RawComparator.]]>
  27771. </doc>
  27772. </interface>
  27773. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  27774. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  27775. <class name="TFile" extends="java.lang.Object"
  27776. abstract="false"
  27777. static="false" final="false" visibility="public"
  27778. deprecated="not deprecated">
  27779. <method name="makeComparator" return="java.util.Comparator"
  27780. abstract="false" native="false" synchronized="false"
  27781. static="true" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. <param name="name" type="java.lang.String"/>
  27784. <doc>
  27785. <![CDATA[Make a raw comparator from a string name.
  27786. @param name
  27787. Comparator name
  27788. @return A RawComparable comparator.]]>
  27789. </doc>
  27790. </method>
  27791. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  27792. abstract="false" native="false" synchronized="false"
  27793. static="true" final="false" visibility="public"
  27794. deprecated="not deprecated">
  27795. <doc>
  27796. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  27797. TFile.Writer.
  27798. @return Array of strings, each represents a supported compression
  27799. algorithm. Currently, the following compression algorithms are
  27800. supported.
  27801. <ul>
  27802. <li>"none" - No compression.
  27803. <li>"lzo" - LZO compression.
  27804. <li>"gz" - GZIP compression.
  27805. </ul>]]>
  27806. </doc>
  27807. </method>
  27808. <method name="main"
  27809. abstract="false" native="false" synchronized="false"
  27810. static="true" final="false" visibility="public"
  27811. deprecated="not deprecated">
  27812. <param name="args" type="java.lang.String[]"/>
  27813. <doc>
  27814. <![CDATA[Dumping the TFile information.
  27815. @param args
  27816. A list of TFile paths.]]>
  27817. </doc>
  27818. </method>
  27819. <field name="COMPRESSION_GZ" type="java.lang.String"
  27820. transient="false" volatile="false"
  27821. static="true" final="true" visibility="public"
  27822. deprecated="not deprecated">
  27823. <doc>
  27824. <![CDATA[compression: gzip]]>
  27825. </doc>
  27826. </field>
  27827. <field name="COMPRESSION_LZO" type="java.lang.String"
  27828. transient="false" volatile="false"
  27829. static="true" final="true" visibility="public"
  27830. deprecated="not deprecated">
  27831. <doc>
  27832. <![CDATA[compression: lzo]]>
  27833. </doc>
  27834. </field>
  27835. <field name="COMPRESSION_NONE" type="java.lang.String"
  27836. transient="false" volatile="false"
  27837. static="true" final="true" visibility="public"
  27838. deprecated="not deprecated">
  27839. <doc>
  27840. <![CDATA[compression: none]]>
  27841. </doc>
  27842. </field>
  27843. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  27844. transient="false" volatile="false"
  27845. static="true" final="true" visibility="public"
  27846. deprecated="not deprecated">
  27847. <doc>
  27848. <![CDATA[comparator: memcmp]]>
  27849. </doc>
  27850. </field>
  27851. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  27852. transient="false" volatile="false"
  27853. static="true" final="true" visibility="public"
  27854. deprecated="not deprecated">
  27855. <doc>
  27856. <![CDATA[comparator prefix: java class]]>
  27857. </doc>
  27858. </field>
  27859. <doc>
  27860. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  27861. bytes. Keys are restricted to 64KB, value length is not restricted
  27862. (practically limited to the available disk storage). TFile further provides
  27863. the following features:
  27864. <ul>
  27865. <li>Block Compression.
  27866. <li>Named meta data blocks.
  27867. <li>Sorted or unsorted keys.
  27868. <li>Seek by key or by file offset.
  27869. </ul>
  27870. The memory footprint of a TFile includes the following:
  27871. <ul>
  27872. <li>Some constant overhead of reading or writing a compressed block.
  27873. <ul>
  27874. <li>Each compressed block requires one compression/decompression codec for
  27875. I/O.
  27876. <li>Temporary space to buffer the key.
  27877. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  27878. chunk encoded, so that we buffer at most one chunk of user data. By default,
  27879. the chunk buffer is 1MB. Reading chunked value does not require additional
  27880. memory.
  27881. </ul>
  27882. <li>TFile index, which is proportional to the total number of Data Blocks.
  27883. The total amount of memory needed to hold the index can be estimated as
  27884. (56+AvgKeySize)*NumBlocks.
  27885. <li>MetaBlock index, which is proportional to the total number of Meta
  27886. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  27887. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  27888. </ul>
  27889. <p>
  27890. The behavior of TFile can be customized by the following variables through
  27891. Configuration:
  27892. <ul>
  27893. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  27894. to 1MB. Values of the length less than the chunk size is guaranteed to have
  27895. known value length in read time (See
  27896. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  27897. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  27898. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  27899. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  27900. FSDataInputStream. Integer (in bytes). Default to 256KB.
  27901. </ul>
  27902. <p>
  27903. Suggestions on performance optimization.
  27904. <ul>
  27905. <li>Minimum block size. We recommend a setting of minimum block size between
  27906. 256KB to 1MB for general usage. Larger block size is preferred if files are
  27907. primarily for sequential access. However, it would lead to inefficient random
  27908. access (because there are more data to decompress). Smaller blocks are good
  27909. for random access, but require more memory to hold the block index, and may
  27910. be slower to create (because we must flush the compressor stream at the
  27911. conclusion of each data block, which leads to an FS I/O flush). Further, due
  27912. to the internal caching in Compression codec, the smallest possible block
  27913. size would be around 20KB-30KB.
  27914. <li>The current implementation does not offer true multi-threading for
  27915. reading. The implementation uses FSDataInputStream seek()+read(), which is
  27916. shown to be much faster than positioned-read call in single thread mode.
  27917. However, it also means that if multiple threads attempt to access the same
  27918. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  27919. sequentially even if they access different DFS blocks.
  27920. <li>Compression codec. Use "none" if the data is not very compressable (by
  27921. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  27922. as the starting point for experimenting. "gz" overs slightly better
  27923. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  27924. decompress, comparing to "lzo".
  27925. <li>File system buffering, if the underlying FSDataInputStream and
  27926. FSDataOutputStream is already adequately buffered; or if applications
  27927. reads/writes keys and values in large buffers, we can reduce the sizes of
  27928. input/output buffering in TFile layer by setting the configuration parameters
  27929. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  27930. </ul>
  27931. Some design rationale behind TFile can be found at <a
  27932. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  27933. </doc>
  27934. </class>
  27935. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  27936. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  27937. <class name="Utils" extends="java.lang.Object"
  27938. abstract="false"
  27939. static="false" final="true" visibility="public"
  27940. deprecated="not deprecated">
  27941. <method name="writeVInt"
  27942. abstract="false" native="false" synchronized="false"
  27943. static="true" final="false" visibility="public"
  27944. deprecated="not deprecated">
  27945. <param name="out" type="java.io.DataOutput"/>
  27946. <param name="n" type="int"/>
  27947. <exception name="IOException" type="java.io.IOException"/>
  27948. <doc>
  27949. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  27950. <code>Utils#writeVLong(out, n)</code>.
  27951. @param out
  27952. output stream
  27953. @param n
  27954. The integer to be encoded
  27955. @throws IOException raised on errors performing I/O.
  27956. @see Utils#writeVLong(DataOutput, long)]]>
  27957. </doc>
  27958. </method>
  27959. <method name="writeVLong"
  27960. abstract="false" native="false" synchronized="false"
  27961. static="true" final="false" visibility="public"
  27962. deprecated="not deprecated">
  27963. <param name="out" type="java.io.DataOutput"/>
  27964. <param name="n" type="long"/>
  27965. <exception name="IOException" type="java.io.IOException"/>
  27966. <doc>
  27967. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  27968. <ul>
  27969. <li>if n in [-32, 127): encode in one byte with the actual value.
  27970. Otherwise,
  27971. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  27972. byte[1]=n&amp;0xff. Otherwise,
  27973. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  27974. 88; byte[1]=(n&gt;&gt;8)&amp;0xff; byte[2]=n&amp;0xff. Otherwise,
  27975. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  27976. byte[1] = (n&gt;&gt;16)&amp;0xff; byte[2] = (n&gt;&gt;8)&amp;0xff;
  27977. byte[3]=n&amp;0xff.
  27978. Otherwise:
  27979. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  27980. (n&gt;&gt;24)&amp;0xff; byte[2]=(n&gt;&gt;16)&amp;0xff;
  27981. byte[3]=(n&gt;&gt;8)&amp;0xff; byte[4]=n&amp;0xff;
  27982. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  27983. (n&gt;&gt;32)&amp;0xff; byte[2]=(n&gt;&gt;24)&amp;0xff;
  27984. byte[3]=(n&gt;&gt;16)&amp;0xff; byte[4]=(n&gt;&gt;8)&amp;0xff;
  27985. byte[5]=n&amp;0xff
  27986. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  27987. (n&gt;&gt;40)&amp;0xff; byte[2]=(n&gt;&gt;32)&amp;0xff;
  27988. byte[3]=(n&gt;&gt;24)&amp;0xff; byte[4]=(n&gt;&gt;16)&amp;0xff;
  27989. byte[5]=(n&gt;&gt;8)&amp;0xff; byte[6]=n&amp;0xff;
  27990. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  27991. (n&gt;&gt;48)&amp;0xff; byte[2] = (n&gt;&gt;40)&amp;0xff;
  27992. byte[3]=(n&gt;&gt;32)&amp;0xff; byte[4]=(n&gt;&gt;24)&amp;0xff; byte[5]=
  27993. (n&gt;&gt;16)&amp;0xff; byte[6]=(n&gt;&gt;8)&amp;0xff; byte[7]=n&amp;0xff;
  27994. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  27995. (n&gt;&gt;54)&amp;0xff; byte[2] = (n&gt;&gt;48)&amp;0xff;
  27996. byte[3] = (n&gt;&gt;40)&amp;0xff; byte[4]=(n&gt;&gt;32)&amp;0xff;
  27997. byte[5]=(n&gt;&gt;24)&amp;0xff; byte[6]=(n&gt;&gt;16)&amp;0xff; byte[7]=
  27998. (n&gt;&gt;8)&amp;0xff; byte[8]=n&amp;0xff;
  27999. </ul>
  28000. @param out
  28001. output stream
  28002. @param n
  28003. the integer number
  28004. @throws IOException raised on errors performing I/O.]]>
  28005. </doc>
  28006. </method>
  28007. <method name="readVInt" return="int"
  28008. abstract="false" native="false" synchronized="false"
  28009. static="true" final="false" visibility="public"
  28010. deprecated="not deprecated">
  28011. <param name="in" type="java.io.DataInput"/>
  28012. <exception name="IOException" type="java.io.IOException"/>
  28013. <doc>
  28014. <![CDATA[Decoding the variable-length integer. Synonymous to
  28015. <code>(int)Utils#readVLong(in)</code>.
  28016. @param in
  28017. input stream
  28018. @return the decoded integer
  28019. @throws IOException raised on errors performing I/O.
  28020. @see Utils#readVLong(DataInput)]]>
  28021. </doc>
  28022. </method>
  28023. <method name="readVLong" return="long"
  28024. abstract="false" native="false" synchronized="false"
  28025. static="true" final="false" visibility="public"
  28026. deprecated="not deprecated">
  28027. <param name="in" type="java.io.DataInput"/>
  28028. <exception name="IOException" type="java.io.IOException"/>
  28029. <doc>
  28030. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  28031. is FB, and the following bytes are NB[*].
  28032. <ul>
  28033. <li>if (FB &gt;= -32), return (long)FB;
  28034. <li>if (FB in [-72, -33]), return (FB+52)&lt;&lt;8 + NB[0]&amp;0xff;
  28035. <li>if (FB in [-104, -73]), return (FB+88)&lt;&lt;16 +
  28036. (NB[0]&amp;0xff)&lt;&lt;8 + NB[1]&amp;0xff;
  28037. <li>if (FB in [-120, -105]), return (FB+112)&lt;&lt;24 + (NB[0]&amp;0xff)
  28038. &lt;&lt;16 + (NB[1]&amp;0xff)&lt;&lt;8 + NB[2]&amp;0xff;
  28039. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  28040. big-endian integer.
  28041. </ul>
  28042. @param in
  28043. input stream
  28044. @return the decoded long integer.
  28045. @throws IOException raised on errors performing I/O.]]>
  28046. </doc>
  28047. </method>
  28048. <method name="writeString"
  28049. abstract="false" native="false" synchronized="false"
  28050. static="true" final="false" visibility="public"
  28051. deprecated="not deprecated">
  28052. <param name="out" type="java.io.DataOutput"/>
  28053. <param name="s" type="java.lang.String"/>
  28054. <exception name="IOException" type="java.io.IOException"/>
  28055. <doc>
  28056. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  28057. @param out out.
  28058. @param s s.
  28059. @throws IOException raised on errors performing I/O.]]>
  28060. </doc>
  28061. </method>
  28062. <method name="readString" return="java.lang.String"
  28063. abstract="false" native="false" synchronized="false"
  28064. static="true" final="false" visibility="public"
  28065. deprecated="not deprecated">
  28066. <param name="in" type="java.io.DataInput"/>
  28067. <exception name="IOException" type="java.io.IOException"/>
  28068. <doc>
  28069. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  28070. @param in
  28071. The input stream.
  28072. @return The string
  28073. @throws IOException raised on errors performing I/O.]]>
  28074. </doc>
  28075. </method>
  28076. <method name="lowerBound" return="int"
  28077. abstract="false" native="false" synchronized="false"
  28078. static="true" final="false" visibility="public"
  28079. deprecated="not deprecated">
  28080. <param name="list" type="java.util.List"/>
  28081. <param name="key" type="T"/>
  28082. <param name="cmp" type="java.util.Comparator"/>
  28083. <doc>
  28084. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  28085. that compares greater than or equal to key.
  28086. @param <T>
  28087. Type of the input key.
  28088. @param list
  28089. The list
  28090. @param key
  28091. The input key.
  28092. @param cmp
  28093. Comparator for the key.
  28094. @return The index to the desired element if it exists; or list.size()
  28095. otherwise.]]>
  28096. </doc>
  28097. </method>
  28098. <method name="upperBound" return="int"
  28099. abstract="false" native="false" synchronized="false"
  28100. static="true" final="false" visibility="public"
  28101. deprecated="not deprecated">
  28102. <param name="list" type="java.util.List"/>
  28103. <param name="key" type="T"/>
  28104. <param name="cmp" type="java.util.Comparator"/>
  28105. <doc>
  28106. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  28107. that compares greater than the input key.
  28108. @param <T>
  28109. Type of the input key.
  28110. @param list
  28111. The list
  28112. @param key
  28113. The input key.
  28114. @param cmp
  28115. Comparator for the key.
  28116. @return The index to the desired element if it exists; or list.size()
  28117. otherwise.]]>
  28118. </doc>
  28119. </method>
  28120. <method name="lowerBound" return="int"
  28121. abstract="false" native="false" synchronized="false"
  28122. static="true" final="false" visibility="public"
  28123. deprecated="not deprecated">
  28124. <param name="list" type="java.util.List"/>
  28125. <param name="key" type="T"/>
  28126. <doc>
  28127. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  28128. that compares greater than or equal to key.
  28129. @param <T>
  28130. Type of the input key.
  28131. @param list
  28132. The list
  28133. @param key
  28134. The input key.
  28135. @return The index to the desired element if it exists; or list.size()
  28136. otherwise.]]>
  28137. </doc>
  28138. </method>
  28139. <method name="upperBound" return="int"
  28140. abstract="false" native="false" synchronized="false"
  28141. static="true" final="false" visibility="public"
  28142. deprecated="not deprecated">
  28143. <param name="list" type="java.util.List"/>
  28144. <param name="key" type="T"/>
  28145. <doc>
  28146. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  28147. that compares greater than the input key.
  28148. @param <T>
  28149. Type of the input key.
  28150. @param list
  28151. The list
  28152. @param key
  28153. The input key.
  28154. @return The index to the desired element if it exists; or list.size()
  28155. otherwise.]]>
  28156. </doc>
  28157. </method>
  28158. <doc>
  28159. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  28160. </doc>
  28161. </class>
  28162. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  28163. </package>
  28164. <package name="org.apache.hadoop.io.serializer">
  28165. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  28166. <class name="JavaSerialization" extends="java.lang.Object"
  28167. abstract="false"
  28168. static="false" final="false" visibility="public"
  28169. deprecated="not deprecated">
  28170. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  28171. <constructor name="JavaSerialization"
  28172. static="false" final="false" visibility="public"
  28173. deprecated="not deprecated">
  28174. </constructor>
  28175. <doc>
  28176. <![CDATA[<p>
  28177. An experimental {@link Serialization} for Java {@link Serializable} classes.
  28178. </p>
  28179. @see JavaSerializationComparator]]>
  28180. </doc>
  28181. </class>
  28182. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  28183. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  28184. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  28185. abstract="false"
  28186. static="false" final="false" visibility="public"
  28187. deprecated="not deprecated">
  28188. <constructor name="JavaSerializationComparator"
  28189. static="false" final="false" visibility="public"
  28190. deprecated="not deprecated">
  28191. <exception name="IOException" type="java.io.IOException"/>
  28192. </constructor>
  28193. <doc>
  28194. <![CDATA[<p>
  28195. A {@link RawComparator} that uses a {@link JavaSerialization}
  28196. {@link Deserializer} to deserialize objects that are then compared via
  28197. their {@link Comparable} interfaces.
  28198. </p>
  28199. @param <T> generic type.
  28200. @see JavaSerialization]]>
  28201. </doc>
  28202. </class>
  28203. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  28204. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  28205. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  28206. abstract="false"
  28207. static="false" final="false" visibility="public"
  28208. deprecated="not deprecated">
  28209. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  28210. <constructor name="WritableSerialization"
  28211. static="false" final="false" visibility="public"
  28212. deprecated="not deprecated">
  28213. </constructor>
  28214. <doc>
  28215. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  28216. {@link Writable#write(java.io.DataOutput)} and
  28217. {@link Writable#readFields(java.io.DataInput)}.]]>
  28218. </doc>
  28219. </class>
  28220. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  28221. <doc>
  28222. <![CDATA[<p>
  28223. This package provides a mechanism for using different serialization frameworks
  28224. in Hadoop. The property "io.serializations" defines a list of
  28225. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  28226. {@link org.apache.hadoop.io.serializer.Serializer}s and
  28227. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  28228. </p>
  28229. <p>
  28230. To add a new serialization framework write an implementation of
  28231. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  28232. "io.serializations" property.
  28233. </p>]]>
  28234. </doc>
  28235. </package>
  28236. <package name="org.apache.hadoop.io.serializer.avro">
  28237. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  28238. <interface name="AvroReflectSerializable" abstract="true"
  28239. static="false" final="false" visibility="public"
  28240. deprecated="not deprecated">
  28241. <doc>
  28242. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  28243. this interface can be serialized/deserialized using
  28244. {@link AvroReflectSerialization}.]]>
  28245. </doc>
  28246. </interface>
  28247. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  28248. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  28249. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  28250. abstract="false"
  28251. static="false" final="false" visibility="public"
  28252. deprecated="not deprecated">
  28253. <constructor name="AvroReflectSerialization"
  28254. static="false" final="false" visibility="public"
  28255. deprecated="not deprecated">
  28256. </constructor>
  28257. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  28258. transient="false" volatile="false"
  28259. static="true" final="true" visibility="public"
  28260. deprecated="not deprecated">
  28261. <doc>
  28262. <![CDATA[Key to configure packages that contain classes to be serialized and
  28263. deserialized using this class. Multiple packages can be specified using
  28264. comma-separated list.]]>
  28265. </doc>
  28266. </field>
  28267. <doc>
  28268. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  28269. serialization, it must either be in the package list configured via
  28270. <code>avro.reflect.pkgs</code> or implement
  28271. {@link AvroReflectSerializable} interface.]]>
  28272. </doc>
  28273. </class>
  28274. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  28275. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  28276. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  28277. abstract="true"
  28278. static="false" final="false" visibility="public"
  28279. deprecated="not deprecated">
  28280. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  28281. <constructor name="AvroSerialization"
  28282. static="false" final="false" visibility="public"
  28283. deprecated="not deprecated">
  28284. </constructor>
  28285. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  28286. transient="false" volatile="false"
  28287. static="true" final="true" visibility="public"
  28288. deprecated="not deprecated">
  28289. </field>
  28290. <doc>
  28291. <![CDATA[Base class for providing serialization to Avro types.]]>
  28292. </doc>
  28293. </class>
  28294. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  28295. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  28296. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  28297. abstract="false"
  28298. static="false" final="false" visibility="public"
  28299. deprecated="not deprecated">
  28300. <constructor name="AvroSpecificSerialization"
  28301. static="false" final="false" visibility="public"
  28302. deprecated="not deprecated">
  28303. </constructor>
  28304. <doc>
  28305. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  28306. for classes generated by Avro's 'specific' compiler.]]>
  28307. </doc>
  28308. </class>
  28309. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  28310. <doc>
  28311. <![CDATA[<p>
  28312. This package provides Avro serialization in Hadoop. This can be used to
  28313. serialize/deserialize Avro types in Hadoop.
  28314. </p>
  28315. <p>
  28316. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  28317. serialization of classes generated by Avro's 'specific' compiler.
  28318. </p>
  28319. <p>
  28320. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  28321. other classes.
  28322. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  28323. any class which is either in the package list configured via
  28324. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  28325. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  28326. interface.
  28327. </p>]]>
  28328. </doc>
  28329. </package>
  28330. <package name="org.apache.hadoop.ipc.protocolPB">
  28331. </package>
  28332. <package name="org.apache.hadoop.log">
  28333. </package>
  28334. <package name="org.apache.hadoop.log.metrics">
  28335. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  28336. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  28337. abstract="false"
  28338. static="false" final="false" visibility="public"
  28339. deprecated="not deprecated">
  28340. <constructor name="EventCounter"
  28341. static="false" final="false" visibility="public"
  28342. deprecated="not deprecated">
  28343. </constructor>
  28344. <method name="append"
  28345. abstract="false" native="false" synchronized="false"
  28346. static="false" final="false" visibility="public"
  28347. deprecated="not deprecated">
  28348. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  28349. </method>
  28350. <method name="close"
  28351. abstract="false" native="false" synchronized="false"
  28352. static="false" final="false" visibility="public"
  28353. deprecated="not deprecated">
  28354. </method>
  28355. <method name="requiresLayout" return="boolean"
  28356. abstract="false" native="false" synchronized="false"
  28357. static="false" final="false" visibility="public"
  28358. deprecated="not deprecated">
  28359. </method>
  28360. <doc>
  28361. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  28362. fatal, error and warn. The class name is used in log4j.properties]]>
  28363. </doc>
  28364. </class>
  28365. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  28366. </package>
  28367. <package name="org.apache.hadoop.metrics2">
  28368. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  28369. <class name="AbstractMetric" extends="java.lang.Object"
  28370. abstract="true"
  28371. static="false" final="false" visibility="public"
  28372. deprecated="not deprecated">
  28373. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  28374. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  28375. static="false" final="false" visibility="protected"
  28376. deprecated="not deprecated">
  28377. <doc>
  28378. <![CDATA[Construct the metric
  28379. @param info about the metric]]>
  28380. </doc>
  28381. </constructor>
  28382. <method name="name" return="java.lang.String"
  28383. abstract="false" native="false" synchronized="false"
  28384. static="false" final="false" visibility="public"
  28385. deprecated="not deprecated">
  28386. </method>
  28387. <method name="description" return="java.lang.String"
  28388. abstract="false" native="false" synchronized="false"
  28389. static="false" final="false" visibility="public"
  28390. deprecated="not deprecated">
  28391. </method>
  28392. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  28393. abstract="false" native="false" synchronized="false"
  28394. static="false" final="false" visibility="protected"
  28395. deprecated="not deprecated">
  28396. </method>
  28397. <method name="value" return="java.lang.Number"
  28398. abstract="true" native="false" synchronized="false"
  28399. static="false" final="false" visibility="public"
  28400. deprecated="not deprecated">
  28401. <doc>
  28402. <![CDATA[Get the value of the metric
  28403. @return the value of the metric]]>
  28404. </doc>
  28405. </method>
  28406. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  28407. abstract="true" native="false" synchronized="false"
  28408. static="false" final="false" visibility="public"
  28409. deprecated="not deprecated">
  28410. <doc>
  28411. <![CDATA[Get the type of the metric
  28412. @return the type of the metric]]>
  28413. </doc>
  28414. </method>
  28415. <method name="visit"
  28416. abstract="true" native="false" synchronized="false"
  28417. static="false" final="false" visibility="public"
  28418. deprecated="not deprecated">
  28419. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  28420. <doc>
  28421. <![CDATA[Accept a visitor interface
  28422. @param visitor of the metric]]>
  28423. </doc>
  28424. </method>
  28425. <method name="equals" return="boolean"
  28426. abstract="false" native="false" synchronized="false"
  28427. static="false" final="false" visibility="public"
  28428. deprecated="not deprecated">
  28429. <param name="obj" type="java.lang.Object"/>
  28430. </method>
  28431. <method name="hashCode" return="int"
  28432. abstract="false" native="false" synchronized="false"
  28433. static="false" final="false" visibility="public"
  28434. deprecated="not deprecated">
  28435. </method>
  28436. <method name="toString" return="java.lang.String"
  28437. abstract="false" native="false" synchronized="false"
  28438. static="false" final="false" visibility="public"
  28439. deprecated="not deprecated">
  28440. </method>
  28441. <doc>
  28442. <![CDATA[The immutable metric]]>
  28443. </doc>
  28444. </class>
  28445. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  28446. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  28447. <interface name="MetricsCollector" abstract="true"
  28448. static="false" final="false" visibility="public"
  28449. deprecated="not deprecated">
  28450. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28451. abstract="true" native="false" synchronized="false"
  28452. static="false" final="false" visibility="public"
  28453. deprecated="not deprecated">
  28454. <param name="name" type="java.lang.String"/>
  28455. <doc>
  28456. <![CDATA[Add a metrics record
  28457. @param name of the record
  28458. @return a {@link MetricsRecordBuilder} for the record {@code name}]]>
  28459. </doc>
  28460. </method>
  28461. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28462. abstract="true" native="false" synchronized="false"
  28463. static="false" final="false" visibility="public"
  28464. deprecated="not deprecated">
  28465. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28466. <doc>
  28467. <![CDATA[Add a metrics record
  28468. @param info of the record
  28469. @return a {@link MetricsRecordBuilder} for metrics {@code info}]]>
  28470. </doc>
  28471. </method>
  28472. <doc>
  28473. <![CDATA[The metrics collector interface]]>
  28474. </doc>
  28475. </interface>
  28476. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  28477. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  28478. <class name="MetricsException" extends="java.lang.RuntimeException"
  28479. abstract="false"
  28480. static="false" final="false" visibility="public"
  28481. deprecated="not deprecated">
  28482. <constructor name="MetricsException" type="java.lang.String"
  28483. static="false" final="false" visibility="public"
  28484. deprecated="not deprecated">
  28485. <doc>
  28486. <![CDATA[Construct the exception with a message
  28487. @param message for the exception]]>
  28488. </doc>
  28489. </constructor>
  28490. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  28491. static="false" final="false" visibility="public"
  28492. deprecated="not deprecated">
  28493. <doc>
  28494. <![CDATA[Construct the exception with a message and a cause
  28495. @param message for the exception
  28496. @param cause of the exception]]>
  28497. </doc>
  28498. </constructor>
  28499. <constructor name="MetricsException" type="java.lang.Throwable"
  28500. static="false" final="false" visibility="public"
  28501. deprecated="not deprecated">
  28502. <doc>
  28503. <![CDATA[Construct the exception with a cause
  28504. @param cause of the exception]]>
  28505. </doc>
  28506. </constructor>
  28507. <doc>
  28508. <![CDATA[A general metrics exception wrapper]]>
  28509. </doc>
  28510. </class>
  28511. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  28512. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  28513. <class name="MetricsFilter" extends="java.lang.Object"
  28514. abstract="true"
  28515. static="false" final="false" visibility="public"
  28516. deprecated="not deprecated">
  28517. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  28518. <constructor name="MetricsFilter"
  28519. static="false" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. </constructor>
  28522. <method name="accepts" return="boolean"
  28523. abstract="true" native="false" synchronized="false"
  28524. static="false" final="false" visibility="public"
  28525. deprecated="not deprecated">
  28526. <param name="name" type="java.lang.String"/>
  28527. <doc>
  28528. <![CDATA[Whether to accept the name
  28529. @param name to filter on
  28530. @return true to accept; false otherwise.]]>
  28531. </doc>
  28532. </method>
  28533. <method name="accepts" return="boolean"
  28534. abstract="true" native="false" synchronized="false"
  28535. static="false" final="false" visibility="public"
  28536. deprecated="not deprecated">
  28537. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  28538. <doc>
  28539. <![CDATA[Whether to accept the tag
  28540. @param tag to filter on
  28541. @return true to accept; false otherwise]]>
  28542. </doc>
  28543. </method>
  28544. <method name="accepts" return="boolean"
  28545. abstract="true" native="false" synchronized="false"
  28546. static="false" final="false" visibility="public"
  28547. deprecated="not deprecated">
  28548. <param name="tags" type="java.lang.Iterable"/>
  28549. <doc>
  28550. <![CDATA[Whether to accept the tags
  28551. @param tags to filter on
  28552. @return true to accept; false otherwise]]>
  28553. </doc>
  28554. </method>
  28555. <method name="accepts" return="boolean"
  28556. abstract="false" native="false" synchronized="false"
  28557. static="false" final="false" visibility="public"
  28558. deprecated="not deprecated">
  28559. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28560. <doc>
  28561. <![CDATA[Whether to accept the record
  28562. @param record to filter on
  28563. @return true to accept; false otherwise.]]>
  28564. </doc>
  28565. </method>
  28566. <doc>
  28567. <![CDATA[The metrics filter interface. The MetricsFilter objects can be used either to
  28568. filter the metrics from {@link MetricsSource}s or to filter metrics per
  28569. {@link MetricsSink}.]]>
  28570. </doc>
  28571. </class>
  28572. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  28573. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  28574. <interface name="MetricsInfo" abstract="true"
  28575. static="false" final="false" visibility="public"
  28576. deprecated="not deprecated">
  28577. <method name="name" return="java.lang.String"
  28578. abstract="true" native="false" synchronized="false"
  28579. static="false" final="false" visibility="public"
  28580. deprecated="not deprecated">
  28581. <doc>
  28582. <![CDATA[Typically name corresponds to annotation {@link Metric#value()} or
  28583. the name of the class.
  28584. @return the name of the metric/tag]]>
  28585. </doc>
  28586. </method>
  28587. <method name="description" return="java.lang.String"
  28588. abstract="true" native="false" synchronized="false"
  28589. static="false" final="false" visibility="public"
  28590. deprecated="not deprecated">
  28591. <doc>
  28592. <![CDATA[Typically the description corresponds to annotation {@link Metric#about()}
  28593. or the name of the class.
  28594. @return the description of the metric/tag]]>
  28595. </doc>
  28596. </method>
  28597. <doc>
  28598. <![CDATA[Interface to provide immutable metainfo for metrics.]]>
  28599. </doc>
  28600. </interface>
  28601. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  28602. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  28603. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28604. abstract="false"
  28605. static="false" final="false" visibility="public"
  28606. deprecated="not deprecated">
  28607. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  28608. static="false" final="false" visibility="public"
  28609. deprecated="not deprecated">
  28610. <doc>
  28611. <![CDATA[Build an instance.
  28612. @param parent parent collector. Unused in this instance; only used for
  28613. the {@link #parent()} method]]>
  28614. </doc>
  28615. </constructor>
  28616. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28617. abstract="false" native="false" synchronized="false"
  28618. static="false" final="false" visibility="public"
  28619. deprecated="not deprecated">
  28620. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28621. <param name="value" type="java.lang.String"/>
  28622. </method>
  28623. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28624. abstract="false" native="false" synchronized="false"
  28625. static="false" final="false" visibility="public"
  28626. deprecated="not deprecated">
  28627. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  28628. </method>
  28629. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28630. abstract="false" native="false" synchronized="false"
  28631. static="false" final="false" visibility="public"
  28632. deprecated="not deprecated">
  28633. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  28634. </method>
  28635. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28636. abstract="false" native="false" synchronized="false"
  28637. static="false" final="false" visibility="public"
  28638. deprecated="not deprecated">
  28639. <param name="value" type="java.lang.String"/>
  28640. </method>
  28641. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28642. abstract="false" native="false" synchronized="false"
  28643. static="false" final="false" visibility="public"
  28644. deprecated="not deprecated">
  28645. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28646. <param name="value" type="int"/>
  28647. </method>
  28648. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28649. abstract="false" native="false" synchronized="false"
  28650. static="false" final="false" visibility="public"
  28651. deprecated="not deprecated">
  28652. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28653. <param name="value" type="long"/>
  28654. </method>
  28655. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28656. abstract="false" native="false" synchronized="false"
  28657. static="false" final="false" visibility="public"
  28658. deprecated="not deprecated">
  28659. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28660. <param name="value" type="int"/>
  28661. </method>
  28662. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28663. abstract="false" native="false" synchronized="false"
  28664. static="false" final="false" visibility="public"
  28665. deprecated="not deprecated">
  28666. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28667. <param name="value" type="long"/>
  28668. </method>
  28669. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28670. abstract="false" native="false" synchronized="false"
  28671. static="false" final="false" visibility="public"
  28672. deprecated="not deprecated">
  28673. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28674. <param name="value" type="float"/>
  28675. </method>
  28676. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28677. abstract="false" native="false" synchronized="false"
  28678. static="false" final="false" visibility="public"
  28679. deprecated="not deprecated">
  28680. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28681. <param name="value" type="double"/>
  28682. </method>
  28683. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  28684. abstract="false" native="false" synchronized="false"
  28685. static="false" final="false" visibility="public"
  28686. deprecated="not deprecated">
  28687. </method>
  28688. <method name="toString" return="java.lang.String"
  28689. abstract="false" native="false" synchronized="false"
  28690. static="false" final="false" visibility="public"
  28691. deprecated="not deprecated">
  28692. </method>
  28693. <field name="LOG" type="org.slf4j.Logger"
  28694. transient="false" volatile="false"
  28695. static="true" final="true" visibility="public"
  28696. deprecated="not deprecated">
  28697. </field>
  28698. <doc>
  28699. <![CDATA[Build a JSON dump of the metrics.
  28700. The {@link #toString()} operator dumps out all values collected.]]>
  28701. </doc>
  28702. </class>
  28703. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  28704. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  28705. <interface name="MetricsPlugin" abstract="true"
  28706. static="false" final="false" visibility="public"
  28707. deprecated="not deprecated">
  28708. <method name="init"
  28709. abstract="true" native="false" synchronized="false"
  28710. static="false" final="false" visibility="public"
  28711. deprecated="not deprecated">
  28712. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  28713. <doc>
  28714. <![CDATA[Initialize the plugin
  28715. @param conf the configuration object for the plugin]]>
  28716. </doc>
  28717. </method>
  28718. <doc>
  28719. <![CDATA[The plugin interface for the metrics framework]]>
  28720. </doc>
  28721. </interface>
  28722. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  28723. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  28724. <interface name="MetricsRecord" abstract="true"
  28725. static="false" final="false" visibility="public"
  28726. deprecated="not deprecated">
  28727. <method name="timestamp" return="long"
  28728. abstract="true" native="false" synchronized="false"
  28729. static="false" final="false" visibility="public"
  28730. deprecated="not deprecated">
  28731. <doc>
  28732. <![CDATA[Get the timestamp of the metrics
  28733. @return the timestamp]]>
  28734. </doc>
  28735. </method>
  28736. <method name="name" return="java.lang.String"
  28737. abstract="true" native="false" synchronized="false"
  28738. static="false" final="false" visibility="public"
  28739. deprecated="not deprecated">
  28740. <doc>
  28741. <![CDATA[@return the metrics record name]]>
  28742. </doc>
  28743. </method>
  28744. <method name="description" return="java.lang.String"
  28745. abstract="true" native="false" synchronized="false"
  28746. static="false" final="false" visibility="public"
  28747. deprecated="not deprecated">
  28748. <doc>
  28749. <![CDATA[@return the description of the metrics record]]>
  28750. </doc>
  28751. </method>
  28752. <method name="context" return="java.lang.String"
  28753. abstract="true" native="false" synchronized="false"
  28754. static="false" final="false" visibility="public"
  28755. deprecated="not deprecated">
  28756. <doc>
  28757. <![CDATA[@return the context name of the metrics record]]>
  28758. </doc>
  28759. </method>
  28760. <method name="tags" return="java.util.Collection"
  28761. abstract="true" native="false" synchronized="false"
  28762. static="false" final="false" visibility="public"
  28763. deprecated="not deprecated">
  28764. <doc>
  28765. <![CDATA[Get the tags of the record
  28766. Note: returning a collection instead of iterable as we
  28767. need to use tags as keys (hence Collection#hashCode etc.) in maps
  28768. @return an unmodifiable collection of tags]]>
  28769. </doc>
  28770. </method>
  28771. <method name="metrics" return="java.lang.Iterable"
  28772. abstract="true" native="false" synchronized="false"
  28773. static="false" final="false" visibility="public"
  28774. deprecated="not deprecated">
  28775. <doc>
  28776. <![CDATA[Get the metrics of the record
  28777. @return an immutable iterable interface for metrics]]>
  28778. </doc>
  28779. </method>
  28780. <doc>
  28781. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  28782. </doc>
  28783. </interface>
  28784. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  28785. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  28786. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  28787. abstract="true"
  28788. static="false" final="false" visibility="public"
  28789. deprecated="not deprecated">
  28790. <constructor name="MetricsRecordBuilder"
  28791. static="false" final="false" visibility="public"
  28792. deprecated="not deprecated">
  28793. </constructor>
  28794. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28795. abstract="true" native="false" synchronized="false"
  28796. static="false" final="false" visibility="public"
  28797. deprecated="not deprecated">
  28798. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28799. <param name="value" type="java.lang.String"/>
  28800. <doc>
  28801. <![CDATA[Add a metrics value with metrics information
  28802. @param info metadata of the tag
  28803. @param value of the tag
  28804. @return self]]>
  28805. </doc>
  28806. </method>
  28807. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28808. abstract="true" native="false" synchronized="false"
  28809. static="false" final="false" visibility="public"
  28810. deprecated="not deprecated">
  28811. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  28812. <doc>
  28813. <![CDATA[Add an immutable metrics tag object
  28814. @param tag a pre-made tag object (potentially save an object construction)
  28815. @return self]]>
  28816. </doc>
  28817. </method>
  28818. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28819. abstract="true" native="false" synchronized="false"
  28820. static="false" final="false" visibility="public"
  28821. deprecated="not deprecated">
  28822. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  28823. <doc>
  28824. <![CDATA[Add a pre-made immutable metric object
  28825. @param metric the pre-made metric to save an object construction
  28826. @return self]]>
  28827. </doc>
  28828. </method>
  28829. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28830. abstract="true" native="false" synchronized="false"
  28831. static="false" final="false" visibility="public"
  28832. deprecated="not deprecated">
  28833. <param name="value" type="java.lang.String"/>
  28834. <doc>
  28835. <![CDATA[Set the context tag
  28836. @param value of the context
  28837. @return self]]>
  28838. </doc>
  28839. </method>
  28840. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28841. abstract="true" native="false" synchronized="false"
  28842. static="false" final="false" visibility="public"
  28843. deprecated="not deprecated">
  28844. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28845. <param name="value" type="int"/>
  28846. <doc>
  28847. <![CDATA[Add an integer metric
  28848. @param info metadata of the metric
  28849. @param value of the metric
  28850. @return self]]>
  28851. </doc>
  28852. </method>
  28853. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28854. abstract="true" native="false" synchronized="false"
  28855. static="false" final="false" visibility="public"
  28856. deprecated="not deprecated">
  28857. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28858. <param name="value" type="long"/>
  28859. <doc>
  28860. <![CDATA[Add an long metric
  28861. @param info metadata of the metric
  28862. @param value of the metric
  28863. @return self]]>
  28864. </doc>
  28865. </method>
  28866. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28867. abstract="true" native="false" synchronized="false"
  28868. static="false" final="false" visibility="public"
  28869. deprecated="not deprecated">
  28870. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28871. <param name="value" type="int"/>
  28872. <doc>
  28873. <![CDATA[Add a integer gauge metric
  28874. @param info metadata of the metric
  28875. @param value of the metric
  28876. @return self]]>
  28877. </doc>
  28878. </method>
  28879. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28880. abstract="true" native="false" synchronized="false"
  28881. static="false" final="false" visibility="public"
  28882. deprecated="not deprecated">
  28883. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28884. <param name="value" type="long"/>
  28885. <doc>
  28886. <![CDATA[Add a long gauge metric
  28887. @param info metadata of the metric
  28888. @param value of the metric
  28889. @return self]]>
  28890. </doc>
  28891. </method>
  28892. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28893. abstract="true" native="false" synchronized="false"
  28894. static="false" final="false" visibility="public"
  28895. deprecated="not deprecated">
  28896. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28897. <param name="value" type="float"/>
  28898. <doc>
  28899. <![CDATA[Add a float gauge metric
  28900. @param info metadata of the metric
  28901. @param value of the metric
  28902. @return self]]>
  28903. </doc>
  28904. </method>
  28905. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28906. abstract="true" native="false" synchronized="false"
  28907. static="false" final="false" visibility="public"
  28908. deprecated="not deprecated">
  28909. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28910. <param name="value" type="double"/>
  28911. <doc>
  28912. <![CDATA[Add a double gauge metric
  28913. @param info metadata of the metric
  28914. @param value of the metric
  28915. @return self]]>
  28916. </doc>
  28917. </method>
  28918. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  28919. abstract="true" native="false" synchronized="false"
  28920. static="false" final="false" visibility="public"
  28921. deprecated="not deprecated">
  28922. <doc>
  28923. <![CDATA[@return the parent metrics collector object]]>
  28924. </doc>
  28925. </method>
  28926. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  28927. abstract="false" native="false" synchronized="false"
  28928. static="false" final="false" visibility="public"
  28929. deprecated="not deprecated">
  28930. <doc>
  28931. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  28932. @return the parent metrics collector object]]>
  28933. </doc>
  28934. </method>
  28935. <doc>
  28936. <![CDATA[The metrics record builder interface]]>
  28937. </doc>
  28938. </class>
  28939. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  28940. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  28941. <interface name="MetricsSink" abstract="true"
  28942. static="false" final="false" visibility="public"
  28943. deprecated="not deprecated">
  28944. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  28945. <method name="putMetrics"
  28946. abstract="true" native="false" synchronized="false"
  28947. static="false" final="false" visibility="public"
  28948. deprecated="not deprecated">
  28949. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28950. <doc>
  28951. <![CDATA[Put a metrics record in the sink
  28952. @param record the record to put]]>
  28953. </doc>
  28954. </method>
  28955. <method name="flush"
  28956. abstract="true" native="false" synchronized="false"
  28957. static="false" final="false" visibility="public"
  28958. deprecated="not deprecated">
  28959. <doc>
  28960. <![CDATA[Flush any buffered metrics]]>
  28961. </doc>
  28962. </method>
  28963. <doc>
  28964. <![CDATA[The metrics sink interface. <p>
  28965. Implementations of this interface consume the {@link MetricsRecord} generated
  28966. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  28967. periodically pushes the {@link MetricsRecord} to the sink using
  28968. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  28969. implements {@link Closeable}, then the MetricsSystem will close the sink when
  28970. it is stopped.]]>
  28971. </doc>
  28972. </interface>
  28973. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  28974. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  28975. <interface name="MetricsSource" abstract="true"
  28976. static="false" final="false" visibility="public"
  28977. deprecated="not deprecated">
  28978. <method name="getMetrics"
  28979. abstract="true" native="false" synchronized="false"
  28980. static="false" final="false" visibility="public"
  28981. deprecated="not deprecated">
  28982. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  28983. <param name="all" type="boolean"/>
  28984. <doc>
  28985. <![CDATA[Get metrics from the metrics source
  28986. @param collector to contain the resulting metrics snapshot
  28987. @param all if true, return all metrics even if unchanged.]]>
  28988. </doc>
  28989. </method>
  28990. <doc>
  28991. <![CDATA[The source of metrics information. It generates and updates metrics. It
  28992. registers with {@link MetricsSystem}, which periodically polls it to collect
  28993. {@link MetricsRecord} and passes it to {@link MetricsSink}.]]>
  28994. </doc>
  28995. </interface>
  28996. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  28997. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  28998. <class name="MetricsSystem" extends="java.lang.Object"
  28999. abstract="true"
  29000. static="false" final="false" visibility="public"
  29001. deprecated="not deprecated">
  29002. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  29003. <constructor name="MetricsSystem"
  29004. static="false" final="false" visibility="public"
  29005. deprecated="not deprecated">
  29006. </constructor>
  29007. <method name="unregisterSource"
  29008. abstract="true" native="false" synchronized="false"
  29009. static="false" final="false" visibility="public"
  29010. deprecated="not deprecated">
  29011. <param name="name" type="java.lang.String"/>
  29012. <doc>
  29013. <![CDATA[Unregister a metrics source
  29014. @param name of the source. This is the name you use to call register()]]>
  29015. </doc>
  29016. </method>
  29017. <method name="register" return="T"
  29018. abstract="false" native="false" synchronized="false"
  29019. static="false" final="false" visibility="public"
  29020. deprecated="not deprecated">
  29021. <param name="source" type="T"/>
  29022. <doc>
  29023. <![CDATA[Register a metrics source (deriving name and description from the object)
  29024. @param <T> the actual type of the source object
  29025. @param source object to register
  29026. @return the source object
  29027. @exception MetricsException Metrics Exception.]]>
  29028. </doc>
  29029. </method>
  29030. <method name="register" return="T"
  29031. abstract="true" native="false" synchronized="false"
  29032. static="false" final="false" visibility="public"
  29033. deprecated="not deprecated">
  29034. <param name="name" type="java.lang.String"/>
  29035. <param name="desc" type="java.lang.String"/>
  29036. <param name="source" type="T"/>
  29037. <doc>
  29038. <![CDATA[Register a metrics source
  29039. @param <T> the actual type of the source object
  29040. @param source object to register
  29041. @param name of the source. Must be unique or null (then extracted from
  29042. the annotations of the source object.)
  29043. @param desc the description of the source (or null. See above.)
  29044. @return the source object
  29045. @exception MetricsException Metrics Exception.]]>
  29046. </doc>
  29047. </method>
  29048. <method name="register"
  29049. abstract="true" native="false" synchronized="false"
  29050. static="false" final="false" visibility="public"
  29051. deprecated="not deprecated">
  29052. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  29053. <doc>
  29054. <![CDATA[Register a callback interface for JMX events
  29055. @param callback the callback object implementing the MBean interface.]]>
  29056. </doc>
  29057. </method>
  29058. <method name="publishMetricsNow"
  29059. abstract="true" native="false" synchronized="false"
  29060. static="false" final="false" visibility="public"
  29061. deprecated="not deprecated">
  29062. <doc>
  29063. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  29064. This is a "soft" request: the expectation is that a best effort will be
  29065. done to synchronously snapshot the metrics from all the sources and put
  29066. them in all the sinks (including flushing the sinks) before returning to
  29067. the caller. If this can't be accomplished in reasonable time it's OK to
  29068. return to the caller before everything is done.]]>
  29069. </doc>
  29070. </method>
  29071. <method name="shutdown" return="boolean"
  29072. abstract="true" native="false" synchronized="false"
  29073. static="false" final="false" visibility="public"
  29074. deprecated="not deprecated">
  29075. <doc>
  29076. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  29077. The MetricsSystemMXBean will be unregistered.
  29078. @return true if shutdown completed]]>
  29079. </doc>
  29080. </method>
  29081. <doc>
  29082. <![CDATA[The metrics system interface.
  29083. The following components are used for metrics.
  29084. <ul>
  29085. <li>{@link MetricsSource} generate and update metrics information.</li>
  29086. <li>{@link MetricsSink} consume the metrics information</li>
  29087. </ul>
  29088. {@link MetricsSource} and {@link MetricsSink} register with the metrics
  29089. system. Implementations of {@link MetricsSystem} polls the
  29090. {@link MetricsSource}s periodically and pass the {@link MetricsRecord}s to
  29091. {@link MetricsSink}.]]>
  29092. </doc>
  29093. </class>
  29094. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  29095. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  29096. <interface name="MetricsSystemMXBean" abstract="true"
  29097. static="false" final="false" visibility="public"
  29098. deprecated="not deprecated">
  29099. <method name="start"
  29100. abstract="true" native="false" synchronized="false"
  29101. static="false" final="false" visibility="public"
  29102. deprecated="not deprecated">
  29103. <doc>
  29104. <![CDATA[Start the metrics system
  29105. @throws MetricsException Metrics Exception.]]>
  29106. </doc>
  29107. </method>
  29108. <method name="stop"
  29109. abstract="true" native="false" synchronized="false"
  29110. static="false" final="false" visibility="public"
  29111. deprecated="not deprecated">
  29112. <doc>
  29113. <![CDATA[Stop the metrics system
  29114. @throws MetricsException Metrics Exception.]]>
  29115. </doc>
  29116. </method>
  29117. <method name="startMetricsMBeans"
  29118. abstract="true" native="false" synchronized="false"
  29119. static="false" final="false" visibility="public"
  29120. deprecated="not deprecated">
  29121. <doc>
  29122. <![CDATA[Start metrics MBeans
  29123. @throws MetricsException Metrics Exception.]]>
  29124. </doc>
  29125. </method>
  29126. <method name="stopMetricsMBeans"
  29127. abstract="true" native="false" synchronized="false"
  29128. static="false" final="false" visibility="public"
  29129. deprecated="not deprecated">
  29130. <doc>
  29131. <![CDATA[Stop metrics MBeans.
  29132. Note, it doesn't stop the metrics system control MBean,
  29133. i.e this interface.
  29134. @throws MetricsException Metrics Exception.]]>
  29135. </doc>
  29136. </method>
  29137. <method name="currentConfig" return="java.lang.String"
  29138. abstract="true" native="false" synchronized="false"
  29139. static="false" final="false" visibility="public"
  29140. deprecated="not deprecated">
  29141. <doc>
  29142. <![CDATA[@return the current config
  29143. Avoided getConfig, as it'll turn into a "Config" attribute,
  29144. which doesn't support multiple line values in jconsole.
  29145. @throws MetricsException Metrics Exception.]]>
  29146. </doc>
  29147. </method>
  29148. <doc>
  29149. <![CDATA[The JMX interface to the metrics system]]>
  29150. </doc>
  29151. </interface>
  29152. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  29153. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  29154. <class name="MetricsTag" extends="java.lang.Object"
  29155. abstract="false"
  29156. static="false" final="false" visibility="public"
  29157. deprecated="not deprecated">
  29158. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  29159. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  29160. static="false" final="false" visibility="public"
  29161. deprecated="not deprecated">
  29162. <doc>
  29163. <![CDATA[Construct the tag with name, description and value
  29164. @param info of the tag
  29165. @param value of the tag]]>
  29166. </doc>
  29167. </constructor>
  29168. <method name="name" return="java.lang.String"
  29169. abstract="false" native="false" synchronized="false"
  29170. static="false" final="false" visibility="public"
  29171. deprecated="not deprecated">
  29172. </method>
  29173. <method name="description" return="java.lang.String"
  29174. abstract="false" native="false" synchronized="false"
  29175. static="false" final="false" visibility="public"
  29176. deprecated="not deprecated">
  29177. </method>
  29178. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  29179. abstract="false" native="false" synchronized="false"
  29180. static="false" final="false" visibility="public"
  29181. deprecated="not deprecated">
  29182. <doc>
  29183. <![CDATA[@return the info object of the tag]]>
  29184. </doc>
  29185. </method>
  29186. <method name="value" return="java.lang.String"
  29187. abstract="false" native="false" synchronized="false"
  29188. static="false" final="false" visibility="public"
  29189. deprecated="not deprecated">
  29190. <doc>
  29191. <![CDATA[Get the value of the tag
  29192. @return the value]]>
  29193. </doc>
  29194. </method>
  29195. <method name="equals" return="boolean"
  29196. abstract="false" native="false" synchronized="false"
  29197. static="false" final="false" visibility="public"
  29198. deprecated="not deprecated">
  29199. <param name="obj" type="java.lang.Object"/>
  29200. </method>
  29201. <method name="hashCode" return="int"
  29202. abstract="false" native="false" synchronized="false"
  29203. static="false" final="false" visibility="public"
  29204. deprecated="not deprecated">
  29205. </method>
  29206. <method name="toString" return="java.lang.String"
  29207. abstract="false" native="false" synchronized="false"
  29208. static="false" final="false" visibility="public"
  29209. deprecated="not deprecated">
  29210. </method>
  29211. <doc>
  29212. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  29213. </doc>
  29214. </class>
  29215. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  29216. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  29217. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29218. abstract="false"
  29219. static="false" final="false" visibility="public"
  29220. deprecated="not deprecated">
  29221. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  29222. static="false" final="false" visibility="public"
  29223. deprecated="not deprecated">
  29224. <doc>
  29225. <![CDATA[Build an instance.
  29226. @param parent parent collector. Unused in this instance; only used for
  29227. the {@link #parent()} method
  29228. @param prefix string before each entry
  29229. @param separator separator between name and value
  29230. @param suffix suffix after each entry]]>
  29231. </doc>
  29232. </constructor>
  29233. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  29234. abstract="false" native="false" synchronized="false"
  29235. static="false" final="false" visibility="public"
  29236. deprecated="not deprecated">
  29237. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29238. <param name="value" type="java.lang.Object"/>
  29239. </method>
  29240. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  29241. abstract="false" native="false" synchronized="false"
  29242. static="false" final="false" visibility="public"
  29243. deprecated="not deprecated">
  29244. <param name="key" type="java.lang.String"/>
  29245. <param name="value" type="java.lang.String"/>
  29246. <doc>
  29247. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  29248. separated by the separator.
  29249. @param key key
  29250. @param value value
  29251. @return this instance]]>
  29252. </doc>
  29253. </method>
  29254. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29255. abstract="false" native="false" synchronized="false"
  29256. static="false" final="false" visibility="public"
  29257. deprecated="not deprecated">
  29258. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29259. <param name="value" type="java.lang.String"/>
  29260. </method>
  29261. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29262. abstract="false" native="false" synchronized="false"
  29263. static="false" final="false" visibility="public"
  29264. deprecated="not deprecated">
  29265. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  29266. </method>
  29267. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29268. abstract="false" native="false" synchronized="false"
  29269. static="false" final="false" visibility="public"
  29270. deprecated="not deprecated">
  29271. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  29272. </method>
  29273. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29274. abstract="false" native="false" synchronized="false"
  29275. static="false" final="false" visibility="public"
  29276. deprecated="not deprecated">
  29277. <param name="value" type="java.lang.String"/>
  29278. </method>
  29279. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29280. abstract="false" native="false" synchronized="false"
  29281. static="false" final="false" visibility="public"
  29282. deprecated="not deprecated">
  29283. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29284. <param name="value" type="int"/>
  29285. </method>
  29286. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29287. abstract="false" native="false" synchronized="false"
  29288. static="false" final="false" visibility="public"
  29289. deprecated="not deprecated">
  29290. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29291. <param name="value" type="long"/>
  29292. </method>
  29293. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29294. abstract="false" native="false" synchronized="false"
  29295. static="false" final="false" visibility="public"
  29296. deprecated="not deprecated">
  29297. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29298. <param name="value" type="int"/>
  29299. </method>
  29300. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29301. abstract="false" native="false" synchronized="false"
  29302. static="false" final="false" visibility="public"
  29303. deprecated="not deprecated">
  29304. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29305. <param name="value" type="long"/>
  29306. </method>
  29307. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29308. abstract="false" native="false" synchronized="false"
  29309. static="false" final="false" visibility="public"
  29310. deprecated="not deprecated">
  29311. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29312. <param name="value" type="float"/>
  29313. </method>
  29314. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29315. abstract="false" native="false" synchronized="false"
  29316. static="false" final="false" visibility="public"
  29317. deprecated="not deprecated">
  29318. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29319. <param name="value" type="double"/>
  29320. </method>
  29321. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  29322. abstract="false" native="false" synchronized="false"
  29323. static="false" final="false" visibility="public"
  29324. deprecated="not deprecated">
  29325. </method>
  29326. <method name="toString" return="java.lang.String"
  29327. abstract="false" native="false" synchronized="false"
  29328. static="false" final="false" visibility="public"
  29329. deprecated="not deprecated">
  29330. </method>
  29331. <doc>
  29332. <![CDATA[Build a string dump of the metrics.
  29333. The {@link #toString()} operator dumps out all values collected.
  29334. Every entry is formatted as
  29335. {@code prefix + name + separator + value + suffix}]]>
  29336. </doc>
  29337. </class>
  29338. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  29339. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  29340. <interface name="MetricsVisitor" abstract="true"
  29341. static="false" final="false" visibility="public"
  29342. deprecated="not deprecated">
  29343. <method name="gauge"
  29344. abstract="true" native="false" synchronized="false"
  29345. static="false" final="false" visibility="public"
  29346. deprecated="not deprecated">
  29347. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29348. <param name="value" type="int"/>
  29349. <doc>
  29350. <![CDATA[Callback for integer value gauges
  29351. @param info the metric info
  29352. @param value of the metric]]>
  29353. </doc>
  29354. </method>
  29355. <method name="gauge"
  29356. abstract="true" native="false" synchronized="false"
  29357. static="false" final="false" visibility="public"
  29358. deprecated="not deprecated">
  29359. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29360. <param name="value" type="long"/>
  29361. <doc>
  29362. <![CDATA[Callback for long value gauges
  29363. @param info the metric info
  29364. @param value of the metric]]>
  29365. </doc>
  29366. </method>
  29367. <method name="gauge"
  29368. abstract="true" native="false" synchronized="false"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29372. <param name="value" type="float"/>
  29373. <doc>
  29374. <![CDATA[Callback for float value gauges
  29375. @param info the metric info
  29376. @param value of the metric]]>
  29377. </doc>
  29378. </method>
  29379. <method name="gauge"
  29380. abstract="true" native="false" synchronized="false"
  29381. static="false" final="false" visibility="public"
  29382. deprecated="not deprecated">
  29383. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29384. <param name="value" type="double"/>
  29385. <doc>
  29386. <![CDATA[Callback for double value gauges
  29387. @param info the metric info
  29388. @param value of the metric]]>
  29389. </doc>
  29390. </method>
  29391. <method name="counter"
  29392. abstract="true" native="false" synchronized="false"
  29393. static="false" final="false" visibility="public"
  29394. deprecated="not deprecated">
  29395. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29396. <param name="value" type="int"/>
  29397. <doc>
  29398. <![CDATA[Callback for integer value counters
  29399. @param info the metric info
  29400. @param value of the metric]]>
  29401. </doc>
  29402. </method>
  29403. <method name="counter"
  29404. abstract="true" native="false" synchronized="false"
  29405. static="false" final="false" visibility="public"
  29406. deprecated="not deprecated">
  29407. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29408. <param name="value" type="long"/>
  29409. <doc>
  29410. <![CDATA[Callback for long value counters
  29411. @param info the metric info
  29412. @param value of the metric]]>
  29413. </doc>
  29414. </method>
  29415. <doc>
  29416. <![CDATA[A visitor interface for metrics]]>
  29417. </doc>
  29418. </interface>
  29419. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  29420. </package>
  29421. <package name="org.apache.hadoop.metrics2.annotation">
  29422. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  29423. <class name="Metric" abstract="true"
  29424. static="false" final="false" visibility="public"
  29425. deprecated="not deprecated">
  29426. <implements name="java.lang.annotation.Annotation"/>
  29427. <doc>
  29428. <![CDATA[Annotation interface for a single metric used to annotate a field or a method
  29429. in the class.]]>
  29430. </doc>
  29431. </class>
  29432. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  29433. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  29434. <class name="Metrics" abstract="true"
  29435. static="false" final="false" visibility="public"
  29436. deprecated="not deprecated">
  29437. <implements name="java.lang.annotation.Annotation"/>
  29438. <doc>
  29439. <![CDATA[Annotation interface for a group of metrics]]>
  29440. </doc>
  29441. </class>
  29442. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  29443. </package>
  29444. <package name="org.apache.hadoop.metrics2.filter">
  29445. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  29446. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  29447. abstract="false"
  29448. static="false" final="false" visibility="public"
  29449. deprecated="not deprecated">
  29450. <constructor name="GlobFilter"
  29451. static="false" final="false" visibility="public"
  29452. deprecated="not deprecated">
  29453. </constructor>
  29454. <method name="compile" return="com.google.re2j.Pattern"
  29455. abstract="false" native="false" synchronized="false"
  29456. static="false" final="false" visibility="protected"
  29457. deprecated="not deprecated">
  29458. <param name="s" type="java.lang.String"/>
  29459. </method>
  29460. <doc>
  29461. <![CDATA[A glob pattern filter for metrics.
  29462. The class name is used in metrics config files]]>
  29463. </doc>
  29464. </class>
  29465. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  29466. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  29467. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  29468. abstract="false"
  29469. static="false" final="false" visibility="public"
  29470. deprecated="not deprecated">
  29471. <constructor name="RegexFilter"
  29472. static="false" final="false" visibility="public"
  29473. deprecated="not deprecated">
  29474. </constructor>
  29475. <method name="compile" return="com.google.re2j.Pattern"
  29476. abstract="false" native="false" synchronized="false"
  29477. static="false" final="false" visibility="protected"
  29478. deprecated="not deprecated">
  29479. <param name="s" type="java.lang.String"/>
  29480. </method>
  29481. <doc>
  29482. <![CDATA[A regex pattern filter for metrics]]>
  29483. </doc>
  29484. </class>
  29485. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  29486. </package>
  29487. <package name="org.apache.hadoop.metrics2.lib">
  29488. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  29489. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  29490. abstract="false"
  29491. static="false" final="true" visibility="public"
  29492. deprecated="not deprecated">
  29493. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  29494. abstract="false" native="false" synchronized="false"
  29495. static="true" final="false" visibility="public"
  29496. deprecated="not deprecated">
  29497. </method>
  29498. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  29499. abstract="false" native="false" synchronized="false"
  29500. static="true" final="false" visibility="public"
  29501. deprecated="not deprecated">
  29502. <param name="name" type="java.lang.String"/>
  29503. </method>
  29504. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  29505. abstract="false" native="false" synchronized="false"
  29506. static="true" final="false" visibility="public"
  29507. deprecated="not deprecated">
  29508. <param name="prefix" type="java.lang.String"/>
  29509. <doc>
  29510. <![CDATA[Convenience method to initialize the metrics system
  29511. @param prefix for the metrics system configuration
  29512. @return the metrics system instance]]>
  29513. </doc>
  29514. </method>
  29515. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  29516. abstract="false" native="false" synchronized="false"
  29517. static="true" final="false" visibility="public"
  29518. deprecated="not deprecated">
  29519. <doc>
  29520. <![CDATA[@return the metrics system object]]>
  29521. </doc>
  29522. </method>
  29523. <method name="shutdown"
  29524. abstract="false" native="false" synchronized="false"
  29525. static="true" final="false" visibility="public"
  29526. deprecated="not deprecated">
  29527. <doc>
  29528. <![CDATA[Shutdown the metrics system]]>
  29529. </doc>
  29530. </method>
  29531. <method name="setMiniClusterMode"
  29532. abstract="false" native="false" synchronized="false"
  29533. static="true" final="false" visibility="public"
  29534. deprecated="not deprecated">
  29535. <param name="choice" type="boolean"/>
  29536. </method>
  29537. <method name="inMiniClusterMode" return="boolean"
  29538. abstract="false" native="false" synchronized="false"
  29539. static="true" final="false" visibility="public"
  29540. deprecated="not deprecated">
  29541. </method>
  29542. <doc>
  29543. <![CDATA[The default metrics system singleton. This class is used by all the daemon
  29544. processes(such as NameNode, DataNode, JobTracker etc.). During daemon process
  29545. initialization the processes call {@link DefaultMetricsSystem#init(String)}
  29546. to initialize the {@link MetricsSystem}.]]>
  29547. </doc>
  29548. </class>
  29549. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  29550. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  29551. <class name="Interns" extends="java.lang.Object"
  29552. abstract="false"
  29553. static="false" final="false" visibility="public"
  29554. deprecated="not deprecated">
  29555. <constructor name="Interns"
  29556. static="false" final="false" visibility="public"
  29557. deprecated="not deprecated">
  29558. </constructor>
  29559. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  29560. abstract="false" native="false" synchronized="false"
  29561. static="true" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <param name="name" type="java.lang.String"/>
  29564. <param name="description" type="java.lang.String"/>
  29565. <doc>
  29566. <![CDATA[Get a metric info object.
  29567. @param name Name of metric info object
  29568. @param description Description of metric info object
  29569. @return an interned metric info object]]>
  29570. </doc>
  29571. </method>
  29572. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  29573. abstract="false" native="false" synchronized="false"
  29574. static="true" final="false" visibility="public"
  29575. deprecated="not deprecated">
  29576. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29577. <param name="value" type="java.lang.String"/>
  29578. <doc>
  29579. <![CDATA[Get a metrics tag.
  29580. @param info of the tag
  29581. @param value of the tag
  29582. @return an interned metrics tag]]>
  29583. </doc>
  29584. </method>
  29585. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  29586. abstract="false" native="false" synchronized="false"
  29587. static="true" final="false" visibility="public"
  29588. deprecated="not deprecated">
  29589. <param name="name" type="java.lang.String"/>
  29590. <param name="description" type="java.lang.String"/>
  29591. <param name="value" type="java.lang.String"/>
  29592. <doc>
  29593. <![CDATA[Get a metrics tag.
  29594. @param name of the tag
  29595. @param description of the tag
  29596. @param value of the tag
  29597. @return an interned metrics tag]]>
  29598. </doc>
  29599. </method>
  29600. <doc>
  29601. <![CDATA[Helpers to create interned metrics info.]]>
  29602. </doc>
  29603. </class>
  29604. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  29605. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  29606. <class name="MetricsRegistry" extends="java.lang.Object"
  29607. abstract="false"
  29608. static="false" final="false" visibility="public"
  29609. deprecated="not deprecated">
  29610. <constructor name="MetricsRegistry" type="java.lang.String"
  29611. static="false" final="false" visibility="public"
  29612. deprecated="not deprecated">
  29613. <doc>
  29614. <![CDATA[Construct the registry with a record name
  29615. @param name of the record of the metrics]]>
  29616. </doc>
  29617. </constructor>
  29618. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  29619. static="false" final="false" visibility="public"
  29620. deprecated="not deprecated">
  29621. <doc>
  29622. <![CDATA[Construct the registry with a metadata object
  29623. @param info the info object for the metrics record/group]]>
  29624. </doc>
  29625. </constructor>
  29626. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  29627. abstract="false" native="false" synchronized="false"
  29628. static="false" final="false" visibility="public"
  29629. deprecated="not deprecated">
  29630. <doc>
  29631. <![CDATA[@return the info object of the metrics registry]]>
  29632. </doc>
  29633. </method>
  29634. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  29635. abstract="false" native="false" synchronized="true"
  29636. static="false" final="false" visibility="public"
  29637. deprecated="not deprecated">
  29638. <param name="name" type="java.lang.String"/>
  29639. <doc>
  29640. <![CDATA[Get a metric by name
  29641. @param name of the metric
  29642. @return the metric object]]>
  29643. </doc>
  29644. </method>
  29645. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  29646. abstract="false" native="false" synchronized="true"
  29647. static="false" final="false" visibility="public"
  29648. deprecated="not deprecated">
  29649. <param name="name" type="java.lang.String"/>
  29650. <doc>
  29651. <![CDATA[Get a tag by name
  29652. @param name of the tag
  29653. @return the tag object]]>
  29654. </doc>
  29655. </method>
  29656. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  29657. abstract="false" native="false" synchronized="false"
  29658. static="false" final="false" visibility="public"
  29659. deprecated="not deprecated">
  29660. <param name="name" type="java.lang.String"/>
  29661. <param name="desc" type="java.lang.String"/>
  29662. <param name="iVal" type="int"/>
  29663. <doc>
  29664. <![CDATA[Create a mutable integer counter
  29665. @param name of the metric
  29666. @param desc metric description
  29667. @param iVal initial value
  29668. @return a new counter object]]>
  29669. </doc>
  29670. </method>
  29671. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  29672. abstract="false" native="false" synchronized="true"
  29673. static="false" final="false" visibility="public"
  29674. deprecated="not deprecated">
  29675. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29676. <param name="iVal" type="int"/>
  29677. <doc>
  29678. <![CDATA[Create a mutable integer counter
  29679. @param info metadata of the metric
  29680. @param iVal initial value
  29681. @return a new counter object]]>
  29682. </doc>
  29683. </method>
  29684. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  29685. abstract="false" native="false" synchronized="false"
  29686. static="false" final="false" visibility="public"
  29687. deprecated="not deprecated">
  29688. <param name="name" type="java.lang.String"/>
  29689. <param name="desc" type="java.lang.String"/>
  29690. <param name="iVal" type="long"/>
  29691. <doc>
  29692. <![CDATA[Create a mutable long integer counter
  29693. @param name of the metric
  29694. @param desc metric description
  29695. @param iVal initial value
  29696. @return a new counter object]]>
  29697. </doc>
  29698. </method>
  29699. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  29700. abstract="false" native="false" synchronized="true"
  29701. static="false" final="false" visibility="public"
  29702. deprecated="not deprecated">
  29703. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29704. <param name="iVal" type="long"/>
  29705. <doc>
  29706. <![CDATA[Create a mutable long integer counter
  29707. @param info metadata of the metric
  29708. @param iVal initial value
  29709. @return a new counter object]]>
  29710. </doc>
  29711. </method>
  29712. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  29713. abstract="false" native="false" synchronized="false"
  29714. static="false" final="false" visibility="public"
  29715. deprecated="not deprecated">
  29716. <param name="name" type="java.lang.String"/>
  29717. <param name="desc" type="java.lang.String"/>
  29718. <param name="iVal" type="int"/>
  29719. <doc>
  29720. <![CDATA[Create a mutable integer gauge
  29721. @param name of the metric
  29722. @param desc metric description
  29723. @param iVal initial value
  29724. @return a new gauge object]]>
  29725. </doc>
  29726. </method>
  29727. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  29728. abstract="false" native="false" synchronized="true"
  29729. static="false" final="false" visibility="public"
  29730. deprecated="not deprecated">
  29731. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29732. <param name="iVal" type="int"/>
  29733. <doc>
  29734. <![CDATA[Create a mutable integer gauge
  29735. @param info metadata of the metric
  29736. @param iVal initial value
  29737. @return a new gauge object]]>
  29738. </doc>
  29739. </method>
  29740. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  29741. abstract="false" native="false" synchronized="false"
  29742. static="false" final="false" visibility="public"
  29743. deprecated="not deprecated">
  29744. <param name="name" type="java.lang.String"/>
  29745. <param name="desc" type="java.lang.String"/>
  29746. <param name="iVal" type="long"/>
  29747. <doc>
  29748. <![CDATA[Create a mutable long integer gauge
  29749. @param name of the metric
  29750. @param desc metric description
  29751. @param iVal initial value
  29752. @return a new gauge object]]>
  29753. </doc>
  29754. </method>
  29755. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  29756. abstract="false" native="false" synchronized="true"
  29757. static="false" final="false" visibility="public"
  29758. deprecated="not deprecated">
  29759. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29760. <param name="iVal" type="long"/>
  29761. <doc>
  29762. <![CDATA[Create a mutable long integer gauge
  29763. @param info metadata of the metric
  29764. @param iVal initial value
  29765. @return a new gauge object]]>
  29766. </doc>
  29767. </method>
  29768. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  29769. abstract="false" native="false" synchronized="false"
  29770. static="false" final="false" visibility="public"
  29771. deprecated="not deprecated">
  29772. <param name="name" type="java.lang.String"/>
  29773. <param name="desc" type="java.lang.String"/>
  29774. <param name="iVal" type="float"/>
  29775. <doc>
  29776. <![CDATA[Create a mutable float gauge
  29777. @param name of the metric
  29778. @param desc metric description
  29779. @param iVal initial value
  29780. @return a new gauge object]]>
  29781. </doc>
  29782. </method>
  29783. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  29784. abstract="false" native="false" synchronized="true"
  29785. static="false" final="false" visibility="public"
  29786. deprecated="not deprecated">
  29787. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29788. <param name="iVal" type="float"/>
  29789. <doc>
  29790. <![CDATA[Create a mutable float gauge
  29791. @param info metadata of the metric
  29792. @param iVal initial value
  29793. @return a new gauge object]]>
  29794. </doc>
  29795. </method>
  29796. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  29797. abstract="false" native="false" synchronized="true"
  29798. static="false" final="false" visibility="public"
  29799. deprecated="not deprecated">
  29800. <param name="name" type="java.lang.String"/>
  29801. <param name="desc" type="java.lang.String"/>
  29802. <param name="sampleName" type="java.lang.String"/>
  29803. <param name="valueName" type="java.lang.String"/>
  29804. <param name="interval" type="int"/>
  29805. <doc>
  29806. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  29807. @param name of the metric
  29808. @param desc metric description
  29809. @param sampleName of the metric (e.g., "Ops")
  29810. @param valueName of the metric (e.g., "Time" or "Latency")
  29811. @param interval rollover interval of estimator in seconds
  29812. @return a new quantile estimator object
  29813. @throws MetricsException if interval is not a positive integer]]>
  29814. </doc>
  29815. </method>
  29816. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  29817. abstract="false" native="false" synchronized="true"
  29818. static="false" final="false" visibility="public"
  29819. deprecated="not deprecated">
  29820. <param name="name" type="java.lang.String"/>
  29821. <param name="desc" type="java.lang.String"/>
  29822. <param name="sampleName" type="java.lang.String"/>
  29823. <param name="valueName" type="java.lang.String"/>
  29824. <param name="extended" type="boolean"/>
  29825. <doc>
  29826. <![CDATA[Create a mutable metric with stats
  29827. @param name of the metric
  29828. @param desc metric description
  29829. @param sampleName of the metric (e.g., "Ops")
  29830. @param valueName of the metric (e.g., "Time" or "Latency")
  29831. @param extended produce extended stat (stdev, min/max etc.) if true.
  29832. @return a new mutable stat metric object]]>
  29833. </doc>
  29834. </method>
  29835. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  29836. abstract="false" native="false" synchronized="false"
  29837. static="false" final="false" visibility="public"
  29838. deprecated="not deprecated">
  29839. <param name="name" type="java.lang.String"/>
  29840. <param name="desc" type="java.lang.String"/>
  29841. <param name="sampleName" type="java.lang.String"/>
  29842. <param name="valueName" type="java.lang.String"/>
  29843. <doc>
  29844. <![CDATA[Create a mutable metric with stats
  29845. @param name of the metric
  29846. @param desc metric description
  29847. @param sampleName of the metric (e.g., "Ops")
  29848. @param valueName of the metric (e.g., "Time" or "Latency")
  29849. @return a new mutable metric object]]>
  29850. </doc>
  29851. </method>
  29852. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  29853. abstract="false" native="false" synchronized="false"
  29854. static="false" final="false" visibility="public"
  29855. deprecated="not deprecated">
  29856. <param name="name" type="java.lang.String"/>
  29857. <doc>
  29858. <![CDATA[Create a mutable rate metric
  29859. @param name of the metric
  29860. @return a new mutable metric object]]>
  29861. </doc>
  29862. </method>
  29863. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  29864. abstract="false" native="false" synchronized="false"
  29865. static="false" final="false" visibility="public"
  29866. deprecated="not deprecated">
  29867. <param name="name" type="java.lang.String"/>
  29868. <param name="description" type="java.lang.String"/>
  29869. <doc>
  29870. <![CDATA[Create a mutable rate metric
  29871. @param name of the metric
  29872. @param description of the metric
  29873. @return a new mutable rate metric object]]>
  29874. </doc>
  29875. </method>
  29876. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  29877. abstract="false" native="false" synchronized="false"
  29878. static="false" final="false" visibility="public"
  29879. deprecated="not deprecated">
  29880. <param name="name" type="java.lang.String"/>
  29881. <param name="desc" type="java.lang.String"/>
  29882. <param name="extended" type="boolean"/>
  29883. <doc>
  29884. <![CDATA[Create a mutable rate metric (for throughput measurement)
  29885. @param name of the metric
  29886. @param desc description
  29887. @param extended produce extended stat (stdev/min/max etc.) if true
  29888. @return a new mutable rate metric object]]>
  29889. </doc>
  29890. </method>
  29891. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  29892. abstract="false" native="false" synchronized="true"
  29893. static="false" final="false" visibility="public"
  29894. deprecated="not deprecated">
  29895. <param name="name" type="java.lang.String"/>
  29896. </method>
  29897. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  29898. abstract="false" native="false" synchronized="true"
  29899. static="false" final="false" visibility="public"
  29900. deprecated="not deprecated">
  29901. <param name="name" type="java.lang.String"/>
  29902. <param name="valueName" type="java.lang.String"/>
  29903. </method>
  29904. <method name="add"
  29905. abstract="false" native="false" synchronized="true"
  29906. static="false" final="false" visibility="public"
  29907. deprecated="not deprecated">
  29908. <param name="name" type="java.lang.String"/>
  29909. <param name="value" type="long"/>
  29910. <doc>
  29911. <![CDATA[Add sample to a stat metric by name.
  29912. @param name of the metric
  29913. @param value of the snapshot to add]]>
  29914. </doc>
  29915. </method>
  29916. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  29917. abstract="false" native="false" synchronized="false"
  29918. static="false" final="false" visibility="public"
  29919. deprecated="not deprecated">
  29920. <param name="name" type="java.lang.String"/>
  29921. <doc>
  29922. <![CDATA[Set the metrics context tag
  29923. @param name of the context
  29924. @return the registry itself as a convenience]]>
  29925. </doc>
  29926. </method>
  29927. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  29928. abstract="false" native="false" synchronized="false"
  29929. static="false" final="false" visibility="public"
  29930. deprecated="not deprecated">
  29931. <param name="name" type="java.lang.String"/>
  29932. <param name="description" type="java.lang.String"/>
  29933. <param name="value" type="java.lang.String"/>
  29934. <doc>
  29935. <![CDATA[Add a tag to the metrics
  29936. @param name of the tag
  29937. @param description of the tag
  29938. @param value of the tag
  29939. @return the registry (for keep adding tags)]]>
  29940. </doc>
  29941. </method>
  29942. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  29943. abstract="false" native="false" synchronized="false"
  29944. static="false" final="false" visibility="public"
  29945. deprecated="not deprecated">
  29946. <param name="name" type="java.lang.String"/>
  29947. <param name="description" type="java.lang.String"/>
  29948. <param name="value" type="java.lang.String"/>
  29949. <param name="override" type="boolean"/>
  29950. <doc>
  29951. <![CDATA[Add a tag to the metrics
  29952. @param name of the tag
  29953. @param description of the tag
  29954. @param value of the tag
  29955. @param override existing tag if true
  29956. @return the registry (for keep adding tags)]]>
  29957. </doc>
  29958. </method>
  29959. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  29960. abstract="false" native="false" synchronized="true"
  29961. static="false" final="false" visibility="public"
  29962. deprecated="not deprecated">
  29963. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29964. <param name="value" type="java.lang.String"/>
  29965. <param name="override" type="boolean"/>
  29966. <doc>
  29967. <![CDATA[Add a tag to the metrics
  29968. @param info metadata of the tag
  29969. @param value of the tag
  29970. @param override existing tag if true
  29971. @return the registry (for keep adding tags etc.)]]>
  29972. </doc>
  29973. </method>
  29974. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  29975. abstract="false" native="false" synchronized="false"
  29976. static="false" final="false" visibility="public"
  29977. deprecated="not deprecated">
  29978. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29979. <param name="value" type="java.lang.String"/>
  29980. </method>
  29981. <method name="snapshot"
  29982. abstract="false" native="false" synchronized="true"
  29983. static="false" final="false" visibility="public"
  29984. deprecated="not deprecated">
  29985. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  29986. <param name="all" type="boolean"/>
  29987. <doc>
  29988. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  29989. @param builder to contain the metrics snapshot
  29990. @param all get all the metrics even if the values are not changed.]]>
  29991. </doc>
  29992. </method>
  29993. <method name="toString" return="java.lang.String"
  29994. abstract="false" native="false" synchronized="false"
  29995. static="false" final="false" visibility="public"
  29996. deprecated="not deprecated">
  29997. </method>
  29998. <doc>
  29999. <![CDATA[An optional metrics registry class for creating and maintaining a
  30000. collection of MetricsMutables, making writing metrics source easier.]]>
  30001. </doc>
  30002. </class>
  30003. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  30004. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  30005. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30006. abstract="true"
  30007. static="false" final="false" visibility="public"
  30008. deprecated="not deprecated">
  30009. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  30010. static="false" final="false" visibility="protected"
  30011. deprecated="not deprecated">
  30012. </constructor>
  30013. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  30014. abstract="false" native="false" synchronized="false"
  30015. static="false" final="false" visibility="protected"
  30016. deprecated="not deprecated">
  30017. </method>
  30018. <method name="incr"
  30019. abstract="true" native="false" synchronized="false"
  30020. static="false" final="false" visibility="public"
  30021. deprecated="not deprecated">
  30022. <doc>
  30023. <![CDATA[Increment the metric value by 1.]]>
  30024. </doc>
  30025. </method>
  30026. <doc>
  30027. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  30028. </doc>
  30029. </class>
  30030. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  30031. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  30032. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  30033. abstract="false"
  30034. static="false" final="false" visibility="public"
  30035. deprecated="not deprecated">
  30036. <method name="incr"
  30037. abstract="false" native="false" synchronized="false"
  30038. static="false" final="false" visibility="public"
  30039. deprecated="not deprecated">
  30040. </method>
  30041. <method name="incr"
  30042. abstract="false" native="false" synchronized="true"
  30043. static="false" final="false" visibility="public"
  30044. deprecated="not deprecated">
  30045. <param name="delta" type="int"/>
  30046. <doc>
  30047. <![CDATA[Increment the value by a delta
  30048. @param delta of the increment]]>
  30049. </doc>
  30050. </method>
  30051. <method name="value" return="int"
  30052. abstract="false" native="false" synchronized="false"
  30053. static="false" final="false" visibility="public"
  30054. deprecated="not deprecated">
  30055. </method>
  30056. <method name="snapshot"
  30057. abstract="false" native="false" synchronized="false"
  30058. static="false" final="false" visibility="public"
  30059. deprecated="not deprecated">
  30060. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30061. <param name="all" type="boolean"/>
  30062. </method>
  30063. <doc>
  30064. <![CDATA[A mutable int counter for implementing metrics sources]]>
  30065. </doc>
  30066. </class>
  30067. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  30068. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  30069. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  30070. abstract="false"
  30071. static="false" final="false" visibility="public"
  30072. deprecated="not deprecated">
  30073. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  30074. static="false" final="false" visibility="public"
  30075. deprecated="not deprecated">
  30076. </constructor>
  30077. <method name="incr"
  30078. abstract="false" native="false" synchronized="false"
  30079. static="false" final="false" visibility="public"
  30080. deprecated="not deprecated">
  30081. </method>
  30082. <method name="incr"
  30083. abstract="false" native="false" synchronized="false"
  30084. static="false" final="false" visibility="public"
  30085. deprecated="not deprecated">
  30086. <param name="delta" type="long"/>
  30087. <doc>
  30088. <![CDATA[Increment the value by a delta
  30089. @param delta of the increment]]>
  30090. </doc>
  30091. </method>
  30092. <method name="value" return="long"
  30093. abstract="false" native="false" synchronized="false"
  30094. static="false" final="false" visibility="public"
  30095. deprecated="not deprecated">
  30096. </method>
  30097. <method name="snapshot"
  30098. abstract="false" native="false" synchronized="false"
  30099. static="false" final="false" visibility="public"
  30100. deprecated="not deprecated">
  30101. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30102. <param name="all" type="boolean"/>
  30103. </method>
  30104. <doc>
  30105. <![CDATA[A mutable long counter]]>
  30106. </doc>
  30107. </class>
  30108. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  30109. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  30110. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30111. abstract="true"
  30112. static="false" final="false" visibility="public"
  30113. deprecated="not deprecated">
  30114. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  30115. static="false" final="false" visibility="protected"
  30116. deprecated="not deprecated">
  30117. </constructor>
  30118. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  30119. abstract="false" native="false" synchronized="false"
  30120. static="false" final="false" visibility="protected"
  30121. deprecated="not deprecated">
  30122. </method>
  30123. <method name="incr"
  30124. abstract="true" native="false" synchronized="false"
  30125. static="false" final="false" visibility="public"
  30126. deprecated="not deprecated">
  30127. <doc>
  30128. <![CDATA[Increment the value of the metric by 1]]>
  30129. </doc>
  30130. </method>
  30131. <method name="decr"
  30132. abstract="true" native="false" synchronized="false"
  30133. static="false" final="false" visibility="public"
  30134. deprecated="not deprecated">
  30135. <doc>
  30136. <![CDATA[Decrement the value of the metric by 1]]>
  30137. </doc>
  30138. </method>
  30139. <doc>
  30140. <![CDATA[The mutable gauge metric interface]]>
  30141. </doc>
  30142. </class>
  30143. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  30144. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  30145. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  30146. abstract="false"
  30147. static="false" final="false" visibility="public"
  30148. deprecated="not deprecated">
  30149. <method name="value" return="int"
  30150. abstract="false" native="false" synchronized="false"
  30151. static="false" final="false" visibility="public"
  30152. deprecated="not deprecated">
  30153. </method>
  30154. <method name="incr"
  30155. abstract="false" native="false" synchronized="false"
  30156. static="false" final="false" visibility="public"
  30157. deprecated="not deprecated">
  30158. </method>
  30159. <method name="incr"
  30160. abstract="false" native="false" synchronized="false"
  30161. static="false" final="false" visibility="public"
  30162. deprecated="not deprecated">
  30163. <param name="delta" type="int"/>
  30164. <doc>
  30165. <![CDATA[Increment by delta
  30166. @param delta of the increment]]>
  30167. </doc>
  30168. </method>
  30169. <method name="decr"
  30170. abstract="false" native="false" synchronized="false"
  30171. static="false" final="false" visibility="public"
  30172. deprecated="not deprecated">
  30173. </method>
  30174. <method name="decr"
  30175. abstract="false" native="false" synchronized="false"
  30176. static="false" final="false" visibility="public"
  30177. deprecated="not deprecated">
  30178. <param name="delta" type="int"/>
  30179. <doc>
  30180. <![CDATA[decrement by delta
  30181. @param delta of the decrement]]>
  30182. </doc>
  30183. </method>
  30184. <method name="set"
  30185. abstract="false" native="false" synchronized="false"
  30186. static="false" final="false" visibility="public"
  30187. deprecated="not deprecated">
  30188. <param name="value" type="int"/>
  30189. <doc>
  30190. <![CDATA[Set the value of the metric
  30191. @param value to set]]>
  30192. </doc>
  30193. </method>
  30194. <method name="snapshot"
  30195. abstract="false" native="false" synchronized="false"
  30196. static="false" final="false" visibility="public"
  30197. deprecated="not deprecated">
  30198. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30199. <param name="all" type="boolean"/>
  30200. </method>
  30201. <method name="toString" return="java.lang.String"
  30202. abstract="false" native="false" synchronized="false"
  30203. static="false" final="false" visibility="public"
  30204. deprecated="not deprecated">
  30205. <doc>
  30206. <![CDATA[@return the value of the metric]]>
  30207. </doc>
  30208. </method>
  30209. <doc>
  30210. <![CDATA[A mutable int gauge]]>
  30211. </doc>
  30212. </class>
  30213. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  30214. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  30215. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  30216. abstract="false"
  30217. static="false" final="false" visibility="public"
  30218. deprecated="not deprecated">
  30219. <method name="value" return="long"
  30220. abstract="false" native="false" synchronized="false"
  30221. static="false" final="false" visibility="public"
  30222. deprecated="not deprecated">
  30223. </method>
  30224. <method name="incr"
  30225. abstract="false" native="false" synchronized="false"
  30226. static="false" final="false" visibility="public"
  30227. deprecated="not deprecated">
  30228. </method>
  30229. <method name="incr"
  30230. abstract="false" native="false" synchronized="false"
  30231. static="false" final="false" visibility="public"
  30232. deprecated="not deprecated">
  30233. <param name="delta" type="long"/>
  30234. <doc>
  30235. <![CDATA[Increment by delta
  30236. @param delta of the increment]]>
  30237. </doc>
  30238. </method>
  30239. <method name="decr"
  30240. abstract="false" native="false" synchronized="false"
  30241. static="false" final="false" visibility="public"
  30242. deprecated="not deprecated">
  30243. </method>
  30244. <method name="decr"
  30245. abstract="false" native="false" synchronized="false"
  30246. static="false" final="false" visibility="public"
  30247. deprecated="not deprecated">
  30248. <param name="delta" type="long"/>
  30249. <doc>
  30250. <![CDATA[decrement by delta
  30251. @param delta of the decrement]]>
  30252. </doc>
  30253. </method>
  30254. <method name="set"
  30255. abstract="false" native="false" synchronized="false"
  30256. static="false" final="false" visibility="public"
  30257. deprecated="not deprecated">
  30258. <param name="value" type="long"/>
  30259. <doc>
  30260. <![CDATA[Set the value of the metric
  30261. @param value to set]]>
  30262. </doc>
  30263. </method>
  30264. <method name="snapshot"
  30265. abstract="false" native="false" synchronized="false"
  30266. static="false" final="false" visibility="public"
  30267. deprecated="not deprecated">
  30268. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30269. <param name="all" type="boolean"/>
  30270. </method>
  30271. <method name="toString" return="java.lang.String"
  30272. abstract="false" native="false" synchronized="false"
  30273. static="false" final="false" visibility="public"
  30274. deprecated="not deprecated">
  30275. <doc>
  30276. <![CDATA[@return the value of the metric]]>
  30277. </doc>
  30278. </method>
  30279. <doc>
  30280. <![CDATA[A mutable long gauge]]>
  30281. </doc>
  30282. </class>
  30283. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  30284. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  30285. <class name="MutableMetric" extends="java.lang.Object"
  30286. abstract="true"
  30287. static="false" final="false" visibility="public"
  30288. deprecated="not deprecated">
  30289. <constructor name="MutableMetric"
  30290. static="false" final="false" visibility="public"
  30291. deprecated="not deprecated">
  30292. </constructor>
  30293. <method name="snapshot"
  30294. abstract="true" native="false" synchronized="false"
  30295. static="false" final="false" visibility="public"
  30296. deprecated="not deprecated">
  30297. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30298. <param name="all" type="boolean"/>
  30299. <doc>
  30300. <![CDATA[Get a snapshot of the metric
  30301. @param builder the metrics record builder
  30302. @param all if true, snapshot unchanged metrics as well]]>
  30303. </doc>
  30304. </method>
  30305. <method name="snapshot"
  30306. abstract="false" native="false" synchronized="false"
  30307. static="false" final="false" visibility="public"
  30308. deprecated="not deprecated">
  30309. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30310. <doc>
  30311. <![CDATA[Get a snapshot of metric if changed
  30312. @param builder the metrics record builder]]>
  30313. </doc>
  30314. </method>
  30315. <method name="setChanged"
  30316. abstract="false" native="false" synchronized="false"
  30317. static="false" final="false" visibility="protected"
  30318. deprecated="not deprecated">
  30319. <doc>
  30320. <![CDATA[Set the changed flag in mutable operations]]>
  30321. </doc>
  30322. </method>
  30323. <method name="clearChanged"
  30324. abstract="false" native="false" synchronized="false"
  30325. static="false" final="false" visibility="protected"
  30326. deprecated="not deprecated">
  30327. <doc>
  30328. <![CDATA[Clear the changed flag in the snapshot operations]]>
  30329. </doc>
  30330. </method>
  30331. <method name="changed" return="boolean"
  30332. abstract="false" native="false" synchronized="false"
  30333. static="false" final="false" visibility="public"
  30334. deprecated="not deprecated">
  30335. <doc>
  30336. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  30337. </doc>
  30338. </method>
  30339. <doc>
  30340. <![CDATA[The mutable metric interface]]>
  30341. </doc>
  30342. </class>
  30343. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  30344. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  30345. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30346. abstract="false"
  30347. static="false" final="false" visibility="public"
  30348. deprecated="not deprecated">
  30349. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  30350. static="false" final="false" visibility="public"
  30351. deprecated="not deprecated">
  30352. <doc>
  30353. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  30354. over on the specified time interval.
  30355. @param name
  30356. of the metric
  30357. @param description
  30358. long-form textual description of the metric
  30359. @param sampleName
  30360. type of items in the stream (e.g., "Ops")
  30361. @param valueName
  30362. type of the values
  30363. @param interval
  30364. rollover interval (in seconds) of the estimator]]>
  30365. </doc>
  30366. </constructor>
  30367. <method name="snapshot"
  30368. abstract="false" native="false" synchronized="true"
  30369. static="false" final="false" visibility="public"
  30370. deprecated="not deprecated">
  30371. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30372. <param name="all" type="boolean"/>
  30373. </method>
  30374. <method name="add"
  30375. abstract="false" native="false" synchronized="true"
  30376. static="false" final="false" visibility="public"
  30377. deprecated="not deprecated">
  30378. <param name="value" type="long"/>
  30379. </method>
  30380. <method name="getInterval" return="int"
  30381. abstract="false" native="false" synchronized="false"
  30382. static="false" final="false" visibility="public"
  30383. deprecated="not deprecated">
  30384. </method>
  30385. <method name="stop"
  30386. abstract="false" native="false" synchronized="false"
  30387. static="false" final="false" visibility="public"
  30388. deprecated="not deprecated">
  30389. </method>
  30390. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  30391. abstract="false" native="false" synchronized="true"
  30392. static="false" final="false" visibility="public"
  30393. deprecated="not deprecated">
  30394. <doc>
  30395. <![CDATA[Get the quantile estimator.
  30396. @return the quantile estimator]]>
  30397. </doc>
  30398. </method>
  30399. <method name="setEstimator"
  30400. abstract="false" native="false" synchronized="true"
  30401. static="false" final="false" visibility="public"
  30402. deprecated="not deprecated">
  30403. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  30404. </method>
  30405. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  30406. transient="false" volatile="false"
  30407. static="true" final="true" visibility="public"
  30408. deprecated="not deprecated">
  30409. </field>
  30410. <field name="previousSnapshot" type="java.util.Map"
  30411. transient="false" volatile="false"
  30412. static="false" final="false" visibility="protected"
  30413. deprecated="not deprecated">
  30414. </field>
  30415. <doc>
  30416. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  30417. quantiles with provably low error bounds. This is particularly useful for
  30418. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  30419. </doc>
  30420. </class>
  30421. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  30422. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  30423. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  30424. abstract="false"
  30425. static="false" final="false" visibility="public"
  30426. deprecated="not deprecated">
  30427. <doc>
  30428. <![CDATA[A convenient mutable metric for throughput measurement]]>
  30429. </doc>
  30430. </class>
  30431. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  30432. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  30433. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30434. abstract="false"
  30435. static="false" final="false" visibility="public"
  30436. deprecated="not deprecated">
  30437. <method name="init"
  30438. abstract="false" native="false" synchronized="false"
  30439. static="false" final="false" visibility="public"
  30440. deprecated="not deprecated">
  30441. <param name="protocol" type="java.lang.Class"/>
  30442. <doc>
  30443. <![CDATA[Initialize the registry with all the methods in a protocol
  30444. so they all show up in the first snapshot.
  30445. Convenient for JMX implementations.
  30446. @param protocol the protocol class]]>
  30447. </doc>
  30448. </method>
  30449. <method name="add"
  30450. abstract="false" native="false" synchronized="false"
  30451. static="false" final="false" visibility="public"
  30452. deprecated="not deprecated">
  30453. <param name="name" type="java.lang.String"/>
  30454. <param name="elapsed" type="long"/>
  30455. <doc>
  30456. <![CDATA[Add a rate sample for a rate metric
  30457. @param name of the rate metric
  30458. @param elapsed time]]>
  30459. </doc>
  30460. </method>
  30461. <method name="snapshot"
  30462. abstract="false" native="false" synchronized="false"
  30463. static="false" final="false" visibility="public"
  30464. deprecated="not deprecated">
  30465. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30466. <param name="all" type="boolean"/>
  30467. </method>
  30468. <doc>
  30469. <![CDATA[Helper class to manage a group of mutable rate metrics
  30470. This class synchronizes all accesses to the metrics it
  30471. contains, so it should not be used in situations where
  30472. there is high contention on the metrics.
  30473. {@link MutableRatesWithAggregation} is preferable in that
  30474. situation.]]>
  30475. </doc>
  30476. </class>
  30477. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  30478. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  30479. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30480. abstract="false"
  30481. static="false" final="false" visibility="public"
  30482. deprecated="not deprecated">
  30483. <constructor name="MutableRatesWithAggregation"
  30484. static="false" final="false" visibility="public"
  30485. deprecated="not deprecated">
  30486. </constructor>
  30487. <method name="init"
  30488. abstract="false" native="false" synchronized="false"
  30489. static="false" final="false" visibility="public"
  30490. deprecated="not deprecated">
  30491. <param name="protocol" type="java.lang.Class"/>
  30492. <doc>
  30493. <![CDATA[Initialize the registry with all the methods in a protocol
  30494. so they all show up in the first snapshot.
  30495. Convenient for JMX implementations.
  30496. @param protocol the protocol class]]>
  30497. </doc>
  30498. </method>
  30499. <method name="init"
  30500. abstract="false" native="false" synchronized="false"
  30501. static="false" final="false" visibility="public"
  30502. deprecated="not deprecated">
  30503. <param name="names" type="java.lang.String[]"/>
  30504. <doc>
  30505. <![CDATA[Initialize the registry with all rate names passed in.
  30506. This is an alternative to the above init function since this metric
  30507. can be used more than just for rpc name.
  30508. @param names the array of all rate names]]>
  30509. </doc>
  30510. </method>
  30511. <method name="add"
  30512. abstract="false" native="false" synchronized="false"
  30513. static="false" final="false" visibility="public"
  30514. deprecated="not deprecated">
  30515. <param name="name" type="java.lang.String"/>
  30516. <param name="elapsed" type="long"/>
  30517. <doc>
  30518. <![CDATA[Add a rate sample for a rate metric.
  30519. @param name of the rate metric
  30520. @param elapsed time]]>
  30521. </doc>
  30522. </method>
  30523. <method name="snapshot"
  30524. abstract="false" native="false" synchronized="true"
  30525. static="false" final="false" visibility="public"
  30526. deprecated="not deprecated">
  30527. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30528. <param name="all" type="boolean"/>
  30529. </method>
  30530. <method name="init"
  30531. abstract="false" native="false" synchronized="false"
  30532. static="false" final="false" visibility="public"
  30533. deprecated="not deprecated">
  30534. <param name="protocol" type="java.lang.Class"/>
  30535. <param name="prefix" type="java.lang.String"/>
  30536. </method>
  30537. <doc>
  30538. <![CDATA[Helper class to manage a group of mutable rate metrics.
  30539. Each thread will maintain a local rate count, and upon snapshot,
  30540. these values will be aggregated into a global rate. This class
  30541. should only be used for long running threads, as any metrics
  30542. produced between the last snapshot and the death of a thread
  30543. will be lost. This allows for significantly higher concurrency
  30544. than {@link MutableRates}. See HADOOP-24420.]]>
  30545. </doc>
  30546. </class>
  30547. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  30548. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  30549. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30550. abstract="false"
  30551. static="false" final="false" visibility="public"
  30552. deprecated="not deprecated">
  30553. <implements name="java.io.Closeable"/>
  30554. <constructor name="MutableRollingAverages" type="java.lang.String"
  30555. static="false" final="false" visibility="public"
  30556. deprecated="not deprecated">
  30557. <doc>
  30558. <![CDATA[Constructor for {@link MutableRollingAverages}.
  30559. @param metricValueName input metricValueName.]]>
  30560. </doc>
  30561. </constructor>
  30562. <method name="snapshot"
  30563. abstract="false" native="false" synchronized="false"
  30564. static="false" final="false" visibility="public"
  30565. deprecated="not deprecated">
  30566. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30567. <param name="all" type="boolean"/>
  30568. </method>
  30569. <method name="collectThreadLocalStates"
  30570. abstract="false" native="false" synchronized="false"
  30571. static="false" final="false" visibility="public"
  30572. deprecated="not deprecated">
  30573. <doc>
  30574. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  30575. </doc>
  30576. </method>
  30577. <method name="add"
  30578. abstract="false" native="false" synchronized="false"
  30579. static="false" final="false" visibility="public"
  30580. deprecated="not deprecated">
  30581. <param name="name" type="java.lang.String"/>
  30582. <param name="value" type="long"/>
  30583. <doc>
  30584. <![CDATA[@param name
  30585. name of metric
  30586. @param value
  30587. value of metric]]>
  30588. </doc>
  30589. </method>
  30590. <method name="close"
  30591. abstract="false" native="false" synchronized="false"
  30592. static="false" final="false" visibility="public"
  30593. deprecated="not deprecated">
  30594. <exception name="IOException" type="java.io.IOException"/>
  30595. </method>
  30596. <method name="getStats" return="java.util.Map"
  30597. abstract="false" native="false" synchronized="true"
  30598. static="false" final="false" visibility="public"
  30599. deprecated="not deprecated">
  30600. <param name="minSamples" type="long"/>
  30601. <doc>
  30602. <![CDATA[Retrieve a map of metric name {@literal ->} (aggregate).
  30603. Filter out entries that don't have at least minSamples.
  30604. @param minSamples input minSamples.
  30605. @return a map of peer DataNode Id to the average latency to that
  30606. node seen over the measurement period.]]>
  30607. </doc>
  30608. </method>
  30609. <method name="setRecordValidityMs"
  30610. abstract="false" native="false" synchronized="true"
  30611. static="false" final="false" visibility="public"
  30612. deprecated="not deprecated">
  30613. <param name="value" type="long"/>
  30614. <doc>
  30615. <![CDATA[Use for test only.
  30616. @param value input value.]]>
  30617. </doc>
  30618. </method>
  30619. <doc>
  30620. <![CDATA[<p>
  30621. This class maintains a group of rolling average metrics. It implements the
  30622. algorithm of rolling average, i.e. a number of sliding windows are kept to
  30623. roll over and evict old subsets of samples. Each window has a subset of
  30624. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  30625. and sub-totals in all windows will be aggregated to final-sum and final-total
  30626. used to compute final average, which is called rolling average.
  30627. </p>]]>
  30628. </doc>
  30629. </class>
  30630. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  30631. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  30632. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30633. abstract="false"
  30634. static="false" final="false" visibility="public"
  30635. deprecated="not deprecated">
  30636. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  30637. static="false" final="false" visibility="public"
  30638. deprecated="not deprecated">
  30639. <doc>
  30640. <![CDATA[Construct a sample statistics metric
  30641. @param name of the metric
  30642. @param description of the metric
  30643. @param sampleName of the metric (e.g. "Ops")
  30644. @param valueName of the metric (e.g. "Time", "Latency")
  30645. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  30646. </doc>
  30647. </constructor>
  30648. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  30649. static="false" final="false" visibility="public"
  30650. deprecated="not deprecated">
  30651. <doc>
  30652. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  30653. @param name of the metric
  30654. @param description of the metric
  30655. @param sampleName of the metric (e.g. "Ops")
  30656. @param valueName of the metric (e.g. "Time", "Latency")]]>
  30657. </doc>
  30658. </constructor>
  30659. <method name="setExtended"
  30660. abstract="false" native="false" synchronized="true"
  30661. static="false" final="false" visibility="public"
  30662. deprecated="not deprecated">
  30663. <param name="extended" type="boolean"/>
  30664. <doc>
  30665. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  30666. @param extended enable/disable displaying extended stats]]>
  30667. </doc>
  30668. </method>
  30669. <method name="setUpdateTimeStamp"
  30670. abstract="false" native="false" synchronized="true"
  30671. static="false" final="false" visibility="public"
  30672. deprecated="not deprecated">
  30673. <param name="updateTimeStamp" type="boolean"/>
  30674. <doc>
  30675. <![CDATA[Set whether to update the snapshot time or not.
  30676. @param updateTimeStamp enable update stats snapshot timestamp]]>
  30677. </doc>
  30678. </method>
  30679. <method name="add"
  30680. abstract="false" native="false" synchronized="true"
  30681. static="false" final="false" visibility="public"
  30682. deprecated="not deprecated">
  30683. <param name="numSamples" type="long"/>
  30684. <param name="sum" type="long"/>
  30685. <doc>
  30686. <![CDATA[Add a number of samples and their sum to the running stat
  30687. Note that although use of this method will preserve accurate mean values,
  30688. large values for numSamples may result in inaccurate variance values due
  30689. to the use of a single step of the Welford method for variance calculation.
  30690. @param numSamples number of samples
  30691. @param sum of the samples]]>
  30692. </doc>
  30693. </method>
  30694. <method name="add"
  30695. abstract="false" native="false" synchronized="true"
  30696. static="false" final="false" visibility="public"
  30697. deprecated="not deprecated">
  30698. <param name="value" type="long"/>
  30699. <doc>
  30700. <![CDATA[Add a snapshot to the metric.
  30701. @param value of the metric]]>
  30702. </doc>
  30703. </method>
  30704. <method name="snapshot"
  30705. abstract="false" native="false" synchronized="true"
  30706. static="false" final="false" visibility="public"
  30707. deprecated="not deprecated">
  30708. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30709. <param name="all" type="boolean"/>
  30710. </method>
  30711. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  30712. abstract="false" native="false" synchronized="false"
  30713. static="false" final="false" visibility="public"
  30714. deprecated="not deprecated">
  30715. <doc>
  30716. <![CDATA[Return a SampleStat object that supports
  30717. calls like StdDev and Mean.
  30718. @return SampleStat]]>
  30719. </doc>
  30720. </method>
  30721. <method name="resetMinMax"
  30722. abstract="false" native="false" synchronized="false"
  30723. static="false" final="false" visibility="public"
  30724. deprecated="not deprecated">
  30725. <doc>
  30726. <![CDATA[Reset the all time min max of the metric]]>
  30727. </doc>
  30728. </method>
  30729. <method name="getSnapshotTimeStamp" return="long"
  30730. abstract="false" native="false" synchronized="false"
  30731. static="false" final="false" visibility="public"
  30732. deprecated="not deprecated">
  30733. <doc>
  30734. <![CDATA[@return Return the SampleStat snapshot timestamp.]]>
  30735. </doc>
  30736. </method>
  30737. <method name="toString" return="java.lang.String"
  30738. abstract="false" native="false" synchronized="false"
  30739. static="false" final="false" visibility="public"
  30740. deprecated="not deprecated">
  30741. </method>
  30742. <doc>
  30743. <![CDATA[A mutable metric with stats.
  30744. Useful for keeping throughput/latency stats.]]>
  30745. </doc>
  30746. </class>
  30747. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  30748. </package>
  30749. <package name="org.apache.hadoop.metrics2.sink">
  30750. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  30751. <class name="FileSink" extends="java.lang.Object"
  30752. abstract="false"
  30753. static="false" final="false" visibility="public"
  30754. deprecated="not deprecated">
  30755. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  30756. <implements name="java.io.Closeable"/>
  30757. <constructor name="FileSink"
  30758. static="false" final="false" visibility="public"
  30759. deprecated="not deprecated">
  30760. </constructor>
  30761. <method name="init"
  30762. abstract="false" native="false" synchronized="false"
  30763. static="false" final="false" visibility="public"
  30764. deprecated="not deprecated">
  30765. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  30766. </method>
  30767. <method name="putMetrics"
  30768. abstract="false" native="false" synchronized="false"
  30769. static="false" final="false" visibility="public"
  30770. deprecated="not deprecated">
  30771. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  30772. </method>
  30773. <method name="flush"
  30774. abstract="false" native="false" synchronized="false"
  30775. static="false" final="false" visibility="public"
  30776. deprecated="not deprecated">
  30777. </method>
  30778. <method name="close"
  30779. abstract="false" native="false" synchronized="false"
  30780. static="false" final="false" visibility="public"
  30781. deprecated="not deprecated">
  30782. <exception name="IOException" type="java.io.IOException"/>
  30783. </method>
  30784. <doc>
  30785. <![CDATA[A metrics sink that writes to a file]]>
  30786. </doc>
  30787. </class>
  30788. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  30789. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  30790. <class name="GraphiteSink" extends="java.lang.Object"
  30791. abstract="false"
  30792. static="false" final="false" visibility="public"
  30793. deprecated="not deprecated">
  30794. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  30795. <implements name="java.io.Closeable"/>
  30796. <constructor name="GraphiteSink"
  30797. static="false" final="false" visibility="public"
  30798. deprecated="not deprecated">
  30799. </constructor>
  30800. <method name="init"
  30801. abstract="false" native="false" synchronized="false"
  30802. static="false" final="false" visibility="public"
  30803. deprecated="not deprecated">
  30804. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  30805. </method>
  30806. <method name="putMetrics"
  30807. abstract="false" native="false" synchronized="false"
  30808. static="false" final="false" visibility="public"
  30809. deprecated="not deprecated">
  30810. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  30811. </method>
  30812. <method name="flush"
  30813. abstract="false" native="false" synchronized="false"
  30814. static="false" final="false" visibility="public"
  30815. deprecated="not deprecated">
  30816. </method>
  30817. <method name="close"
  30818. abstract="false" native="false" synchronized="false"
  30819. static="false" final="false" visibility="public"
  30820. deprecated="not deprecated">
  30821. <exception name="IOException" type="java.io.IOException"/>
  30822. </method>
  30823. <doc>
  30824. <![CDATA[A metrics sink that writes to a Graphite server]]>
  30825. </doc>
  30826. </class>
  30827. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  30828. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  30829. <class name="RollingFileSystemSink" extends="java.lang.Object"
  30830. abstract="false"
  30831. static="false" final="false" visibility="public"
  30832. deprecated="not deprecated">
  30833. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  30834. <implements name="java.io.Closeable"/>
  30835. <constructor name="RollingFileSystemSink"
  30836. static="false" final="false" visibility="public"
  30837. deprecated="not deprecated">
  30838. <doc>
  30839. <![CDATA[Create an empty instance. Required for reflection.]]>
  30840. </doc>
  30841. </constructor>
  30842. <constructor name="RollingFileSystemSink" type="long, long"
  30843. static="false" final="false" visibility="protected"
  30844. deprecated="not deprecated">
  30845. <doc>
  30846. <![CDATA[Create an instance for testing.
  30847. @param flushIntervalMillis the roll interval in millis
  30848. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  30849. </doc>
  30850. </constructor>
  30851. <method name="init"
  30852. abstract="false" native="false" synchronized="false"
  30853. static="false" final="false" visibility="public"
  30854. deprecated="not deprecated">
  30855. <param name="metrics2Properties" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  30856. </method>
  30857. <method name="getRollInterval" return="long"
  30858. abstract="false" native="false" synchronized="false"
  30859. static="false" final="false" visibility="protected"
  30860. deprecated="not deprecated">
  30861. <doc>
  30862. <![CDATA[Extract the roll interval from the configuration and return it in
  30863. milliseconds.
  30864. @return the roll interval in millis]]>
  30865. </doc>
  30866. </method>
  30867. <method name="updateFlushTime"
  30868. abstract="false" native="false" synchronized="false"
  30869. static="false" final="false" visibility="protected"
  30870. deprecated="not deprecated">
  30871. <param name="now" type="java.util.Date"/>
  30872. <doc>
  30873. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  30874. an integer number of flush intervals, preserving the initial random offset.
  30875. @param now the current time]]>
  30876. </doc>
  30877. </method>
  30878. <method name="setInitialFlushTime"
  30879. abstract="false" native="false" synchronized="false"
  30880. static="false" final="false" visibility="protected"
  30881. deprecated="not deprecated">
  30882. <param name="now" type="java.util.Date"/>
  30883. <doc>
  30884. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  30885. flush will be an integer number of flush intervals past the beginning of
  30886. the current hour and will have a random offset added, up to
  30887. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  30888. past that can be used from which to calculate future flush times.
  30889. @param now the current time]]>
  30890. </doc>
  30891. </method>
  30892. <method name="putMetrics"
  30893. abstract="false" native="false" synchronized="false"
  30894. static="false" final="false" visibility="public"
  30895. deprecated="not deprecated">
  30896. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  30897. </method>
  30898. <method name="flush"
  30899. abstract="false" native="false" synchronized="false"
  30900. static="false" final="false" visibility="public"
  30901. deprecated="not deprecated">
  30902. </method>
  30903. <method name="close"
  30904. abstract="false" native="false" synchronized="false"
  30905. static="false" final="false" visibility="public"
  30906. deprecated="not deprecated">
  30907. </method>
  30908. <field name="source" type="java.lang.String"
  30909. transient="false" volatile="false"
  30910. static="false" final="false" visibility="protected"
  30911. deprecated="not deprecated">
  30912. </field>
  30913. <field name="ignoreError" type="boolean"
  30914. transient="false" volatile="false"
  30915. static="false" final="false" visibility="protected"
  30916. deprecated="not deprecated">
  30917. </field>
  30918. <field name="allowAppend" type="boolean"
  30919. transient="false" volatile="false"
  30920. static="false" final="false" visibility="protected"
  30921. deprecated="not deprecated">
  30922. </field>
  30923. <field name="basePath" type="org.apache.hadoop.fs.Path"
  30924. transient="false" volatile="false"
  30925. static="false" final="false" visibility="protected"
  30926. deprecated="not deprecated">
  30927. </field>
  30928. <field name="rollIntervalMillis" type="long"
  30929. transient="false" volatile="false"
  30930. static="false" final="false" visibility="protected"
  30931. deprecated="not deprecated">
  30932. </field>
  30933. <field name="rollOffsetIntervalMillis" type="long"
  30934. transient="false" volatile="false"
  30935. static="false" final="false" visibility="protected"
  30936. deprecated="not deprecated">
  30937. </field>
  30938. <field name="nextFlush" type="java.util.Calendar"
  30939. transient="false" volatile="false"
  30940. static="false" final="false" visibility="protected"
  30941. deprecated="not deprecated">
  30942. </field>
  30943. <field name="forceFlush" type="boolean"
  30944. transient="false" volatile="false"
  30945. static="true" final="false" visibility="protected"
  30946. deprecated="not deprecated">
  30947. </field>
  30948. <field name="hasFlushed" type="boolean"
  30949. transient="false" volatile="true"
  30950. static="true" final="false" visibility="protected"
  30951. deprecated="not deprecated">
  30952. </field>
  30953. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  30954. transient="false" volatile="false"
  30955. static="true" final="false" visibility="protected"
  30956. deprecated="not deprecated">
  30957. </field>
  30958. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  30959. transient="false" volatile="false"
  30960. static="true" final="false" visibility="protected"
  30961. deprecated="not deprecated">
  30962. </field>
  30963. <doc>
  30964. <![CDATA[<p>This class is a metrics sink that uses
  30965. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  30966. roll interval a new directory will be created under the path specified by the
  30967. <code>basepath</code> property. All metrics will be logged to a file in the
  30968. current interval's directory in a file named &lt;hostname&gt;.log, where
  30969. &lt;hostname&gt; is the name of the host on which the metrics logging
  30970. process is running. The base path is set by the
  30971. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  30972. time zone used to create the current interval's directory name is GMT. If
  30973. the <code>basepath</code> property isn't specified, it will default to
  30974. &quot;/tmp&quot;, which is the temp directory on whatever default file
  30975. system is configured for the cluster.</p>
  30976. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  30977. property controls whether an exception is thrown when an error is encountered
  30978. writing a log file. The default value is <code>true</code>. When set to
  30979. <code>false</code>, file errors are quietly swallowed.</p>
  30980. <p>The <code>roll-interval</code> property sets the amount of time before
  30981. rolling the directory. The default value is 1 hour. The roll interval may
  30982. not be less than 1 minute. The property's value should be given as
  30983. <i>number unit</i>, where <i>number</i> is an integer value, and
  30984. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  30985. and <i>day</i>. The units are case insensitive and may be abbreviated or
  30986. plural. If no units are specified, hours are assumed. For example,
  30987. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  30988. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  30989. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  30990. bound on a random time interval (in milliseconds) that is used to delay
  30991. before the initial roll. All subsequent rolls will happen an integer
  30992. number of roll intervals after the initial roll, hence retaining the original
  30993. offset. The purpose of this property is to insert some variance in the roll
  30994. times so that large clusters using this sink on every node don't cause a
  30995. performance impact on HDFS by rolling simultaneously. The default value is
  30996. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  30997. millis should be no less than the number of sink instances times 5.
  30998. <p>The primary use of this class is for logging to HDFS. As it uses
  30999. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  31000. however, it can be used to write to the local file system, Amazon S3, or any
  31001. other supported file system. The base path for the sink will determine the
  31002. file system used. An unqualified path will write to the default file system
  31003. set by the configuration.</p>
  31004. <p>Not all file systems support the ability to append to files. In file
  31005. systems without the ability to append to files, only one writer can write to
  31006. a file at a time. To allow for concurrent writes from multiple daemons on a
  31007. single host, the <code>source</code> property is used to set unique headers
  31008. for the log files. The property should be set to the name of
  31009. the source daemon, e.g. <i>namenode</i>. The value of the
  31010. <code>source</code> property should typically be the same as the property's
  31011. prefix. If this property is not set, the source is taken to be
  31012. <i>unknown</i>.</p>
  31013. <p>Instead of appending to an existing file, by default the sink
  31014. will create a new file with a suffix of &quot;.&lt;n&gt;&quot;, where
  31015. <i>n</i> is the next lowest integer that isn't already used in a file name,
  31016. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  31017. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  31018. <p>For file systems that allow append, the sink supports appending to the
  31019. existing file instead. If the <code>allow-append</code> property is set to
  31020. true, the sink will instead append to the existing file on file systems that
  31021. support appends. By default, the <code>allow-append</code> property is
  31022. false.</p>
  31023. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  31024. there is a minimum acceptable number of data nodes. If the number of data
  31025. nodes drops below that minimum, the append will succeed, but reading the
  31026. data will fail with an IOException in the DataStreamer class. The minimum
  31027. number of data nodes required for a successful append is generally 2 or
  31028. 3.</p>
  31029. <p>Note also that when writing to HDFS, the file size information is not
  31030. updated until the file is closed (at the end of the interval) even though
  31031. the data is being written successfully. This is a known HDFS limitation that
  31032. exists because of the performance cost of updating the metadata. See
  31033. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  31034. <p>When using this sink in a secure (Kerberos) environment, two additional
  31035. properties must be set: <code>keytab-key</code> and
  31036. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  31037. which the keytab file can be found in the configuration, for example,
  31038. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  31039. contain the key by which the principal can be found in the configuration,
  31040. for example, <code>yarn.nodemanager.principal</code>.]]>
  31041. </doc>
  31042. </class>
  31043. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  31044. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  31045. <class name="StatsDSink" extends="java.lang.Object"
  31046. abstract="false"
  31047. static="false" final="false" visibility="public"
  31048. deprecated="not deprecated">
  31049. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  31050. <implements name="java.io.Closeable"/>
  31051. <constructor name="StatsDSink"
  31052. static="false" final="false" visibility="public"
  31053. deprecated="not deprecated">
  31054. </constructor>
  31055. <method name="init"
  31056. abstract="false" native="false" synchronized="false"
  31057. static="false" final="false" visibility="public"
  31058. deprecated="not deprecated">
  31059. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  31060. </method>
  31061. <method name="putMetrics"
  31062. abstract="false" native="false" synchronized="false"
  31063. static="false" final="false" visibility="public"
  31064. deprecated="not deprecated">
  31065. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31066. </method>
  31067. <method name="writeMetric"
  31068. abstract="false" native="false" synchronized="false"
  31069. static="false" final="false" visibility="public"
  31070. deprecated="not deprecated">
  31071. <param name="line" type="java.lang.String"/>
  31072. </method>
  31073. <method name="flush"
  31074. abstract="false" native="false" synchronized="false"
  31075. static="false" final="false" visibility="public"
  31076. deprecated="not deprecated">
  31077. </method>
  31078. <method name="close"
  31079. abstract="false" native="false" synchronized="false"
  31080. static="false" final="false" visibility="public"
  31081. deprecated="not deprecated">
  31082. <exception name="IOException" type="java.io.IOException"/>
  31083. </method>
  31084. <doc>
  31085. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  31086. This sink will produce metrics of the form
  31087. '[hostname].servicename.context.name.metricname:value|type'
  31088. where hostname is optional. This is useful when sending to
  31089. a daemon that is running on the localhost and will add the
  31090. hostname to the metric (such as the
  31091. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  31092. <br>
  31093. To configure this plugin, you will need to add the following
  31094. entries to your hadoop-metrics2.properties file:
  31095. <br>
  31096. <pre>
  31097. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  31098. [prefix].sink.statsd.server.host=
  31099. [prefix].sink.statsd.server.port=
  31100. [prefix].sink.statsd.skip.hostname=true|false (optional)
  31101. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  31102. </pre>]]>
  31103. </doc>
  31104. </class>
  31105. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  31106. </package>
  31107. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  31108. </package>
  31109. <package name="org.apache.hadoop.metrics2.source">
  31110. </package>
  31111. <package name="org.apache.hadoop.metrics2.util">
  31112. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  31113. <class name="MBeans" extends="java.lang.Object"
  31114. abstract="false"
  31115. static="false" final="true" visibility="public"
  31116. deprecated="not deprecated">
  31117. <method name="register" return="javax.management.ObjectName"
  31118. abstract="false" native="false" synchronized="false"
  31119. static="true" final="false" visibility="public"
  31120. deprecated="not deprecated">
  31121. <param name="serviceName" type="java.lang.String"/>
  31122. <param name="nameName" type="java.lang.String"/>
  31123. <param name="theMbean" type="java.lang.Object"/>
  31124. <doc>
  31125. <![CDATA[Register the MBean using our standard MBeanName format
  31126. "hadoop:service={@literal <serviceName>,name=<nameName>}"
  31127. Where the {@literal <serviceName> and <nameName>} are the supplied
  31128. parameters.
  31129. @param serviceName serviceName.
  31130. @param nameName nameName.
  31131. @param theMbean - the MBean to register
  31132. @return the named used to register the MBean]]>
  31133. </doc>
  31134. </method>
  31135. <method name="register" return="javax.management.ObjectName"
  31136. abstract="false" native="false" synchronized="false"
  31137. static="true" final="false" visibility="public"
  31138. deprecated="not deprecated">
  31139. <param name="serviceName" type="java.lang.String"/>
  31140. <param name="nameName" type="java.lang.String"/>
  31141. <param name="properties" type="java.util.Map"/>
  31142. <param name="theMbean" type="java.lang.Object"/>
  31143. <doc>
  31144. <![CDATA[Register the MBean using our standard MBeanName format
  31145. "hadoop:service={@literal <serviceName>,name=<nameName>}"
  31146. Where the {@literal <serviceName> and <nameName>} are the supplied
  31147. parameters.
  31148. @param serviceName serviceName.
  31149. @param nameName nameName.
  31150. @param properties - Key value pairs to define additional JMX ObjectName
  31151. properties.
  31152. @param theMbean - the MBean to register
  31153. @return the named used to register the MBean]]>
  31154. </doc>
  31155. </method>
  31156. <method name="getMbeanNameService" return="java.lang.String"
  31157. abstract="false" native="false" synchronized="false"
  31158. static="true" final="false" visibility="public"
  31159. deprecated="not deprecated">
  31160. <param name="objectName" type="javax.management.ObjectName"/>
  31161. </method>
  31162. <method name="getMbeanNameName" return="java.lang.String"
  31163. abstract="false" native="false" synchronized="false"
  31164. static="true" final="false" visibility="public"
  31165. deprecated="not deprecated">
  31166. <param name="objectName" type="javax.management.ObjectName"/>
  31167. </method>
  31168. <method name="unregister"
  31169. abstract="false" native="false" synchronized="false"
  31170. static="true" final="false" visibility="public"
  31171. deprecated="not deprecated">
  31172. <param name="mbeanName" type="javax.management.ObjectName"/>
  31173. </method>
  31174. <doc>
  31175. <![CDATA[This util class provides a method to register an MBean using
  31176. our standard naming convention as described in the doc
  31177. for {link {@link #register(String, String, Object)}.]]>
  31178. </doc>
  31179. </class>
  31180. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  31181. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  31182. <class name="MetricsCache" extends="java.lang.Object"
  31183. abstract="false"
  31184. static="false" final="false" visibility="public"
  31185. deprecated="not deprecated">
  31186. <constructor name="MetricsCache"
  31187. static="false" final="false" visibility="public"
  31188. deprecated="not deprecated">
  31189. </constructor>
  31190. <constructor name="MetricsCache" type="int"
  31191. static="false" final="false" visibility="public"
  31192. deprecated="not deprecated">
  31193. <doc>
  31194. <![CDATA[Construct a metrics cache
  31195. @param maxRecsPerName limit of the number records per record name]]>
  31196. </doc>
  31197. </constructor>
  31198. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  31199. abstract="false" native="false" synchronized="false"
  31200. static="false" final="false" visibility="public"
  31201. deprecated="not deprecated">
  31202. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31203. <param name="includingTags" type="boolean"/>
  31204. <doc>
  31205. <![CDATA[Update the cache and return the current cached record
  31206. @param mr the update record
  31207. @param includingTags cache tag values (for later lookup by name) if true
  31208. @return the updated cache record]]>
  31209. </doc>
  31210. </method>
  31211. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  31212. abstract="false" native="false" synchronized="false"
  31213. static="false" final="false" visibility="public"
  31214. deprecated="not deprecated">
  31215. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31216. <doc>
  31217. <![CDATA[Update the cache and return the current cache record
  31218. @param mr the update record
  31219. @return the updated cache record]]>
  31220. </doc>
  31221. </method>
  31222. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  31223. abstract="false" native="false" synchronized="false"
  31224. static="false" final="false" visibility="public"
  31225. deprecated="not deprecated">
  31226. <param name="name" type="java.lang.String"/>
  31227. <param name="tags" type="java.util.Collection"/>
  31228. <doc>
  31229. <![CDATA[Get the cached record
  31230. @param name of the record
  31231. @param tags of the record
  31232. @return the cached record or null]]>
  31233. </doc>
  31234. </method>
  31235. <doc>
  31236. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  31237. </doc>
  31238. </class>
  31239. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  31240. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  31241. <class name="Servers" extends="java.lang.Object"
  31242. abstract="false"
  31243. static="false" final="false" visibility="public"
  31244. deprecated="not deprecated">
  31245. <method name="parse" return="java.util.List"
  31246. abstract="false" native="false" synchronized="false"
  31247. static="true" final="false" visibility="public"
  31248. deprecated="not deprecated">
  31249. <param name="specs" type="java.lang.String"/>
  31250. <param name="defaultPort" type="int"/>
  31251. <doc>
  31252. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  31253. of the form <i>hostname</i> or <i>hostname:port</i>. If
  31254. the specs string is null, defaults to localhost:defaultPort.
  31255. @param specs server specs (see description)
  31256. @param defaultPort the default port if not specified
  31257. @return a list of InetSocketAddress objects.]]>
  31258. </doc>
  31259. </method>
  31260. <doc>
  31261. <![CDATA[Helpers to handle server addresses]]>
  31262. </doc>
  31263. </class>
  31264. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  31265. </package>
  31266. <package name="org.apache.hadoop.net">
  31267. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  31268. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  31269. abstract="true"
  31270. static="false" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  31273. <implements name="org.apache.hadoop.conf.Configurable"/>
  31274. <constructor name="AbstractDNSToSwitchMapping"
  31275. static="false" final="false" visibility="protected"
  31276. deprecated="not deprecated">
  31277. <doc>
  31278. <![CDATA[Create an unconfigured instance]]>
  31279. </doc>
  31280. </constructor>
  31281. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  31282. static="false" final="false" visibility="protected"
  31283. deprecated="not deprecated">
  31284. <doc>
  31285. <![CDATA[Create an instance, caching the configuration file.
  31286. This constructor does not call {@link #setConf(Configuration)}; if
  31287. a subclass extracts information in that method, it must call it explicitly.
  31288. @param conf the configuration]]>
  31289. </doc>
  31290. </constructor>
  31291. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31292. abstract="false" native="false" synchronized="false"
  31293. static="false" final="false" visibility="public"
  31294. deprecated="not deprecated">
  31295. </method>
  31296. <method name="setConf"
  31297. abstract="false" native="false" synchronized="false"
  31298. static="false" final="false" visibility="public"
  31299. deprecated="not deprecated">
  31300. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31301. </method>
  31302. <method name="isSingleSwitch" return="boolean"
  31303. abstract="false" native="false" synchronized="false"
  31304. static="false" final="false" visibility="public"
  31305. deprecated="not deprecated">
  31306. <doc>
  31307. <![CDATA[Predicate that indicates that the switch mapping is known to be
  31308. single-switch. The base class returns false: it assumes all mappings are
  31309. multi-rack. Subclasses may override this with methods that are more aware
  31310. of their topologies.
  31311. <p>
  31312. This method is used when parts of Hadoop need know whether to apply
  31313. single rack vs multi-rack policies, such as during block placement.
  31314. Such algorithms behave differently if they are on multi-switch systems.
  31315. </p>
  31316. @return true if the mapping thinks that it is on a single switch]]>
  31317. </doc>
  31318. </method>
  31319. <method name="getSwitchMap" return="java.util.Map"
  31320. abstract="false" native="false" synchronized="false"
  31321. static="false" final="false" visibility="public"
  31322. deprecated="not deprecated">
  31323. <doc>
  31324. <![CDATA[Get a copy of the map (for diagnostics)
  31325. @return a clone of the map or null for none known]]>
  31326. </doc>
  31327. </method>
  31328. <method name="dumpTopology" return="java.lang.String"
  31329. abstract="false" native="false" synchronized="false"
  31330. static="false" final="false" visibility="public"
  31331. deprecated="not deprecated">
  31332. <doc>
  31333. <![CDATA[Generate a string listing the switch mapping implementation,
  31334. the mapping for every known node and the number of nodes and
  31335. unique switches known about -each entry to a separate line.
  31336. @return a string that can be presented to the ops team or used in
  31337. debug messages.]]>
  31338. </doc>
  31339. </method>
  31340. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  31341. abstract="false" native="false" synchronized="false"
  31342. static="false" final="false" visibility="protected"
  31343. deprecated="not deprecated">
  31344. </method>
  31345. <method name="isMappingSingleSwitch" return="boolean"
  31346. abstract="false" native="false" synchronized="false"
  31347. static="true" final="false" visibility="public"
  31348. deprecated="not deprecated">
  31349. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  31350. <doc>
  31351. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  31352. switch.
  31353. <p>
  31354. This predicate simply assumes that all mappings not derived from
  31355. this class are multi-switch.
  31356. @param mapping the mapping to query
  31357. @return true if the base class says it is single switch, or the mapping
  31358. is not derived from this class.]]>
  31359. </doc>
  31360. </method>
  31361. <doc>
  31362. <![CDATA[This is a base class for DNS to Switch mappings. <p> It is not mandatory to
  31363. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  31364. recommended, as it makes it easy for the Hadoop developers to add new methods
  31365. to this base class that are automatically picked up by all implementations.
  31366. <p>
  31367. This class does not extend the <code>Configured</code>
  31368. base class, and should not be changed to do so, as it causes problems
  31369. for subclasses. The constructor of the <code>Configured</code> calls
  31370. the {@link #setConf(Configuration)} method, which will call into the
  31371. subclasses before they have been fully constructed.]]>
  31372. </doc>
  31373. </class>
  31374. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  31375. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  31376. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  31377. abstract="false"
  31378. static="false" final="false" visibility="public"
  31379. deprecated="not deprecated">
  31380. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  31381. static="false" final="false" visibility="public"
  31382. deprecated="not deprecated">
  31383. <doc>
  31384. <![CDATA[cache a raw DNS mapping
  31385. @param rawMapping the raw mapping to cache]]>
  31386. </doc>
  31387. </constructor>
  31388. <method name="resolve" return="java.util.List"
  31389. abstract="false" native="false" synchronized="false"
  31390. static="false" final="false" visibility="public"
  31391. deprecated="not deprecated">
  31392. <param name="names" type="java.util.List"/>
  31393. </method>
  31394. <method name="getSwitchMap" return="java.util.Map"
  31395. abstract="false" native="false" synchronized="false"
  31396. static="false" final="false" visibility="public"
  31397. deprecated="not deprecated">
  31398. <doc>
  31399. <![CDATA[Get the (host x switch) map.
  31400. @return a copy of the cached map of hosts to rack]]>
  31401. </doc>
  31402. </method>
  31403. <method name="toString" return="java.lang.String"
  31404. abstract="false" native="false" synchronized="false"
  31405. static="false" final="false" visibility="public"
  31406. deprecated="not deprecated">
  31407. </method>
  31408. <method name="isSingleSwitch" return="boolean"
  31409. abstract="false" native="false" synchronized="false"
  31410. static="false" final="false" visibility="public"
  31411. deprecated="not deprecated">
  31412. <doc>
  31413. <![CDATA[Delegate the switch topology query to the raw mapping, via
  31414. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  31415. @return true iff the raw mapper is considered single-switch.]]>
  31416. </doc>
  31417. </method>
  31418. <method name="reloadCachedMappings"
  31419. abstract="false" native="false" synchronized="false"
  31420. static="false" final="false" visibility="public"
  31421. deprecated="not deprecated">
  31422. </method>
  31423. <method name="reloadCachedMappings"
  31424. abstract="false" native="false" synchronized="false"
  31425. static="false" final="false" visibility="public"
  31426. deprecated="not deprecated">
  31427. <param name="names" type="java.util.List"/>
  31428. </method>
  31429. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  31430. transient="false" volatile="false"
  31431. static="false" final="true" visibility="protected"
  31432. deprecated="not deprecated">
  31433. <doc>
  31434. <![CDATA[The uncached mapping]]>
  31435. </doc>
  31436. </field>
  31437. <doc>
  31438. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  31439. raw DNSToSwitchMapping and stores the resolved network location in
  31440. a cache. The following calls to a resolved network location
  31441. will get its location from the cache.]]>
  31442. </doc>
  31443. </class>
  31444. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  31445. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  31446. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  31447. abstract="false"
  31448. static="false" final="false" visibility="public"
  31449. deprecated="not deprecated">
  31450. <constructor name="ConnectTimeoutException" type="java.lang.String"
  31451. static="false" final="false" visibility="public"
  31452. deprecated="not deprecated">
  31453. </constructor>
  31454. <doc>
  31455. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  31456. if it times out while connecting to the remote host.]]>
  31457. </doc>
  31458. </class>
  31459. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  31460. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  31461. <interface name="DNSToSwitchMapping" abstract="true"
  31462. static="false" final="false" visibility="public"
  31463. deprecated="not deprecated">
  31464. <method name="resolve" return="java.util.List"
  31465. abstract="true" native="false" synchronized="false"
  31466. static="false" final="false" visibility="public"
  31467. deprecated="not deprecated">
  31468. <param name="names" type="java.util.List"/>
  31469. <doc>
  31470. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  31471. switch information (network paths). One-to-one correspondence must be
  31472. maintained between the elements in the lists.
  31473. Consider an element in the argument list - x.y.com. The switch information
  31474. that is returned must be a network path of the form /foo/rack,
  31475. where / is the root, and 'foo' is the switch where 'rack' is connected.
  31476. Note the hostname/ip-address is not part of the returned path.
  31477. The network topology of the cluster would determine the number of
  31478. components in the network path.
  31479. <p>
  31480. If a name cannot be resolved to a rack, the implementation
  31481. should return {@link NetworkTopology#DEFAULT_RACK}. This
  31482. is what the bundled implementations do, though it is not a formal requirement
  31483. @param names the list of hosts to resolve (can be empty)
  31484. @return list of resolved network paths.
  31485. If <i>names</i> is empty, the returned list is also empty]]>
  31486. </doc>
  31487. </method>
  31488. <method name="reloadCachedMappings"
  31489. abstract="true" native="false" synchronized="false"
  31490. static="false" final="false" visibility="public"
  31491. deprecated="not deprecated">
  31492. <doc>
  31493. <![CDATA[Reload all of the cached mappings.
  31494. If there is a cache, this method will clear it, so that future accesses
  31495. will get a chance to see the new data.]]>
  31496. </doc>
  31497. </method>
  31498. <method name="reloadCachedMappings"
  31499. abstract="true" native="false" synchronized="false"
  31500. static="false" final="false" visibility="public"
  31501. deprecated="not deprecated">
  31502. <param name="names" type="java.util.List"/>
  31503. <doc>
  31504. <![CDATA[Reload cached mappings on specific nodes.
  31505. If there is a cache on these nodes, this method will clear it, so that
  31506. future accesses will see updated data.
  31507. @param names input names.]]>
  31508. </doc>
  31509. </method>
  31510. <doc>
  31511. <![CDATA[An interface that must be implemented to allow pluggable
  31512. DNS-name/IP-address to RackID resolvers.]]>
  31513. </doc>
  31514. </interface>
  31515. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  31516. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  31517. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  31518. abstract="false"
  31519. static="false" final="false" visibility="public"
  31520. deprecated="not deprecated">
  31521. <constructor name="ScriptBasedMapping"
  31522. static="false" final="false" visibility="public"
  31523. deprecated="not deprecated">
  31524. <doc>
  31525. <![CDATA[Create an instance with the default configuration.
  31526. <p>
  31527. Calling {@link #setConf(Configuration)} will trigger a
  31528. re-evaluation of the configuration settings and so be used to
  31529. set up the mapping script.]]>
  31530. </doc>
  31531. </constructor>
  31532. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  31533. static="false" final="false" visibility="public"
  31534. deprecated="not deprecated">
  31535. <doc>
  31536. <![CDATA[Create an instance from the given raw mapping
  31537. @param rawMap raw DNSTOSwithMapping]]>
  31538. </doc>
  31539. </constructor>
  31540. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  31541. static="false" final="false" visibility="public"
  31542. deprecated="not deprecated">
  31543. <doc>
  31544. <![CDATA[Create an instance from the given configuration
  31545. @param conf configuration]]>
  31546. </doc>
  31547. </constructor>
  31548. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31549. abstract="false" native="false" synchronized="false"
  31550. static="false" final="false" visibility="public"
  31551. deprecated="not deprecated">
  31552. </method>
  31553. <method name="toString" return="java.lang.String"
  31554. abstract="false" native="false" synchronized="false"
  31555. static="false" final="false" visibility="public"
  31556. deprecated="not deprecated">
  31557. </method>
  31558. <method name="setConf"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="false" visibility="public"
  31561. deprecated="not deprecated">
  31562. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31563. <doc>
  31564. <![CDATA[{@inheritDoc}.
  31565. <p>
  31566. This will get called in the superclass constructor, so a check is needed
  31567. to ensure that the raw mapping is defined before trying to relaying a null
  31568. configuration.
  31569. </p>
  31570. @param conf input Configuration.]]>
  31571. </doc>
  31572. </method>
  31573. <field name="NO_SCRIPT" type="java.lang.String"
  31574. transient="false" volatile="false"
  31575. static="true" final="true" visibility="public"
  31576. deprecated="not deprecated">
  31577. <doc>
  31578. <![CDATA[Text used in the {@link #toString()} method if there is no string
  31579. {@value}]]>
  31580. </doc>
  31581. </field>
  31582. <doc>
  31583. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  31584. script configured via the
  31585. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  31586. <p>
  31587. It contains a static class <code>RawScriptBasedMapping</code> that performs
  31588. the work: reading the configuration parameters, executing any defined
  31589. script, handling errors and such like. The outer
  31590. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  31591. queries.
  31592. <p>
  31593. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  31594. true if and only if a script is defined.]]>
  31595. </doc>
  31596. </class>
  31597. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  31598. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  31599. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  31600. abstract="false"
  31601. static="false" final="false" visibility="public"
  31602. deprecated="not deprecated">
  31603. <implements name="org.apache.hadoop.conf.Configurable"/>
  31604. <constructor name="SocksSocketFactory"
  31605. static="false" final="false" visibility="public"
  31606. deprecated="not deprecated">
  31607. <doc>
  31608. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31609. </doc>
  31610. </constructor>
  31611. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  31612. static="false" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <doc>
  31615. <![CDATA[Constructor with a supplied Proxy
  31616. @param proxy the proxy to use to create sockets]]>
  31617. </doc>
  31618. </constructor>
  31619. <method name="createSocket" return="java.net.Socket"
  31620. abstract="false" native="false" synchronized="false"
  31621. static="false" final="false" visibility="public"
  31622. deprecated="not deprecated">
  31623. <exception name="IOException" type="java.io.IOException"/>
  31624. </method>
  31625. <method name="createSocket" return="java.net.Socket"
  31626. abstract="false" native="false" synchronized="false"
  31627. static="false" final="false" visibility="public"
  31628. deprecated="not deprecated">
  31629. <param name="addr" type="java.net.InetAddress"/>
  31630. <param name="port" type="int"/>
  31631. <exception name="IOException" type="java.io.IOException"/>
  31632. </method>
  31633. <method name="createSocket" return="java.net.Socket"
  31634. abstract="false" native="false" synchronized="false"
  31635. static="false" final="false" visibility="public"
  31636. deprecated="not deprecated">
  31637. <param name="addr" type="java.net.InetAddress"/>
  31638. <param name="port" type="int"/>
  31639. <param name="localHostAddr" type="java.net.InetAddress"/>
  31640. <param name="localPort" type="int"/>
  31641. <exception name="IOException" type="java.io.IOException"/>
  31642. </method>
  31643. <method name="createSocket" return="java.net.Socket"
  31644. abstract="false" native="false" synchronized="false"
  31645. static="false" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <param name="host" type="java.lang.String"/>
  31648. <param name="port" type="int"/>
  31649. <exception name="IOException" type="java.io.IOException"/>
  31650. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31651. </method>
  31652. <method name="createSocket" return="java.net.Socket"
  31653. abstract="false" native="false" synchronized="false"
  31654. static="false" final="false" visibility="public"
  31655. deprecated="not deprecated">
  31656. <param name="host" type="java.lang.String"/>
  31657. <param name="port" type="int"/>
  31658. <param name="localHostAddr" type="java.net.InetAddress"/>
  31659. <param name="localPort" type="int"/>
  31660. <exception name="IOException" type="java.io.IOException"/>
  31661. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31662. </method>
  31663. <method name="hashCode" return="int"
  31664. abstract="false" native="false" synchronized="false"
  31665. static="false" final="false" visibility="public"
  31666. deprecated="not deprecated">
  31667. </method>
  31668. <method name="equals" return="boolean"
  31669. abstract="false" native="false" synchronized="false"
  31670. static="false" final="false" visibility="public"
  31671. deprecated="not deprecated">
  31672. <param name="obj" type="java.lang.Object"/>
  31673. </method>
  31674. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31675. abstract="false" native="false" synchronized="false"
  31676. static="false" final="false" visibility="public"
  31677. deprecated="not deprecated">
  31678. </method>
  31679. <method name="setConf"
  31680. abstract="false" native="false" synchronized="false"
  31681. static="false" final="false" visibility="public"
  31682. deprecated="not deprecated">
  31683. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31684. </method>
  31685. <doc>
  31686. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31687. </doc>
  31688. </class>
  31689. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  31690. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  31691. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  31692. abstract="false"
  31693. static="false" final="false" visibility="public"
  31694. deprecated="not deprecated">
  31695. <constructor name="StandardSocketFactory"
  31696. static="false" final="false" visibility="public"
  31697. deprecated="not deprecated">
  31698. <doc>
  31699. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31700. </doc>
  31701. </constructor>
  31702. <method name="createSocket" return="java.net.Socket"
  31703. abstract="false" native="false" synchronized="false"
  31704. static="false" final="false" visibility="public"
  31705. deprecated="not deprecated">
  31706. <exception name="IOException" type="java.io.IOException"/>
  31707. </method>
  31708. <method name="createSocket" return="java.net.Socket"
  31709. abstract="false" native="false" synchronized="false"
  31710. static="false" final="false" visibility="public"
  31711. deprecated="not deprecated">
  31712. <param name="addr" type="java.net.InetAddress"/>
  31713. <param name="port" type="int"/>
  31714. <exception name="IOException" type="java.io.IOException"/>
  31715. </method>
  31716. <method name="createSocket" return="java.net.Socket"
  31717. abstract="false" native="false" synchronized="false"
  31718. static="false" final="false" visibility="public"
  31719. deprecated="not deprecated">
  31720. <param name="addr" type="java.net.InetAddress"/>
  31721. <param name="port" type="int"/>
  31722. <param name="localHostAddr" type="java.net.InetAddress"/>
  31723. <param name="localPort" type="int"/>
  31724. <exception name="IOException" type="java.io.IOException"/>
  31725. </method>
  31726. <method name="createSocket" return="java.net.Socket"
  31727. abstract="false" native="false" synchronized="false"
  31728. static="false" final="false" visibility="public"
  31729. deprecated="not deprecated">
  31730. <param name="host" type="java.lang.String"/>
  31731. <param name="port" type="int"/>
  31732. <exception name="IOException" type="java.io.IOException"/>
  31733. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31734. </method>
  31735. <method name="createSocket" return="java.net.Socket"
  31736. abstract="false" native="false" synchronized="false"
  31737. static="false" final="false" visibility="public"
  31738. deprecated="not deprecated">
  31739. <param name="host" type="java.lang.String"/>
  31740. <param name="port" type="int"/>
  31741. <param name="localHostAddr" type="java.net.InetAddress"/>
  31742. <param name="localPort" type="int"/>
  31743. <exception name="IOException" type="java.io.IOException"/>
  31744. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31745. </method>
  31746. <method name="equals" return="boolean"
  31747. abstract="false" native="false" synchronized="false"
  31748. static="false" final="false" visibility="public"
  31749. deprecated="not deprecated">
  31750. <param name="obj" type="java.lang.Object"/>
  31751. </method>
  31752. <method name="hashCode" return="int"
  31753. abstract="false" native="false" synchronized="false"
  31754. static="false" final="false" visibility="public"
  31755. deprecated="not deprecated">
  31756. </method>
  31757. <doc>
  31758. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31759. </doc>
  31760. </class>
  31761. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  31762. <!-- start class org.apache.hadoop.net.TableMapping -->
  31763. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  31764. abstract="false"
  31765. static="false" final="false" visibility="public"
  31766. deprecated="not deprecated">
  31767. <constructor name="TableMapping"
  31768. static="false" final="false" visibility="public"
  31769. deprecated="not deprecated">
  31770. </constructor>
  31771. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31772. abstract="false" native="false" synchronized="false"
  31773. static="false" final="false" visibility="public"
  31774. deprecated="not deprecated">
  31775. </method>
  31776. <method name="setConf"
  31777. abstract="false" native="false" synchronized="false"
  31778. static="false" final="false" visibility="public"
  31779. deprecated="not deprecated">
  31780. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31781. </method>
  31782. <method name="reloadCachedMappings"
  31783. abstract="false" native="false" synchronized="false"
  31784. static="false" final="false" visibility="public"
  31785. deprecated="not deprecated">
  31786. </method>
  31787. <doc>
  31788. <![CDATA[<p>
  31789. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  31790. file. The columns are separated by whitespace. The first column is a DNS or
  31791. IP address and the second column specifies the rack where the address maps.
  31792. </p>
  31793. <p>
  31794. This class uses the configuration parameter {@code
  31795. net.topology.table.file.name} to locate the mapping file.
  31796. </p>
  31797. <p>
  31798. Calls to {@link #resolve(List)} will look up the address as defined in the
  31799. mapping file. If no entry corresponding to the address is found, the value
  31800. {@code /default-rack} is returned.
  31801. </p>]]>
  31802. </doc>
  31803. </class>
  31804. <!-- end class org.apache.hadoop.net.TableMapping -->
  31805. </package>
  31806. <package name="org.apache.hadoop.net.unix">
  31807. </package>
  31808. <package name="org.apache.hadoop.security">
  31809. <!-- start class org.apache.hadoop.security.AccessControlException -->
  31810. <class name="AccessControlException" extends="java.io.IOException"
  31811. abstract="false"
  31812. static="false" final="false" visibility="public"
  31813. deprecated="not deprecated">
  31814. <constructor name="AccessControlException"
  31815. static="false" final="false" visibility="public"
  31816. deprecated="not deprecated">
  31817. <doc>
  31818. <![CDATA[Default constructor is needed for unwrapping from
  31819. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  31820. </doc>
  31821. </constructor>
  31822. <constructor name="AccessControlException" type="java.lang.String"
  31823. static="false" final="false" visibility="public"
  31824. deprecated="not deprecated">
  31825. <doc>
  31826. <![CDATA[Constructs an {@link AccessControlException}
  31827. with the specified detail message.
  31828. @param s the detail message.]]>
  31829. </doc>
  31830. </constructor>
  31831. <constructor name="AccessControlException" type="java.lang.Throwable"
  31832. static="false" final="false" visibility="public"
  31833. deprecated="not deprecated">
  31834. <doc>
  31835. <![CDATA[Constructs a new exception with the specified cause and a detail
  31836. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  31837. typically contains the class and detail message of <tt>cause</tt>).
  31838. @param cause the cause (which is saved for later retrieval by the
  31839. {@link #getCause()} method). (A <tt>null</tt> value is
  31840. permitted, and indicates that the cause is nonexistent or
  31841. unknown.)]]>
  31842. </doc>
  31843. </constructor>
  31844. <doc>
  31845. <![CDATA[An exception class for access control related issues.]]>
  31846. </doc>
  31847. </class>
  31848. <!-- end class org.apache.hadoop.security.AccessControlException -->
  31849. <!-- start class org.apache.hadoop.security.Credentials -->
  31850. <class name="Credentials" extends="java.lang.Object"
  31851. abstract="false"
  31852. static="false" final="false" visibility="public"
  31853. deprecated="not deprecated">
  31854. <implements name="org.apache.hadoop.io.Writable"/>
  31855. <constructor name="Credentials"
  31856. static="false" final="false" visibility="public"
  31857. deprecated="not deprecated">
  31858. <doc>
  31859. <![CDATA[Create an empty credentials instance.]]>
  31860. </doc>
  31861. </constructor>
  31862. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  31863. static="false" final="false" visibility="public"
  31864. deprecated="not deprecated">
  31865. <doc>
  31866. <![CDATA[Create a copy of the given credentials.
  31867. @param credentials to copy]]>
  31868. </doc>
  31869. </constructor>
  31870. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  31871. abstract="false" native="false" synchronized="false"
  31872. static="false" final="false" visibility="public"
  31873. deprecated="not deprecated">
  31874. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31875. <doc>
  31876. <![CDATA[Returns the Token object for the alias.
  31877. @param alias the alias for the Token
  31878. @return token for this alias]]>
  31879. </doc>
  31880. </method>
  31881. <method name="addToken"
  31882. abstract="false" native="false" synchronized="false"
  31883. static="false" final="false" visibility="public"
  31884. deprecated="not deprecated">
  31885. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31886. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  31887. <doc>
  31888. <![CDATA[Add a token in the storage (in memory).
  31889. @param alias the alias for the key
  31890. @param t the token object]]>
  31891. </doc>
  31892. </method>
  31893. <method name="getAllTokens" return="java.util.Collection"
  31894. abstract="false" native="false" synchronized="false"
  31895. static="false" final="false" visibility="public"
  31896. deprecated="not deprecated">
  31897. <doc>
  31898. <![CDATA[Return all the tokens in the in-memory map.
  31899. @return all the tokens in the in-memory map.]]>
  31900. </doc>
  31901. </method>
  31902. <method name="getTokenMap" return="java.util.Map"
  31903. abstract="false" native="false" synchronized="false"
  31904. static="false" final="false" visibility="public"
  31905. deprecated="not deprecated">
  31906. <doc>
  31907. <![CDATA[Returns an unmodifiable version of the full map of aliases to Tokens.
  31908. @return TokenMap.]]>
  31909. </doc>
  31910. </method>
  31911. <method name="numberOfTokens" return="int"
  31912. abstract="false" native="false" synchronized="false"
  31913. static="false" final="false" visibility="public"
  31914. deprecated="not deprecated">
  31915. <doc>
  31916. <![CDATA[@return number of Tokens in the in-memory map]]>
  31917. </doc>
  31918. </method>
  31919. <method name="getSecretKey" return="byte[]"
  31920. abstract="false" native="false" synchronized="false"
  31921. static="false" final="false" visibility="public"
  31922. deprecated="not deprecated">
  31923. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31924. <doc>
  31925. <![CDATA[Returns the key bytes for the alias.
  31926. @param alias the alias for the key
  31927. @return key for this alias]]>
  31928. </doc>
  31929. </method>
  31930. <method name="numberOfSecretKeys" return="int"
  31931. abstract="false" native="false" synchronized="false"
  31932. static="false" final="false" visibility="public"
  31933. deprecated="not deprecated">
  31934. <doc>
  31935. <![CDATA[@return number of keys in the in-memory map]]>
  31936. </doc>
  31937. </method>
  31938. <method name="addSecretKey"
  31939. abstract="false" native="false" synchronized="false"
  31940. static="false" final="false" visibility="public"
  31941. deprecated="not deprecated">
  31942. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31943. <param name="key" type="byte[]"/>
  31944. <doc>
  31945. <![CDATA[Set the key for an alias.
  31946. @param alias the alias for the key
  31947. @param key the key bytes]]>
  31948. </doc>
  31949. </method>
  31950. <method name="removeSecretKey"
  31951. abstract="false" native="false" synchronized="false"
  31952. static="false" final="false" visibility="public"
  31953. deprecated="not deprecated">
  31954. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31955. <doc>
  31956. <![CDATA[Remove the key for a given alias.
  31957. @param alias the alias for the key]]>
  31958. </doc>
  31959. </method>
  31960. <method name="getAllSecretKeys" return="java.util.List"
  31961. abstract="false" native="false" synchronized="false"
  31962. static="false" final="false" visibility="public"
  31963. deprecated="not deprecated">
  31964. <doc>
  31965. <![CDATA[Return all the secret key entries in the in-memory map.
  31966. @return Text List.]]>
  31967. </doc>
  31968. </method>
  31969. <method name="getSecretKeyMap" return="java.util.Map"
  31970. abstract="false" native="false" synchronized="false"
  31971. static="false" final="false" visibility="public"
  31972. deprecated="not deprecated">
  31973. <doc>
  31974. <![CDATA[Returns an unmodifiable version of the full map of aliases to secret keys.
  31975. @return SecretKeyMap.]]>
  31976. </doc>
  31977. </method>
  31978. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  31979. abstract="false" native="false" synchronized="false"
  31980. static="true" final="false" visibility="public"
  31981. deprecated="not deprecated">
  31982. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  31983. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31984. <exception name="IOException" type="java.io.IOException"/>
  31985. <doc>
  31986. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  31987. @param filename filename.
  31988. @param conf configuration.
  31989. @throws IOException raised on errors performing I/O.
  31990. @return Credentials.]]>
  31991. </doc>
  31992. </method>
  31993. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  31994. abstract="false" native="false" synchronized="false"
  31995. static="true" final="false" visibility="public"
  31996. deprecated="not deprecated">
  31997. <param name="filename" type="java.io.File"/>
  31998. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31999. <exception name="IOException" type="java.io.IOException"/>
  32000. <doc>
  32001. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  32002. @param filename filename.
  32003. @param conf configuration.
  32004. @throws IOException raised on errors performing I/O.
  32005. @return Token.]]>
  32006. </doc>
  32007. </method>
  32008. <method name="readTokenStorageStream"
  32009. abstract="false" native="false" synchronized="false"
  32010. static="false" final="false" visibility="public"
  32011. deprecated="not deprecated">
  32012. <param name="in" type="java.io.DataInputStream"/>
  32013. <exception name="IOException" type="java.io.IOException"/>
  32014. <doc>
  32015. <![CDATA[Convenience method for reading a token from a DataInputStream.
  32016. @param in DataInputStream.
  32017. @throws IOException raised on errors performing I/O.]]>
  32018. </doc>
  32019. </method>
  32020. <method name="writeTokenStorageToStream"
  32021. abstract="false" native="false" synchronized="false"
  32022. static="false" final="false" visibility="public"
  32023. deprecated="not deprecated">
  32024. <param name="os" type="java.io.DataOutputStream"/>
  32025. <exception name="IOException" type="java.io.IOException"/>
  32026. </method>
  32027. <method name="writeTokenStorageToStream"
  32028. abstract="false" native="false" synchronized="false"
  32029. static="false" final="false" visibility="public"
  32030. deprecated="not deprecated">
  32031. <param name="os" type="java.io.DataOutputStream"/>
  32032. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  32033. <exception name="IOException" type="java.io.IOException"/>
  32034. </method>
  32035. <method name="writeTokenStorageFile"
  32036. abstract="false" native="false" synchronized="false"
  32037. static="false" final="false" visibility="public"
  32038. deprecated="not deprecated">
  32039. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32040. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32041. <exception name="IOException" type="java.io.IOException"/>
  32042. </method>
  32043. <method name="writeTokenStorageFile"
  32044. abstract="false" native="false" synchronized="false"
  32045. static="false" final="false" visibility="public"
  32046. deprecated="not deprecated">
  32047. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32048. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32049. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  32050. <exception name="IOException" type="java.io.IOException"/>
  32051. </method>
  32052. <method name="write"
  32053. abstract="false" native="false" synchronized="false"
  32054. static="false" final="false" visibility="public"
  32055. deprecated="not deprecated">
  32056. <param name="out" type="java.io.DataOutput"/>
  32057. <exception name="IOException" type="java.io.IOException"/>
  32058. <doc>
  32059. <![CDATA[Stores all the keys to DataOutput.
  32060. @param out DataOutput.
  32061. @throws IOException raised on errors performing I/O.]]>
  32062. </doc>
  32063. </method>
  32064. <method name="readFields"
  32065. abstract="false" native="false" synchronized="false"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. <param name="in" type="java.io.DataInput"/>
  32069. <exception name="IOException" type="java.io.IOException"/>
  32070. <doc>
  32071. <![CDATA[Loads all the keys.
  32072. @param in DataInput.
  32073. @throws IOException raised on errors performing I/O.]]>
  32074. </doc>
  32075. </method>
  32076. <method name="addAll"
  32077. abstract="false" native="false" synchronized="false"
  32078. static="false" final="false" visibility="public"
  32079. deprecated="not deprecated">
  32080. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  32081. <doc>
  32082. <![CDATA[Copy all of the credentials from one credential object into another.
  32083. Existing secrets and tokens are overwritten.
  32084. @param other the credentials to copy]]>
  32085. </doc>
  32086. </method>
  32087. <method name="mergeAll"
  32088. abstract="false" native="false" synchronized="false"
  32089. static="false" final="false" visibility="public"
  32090. deprecated="not deprecated">
  32091. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  32092. <doc>
  32093. <![CDATA[Copy all of the credentials from one credential object into another.
  32094. Existing secrets and tokens are not overwritten.
  32095. @param other the credentials to copy]]>
  32096. </doc>
  32097. </method>
  32098. <doc>
  32099. <![CDATA[A class that provides the facilities of reading and writing
  32100. secret keys and Tokens.]]>
  32101. </doc>
  32102. </class>
  32103. <!-- end class org.apache.hadoop.security.Credentials -->
  32104. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  32105. <interface name="GroupMappingServiceProvider" abstract="true"
  32106. static="false" final="false" visibility="public"
  32107. deprecated="not deprecated">
  32108. <method name="getGroups" return="java.util.List"
  32109. abstract="true" native="false" synchronized="false"
  32110. static="false" final="false" visibility="public"
  32111. deprecated="not deprecated">
  32112. <param name="user" type="java.lang.String"/>
  32113. <exception name="IOException" type="java.io.IOException"/>
  32114. <doc>
  32115. <![CDATA[Get all various group memberships of a given user.
  32116. Returns EMPTY list in case of non-existing user
  32117. @param user User's name
  32118. @return group memberships of user
  32119. @throws IOException raised on errors performing I/O.]]>
  32120. </doc>
  32121. </method>
  32122. <method name="cacheGroupsRefresh"
  32123. abstract="true" native="false" synchronized="false"
  32124. static="false" final="false" visibility="public"
  32125. deprecated="not deprecated">
  32126. <exception name="IOException" type="java.io.IOException"/>
  32127. <doc>
  32128. <![CDATA[Refresh the cache of groups and user mapping
  32129. @throws IOException raised on errors performing I/O.]]>
  32130. </doc>
  32131. </method>
  32132. <method name="cacheGroupsAdd"
  32133. abstract="true" native="false" synchronized="false"
  32134. static="false" final="false" visibility="public"
  32135. deprecated="not deprecated">
  32136. <param name="groups" type="java.util.List"/>
  32137. <exception name="IOException" type="java.io.IOException"/>
  32138. <doc>
  32139. <![CDATA[Caches the group user information
  32140. @param groups list of groups to add to cache
  32141. @throws IOException raised on errors performing I/O.]]>
  32142. </doc>
  32143. </method>
  32144. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  32145. transient="false" volatile="false"
  32146. static="true" final="true" visibility="public"
  32147. deprecated="not deprecated">
  32148. </field>
  32149. <doc>
  32150. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  32151. used by {@link Groups}.]]>
  32152. </doc>
  32153. </interface>
  32154. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  32155. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  32156. <interface name="IdMappingServiceProvider" abstract="true"
  32157. static="false" final="false" visibility="public"
  32158. deprecated="not deprecated">
  32159. <method name="getUid" return="int"
  32160. abstract="true" native="false" synchronized="false"
  32161. static="false" final="false" visibility="public"
  32162. deprecated="not deprecated">
  32163. <param name="user" type="java.lang.String"/>
  32164. <exception name="IOException" type="java.io.IOException"/>
  32165. </method>
  32166. <method name="getGid" return="int"
  32167. abstract="true" native="false" synchronized="false"
  32168. static="false" final="false" visibility="public"
  32169. deprecated="not deprecated">
  32170. <param name="group" type="java.lang.String"/>
  32171. <exception name="IOException" type="java.io.IOException"/>
  32172. </method>
  32173. <method name="getUserName" return="java.lang.String"
  32174. abstract="true" native="false" synchronized="false"
  32175. static="false" final="false" visibility="public"
  32176. deprecated="not deprecated">
  32177. <param name="uid" type="int"/>
  32178. <param name="unknown" type="java.lang.String"/>
  32179. </method>
  32180. <method name="getGroupName" return="java.lang.String"
  32181. abstract="true" native="false" synchronized="false"
  32182. static="false" final="false" visibility="public"
  32183. deprecated="not deprecated">
  32184. <param name="gid" type="int"/>
  32185. <param name="unknown" type="java.lang.String"/>
  32186. </method>
  32187. <method name="getUidAllowingUnknown" return="int"
  32188. abstract="true" native="false" synchronized="false"
  32189. static="false" final="false" visibility="public"
  32190. deprecated="not deprecated">
  32191. <param name="user" type="java.lang.String"/>
  32192. </method>
  32193. <method name="getGidAllowingUnknown" return="int"
  32194. abstract="true" native="false" synchronized="false"
  32195. static="false" final="false" visibility="public"
  32196. deprecated="not deprecated">
  32197. <param name="group" type="java.lang.String"/>
  32198. </method>
  32199. <doc>
  32200. <![CDATA[An interface for the implementation of {@literal <}userId,
  32201. userName{@literal >} mapping and {@literal <}groupId, groupName{@literal >}
  32202. mapping.]]>
  32203. </doc>
  32204. </interface>
  32205. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  32206. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  32207. <class name="KerberosAuthException" extends="java.io.IOException"
  32208. abstract="false"
  32209. static="false" final="false" visibility="public"
  32210. deprecated="not deprecated">
  32211. <constructor name="KerberosAuthException" type="java.lang.String"
  32212. static="false" final="false" visibility="public"
  32213. deprecated="not deprecated">
  32214. </constructor>
  32215. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  32216. static="false" final="false" visibility="public"
  32217. deprecated="not deprecated">
  32218. </constructor>
  32219. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  32220. static="false" final="false" visibility="public"
  32221. deprecated="not deprecated">
  32222. </constructor>
  32223. <method name="setUser"
  32224. abstract="false" native="false" synchronized="false"
  32225. static="false" final="false" visibility="public"
  32226. deprecated="not deprecated">
  32227. <param name="u" type="java.lang.String"/>
  32228. </method>
  32229. <method name="setPrincipal"
  32230. abstract="false" native="false" synchronized="false"
  32231. static="false" final="false" visibility="public"
  32232. deprecated="not deprecated">
  32233. <param name="p" type="java.lang.String"/>
  32234. </method>
  32235. <method name="setKeytabFile"
  32236. abstract="false" native="false" synchronized="false"
  32237. static="false" final="false" visibility="public"
  32238. deprecated="not deprecated">
  32239. <param name="k" type="java.lang.String"/>
  32240. </method>
  32241. <method name="setTicketCacheFile"
  32242. abstract="false" native="false" synchronized="false"
  32243. static="false" final="false" visibility="public"
  32244. deprecated="not deprecated">
  32245. <param name="t" type="java.lang.String"/>
  32246. </method>
  32247. <method name="getInitialMessage" return="java.lang.String"
  32248. abstract="false" native="false" synchronized="false"
  32249. static="false" final="false" visibility="public"
  32250. deprecated="not deprecated">
  32251. <doc>
  32252. <![CDATA[@return The initial message, or null if not set.]]>
  32253. </doc>
  32254. </method>
  32255. <method name="getKeytabFile" return="java.lang.String"
  32256. abstract="false" native="false" synchronized="false"
  32257. static="false" final="false" visibility="public"
  32258. deprecated="not deprecated">
  32259. <doc>
  32260. <![CDATA[@return The keytab file path, or null if not set.]]>
  32261. </doc>
  32262. </method>
  32263. <method name="getPrincipal" return="java.lang.String"
  32264. abstract="false" native="false" synchronized="false"
  32265. static="false" final="false" visibility="public"
  32266. deprecated="not deprecated">
  32267. <doc>
  32268. <![CDATA[@return The principal, or null if not set.]]>
  32269. </doc>
  32270. </method>
  32271. <method name="getTicketCacheFile" return="java.lang.String"
  32272. abstract="false" native="false" synchronized="false"
  32273. static="false" final="false" visibility="public"
  32274. deprecated="not deprecated">
  32275. <doc>
  32276. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  32277. </doc>
  32278. </method>
  32279. <method name="getUser" return="java.lang.String"
  32280. abstract="false" native="false" synchronized="false"
  32281. static="false" final="false" visibility="public"
  32282. deprecated="not deprecated">
  32283. <doc>
  32284. <![CDATA[@return The user, or null if not set.]]>
  32285. </doc>
  32286. </method>
  32287. <method name="getMessage" return="java.lang.String"
  32288. abstract="false" native="false" synchronized="false"
  32289. static="false" final="false" visibility="public"
  32290. deprecated="not deprecated">
  32291. </method>
  32292. <doc>
  32293. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  32294. such as failure in kerberos login/logout, invalid subject etc.
  32295. Caller should not retry when catching this exception.]]>
  32296. </doc>
  32297. </class>
  32298. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  32299. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  32300. <class name="SecurityUtil" extends="java.lang.Object"
  32301. abstract="false"
  32302. static="false" final="true" visibility="public"
  32303. deprecated="not deprecated">
  32304. <method name="setConfiguration"
  32305. abstract="false" native="false" synchronized="false"
  32306. static="true" final="false" visibility="public"
  32307. deprecated="not deprecated">
  32308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32309. </method>
  32310. <method name="isOriginalTGT" return="boolean"
  32311. abstract="false" native="false" synchronized="false"
  32312. static="true" final="false" visibility="protected"
  32313. deprecated="not deprecated">
  32314. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  32315. <doc>
  32316. <![CDATA[Check whether the server principal is the TGS's principal
  32317. @param ticket the original TGT (the ticket that is obtained when a
  32318. kinit is done)
  32319. @return true or false]]>
  32320. </doc>
  32321. </method>
  32322. <method name="getServerPrincipal" return="java.lang.String"
  32323. abstract="false" native="false" synchronized="false"
  32324. static="true" final="false" visibility="public"
  32325. deprecated="not deprecated">
  32326. <param name="principalConfig" type="java.lang.String"/>
  32327. <param name="hostname" type="java.lang.String"/>
  32328. <exception name="IOException" type="java.io.IOException"/>
  32329. <doc>
  32330. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  32331. names. It replaces hostname pattern with hostname, which should be
  32332. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  32333. dynamically looked-up fqdn of the current host instead.
  32334. @param principalConfig
  32335. the Kerberos principal name conf value to convert
  32336. @param hostname
  32337. the fully-qualified domain name used for substitution
  32338. @return converted Kerberos principal name
  32339. @throws IOException if the client address cannot be determined]]>
  32340. </doc>
  32341. </method>
  32342. <method name="getServerPrincipal" return="java.lang.String"
  32343. abstract="false" native="false" synchronized="false"
  32344. static="true" final="false" visibility="public"
  32345. deprecated="not deprecated">
  32346. <param name="principalConfig" type="java.lang.String"/>
  32347. <param name="addr" type="java.net.InetAddress"/>
  32348. <exception name="IOException" type="java.io.IOException"/>
  32349. <doc>
  32350. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  32351. This method is similar to {@link #getServerPrincipal(String, String)},
  32352. except 1) the reverse DNS lookup from addr to hostname is done only when
  32353. necessary, 2) param addr can't be null (no default behavior of using local
  32354. hostname when addr is null).
  32355. @param principalConfig
  32356. Kerberos principal name pattern to convert
  32357. @param addr
  32358. InetAddress of the host used for substitution
  32359. @return converted Kerberos principal name
  32360. @throws IOException if the client address cannot be determined]]>
  32361. </doc>
  32362. </method>
  32363. <method name="login"
  32364. abstract="false" native="false" synchronized="false"
  32365. static="true" final="false" visibility="public"
  32366. deprecated="not deprecated">
  32367. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32368. <param name="keytabFileKey" type="java.lang.String"/>
  32369. <param name="userNameKey" type="java.lang.String"/>
  32370. <exception name="IOException" type="java.io.IOException"/>
  32371. <doc>
  32372. <![CDATA[Login as a principal specified in config. Substitute $host in
  32373. user's Kerberos principal name with a dynamically looked-up fully-qualified
  32374. domain name of the current host.
  32375. @param conf
  32376. conf to use
  32377. @param keytabFileKey
  32378. the key to look for keytab file in conf
  32379. @param userNameKey
  32380. the key to look for user's Kerberos principal name in conf
  32381. @throws IOException if login fails]]>
  32382. </doc>
  32383. </method>
  32384. <method name="login"
  32385. abstract="false" native="false" synchronized="false"
  32386. static="true" final="false" visibility="public"
  32387. deprecated="not deprecated">
  32388. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32389. <param name="keytabFileKey" type="java.lang.String"/>
  32390. <param name="userNameKey" type="java.lang.String"/>
  32391. <param name="hostname" type="java.lang.String"/>
  32392. <exception name="IOException" type="java.io.IOException"/>
  32393. <doc>
  32394. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  32395. name with hostname. If non-secure mode - return. If no keytab available -
  32396. bail out with an exception
  32397. @param conf
  32398. conf to use
  32399. @param keytabFileKey
  32400. the key to look for keytab file in conf
  32401. @param userNameKey
  32402. the key to look for user's Kerberos principal name in conf
  32403. @param hostname
  32404. hostname to use for substitution
  32405. @throws IOException if the config doesn't specify a keytab]]>
  32406. </doc>
  32407. </method>
  32408. <method name="buildDTServiceName" return="java.lang.String"
  32409. abstract="false" native="false" synchronized="false"
  32410. static="true" final="false" visibility="public"
  32411. deprecated="not deprecated">
  32412. <param name="uri" type="java.net.URI"/>
  32413. <param name="defPort" type="int"/>
  32414. <doc>
  32415. <![CDATA[create the service name for a Delegation token
  32416. @param uri of the service
  32417. @param defPort is used if the uri lacks a port
  32418. @return the token service, or null if no authority
  32419. @see #buildTokenService(InetSocketAddress)]]>
  32420. </doc>
  32421. </method>
  32422. <method name="getHostFromPrincipal" return="java.lang.String"
  32423. abstract="false" native="false" synchronized="false"
  32424. static="true" final="false" visibility="public"
  32425. deprecated="not deprecated">
  32426. <param name="principalName" type="java.lang.String"/>
  32427. <doc>
  32428. <![CDATA[Get the host name from the principal name of format {@literal <}service
  32429. {@literal >}/host@realm.
  32430. @param principalName principal name of format as described above
  32431. @return host name if the the string conforms to the above format, else null]]>
  32432. </doc>
  32433. </method>
  32434. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  32435. abstract="false" native="false" synchronized="false"
  32436. static="true" final="false" visibility="public"
  32437. deprecated="not deprecated">
  32438. <param name="protocol" type="java.lang.Class"/>
  32439. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32440. <doc>
  32441. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  32442. SecurityInfo providers.
  32443. @param protocol the protocol class to get the information for
  32444. @param conf configuration object
  32445. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  32446. </doc>
  32447. </method>
  32448. <method name="getClientPrincipal" return="java.lang.String"
  32449. abstract="false" native="false" synchronized="false"
  32450. static="true" final="false" visibility="public"
  32451. deprecated="not deprecated">
  32452. <param name="protocol" type="java.lang.Class"/>
  32453. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32454. <doc>
  32455. <![CDATA[Look up the client principal for a given protocol. It searches all known
  32456. SecurityInfo providers.
  32457. @param protocol the protocol class to get the information for
  32458. @param conf configuration object
  32459. @return client principal or null if it has no client principal defined.]]>
  32460. </doc>
  32461. </method>
  32462. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  32463. abstract="false" native="false" synchronized="false"
  32464. static="true" final="false" visibility="public"
  32465. deprecated="not deprecated">
  32466. <param name="protocol" type="java.lang.Class"/>
  32467. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32468. <doc>
  32469. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  32470. SecurityInfo providers.
  32471. @param protocol The protocol class to get the information for.
  32472. @param conf Configuration object
  32473. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  32474. </doc>
  32475. </method>
  32476. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  32477. abstract="false" native="false" synchronized="false"
  32478. static="true" final="false" visibility="public"
  32479. deprecated="not deprecated">
  32480. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  32481. <doc>
  32482. <![CDATA[Decode the given token's service field into an InetAddress
  32483. @param token from which to obtain the service
  32484. @return InetAddress for the service]]>
  32485. </doc>
  32486. </method>
  32487. <method name="setTokenService"
  32488. abstract="false" native="false" synchronized="false"
  32489. static="true" final="false" visibility="public"
  32490. deprecated="not deprecated">
  32491. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  32492. <param name="addr" type="java.net.InetSocketAddress"/>
  32493. <doc>
  32494. <![CDATA[Set the given token's service to the format expected by the RPC client
  32495. @param token a delegation token
  32496. @param addr the socket for the rpc connection]]>
  32497. </doc>
  32498. </method>
  32499. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  32500. abstract="false" native="false" synchronized="false"
  32501. static="true" final="false" visibility="public"
  32502. deprecated="not deprecated">
  32503. <param name="addr" type="java.net.InetSocketAddress"/>
  32504. <doc>
  32505. <![CDATA[Construct the service key for a token
  32506. @param addr InetSocketAddress of remote connection with a token
  32507. @return "ip:port" or "host:port" depending on the value of
  32508. hadoop.security.token.service.use_ip]]>
  32509. </doc>
  32510. </method>
  32511. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  32512. abstract="false" native="false" synchronized="false"
  32513. static="true" final="false" visibility="public"
  32514. deprecated="not deprecated">
  32515. <param name="uri" type="java.net.URI"/>
  32516. <doc>
  32517. <![CDATA[Construct the service key for a token
  32518. @param uri of remote connection with a token
  32519. @return "ip:port" or "host:port" depending on the value of
  32520. hadoop.security.token.service.use_ip]]>
  32521. </doc>
  32522. </method>
  32523. <method name="doAsLoginUserOrFatal" return="T"
  32524. abstract="false" native="false" synchronized="false"
  32525. static="true" final="false" visibility="public"
  32526. deprecated="not deprecated">
  32527. <param name="action" type="java.security.PrivilegedAction"/>
  32528. <doc>
  32529. <![CDATA[Perform the given action as the daemon's login user. If the login
  32530. user cannot be determined, this will log a FATAL error and exit
  32531. the whole JVM.
  32532. @param action action.
  32533. @param <T> generic type T.
  32534. @return generic type T.]]>
  32535. </doc>
  32536. </method>
  32537. <method name="doAsLoginUser" return="T"
  32538. abstract="false" native="false" synchronized="false"
  32539. static="true" final="false" visibility="public"
  32540. deprecated="not deprecated">
  32541. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  32542. <exception name="IOException" type="java.io.IOException"/>
  32543. <doc>
  32544. <![CDATA[Perform the given action as the daemon's login user. If an
  32545. InterruptedException is thrown, it is converted to an IOException.
  32546. @param action the action to perform
  32547. @param <T> Generics Type T.
  32548. @return the result of the action
  32549. @throws IOException in the event of error]]>
  32550. </doc>
  32551. </method>
  32552. <method name="doAsCurrentUser" return="T"
  32553. abstract="false" native="false" synchronized="false"
  32554. static="true" final="false" visibility="public"
  32555. deprecated="not deprecated">
  32556. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  32557. <exception name="IOException" type="java.io.IOException"/>
  32558. <doc>
  32559. <![CDATA[Perform the given action as the daemon's current user. If an
  32560. InterruptedException is thrown, it is converted to an IOException.
  32561. @param action the action to perform
  32562. @param <T> generic type T.
  32563. @return the result of the action
  32564. @throws IOException in the event of error]]>
  32565. </doc>
  32566. </method>
  32567. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32568. abstract="false" native="false" synchronized="false"
  32569. static="true" final="false" visibility="public"
  32570. deprecated="not deprecated">
  32571. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32572. </method>
  32573. <method name="setAuthenticationMethod"
  32574. abstract="false" native="false" synchronized="false"
  32575. static="true" final="false" visibility="public"
  32576. deprecated="not deprecated">
  32577. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  32578. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32579. </method>
  32580. <method name="isPrivilegedPort" return="boolean"
  32581. abstract="false" native="false" synchronized="false"
  32582. static="true" final="false" visibility="public"
  32583. deprecated="not deprecated">
  32584. <param name="port" type="int"/>
  32585. </method>
  32586. <method name="getZKAuthInfos" return="java.util.List"
  32587. abstract="false" native="false" synchronized="false"
  32588. static="true" final="false" visibility="public"
  32589. deprecated="not deprecated">
  32590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32591. <param name="configKey" type="java.lang.String"/>
  32592. <exception name="IOException" type="java.io.IOException"/>
  32593. <doc>
  32594. <![CDATA[Utility method to fetch ZK auth info from the configuration.
  32595. @param conf configuration.
  32596. @param configKey config key.
  32597. @throws java.io.IOException if the Zookeeper ACLs configuration file
  32598. cannot be read
  32599. @throws ZKUtil.BadAuthFormatException if the auth format is invalid
  32600. @return ZKAuthInfo List.]]>
  32601. </doc>
  32602. </method>
  32603. <field name="LOG" type="org.slf4j.Logger"
  32604. transient="false" volatile="false"
  32605. static="true" final="true" visibility="public"
  32606. deprecated="not deprecated">
  32607. </field>
  32608. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  32609. transient="false" volatile="false"
  32610. static="true" final="true" visibility="public"
  32611. deprecated="not deprecated">
  32612. </field>
  32613. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  32614. transient="false" volatile="false"
  32615. static="true" final="true" visibility="public"
  32616. deprecated="not deprecated">
  32617. </field>
  32618. <doc>
  32619. <![CDATA[Security Utils.]]>
  32620. </doc>
  32621. </class>
  32622. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  32623. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  32624. <class name="UserGroupInformation" extends="java.lang.Object"
  32625. abstract="false"
  32626. static="false" final="false" visibility="public"
  32627. deprecated="not deprecated">
  32628. <method name="setShouldRenewImmediatelyForTests"
  32629. abstract="false" native="false" synchronized="false"
  32630. static="true" final="false" visibility="public"
  32631. deprecated="not deprecated">
  32632. <param name="immediate" type="boolean"/>
  32633. <doc>
  32634. <![CDATA[For the purposes of unit tests, we want to test login
  32635. from keytab and don't want to wait until the renew
  32636. window (controlled by TICKET_RENEW_WINDOW).
  32637. @param immediate true if we should login without waiting for ticket window]]>
  32638. </doc>
  32639. </method>
  32640. <method name="reattachMetrics"
  32641. abstract="false" native="false" synchronized="false"
  32642. static="true" final="false" visibility="public"
  32643. deprecated="not deprecated">
  32644. <doc>
  32645. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  32646. </doc>
  32647. </method>
  32648. <method name="isInitialized" return="boolean"
  32649. abstract="false" native="false" synchronized="false"
  32650. static="true" final="false" visibility="public"
  32651. deprecated="not deprecated">
  32652. </method>
  32653. <method name="setConfiguration"
  32654. abstract="false" native="false" synchronized="false"
  32655. static="true" final="false" visibility="public"
  32656. deprecated="not deprecated">
  32657. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32658. <doc>
  32659. <![CDATA[Set the static configuration for UGI.
  32660. In particular, set the security authentication mechanism and the
  32661. group look up service.
  32662. @param conf the configuration to use]]>
  32663. </doc>
  32664. </method>
  32665. <method name="isSecurityEnabled" return="boolean"
  32666. abstract="false" native="false" synchronized="false"
  32667. static="true" final="false" visibility="public"
  32668. deprecated="not deprecated">
  32669. <doc>
  32670. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  32671. user identities or is relying on simple authentication
  32672. @return true if UGI is working in a secure environment]]>
  32673. </doc>
  32674. </method>
  32675. <method name="hasKerberosCredentials" return="boolean"
  32676. abstract="false" native="false" synchronized="false"
  32677. static="false" final="false" visibility="public"
  32678. deprecated="not deprecated">
  32679. <doc>
  32680. <![CDATA[checks if logged in using kerberos
  32681. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  32682. </doc>
  32683. </method>
  32684. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  32685. abstract="false" native="false" synchronized="false"
  32686. static="true" final="false" visibility="public"
  32687. deprecated="not deprecated">
  32688. <exception name="IOException" type="java.io.IOException"/>
  32689. <doc>
  32690. <![CDATA[Return the current user, including any doAs in the current stack.
  32691. @return the current user
  32692. @throws IOException if login fails]]>
  32693. </doc>
  32694. </method>
  32695. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  32696. abstract="false" native="false" synchronized="false"
  32697. static="true" final="false" visibility="public"
  32698. deprecated="not deprecated">
  32699. <param name="ticketCachePath" type="java.lang.String"/>
  32700. <param name="user" type="java.lang.String"/>
  32701. <exception name="IOException" type="java.io.IOException"/>
  32702. <doc>
  32703. <![CDATA[Find the most appropriate UserGroupInformation to use
  32704. @param ticketCachePath The Kerberos ticket cache path, or NULL
  32705. if none is specfied
  32706. @param user The user name, or NULL if none is specified.
  32707. @return The most appropriate UserGroupInformation
  32708. @throws IOException raised on errors performing I/O.]]>
  32709. </doc>
  32710. </method>
  32711. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  32712. abstract="false" native="false" synchronized="false"
  32713. static="true" final="false" visibility="public"
  32714. deprecated="not deprecated">
  32715. <param name="ticketCache" type="java.lang.String"/>
  32716. <param name="user" type="java.lang.String"/>
  32717. <exception name="IOException" type="java.io.IOException"/>
  32718. <doc>
  32719. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  32720. @param user The principal name to load from the ticket
  32721. cache
  32722. @param ticketCache the path to the ticket cache file
  32723. @throws IOException if the kerberos login fails
  32724. @return UserGroupInformation.]]>
  32725. </doc>
  32726. </method>
  32727. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  32728. abstract="false" native="false" synchronized="false"
  32729. static="true" final="false" visibility="public"
  32730. deprecated="not deprecated">
  32731. <param name="subject" type="javax.security.auth.Subject"/>
  32732. <exception name="IOException" type="java.io.IOException"/>
  32733. <doc>
  32734. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  32735. @param subject The KerberosPrincipal to use in UGI.
  32736. The creator of subject is responsible for
  32737. renewing credentials.
  32738. @throws IOException raised on errors performing I/O.
  32739. @throws KerberosAuthException if the kerberos login fails
  32740. @return UserGroupInformation.]]>
  32741. </doc>
  32742. </method>
  32743. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  32744. abstract="false" native="false" synchronized="false"
  32745. static="true" final="false" visibility="public"
  32746. deprecated="not deprecated">
  32747. <exception name="IOException" type="java.io.IOException"/>
  32748. <doc>
  32749. <![CDATA[Get the currently logged in user. If no explicit login has occurred,
  32750. the user will automatically be logged in with either kerberos credentials
  32751. if available, or as the local OS user, based on security settings.
  32752. @return the logged in user
  32753. @throws IOException if login fails]]>
  32754. </doc>
  32755. </method>
  32756. <method name="trimLoginMethod" return="java.lang.String"
  32757. abstract="false" native="false" synchronized="false"
  32758. static="true" final="false" visibility="public"
  32759. deprecated="not deprecated">
  32760. <param name="userName" type="java.lang.String"/>
  32761. <doc>
  32762. <![CDATA[remove the login method that is followed by a space from the username
  32763. e.g. "jack (auth:SIMPLE)" {@literal ->} "jack"
  32764. @param userName input userName.
  32765. @return userName without login method]]>
  32766. </doc>
  32767. </method>
  32768. <method name="loginUserFromSubject"
  32769. abstract="false" native="false" synchronized="false"
  32770. static="true" final="false" visibility="public"
  32771. deprecated="not deprecated">
  32772. <param name="subject" type="javax.security.auth.Subject"/>
  32773. <exception name="IOException" type="java.io.IOException"/>
  32774. <doc>
  32775. <![CDATA[Log in a user using the given subject
  32776. @param subject the subject to use when logging in a user, or null to
  32777. create a new subject.
  32778. If subject is not null, the creator of subject is responsible for renewing
  32779. credentials.
  32780. @throws IOException if login fails]]>
  32781. </doc>
  32782. </method>
  32783. <method name="isFromKeytab" return="boolean"
  32784. abstract="false" native="false" synchronized="false"
  32785. static="false" final="false" visibility="public"
  32786. deprecated="not deprecated">
  32787. <doc>
  32788. <![CDATA[Is this user logged in from a keytab file managed by the UGI?
  32789. @return true if the credentials are from a keytab file.]]>
  32790. </doc>
  32791. </method>
  32792. <method name="loginUserFromKeytab"
  32793. abstract="false" native="false" synchronized="false"
  32794. static="true" final="false" visibility="public"
  32795. deprecated="not deprecated">
  32796. <param name="user" type="java.lang.String"/>
  32797. <param name="path" type="java.lang.String"/>
  32798. <exception name="IOException" type="java.io.IOException"/>
  32799. <doc>
  32800. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  32801. file and logs them in. They become the currently logged-in user.
  32802. @param user the principal name to load from the keytab
  32803. @param path the path to the keytab file
  32804. @throws IOException raised on errors performing I/O.
  32805. @throws KerberosAuthException if it's a kerberos login exception.]]>
  32806. </doc>
  32807. </method>
  32808. <method name="logoutUserFromKeytab"
  32809. abstract="false" native="false" synchronized="false"
  32810. static="false" final="false" visibility="public"
  32811. deprecated="not deprecated">
  32812. <exception name="IOException" type="java.io.IOException"/>
  32813. <doc>
  32814. <![CDATA[Log the current user out who previously logged in using keytab.
  32815. This method assumes that the user logged in by calling
  32816. {@link #loginUserFromKeytab(String, String)}.
  32817. @throws IOException raised on errors performing I/O.
  32818. @throws KerberosAuthException if a failure occurred in logout,
  32819. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  32820. </doc>
  32821. </method>
  32822. <method name="checkTGTAndReloginFromKeytab"
  32823. abstract="false" native="false" synchronized="false"
  32824. static="false" final="false" visibility="public"
  32825. deprecated="not deprecated">
  32826. <exception name="IOException" type="java.io.IOException"/>
  32827. <doc>
  32828. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  32829. @throws IOException raised on errors performing I/O.
  32830. @throws KerberosAuthException if it's a kerberos login exception.]]>
  32831. </doc>
  32832. </method>
  32833. <method name="reloginFromKeytab"
  32834. abstract="false" native="false" synchronized="false"
  32835. static="false" final="false" visibility="public"
  32836. deprecated="not deprecated">
  32837. <exception name="IOException" type="java.io.IOException"/>
  32838. <doc>
  32839. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  32840. file and logs them in. They become the currently logged-in user. This
  32841. method assumes that {@link #loginUserFromKeytab(String, String)} had
  32842. happened already.
  32843. The Subject field of this UserGroupInformation object is updated to have
  32844. the new credentials.
  32845. @throws IOException raised on errors performing I/O.
  32846. @throws KerberosAuthException on a failure]]>
  32847. </doc>
  32848. </method>
  32849. <method name="forceReloginFromKeytab"
  32850. abstract="false" native="false" synchronized="false"
  32851. static="false" final="false" visibility="public"
  32852. deprecated="not deprecated">
  32853. <exception name="IOException" type="java.io.IOException"/>
  32854. <doc>
  32855. <![CDATA[Force re-Login a user in from a keytab file irrespective of the last login
  32856. time. Loads a user identity from a keytab file and logs them in. They
  32857. become the currently logged-in user. This method assumes that
  32858. {@link #loginUserFromKeytab(String, String)} had happened already. The
  32859. Subject field of this UserGroupInformation object is updated to have the
  32860. new credentials.
  32861. @throws IOException raised on errors performing I/O.
  32862. @throws KerberosAuthException on a failure]]>
  32863. </doc>
  32864. </method>
  32865. <method name="reloginFromTicketCache"
  32866. abstract="false" native="false" synchronized="false"
  32867. static="false" final="false" visibility="public"
  32868. deprecated="not deprecated">
  32869. <exception name="IOException" type="java.io.IOException"/>
  32870. <doc>
  32871. <![CDATA[Re-Login a user in from the ticket cache. This
  32872. method assumes that login had happened already.
  32873. The Subject field of this UserGroupInformation object is updated to have
  32874. the new credentials.
  32875. @throws IOException raised on errors performing I/O.
  32876. @throws KerberosAuthException on a failure]]>
  32877. </doc>
  32878. </method>
  32879. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  32880. abstract="false" native="false" synchronized="false"
  32881. static="true" final="false" visibility="public"
  32882. deprecated="not deprecated">
  32883. <param name="user" type="java.lang.String"/>
  32884. <param name="path" type="java.lang.String"/>
  32885. <exception name="IOException" type="java.io.IOException"/>
  32886. <doc>
  32887. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  32888. file and login them in. This new user does not affect the currently
  32889. logged-in user.
  32890. @param user the principal name to load from the keytab
  32891. @param path the path to the keytab file
  32892. @throws IOException if the keytab file can't be read
  32893. @return UserGroupInformation.]]>
  32894. </doc>
  32895. </method>
  32896. <method name="isLoginKeytabBased" return="boolean"
  32897. abstract="false" native="false" synchronized="false"
  32898. static="true" final="false" visibility="public"
  32899. deprecated="not deprecated">
  32900. <exception name="IOException" type="java.io.IOException"/>
  32901. <doc>
  32902. <![CDATA[Did the login happen via keytab.
  32903. @return true or false
  32904. @throws IOException raised on errors performing I/O.]]>
  32905. </doc>
  32906. </method>
  32907. <method name="isLoginTicketBased" return="boolean"
  32908. abstract="false" native="false" synchronized="false"
  32909. static="true" final="false" visibility="public"
  32910. deprecated="not deprecated">
  32911. <exception name="IOException" type="java.io.IOException"/>
  32912. <doc>
  32913. <![CDATA[Did the login happen via ticket cache.
  32914. @return true or false
  32915. @throws IOException raised on errors performing I/O.]]>
  32916. </doc>
  32917. </method>
  32918. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  32919. abstract="false" native="false" synchronized="false"
  32920. static="true" final="false" visibility="public"
  32921. deprecated="not deprecated">
  32922. <param name="user" type="java.lang.String"/>
  32923. <doc>
  32924. <![CDATA[Create a user from a login name. It is intended to be used for remote
  32925. users in RPC, since it won't have any credentials.
  32926. @param user the full user principal name, must not be empty or null
  32927. @return the UserGroupInformation for the remote user.]]>
  32928. </doc>
  32929. </method>
  32930. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  32931. abstract="false" native="false" synchronized="false"
  32932. static="true" final="false" visibility="public"
  32933. deprecated="not deprecated">
  32934. <param name="user" type="java.lang.String"/>
  32935. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  32936. <doc>
  32937. <![CDATA[Create a user from a login name. It is intended to be used for remote
  32938. users in RPC, since it won't have any credentials.
  32939. @param user the full user principal name, must not be empty or null
  32940. @param authMethod input authMethod.
  32941. @return the UserGroupInformation for the remote user.]]>
  32942. </doc>
  32943. </method>
  32944. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  32945. abstract="false" native="false" synchronized="false"
  32946. static="true" final="false" visibility="public"
  32947. deprecated="not deprecated">
  32948. <param name="user" type="java.lang.String"/>
  32949. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  32950. <doc>
  32951. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  32952. real user.
  32953. @param user input user.
  32954. @param realUser input realUser.
  32955. @return proxyUser ugi]]>
  32956. </doc>
  32957. </method>
  32958. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  32959. abstract="false" native="false" synchronized="false"
  32960. static="false" final="false" visibility="public"
  32961. deprecated="not deprecated">
  32962. <doc>
  32963. <![CDATA[get RealUser (vs. EffectiveUser)
  32964. @return realUser running over proxy user]]>
  32965. </doc>
  32966. </method>
  32967. <method name="getRealUserOrSelf" return="org.apache.hadoop.security.UserGroupInformation"
  32968. abstract="false" native="false" synchronized="false"
  32969. static="true" final="false" visibility="public"
  32970. deprecated="not deprecated">
  32971. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32972. <doc>
  32973. <![CDATA[If this is a proxy user, get the real user. Otherwise, return
  32974. this user.
  32975. @param user the user to check
  32976. @return the real user or self]]>
  32977. </doc>
  32978. </method>
  32979. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  32980. abstract="false" native="false" synchronized="false"
  32981. static="true" final="false" visibility="public"
  32982. deprecated="not deprecated">
  32983. <param name="user" type="java.lang.String"/>
  32984. <param name="userGroups" type="java.lang.String[]"/>
  32985. <doc>
  32986. <![CDATA[Create a UGI for testing HDFS and MapReduce
  32987. @param user the full user principal name
  32988. @param userGroups the names of the groups that the user belongs to
  32989. @return a fake user for running unit tests]]>
  32990. </doc>
  32991. </method>
  32992. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  32993. abstract="false" native="false" synchronized="false"
  32994. static="true" final="false" visibility="public"
  32995. deprecated="not deprecated">
  32996. <param name="user" type="java.lang.String"/>
  32997. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  32998. <param name="userGroups" type="java.lang.String[]"/>
  32999. <doc>
  33000. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  33001. @param user
  33002. the full user principal name for effective user
  33003. @param realUser
  33004. UGI of the real user
  33005. @param userGroups
  33006. the names of the groups that the user belongs to
  33007. @return a fake user for running unit tests]]>
  33008. </doc>
  33009. </method>
  33010. <method name="getShortUserName" return="java.lang.String"
  33011. abstract="false" native="false" synchronized="false"
  33012. static="false" final="false" visibility="public"
  33013. deprecated="not deprecated">
  33014. <doc>
  33015. <![CDATA[Get the user's login name.
  33016. @return the user's name up to the first '/' or '@'.]]>
  33017. </doc>
  33018. </method>
  33019. <method name="getPrimaryGroupName" return="java.lang.String"
  33020. abstract="false" native="false" synchronized="false"
  33021. static="false" final="false" visibility="public"
  33022. deprecated="not deprecated">
  33023. <exception name="IOException" type="java.io.IOException"/>
  33024. </method>
  33025. <method name="getUserName" return="java.lang.String"
  33026. abstract="false" native="false" synchronized="false"
  33027. static="false" final="false" visibility="public"
  33028. deprecated="not deprecated">
  33029. <doc>
  33030. <![CDATA[Get the user's full principal name.
  33031. @return the user's full principal name.]]>
  33032. </doc>
  33033. </method>
  33034. <method name="addTokenIdentifier" return="boolean"
  33035. abstract="false" native="false" synchronized="true"
  33036. static="false" final="false" visibility="public"
  33037. deprecated="not deprecated">
  33038. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  33039. <doc>
  33040. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  33041. authenticated by the RPC layer as belonging to the user represented by this
  33042. UGI.
  33043. @param tokenId
  33044. tokenIdentifier to be added
  33045. @return true on successful add of new tokenIdentifier]]>
  33046. </doc>
  33047. </method>
  33048. <method name="getTokenIdentifiers" return="java.util.Set"
  33049. abstract="false" native="false" synchronized="true"
  33050. static="false" final="false" visibility="public"
  33051. deprecated="not deprecated">
  33052. <doc>
  33053. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  33054. @return the set of TokenIdentifiers belonging to this UGI]]>
  33055. </doc>
  33056. </method>
  33057. <method name="addToken" return="boolean"
  33058. abstract="false" native="false" synchronized="false"
  33059. static="false" final="false" visibility="public"
  33060. deprecated="not deprecated">
  33061. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33062. <doc>
  33063. <![CDATA[Add a token to this UGI
  33064. @param token Token to be added
  33065. @return true on successful add of new token]]>
  33066. </doc>
  33067. </method>
  33068. <method name="addToken" return="boolean"
  33069. abstract="false" native="false" synchronized="false"
  33070. static="false" final="false" visibility="public"
  33071. deprecated="not deprecated">
  33072. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33073. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33074. <doc>
  33075. <![CDATA[Add a named token to this UGI
  33076. @param alias Name of the token
  33077. @param token Token to be added
  33078. @return true on successful add of new token]]>
  33079. </doc>
  33080. </method>
  33081. <method name="getTokens" return="java.util.Collection"
  33082. abstract="false" native="false" synchronized="false"
  33083. static="false" final="false" visibility="public"
  33084. deprecated="not deprecated">
  33085. <doc>
  33086. <![CDATA[Obtain the collection of tokens associated with this user.
  33087. @return an unmodifiable collection of tokens associated with user]]>
  33088. </doc>
  33089. </method>
  33090. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  33091. abstract="false" native="false" synchronized="false"
  33092. static="false" final="false" visibility="public"
  33093. deprecated="not deprecated">
  33094. <doc>
  33095. <![CDATA[Obtain the tokens in credentials form associated with this user.
  33096. @return Credentials of tokens associated with this user]]>
  33097. </doc>
  33098. </method>
  33099. <method name="addCredentials"
  33100. abstract="false" native="false" synchronized="false"
  33101. static="false" final="false" visibility="public"
  33102. deprecated="not deprecated">
  33103. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  33104. <doc>
  33105. <![CDATA[Add the given Credentials to this user.
  33106. @param credentials of tokens and secrets]]>
  33107. </doc>
  33108. </method>
  33109. <method name="getGroupNames" return="java.lang.String[]"
  33110. abstract="false" native="false" synchronized="false"
  33111. static="false" final="false" visibility="public"
  33112. deprecated="not deprecated">
  33113. <doc>
  33114. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  33115. expensive alternative when checking for a contained element.
  33116. @return the list of users with the primary group first. If the command
  33117. fails, it returns an empty list.]]>
  33118. </doc>
  33119. </method>
  33120. <method name="getGroups" return="java.util.List"
  33121. abstract="false" native="false" synchronized="false"
  33122. static="false" final="false" visibility="public"
  33123. deprecated="not deprecated">
  33124. <doc>
  33125. <![CDATA[Get the group names for this user.
  33126. @return the list of users with the primary group first. If the command
  33127. fails, it returns an empty list.]]>
  33128. </doc>
  33129. </method>
  33130. <method name="toString" return="java.lang.String"
  33131. abstract="false" native="false" synchronized="false"
  33132. static="false" final="false" visibility="public"
  33133. deprecated="not deprecated">
  33134. <doc>
  33135. <![CDATA[Return the username.]]>
  33136. </doc>
  33137. </method>
  33138. <method name="setAuthenticationMethod"
  33139. abstract="false" native="false" synchronized="true"
  33140. static="false" final="false" visibility="public"
  33141. deprecated="not deprecated">
  33142. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  33143. <doc>
  33144. <![CDATA[Sets the authentication method in the subject.
  33145. @param authMethod input authMethod.]]>
  33146. </doc>
  33147. </method>
  33148. <method name="setAuthenticationMethod"
  33149. abstract="false" native="false" synchronized="false"
  33150. static="false" final="false" visibility="public"
  33151. deprecated="not deprecated">
  33152. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33153. <doc>
  33154. <![CDATA[Sets the authentication method in the subject.
  33155. @param authMethod input authMethod.]]>
  33156. </doc>
  33157. </method>
  33158. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33159. abstract="false" native="false" synchronized="true"
  33160. static="false" final="false" visibility="public"
  33161. deprecated="not deprecated">
  33162. <doc>
  33163. <![CDATA[Get the authentication method from the subject
  33164. @return AuthenticationMethod in the subject, null if not present.]]>
  33165. </doc>
  33166. </method>
  33167. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33168. abstract="false" native="false" synchronized="true"
  33169. static="false" final="false" visibility="public"
  33170. deprecated="not deprecated">
  33171. <doc>
  33172. <![CDATA[Get the authentication method from the real user's subject. If there
  33173. is no real user, return the given user's authentication method.
  33174. @return AuthenticationMethod in the subject, null if not present.]]>
  33175. </doc>
  33176. </method>
  33177. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33178. abstract="false" native="false" synchronized="false"
  33179. static="true" final="false" visibility="public"
  33180. deprecated="not deprecated">
  33181. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33182. <doc>
  33183. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  33184. PROXY, returns the authentication method of the real user.
  33185. @param ugi input ugi.
  33186. @return AuthenticationMethod]]>
  33187. </doc>
  33188. </method>
  33189. <method name="equals" return="boolean"
  33190. abstract="false" native="false" synchronized="false"
  33191. static="false" final="false" visibility="public"
  33192. deprecated="not deprecated">
  33193. <param name="o" type="java.lang.Object"/>
  33194. <doc>
  33195. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  33196. </doc>
  33197. </method>
  33198. <method name="hashCode" return="int"
  33199. abstract="false" native="false" synchronized="false"
  33200. static="false" final="false" visibility="public"
  33201. deprecated="not deprecated">
  33202. <doc>
  33203. <![CDATA[Return the hash of the subject.]]>
  33204. </doc>
  33205. </method>
  33206. <method name="getSubject" return="javax.security.auth.Subject"
  33207. abstract="false" native="false" synchronized="false"
  33208. static="false" final="false" visibility="protected"
  33209. deprecated="not deprecated">
  33210. <doc>
  33211. <![CDATA[Get the underlying subject from this ugi.
  33212. @return the subject that represents this user.]]>
  33213. </doc>
  33214. </method>
  33215. <method name="doAs" return="T"
  33216. abstract="false" native="false" synchronized="false"
  33217. static="false" final="false" visibility="public"
  33218. deprecated="not deprecated">
  33219. <param name="action" type="java.security.PrivilegedAction"/>
  33220. <doc>
  33221. <![CDATA[Run the given action as the user.
  33222. @param <T> the return type of the run method
  33223. @param action the method to execute
  33224. @return the value from the run method]]>
  33225. </doc>
  33226. </method>
  33227. <method name="doAs" return="T"
  33228. abstract="false" native="false" synchronized="false"
  33229. static="false" final="false" visibility="public"
  33230. deprecated="not deprecated">
  33231. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  33232. <exception name="IOException" type="java.io.IOException"/>
  33233. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33234. <doc>
  33235. <![CDATA[Run the given action as the user, potentially throwing an exception.
  33236. @param <T> the return type of the run method
  33237. @param action the method to execute
  33238. @return the value from the run method
  33239. @throws IOException if the action throws an IOException
  33240. @throws Error if the action throws an Error
  33241. @throws RuntimeException if the action throws a RuntimeException
  33242. @throws InterruptedException if the action throws an InterruptedException
  33243. @throws UndeclaredThrowableException if the action throws something else]]>
  33244. </doc>
  33245. </method>
  33246. <method name="logAllUserInfo"
  33247. abstract="false" native="false" synchronized="false"
  33248. static="true" final="false" visibility="public"
  33249. deprecated="not deprecated">
  33250. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33251. <exception name="IOException" type="java.io.IOException"/>
  33252. <doc>
  33253. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  33254. @param ugi - UGI
  33255. @throws IOException raised on errors performing I/O.]]>
  33256. </doc>
  33257. </method>
  33258. <method name="main"
  33259. abstract="false" native="false" synchronized="false"
  33260. static="true" final="false" visibility="public"
  33261. deprecated="not deprecated">
  33262. <param name="args" type="java.lang.String[]"/>
  33263. <exception name="Exception" type="java.lang.Exception"/>
  33264. <doc>
  33265. <![CDATA[A test method to print out the current user's UGI.
  33266. @param args if there are two arguments, read the user from the keytab
  33267. and print it out.
  33268. @throws Exception if any error occurs.]]>
  33269. </doc>
  33270. </method>
  33271. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  33272. transient="false" volatile="false"
  33273. static="true" final="true" visibility="public"
  33274. deprecated="not deprecated">
  33275. <doc>
  33276. <![CDATA[Environment variable pointing to the token cache file]]>
  33277. </doc>
  33278. </field>
  33279. <field name="HADOOP_TOKEN" type="java.lang.String"
  33280. transient="false" volatile="false"
  33281. static="true" final="true" visibility="public"
  33282. deprecated="not deprecated">
  33283. <doc>
  33284. <![CDATA[Environment variable pointing to the base64 tokens.]]>
  33285. </doc>
  33286. </field>
  33287. <doc>
  33288. <![CDATA[User and group information for Hadoop.
  33289. This class wraps around a JAAS Subject and provides methods to determine the
  33290. user's username and groups. It supports both the Windows, Unix and Kerberos
  33291. login modules.]]>
  33292. </doc>
  33293. </class>
  33294. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  33295. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  33296. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  33297. abstract="false"
  33298. static="true" final="true" visibility="public"
  33299. deprecated="not deprecated">
  33300. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  33301. abstract="false" native="false" synchronized="false"
  33302. static="true" final="false" visibility="public"
  33303. deprecated="not deprecated">
  33304. </method>
  33305. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33306. abstract="false" native="false" synchronized="false"
  33307. static="true" final="false" visibility="public"
  33308. deprecated="not deprecated">
  33309. <param name="name" type="java.lang.String"/>
  33310. </method>
  33311. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  33312. abstract="false" native="false" synchronized="false"
  33313. static="false" final="false" visibility="public"
  33314. deprecated="not deprecated">
  33315. </method>
  33316. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33317. abstract="false" native="false" synchronized="false"
  33318. static="true" final="false" visibility="public"
  33319. deprecated="not deprecated">
  33320. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33321. </method>
  33322. <doc>
  33323. <![CDATA[existing types of authentications' methods]]>
  33324. </doc>
  33325. </class>
  33326. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  33327. </package>
  33328. <package name="org.apache.hadoop.security.alias">
  33329. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  33330. <class name="CredentialProvider" extends="java.lang.Object"
  33331. abstract="true"
  33332. static="false" final="false" visibility="public"
  33333. deprecated="not deprecated">
  33334. <constructor name="CredentialProvider"
  33335. static="false" final="false" visibility="public"
  33336. deprecated="not deprecated">
  33337. </constructor>
  33338. <method name="isTransient" return="boolean"
  33339. abstract="false" native="false" synchronized="false"
  33340. static="false" final="false" visibility="public"
  33341. deprecated="not deprecated">
  33342. <doc>
  33343. <![CDATA[Indicates whether this provider represents a store
  33344. that is intended for transient use - such as the UserProvider
  33345. is. These providers are generally used to provide job access to
  33346. passwords rather than for long term storage.
  33347. @return true if transient, false otherwise]]>
  33348. </doc>
  33349. </method>
  33350. <method name="flush"
  33351. abstract="true" native="false" synchronized="false"
  33352. static="false" final="false" visibility="public"
  33353. deprecated="not deprecated">
  33354. <exception name="IOException" type="java.io.IOException"/>
  33355. <doc>
  33356. <![CDATA[Ensures that any changes to the credentials are written to persistent
  33357. store.
  33358. @throws IOException raised on errors performing I/O.]]>
  33359. </doc>
  33360. </method>
  33361. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  33362. abstract="true" native="false" synchronized="false"
  33363. static="false" final="false" visibility="public"
  33364. deprecated="not deprecated">
  33365. <param name="alias" type="java.lang.String"/>
  33366. <exception name="IOException" type="java.io.IOException"/>
  33367. <doc>
  33368. <![CDATA[Get the credential entry for a specific alias.
  33369. @param alias the name of a specific credential
  33370. @return the credentialEntry
  33371. @throws IOException raised on errors performing I/O.]]>
  33372. </doc>
  33373. </method>
  33374. <method name="getAliases" return="java.util.List"
  33375. abstract="true" native="false" synchronized="false"
  33376. static="false" final="false" visibility="public"
  33377. deprecated="not deprecated">
  33378. <exception name="IOException" type="java.io.IOException"/>
  33379. <doc>
  33380. <![CDATA[Get the aliases for all credentials.
  33381. @return the list of alias names
  33382. @throws IOException raised on errors performing I/O.]]>
  33383. </doc>
  33384. </method>
  33385. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  33386. abstract="true" native="false" synchronized="false"
  33387. static="false" final="false" visibility="public"
  33388. deprecated="not deprecated">
  33389. <param name="name" type="java.lang.String"/>
  33390. <param name="credential" type="char[]"/>
  33391. <exception name="IOException" type="java.io.IOException"/>
  33392. <doc>
  33393. <![CDATA[Create a new credential. The given alias must not already exist.
  33394. @param name the alias of the credential
  33395. @param credential the credential value for the alias.
  33396. @throws IOException raised on errors performing I/O.
  33397. @return CredentialEntry.]]>
  33398. </doc>
  33399. </method>
  33400. <method name="deleteCredentialEntry"
  33401. abstract="true" native="false" synchronized="false"
  33402. static="false" final="false" visibility="public"
  33403. deprecated="not deprecated">
  33404. <param name="name" type="java.lang.String"/>
  33405. <exception name="IOException" type="java.io.IOException"/>
  33406. <doc>
  33407. <![CDATA[Delete the given credential.
  33408. @param name the alias of the credential to delete
  33409. @throws IOException raised on errors performing I/O.]]>
  33410. </doc>
  33411. </method>
  33412. <method name="needsPassword" return="boolean"
  33413. abstract="false" native="false" synchronized="false"
  33414. static="false" final="false" visibility="public"
  33415. deprecated="not deprecated">
  33416. <exception name="IOException" type="java.io.IOException"/>
  33417. <doc>
  33418. <![CDATA[Does this provider require a password? This means that a password is
  33419. required for normal operation, and it has not been found through normal
  33420. means. If true, the password should be provided by the caller using
  33421. setPassword().
  33422. @return Whether or not the provider requires a password
  33423. @throws IOException raised on errors performing I/O.]]>
  33424. </doc>
  33425. </method>
  33426. <method name="noPasswordWarning" return="java.lang.String"
  33427. abstract="false" native="false" synchronized="false"
  33428. static="false" final="false" visibility="public"
  33429. deprecated="not deprecated">
  33430. <doc>
  33431. <![CDATA[If a password for the provider is needed, but is not provided, this will
  33432. return a warning and instructions for supplying said password to the
  33433. provider.
  33434. @return A warning and instructions for supplying the password]]>
  33435. </doc>
  33436. </method>
  33437. <method name="noPasswordError" return="java.lang.String"
  33438. abstract="false" native="false" synchronized="false"
  33439. static="false" final="false" visibility="public"
  33440. deprecated="not deprecated">
  33441. <doc>
  33442. <![CDATA[If a password for the provider is needed, but is not provided, this will
  33443. return an error message and instructions for supplying said password to
  33444. the provider.
  33445. @return An error message and instructions for supplying the password]]>
  33446. </doc>
  33447. </method>
  33448. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  33449. transient="false" volatile="false"
  33450. static="true" final="true" visibility="public"
  33451. deprecated="not deprecated">
  33452. </field>
  33453. <doc>
  33454. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  33455. abstraction to separate credential storage from users of them. It
  33456. is intended to support getting or storing passwords in a variety of ways,
  33457. including third party bindings.
  33458. <code>CredentialProvider</code> implementations must be thread safe.]]>
  33459. </doc>
  33460. </class>
  33461. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  33462. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  33463. <class name="CredentialProviderFactory" extends="java.lang.Object"
  33464. abstract="true"
  33465. static="false" final="false" visibility="public"
  33466. deprecated="not deprecated">
  33467. <constructor name="CredentialProviderFactory"
  33468. static="false" final="false" visibility="public"
  33469. deprecated="not deprecated">
  33470. </constructor>
  33471. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  33472. abstract="true" native="false" synchronized="false"
  33473. static="false" final="false" visibility="public"
  33474. deprecated="not deprecated">
  33475. <param name="providerName" type="java.net.URI"/>
  33476. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33477. <exception name="IOException" type="java.io.IOException"/>
  33478. </method>
  33479. <method name="getProviders" return="java.util.List"
  33480. abstract="false" native="false" synchronized="false"
  33481. static="true" final="false" visibility="public"
  33482. deprecated="not deprecated">
  33483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33484. <exception name="IOException" type="java.io.IOException"/>
  33485. </method>
  33486. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  33487. transient="false" volatile="false"
  33488. static="true" final="true" visibility="public"
  33489. deprecated="not deprecated">
  33490. </field>
  33491. <doc>
  33492. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  33493. Configuration. It uses a service loader interface to find the available
  33494. CredentialProviders and create them based on the list of URIs.]]>
  33495. </doc>
  33496. </class>
  33497. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  33498. </package>
  33499. <package name="org.apache.hadoop.security.authentication.server">
  33500. </package>
  33501. <package name="org.apache.hadoop.security.authorize">
  33502. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  33503. <class name="AccessControlList" extends="java.lang.Object"
  33504. abstract="false"
  33505. static="false" final="false" visibility="public"
  33506. deprecated="not deprecated">
  33507. <implements name="org.apache.hadoop.io.Writable"/>
  33508. <constructor name="AccessControlList"
  33509. static="false" final="false" visibility="public"
  33510. deprecated="not deprecated">
  33511. <doc>
  33512. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  33513. </doc>
  33514. </constructor>
  33515. <constructor name="AccessControlList" type="java.lang.String"
  33516. static="false" final="false" visibility="public"
  33517. deprecated="not deprecated">
  33518. <doc>
  33519. <![CDATA[Construct a new ACL from a String representation of the same.
  33520. The String is a a comma separated list of users and groups.
  33521. The user list comes first and is separated by a space followed
  33522. by the group list. For e.g. "user1,user2 group1,group2"
  33523. @param aclString String representation of the ACL]]>
  33524. </doc>
  33525. </constructor>
  33526. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  33527. static="false" final="false" visibility="public"
  33528. deprecated="not deprecated">
  33529. <doc>
  33530. <![CDATA[Construct a new ACL from String representation of users and groups
  33531. The arguments are comma separated lists
  33532. @param users comma separated list of users
  33533. @param groups comma separated list of groups]]>
  33534. </doc>
  33535. </constructor>
  33536. <method name="isAllAllowed" return="boolean"
  33537. abstract="false" native="false" synchronized="false"
  33538. static="false" final="false" visibility="public"
  33539. deprecated="not deprecated">
  33540. </method>
  33541. <method name="addUser"
  33542. abstract="false" native="false" synchronized="false"
  33543. static="false" final="false" visibility="public"
  33544. deprecated="not deprecated">
  33545. <param name="user" type="java.lang.String"/>
  33546. <doc>
  33547. <![CDATA[Add user to the names of users allowed for this service.
  33548. @param user
  33549. The user name]]>
  33550. </doc>
  33551. </method>
  33552. <method name="addGroup"
  33553. abstract="false" native="false" synchronized="false"
  33554. static="false" final="false" visibility="public"
  33555. deprecated="not deprecated">
  33556. <param name="group" type="java.lang.String"/>
  33557. <doc>
  33558. <![CDATA[Add group to the names of groups allowed for this service.
  33559. @param group
  33560. The group name]]>
  33561. </doc>
  33562. </method>
  33563. <method name="removeUser"
  33564. abstract="false" native="false" synchronized="false"
  33565. static="false" final="false" visibility="public"
  33566. deprecated="not deprecated">
  33567. <param name="user" type="java.lang.String"/>
  33568. <doc>
  33569. <![CDATA[Remove user from the names of users allowed for this service.
  33570. @param user
  33571. The user name]]>
  33572. </doc>
  33573. </method>
  33574. <method name="removeGroup"
  33575. abstract="false" native="false" synchronized="false"
  33576. static="false" final="false" visibility="public"
  33577. deprecated="not deprecated">
  33578. <param name="group" type="java.lang.String"/>
  33579. <doc>
  33580. <![CDATA[Remove group from the names of groups allowed for this service.
  33581. @param group
  33582. The group name]]>
  33583. </doc>
  33584. </method>
  33585. <method name="getUsers" return="java.util.Collection"
  33586. abstract="false" native="false" synchronized="false"
  33587. static="false" final="false" visibility="public"
  33588. deprecated="not deprecated">
  33589. <doc>
  33590. <![CDATA[Get the names of users allowed for this service.
  33591. @return the set of user names. the set must not be modified.]]>
  33592. </doc>
  33593. </method>
  33594. <method name="getGroups" return="java.util.Collection"
  33595. abstract="false" native="false" synchronized="false"
  33596. static="false" final="false" visibility="public"
  33597. deprecated="not deprecated">
  33598. <doc>
  33599. <![CDATA[Get the names of user groups allowed for this service.
  33600. @return the set of group names. the set must not be modified.]]>
  33601. </doc>
  33602. </method>
  33603. <method name="isUserInList" return="boolean"
  33604. abstract="false" native="false" synchronized="false"
  33605. static="false" final="true" visibility="public"
  33606. deprecated="not deprecated">
  33607. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33608. <doc>
  33609. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  33610. is a member of the Access Control List. If user was proxied and
  33611. USE_REAL_ACLS + the real user name is in the control list, then treat this
  33612. case as if user were in the ACL list.
  33613. @param ugi UserGroupInformation to check if contained in the ACL
  33614. @return true if ugi is member of the list or if USE_REAL_ACLS + real user
  33615. is in the list]]>
  33616. </doc>
  33617. </method>
  33618. <method name="isUserAllowed" return="boolean"
  33619. abstract="false" native="false" synchronized="false"
  33620. static="false" final="false" visibility="public"
  33621. deprecated="not deprecated">
  33622. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33623. </method>
  33624. <method name="toString" return="java.lang.String"
  33625. abstract="false" native="false" synchronized="false"
  33626. static="false" final="false" visibility="public"
  33627. deprecated="not deprecated">
  33628. <doc>
  33629. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  33630. Use {@link #getAclString()} to get the exact String that can be given to
  33631. the constructor of AccessControlList to create a new instance.]]>
  33632. </doc>
  33633. </method>
  33634. <method name="getAclString" return="java.lang.String"
  33635. abstract="false" native="false" synchronized="false"
  33636. static="false" final="false" visibility="public"
  33637. deprecated="not deprecated">
  33638. <doc>
  33639. <![CDATA[Returns the access control list as a String that can be used for building a
  33640. new instance by sending it to the constructor of {@link AccessControlList}.
  33641. @return acl string.]]>
  33642. </doc>
  33643. </method>
  33644. <method name="write"
  33645. abstract="false" native="false" synchronized="false"
  33646. static="false" final="false" visibility="public"
  33647. deprecated="not deprecated">
  33648. <param name="out" type="java.io.DataOutput"/>
  33649. <exception name="IOException" type="java.io.IOException"/>
  33650. <doc>
  33651. <![CDATA[Serializes the AccessControlList object]]>
  33652. </doc>
  33653. </method>
  33654. <method name="readFields"
  33655. abstract="false" native="false" synchronized="false"
  33656. static="false" final="false" visibility="public"
  33657. deprecated="not deprecated">
  33658. <param name="in" type="java.io.DataInput"/>
  33659. <exception name="IOException" type="java.io.IOException"/>
  33660. <doc>
  33661. <![CDATA[Deserializes the AccessControlList object]]>
  33662. </doc>
  33663. </method>
  33664. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  33665. transient="false" volatile="false"
  33666. static="true" final="true" visibility="public"
  33667. deprecated="not deprecated">
  33668. </field>
  33669. <field name="USE_REAL_ACLS" type="java.lang.String"
  33670. transient="false" volatile="false"
  33671. static="true" final="true" visibility="public"
  33672. deprecated="not deprecated">
  33673. </field>
  33674. <doc>
  33675. <![CDATA[Class representing a configured access control list.]]>
  33676. </doc>
  33677. </class>
  33678. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  33679. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  33680. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  33681. abstract="false"
  33682. static="false" final="false" visibility="public"
  33683. deprecated="not deprecated">
  33684. <constructor name="AuthorizationException"
  33685. static="false" final="false" visibility="public"
  33686. deprecated="not deprecated">
  33687. </constructor>
  33688. <constructor name="AuthorizationException" type="java.lang.String"
  33689. static="false" final="false" visibility="public"
  33690. deprecated="not deprecated">
  33691. </constructor>
  33692. <constructor name="AuthorizationException" type="java.lang.Throwable"
  33693. static="false" final="false" visibility="public"
  33694. deprecated="not deprecated">
  33695. <doc>
  33696. <![CDATA[Constructs a new exception with the specified cause and a detail
  33697. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  33698. typically contains the class and detail message of <tt>cause</tt>).
  33699. @param cause the cause (which is saved for later retrieval by the
  33700. {@link #getCause()} method). (A <tt>null</tt> value is
  33701. permitted, and indicates that the cause is nonexistent or
  33702. unknown.)]]>
  33703. </doc>
  33704. </constructor>
  33705. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  33706. abstract="false" native="false" synchronized="false"
  33707. static="false" final="false" visibility="public"
  33708. deprecated="not deprecated">
  33709. </method>
  33710. <method name="printStackTrace"
  33711. abstract="false" native="false" synchronized="false"
  33712. static="false" final="false" visibility="public"
  33713. deprecated="not deprecated">
  33714. </method>
  33715. <method name="printStackTrace"
  33716. abstract="false" native="false" synchronized="false"
  33717. static="false" final="false" visibility="public"
  33718. deprecated="not deprecated">
  33719. <param name="s" type="java.io.PrintStream"/>
  33720. </method>
  33721. <method name="printStackTrace"
  33722. abstract="false" native="false" synchronized="false"
  33723. static="false" final="false" visibility="public"
  33724. deprecated="not deprecated">
  33725. <param name="s" type="java.io.PrintWriter"/>
  33726. </method>
  33727. <doc>
  33728. <![CDATA[An exception class for authorization-related issues.
  33729. This class <em>does not</em> provide the stack trace for security purposes.]]>
  33730. </doc>
  33731. </class>
  33732. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  33733. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  33734. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  33735. abstract="false"
  33736. static="false" final="false" visibility="public"
  33737. deprecated="not deprecated">
  33738. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  33739. <constructor name="DefaultImpersonationProvider"
  33740. static="false" final="false" visibility="public"
  33741. deprecated="not deprecated">
  33742. </constructor>
  33743. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  33744. abstract="false" native="false" synchronized="true"
  33745. static="true" final="false" visibility="public"
  33746. deprecated="not deprecated">
  33747. </method>
  33748. <method name="setConf"
  33749. abstract="false" native="false" synchronized="false"
  33750. static="false" final="false" visibility="public"
  33751. deprecated="not deprecated">
  33752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33753. </method>
  33754. <method name="init"
  33755. abstract="false" native="false" synchronized="false"
  33756. static="false" final="false" visibility="public"
  33757. deprecated="not deprecated">
  33758. <param name="configurationPrefix" type="java.lang.String"/>
  33759. </method>
  33760. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  33761. abstract="false" native="false" synchronized="false"
  33762. static="false" final="false" visibility="public"
  33763. deprecated="not deprecated">
  33764. </method>
  33765. <method name="authorize"
  33766. abstract="false" native="false" synchronized="false"
  33767. static="false" final="false" visibility="public"
  33768. deprecated="not deprecated">
  33769. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  33770. <param name="remoteAddress" type="java.net.InetAddress"/>
  33771. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  33772. </method>
  33773. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  33774. abstract="false" native="false" synchronized="false"
  33775. static="false" final="false" visibility="public"
  33776. deprecated="not deprecated">
  33777. <param name="userName" type="java.lang.String"/>
  33778. <doc>
  33779. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  33780. @param userName name of the superuser
  33781. @return configuration key for superuser usergroups]]>
  33782. </doc>
  33783. </method>
  33784. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  33785. abstract="false" native="false" synchronized="false"
  33786. static="false" final="false" visibility="public"
  33787. deprecated="not deprecated">
  33788. <param name="userName" type="java.lang.String"/>
  33789. <doc>
  33790. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  33791. @param userName name of the superuser
  33792. @return configuration key for superuser groups]]>
  33793. </doc>
  33794. </method>
  33795. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  33796. abstract="false" native="false" synchronized="false"
  33797. static="false" final="false" visibility="public"
  33798. deprecated="not deprecated">
  33799. <param name="userName" type="java.lang.String"/>
  33800. <doc>
  33801. <![CDATA[Return configuration key for superuser ip addresses
  33802. @param userName name of the superuser
  33803. @return configuration key for superuser ip-addresses]]>
  33804. </doc>
  33805. </method>
  33806. <method name="getProxyGroups" return="java.util.Map"
  33807. abstract="false" native="false" synchronized="false"
  33808. static="false" final="false" visibility="public"
  33809. deprecated="not deprecated">
  33810. </method>
  33811. <method name="getProxyHosts" return="java.util.Map"
  33812. abstract="false" native="false" synchronized="false"
  33813. static="false" final="false" visibility="public"
  33814. deprecated="not deprecated">
  33815. </method>
  33816. </class>
  33817. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  33818. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  33819. <interface name="ImpersonationProvider" abstract="true"
  33820. static="false" final="false" visibility="public"
  33821. deprecated="not deprecated">
  33822. <implements name="org.apache.hadoop.conf.Configurable"/>
  33823. <method name="init"
  33824. abstract="true" native="false" synchronized="false"
  33825. static="false" final="false" visibility="public"
  33826. deprecated="not deprecated">
  33827. <param name="configurationPrefix" type="java.lang.String"/>
  33828. <doc>
  33829. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  33830. initializes the provider.
  33831. @param configurationPrefix the configuration prefix for the proxy user
  33832. properties]]>
  33833. </doc>
  33834. </method>
  33835. <method name="authorize"
  33836. abstract="false" native="false" synchronized="false"
  33837. static="false" final="false" visibility="public"
  33838. deprecated="not deprecated">
  33839. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  33840. <param name="remoteAddress" type="java.lang.String"/>
  33841. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  33842. <doc>
  33843. <![CDATA[Authorize the superuser which is doing doAs.
  33844. {@link #authorize(UserGroupInformation, InetAddress)} should
  33845. be preferred to avoid possibly re-resolving the ip address.
  33846. @param user ugi of the effective or proxy user which contains a real user.
  33847. @param remoteAddress the ip address of client.
  33848. @throws AuthorizationException Authorization Exception.]]>
  33849. </doc>
  33850. </method>
  33851. <method name="authorize"
  33852. abstract="true" native="false" synchronized="false"
  33853. static="false" final="false" visibility="public"
  33854. deprecated="not deprecated">
  33855. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  33856. <param name="remoteAddress" type="java.net.InetAddress"/>
  33857. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  33858. <doc>
  33859. <![CDATA[Authorize the superuser which is doing doAs.
  33860. @param user ugi of the effective or proxy user which contains a real user
  33861. @param remoteAddress the ip address of client
  33862. @throws AuthorizationException Authorization Exception.]]>
  33863. </doc>
  33864. </method>
  33865. </interface>
  33866. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  33867. </package>
  33868. <package name="org.apache.hadoop.security.http">
  33869. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  33870. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  33871. abstract="false"
  33872. static="false" final="false" visibility="public"
  33873. deprecated="not deprecated">
  33874. <implements name="javax.servlet.Filter"/>
  33875. <constructor name="RestCsrfPreventionFilter"
  33876. static="false" final="false" visibility="public"
  33877. deprecated="not deprecated">
  33878. </constructor>
  33879. <method name="init"
  33880. abstract="false" native="false" synchronized="false"
  33881. static="false" final="false" visibility="public"
  33882. deprecated="not deprecated">
  33883. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  33884. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33885. </method>
  33886. <method name="isBrowser" return="boolean"
  33887. abstract="false" native="false" synchronized="false"
  33888. static="false" final="false" visibility="protected"
  33889. deprecated="not deprecated">
  33890. <param name="userAgent" type="java.lang.String"/>
  33891. <doc>
  33892. <![CDATA[This method interrogates the User-Agent String and returns whether it
  33893. refers to a browser. If its not a browser, then the requirement for the
  33894. CSRF header will not be enforced; if it is a browser, the requirement will
  33895. be enforced.
  33896. <p>
  33897. A User-Agent String is considered to be a browser if it matches
  33898. any of the regex patterns from browser-useragent-regex; the default
  33899. behavior is to consider everything a browser that matches the following:
  33900. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  33901. this method to use different behavior.
  33902. @param userAgent The User-Agent String, or null if there isn't one
  33903. @return true if the User-Agent String refers to a browser, false if not]]>
  33904. </doc>
  33905. </method>
  33906. <method name="handleHttpInteraction"
  33907. abstract="false" native="false" synchronized="false"
  33908. static="false" final="false" visibility="public"
  33909. deprecated="not deprecated">
  33910. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  33911. <exception name="IOException" type="java.io.IOException"/>
  33912. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33913. <doc>
  33914. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  33915. @param httpInteraction caller's HTTP interaction
  33916. @throws IOException if there is an I/O error
  33917. @throws ServletException if the implementation relies on the servlet API
  33918. and a servlet API call has failed]]>
  33919. </doc>
  33920. </method>
  33921. <method name="doFilter"
  33922. abstract="false" native="false" synchronized="false"
  33923. static="false" final="false" visibility="public"
  33924. deprecated="not deprecated">
  33925. <param name="request" type="javax.servlet.ServletRequest"/>
  33926. <param name="response" type="javax.servlet.ServletResponse"/>
  33927. <param name="chain" type="javax.servlet.FilterChain"/>
  33928. <exception name="IOException" type="java.io.IOException"/>
  33929. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33930. </method>
  33931. <method name="destroy"
  33932. abstract="false" native="false" synchronized="false"
  33933. static="false" final="false" visibility="public"
  33934. deprecated="not deprecated">
  33935. </method>
  33936. <method name="getFilterParams" return="java.util.Map"
  33937. abstract="false" native="false" synchronized="false"
  33938. static="true" final="false" visibility="public"
  33939. deprecated="not deprecated">
  33940. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33941. <param name="confPrefix" type="java.lang.String"/>
  33942. <doc>
  33943. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  33944. initialization. The mapping includes all properties that start with the
  33945. specified configuration prefix. Property names in the mapping are trimmed
  33946. to remove the configuration prefix.
  33947. @param conf configuration to read
  33948. @param confPrefix configuration prefix
  33949. @return mapping of configuration properties to be used for filter
  33950. initialization]]>
  33951. </doc>
  33952. </method>
  33953. <field name="HEADER_USER_AGENT" type="java.lang.String"
  33954. transient="false" volatile="false"
  33955. static="true" final="true" visibility="public"
  33956. deprecated="not deprecated">
  33957. </field>
  33958. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  33959. transient="false" volatile="false"
  33960. static="true" final="true" visibility="public"
  33961. deprecated="not deprecated">
  33962. </field>
  33963. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  33964. transient="false" volatile="false"
  33965. static="true" final="true" visibility="public"
  33966. deprecated="not deprecated">
  33967. </field>
  33968. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  33969. transient="false" volatile="false"
  33970. static="true" final="true" visibility="public"
  33971. deprecated="not deprecated">
  33972. </field>
  33973. <field name="HEADER_DEFAULT" type="java.lang.String"
  33974. transient="false" volatile="false"
  33975. static="true" final="true" visibility="public"
  33976. deprecated="not deprecated">
  33977. </field>
  33978. <doc>
  33979. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  33980. attacks for REST APIs. Enabling this filter on an endpoint results in the
  33981. requirement of all client to send a particular (configurable) HTTP header
  33982. with every request. In the absense of this header the filter will reject the
  33983. attempt as a bad request.]]>
  33984. </doc>
  33985. </class>
  33986. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  33987. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  33988. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  33989. abstract="false"
  33990. static="false" final="false" visibility="public"
  33991. deprecated="not deprecated">
  33992. <implements name="javax.servlet.Filter"/>
  33993. <constructor name="XFrameOptionsFilter"
  33994. static="false" final="false" visibility="public"
  33995. deprecated="not deprecated">
  33996. </constructor>
  33997. <method name="destroy"
  33998. abstract="false" native="false" synchronized="false"
  33999. static="false" final="false" visibility="public"
  34000. deprecated="not deprecated">
  34001. </method>
  34002. <method name="doFilter"
  34003. abstract="false" native="false" synchronized="false"
  34004. static="false" final="false" visibility="public"
  34005. deprecated="not deprecated">
  34006. <param name="req" type="javax.servlet.ServletRequest"/>
  34007. <param name="res" type="javax.servlet.ServletResponse"/>
  34008. <param name="chain" type="javax.servlet.FilterChain"/>
  34009. <exception name="IOException" type="java.io.IOException"/>
  34010. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34011. </method>
  34012. <method name="init"
  34013. abstract="false" native="false" synchronized="false"
  34014. static="false" final="false" visibility="public"
  34015. deprecated="not deprecated">
  34016. <param name="config" type="javax.servlet.FilterConfig"/>
  34017. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34018. </method>
  34019. <method name="getFilterParams" return="java.util.Map"
  34020. abstract="false" native="false" synchronized="false"
  34021. static="true" final="false" visibility="public"
  34022. deprecated="not deprecated">
  34023. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34024. <param name="confPrefix" type="java.lang.String"/>
  34025. <doc>
  34026. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  34027. initialization. The mapping includes all properties that start with the
  34028. specified configuration prefix. Property names in the mapping are trimmed
  34029. to remove the configuration prefix.
  34030. @param conf configuration to read
  34031. @param confPrefix configuration prefix
  34032. @return mapping of configuration properties to be used for filter
  34033. initialization]]>
  34034. </doc>
  34035. </method>
  34036. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  34037. transient="false" volatile="false"
  34038. static="true" final="true" visibility="public"
  34039. deprecated="not deprecated">
  34040. </field>
  34041. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  34042. transient="false" volatile="false"
  34043. static="true" final="true" visibility="public"
  34044. deprecated="not deprecated">
  34045. </field>
  34046. <doc>
  34047. <![CDATA[This filter protects webapps from clickjacking attacks that
  34048. are possible through use of Frames to embed the resources in another
  34049. application and intercept clicks to accomplish nefarious things.]]>
  34050. </doc>
  34051. </class>
  34052. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  34053. </package>
  34054. <package name="org.apache.hadoop.security.protocolPB">
  34055. </package>
  34056. <package name="org.apache.hadoop.security.ssl">
  34057. </package>
  34058. <package name="org.apache.hadoop.security.token">
  34059. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  34060. <class name="SecretManager" extends="java.lang.Object"
  34061. abstract="true"
  34062. static="false" final="false" visibility="public"
  34063. deprecated="not deprecated">
  34064. <constructor name="SecretManager"
  34065. static="false" final="false" visibility="public"
  34066. deprecated="not deprecated">
  34067. </constructor>
  34068. <method name="createPassword" return="byte[]"
  34069. abstract="true" native="false" synchronized="false"
  34070. static="false" final="false" visibility="protected"
  34071. deprecated="not deprecated">
  34072. <param name="identifier" type="T"/>
  34073. <doc>
  34074. <![CDATA[Create the password for the given identifier.
  34075. identifier may be modified inside this method.
  34076. @param identifier the identifier to use
  34077. @return the new password]]>
  34078. </doc>
  34079. </method>
  34080. <method name="retrievePassword" return="byte[]"
  34081. abstract="true" native="false" synchronized="false"
  34082. static="false" final="false" visibility="public"
  34083. deprecated="not deprecated">
  34084. <param name="identifier" type="T"/>
  34085. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34086. <doc>
  34087. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  34088. or registry to make sure the token hasn't expired or been revoked. Returns
  34089. the relevant password.
  34090. @param identifier the identifier to validate
  34091. @return the password to use
  34092. @throws InvalidToken the token was invalid]]>
  34093. </doc>
  34094. </method>
  34095. <method name="retriableRetrievePassword" return="byte[]"
  34096. abstract="false" native="false" synchronized="false"
  34097. static="false" final="false" visibility="public"
  34098. deprecated="not deprecated">
  34099. <param name="identifier" type="T"/>
  34100. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34101. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  34102. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  34103. <exception name="IOException" type="java.io.IOException"/>
  34104. <doc>
  34105. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  34106. method can throw a {@link RetriableException} or a {@link StandbyException}
  34107. to indicate that client can retry/failover the same operation because of
  34108. temporary issue on the server side.
  34109. @param identifier the identifier to validate
  34110. @return the password to use
  34111. @throws InvalidToken the token was invalid
  34112. @throws StandbyException the server is in standby state, the client can
  34113. try other servers
  34114. @throws RetriableException the token was invalid, and the server thinks
  34115. this may be a temporary issue and suggests the client to retry
  34116. @throws IOException to allow future exceptions to be added without breaking
  34117. compatibility]]>
  34118. </doc>
  34119. </method>
  34120. <method name="createIdentifier" return="T"
  34121. abstract="true" native="false" synchronized="false"
  34122. static="false" final="false" visibility="public"
  34123. deprecated="not deprecated">
  34124. <doc>
  34125. <![CDATA[Create an empty token identifier.
  34126. @return the newly created empty token identifier]]>
  34127. </doc>
  34128. </method>
  34129. <method name="checkAvailableForRead"
  34130. abstract="false" native="false" synchronized="false"
  34131. static="false" final="false" visibility="public"
  34132. deprecated="not deprecated">
  34133. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  34134. <doc>
  34135. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  34136. StandbyException otherwise.
  34137. @throws StandbyException if the secret manager is not available to read
  34138. tokens]]>
  34139. </doc>
  34140. </method>
  34141. <method name="generateSecret" return="javax.crypto.SecretKey"
  34142. abstract="false" native="false" synchronized="false"
  34143. static="false" final="false" visibility="protected"
  34144. deprecated="not deprecated">
  34145. <doc>
  34146. <![CDATA[Generate a new random secret key.
  34147. @return the new key]]>
  34148. </doc>
  34149. </method>
  34150. <method name="createPassword" return="byte[]"
  34151. abstract="false" native="false" synchronized="false"
  34152. static="true" final="false" visibility="public"
  34153. deprecated="not deprecated">
  34154. <param name="identifier" type="byte[]"/>
  34155. <param name="key" type="javax.crypto.SecretKey"/>
  34156. <doc>
  34157. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  34158. output as password
  34159. @param identifier the bytes of the identifier
  34160. @param key the secret key
  34161. @return the bytes of the generated password]]>
  34162. </doc>
  34163. </method>
  34164. <method name="createSecretKey" return="javax.crypto.SecretKey"
  34165. abstract="false" native="false" synchronized="false"
  34166. static="true" final="false" visibility="protected"
  34167. deprecated="not deprecated">
  34168. <param name="key" type="byte[]"/>
  34169. <doc>
  34170. <![CDATA[Convert the byte[] to a secret key
  34171. @param key the byte[] to create a secret key from
  34172. @return the secret key]]>
  34173. </doc>
  34174. </method>
  34175. <doc>
  34176. <![CDATA[The server-side secret manager for each token type.
  34177. @param <T> The type of the token identifier]]>
  34178. </doc>
  34179. </class>
  34180. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  34181. <!-- start class org.apache.hadoop.security.token.Token -->
  34182. <class name="Token" extends="java.lang.Object"
  34183. abstract="false"
  34184. static="false" final="false" visibility="public"
  34185. deprecated="not deprecated">
  34186. <implements name="org.apache.hadoop.io.Writable"/>
  34187. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. <doc>
  34191. <![CDATA[Construct a token given a token identifier and a secret manager for the
  34192. type of the token identifier.
  34193. @param id the token identifier
  34194. @param mgr the secret manager]]>
  34195. </doc>
  34196. </constructor>
  34197. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  34198. static="false" final="false" visibility="public"
  34199. deprecated="not deprecated">
  34200. <doc>
  34201. <![CDATA[Construct a token from the components.
  34202. @param identifier the token identifier
  34203. @param password the token's password
  34204. @param kind the kind of token
  34205. @param service the service for this token]]>
  34206. </doc>
  34207. </constructor>
  34208. <constructor name="Token"
  34209. static="false" final="false" visibility="public"
  34210. deprecated="not deprecated">
  34211. <doc>
  34212. <![CDATA[Default constructor.]]>
  34213. </doc>
  34214. </constructor>
  34215. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  34216. static="false" final="false" visibility="public"
  34217. deprecated="not deprecated">
  34218. <doc>
  34219. <![CDATA[Clone a token.
  34220. @param other the token to clone]]>
  34221. </doc>
  34222. </constructor>
  34223. <method name="setID"
  34224. abstract="false" native="false" synchronized="false"
  34225. static="false" final="false" visibility="public"
  34226. deprecated="not deprecated">
  34227. <param name="bytes" type="byte[]"/>
  34228. </method>
  34229. <method name="setPassword"
  34230. abstract="false" native="false" synchronized="false"
  34231. static="false" final="false" visibility="public"
  34232. deprecated="not deprecated">
  34233. <param name="newPassword" type="byte[]"/>
  34234. </method>
  34235. <method name="copyToken" return="org.apache.hadoop.security.token.Token"
  34236. abstract="false" native="false" synchronized="false"
  34237. static="false" final="false" visibility="public"
  34238. deprecated="not deprecated">
  34239. </method>
  34240. <method name="getIdentifier" return="byte[]"
  34241. abstract="false" native="false" synchronized="false"
  34242. static="false" final="false" visibility="public"
  34243. deprecated="not deprecated">
  34244. <doc>
  34245. <![CDATA[Get the token identifier's byte representation.
  34246. @return the token identifier's byte representation]]>
  34247. </doc>
  34248. </method>
  34249. <method name="decodeIdentifier" return="T"
  34250. abstract="false" native="false" synchronized="false"
  34251. static="false" final="false" visibility="public"
  34252. deprecated="not deprecated">
  34253. <exception name="IOException" type="java.io.IOException"/>
  34254. <doc>
  34255. <![CDATA[Get the token identifier object, or null if it could not be constructed
  34256. (because the class could not be loaded, for example).
  34257. @return the token identifier, or null if there was no class found for it
  34258. @throws IOException failure to unmarshall the data
  34259. @throws RuntimeException if the token class could not be instantiated.]]>
  34260. </doc>
  34261. </method>
  34262. <method name="getPassword" return="byte[]"
  34263. abstract="false" native="false" synchronized="false"
  34264. static="false" final="false" visibility="public"
  34265. deprecated="not deprecated">
  34266. <doc>
  34267. <![CDATA[Get the token password/secret.
  34268. @return the token password/secret]]>
  34269. </doc>
  34270. </method>
  34271. <method name="getKind" return="org.apache.hadoop.io.Text"
  34272. abstract="false" native="false" synchronized="true"
  34273. static="false" final="false" visibility="public"
  34274. deprecated="not deprecated">
  34275. <doc>
  34276. <![CDATA[Get the token kind.
  34277. @return the kind of the token]]>
  34278. </doc>
  34279. </method>
  34280. <method name="getService" return="org.apache.hadoop.io.Text"
  34281. abstract="false" native="false" synchronized="false"
  34282. static="false" final="false" visibility="public"
  34283. deprecated="not deprecated">
  34284. <doc>
  34285. <![CDATA[Get the service on which the token is supposed to be used.
  34286. @return the service name]]>
  34287. </doc>
  34288. </method>
  34289. <method name="setService"
  34290. abstract="false" native="false" synchronized="false"
  34291. static="false" final="false" visibility="public"
  34292. deprecated="not deprecated">
  34293. <param name="newService" type="org.apache.hadoop.io.Text"/>
  34294. <doc>
  34295. <![CDATA[Set the service on which the token is supposed to be used.
  34296. @param newService the service name]]>
  34297. </doc>
  34298. </method>
  34299. <method name="isPrivate" return="boolean"
  34300. abstract="false" native="false" synchronized="false"
  34301. static="false" final="false" visibility="public"
  34302. deprecated="not deprecated">
  34303. <doc>
  34304. <![CDATA[Whether this is a private token.
  34305. @return false always for non-private tokens]]>
  34306. </doc>
  34307. </method>
  34308. <method name="isPrivateCloneOf" return="boolean"
  34309. abstract="false" native="false" synchronized="false"
  34310. static="false" final="false" visibility="public"
  34311. deprecated="not deprecated">
  34312. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  34313. <doc>
  34314. <![CDATA[Whether this is a private clone of a public token.
  34315. @param thePublicService the public service name
  34316. @return false always for non-private tokens]]>
  34317. </doc>
  34318. </method>
  34319. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  34320. abstract="false" native="false" synchronized="false"
  34321. static="false" final="false" visibility="public"
  34322. deprecated="not deprecated">
  34323. <param name="newService" type="org.apache.hadoop.io.Text"/>
  34324. <doc>
  34325. <![CDATA[Create a private clone of a public token.
  34326. @param newService the new service name
  34327. @return a private token]]>
  34328. </doc>
  34329. </method>
  34330. <method name="readFields"
  34331. abstract="false" native="false" synchronized="false"
  34332. static="false" final="false" visibility="public"
  34333. deprecated="not deprecated">
  34334. <param name="in" type="java.io.DataInput"/>
  34335. <exception name="IOException" type="java.io.IOException"/>
  34336. </method>
  34337. <method name="write"
  34338. abstract="false" native="false" synchronized="false"
  34339. static="false" final="false" visibility="public"
  34340. deprecated="not deprecated">
  34341. <param name="out" type="java.io.DataOutput"/>
  34342. <exception name="IOException" type="java.io.IOException"/>
  34343. </method>
  34344. <method name="encodeToUrlString" return="java.lang.String"
  34345. abstract="false" native="false" synchronized="false"
  34346. static="false" final="false" visibility="public"
  34347. deprecated="not deprecated">
  34348. <exception name="IOException" type="java.io.IOException"/>
  34349. <doc>
  34350. <![CDATA[Encode this token as a url safe string.
  34351. @return the encoded string
  34352. @throws IOException raised on errors performing I/O.]]>
  34353. </doc>
  34354. </method>
  34355. <method name="decodeFromUrlString"
  34356. abstract="false" native="false" synchronized="false"
  34357. static="false" final="false" visibility="public"
  34358. deprecated="not deprecated">
  34359. <param name="newValue" type="java.lang.String"/>
  34360. <exception name="IOException" type="java.io.IOException"/>
  34361. <doc>
  34362. <![CDATA[Decode the given url safe string into this token.
  34363. @param newValue the encoded string
  34364. @throws IOException raised on errors performing I/O.]]>
  34365. </doc>
  34366. </method>
  34367. <method name="equals" return="boolean"
  34368. abstract="false" native="false" synchronized="false"
  34369. static="false" final="false" visibility="public"
  34370. deprecated="not deprecated">
  34371. <param name="right" type="java.lang.Object"/>
  34372. </method>
  34373. <method name="hashCode" return="int"
  34374. abstract="false" native="false" synchronized="false"
  34375. static="false" final="false" visibility="public"
  34376. deprecated="not deprecated">
  34377. </method>
  34378. <method name="toString" return="java.lang.String"
  34379. abstract="false" native="false" synchronized="false"
  34380. static="false" final="false" visibility="public"
  34381. deprecated="not deprecated">
  34382. </method>
  34383. <method name="buildCacheKey" return="java.lang.String"
  34384. abstract="false" native="false" synchronized="false"
  34385. static="false" final="false" visibility="public"
  34386. deprecated="not deprecated">
  34387. </method>
  34388. <method name="isManaged" return="boolean"
  34389. abstract="false" native="false" synchronized="false"
  34390. static="false" final="false" visibility="public"
  34391. deprecated="not deprecated">
  34392. <exception name="IOException" type="java.io.IOException"/>
  34393. <doc>
  34394. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  34395. @return true, if it can be renewed and cancelled.
  34396. @throws IOException raised on errors performing I/O.]]>
  34397. </doc>
  34398. </method>
  34399. <method name="renew" return="long"
  34400. abstract="false" native="false" synchronized="false"
  34401. static="false" final="false" visibility="public"
  34402. deprecated="not deprecated">
  34403. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34404. <exception name="IOException" type="java.io.IOException"/>
  34405. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34406. <doc>
  34407. <![CDATA[Renew this delegation token.
  34408. @param conf configuration.
  34409. @return the new expiration time
  34410. @throws IOException raised on errors performing I/O.
  34411. @throws InterruptedException if the thread is interrupted.]]>
  34412. </doc>
  34413. </method>
  34414. <method name="cancel"
  34415. abstract="false" native="false" synchronized="false"
  34416. static="false" final="false" visibility="public"
  34417. deprecated="not deprecated">
  34418. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34419. <exception name="IOException" type="java.io.IOException"/>
  34420. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34421. <doc>
  34422. <![CDATA[Cancel this delegation token.
  34423. @param conf configuration.
  34424. @throws IOException raised on errors performing I/O.
  34425. @throws InterruptedException if the thread is interrupted.]]>
  34426. </doc>
  34427. </method>
  34428. <field name="LOG" type="org.slf4j.Logger"
  34429. transient="false" volatile="false"
  34430. static="true" final="true" visibility="public"
  34431. deprecated="not deprecated">
  34432. </field>
  34433. <doc>
  34434. <![CDATA[The client-side form of the token.]]>
  34435. </doc>
  34436. </class>
  34437. <!-- end class org.apache.hadoop.security.token.Token -->
  34438. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  34439. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  34440. abstract="false"
  34441. static="true" final="false" visibility="public"
  34442. deprecated="not deprecated">
  34443. <constructor name="TrivialRenewer"
  34444. static="false" final="false" visibility="public"
  34445. deprecated="not deprecated">
  34446. </constructor>
  34447. <method name="getKind" return="org.apache.hadoop.io.Text"
  34448. abstract="false" native="false" synchronized="false"
  34449. static="false" final="false" visibility="protected"
  34450. deprecated="not deprecated">
  34451. </method>
  34452. <method name="handleKind" return="boolean"
  34453. abstract="false" native="false" synchronized="false"
  34454. static="false" final="false" visibility="public"
  34455. deprecated="not deprecated">
  34456. <param name="kind" type="org.apache.hadoop.io.Text"/>
  34457. </method>
  34458. <method name="isManaged" return="boolean"
  34459. abstract="false" native="false" synchronized="false"
  34460. static="false" final="false" visibility="public"
  34461. deprecated="not deprecated">
  34462. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34463. </method>
  34464. <method name="renew" return="long"
  34465. abstract="false" native="false" synchronized="false"
  34466. static="false" final="false" visibility="public"
  34467. deprecated="not deprecated">
  34468. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34470. </method>
  34471. <method name="cancel"
  34472. abstract="false" native="false" synchronized="false"
  34473. static="false" final="false" visibility="public"
  34474. deprecated="not deprecated">
  34475. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34476. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34477. <exception name="IOException" type="java.io.IOException"/>
  34478. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34479. </method>
  34480. <doc>
  34481. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  34482. to implement getKind for their token kind.]]>
  34483. </doc>
  34484. </class>
  34485. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  34486. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  34487. <class name="TokenIdentifier" extends="java.lang.Object"
  34488. abstract="true"
  34489. static="false" final="false" visibility="public"
  34490. deprecated="not deprecated">
  34491. <implements name="org.apache.hadoop.io.Writable"/>
  34492. <constructor name="TokenIdentifier"
  34493. static="false" final="false" visibility="public"
  34494. deprecated="not deprecated">
  34495. </constructor>
  34496. <method name="getKind" return="org.apache.hadoop.io.Text"
  34497. abstract="true" native="false" synchronized="false"
  34498. static="false" final="false" visibility="public"
  34499. deprecated="not deprecated">
  34500. <doc>
  34501. <![CDATA[Get the token kind
  34502. @return the kind of the token]]>
  34503. </doc>
  34504. </method>
  34505. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  34506. abstract="true" native="false" synchronized="false"
  34507. static="false" final="false" visibility="public"
  34508. deprecated="not deprecated">
  34509. <doc>
  34510. <![CDATA[Get the Ugi with the username encoded in the token identifier
  34511. @return the username. null is returned if username in the identifier is
  34512. empty or null.]]>
  34513. </doc>
  34514. </method>
  34515. <method name="getBytes" return="byte[]"
  34516. abstract="false" native="false" synchronized="false"
  34517. static="false" final="false" visibility="public"
  34518. deprecated="not deprecated">
  34519. <doc>
  34520. <![CDATA[Get the bytes for the token identifier
  34521. @return the bytes of the identifier]]>
  34522. </doc>
  34523. </method>
  34524. <method name="getTrackingId" return="java.lang.String"
  34525. abstract="false" native="false" synchronized="false"
  34526. static="false" final="false" visibility="public"
  34527. deprecated="not deprecated">
  34528. <doc>
  34529. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  34530. token across multiple client sessions.
  34531. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  34532. @return tracking identifier]]>
  34533. </doc>
  34534. </method>
  34535. <doc>
  34536. <![CDATA[An identifier that identifies a token, may contain public information
  34537. about a token, including its kind (or type).]]>
  34538. </doc>
  34539. </class>
  34540. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  34541. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  34542. <class name="TokenInfo" abstract="true"
  34543. static="false" final="false" visibility="public"
  34544. deprecated="not deprecated">
  34545. <implements name="java.lang.annotation.Annotation"/>
  34546. <doc>
  34547. <![CDATA[Indicates Token related information to be used]]>
  34548. </doc>
  34549. </class>
  34550. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  34551. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  34552. <class name="TokenRenewer" extends="java.lang.Object"
  34553. abstract="true"
  34554. static="false" final="false" visibility="public"
  34555. deprecated="not deprecated">
  34556. <constructor name="TokenRenewer"
  34557. static="false" final="false" visibility="public"
  34558. deprecated="not deprecated">
  34559. </constructor>
  34560. <method name="handleKind" return="boolean"
  34561. abstract="true" native="false" synchronized="false"
  34562. static="false" final="false" visibility="public"
  34563. deprecated="not deprecated">
  34564. <param name="kind" type="org.apache.hadoop.io.Text"/>
  34565. <doc>
  34566. <![CDATA[Does this renewer handle this kind of token?
  34567. @param kind the kind of the token
  34568. @return true if this renewer can renew it]]>
  34569. </doc>
  34570. </method>
  34571. <method name="isManaged" return="boolean"
  34572. abstract="true" native="false" synchronized="false"
  34573. static="false" final="false" visibility="public"
  34574. deprecated="not deprecated">
  34575. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34576. <exception name="IOException" type="java.io.IOException"/>
  34577. <doc>
  34578. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  34579. cancelled.
  34580. @param token the token being checked
  34581. @return true if the token may be renewed or cancelled
  34582. @throws IOException raised on errors performing I/O.]]>
  34583. </doc>
  34584. </method>
  34585. <method name="renew" return="long"
  34586. abstract="true" native="false" synchronized="false"
  34587. static="false" final="false" visibility="public"
  34588. deprecated="not deprecated">
  34589. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34591. <exception name="IOException" type="java.io.IOException"/>
  34592. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34593. <doc>
  34594. <![CDATA[Renew the given token.
  34595. @param token the token being checked.
  34596. @param conf configuration.
  34597. @return the new expiration time.
  34598. @throws IOException raised on errors performing I/O.
  34599. @throws InterruptedException thrown when a thread is waiting, sleeping,
  34600. or otherwise occupied, and the thread is interrupted,
  34601. either before or during the activity.]]>
  34602. </doc>
  34603. </method>
  34604. <method name="cancel"
  34605. abstract="true" native="false" synchronized="false"
  34606. static="false" final="false" visibility="public"
  34607. deprecated="not deprecated">
  34608. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34609. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34610. <exception name="IOException" type="java.io.IOException"/>
  34611. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34612. <doc>
  34613. <![CDATA[Cancel the given token.
  34614. @param token the token being checked.
  34615. @param conf configuration.
  34616. @throws IOException raised on errors performing I/O.
  34617. @throws InterruptedException thrown when a thread is waiting, sleeping,
  34618. or otherwise occupied, and the thread is interrupted,
  34619. either before or during the activity.]]>
  34620. </doc>
  34621. </method>
  34622. <doc>
  34623. <![CDATA[This is the interface for plugins that handle tokens.]]>
  34624. </doc>
  34625. </class>
  34626. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  34627. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  34628. <interface name="TokenSelector" abstract="true"
  34629. static="false" final="false" visibility="public"
  34630. deprecated="not deprecated">
  34631. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  34632. abstract="true" native="false" synchronized="false"
  34633. static="false" final="false" visibility="public"
  34634. deprecated="not deprecated">
  34635. <param name="service" type="org.apache.hadoop.io.Text"/>
  34636. <param name="tokens" type="java.util.Collection"/>
  34637. </method>
  34638. <doc>
  34639. <![CDATA[Select token of type T from tokens for use with named service
  34640. @param <T>
  34641. T extends TokenIdentifier]]>
  34642. </doc>
  34643. </interface>
  34644. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  34645. </package>
  34646. <package name="org.apache.hadoop.security.token.delegation.web">
  34647. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  34648. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  34649. abstract="false"
  34650. static="false" final="false" visibility="public"
  34651. deprecated="not deprecated">
  34652. <constructor name="DelegationTokenAuthenticatedURL"
  34653. static="false" final="false" visibility="public"
  34654. deprecated="not deprecated">
  34655. <doc>
  34656. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  34657. <p>
  34658. An instance of the default {@link DelegationTokenAuthenticator} will be
  34659. used.]]>
  34660. </doc>
  34661. </constructor>
  34662. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  34663. static="false" final="false" visibility="public"
  34664. deprecated="not deprecated">
  34665. <doc>
  34666. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  34667. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  34668. use, if <code>null</code> the default one will be used.]]>
  34669. </doc>
  34670. </constructor>
  34671. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  34672. static="false" final="false" visibility="public"
  34673. deprecated="not deprecated">
  34674. <doc>
  34675. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  34676. {@link DelegationTokenAuthenticator} class.
  34677. @param connConfigurator a connection configurator.]]>
  34678. </doc>
  34679. </constructor>
  34680. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  34681. static="false" final="false" visibility="public"
  34682. deprecated="not deprecated">
  34683. <doc>
  34684. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  34685. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  34686. use, if <code>null</code> the default one will be used.
  34687. @param connConfigurator a connection configurator.]]>
  34688. </doc>
  34689. </constructor>
  34690. <method name="setDefaultDelegationTokenAuthenticator"
  34691. abstract="false" native="false" synchronized="false"
  34692. static="true" final="false" visibility="public"
  34693. deprecated="not deprecated">
  34694. <param name="authenticator" type="java.lang.Class"/>
  34695. <doc>
  34696. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  34697. {@link DelegationTokenAuthenticatedURL} instance is created without
  34698. specifying one.
  34699. The default class is {@link KerberosDelegationTokenAuthenticator}
  34700. @param authenticator the authenticator class to use as default.]]>
  34701. </doc>
  34702. </method>
  34703. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  34704. abstract="false" native="false" synchronized="false"
  34705. static="true" final="false" visibility="public"
  34706. deprecated="not deprecated">
  34707. <doc>
  34708. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  34709. an {@link DelegationTokenAuthenticatedURL} instance is created without
  34710. specifying one.
  34711. <p>
  34712. The default class is {@link KerberosDelegationTokenAuthenticator}
  34713. @return the delegation token authenticator class to use as default.]]>
  34714. </doc>
  34715. </method>
  34716. <method name="setUseQueryStringForDelegationToken"
  34717. abstract="false" native="false" synchronized="false"
  34718. static="false" final="false" visibility="protected"
  34719. deprecated="not deprecated">
  34720. <param name="useQueryString" type="boolean"/>
  34721. <doc>
  34722. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  34723. By default it is transmitted using the
  34724. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  34725. <p>
  34726. This method is provided to enable WebHDFS backwards compatibility.
  34727. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  34728. URL query string, <code>FALSE</code> if the delegation token is transmitted
  34729. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  34730. header.]]>
  34731. </doc>
  34732. </method>
  34733. <method name="useQueryStringForDelegationToken" return="boolean"
  34734. abstract="false" native="false" synchronized="false"
  34735. static="false" final="false" visibility="public"
  34736. deprecated="not deprecated">
  34737. <doc>
  34738. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  34739. @return <code>TRUE</code> if the token is transmitted in the URL query
  34740. string, <code>FALSE</code> if the delegation token is transmitted using the
  34741. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  34742. </doc>
  34743. </method>
  34744. <method name="openConnection" return="java.net.HttpURLConnection"
  34745. abstract="false" native="false" synchronized="false"
  34746. static="false" final="false" visibility="public"
  34747. deprecated="not deprecated">
  34748. <param name="url" type="java.net.URL"/>
  34749. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  34750. <exception name="IOException" type="java.io.IOException"/>
  34751. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34752. <doc>
  34753. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  34754. Token only if the given auth token is an instance of {@link Token} and
  34755. it contains a Delegation Token, otherwise use the configured
  34756. {@link DelegationTokenAuthenticator} to authenticate the connection.
  34757. @param url the URL to connect to. Only HTTP/S URLs are supported.
  34758. @param token the authentication token being used for the user.
  34759. @return an authenticated {@link HttpURLConnection}.
  34760. @throws IOException if an IO error occurred.
  34761. @throws AuthenticationException if an authentication exception occurred.]]>
  34762. </doc>
  34763. </method>
  34764. <method name="openConnection" return="java.net.HttpURLConnection"
  34765. abstract="false" native="false" synchronized="false"
  34766. static="false" final="false" visibility="public"
  34767. deprecated="not deprecated">
  34768. <param name="url" type="java.net.URL"/>
  34769. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34770. <exception name="IOException" type="java.io.IOException"/>
  34771. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34772. <doc>
  34773. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  34774. Token is present, it will be used taking precedence over the configured
  34775. <code>Authenticator</code>.
  34776. @param url the URL to connect to. Only HTTP/S URLs are supported.
  34777. @param token the authentication token being used for the user.
  34778. @return an authenticated {@link HttpURLConnection}.
  34779. @throws IOException if an IO error occurred.
  34780. @throws AuthenticationException if an authentication exception occurred.]]>
  34781. </doc>
  34782. </method>
  34783. <method name="openConnection" return="java.net.HttpURLConnection"
  34784. abstract="false" native="false" synchronized="false"
  34785. static="false" final="false" visibility="public"
  34786. deprecated="not deprecated">
  34787. <param name="url" type="java.net.URL"/>
  34788. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34789. <param name="doAs" type="java.lang.String"/>
  34790. <exception name="IOException" type="java.io.IOException"/>
  34791. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34792. <doc>
  34793. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  34794. Token is present, it will be used taking precedence over the configured
  34795. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  34796. the request will be done on behalf of the specified <code>doAs</code> user.
  34797. @param url the URL to connect to. Only HTTP/S URLs are supported.
  34798. @param token the authentication token being used for the user.
  34799. @param doAs user to do the the request on behalf of, if NULL the request is
  34800. as self.
  34801. @return an authenticated {@link HttpURLConnection}.
  34802. @throws IOException if an IO error occurred.
  34803. @throws AuthenticationException if an authentication exception occurred.]]>
  34804. </doc>
  34805. </method>
  34806. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  34807. abstract="false" native="false" synchronized="false"
  34808. static="false" final="false" visibility="public"
  34809. deprecated="not deprecated">
  34810. <param name="url" type="java.net.URL"/>
  34811. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34812. <param name="renewer" type="java.lang.String"/>
  34813. <exception name="IOException" type="java.io.IOException"/>
  34814. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34815. <doc>
  34816. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  34817. for authentication.
  34818. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  34819. supported.
  34820. @param token the authentication token being used for the user where the
  34821. Delegation token will be stored.
  34822. @param renewer the renewer user.
  34823. @return a delegation token.
  34824. @throws IOException if an IO error occurred.
  34825. @throws AuthenticationException if an authentication exception occurred.]]>
  34826. </doc>
  34827. </method>
  34828. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  34829. abstract="false" native="false" synchronized="false"
  34830. static="false" final="false" visibility="public"
  34831. deprecated="not deprecated">
  34832. <param name="url" type="java.net.URL"/>
  34833. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34834. <param name="renewer" type="java.lang.String"/>
  34835. <param name="doAsUser" type="java.lang.String"/>
  34836. <exception name="IOException" type="java.io.IOException"/>
  34837. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34838. <doc>
  34839. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  34840. for authentication.
  34841. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  34842. supported.
  34843. @param token the authentication token being used for the user where the
  34844. Delegation token will be stored.
  34845. @param renewer the renewer user.
  34846. @param doAsUser the user to do as, which will be the token owner.
  34847. @return a delegation token.
  34848. @throws IOException if an IO error occurred.
  34849. @throws AuthenticationException if an authentication exception occurred.]]>
  34850. </doc>
  34851. </method>
  34852. <method name="renewDelegationToken" return="long"
  34853. abstract="false" native="false" synchronized="false"
  34854. static="false" final="false" visibility="public"
  34855. deprecated="not deprecated">
  34856. <param name="url" type="java.net.URL"/>
  34857. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34858. <exception name="IOException" type="java.io.IOException"/>
  34859. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34860. <doc>
  34861. <![CDATA[Renews a delegation token from the server end-point using the
  34862. configured <code>Authenticator</code> for authentication.
  34863. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  34864. supported.
  34865. @param token the authentication token with the Delegation Token to renew.
  34866. @throws IOException if an IO error occurred.
  34867. @throws AuthenticationException if an authentication exception occurred.
  34868. @return delegation token long value.]]>
  34869. </doc>
  34870. </method>
  34871. <method name="renewDelegationToken" return="long"
  34872. abstract="false" native="false" synchronized="false"
  34873. static="false" final="false" visibility="public"
  34874. deprecated="not deprecated">
  34875. <param name="url" type="java.net.URL"/>
  34876. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34877. <param name="doAsUser" type="java.lang.String"/>
  34878. <exception name="IOException" type="java.io.IOException"/>
  34879. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34880. <doc>
  34881. <![CDATA[Renews a delegation token from the server end-point using the
  34882. configured <code>Authenticator</code> for authentication.
  34883. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  34884. supported.
  34885. @param token the authentication token with the Delegation Token to renew.
  34886. @param doAsUser the user to do as, which will be the token owner.
  34887. @throws IOException if an IO error occurred.
  34888. @throws AuthenticationException if an authentication exception occurred.
  34889. @return delegation token long value.]]>
  34890. </doc>
  34891. </method>
  34892. <method name="cancelDelegationToken"
  34893. abstract="false" native="false" synchronized="false"
  34894. static="false" final="false" visibility="public"
  34895. deprecated="not deprecated">
  34896. <param name="url" type="java.net.URL"/>
  34897. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34898. <exception name="IOException" type="java.io.IOException"/>
  34899. <doc>
  34900. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  34901. being authenticated by the configured <code>Authenticator</code>.
  34902. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  34903. are supported.
  34904. @param token the authentication token with the Delegation Token to cancel.
  34905. @throws IOException if an IO error occurred.]]>
  34906. </doc>
  34907. </method>
  34908. <method name="cancelDelegationToken"
  34909. abstract="false" native="false" synchronized="false"
  34910. static="false" final="false" visibility="public"
  34911. deprecated="not deprecated">
  34912. <param name="url" type="java.net.URL"/>
  34913. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  34914. <param name="doAsUser" type="java.lang.String"/>
  34915. <exception name="IOException" type="java.io.IOException"/>
  34916. <doc>
  34917. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  34918. being authenticated by the configured <code>Authenticator</code>.
  34919. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  34920. are supported.
  34921. @param token the authentication token with the Delegation Token to cancel.
  34922. @param doAsUser the user to do as, which will be the token owner.
  34923. @throws IOException if an IO error occurred.]]>
  34924. </doc>
  34925. </method>
  34926. <doc>
  34927. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  34928. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  34929. functionality.
  34930. <p>
  34931. The authentication mechanisms supported by default are Hadoop Simple
  34932. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  34933. authentication.
  34934. <p>
  34935. Additional authentication mechanisms can be supported via {@link
  34936. DelegationTokenAuthenticator} implementations.
  34937. <p>
  34938. The default {@link DelegationTokenAuthenticator} is the {@link
  34939. KerberosDelegationTokenAuthenticator} class which supports
  34940. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  34941. the {@link PseudoDelegationTokenAuthenticator} class.
  34942. <p>
  34943. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  34944. </doc>
  34945. </class>
  34946. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  34947. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  34948. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  34949. abstract="false"
  34950. static="true" final="false" visibility="public"
  34951. deprecated="not deprecated">
  34952. <constructor name="Token"
  34953. static="false" final="false" visibility="public"
  34954. deprecated="not deprecated">
  34955. </constructor>
  34956. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  34957. abstract="false" native="false" synchronized="false"
  34958. static="false" final="false" visibility="public"
  34959. deprecated="not deprecated">
  34960. </method>
  34961. <method name="setDelegationToken"
  34962. abstract="false" native="false" synchronized="false"
  34963. static="false" final="false" visibility="public"
  34964. deprecated="not deprecated">
  34965. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  34966. </method>
  34967. <doc>
  34968. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  34969. </doc>
  34970. </class>
  34971. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  34972. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  34973. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  34974. abstract="true"
  34975. static="false" final="false" visibility="public"
  34976. deprecated="not deprecated">
  34977. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  34978. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  34979. static="false" final="false" visibility="public"
  34980. deprecated="not deprecated">
  34981. </constructor>
  34982. <method name="setConnectionConfigurator"
  34983. abstract="false" native="false" synchronized="false"
  34984. static="false" final="false" visibility="public"
  34985. deprecated="not deprecated">
  34986. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  34987. </method>
  34988. <method name="authenticate"
  34989. abstract="false" native="false" synchronized="false"
  34990. static="false" final="false" visibility="public"
  34991. deprecated="not deprecated">
  34992. <param name="url" type="java.net.URL"/>
  34993. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  34994. <exception name="IOException" type="java.io.IOException"/>
  34995. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  34996. </method>
  34997. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  34998. abstract="false" native="false" synchronized="false"
  34999. static="false" final="false" visibility="public"
  35000. deprecated="not deprecated">
  35001. <param name="url" type="java.net.URL"/>
  35002. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35003. <param name="renewer" type="java.lang.String"/>
  35004. <exception name="IOException" type="java.io.IOException"/>
  35005. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35006. <doc>
  35007. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35008. for authentication.
  35009. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35010. supported.
  35011. @param token the authentication token being used for the user where the
  35012. Delegation token will be stored.
  35013. @param renewer the renewer user.
  35014. @throws IOException if an IO error occurred.
  35015. @throws AuthenticationException if an authentication exception occurred.
  35016. @return abstract delegation token identifier.]]>
  35017. </doc>
  35018. </method>
  35019. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35020. abstract="false" native="false" synchronized="false"
  35021. static="false" final="false" visibility="public"
  35022. deprecated="not deprecated">
  35023. <param name="url" type="java.net.URL"/>
  35024. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35025. <param name="renewer" type="java.lang.String"/>
  35026. <param name="doAsUser" type="java.lang.String"/>
  35027. <exception name="IOException" type="java.io.IOException"/>
  35028. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35029. <doc>
  35030. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35031. for authentication.
  35032. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35033. supported.
  35034. @param token the authentication token being used for the user where the
  35035. Delegation token will be stored.
  35036. @param renewer the renewer user.
  35037. @param doAsUser the user to do as, which will be the token owner.
  35038. @throws IOException if an IO error occurred.
  35039. @throws AuthenticationException if an authentication exception occurred.
  35040. @return abstract delegation token identifier.]]>
  35041. </doc>
  35042. </method>
  35043. <method name="renewDelegationToken" return="long"
  35044. abstract="false" native="false" synchronized="false"
  35045. static="false" final="false" visibility="public"
  35046. deprecated="not deprecated">
  35047. <param name="url" type="java.net.URL"/>
  35048. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35049. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35050. <exception name="IOException" type="java.io.IOException"/>
  35051. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35052. <doc>
  35053. <![CDATA[Renews a delegation token from the server end-point using the
  35054. configured <code>Authenticator</code> for authentication.
  35055. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35056. supported.
  35057. @param token the authentication token with the Delegation Token to renew.
  35058. @param dToken abstract delegation token identifier.
  35059. @throws IOException if an IO error occurred.
  35060. @throws AuthenticationException if an authentication exception occurred.
  35061. @return delegation token long value.]]>
  35062. </doc>
  35063. </method>
  35064. <method name="renewDelegationToken" return="long"
  35065. abstract="false" native="false" synchronized="false"
  35066. static="false" final="false" visibility="public"
  35067. deprecated="not deprecated">
  35068. <param name="url" type="java.net.URL"/>
  35069. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35070. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35071. <param name="doAsUser" type="java.lang.String"/>
  35072. <exception name="IOException" type="java.io.IOException"/>
  35073. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35074. <doc>
  35075. <![CDATA[Renews a delegation token from the server end-point using the
  35076. configured <code>Authenticator</code> for authentication.
  35077. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35078. supported.
  35079. @param token the authentication token with the Delegation Token to renew.
  35080. @param doAsUser the user to do as, which will be the token owner.
  35081. @param dToken abstract delegation token identifier.
  35082. @throws IOException if an IO error occurred.
  35083. @throws AuthenticationException if an authentication exception occurred.
  35084. @return delegation token long value.]]>
  35085. </doc>
  35086. </method>
  35087. <method name="cancelDelegationToken"
  35088. abstract="false" native="false" synchronized="false"
  35089. static="false" final="false" visibility="public"
  35090. deprecated="not deprecated">
  35091. <param name="url" type="java.net.URL"/>
  35092. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35093. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35094. <exception name="IOException" type="java.io.IOException"/>
  35095. <doc>
  35096. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35097. being authenticated by the configured <code>Authenticator</code>.
  35098. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35099. are supported.
  35100. @param token the authentication token with the Delegation Token to cancel.
  35101. @param dToken abstract delegation token identifier.
  35102. @throws IOException if an IO error occurred.]]>
  35103. </doc>
  35104. </method>
  35105. <method name="cancelDelegationToken"
  35106. abstract="false" native="false" synchronized="false"
  35107. static="false" final="false" visibility="public"
  35108. deprecated="not deprecated">
  35109. <param name="url" type="java.net.URL"/>
  35110. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35111. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35112. <param name="doAsUser" type="java.lang.String"/>
  35113. <exception name="IOException" type="java.io.IOException"/>
  35114. <doc>
  35115. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35116. being authenticated by the configured <code>Authenticator</code>.
  35117. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35118. are supported.
  35119. @param token the authentication token with the Delegation Token to cancel.
  35120. @param dToken abstract delegation token identifier.
  35121. @param doAsUser the user to do as, which will be the token owner.
  35122. @throws IOException if an IO error occurred.]]>
  35123. </doc>
  35124. </method>
  35125. <field name="OP_PARAM" type="java.lang.String"
  35126. transient="false" volatile="false"
  35127. static="true" final="true" visibility="public"
  35128. deprecated="not deprecated">
  35129. </field>
  35130. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  35131. transient="false" volatile="false"
  35132. static="true" final="true" visibility="public"
  35133. deprecated="not deprecated">
  35134. </field>
  35135. <field name="DELEGATION_PARAM" type="java.lang.String"
  35136. transient="false" volatile="false"
  35137. static="true" final="true" visibility="public"
  35138. deprecated="not deprecated">
  35139. </field>
  35140. <field name="TOKEN_PARAM" type="java.lang.String"
  35141. transient="false" volatile="false"
  35142. static="true" final="true" visibility="public"
  35143. deprecated="not deprecated">
  35144. </field>
  35145. <field name="RENEWER_PARAM" type="java.lang.String"
  35146. transient="false" volatile="false"
  35147. static="true" final="true" visibility="public"
  35148. deprecated="not deprecated">
  35149. </field>
  35150. <field name="SERVICE_PARAM" type="java.lang.String"
  35151. transient="false" volatile="false"
  35152. static="true" final="true" visibility="public"
  35153. deprecated="not deprecated">
  35154. </field>
  35155. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  35156. transient="false" volatile="false"
  35157. static="true" final="true" visibility="public"
  35158. deprecated="not deprecated">
  35159. </field>
  35160. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  35161. transient="false" volatile="false"
  35162. static="true" final="true" visibility="public"
  35163. deprecated="not deprecated">
  35164. </field>
  35165. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  35166. transient="false" volatile="false"
  35167. static="true" final="true" visibility="public"
  35168. deprecated="not deprecated">
  35169. </field>
  35170. <doc>
  35171. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  35172. Delegation Token support.]]>
  35173. </doc>
  35174. </class>
  35175. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  35176. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  35177. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35178. abstract="false"
  35179. static="false" final="false" visibility="public"
  35180. deprecated="not deprecated">
  35181. <constructor name="KerberosDelegationTokenAuthenticator"
  35182. static="false" final="false" visibility="public"
  35183. deprecated="not deprecated">
  35184. </constructor>
  35185. <doc>
  35186. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  35187. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  35188. Token operations.
  35189. <p>
  35190. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  35191. endpoint does not trigger a SPNEGO authentication]]>
  35192. </doc>
  35193. </class>
  35194. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  35195. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  35196. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35197. abstract="false"
  35198. static="false" final="false" visibility="public"
  35199. deprecated="not deprecated">
  35200. <constructor name="PseudoDelegationTokenAuthenticator"
  35201. static="false" final="false" visibility="public"
  35202. deprecated="not deprecated">
  35203. </constructor>
  35204. <doc>
  35205. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  35206. Hadoop's pseudo authentication mechanism that accepts
  35207. the user name specified as a query string parameter and support for Hadoop
  35208. Delegation Token operations.
  35209. <p>
  35210. This mimics the model of Hadoop Simple authentication trusting the
  35211. {@link UserGroupInformation#getCurrentUser()} value.]]>
  35212. </doc>
  35213. </class>
  35214. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  35215. </package>
  35216. <package name="org.apache.hadoop.service">
  35217. <!-- start class org.apache.hadoop.service.AbstractService -->
  35218. <class name="AbstractService" extends="java.lang.Object"
  35219. abstract="true"
  35220. static="false" final="false" visibility="public"
  35221. deprecated="not deprecated">
  35222. <implements name="org.apache.hadoop.service.Service"/>
  35223. <constructor name="AbstractService" type="java.lang.String"
  35224. static="false" final="false" visibility="public"
  35225. deprecated="not deprecated">
  35226. <doc>
  35227. <![CDATA[Construct the service.
  35228. @param name service name]]>
  35229. </doc>
  35230. </constructor>
  35231. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  35232. abstract="false" native="false" synchronized="false"
  35233. static="false" final="true" visibility="public"
  35234. deprecated="not deprecated">
  35235. </method>
  35236. <method name="getFailureCause" return="java.lang.Throwable"
  35237. abstract="false" native="false" synchronized="true"
  35238. static="false" final="true" visibility="public"
  35239. deprecated="not deprecated">
  35240. </method>
  35241. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  35242. abstract="false" native="false" synchronized="true"
  35243. static="false" final="false" visibility="public"
  35244. deprecated="not deprecated">
  35245. </method>
  35246. <method name="setConfig"
  35247. abstract="false" native="false" synchronized="false"
  35248. static="false" final="false" visibility="protected"
  35249. deprecated="not deprecated">
  35250. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35251. <doc>
  35252. <![CDATA[Set the configuration for this service.
  35253. This method is called during {@link #init(Configuration)}
  35254. and should only be needed if for some reason a service implementation
  35255. needs to override that initial setting -for example replacing
  35256. it with a new subclass of {@link Configuration}
  35257. @param conf new configuration.]]>
  35258. </doc>
  35259. </method>
  35260. <method name="init"
  35261. abstract="false" native="false" synchronized="false"
  35262. static="false" final="false" visibility="public"
  35263. deprecated="not deprecated">
  35264. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35265. <doc>
  35266. <![CDATA[{@inheritDoc}
  35267. This invokes {@link #serviceInit}
  35268. @param conf the configuration of the service. This must not be null
  35269. @throws ServiceStateException if the configuration was null,
  35270. the state change not permitted, or something else went wrong]]>
  35271. </doc>
  35272. </method>
  35273. <method name="start"
  35274. abstract="false" native="false" synchronized="false"
  35275. static="false" final="false" visibility="public"
  35276. deprecated="not deprecated">
  35277. <doc>
  35278. <![CDATA[{@inheritDoc}
  35279. @throws ServiceStateException if the current service state does not permit
  35280. this action]]>
  35281. </doc>
  35282. </method>
  35283. <method name="stop"
  35284. abstract="false" native="false" synchronized="false"
  35285. static="false" final="false" visibility="public"
  35286. deprecated="not deprecated">
  35287. <doc>
  35288. <![CDATA[{@inheritDoc}]]>
  35289. </doc>
  35290. </method>
  35291. <method name="close"
  35292. abstract="false" native="false" synchronized="false"
  35293. static="false" final="true" visibility="public"
  35294. deprecated="not deprecated">
  35295. <exception name="IOException" type="java.io.IOException"/>
  35296. <doc>
  35297. <![CDATA[Relay to {@link #stop()}
  35298. @throws IOException raised on errors performing I/O.]]>
  35299. </doc>
  35300. </method>
  35301. <method name="noteFailure"
  35302. abstract="false" native="false" synchronized="false"
  35303. static="false" final="true" visibility="protected"
  35304. deprecated="not deprecated">
  35305. <param name="exception" type="java.lang.Exception"/>
  35306. <doc>
  35307. <![CDATA[Failure handling: record the exception
  35308. that triggered it -if there was not one already.
  35309. Services are free to call this themselves.
  35310. @param exception the exception]]>
  35311. </doc>
  35312. </method>
  35313. <method name="waitForServiceToStop" return="boolean"
  35314. abstract="false" native="false" synchronized="false"
  35315. static="false" final="true" visibility="public"
  35316. deprecated="not deprecated">
  35317. <param name="timeout" type="long"/>
  35318. </method>
  35319. <method name="serviceInit"
  35320. abstract="false" native="false" synchronized="false"
  35321. static="false" final="false" visibility="protected"
  35322. deprecated="not deprecated">
  35323. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35324. <exception name="Exception" type="java.lang.Exception"/>
  35325. <doc>
  35326. <![CDATA[All initialization code needed by a service.
  35327. This method will only ever be called once during the lifecycle of
  35328. a specific service instance.
  35329. Implementations do not need to be synchronized as the logic
  35330. in {@link #init(Configuration)} prevents re-entrancy.
  35331. The base implementation checks to see if the subclass has created
  35332. a new configuration instance, and if so, updates the base class value
  35333. @param conf configuration
  35334. @throws Exception on a failure -these will be caught,
  35335. possibly wrapped, and will trigger a service stop]]>
  35336. </doc>
  35337. </method>
  35338. <method name="serviceStart"
  35339. abstract="false" native="false" synchronized="false"
  35340. static="false" final="false" visibility="protected"
  35341. deprecated="not deprecated">
  35342. <exception name="Exception" type="java.lang.Exception"/>
  35343. <doc>
  35344. <![CDATA[Actions called during the INITED to STARTED transition.
  35345. This method will only ever be called once during the lifecycle of
  35346. a specific service instance.
  35347. Implementations do not need to be synchronized as the logic
  35348. in {@link #start()} prevents re-entrancy.
  35349. @throws Exception if needed -these will be caught,
  35350. wrapped, and trigger a service stop]]>
  35351. </doc>
  35352. </method>
  35353. <method name="serviceStop"
  35354. abstract="false" native="false" synchronized="false"
  35355. static="false" final="false" visibility="protected"
  35356. deprecated="not deprecated">
  35357. <exception name="Exception" type="java.lang.Exception"/>
  35358. <doc>
  35359. <![CDATA[Actions called during the transition to the STOPPED state.
  35360. This method will only ever be called once during the lifecycle of
  35361. a specific service instance.
  35362. Implementations do not need to be synchronized as the logic
  35363. in {@link #stop()} prevents re-entrancy.
  35364. Implementations MUST write this to be robust against failures, including
  35365. checks for null references -and for the first failure to not stop other
  35366. attempts to shut down parts of the service.
  35367. @throws Exception if needed -these will be caught and logged.]]>
  35368. </doc>
  35369. </method>
  35370. <method name="registerServiceListener"
  35371. abstract="false" native="false" synchronized="false"
  35372. static="false" final="false" visibility="public"
  35373. deprecated="not deprecated">
  35374. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35375. </method>
  35376. <method name="unregisterServiceListener"
  35377. abstract="false" native="false" synchronized="false"
  35378. static="false" final="false" visibility="public"
  35379. deprecated="not deprecated">
  35380. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35381. </method>
  35382. <method name="registerGlobalListener"
  35383. abstract="false" native="false" synchronized="false"
  35384. static="true" final="false" visibility="public"
  35385. deprecated="not deprecated">
  35386. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35387. <doc>
  35388. <![CDATA[Register a global listener, which receives notifications
  35389. from the state change events of all services in the JVM
  35390. @param l listener]]>
  35391. </doc>
  35392. </method>
  35393. <method name="unregisterGlobalListener" return="boolean"
  35394. abstract="false" native="false" synchronized="false"
  35395. static="true" final="false" visibility="public"
  35396. deprecated="not deprecated">
  35397. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35398. <doc>
  35399. <![CDATA[unregister a global listener.
  35400. @param l listener to unregister
  35401. @return true if the listener was found (and then deleted)]]>
  35402. </doc>
  35403. </method>
  35404. <method name="getName" return="java.lang.String"
  35405. abstract="false" native="false" synchronized="false"
  35406. static="false" final="false" visibility="public"
  35407. deprecated="not deprecated">
  35408. </method>
  35409. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  35410. abstract="false" native="false" synchronized="false"
  35411. static="false" final="false" visibility="public"
  35412. deprecated="not deprecated">
  35413. </method>
  35414. <method name="getStartTime" return="long"
  35415. abstract="false" native="false" synchronized="false"
  35416. static="false" final="false" visibility="public"
  35417. deprecated="not deprecated">
  35418. </method>
  35419. <method name="getLifecycleHistory" return="java.util.List"
  35420. abstract="false" native="false" synchronized="true"
  35421. static="false" final="false" visibility="public"
  35422. deprecated="not deprecated">
  35423. </method>
  35424. <method name="isInState" return="boolean"
  35425. abstract="false" native="false" synchronized="false"
  35426. static="false" final="true" visibility="public"
  35427. deprecated="not deprecated">
  35428. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  35429. </method>
  35430. <method name="toString" return="java.lang.String"
  35431. abstract="false" native="false" synchronized="false"
  35432. static="false" final="false" visibility="public"
  35433. deprecated="not deprecated">
  35434. </method>
  35435. <method name="putBlocker"
  35436. abstract="false" native="false" synchronized="false"
  35437. static="false" final="false" visibility="protected"
  35438. deprecated="not deprecated">
  35439. <param name="name" type="java.lang.String"/>
  35440. <param name="details" type="java.lang.String"/>
  35441. <doc>
  35442. <![CDATA[Put a blocker to the blocker map -replacing any
  35443. with the same name.
  35444. @param name blocker name
  35445. @param details any specifics on the block. This must be non-null.]]>
  35446. </doc>
  35447. </method>
  35448. <method name="removeBlocker"
  35449. abstract="false" native="false" synchronized="false"
  35450. static="false" final="false" visibility="public"
  35451. deprecated="not deprecated">
  35452. <param name="name" type="java.lang.String"/>
  35453. <doc>
  35454. <![CDATA[Remove a blocker from the blocker map -
  35455. this is a no-op if the blocker is not present
  35456. @param name the name of the blocker]]>
  35457. </doc>
  35458. </method>
  35459. <method name="getBlockers" return="java.util.Map"
  35460. abstract="false" native="false" synchronized="false"
  35461. static="false" final="false" visibility="public"
  35462. deprecated="not deprecated">
  35463. </method>
  35464. <doc>
  35465. <![CDATA[This is the base implementation class for services.]]>
  35466. </doc>
  35467. </class>
  35468. <!-- end class org.apache.hadoop.service.AbstractService -->
  35469. <!-- start class org.apache.hadoop.service.CompositeService -->
  35470. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  35471. abstract="false"
  35472. static="false" final="false" visibility="public"
  35473. deprecated="not deprecated">
  35474. <constructor name="CompositeService" type="java.lang.String"
  35475. static="false" final="false" visibility="public"
  35476. deprecated="not deprecated">
  35477. </constructor>
  35478. <method name="getServices" return="java.util.List"
  35479. abstract="false" native="false" synchronized="false"
  35480. static="false" final="false" visibility="public"
  35481. deprecated="not deprecated">
  35482. <doc>
  35483. <![CDATA[Get a cloned list of services
  35484. @return a list of child services at the time of invocation -
  35485. added services will not be picked up.]]>
  35486. </doc>
  35487. </method>
  35488. <method name="addService"
  35489. abstract="false" native="false" synchronized="false"
  35490. static="false" final="false" visibility="protected"
  35491. deprecated="not deprecated">
  35492. <param name="service" type="org.apache.hadoop.service.Service"/>
  35493. <doc>
  35494. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  35495. {@link CompositeService}
  35496. @param service the {@link Service} to be added]]>
  35497. </doc>
  35498. </method>
  35499. <method name="addIfService" return="boolean"
  35500. abstract="false" native="false" synchronized="false"
  35501. static="false" final="false" visibility="protected"
  35502. deprecated="not deprecated">
  35503. <param name="object" type="java.lang.Object"/>
  35504. <doc>
  35505. <![CDATA[If the passed object is an instance of {@link Service},
  35506. add it to the list of services managed by this {@link CompositeService}
  35507. @param object object.
  35508. @return true if a service is added, false otherwise.]]>
  35509. </doc>
  35510. </method>
  35511. <method name="removeService" return="boolean"
  35512. abstract="false" native="false" synchronized="false"
  35513. static="false" final="false" visibility="protected"
  35514. deprecated="not deprecated">
  35515. <param name="service" type="org.apache.hadoop.service.Service"/>
  35516. </method>
  35517. <method name="serviceInit"
  35518. abstract="false" native="false" synchronized="false"
  35519. static="false" final="false" visibility="protected"
  35520. deprecated="not deprecated">
  35521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35522. <exception name="Exception" type="java.lang.Exception"/>
  35523. </method>
  35524. <method name="serviceStart"
  35525. abstract="false" native="false" synchronized="false"
  35526. static="false" final="false" visibility="protected"
  35527. deprecated="not deprecated">
  35528. <exception name="Exception" type="java.lang.Exception"/>
  35529. </method>
  35530. <method name="serviceStop"
  35531. abstract="false" native="false" synchronized="false"
  35532. static="false" final="false" visibility="protected"
  35533. deprecated="not deprecated">
  35534. <exception name="Exception" type="java.lang.Exception"/>
  35535. </method>
  35536. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  35537. transient="false" volatile="false"
  35538. static="true" final="true" visibility="protected"
  35539. deprecated="not deprecated">
  35540. <doc>
  35541. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  35542. only try to close started services (which assumes
  35543. that the service implementations may not handle the stop() operation
  35544. except when started.
  35545. Irrespective of this policy, if a child service fails during
  35546. its init() or start() operations, it will have stop() called on it.]]>
  35547. </doc>
  35548. </field>
  35549. <doc>
  35550. <![CDATA[Composition of services.]]>
  35551. </doc>
  35552. </class>
  35553. <!-- end class org.apache.hadoop.service.CompositeService -->
  35554. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  35555. <class name="LifecycleEvent" extends="java.lang.Object"
  35556. abstract="false"
  35557. static="false" final="false" visibility="public"
  35558. deprecated="not deprecated">
  35559. <implements name="java.io.Serializable"/>
  35560. <constructor name="LifecycleEvent"
  35561. static="false" final="false" visibility="public"
  35562. deprecated="not deprecated">
  35563. </constructor>
  35564. <field name="time" type="long"
  35565. transient="false" volatile="false"
  35566. static="false" final="false" visibility="public"
  35567. deprecated="not deprecated">
  35568. <doc>
  35569. <![CDATA[Local time in milliseconds when the event occurred]]>
  35570. </doc>
  35571. </field>
  35572. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  35573. transient="false" volatile="false"
  35574. static="false" final="false" visibility="public"
  35575. deprecated="not deprecated">
  35576. <doc>
  35577. <![CDATA[new state]]>
  35578. </doc>
  35579. </field>
  35580. <doc>
  35581. <![CDATA[A serializable lifecycle event: the time a state
  35582. transition occurred, and what state was entered.]]>
  35583. </doc>
  35584. </class>
  35585. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  35586. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  35587. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  35588. abstract="false"
  35589. static="false" final="false" visibility="public"
  35590. deprecated="not deprecated">
  35591. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35592. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  35593. static="false" final="false" visibility="public"
  35594. deprecated="not deprecated">
  35595. <doc>
  35596. <![CDATA[Log events to the given log
  35597. @param log destination for events]]>
  35598. </doc>
  35599. </constructor>
  35600. <constructor name="LoggingStateChangeListener"
  35601. static="false" final="false" visibility="public"
  35602. deprecated="not deprecated">
  35603. <doc>
  35604. <![CDATA[Log events to the static log for this class]]>
  35605. </doc>
  35606. </constructor>
  35607. <method name="stateChanged"
  35608. abstract="false" native="false" synchronized="false"
  35609. static="false" final="false" visibility="public"
  35610. deprecated="not deprecated">
  35611. <param name="service" type="org.apache.hadoop.service.Service"/>
  35612. <doc>
  35613. <![CDATA[Callback for a state change event: log it
  35614. @param service the service that has changed.]]>
  35615. </doc>
  35616. </method>
  35617. <doc>
  35618. <![CDATA[This is a state change listener that logs events at INFO level]]>
  35619. </doc>
  35620. </class>
  35621. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  35622. <!-- start interface org.apache.hadoop.service.Service -->
  35623. <interface name="Service" abstract="true"
  35624. static="false" final="false" visibility="public"
  35625. deprecated="not deprecated">
  35626. <implements name="java.io.Closeable"/>
  35627. <method name="init"
  35628. abstract="true" native="false" synchronized="false"
  35629. static="false" final="false" visibility="public"
  35630. deprecated="not deprecated">
  35631. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  35632. <doc>
  35633. <![CDATA[Initialize the service.
  35634. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  35635. unless the operation failed and an exception was raised, in which case
  35636. {@link #stop()} MUST be invoked and the service enter the state
  35637. {@link STATE#STOPPED}.
  35638. @param config the configuration of the service
  35639. @throws RuntimeException on any failure during the operation]]>
  35640. </doc>
  35641. </method>
  35642. <method name="start"
  35643. abstract="true" native="false" synchronized="false"
  35644. static="false" final="false" visibility="public"
  35645. deprecated="not deprecated">
  35646. <doc>
  35647. <![CDATA[Start the service.
  35648. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  35649. unless the operation failed and an exception was raised, in which case
  35650. {@link #stop()} MUST be invoked and the service enter the state
  35651. {@link STATE#STOPPED}.
  35652. @throws RuntimeException on any failure during the operation]]>
  35653. </doc>
  35654. </method>
  35655. <method name="stop"
  35656. abstract="true" native="false" synchronized="false"
  35657. static="false" final="false" visibility="public"
  35658. deprecated="not deprecated">
  35659. <doc>
  35660. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  35661. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  35662. to stop all parts of the service.
  35663. The implementation must be designed to complete regardless of the service
  35664. state, including the initialized/uninitialized state of all its internal
  35665. fields.
  35666. @throws RuntimeException on any failure during the stop operation]]>
  35667. </doc>
  35668. </method>
  35669. <method name="close"
  35670. abstract="true" native="false" synchronized="false"
  35671. static="false" final="false" visibility="public"
  35672. deprecated="not deprecated">
  35673. <exception name="IOException" type="java.io.IOException"/>
  35674. <doc>
  35675. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  35676. clauses.
  35677. Implementation classes MUST relay this directly to {@link #stop()}
  35678. @throws IOException never
  35679. @throws RuntimeException on any failure during the stop operation]]>
  35680. </doc>
  35681. </method>
  35682. <method name="registerServiceListener"
  35683. abstract="true" native="false" synchronized="false"
  35684. static="false" final="false" visibility="public"
  35685. deprecated="not deprecated">
  35686. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35687. <doc>
  35688. <![CDATA[Register a listener to the service state change events.
  35689. If the supplied listener is already listening to this service,
  35690. this method is a no-op.
  35691. @param listener a new listener]]>
  35692. </doc>
  35693. </method>
  35694. <method name="unregisterServiceListener"
  35695. abstract="true" native="false" synchronized="false"
  35696. static="false" final="false" visibility="public"
  35697. deprecated="not deprecated">
  35698. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35699. <doc>
  35700. <![CDATA[Unregister a previously registered listener of the service state
  35701. change events. No-op if the listener is already unregistered.
  35702. @param listener the listener to unregister.]]>
  35703. </doc>
  35704. </method>
  35705. <method name="getName" return="java.lang.String"
  35706. abstract="true" native="false" synchronized="false"
  35707. static="false" final="false" visibility="public"
  35708. deprecated="not deprecated">
  35709. <doc>
  35710. <![CDATA[Get the name of this service.
  35711. @return the service name]]>
  35712. </doc>
  35713. </method>
  35714. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  35715. abstract="true" native="false" synchronized="false"
  35716. static="false" final="false" visibility="public"
  35717. deprecated="not deprecated">
  35718. <doc>
  35719. <![CDATA[Get the configuration of this service.
  35720. This is normally not a clone and may be manipulated, though there are no
  35721. guarantees as to what the consequences of such actions may be
  35722. @return the current configuration, unless a specific implentation chooses
  35723. otherwise.]]>
  35724. </doc>
  35725. </method>
  35726. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  35727. abstract="true" native="false" synchronized="false"
  35728. static="false" final="false" visibility="public"
  35729. deprecated="not deprecated">
  35730. <doc>
  35731. <![CDATA[Get the current service state
  35732. @return the state of the service]]>
  35733. </doc>
  35734. </method>
  35735. <method name="getStartTime" return="long"
  35736. abstract="true" native="false" synchronized="false"
  35737. static="false" final="false" visibility="public"
  35738. deprecated="not deprecated">
  35739. <doc>
  35740. <![CDATA[Get the service start time
  35741. @return the start time of the service. This will be zero if the service
  35742. has not yet been started.]]>
  35743. </doc>
  35744. </method>
  35745. <method name="isInState" return="boolean"
  35746. abstract="true" native="false" synchronized="false"
  35747. static="false" final="false" visibility="public"
  35748. deprecated="not deprecated">
  35749. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  35750. <doc>
  35751. <![CDATA[Query to see if the service is in a specific state.
  35752. In a multi-threaded system, the state may not hold for very long.
  35753. @param state the expected state
  35754. @return true if, at the time of invocation, the service was in that state.]]>
  35755. </doc>
  35756. </method>
  35757. <method name="getFailureCause" return="java.lang.Throwable"
  35758. abstract="true" native="false" synchronized="false"
  35759. static="false" final="false" visibility="public"
  35760. deprecated="not deprecated">
  35761. <doc>
  35762. <![CDATA[Get the first exception raised during the service failure. If null,
  35763. no exception was logged
  35764. @return the failure logged during a transition to the stopped state]]>
  35765. </doc>
  35766. </method>
  35767. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  35768. abstract="true" native="false" synchronized="false"
  35769. static="false" final="false" visibility="public"
  35770. deprecated="not deprecated">
  35771. <doc>
  35772. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  35773. @return the state or null if there was no failure]]>
  35774. </doc>
  35775. </method>
  35776. <method name="waitForServiceToStop" return="boolean"
  35777. abstract="true" native="false" synchronized="false"
  35778. static="false" final="false" visibility="public"
  35779. deprecated="not deprecated">
  35780. <param name="timeout" type="long"/>
  35781. <doc>
  35782. <![CDATA[Block waiting for the service to stop; uses the termination notification
  35783. object to do so.
  35784. This method will only return after all the service stop actions
  35785. have been executed (to success or failure), or the timeout elapsed
  35786. This method can be called before the service is inited or started; this is
  35787. to eliminate any race condition with the service stopping before
  35788. this event occurs.
  35789. @param timeout timeout in milliseconds. A value of zero means "forever"
  35790. @return true iff the service stopped in the time period]]>
  35791. </doc>
  35792. </method>
  35793. <method name="getLifecycleHistory" return="java.util.List"
  35794. abstract="true" native="false" synchronized="false"
  35795. static="false" final="false" visibility="public"
  35796. deprecated="not deprecated">
  35797. <doc>
  35798. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  35799. @return a possibly empty but never null list of lifecycle events.]]>
  35800. </doc>
  35801. </method>
  35802. <method name="getBlockers" return="java.util.Map"
  35803. abstract="true" native="false" synchronized="false"
  35804. static="false" final="false" visibility="public"
  35805. deprecated="not deprecated">
  35806. <doc>
  35807. <![CDATA[Get the blockers on a service -remote dependencies
  35808. that are stopping the service from being <i>live</i>.
  35809. @return a (snapshotted) map of blocker name-&gt;description values]]>
  35810. </doc>
  35811. </method>
  35812. <doc>
  35813. <![CDATA[Service LifeCycle.]]>
  35814. </doc>
  35815. </interface>
  35816. <!-- end interface org.apache.hadoop.service.Service -->
  35817. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  35818. <class name="ServiceOperations" extends="java.lang.Object"
  35819. abstract="false"
  35820. static="false" final="true" visibility="public"
  35821. deprecated="not deprecated">
  35822. <method name="stop"
  35823. abstract="false" native="false" synchronized="false"
  35824. static="true" final="false" visibility="public"
  35825. deprecated="not deprecated">
  35826. <param name="service" type="org.apache.hadoop.service.Service"/>
  35827. <doc>
  35828. <![CDATA[Stop a service.
  35829. <p>Do nothing if the service is null or not
  35830. in a state in which it can be/needs to be stopped.
  35831. <p>
  35832. The service state is checked <i>before</i> the operation begins.
  35833. This process is <i>not</i> thread safe.
  35834. @param service a service or null]]>
  35835. </doc>
  35836. </method>
  35837. <method name="stopQuietly" return="java.lang.Exception"
  35838. abstract="false" native="false" synchronized="false"
  35839. static="true" final="false" visibility="public"
  35840. deprecated="not deprecated">
  35841. <param name="service" type="org.apache.hadoop.service.Service"/>
  35842. <doc>
  35843. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  35844. logged at warn level. (but not Throwables). This operation is intended to
  35845. be used in cleanup operations
  35846. @param service a service; may be null
  35847. @return any exception that was caught; null if none was.]]>
  35848. </doc>
  35849. </method>
  35850. <method name="stopQuietly" return="java.lang.Exception"
  35851. abstract="false" native="false" synchronized="false"
  35852. static="true" final="false" visibility="public"
  35853. deprecated="not deprecated">
  35854. <param name="log" type="org.apache.commons.logging.Log"/>
  35855. <param name="service" type="org.apache.hadoop.service.Service"/>
  35856. <doc>
  35857. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  35858. logged at warn level. (but not Throwables). This operation is intended to
  35859. be used in cleanup operations
  35860. @param log the log to warn at
  35861. @param service a service; may be null
  35862. @return any exception that was caught; null if none was.
  35863. @see ServiceOperations#stopQuietly(Service)]]>
  35864. </doc>
  35865. </method>
  35866. <method name="stopQuietly" return="java.lang.Exception"
  35867. abstract="false" native="false" synchronized="false"
  35868. static="true" final="false" visibility="public"
  35869. deprecated="not deprecated">
  35870. <param name="log" type="org.slf4j.Logger"/>
  35871. <param name="service" type="org.apache.hadoop.service.Service"/>
  35872. <doc>
  35873. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  35874. logged at warn level. (but not Throwables). This operation is intended to
  35875. be used in cleanup operations
  35876. @param log the log to warn at
  35877. @param service a service; may be null
  35878. @return any exception that was caught; null if none was.
  35879. @see ServiceOperations#stopQuietly(Service)]]>
  35880. </doc>
  35881. </method>
  35882. <doc>
  35883. <![CDATA[This class contains a set of methods to work with services, especially
  35884. to walk them through their lifecycle.]]>
  35885. </doc>
  35886. </class>
  35887. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  35888. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  35889. <interface name="ServiceStateChangeListener" abstract="true"
  35890. static="false" final="false" visibility="public"
  35891. deprecated="not deprecated">
  35892. <method name="stateChanged"
  35893. abstract="true" native="false" synchronized="false"
  35894. static="false" final="false" visibility="public"
  35895. deprecated="not deprecated">
  35896. <param name="service" type="org.apache.hadoop.service.Service"/>
  35897. <doc>
  35898. <![CDATA[Callback to notify of a state change. The service will already
  35899. have changed state before this callback is invoked.
  35900. This operation is invoked on the thread that initiated the state change,
  35901. while the service itself in in a sychronized section.
  35902. <ol>
  35903. <li>Any long-lived operation here will prevent the service state
  35904. change from completing in a timely manner.</li>
  35905. <li>If another thread is somehow invoked from the listener, and
  35906. that thread invokes the methods of the service (including
  35907. subclass-specific methods), there is a risk of a deadlock.</li>
  35908. </ol>
  35909. @param service the service that has changed.]]>
  35910. </doc>
  35911. </method>
  35912. <doc>
  35913. <![CDATA[Interface to notify state changes of a service.]]>
  35914. </doc>
  35915. </interface>
  35916. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  35917. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  35918. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  35919. abstract="false"
  35920. static="false" final="false" visibility="public"
  35921. deprecated="not deprecated">
  35922. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  35923. <constructor name="ServiceStateException" type="java.lang.String"
  35924. static="false" final="false" visibility="public"
  35925. deprecated="not deprecated">
  35926. <doc>
  35927. <![CDATA[Instantiate
  35928. @param message error message]]>
  35929. </doc>
  35930. </constructor>
  35931. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  35932. static="false" final="false" visibility="public"
  35933. deprecated="not deprecated">
  35934. <doc>
  35935. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  35936. then it is used, otherwise the generic
  35937. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  35938. is used.
  35939. @param message exception message
  35940. @param cause optional inner cause]]>
  35941. </doc>
  35942. </constructor>
  35943. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  35944. static="false" final="false" visibility="public"
  35945. deprecated="not deprecated">
  35946. <doc>
  35947. <![CDATA[Instantiate, using the specified exit code as the exit code
  35948. of the exception, irrespetive of any exit code supplied by any inner
  35949. cause.
  35950. @param exitCode exit code to declare
  35951. @param message exception message
  35952. @param cause inner cause]]>
  35953. </doc>
  35954. </constructor>
  35955. <constructor name="ServiceStateException" type="java.lang.Throwable"
  35956. static="false" final="false" visibility="public"
  35957. deprecated="not deprecated">
  35958. </constructor>
  35959. <method name="getExitCode" return="int"
  35960. abstract="false" native="false" synchronized="false"
  35961. static="false" final="false" visibility="public"
  35962. deprecated="not deprecated">
  35963. </method>
  35964. <method name="convert" return="java.lang.RuntimeException"
  35965. abstract="false" native="false" synchronized="false"
  35966. static="true" final="false" visibility="public"
  35967. deprecated="not deprecated">
  35968. <param name="fault" type="java.lang.Throwable"/>
  35969. <doc>
  35970. <![CDATA[Convert any exception into a {@link RuntimeException}.
  35971. All other exception types are wrapped in a new instance of
  35972. {@code ServiceStateException}.
  35973. @param fault exception or throwable
  35974. @return a {@link RuntimeException} to rethrow]]>
  35975. </doc>
  35976. </method>
  35977. <method name="convert" return="java.lang.RuntimeException"
  35978. abstract="false" native="false" synchronized="false"
  35979. static="true" final="false" visibility="public"
  35980. deprecated="not deprecated">
  35981. <param name="text" type="java.lang.String"/>
  35982. <param name="fault" type="java.lang.Throwable"/>
  35983. <doc>
  35984. <![CDATA[Convert any exception into a {@link RuntimeException}.
  35985. If the caught exception is already of that type, it is typecast to a
  35986. {@link RuntimeException} and returned.
  35987. All other exception types are wrapped in a new instance of
  35988. {@code ServiceStateException}.
  35989. @param text text to use if a new exception is created
  35990. @param fault exception or throwable
  35991. @return a {@link RuntimeException} to rethrow]]>
  35992. </doc>
  35993. </method>
  35994. <doc>
  35995. <![CDATA[Exception that can be raised on state change operations, whose
  35996. exit code can be explicitly set, determined from that of any nested
  35997. cause, or a default value of
  35998. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  35999. </doc>
  36000. </class>
  36001. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  36002. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  36003. <class name="ServiceStateModel" extends="java.lang.Object"
  36004. abstract="false"
  36005. static="false" final="false" visibility="public"
  36006. deprecated="not deprecated">
  36007. <constructor name="ServiceStateModel" type="java.lang.String"
  36008. static="false" final="false" visibility="public"
  36009. deprecated="not deprecated">
  36010. <doc>
  36011. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  36012. state.
  36013. @param name input name.]]>
  36014. </doc>
  36015. </constructor>
  36016. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  36017. static="false" final="false" visibility="public"
  36018. deprecated="not deprecated">
  36019. <doc>
  36020. <![CDATA[Create a service state model instance in the chosen state
  36021. @param state the starting state
  36022. @param name input name.]]>
  36023. </doc>
  36024. </constructor>
  36025. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  36026. abstract="false" native="false" synchronized="false"
  36027. static="false" final="false" visibility="public"
  36028. deprecated="not deprecated">
  36029. <doc>
  36030. <![CDATA[Query the service state. This is a non-blocking operation.
  36031. @return the state]]>
  36032. </doc>
  36033. </method>
  36034. <method name="isInState" return="boolean"
  36035. abstract="false" native="false" synchronized="false"
  36036. static="false" final="false" visibility="public"
  36037. deprecated="not deprecated">
  36038. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36039. <doc>
  36040. <![CDATA[Query that the state is in a specific state
  36041. @param proposed proposed new state
  36042. @return the state]]>
  36043. </doc>
  36044. </method>
  36045. <method name="ensureCurrentState"
  36046. abstract="false" native="false" synchronized="false"
  36047. static="false" final="false" visibility="public"
  36048. deprecated="not deprecated">
  36049. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  36050. <doc>
  36051. <![CDATA[Verify that that a service is in a given state.
  36052. @param expectedState the desired state
  36053. @throws ServiceStateException if the service state is different from
  36054. the desired state]]>
  36055. </doc>
  36056. </method>
  36057. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  36058. abstract="false" native="false" synchronized="true"
  36059. static="false" final="false" visibility="public"
  36060. deprecated="not deprecated">
  36061. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36062. <doc>
  36063. <![CDATA[Enter a state -thread safe.
  36064. @param proposed proposed new state
  36065. @return the original state
  36066. @throws ServiceStateException if the transition is not permitted]]>
  36067. </doc>
  36068. </method>
  36069. <method name="checkStateTransition"
  36070. abstract="false" native="false" synchronized="false"
  36071. static="true" final="false" visibility="public"
  36072. deprecated="not deprecated">
  36073. <param name="name" type="java.lang.String"/>
  36074. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  36075. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36076. <doc>
  36077. <![CDATA[Check that a state tansition is valid and
  36078. throw an exception if not
  36079. @param name name of the service (can be null)
  36080. @param state current state
  36081. @param proposed proposed new state]]>
  36082. </doc>
  36083. </method>
  36084. <method name="isValidStateTransition" return="boolean"
  36085. abstract="false" native="false" synchronized="false"
  36086. static="true" final="false" visibility="public"
  36087. deprecated="not deprecated">
  36088. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  36089. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36090. <doc>
  36091. <![CDATA[Is a state transition valid?
  36092. There are no checks for current==proposed
  36093. as that is considered a non-transition.
  36094. using an array kills off all branch misprediction costs, at the expense
  36095. of cache line misses.
  36096. @param current current state
  36097. @param proposed proposed new state
  36098. @return true if the transition to a new state is valid]]>
  36099. </doc>
  36100. </method>
  36101. <method name="toString" return="java.lang.String"
  36102. abstract="false" native="false" synchronized="false"
  36103. static="false" final="false" visibility="public"
  36104. deprecated="not deprecated">
  36105. <doc>
  36106. <![CDATA[return the state text as the toString() value
  36107. @return the current state's description]]>
  36108. </doc>
  36109. </method>
  36110. <doc>
  36111. <![CDATA[Implements the service state model.]]>
  36112. </doc>
  36113. </class>
  36114. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  36115. </package>
  36116. <package name="org.apache.hadoop.service.launcher">
  36117. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  36118. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  36119. abstract="true"
  36120. static="false" final="false" visibility="public"
  36121. deprecated="not deprecated">
  36122. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  36123. <constructor name="AbstractLaunchableService" type="java.lang.String"
  36124. static="false" final="false" visibility="protected"
  36125. deprecated="not deprecated">
  36126. <doc>
  36127. <![CDATA[Construct an instance with the given name.
  36128. @param name input name.]]>
  36129. </doc>
  36130. </constructor>
  36131. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  36132. abstract="false" native="false" synchronized="false"
  36133. static="false" final="false" visibility="public"
  36134. deprecated="not deprecated">
  36135. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36136. <param name="args" type="java.util.List"/>
  36137. <exception name="Exception" type="java.lang.Exception"/>
  36138. <doc>
  36139. <![CDATA[{@inheritDoc}
  36140. <p>
  36141. The base implementation logs all arguments at the debug level,
  36142. then returns the passed in config unchanged.]]>
  36143. </doc>
  36144. </method>
  36145. <method name="execute" return="int"
  36146. abstract="false" native="false" synchronized="false"
  36147. static="false" final="false" visibility="public"
  36148. deprecated="not deprecated">
  36149. <exception name="Exception" type="java.lang.Exception"/>
  36150. <doc>
  36151. <![CDATA[{@inheritDoc}
  36152. <p>
  36153. The action is to signal success by returning the exit code 0.]]>
  36154. </doc>
  36155. </method>
  36156. <doc>
  36157. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  36158. of the {@link LaunchableService} methods.]]>
  36159. </doc>
  36160. </class>
  36161. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  36162. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  36163. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  36164. abstract="false"
  36165. static="false" final="false" visibility="public"
  36166. deprecated="not deprecated">
  36167. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  36168. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  36169. static="false" final="false" visibility="public"
  36170. deprecated="not deprecated">
  36171. <doc>
  36172. <![CDATA[Create an instance delegating to the supplied handler if
  36173. the exception is considered "simple".
  36174. @param delegate a delegate exception handler.]]>
  36175. </doc>
  36176. </constructor>
  36177. <constructor name="HadoopUncaughtExceptionHandler"
  36178. static="false" final="false" visibility="public"
  36179. deprecated="not deprecated">
  36180. <doc>
  36181. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  36182. </doc>
  36183. </constructor>
  36184. <method name="uncaughtException"
  36185. abstract="false" native="false" synchronized="false"
  36186. static="false" final="false" visibility="public"
  36187. deprecated="not deprecated">
  36188. <param name="thread" type="java.lang.Thread"/>
  36189. <param name="exception" type="java.lang.Throwable"/>
  36190. <doc>
  36191. <![CDATA[Uncaught exception handler.
  36192. If an error is raised: shutdown
  36193. The state of the system is unknown at this point -attempting
  36194. a clean shutdown is dangerous. Instead: exit
  36195. @param thread thread that failed
  36196. @param exception the raised exception]]>
  36197. </doc>
  36198. </method>
  36199. <doc>
  36200. <![CDATA[This class is intended to be installed by calling
  36201. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  36202. in the main entry point.
  36203. The base class will always attempt to shut down the process if an Error
  36204. was raised; the behavior on a standard Exception, raised outside
  36205. process shutdown, is simply to log it.
  36206. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  36207. </doc>
  36208. </class>
  36209. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  36210. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  36211. <interface name="LaunchableService" abstract="true"
  36212. static="false" final="false" visibility="public"
  36213. deprecated="not deprecated">
  36214. <implements name="org.apache.hadoop.service.Service"/>
  36215. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  36216. abstract="true" native="false" synchronized="false"
  36217. static="false" final="false" visibility="public"
  36218. deprecated="not deprecated">
  36219. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36220. <param name="args" type="java.util.List"/>
  36221. <exception name="Exception" type="java.lang.Exception"/>
  36222. <doc>
  36223. <![CDATA[Propagate the command line arguments.
  36224. <p>
  36225. This method is called before {@link #init(Configuration)};
  36226. Any non-null configuration that is returned from this operation
  36227. becomes the one that is passed on to that {@link #init(Configuration)}
  36228. operation.
  36229. <p>
  36230. This permits implementations to change the configuration before
  36231. the init operation. As the ServiceLauncher only creates
  36232. an instance of the base {@link Configuration} class, it is
  36233. recommended to instantiate any subclass (such as YarnConfiguration)
  36234. that injects new resources.
  36235. <p>
  36236. @param config the initial configuration build up by the
  36237. service launcher.
  36238. @param args list of arguments passed to the command line
  36239. after any launcher-specific commands have been stripped.
  36240. @return the configuration to init the service with.
  36241. Recommended: pass down the config parameter with any changes
  36242. @throws Exception any problem]]>
  36243. </doc>
  36244. </method>
  36245. <method name="execute" return="int"
  36246. abstract="true" native="false" synchronized="false"
  36247. static="false" final="false" visibility="public"
  36248. deprecated="not deprecated">
  36249. <exception name="Exception" type="java.lang.Exception"/>
  36250. <doc>
  36251. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  36252. <p>
  36253. The return value becomes the exit code of the launched process.
  36254. <p>
  36255. If an exception is raised, the policy is:
  36256. <ol>
  36257. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  36258. the exception is passed up unmodified.
  36259. </li>
  36260. <li>Any exception which implements
  36261. {@link org.apache.hadoop.util.ExitCodeProvider}:
  36262. A new {@link ServiceLaunchException} is created with the exit code
  36263. and message of the thrown exception; the thrown exception becomes the
  36264. cause.</li>
  36265. <li>Any other exception: a new {@link ServiceLaunchException} is created
  36266. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  36267. the message of the original exception (which becomes the cause).</li>
  36268. </ol>
  36269. @return the exit code
  36270. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  36271. up as the exit code and error text.
  36272. @throws Exception any exception to report. If it provides an exit code
  36273. this is used in a wrapping exception.]]>
  36274. </doc>
  36275. </method>
  36276. <doc>
  36277. <![CDATA[An interface which services can implement to have their
  36278. execution managed by the ServiceLauncher.
  36279. <p>
  36280. The command line options will be passed down before the
  36281. {@link Service#init(Configuration)} operation is invoked via an
  36282. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  36283. After the service has been successfully started via {@link Service#start()}
  36284. the {@link LaunchableService#execute()} method is called to execute the
  36285. service. When this method returns, the service launcher will exit, using
  36286. the return code from the method as its exit option.]]>
  36287. </doc>
  36288. </interface>
  36289. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  36290. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  36291. <interface name="LauncherExitCodes" abstract="true"
  36292. static="false" final="false" visibility="public"
  36293. deprecated="not deprecated">
  36294. <field name="EXIT_SUCCESS" type="int"
  36295. transient="false" volatile="false"
  36296. static="true" final="true" visibility="public"
  36297. deprecated="not deprecated">
  36298. <doc>
  36299. <![CDATA[Success: {@value}.]]>
  36300. </doc>
  36301. </field>
  36302. <field name="EXIT_FAIL" type="int"
  36303. transient="false" volatile="false"
  36304. static="true" final="true" visibility="public"
  36305. deprecated="not deprecated">
  36306. <doc>
  36307. <![CDATA[Generic "false/fail" response: {@value}.
  36308. The operation worked but the result was not "true" from the viewpoint
  36309. of the executed code.]]>
  36310. </doc>
  36311. </field>
  36312. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  36313. transient="false" volatile="false"
  36314. static="true" final="true" visibility="public"
  36315. deprecated="not deprecated">
  36316. <doc>
  36317. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  36318. </doc>
  36319. </field>
  36320. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  36321. transient="false" volatile="false"
  36322. static="true" final="true" visibility="public"
  36323. deprecated="not deprecated">
  36324. <doc>
  36325. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  36326. </doc>
  36327. </field>
  36328. <field name="EXIT_INTERRUPTED" type="int"
  36329. transient="false" volatile="false"
  36330. static="true" final="true" visibility="public"
  36331. deprecated="not deprecated">
  36332. <doc>
  36333. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  36334. </doc>
  36335. </field>
  36336. <field name="EXIT_OTHER_FAILURE" type="int"
  36337. transient="false" volatile="false"
  36338. static="true" final="true" visibility="public"
  36339. deprecated="not deprecated">
  36340. <doc>
  36341. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  36342. </doc>
  36343. </field>
  36344. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  36345. transient="false" volatile="false"
  36346. static="true" final="true" visibility="public"
  36347. deprecated="not deprecated">
  36348. <doc>
  36349. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  36350. when it is otherwise invalid.
  36351. <p>
  36352. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  36353. </doc>
  36354. </field>
  36355. <field name="EXIT_UNAUTHORIZED" type="int"
  36356. transient="false" volatile="false"
  36357. static="true" final="true" visibility="public"
  36358. deprecated="not deprecated">
  36359. <doc>
  36360. <![CDATA[The request requires user authentication: {@value}.
  36361. <p>
  36362. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  36363. </doc>
  36364. </field>
  36365. <field name="EXIT_USAGE" type="int"
  36366. transient="false" volatile="false"
  36367. static="true" final="true" visibility="public"
  36368. deprecated="not deprecated">
  36369. <doc>
  36370. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  36371. </doc>
  36372. </field>
  36373. <field name="EXIT_FORBIDDEN" type="int"
  36374. transient="false" volatile="false"
  36375. static="true" final="true" visibility="public"
  36376. deprecated="not deprecated">
  36377. <doc>
  36378. <![CDATA[Forbidden action: {@value}.
  36379. <p>
  36380. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  36381. </doc>
  36382. </field>
  36383. <field name="EXIT_NOT_FOUND" type="int"
  36384. transient="false" volatile="false"
  36385. static="true" final="true" visibility="public"
  36386. deprecated="not deprecated">
  36387. <doc>
  36388. <![CDATA[Something was not found: {@value}.
  36389. <p>
  36390. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  36391. </doc>
  36392. </field>
  36393. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  36394. transient="false" volatile="false"
  36395. static="true" final="true" visibility="public"
  36396. deprecated="not deprecated">
  36397. <doc>
  36398. <![CDATA[The operation is not allowed: {@value}.
  36399. <p>
  36400. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  36401. </doc>
  36402. </field>
  36403. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  36404. transient="false" volatile="false"
  36405. static="true" final="true" visibility="public"
  36406. deprecated="not deprecated">
  36407. <doc>
  36408. <![CDATA[The command is somehow not acceptable: {@value}.
  36409. <p>
  36410. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  36411. </doc>
  36412. </field>
  36413. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  36414. transient="false" volatile="false"
  36415. static="true" final="true" visibility="public"
  36416. deprecated="not deprecated">
  36417. <doc>
  36418. <![CDATA[Exit code on connectivity problems: {@value}.
  36419. <p>
  36420. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  36421. </doc>
  36422. </field>
  36423. <field name="EXIT_BAD_CONFIGURATION" type="int"
  36424. transient="false" volatile="false"
  36425. static="true" final="true" visibility="public"
  36426. deprecated="not deprecated">
  36427. <doc>
  36428. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  36429. <p>
  36430. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  36431. </doc>
  36432. </field>
  36433. <field name="EXIT_EXCEPTION_THROWN" type="int"
  36434. transient="false" volatile="false"
  36435. static="true" final="true" visibility="public"
  36436. deprecated="not deprecated">
  36437. <doc>
  36438. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  36439. <p>
  36440. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  36441. </doc>
  36442. </field>
  36443. <field name="EXIT_UNIMPLEMENTED" type="int"
  36444. transient="false" volatile="false"
  36445. static="true" final="true" visibility="public"
  36446. deprecated="not deprecated">
  36447. <doc>
  36448. <![CDATA[Unimplemented feature: {@value}.
  36449. <p>
  36450. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  36451. </doc>
  36452. </field>
  36453. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  36454. transient="false" volatile="false"
  36455. static="true" final="true" visibility="public"
  36456. deprecated="not deprecated">
  36457. <doc>
  36458. <![CDATA[Service Unavailable; it may be available later: {@value}.
  36459. <p>
  36460. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  36461. </doc>
  36462. </field>
  36463. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  36464. transient="false" volatile="false"
  36465. static="true" final="true" visibility="public"
  36466. deprecated="not deprecated">
  36467. <doc>
  36468. <![CDATA[The application does not support, or refuses to support this
  36469. version: {@value}.
  36470. <p>
  36471. If raised, this is expected to be raised server-side and likely due
  36472. to client/server version incompatibilities.
  36473. <p>
  36474. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  36475. </doc>
  36476. </field>
  36477. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  36478. transient="false" volatile="false"
  36479. static="true" final="true" visibility="public"
  36480. deprecated="not deprecated">
  36481. <doc>
  36482. <![CDATA[The service instance could not be created: {@value}.]]>
  36483. </doc>
  36484. </field>
  36485. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  36486. transient="false" volatile="false"
  36487. static="true" final="true" visibility="public"
  36488. deprecated="not deprecated">
  36489. <doc>
  36490. <![CDATA[The service instance could not be created: {@value}.]]>
  36491. </doc>
  36492. </field>
  36493. <doc>
  36494. <![CDATA[Common Exit codes.
  36495. <p>
  36496. Codes with a YARN prefix are YARN-related.
  36497. <p>
  36498. Many of the exit codes are designed to resemble HTTP error codes,
  36499. squashed into a single byte. e.g 44 , "not found" is the equivalent
  36500. of 404. The various 2XX HTTP error codes aren't followed;
  36501. the Unix standard of "0" for success is used.
  36502. <pre>
  36503. 0-10: general command issues
  36504. 30-39: equivalent to the 3XX responses, where those responses are
  36505. considered errors by the application.
  36506. 40-49: client-side/CLI/config problems
  36507. 50-59: service-side problems.
  36508. 60+ : application specific error codes
  36509. </pre>]]>
  36510. </doc>
  36511. </interface>
  36512. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  36513. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  36514. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  36515. abstract="false"
  36516. static="false" final="false" visibility="public"
  36517. deprecated="not deprecated">
  36518. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  36519. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  36520. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  36521. static="false" final="false" visibility="public"
  36522. deprecated="not deprecated">
  36523. <doc>
  36524. <![CDATA[Create an exception with the specific exit code.
  36525. @param exitCode exit code
  36526. @param cause cause of the exception]]>
  36527. </doc>
  36528. </constructor>
  36529. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  36530. static="false" final="false" visibility="public"
  36531. deprecated="not deprecated">
  36532. <doc>
  36533. <![CDATA[Create an exception with the specific exit code and text.
  36534. @param exitCode exit code
  36535. @param message message to use in exception]]>
  36536. </doc>
  36537. </constructor>
  36538. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  36539. static="false" final="false" visibility="public"
  36540. deprecated="not deprecated">
  36541. <doc>
  36542. <![CDATA[Create a formatted exception.
  36543. <p>
  36544. This uses {@link String#format(String, Object...)}
  36545. to build the formatted exception in the ENGLISH locale.
  36546. <p>
  36547. If the last argument is a throwable, it becomes the cause of the exception.
  36548. It will also be used as a parameter for the format.
  36549. @param exitCode exit code
  36550. @param format format for message to use in exception
  36551. @param args list of arguments]]>
  36552. </doc>
  36553. </constructor>
  36554. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable, java.lang.String, java.lang.Object[]"
  36555. static="false" final="false" visibility="public"
  36556. deprecated="not deprecated">
  36557. <doc>
  36558. <![CDATA[Create a formatted exception.
  36559. <p>
  36560. This uses {@link String#format(String, Object...)}
  36561. to build the formatted exception in the ENGLISH locale.
  36562. @param exitCode exit code
  36563. @param cause inner cause
  36564. @param format format for message to use in exception
  36565. @param args list of arguments]]>
  36566. </doc>
  36567. </constructor>
  36568. <doc>
  36569. <![CDATA[A service launch exception that includes an exit code.
  36570. <p>
  36571. When caught by the ServiceLauncher, it will convert that
  36572. into a process exit code.
  36573. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  36574. generates formatted exceptions.]]>
  36575. </doc>
  36576. </class>
  36577. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  36578. </package>
  36579. <package name="org.apache.hadoop.tools">
  36580. </package>
  36581. <package name="org.apache.hadoop.tools.protocolPB">
  36582. </package>
  36583. <package name="org.apache.hadoop.tracing">
  36584. </package>
  36585. <package name="org.apache.hadoop.util">
  36586. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  36587. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  36588. abstract="false"
  36589. static="false" final="false" visibility="public"
  36590. deprecated="not deprecated">
  36591. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  36592. static="false" final="false" visibility="public"
  36593. deprecated="not deprecated">
  36594. </constructor>
  36595. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  36596. static="false" final="false" visibility="public"
  36597. deprecated="not deprecated">
  36598. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  36599. </constructor>
  36600. <method name="getResource" return="java.net.URL"
  36601. abstract="false" native="false" synchronized="false"
  36602. static="false" final="false" visibility="public"
  36603. deprecated="not deprecated">
  36604. <param name="name" type="java.lang.String"/>
  36605. </method>
  36606. <method name="loadClass" return="java.lang.Class"
  36607. abstract="false" native="false" synchronized="false"
  36608. static="false" final="false" visibility="public"
  36609. deprecated="not deprecated">
  36610. <param name="name" type="java.lang.String"/>
  36611. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  36612. </method>
  36613. <method name="loadClass" return="java.lang.Class"
  36614. abstract="false" native="false" synchronized="true"
  36615. static="false" final="false" visibility="protected"
  36616. deprecated="not deprecated">
  36617. <param name="name" type="java.lang.String"/>
  36618. <param name="resolve" type="boolean"/>
  36619. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  36620. </method>
  36621. <method name="isSystemClass" return="boolean"
  36622. abstract="false" native="false" synchronized="false"
  36623. static="true" final="false" visibility="public"
  36624. deprecated="not deprecated">
  36625. <param name="name" type="java.lang.String"/>
  36626. <param name="systemClasses" type="java.util.List"/>
  36627. <doc>
  36628. <![CDATA[Checks if a class should be included as a system class.
  36629. A class is a system class if and only if it matches one of the positive
  36630. patterns and none of the negative ones.
  36631. @param name the class name to check
  36632. @param systemClasses a list of system class configurations.
  36633. @return true if the class is a system class]]>
  36634. </doc>
  36635. </method>
  36636. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  36637. transient="false" volatile="false"
  36638. static="true" final="true" visibility="public"
  36639. deprecated="not deprecated">
  36640. <doc>
  36641. <![CDATA[Default value of the system classes if the user did not override them.
  36642. JDK classes, hadoop classes and resources, and some select third-party
  36643. classes are considered system classes, and are not loaded by the
  36644. application classloader.]]>
  36645. </doc>
  36646. </field>
  36647. <doc>
  36648. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  36649. application JARs are loaded in preference to the parent loader.]]>
  36650. </doc>
  36651. </class>
  36652. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  36653. <!-- start class org.apache.hadoop.util.DurationInfo -->
  36654. <class name="DurationInfo" extends="org.apache.hadoop.util.OperationDuration"
  36655. abstract="false"
  36656. static="false" final="false" visibility="public"
  36657. deprecated="not deprecated">
  36658. <implements name="java.lang.AutoCloseable"/>
  36659. <constructor name="DurationInfo" type="org.slf4j.Logger, java.lang.String, java.lang.Object[]"
  36660. static="false" final="false" visibility="public"
  36661. deprecated="not deprecated">
  36662. <doc>
  36663. <![CDATA[Create the duration text from a {@code String.format()} code call;
  36664. log output at info level.
  36665. @param log log to write to
  36666. @param format format string
  36667. @param args list of arguments]]>
  36668. </doc>
  36669. </constructor>
  36670. <constructor name="DurationInfo" type="org.slf4j.Logger, boolean, java.lang.String, java.lang.Object[]"
  36671. static="false" final="false" visibility="public"
  36672. deprecated="not deprecated">
  36673. <doc>
  36674. <![CDATA[Create the duration text from a {@code String.format()} code call
  36675. and log either at info or debug.
  36676. @param log log to write to
  36677. @param logAtInfo should the log be at info, rather than debug
  36678. @param format format string
  36679. @param args list of arguments]]>
  36680. </doc>
  36681. </constructor>
  36682. <method name="toString" return="java.lang.String"
  36683. abstract="false" native="false" synchronized="false"
  36684. static="false" final="false" visibility="public"
  36685. deprecated="not deprecated">
  36686. </method>
  36687. <method name="close"
  36688. abstract="false" native="false" synchronized="false"
  36689. static="false" final="false" visibility="public"
  36690. deprecated="not deprecated">
  36691. </method>
  36692. <doc>
  36693. <![CDATA[A duration with logging of final state at info or debug
  36694. in the {@code close()} call.
  36695. This allows it to be used in a try-with-resources clause, and have the
  36696. duration automatically logged.]]>
  36697. </doc>
  36698. </class>
  36699. <!-- end class org.apache.hadoop.util.DurationInfo -->
  36700. <!-- start interface org.apache.hadoop.util.IPList -->
  36701. <interface name="IPList" abstract="true"
  36702. static="false" final="false" visibility="public"
  36703. deprecated="not deprecated">
  36704. <method name="isIn" return="boolean"
  36705. abstract="true" native="false" synchronized="false"
  36706. static="false" final="false" visibility="public"
  36707. deprecated="not deprecated">
  36708. <param name="ipAddress" type="java.lang.String"/>
  36709. <doc>
  36710. <![CDATA[returns true if the ipAddress is in the IPList.
  36711. @param ipAddress ipAddress.
  36712. @return boolean value indicating whether the ipAddress is in the IPList]]>
  36713. </doc>
  36714. </method>
  36715. </interface>
  36716. <!-- end interface org.apache.hadoop.util.IPList -->
  36717. <!-- start class org.apache.hadoop.util.OperationDuration -->
  36718. <class name="OperationDuration" extends="java.lang.Object"
  36719. abstract="false"
  36720. static="false" final="false" visibility="public"
  36721. deprecated="not deprecated">
  36722. <constructor name="OperationDuration"
  36723. static="false" final="false" visibility="public"
  36724. deprecated="not deprecated">
  36725. <doc>
  36726. <![CDATA[Instantiate.
  36727. The start time and finished time are both set
  36728. to the current clock time.]]>
  36729. </doc>
  36730. </constructor>
  36731. <method name="time" return="long"
  36732. abstract="false" native="false" synchronized="false"
  36733. static="false" final="false" visibility="protected"
  36734. deprecated="not deprecated">
  36735. <doc>
  36736. <![CDATA[Evaluate the system time.
  36737. @return the current clock time.]]>
  36738. </doc>
  36739. </method>
  36740. <method name="finished"
  36741. abstract="false" native="false" synchronized="false"
  36742. static="false" final="false" visibility="public"
  36743. deprecated="not deprecated">
  36744. <doc>
  36745. <![CDATA[Update the finished time with the current system time.]]>
  36746. </doc>
  36747. </method>
  36748. <method name="getDurationString" return="java.lang.String"
  36749. abstract="false" native="false" synchronized="false"
  36750. static="false" final="false" visibility="public"
  36751. deprecated="not deprecated">
  36752. <doc>
  36753. <![CDATA[Return the duration as {@link #humanTime(long)}.
  36754. @return a printable duration.]]>
  36755. </doc>
  36756. </method>
  36757. <method name="humanTime" return="java.lang.String"
  36758. abstract="false" native="false" synchronized="false"
  36759. static="true" final="false" visibility="public"
  36760. deprecated="not deprecated">
  36761. <param name="time" type="long"/>
  36762. <doc>
  36763. <![CDATA[Convert to a human time of minutes:seconds.millis.
  36764. @param time time to humanize.
  36765. @return a printable value.]]>
  36766. </doc>
  36767. </method>
  36768. <method name="toString" return="java.lang.String"
  36769. abstract="false" native="false" synchronized="false"
  36770. static="false" final="false" visibility="public"
  36771. deprecated="not deprecated">
  36772. <doc>
  36773. <![CDATA[Return the duration as {@link #humanTime(long)}.
  36774. @return a printable duration.]]>
  36775. </doc>
  36776. </method>
  36777. <method name="value" return="long"
  36778. abstract="false" native="false" synchronized="false"
  36779. static="false" final="false" visibility="public"
  36780. deprecated="not deprecated">
  36781. <doc>
  36782. <![CDATA[Get the duration in milliseconds.
  36783. <p>
  36784. This will be 0 until a call
  36785. to {@link #finished()} has been made.
  36786. </p>
  36787. @return the currently recorded duration.]]>
  36788. </doc>
  36789. </method>
  36790. <method name="asDuration" return="java.time.Duration"
  36791. abstract="false" native="false" synchronized="false"
  36792. static="false" final="false" visibility="public"
  36793. deprecated="not deprecated">
  36794. <doc>
  36795. <![CDATA[Get the duration of an operation as a java Duration
  36796. instance.
  36797. @return a duration.]]>
  36798. </doc>
  36799. </method>
  36800. <doc>
  36801. <![CDATA[Little duration counter.]]>
  36802. </doc>
  36803. </class>
  36804. <!-- end class org.apache.hadoop.util.OperationDuration -->
  36805. <!-- start interface org.apache.hadoop.util.Progressable -->
  36806. <interface name="Progressable" abstract="true"
  36807. static="false" final="false" visibility="public"
  36808. deprecated="not deprecated">
  36809. <method name="progress"
  36810. abstract="true" native="false" synchronized="false"
  36811. static="false" final="false" visibility="public"
  36812. deprecated="not deprecated">
  36813. <doc>
  36814. <![CDATA[Report progress to the Hadoop framework.]]>
  36815. </doc>
  36816. </method>
  36817. <doc>
  36818. <![CDATA[A facility for reporting progress.
  36819. <p>Clients and/or applications can use the provided <code>Progressable</code>
  36820. to explicitly report progress to the Hadoop framework. This is especially
  36821. important for operations which take significant amount of time since,
  36822. in-lieu of the reported progress, the framework has to assume that an error
  36823. has occurred and time-out the operation.</p>]]>
  36824. </doc>
  36825. </interface>
  36826. <!-- end interface org.apache.hadoop.util.Progressable -->
  36827. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  36828. <class name="PureJavaCrc32" extends="java.lang.Object"
  36829. abstract="false"
  36830. static="false" final="false" visibility="public"
  36831. deprecated="not deprecated">
  36832. <implements name="java.util.zip.Checksum"/>
  36833. <constructor name="PureJavaCrc32"
  36834. static="false" final="false" visibility="public"
  36835. deprecated="not deprecated">
  36836. <doc>
  36837. <![CDATA[Create a new PureJavaCrc32 object.]]>
  36838. </doc>
  36839. </constructor>
  36840. <method name="getValue" return="long"
  36841. abstract="false" native="false" synchronized="false"
  36842. static="false" final="false" visibility="public"
  36843. deprecated="not deprecated">
  36844. </method>
  36845. <method name="reset"
  36846. abstract="false" native="false" synchronized="false"
  36847. static="false" final="false" visibility="public"
  36848. deprecated="not deprecated">
  36849. </method>
  36850. <method name="update"
  36851. abstract="false" native="false" synchronized="false"
  36852. static="false" final="false" visibility="public"
  36853. deprecated="not deprecated">
  36854. <param name="b" type="byte[]"/>
  36855. <param name="offset" type="int"/>
  36856. <param name="len" type="int"/>
  36857. </method>
  36858. <method name="update"
  36859. abstract="false" native="false" synchronized="false"
  36860. static="false" final="true" visibility="public"
  36861. deprecated="not deprecated">
  36862. <param name="b" type="int"/>
  36863. </method>
  36864. <doc>
  36865. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  36866. the same polynomial as the built-in native CRC32.
  36867. This is to avoid the JNI overhead for certain uses of Checksumming
  36868. where many small pieces of data are checksummed in succession.
  36869. The current version is ~10x to 1.8x as fast as Sun's native
  36870. java.util.zip.CRC32 in Java 1.6
  36871. @see java.util.zip.CRC32]]>
  36872. </doc>
  36873. </class>
  36874. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  36875. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  36876. <class name="PureJavaCrc32C" extends="java.lang.Object"
  36877. abstract="false"
  36878. static="false" final="false" visibility="public"
  36879. deprecated="not deprecated">
  36880. <implements name="java.util.zip.Checksum"/>
  36881. <constructor name="PureJavaCrc32C"
  36882. static="false" final="false" visibility="public"
  36883. deprecated="not deprecated">
  36884. <doc>
  36885. <![CDATA[Create a new PureJavaCrc32 object.]]>
  36886. </doc>
  36887. </constructor>
  36888. <method name="getValue" return="long"
  36889. abstract="false" native="false" synchronized="false"
  36890. static="false" final="false" visibility="public"
  36891. deprecated="not deprecated">
  36892. </method>
  36893. <method name="reset"
  36894. abstract="false" native="false" synchronized="false"
  36895. static="false" final="false" visibility="public"
  36896. deprecated="not deprecated">
  36897. </method>
  36898. <method name="update"
  36899. abstract="false" native="false" synchronized="false"
  36900. static="false" final="false" visibility="public"
  36901. deprecated="not deprecated">
  36902. <param name="b" type="byte[]"/>
  36903. <param name="off" type="int"/>
  36904. <param name="len" type="int"/>
  36905. </method>
  36906. <method name="update"
  36907. abstract="false" native="false" synchronized="false"
  36908. static="false" final="true" visibility="public"
  36909. deprecated="not deprecated">
  36910. <param name="b" type="int"/>
  36911. </method>
  36912. <doc>
  36913. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  36914. the CRC32-C polynomial, the same polynomial used by iSCSI
  36915. and implemented on many Intel chipsets supporting SSE4.2.]]>
  36916. </doc>
  36917. </class>
  36918. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  36919. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  36920. <class name="ReflectionUtils" extends="java.lang.Object"
  36921. abstract="false"
  36922. static="false" final="false" visibility="public"
  36923. deprecated="not deprecated">
  36924. <constructor name="ReflectionUtils"
  36925. static="false" final="false" visibility="public"
  36926. deprecated="not deprecated">
  36927. </constructor>
  36928. <method name="setConf"
  36929. abstract="false" native="false" synchronized="false"
  36930. static="true" final="false" visibility="public"
  36931. deprecated="not deprecated">
  36932. <param name="theObject" type="java.lang.Object"/>
  36933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36934. <doc>
  36935. <![CDATA[Check and set 'configuration' if necessary.
  36936. @param theObject object for which to set configuration
  36937. @param conf Configuration]]>
  36938. </doc>
  36939. </method>
  36940. <method name="newInstance" return="T"
  36941. abstract="false" native="false" synchronized="false"
  36942. static="true" final="false" visibility="public"
  36943. deprecated="not deprecated">
  36944. <param name="theClass" type="java.lang.Class"/>
  36945. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36946. <doc>
  36947. <![CDATA[Create an object for the given class and initialize it from conf.
  36948. @param <T> Generics Type.
  36949. @param theClass class of which an object is created
  36950. @param conf Configuration
  36951. @return a new object]]>
  36952. </doc>
  36953. </method>
  36954. <method name="setContentionTracing"
  36955. abstract="false" native="false" synchronized="false"
  36956. static="true" final="false" visibility="public"
  36957. deprecated="not deprecated">
  36958. <param name="val" type="boolean"/>
  36959. </method>
  36960. <method name="printThreadInfo"
  36961. abstract="false" native="false" synchronized="true"
  36962. static="true" final="false" visibility="public"
  36963. deprecated="not deprecated">
  36964. <param name="stream" type="java.io.PrintStream"/>
  36965. <param name="title" type="java.lang.String"/>
  36966. <doc>
  36967. <![CDATA[Print all of the thread's information and stack traces.
  36968. @param stream the stream to
  36969. @param title a string title for the stack trace]]>
  36970. </doc>
  36971. </method>
  36972. <method name="logThreadInfo"
  36973. abstract="false" native="false" synchronized="false"
  36974. static="true" final="false" visibility="public"
  36975. deprecated="not deprecated">
  36976. <param name="log" type="org.apache.commons.logging.Log"/>
  36977. <param name="title" type="java.lang.String"/>
  36978. <param name="minInterval" type="long"/>
  36979. <doc>
  36980. <![CDATA[Log the current thread stacks at INFO level.
  36981. @param log the logger that logs the stack trace
  36982. @param title a descriptive title for the call stacks
  36983. @param minInterval the minimum time from the last]]>
  36984. </doc>
  36985. </method>
  36986. <method name="logThreadInfo"
  36987. abstract="false" native="false" synchronized="false"
  36988. static="true" final="false" visibility="public"
  36989. deprecated="not deprecated">
  36990. <param name="log" type="org.slf4j.Logger"/>
  36991. <param name="title" type="java.lang.String"/>
  36992. <param name="minInterval" type="long"/>
  36993. <doc>
  36994. <![CDATA[Log the current thread stacks at INFO level.
  36995. @param log the logger that logs the stack trace
  36996. @param title a descriptive title for the call stacks
  36997. @param minInterval the minimum time from the last]]>
  36998. </doc>
  36999. </method>
  37000. <method name="getClass" return="java.lang.Class"
  37001. abstract="false" native="false" synchronized="false"
  37002. static="true" final="false" visibility="public"
  37003. deprecated="not deprecated">
  37004. <param name="o" type="T"/>
  37005. <doc>
  37006. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  37007. @param <T> Generics Type T
  37008. @param o object whose correctly-typed <code>Class</code> is to be obtained
  37009. @return the correctly typed <code>Class</code> of the given object.]]>
  37010. </doc>
  37011. </method>
  37012. <method name="copy" return="T"
  37013. abstract="false" native="false" synchronized="false"
  37014. static="true" final="false" visibility="public"
  37015. deprecated="not deprecated">
  37016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37017. <param name="src" type="T"/>
  37018. <param name="dst" type="T"/>
  37019. <exception name="IOException" type="java.io.IOException"/>
  37020. <doc>
  37021. <![CDATA[Make a copy of the writable object using serialization to a buffer.
  37022. @param <T> Generics Type.
  37023. @param conf input Configuration.
  37024. @param src the object to copy from
  37025. @param dst the object to copy into, which is destroyed
  37026. @return dst param (the copy)
  37027. @throws IOException raised on errors performing I/O.]]>
  37028. </doc>
  37029. </method>
  37030. <method name="cloneWritableInto"
  37031. abstract="false" native="false" synchronized="false"
  37032. static="true" final="false" visibility="public"
  37033. deprecated="not deprecated">
  37034. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  37035. <param name="src" type="org.apache.hadoop.io.Writable"/>
  37036. <exception name="IOException" type="java.io.IOException"/>
  37037. </method>
  37038. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  37039. abstract="false" native="false" synchronized="false"
  37040. static="true" final="false" visibility="public"
  37041. deprecated="not deprecated">
  37042. <param name="clazz" type="java.lang.Class"/>
  37043. <doc>
  37044. <![CDATA[@return Gets all the declared fields of a class including fields declared in
  37045. superclasses.
  37046. @param clazz input clazz.]]>
  37047. </doc>
  37048. </method>
  37049. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  37050. abstract="false" native="false" synchronized="false"
  37051. static="true" final="false" visibility="public"
  37052. deprecated="not deprecated">
  37053. <param name="clazz" type="java.lang.Class"/>
  37054. <doc>
  37055. <![CDATA[@return Gets all the declared methods of a class including methods declared in
  37056. superclasses.
  37057. @param clazz input clazz.]]>
  37058. </doc>
  37059. </method>
  37060. <doc>
  37061. <![CDATA[General reflection utils]]>
  37062. </doc>
  37063. </class>
  37064. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  37065. <!-- start class org.apache.hadoop.util.Shell -->
  37066. <class name="Shell" extends="java.lang.Object"
  37067. abstract="true"
  37068. static="false" final="false" visibility="public"
  37069. deprecated="not deprecated">
  37070. <constructor name="Shell"
  37071. static="false" final="false" visibility="protected"
  37072. deprecated="not deprecated">
  37073. <doc>
  37074. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  37075. not merged with stdout.]]>
  37076. </doc>
  37077. </constructor>
  37078. <constructor name="Shell" type="long"
  37079. static="false" final="false" visibility="protected"
  37080. deprecated="not deprecated">
  37081. <doc>
  37082. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  37083. not merged with stdout.
  37084. @param interval interval in milliseconds between command executions.]]>
  37085. </doc>
  37086. </constructor>
  37087. <constructor name="Shell" type="long, boolean"
  37088. static="false" final="false" visibility="protected"
  37089. deprecated="not deprecated">
  37090. <doc>
  37091. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  37092. method is invoked with a given elapsed time between calls.
  37093. @param interval the minimum duration in milliseconds to wait before
  37094. re-executing the command. If set to 0, there is no minimum.
  37095. @param redirectErrorStream should the error stream be merged with
  37096. the normal output stream?]]>
  37097. </doc>
  37098. </constructor>
  37099. <method name="isJava7OrAbove" return="boolean"
  37100. abstract="false" native="false" synchronized="false"
  37101. static="true" final="false" visibility="public"
  37102. deprecated="This call isn't needed any more: please remove uses of it.">
  37103. <doc>
  37104. <![CDATA[query to see if system is Java 7 or later.
  37105. Now that Hadoop requires Java 7 or later, this always returns true.
  37106. @deprecated This call isn't needed any more: please remove uses of it.
  37107. @return true, always.]]>
  37108. </doc>
  37109. </method>
  37110. <method name="isJavaVersionAtLeast" return="boolean"
  37111. abstract="false" native="false" synchronized="false"
  37112. static="true" final="false" visibility="public"
  37113. deprecated="not deprecated">
  37114. <param name="version" type="int"/>
  37115. <doc>
  37116. <![CDATA[Query to see if major version of Java specification of the system
  37117. is equal or greater than the parameter.
  37118. @param version 8, 9, 10 etc.
  37119. @return comparison with system property, always true for 8]]>
  37120. </doc>
  37121. </method>
  37122. <method name="checkWindowsCommandLineLength"
  37123. abstract="false" native="false" synchronized="false"
  37124. static="true" final="false" visibility="public"
  37125. deprecated="not deprecated">
  37126. <param name="commands" type="java.lang.String[]"/>
  37127. <exception name="IOException" type="java.io.IOException"/>
  37128. <doc>
  37129. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  37130. line length Note that the input is expected to already include space
  37131. delimiters, no extra count will be added for delimiters.
  37132. @param commands command parts, including any space delimiters
  37133. @throws IOException raised on errors performing I/O.]]>
  37134. </doc>
  37135. </method>
  37136. <method name="getGroupsCommand" return="java.lang.String[]"
  37137. abstract="false" native="false" synchronized="false"
  37138. static="true" final="false" visibility="public"
  37139. deprecated="not deprecated">
  37140. <doc>
  37141. <![CDATA[a Unix command to get the current user's groups list.
  37142. @return group command array.]]>
  37143. </doc>
  37144. </method>
  37145. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  37146. abstract="false" native="false" synchronized="false"
  37147. static="true" final="false" visibility="public"
  37148. deprecated="not deprecated">
  37149. <param name="user" type="java.lang.String"/>
  37150. <doc>
  37151. <![CDATA[A command to get a given user's groups list.
  37152. If the OS is not WINDOWS, the command will get the user's primary group
  37153. first and finally get the groups list which includes the primary group.
  37154. i.e. the user's primary group will be included twice.
  37155. @param user user.
  37156. @return groups for user command.]]>
  37157. </doc>
  37158. </method>
  37159. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  37160. abstract="false" native="false" synchronized="false"
  37161. static="true" final="false" visibility="public"
  37162. deprecated="not deprecated">
  37163. <param name="user" type="java.lang.String"/>
  37164. <doc>
  37165. <![CDATA[A command to get a given user's group id list.
  37166. The command will get the user's primary group
  37167. first and finally get the groups list which includes the primary group.
  37168. i.e. the user's primary group will be included twice.
  37169. This command does not support Windows and will only return group names.
  37170. @param user user.
  37171. @return groups id for user command.]]>
  37172. </doc>
  37173. </method>
  37174. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  37175. abstract="false" native="false" synchronized="false"
  37176. static="true" final="false" visibility="public"
  37177. deprecated="not deprecated">
  37178. <param name="netgroup" type="java.lang.String"/>
  37179. <doc>
  37180. <![CDATA[A command to get a given netgroup's user list.
  37181. @param netgroup net group.
  37182. @return users for net group command.]]>
  37183. </doc>
  37184. </method>
  37185. <method name="getGetPermissionCommand" return="java.lang.String[]"
  37186. abstract="false" native="false" synchronized="false"
  37187. static="true" final="false" visibility="public"
  37188. deprecated="not deprecated">
  37189. <doc>
  37190. <![CDATA[Return a command to get permission information.
  37191. @return permission command.]]>
  37192. </doc>
  37193. </method>
  37194. <method name="getSetPermissionCommand" return="java.lang.String[]"
  37195. abstract="false" native="false" synchronized="false"
  37196. static="true" final="false" visibility="public"
  37197. deprecated="not deprecated">
  37198. <param name="perm" type="java.lang.String"/>
  37199. <param name="recursive" type="boolean"/>
  37200. <doc>
  37201. <![CDATA[Return a command to set permission.
  37202. @param perm permission.
  37203. @param recursive recursive.
  37204. @return set permission command.]]>
  37205. </doc>
  37206. </method>
  37207. <method name="getSetPermissionCommand" return="java.lang.String[]"
  37208. abstract="false" native="false" synchronized="false"
  37209. static="true" final="false" visibility="public"
  37210. deprecated="not deprecated">
  37211. <param name="perm" type="java.lang.String"/>
  37212. <param name="recursive" type="boolean"/>
  37213. <param name="file" type="java.lang.String"/>
  37214. <doc>
  37215. <![CDATA[Return a command to set permission for specific file.
  37216. @param perm String permission to set
  37217. @param recursive boolean true to apply to all sub-directories recursively
  37218. @param file String file to set
  37219. @return String[] containing command and arguments]]>
  37220. </doc>
  37221. </method>
  37222. <method name="getSetOwnerCommand" return="java.lang.String[]"
  37223. abstract="false" native="false" synchronized="false"
  37224. static="true" final="false" visibility="public"
  37225. deprecated="not deprecated">
  37226. <param name="owner" type="java.lang.String"/>
  37227. <doc>
  37228. <![CDATA[Return a command to set owner.
  37229. @param owner owner.
  37230. @return set owner command.]]>
  37231. </doc>
  37232. </method>
  37233. <method name="getSymlinkCommand" return="java.lang.String[]"
  37234. abstract="false" native="false" synchronized="false"
  37235. static="true" final="false" visibility="public"
  37236. deprecated="not deprecated">
  37237. <param name="target" type="java.lang.String"/>
  37238. <param name="link" type="java.lang.String"/>
  37239. <doc>
  37240. <![CDATA[Return a command to create symbolic links.
  37241. @param target target.
  37242. @param link link.
  37243. @return symlink command.]]>
  37244. </doc>
  37245. </method>
  37246. <method name="getReadlinkCommand" return="java.lang.String[]"
  37247. abstract="false" native="false" synchronized="false"
  37248. static="true" final="false" visibility="public"
  37249. deprecated="not deprecated">
  37250. <param name="link" type="java.lang.String"/>
  37251. <doc>
  37252. <![CDATA[Return a command to read the target of the a symbolic link.
  37253. @param link link.
  37254. @return read link command.]]>
  37255. </doc>
  37256. </method>
  37257. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  37258. abstract="false" native="false" synchronized="false"
  37259. static="true" final="false" visibility="public"
  37260. deprecated="not deprecated">
  37261. <param name="pid" type="java.lang.String"/>
  37262. <doc>
  37263. <![CDATA[Return a command for determining if process with specified pid is alive.
  37264. @param pid process ID
  37265. @return a <code>kill -0</code> command or equivalent]]>
  37266. </doc>
  37267. </method>
  37268. <method name="getSignalKillCommand" return="java.lang.String[]"
  37269. abstract="false" native="false" synchronized="false"
  37270. static="true" final="false" visibility="public"
  37271. deprecated="not deprecated">
  37272. <param name="code" type="int"/>
  37273. <param name="pid" type="java.lang.String"/>
  37274. <doc>
  37275. <![CDATA[Return a command to send a signal to a given pid.
  37276. @param code code.
  37277. @param pid pid.
  37278. @return signal kill command.]]>
  37279. </doc>
  37280. </method>
  37281. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  37282. abstract="false" native="false" synchronized="false"
  37283. static="true" final="false" visibility="public"
  37284. deprecated="not deprecated">
  37285. <doc>
  37286. <![CDATA[Return a regular expression string that match environment variables.
  37287. @return environment variable regex.]]>
  37288. </doc>
  37289. </method>
  37290. <method name="appendScriptExtension" return="java.io.File"
  37291. abstract="false" native="false" synchronized="false"
  37292. static="true" final="false" visibility="public"
  37293. deprecated="not deprecated">
  37294. <param name="parent" type="java.io.File"/>
  37295. <param name="basename" type="java.lang.String"/>
  37296. <doc>
  37297. <![CDATA[Returns a File referencing a script with the given basename, inside the
  37298. given parent directory. The file extension is inferred by platform:
  37299. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  37300. @param parent File parent directory
  37301. @param basename String script file basename
  37302. @return File referencing the script in the directory]]>
  37303. </doc>
  37304. </method>
  37305. <method name="appendScriptExtension" return="java.lang.String"
  37306. abstract="false" native="false" synchronized="false"
  37307. static="true" final="false" visibility="public"
  37308. deprecated="not deprecated">
  37309. <param name="basename" type="java.lang.String"/>
  37310. <doc>
  37311. <![CDATA[Returns a script file name with the given basename.
  37312. The file extension is inferred by platform:
  37313. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  37314. @param basename String script file basename
  37315. @return String script file name]]>
  37316. </doc>
  37317. </method>
  37318. <method name="getRunScriptCommand" return="java.lang.String[]"
  37319. abstract="false" native="false" synchronized="false"
  37320. static="true" final="false" visibility="public"
  37321. deprecated="not deprecated">
  37322. <param name="script" type="java.io.File"/>
  37323. <doc>
  37324. <![CDATA[Returns a command to run the given script. The script interpreter is
  37325. inferred by platform: cmd on Windows or bash otherwise.
  37326. @param script File script to run
  37327. @return String[] command to run the script]]>
  37328. </doc>
  37329. </method>
  37330. <method name="getHadoopHome" return="java.lang.String"
  37331. abstract="false" native="false" synchronized="false"
  37332. static="true" final="false" visibility="public"
  37333. deprecated="not deprecated">
  37334. <exception name="IOException" type="java.io.IOException"/>
  37335. <doc>
  37336. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  37337. @return the home dir
  37338. @throws IOException if the home directory cannot be located.]]>
  37339. </doc>
  37340. </method>
  37341. <method name="getQualifiedBin" return="java.io.File"
  37342. abstract="false" native="false" synchronized="false"
  37343. static="true" final="false" visibility="public"
  37344. deprecated="not deprecated">
  37345. <param name="executable" type="java.lang.String"/>
  37346. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  37347. <doc>
  37348. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  37349. bin location. This is primarily useful for disambiguating call-outs
  37350. to executable sub-components of Hadoop to avoid clashes with other
  37351. executables that may be in the path. Caveat: this call doesn't
  37352. just format the path to the bin directory. It also checks for file
  37353. existence of the composed path. The output of this call should be
  37354. cached by callers.
  37355. @param executable executable
  37356. @return executable file reference
  37357. @throws FileNotFoundException if the path does not exist]]>
  37358. </doc>
  37359. </method>
  37360. <method name="getQualifiedBinPath" return="java.lang.String"
  37361. abstract="false" native="false" synchronized="false"
  37362. static="true" final="false" visibility="public"
  37363. deprecated="not deprecated">
  37364. <param name="executable" type="java.lang.String"/>
  37365. <exception name="IOException" type="java.io.IOException"/>
  37366. <doc>
  37367. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  37368. bin location. This is primarily useful for disambiguating call-outs
  37369. to executable sub-components of Hadoop to avoid clashes with other
  37370. executables that may be in the path. Caveat: this call doesn't
  37371. just format the path to the bin directory. It also checks for file
  37372. existence of the composed path. The output of this call should be
  37373. cached by callers.
  37374. @param executable executable
  37375. @return executable file reference
  37376. @throws FileNotFoundException if the path does not exist
  37377. @throws IOException on path canonicalization failures]]>
  37378. </doc>
  37379. </method>
  37380. <method name="hasWinutilsPath" return="boolean"
  37381. abstract="false" native="false" synchronized="false"
  37382. static="true" final="false" visibility="public"
  37383. deprecated="not deprecated">
  37384. <doc>
  37385. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  37386. If true, then {@link #WINUTILS} is non-null, and both
  37387. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  37388. will successfully return this value. Always false on non-windows systems.
  37389. @return true if there is a valid path to the binary]]>
  37390. </doc>
  37391. </method>
  37392. <method name="getWinUtilsPath" return="java.lang.String"
  37393. abstract="false" native="false" synchronized="false"
  37394. static="true" final="false" visibility="public"
  37395. deprecated="not deprecated">
  37396. <doc>
  37397. <![CDATA[Locate the winutils binary, or fail with a meaningful
  37398. exception and stack trace as an RTE.
  37399. This method is for use in methods which don't explicitly throw
  37400. an <code>IOException</code>.
  37401. @return the path to {@link #WINUTILS_EXE}
  37402. @throws RuntimeException if the path is not resolvable]]>
  37403. </doc>
  37404. </method>
  37405. <method name="getWinUtilsFile" return="java.io.File"
  37406. abstract="false" native="false" synchronized="false"
  37407. static="true" final="false" visibility="public"
  37408. deprecated="not deprecated">
  37409. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  37410. <doc>
  37411. <![CDATA[Get a file reference to winutils.
  37412. Always raises an exception if there isn't one
  37413. @return the file instance referring to the winutils bin.
  37414. @throws FileNotFoundException on any failure to locate that file.]]>
  37415. </doc>
  37416. </method>
  37417. <method name="checkIsBashSupported" return="boolean"
  37418. abstract="false" native="false" synchronized="false"
  37419. static="true" final="false" visibility="public"
  37420. deprecated="not deprecated">
  37421. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  37422. </method>
  37423. <method name="setEnvironment"
  37424. abstract="false" native="false" synchronized="false"
  37425. static="false" final="false" visibility="protected"
  37426. deprecated="not deprecated">
  37427. <param name="env" type="java.util.Map"/>
  37428. <doc>
  37429. <![CDATA[Set the environment for the command.
  37430. @param env Mapping of environment variables]]>
  37431. </doc>
  37432. </method>
  37433. <method name="setWorkingDirectory"
  37434. abstract="false" native="false" synchronized="false"
  37435. static="false" final="false" visibility="protected"
  37436. deprecated="not deprecated">
  37437. <param name="dir" type="java.io.File"/>
  37438. <doc>
  37439. <![CDATA[Set the working directory.
  37440. @param dir The directory where the command will be executed]]>
  37441. </doc>
  37442. </method>
  37443. <method name="run"
  37444. abstract="false" native="false" synchronized="false"
  37445. static="false" final="false" visibility="protected"
  37446. deprecated="not deprecated">
  37447. <exception name="IOException" type="java.io.IOException"/>
  37448. <doc>
  37449. <![CDATA[Check to see if a command needs to be executed and execute if needed.
  37450. @throws IOException raised on errors performing I/O.]]>
  37451. </doc>
  37452. </method>
  37453. <method name="getExecString" return="java.lang.String[]"
  37454. abstract="true" native="false" synchronized="false"
  37455. static="false" final="false" visibility="protected"
  37456. deprecated="not deprecated">
  37457. <doc>
  37458. <![CDATA[return an array containing the command name and its parameters.
  37459. @return exec string array.]]>
  37460. </doc>
  37461. </method>
  37462. <method name="parseExecResult"
  37463. abstract="true" native="false" synchronized="false"
  37464. static="false" final="false" visibility="protected"
  37465. deprecated="not deprecated">
  37466. <param name="lines" type="java.io.BufferedReader"/>
  37467. <exception name="IOException" type="java.io.IOException"/>
  37468. <doc>
  37469. <![CDATA[Parse the execution result.
  37470. @param lines lines.
  37471. @throws IOException raised on errors performing I/O.]]>
  37472. </doc>
  37473. </method>
  37474. <method name="getEnvironment" return="java.lang.String"
  37475. abstract="false" native="false" synchronized="false"
  37476. static="false" final="false" visibility="public"
  37477. deprecated="not deprecated">
  37478. <param name="env" type="java.lang.String"/>
  37479. <doc>
  37480. <![CDATA[Get an environment variable.
  37481. @param env the environment var
  37482. @return the value or null if it was unset.]]>
  37483. </doc>
  37484. </method>
  37485. <method name="getProcess" return="java.lang.Process"
  37486. abstract="false" native="false" synchronized="false"
  37487. static="false" final="false" visibility="public"
  37488. deprecated="not deprecated">
  37489. <doc>
  37490. <![CDATA[get the current sub-process executing the given command.
  37491. @return process executing the command]]>
  37492. </doc>
  37493. </method>
  37494. <method name="getExitCode" return="int"
  37495. abstract="false" native="false" synchronized="false"
  37496. static="false" final="false" visibility="public"
  37497. deprecated="not deprecated">
  37498. <doc>
  37499. <![CDATA[get the exit code.
  37500. @return the exit code of the process]]>
  37501. </doc>
  37502. </method>
  37503. <method name="getWaitingThread" return="java.lang.Thread"
  37504. abstract="false" native="false" synchronized="false"
  37505. static="false" final="false" visibility="public"
  37506. deprecated="not deprecated">
  37507. <doc>
  37508. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  37509. @return the thread that ran runCommand() that spawned this shell
  37510. or null if no thread is waiting for this shell to complete]]>
  37511. </doc>
  37512. </method>
  37513. <method name="isTimedOut" return="boolean"
  37514. abstract="false" native="false" synchronized="false"
  37515. static="false" final="false" visibility="public"
  37516. deprecated="not deprecated">
  37517. <doc>
  37518. <![CDATA[To check if the passed script to shell command executor timed out or
  37519. not.
  37520. @return if the script timed out.]]>
  37521. </doc>
  37522. </method>
  37523. <method name="execCommand" return="java.lang.String"
  37524. abstract="false" native="false" synchronized="false"
  37525. static="true" final="false" visibility="public"
  37526. deprecated="not deprecated">
  37527. <param name="cmd" type="java.lang.String[]"/>
  37528. <exception name="IOException" type="java.io.IOException"/>
  37529. <doc>
  37530. <![CDATA[Static method to execute a shell command.
  37531. Covers most of the simple cases without requiring the user to implement
  37532. the <code>Shell</code> interface.
  37533. @param cmd shell command to execute.
  37534. @return the output of the executed command.
  37535. @throws IOException raised on errors performing I/O.]]>
  37536. </doc>
  37537. </method>
  37538. <method name="execCommand" return="java.lang.String"
  37539. abstract="false" native="false" synchronized="false"
  37540. static="true" final="false" visibility="public"
  37541. deprecated="not deprecated">
  37542. <param name="env" type="java.util.Map"/>
  37543. <param name="cmd" type="java.lang.String[]"/>
  37544. <param name="timeout" type="long"/>
  37545. <exception name="IOException" type="java.io.IOException"/>
  37546. <doc>
  37547. <![CDATA[Static method to execute a shell command.
  37548. Covers most of the simple cases without requiring the user to implement
  37549. the <code>Shell</code> interface.
  37550. @param env the map of environment key=value
  37551. @param cmd shell command to execute.
  37552. @param timeout time in milliseconds after which script should be marked timeout
  37553. @return the output of the executed command.
  37554. @throws IOException on any problem.]]>
  37555. </doc>
  37556. </method>
  37557. <method name="execCommand" return="java.lang.String"
  37558. abstract="false" native="false" synchronized="false"
  37559. static="true" final="false" visibility="public"
  37560. deprecated="not deprecated">
  37561. <param name="env" type="java.util.Map"/>
  37562. <param name="cmd" type="java.lang.String[]"/>
  37563. <exception name="IOException" type="java.io.IOException"/>
  37564. <doc>
  37565. <![CDATA[Static method to execute a shell command.
  37566. Covers most of the simple cases without requiring the user to implement
  37567. the <code>Shell</code> interface.
  37568. @param env the map of environment key=value
  37569. @param cmd shell command to execute.
  37570. @return the output of the executed command.
  37571. @throws IOException on any problem.]]>
  37572. </doc>
  37573. </method>
  37574. <method name="destroyAllShellProcesses"
  37575. abstract="false" native="false" synchronized="false"
  37576. static="true" final="false" visibility="public"
  37577. deprecated="not deprecated">
  37578. <doc>
  37579. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  37580. Iterates through a map of all currently running <code>Shell</code>
  37581. processes and destroys them one by one. This method is thread safe]]>
  37582. </doc>
  37583. </method>
  37584. <method name="getAllShells" return="java.util.Set"
  37585. abstract="false" native="false" synchronized="false"
  37586. static="true" final="false" visibility="public"
  37587. deprecated="not deprecated">
  37588. <doc>
  37589. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.
  37590. @return all shells set.]]>
  37591. </doc>
  37592. </method>
  37593. <method name="getMemlockLimit" return="java.lang.Long"
  37594. abstract="false" native="false" synchronized="false"
  37595. static="true" final="false" visibility="public"
  37596. deprecated="not deprecated">
  37597. <param name="ulimit" type="java.lang.Long"/>
  37598. <doc>
  37599. <![CDATA[Static method to return the memory lock limit for datanode.
  37600. @param ulimit max value at which memory locked should be capped.
  37601. @return long value specifying the memory lock limit.]]>
  37602. </doc>
  37603. </method>
  37604. <field name="LOG" type="org.slf4j.Logger"
  37605. transient="false" volatile="false"
  37606. static="true" final="true" visibility="public"
  37607. deprecated="not deprecated">
  37608. </field>
  37609. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  37610. transient="false" volatile="false"
  37611. static="true" final="true" visibility="public"
  37612. deprecated="not deprecated">
  37613. <doc>
  37614. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  37615. </doc>
  37616. </field>
  37617. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  37618. transient="false" volatile="false"
  37619. static="true" final="true" visibility="public"
  37620. deprecated="not deprecated">
  37621. <doc>
  37622. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  37623. </doc>
  37624. </field>
  37625. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  37626. transient="false" volatile="false"
  37627. static="true" final="true" visibility="public"
  37628. deprecated="not deprecated">
  37629. <doc>
  37630. <![CDATA[Maximum command line length in Windows
  37631. KB830473 documents this as 8191]]>
  37632. </doc>
  37633. </field>
  37634. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  37635. transient="false" volatile="false"
  37636. static="true" final="true" visibility="public"
  37637. deprecated="use the correctly spelled constant.">
  37638. <doc>
  37639. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  37640. @deprecated use the correctly spelled constant.]]>
  37641. </doc>
  37642. </field>
  37643. <field name="USER_NAME_COMMAND" type="java.lang.String"
  37644. transient="false" volatile="false"
  37645. static="true" final="true" visibility="public"
  37646. deprecated="not deprecated">
  37647. <doc>
  37648. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  37649. </doc>
  37650. </field>
  37651. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  37652. transient="false" volatile="false"
  37653. static="true" final="true" visibility="public"
  37654. deprecated="not deprecated">
  37655. <doc>
  37656. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  37657. </doc>
  37658. </field>
  37659. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  37660. transient="false" volatile="false"
  37661. static="true" final="true" visibility="public"
  37662. deprecated="not deprecated">
  37663. <doc>
  37664. <![CDATA[Get the type of the operating system, as determined from parsing
  37665. the <code>os.name</code> property.]]>
  37666. </doc>
  37667. </field>
  37668. <field name="WINDOWS" type="boolean"
  37669. transient="false" volatile="false"
  37670. static="true" final="true" visibility="public"
  37671. deprecated="not deprecated">
  37672. </field>
  37673. <field name="SOLARIS" type="boolean"
  37674. transient="false" volatile="false"
  37675. static="true" final="true" visibility="public"
  37676. deprecated="not deprecated">
  37677. </field>
  37678. <field name="MAC" type="boolean"
  37679. transient="false" volatile="false"
  37680. static="true" final="true" visibility="public"
  37681. deprecated="not deprecated">
  37682. </field>
  37683. <field name="FREEBSD" type="boolean"
  37684. transient="false" volatile="false"
  37685. static="true" final="true" visibility="public"
  37686. deprecated="not deprecated">
  37687. </field>
  37688. <field name="LINUX" type="boolean"
  37689. transient="false" volatile="false"
  37690. static="true" final="true" visibility="public"
  37691. deprecated="not deprecated">
  37692. </field>
  37693. <field name="OTHER" type="boolean"
  37694. transient="false" volatile="false"
  37695. static="true" final="true" visibility="public"
  37696. deprecated="not deprecated">
  37697. </field>
  37698. <field name="PPC_64" type="boolean"
  37699. transient="false" volatile="false"
  37700. static="true" final="true" visibility="public"
  37701. deprecated="not deprecated">
  37702. </field>
  37703. <field name="ENV_NAME_REGEX" type="java.lang.String"
  37704. transient="false" volatile="false"
  37705. static="true" final="true" visibility="public"
  37706. deprecated="not deprecated">
  37707. <doc>
  37708. <![CDATA[Regular expression for environment variables: {@value}.]]>
  37709. </doc>
  37710. </field>
  37711. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  37712. transient="false" volatile="false"
  37713. static="true" final="true" visibility="public"
  37714. deprecated="not deprecated">
  37715. <doc>
  37716. <![CDATA[a Unix command to set permission: {@value}.]]>
  37717. </doc>
  37718. </field>
  37719. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  37720. transient="false" volatile="false"
  37721. static="true" final="true" visibility="public"
  37722. deprecated="not deprecated">
  37723. <doc>
  37724. <![CDATA[a Unix command to set owner: {@value}.]]>
  37725. </doc>
  37726. </field>
  37727. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  37728. transient="false" volatile="false"
  37729. static="true" final="true" visibility="public"
  37730. deprecated="not deprecated">
  37731. <doc>
  37732. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  37733. </doc>
  37734. </field>
  37735. <field name="LINK_COMMAND" type="java.lang.String"
  37736. transient="false" volatile="false"
  37737. static="true" final="true" visibility="public"
  37738. deprecated="not deprecated">
  37739. <doc>
  37740. <![CDATA[a Unix command to create a link: {@value}.]]>
  37741. </doc>
  37742. </field>
  37743. <field name="READ_LINK_COMMAND" type="java.lang.String"
  37744. transient="false" volatile="false"
  37745. static="true" final="true" visibility="public"
  37746. deprecated="not deprecated">
  37747. <doc>
  37748. <![CDATA[a Unix command to get a link target: {@value}.]]>
  37749. </doc>
  37750. </field>
  37751. <field name="timeOutInterval" type="long"
  37752. transient="false" volatile="false"
  37753. static="false" final="false" visibility="protected"
  37754. deprecated="not deprecated">
  37755. <doc>
  37756. <![CDATA[Time after which the executing script would be timedout.]]>
  37757. </doc>
  37758. </field>
  37759. <field name="inheritParentEnv" type="boolean"
  37760. transient="false" volatile="false"
  37761. static="false" final="false" visibility="protected"
  37762. deprecated="not deprecated">
  37763. <doc>
  37764. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  37765. </doc>
  37766. </field>
  37767. <field name="WINUTILS" type="java.lang.String"
  37768. transient="false" volatile="false"
  37769. static="true" final="true" visibility="public"
  37770. deprecated="use one of the exception-raising getter methods,
  37771. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  37772. <doc>
  37773. <![CDATA[Location of winutils as a string; null if not found.
  37774. <p>
  37775. <i>Important: caller must check for this value being null</i>.
  37776. The lack of such checks has led to many support issues being raised.
  37777. <p>
  37778. @deprecated use one of the exception-raising getter methods,
  37779. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  37780. </doc>
  37781. </field>
  37782. <field name="isSetsidAvailable" type="boolean"
  37783. transient="false" volatile="false"
  37784. static="true" final="true" visibility="public"
  37785. deprecated="not deprecated">
  37786. <doc>
  37787. <![CDATA[Flag which is true if setsid exists.]]>
  37788. </doc>
  37789. </field>
  37790. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  37791. transient="false" volatile="false"
  37792. static="true" final="true" visibility="public"
  37793. deprecated="not deprecated">
  37794. <doc>
  37795. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  37796. </doc>
  37797. </field>
  37798. <doc>
  37799. <![CDATA[A base class for running a Shell command.
  37800. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  37801. <code>df</code>. It also offers facilities to gate commands by
  37802. time-intervals.]]>
  37803. </doc>
  37804. </class>
  37805. <!-- end class org.apache.hadoop.util.Shell -->
  37806. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  37807. <class name="ShutdownHookManager" extends="java.lang.Object"
  37808. abstract="false"
  37809. static="false" final="true" visibility="public"
  37810. deprecated="not deprecated">
  37811. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  37812. abstract="false" native="false" synchronized="false"
  37813. static="true" final="false" visibility="public"
  37814. deprecated="not deprecated">
  37815. <doc>
  37816. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  37817. @return <code>ShutdownHookManager</code> singleton.]]>
  37818. </doc>
  37819. </method>
  37820. <method name="addShutdownHook"
  37821. abstract="false" native="false" synchronized="false"
  37822. static="false" final="false" visibility="public"
  37823. deprecated="not deprecated">
  37824. <param name="shutdownHook" type="java.lang.Runnable"/>
  37825. <param name="priority" type="int"/>
  37826. <doc>
  37827. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  37828. the earlier will run. ShutdownHooks with same priority run
  37829. in a non-deterministic order.
  37830. @param shutdownHook shutdownHook <code>Runnable</code>
  37831. @param priority priority of the shutdownHook.]]>
  37832. </doc>
  37833. </method>
  37834. <method name="addShutdownHook"
  37835. abstract="false" native="false" synchronized="false"
  37836. static="false" final="false" visibility="public"
  37837. deprecated="not deprecated">
  37838. <param name="shutdownHook" type="java.lang.Runnable"/>
  37839. <param name="priority" type="int"/>
  37840. <param name="timeout" type="long"/>
  37841. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  37842. <doc>
  37843. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  37844. the earlier will run. ShutdownHooks with same priority run
  37845. in a non-deterministic order. The shutdown hook will be terminated if it
  37846. has not been finished in the specified period of time.
  37847. @param shutdownHook shutdownHook <code>Runnable</code>
  37848. @param priority priority of the shutdownHook
  37849. @param timeout timeout of the shutdownHook
  37850. @param unit unit of the timeout <code>TimeUnit</code>]]>
  37851. </doc>
  37852. </method>
  37853. <method name="removeShutdownHook" return="boolean"
  37854. abstract="false" native="false" synchronized="false"
  37855. static="false" final="false" visibility="public"
  37856. deprecated="not deprecated">
  37857. <param name="shutdownHook" type="java.lang.Runnable"/>
  37858. <doc>
  37859. <![CDATA[Removes a shutdownHook.
  37860. @param shutdownHook shutdownHook to remove.
  37861. @return TRUE if the shutdownHook was registered and removed,
  37862. FALSE otherwise.]]>
  37863. </doc>
  37864. </method>
  37865. <method name="hasShutdownHook" return="boolean"
  37866. abstract="false" native="false" synchronized="false"
  37867. static="false" final="false" visibility="public"
  37868. deprecated="not deprecated">
  37869. <param name="shutdownHook" type="java.lang.Runnable"/>
  37870. <doc>
  37871. <![CDATA[Indicates if a shutdownHook is registered or not.
  37872. @param shutdownHook shutdownHook to check if registered.
  37873. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  37874. </doc>
  37875. </method>
  37876. <method name="isShutdownInProgress" return="boolean"
  37877. abstract="false" native="false" synchronized="false"
  37878. static="false" final="false" visibility="public"
  37879. deprecated="not deprecated">
  37880. <doc>
  37881. <![CDATA[Indicates if shutdown is in progress or not.
  37882. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  37883. </doc>
  37884. </method>
  37885. <method name="clearShutdownHooks"
  37886. abstract="false" native="false" synchronized="false"
  37887. static="false" final="false" visibility="public"
  37888. deprecated="not deprecated">
  37889. <doc>
  37890. <![CDATA[clear all registered shutdownHooks.]]>
  37891. </doc>
  37892. </method>
  37893. <field name="TIMEOUT_MINIMUM" type="long"
  37894. transient="false" volatile="false"
  37895. static="true" final="true" visibility="public"
  37896. deprecated="not deprecated">
  37897. <doc>
  37898. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  37899. </doc>
  37900. </field>
  37901. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  37902. transient="false" volatile="false"
  37903. static="true" final="true" visibility="public"
  37904. deprecated="not deprecated">
  37905. <doc>
  37906. <![CDATA[The default time unit used: seconds.]]>
  37907. </doc>
  37908. </field>
  37909. <doc>
  37910. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  37911. in a deterministic order, higher priority first.
  37912. <p>
  37913. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  37914. This class registers a single JVM shutdownHook and run all the
  37915. shutdownHooks registered to it (to this class) in order based on their
  37916. priority.
  37917. Unless a hook was registered with a shutdown explicitly set through
  37918. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  37919. the shutdown time allocated to it is set by the configuration option
  37920. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  37921. {@code core-site.xml}, with a default value of
  37922. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  37923. seconds.]]>
  37924. </doc>
  37925. </class>
  37926. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  37927. <!-- start class org.apache.hadoop.util.StringInterner -->
  37928. <class name="StringInterner" extends="java.lang.Object"
  37929. abstract="false"
  37930. static="false" final="false" visibility="public"
  37931. deprecated="not deprecated">
  37932. <constructor name="StringInterner"
  37933. static="false" final="false" visibility="public"
  37934. deprecated="not deprecated">
  37935. </constructor>
  37936. <method name="strongIntern" return="java.lang.String"
  37937. abstract="false" native="false" synchronized="false"
  37938. static="true" final="false" visibility="public"
  37939. deprecated="not deprecated">
  37940. <param name="sample" type="java.lang.String"/>
  37941. <doc>
  37942. <![CDATA[Interns and returns a reference to the representative instance
  37943. for any of a collection of string instances that are equal to each other.
  37944. Retains strong reference to the instance,
  37945. thus preventing it from being garbage-collected.
  37946. @param sample string instance to be interned
  37947. @return strong reference to interned string instance]]>
  37948. </doc>
  37949. </method>
  37950. <method name="weakIntern" return="java.lang.String"
  37951. abstract="false" native="false" synchronized="false"
  37952. static="true" final="false" visibility="public"
  37953. deprecated="not deprecated">
  37954. <param name="sample" type="java.lang.String"/>
  37955. <doc>
  37956. <![CDATA[Interns and returns a reference to the representative instance
  37957. for any of a collection of string instances that are equal to each other.
  37958. Retains weak reference to the instance,
  37959. and so does not prevent it from being garbage-collected.
  37960. @param sample string instance to be interned
  37961. @return weak reference to interned string instance]]>
  37962. </doc>
  37963. </method>
  37964. <method name="internStringsInArray" return="java.lang.String[]"
  37965. abstract="false" native="false" synchronized="false"
  37966. static="true" final="false" visibility="public"
  37967. deprecated="not deprecated">
  37968. <param name="strings" type="java.lang.String[]"/>
  37969. <doc>
  37970. <![CDATA[Interns all the strings in the given array in place,
  37971. returning the same array.
  37972. @param strings strings.
  37973. @return internStringsInArray.]]>
  37974. </doc>
  37975. </method>
  37976. <doc>
  37977. <![CDATA[Provides string interning utility methods. For weak interning,
  37978. we use the standard String.intern() call, that performs very well
  37979. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  37980. </doc>
  37981. </class>
  37982. <!-- end class org.apache.hadoop.util.StringInterner -->
  37983. <!-- start class org.apache.hadoop.util.SysInfo -->
  37984. <class name="SysInfo" extends="java.lang.Object"
  37985. abstract="true"
  37986. static="false" final="false" visibility="public"
  37987. deprecated="not deprecated">
  37988. <constructor name="SysInfo"
  37989. static="false" final="false" visibility="public"
  37990. deprecated="not deprecated">
  37991. </constructor>
  37992. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  37993. abstract="false" native="false" synchronized="false"
  37994. static="true" final="false" visibility="public"
  37995. deprecated="not deprecated">
  37996. <doc>
  37997. <![CDATA[Return default OS instance.
  37998. @throws UnsupportedOperationException If cannot determine OS.
  37999. @return Default instance for the detected OS.]]>
  38000. </doc>
  38001. </method>
  38002. <method name="getVirtualMemorySize" return="long"
  38003. abstract="true" native="false" synchronized="false"
  38004. static="false" final="false" visibility="public"
  38005. deprecated="not deprecated">
  38006. <doc>
  38007. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38008. @return virtual memory size in bytes.]]>
  38009. </doc>
  38010. </method>
  38011. <method name="getPhysicalMemorySize" return="long"
  38012. abstract="true" native="false" synchronized="false"
  38013. static="false" final="false" visibility="public"
  38014. deprecated="not deprecated">
  38015. <doc>
  38016. <![CDATA[Obtain the total size of the physical memory present in the system.
  38017. @return physical memory size bytes.]]>
  38018. </doc>
  38019. </method>
  38020. <method name="getAvailableVirtualMemorySize" return="long"
  38021. abstract="true" native="false" synchronized="false"
  38022. static="false" final="false" visibility="public"
  38023. deprecated="not deprecated">
  38024. <doc>
  38025. <![CDATA[Obtain the total size of the available virtual memory present
  38026. in the system.
  38027. @return available virtual memory size in bytes.]]>
  38028. </doc>
  38029. </method>
  38030. <method name="getAvailablePhysicalMemorySize" return="long"
  38031. abstract="true" native="false" synchronized="false"
  38032. static="false" final="false" visibility="public"
  38033. deprecated="not deprecated">
  38034. <doc>
  38035. <![CDATA[Obtain the total size of the available physical memory present
  38036. in the system.
  38037. @return available physical memory size bytes.]]>
  38038. </doc>
  38039. </method>
  38040. <method name="getNumProcessors" return="int"
  38041. abstract="true" native="false" synchronized="false"
  38042. static="false" final="false" visibility="public"
  38043. deprecated="not deprecated">
  38044. <doc>
  38045. <![CDATA[Obtain the total number of logical processors present on the system.
  38046. @return number of logical processors]]>
  38047. </doc>
  38048. </method>
  38049. <method name="getNumCores" return="int"
  38050. abstract="true" native="false" synchronized="false"
  38051. static="false" final="false" visibility="public"
  38052. deprecated="not deprecated">
  38053. <doc>
  38054. <![CDATA[Obtain total number of physical cores present on the system.
  38055. @return number of physical cores]]>
  38056. </doc>
  38057. </method>
  38058. <method name="getCpuFrequency" return="long"
  38059. abstract="true" native="false" synchronized="false"
  38060. static="false" final="false" visibility="public"
  38061. deprecated="not deprecated">
  38062. <doc>
  38063. <![CDATA[Obtain the CPU frequency of on the system.
  38064. @return CPU frequency in kHz]]>
  38065. </doc>
  38066. </method>
  38067. <method name="getCumulativeCpuTime" return="long"
  38068. abstract="true" native="false" synchronized="false"
  38069. static="false" final="false" visibility="public"
  38070. deprecated="not deprecated">
  38071. <doc>
  38072. <![CDATA[Obtain the cumulative CPU time since the system is on.
  38073. @return cumulative CPU time in milliseconds]]>
  38074. </doc>
  38075. </method>
  38076. <method name="getCpuUsagePercentage" return="float"
  38077. abstract="true" native="false" synchronized="false"
  38078. static="false" final="false" visibility="public"
  38079. deprecated="not deprecated">
  38080. <doc>
  38081. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  38082. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  38083. </doc>
  38084. </method>
  38085. <method name="getNumVCoresUsed" return="float"
  38086. abstract="true" native="false" synchronized="false"
  38087. static="false" final="false" visibility="public"
  38088. deprecated="not deprecated">
  38089. <doc>
  38090. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  38091. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  38092. </doc>
  38093. </method>
  38094. <method name="getNetworkBytesRead" return="long"
  38095. abstract="true" native="false" synchronized="false"
  38096. static="false" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <doc>
  38099. <![CDATA[Obtain the aggregated number of bytes read over the network.
  38100. @return total number of bytes read.]]>
  38101. </doc>
  38102. </method>
  38103. <method name="getNetworkBytesWritten" return="long"
  38104. abstract="true" native="false" synchronized="false"
  38105. static="false" final="false" visibility="public"
  38106. deprecated="not deprecated">
  38107. <doc>
  38108. <![CDATA[Obtain the aggregated number of bytes written to the network.
  38109. @return total number of bytes written.]]>
  38110. </doc>
  38111. </method>
  38112. <method name="getStorageBytesRead" return="long"
  38113. abstract="true" native="false" synchronized="false"
  38114. static="false" final="false" visibility="public"
  38115. deprecated="not deprecated">
  38116. <doc>
  38117. <![CDATA[Obtain the aggregated number of bytes read from disks.
  38118. @return total number of bytes read.]]>
  38119. </doc>
  38120. </method>
  38121. <method name="getStorageBytesWritten" return="long"
  38122. abstract="true" native="false" synchronized="false"
  38123. static="false" final="false" visibility="public"
  38124. deprecated="not deprecated">
  38125. <doc>
  38126. <![CDATA[Obtain the aggregated number of bytes written to disks.
  38127. @return total number of bytes written.]]>
  38128. </doc>
  38129. </method>
  38130. <doc>
  38131. <![CDATA[Plugin to calculate resource information on the system.]]>
  38132. </doc>
  38133. </class>
  38134. <!-- end class org.apache.hadoop.util.SysInfo -->
  38135. <!-- start interface org.apache.hadoop.util.Tool -->
  38136. <interface name="Tool" abstract="true"
  38137. static="false" final="false" visibility="public"
  38138. deprecated="not deprecated">
  38139. <implements name="org.apache.hadoop.conf.Configurable"/>
  38140. <method name="run" return="int"
  38141. abstract="true" native="false" synchronized="false"
  38142. static="false" final="false" visibility="public"
  38143. deprecated="not deprecated">
  38144. <param name="args" type="java.lang.String[]"/>
  38145. <exception name="Exception" type="java.lang.Exception"/>
  38146. <doc>
  38147. <![CDATA[Execute the command with the given arguments.
  38148. @param args command specific arguments.
  38149. @return exit code.
  38150. @throws Exception command exception.]]>
  38151. </doc>
  38152. </method>
  38153. <doc>
  38154. <![CDATA[A tool interface that supports handling of generic command-line options.
  38155. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  38156. The tool/application should delegate the handling of
  38157. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  38158. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  38159. and only handle its custom arguments.</p>
  38160. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  38161. <blockquote><pre>
  38162. public class MyApp extends Configured implements Tool {
  38163. public int run(String[] args) throws Exception {
  38164. // <code>Configuration</code> processed by <code>ToolRunner</code>
  38165. Configuration conf = getConf();
  38166. // Create a JobConf using the processed <code>conf</code>
  38167. JobConf job = new JobConf(conf, MyApp.class);
  38168. // Process custom command-line options
  38169. Path in = new Path(args[1]);
  38170. Path out = new Path(args[2]);
  38171. // Specify various job-specific parameters
  38172. job.setJobName("my-app");
  38173. job.setInputPath(in);
  38174. job.setOutputPath(out);
  38175. job.setMapperClass(MyMapper.class);
  38176. job.setReducerClass(MyReducer.class);
  38177. // Submit the job, then poll for progress until the job is complete
  38178. RunningJob runningJob = JobClient.runJob(job);
  38179. if (runningJob.isSuccessful()) {
  38180. return 0;
  38181. } else {
  38182. return 1;
  38183. }
  38184. }
  38185. public static void main(String[] args) throws Exception {
  38186. // Let <code>ToolRunner</code> handle generic command-line options
  38187. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  38188. System.exit(res);
  38189. }
  38190. }
  38191. </pre></blockquote>
  38192. @see GenericOptionsParser
  38193. @see ToolRunner]]>
  38194. </doc>
  38195. </interface>
  38196. <!-- end interface org.apache.hadoop.util.Tool -->
  38197. <!-- start class org.apache.hadoop.util.ToolRunner -->
  38198. <class name="ToolRunner" extends="java.lang.Object"
  38199. abstract="false"
  38200. static="false" final="false" visibility="public"
  38201. deprecated="not deprecated">
  38202. <constructor name="ToolRunner"
  38203. static="false" final="false" visibility="public"
  38204. deprecated="not deprecated">
  38205. </constructor>
  38206. <method name="run" return="int"
  38207. abstract="false" native="false" synchronized="false"
  38208. static="true" final="false" visibility="public"
  38209. deprecated="not deprecated">
  38210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38211. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  38212. <param name="args" type="java.lang.String[]"/>
  38213. <exception name="Exception" type="java.lang.Exception"/>
  38214. <doc>
  38215. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  38216. parsing with the given generic arguments. Uses the given
  38217. <code>Configuration</code>, or builds one if null.
  38218. Sets the <code>Tool</code>'s configuration with the possibly modified
  38219. version of the <code>conf</code>.
  38220. @param conf <code>Configuration</code> for the <code>Tool</code>.
  38221. @param tool <code>Tool</code> to run.
  38222. @param args command-line arguments to the tool.
  38223. @return exit code of the {@link Tool#run(String[])} method.
  38224. @throws Exception Exception.]]>
  38225. </doc>
  38226. </method>
  38227. <method name="run" return="int"
  38228. abstract="false" native="false" synchronized="false"
  38229. static="true" final="false" visibility="public"
  38230. deprecated="not deprecated">
  38231. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  38232. <param name="args" type="java.lang.String[]"/>
  38233. <exception name="Exception" type="java.lang.Exception"/>
  38234. <doc>
  38235. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  38236. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  38237. @param tool <code>Tool</code> to run.
  38238. @param args command-line arguments to the tool.
  38239. @return exit code of the {@link Tool#run(String[])} method.
  38240. @throws Exception exception.]]>
  38241. </doc>
  38242. </method>
  38243. <method name="printGenericCommandUsage"
  38244. abstract="false" native="false" synchronized="false"
  38245. static="true" final="false" visibility="public"
  38246. deprecated="not deprecated">
  38247. <param name="out" type="java.io.PrintStream"/>
  38248. <doc>
  38249. <![CDATA[Prints generic command-line argurments and usage information.
  38250. @param out stream to write usage information to.]]>
  38251. </doc>
  38252. </method>
  38253. <method name="confirmPrompt" return="boolean"
  38254. abstract="false" native="false" synchronized="false"
  38255. static="true" final="false" visibility="public"
  38256. deprecated="not deprecated">
  38257. <param name="prompt" type="java.lang.String"/>
  38258. <exception name="IOException" type="java.io.IOException"/>
  38259. <doc>
  38260. <![CDATA[Print out a prompt to the user, and return true if the user
  38261. responds with "y" or "yes". (case insensitive).
  38262. @param prompt prompt.
  38263. @throws IOException raised on errors performing I/O.
  38264. @return if the user
  38265. responds with "y" or "yes". (case insensitive) true,
  38266. not false.]]>
  38267. </doc>
  38268. </method>
  38269. <doc>
  38270. <![CDATA[A utility to help run {@link Tool}s.
  38271. <p><code>ToolRunner</code> can be used to run classes implementing
  38272. <code>Tool</code> interface. It works in conjunction with
  38273. {@link GenericOptionsParser} to parse the
  38274. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  38275. generic hadoop command line arguments</a> and modifies the
  38276. <code>Configuration</code> of the <code>Tool</code>. The
  38277. application-specific options are passed along without being modified.
  38278. </p>
  38279. @see Tool
  38280. @see GenericOptionsParser]]>
  38281. </doc>
  38282. </class>
  38283. <!-- end class org.apache.hadoop.util.ToolRunner -->
  38284. <!-- start class org.apache.hadoop.util.VersionInfo -->
  38285. <class name="VersionInfo" extends="java.lang.Object"
  38286. abstract="false"
  38287. static="false" final="false" visibility="public"
  38288. deprecated="not deprecated">
  38289. <constructor name="VersionInfo" type="java.lang.String"
  38290. static="false" final="false" visibility="protected"
  38291. deprecated="not deprecated">
  38292. </constructor>
  38293. <method name="_getVersion" return="java.lang.String"
  38294. abstract="false" native="false" synchronized="false"
  38295. static="false" final="false" visibility="protected"
  38296. deprecated="not deprecated">
  38297. </method>
  38298. <method name="_getRevision" return="java.lang.String"
  38299. abstract="false" native="false" synchronized="false"
  38300. static="false" final="false" visibility="protected"
  38301. deprecated="not deprecated">
  38302. </method>
  38303. <method name="_getBranch" return="java.lang.String"
  38304. abstract="false" native="false" synchronized="false"
  38305. static="false" final="false" visibility="protected"
  38306. deprecated="not deprecated">
  38307. </method>
  38308. <method name="_getDate" return="java.lang.String"
  38309. abstract="false" native="false" synchronized="false"
  38310. static="false" final="false" visibility="protected"
  38311. deprecated="not deprecated">
  38312. </method>
  38313. <method name="_getUser" return="java.lang.String"
  38314. abstract="false" native="false" synchronized="false"
  38315. static="false" final="false" visibility="protected"
  38316. deprecated="not deprecated">
  38317. </method>
  38318. <method name="_getUrl" return="java.lang.String"
  38319. abstract="false" native="false" synchronized="false"
  38320. static="false" final="false" visibility="protected"
  38321. deprecated="not deprecated">
  38322. </method>
  38323. <method name="_getSrcChecksum" return="java.lang.String"
  38324. abstract="false" native="false" synchronized="false"
  38325. static="false" final="false" visibility="protected"
  38326. deprecated="not deprecated">
  38327. </method>
  38328. <method name="_getBuildVersion" return="java.lang.String"
  38329. abstract="false" native="false" synchronized="false"
  38330. static="false" final="false" visibility="protected"
  38331. deprecated="not deprecated">
  38332. </method>
  38333. <method name="_getProtocVersion" return="java.lang.String"
  38334. abstract="false" native="false" synchronized="false"
  38335. static="false" final="false" visibility="protected"
  38336. deprecated="not deprecated">
  38337. </method>
  38338. <method name="getVersion" return="java.lang.String"
  38339. abstract="false" native="false" synchronized="false"
  38340. static="true" final="false" visibility="public"
  38341. deprecated="not deprecated">
  38342. <doc>
  38343. <![CDATA[Get the Hadoop version.
  38344. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  38345. </doc>
  38346. </method>
  38347. <method name="getRevision" return="java.lang.String"
  38348. abstract="false" native="false" synchronized="false"
  38349. static="true" final="false" visibility="public"
  38350. deprecated="not deprecated">
  38351. <doc>
  38352. <![CDATA[Get the Git commit hash of the repository when compiled.
  38353. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  38354. </doc>
  38355. </method>
  38356. <method name="getBranch" return="java.lang.String"
  38357. abstract="false" native="false" synchronized="false"
  38358. static="true" final="false" visibility="public"
  38359. deprecated="not deprecated">
  38360. <doc>
  38361. <![CDATA[Get the branch on which this originated.
  38362. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  38363. </doc>
  38364. </method>
  38365. <method name="getDate" return="java.lang.String"
  38366. abstract="false" native="false" synchronized="false"
  38367. static="true" final="false" visibility="public"
  38368. deprecated="not deprecated">
  38369. <doc>
  38370. <![CDATA[The date that Hadoop was compiled.
  38371. @return the compilation date in unix date format]]>
  38372. </doc>
  38373. </method>
  38374. <method name="getUser" return="java.lang.String"
  38375. abstract="false" native="false" synchronized="false"
  38376. static="true" final="false" visibility="public"
  38377. deprecated="not deprecated">
  38378. <doc>
  38379. <![CDATA[The user that compiled Hadoop.
  38380. @return the username of the user]]>
  38381. </doc>
  38382. </method>
  38383. <method name="getUrl" return="java.lang.String"
  38384. abstract="false" native="false" synchronized="false"
  38385. static="true" final="false" visibility="public"
  38386. deprecated="not deprecated">
  38387. <doc>
  38388. <![CDATA[Get the URL for the Hadoop repository.
  38389. @return the URL of the Hadoop repository]]>
  38390. </doc>
  38391. </method>
  38392. <method name="getSrcChecksum" return="java.lang.String"
  38393. abstract="false" native="false" synchronized="false"
  38394. static="true" final="false" visibility="public"
  38395. deprecated="not deprecated">
  38396. <doc>
  38397. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  38398. @return the checksum of the source files]]>
  38399. </doc>
  38400. </method>
  38401. <method name="getBuildVersion" return="java.lang.String"
  38402. abstract="false" native="false" synchronized="false"
  38403. static="true" final="false" visibility="public"
  38404. deprecated="not deprecated">
  38405. <doc>
  38406. <![CDATA[Returns the buildVersion which includes version,
  38407. revision, user and date.
  38408. @return the buildVersion]]>
  38409. </doc>
  38410. </method>
  38411. <method name="getProtocVersion" return="java.lang.String"
  38412. abstract="false" native="false" synchronized="false"
  38413. static="true" final="false" visibility="public"
  38414. deprecated="not deprecated">
  38415. <doc>
  38416. <![CDATA[Returns the protoc version used for the build.
  38417. @return the protoc version]]>
  38418. </doc>
  38419. </method>
  38420. <method name="main"
  38421. abstract="false" native="false" synchronized="false"
  38422. static="true" final="false" visibility="public"
  38423. deprecated="not deprecated">
  38424. <param name="args" type="java.lang.String[]"/>
  38425. </method>
  38426. <doc>
  38427. <![CDATA[This class returns build information about Hadoop components.]]>
  38428. </doc>
  38429. </class>
  38430. <!-- end class org.apache.hadoop.util.VersionInfo -->
  38431. <doc>
  38432. <![CDATA[Common utilities.]]>
  38433. </doc>
  38434. </package>
  38435. <package name="org.apache.hadoop.util.bloom">
  38436. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  38437. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  38438. abstract="false"
  38439. static="false" final="false" visibility="public"
  38440. deprecated="not deprecated">
  38441. <constructor name="BloomFilter"
  38442. static="false" final="false" visibility="public"
  38443. deprecated="not deprecated">
  38444. <doc>
  38445. <![CDATA[Default constructor - use with readFields]]>
  38446. </doc>
  38447. </constructor>
  38448. <constructor name="BloomFilter" type="int, int, int"
  38449. static="false" final="false" visibility="public"
  38450. deprecated="not deprecated">
  38451. <doc>
  38452. <![CDATA[Constructor
  38453. @param vectorSize The vector size of <i>this</i> filter.
  38454. @param nbHash The number of hash function to consider.
  38455. @param hashType type of the hashing function (see
  38456. {@link org.apache.hadoop.util.hash.Hash}).]]>
  38457. </doc>
  38458. </constructor>
  38459. <method name="add"
  38460. abstract="false" native="false" synchronized="false"
  38461. static="false" final="false" visibility="public"
  38462. deprecated="not deprecated">
  38463. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38464. </method>
  38465. <method name="and"
  38466. abstract="false" native="false" synchronized="false"
  38467. static="false" final="false" visibility="public"
  38468. deprecated="not deprecated">
  38469. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38470. </method>
  38471. <method name="membershipTest" return="boolean"
  38472. abstract="false" native="false" synchronized="false"
  38473. static="false" final="false" visibility="public"
  38474. deprecated="not deprecated">
  38475. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38476. </method>
  38477. <method name="not"
  38478. abstract="false" native="false" synchronized="false"
  38479. static="false" final="false" visibility="public"
  38480. deprecated="not deprecated">
  38481. </method>
  38482. <method name="or"
  38483. abstract="false" native="false" synchronized="false"
  38484. static="false" final="false" visibility="public"
  38485. deprecated="not deprecated">
  38486. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38487. </method>
  38488. <method name="xor"
  38489. abstract="false" native="false" synchronized="false"
  38490. static="false" final="false" visibility="public"
  38491. deprecated="not deprecated">
  38492. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38493. </method>
  38494. <method name="toString" return="java.lang.String"
  38495. abstract="false" native="false" synchronized="false"
  38496. static="false" final="false" visibility="public"
  38497. deprecated="not deprecated">
  38498. </method>
  38499. <method name="getVectorSize" return="int"
  38500. abstract="false" native="false" synchronized="false"
  38501. static="false" final="false" visibility="public"
  38502. deprecated="not deprecated">
  38503. <doc>
  38504. <![CDATA[@return size of the the bloomfilter]]>
  38505. </doc>
  38506. </method>
  38507. <method name="write"
  38508. abstract="false" native="false" synchronized="false"
  38509. static="false" final="false" visibility="public"
  38510. deprecated="not deprecated">
  38511. <param name="out" type="java.io.DataOutput"/>
  38512. <exception name="IOException" type="java.io.IOException"/>
  38513. </method>
  38514. <method name="readFields"
  38515. abstract="false" native="false" synchronized="false"
  38516. static="false" final="false" visibility="public"
  38517. deprecated="not deprecated">
  38518. <param name="in" type="java.io.DataInput"/>
  38519. <exception name="IOException" type="java.io.IOException"/>
  38520. </method>
  38521. <doc>
  38522. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  38523. <p>
  38524. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  38525. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  38526. offers for the transmission of set membership information between networked hosts. A sender encodes
  38527. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  38528. representation. Computation and space costs for construction are linear in the number of elements.
  38529. The receiver uses the filter to test whether various elements are members of the set. Though the
  38530. filter will occasionally return a false positive, it will never return a false negative. When creating
  38531. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  38532. <p>
  38533. Originally created by
  38534. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  38535. @see Filter The general behavior of a filter
  38536. @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>]]>
  38537. </doc>
  38538. </class>
  38539. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  38540. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  38541. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  38542. abstract="false"
  38543. static="false" final="true" visibility="public"
  38544. deprecated="not deprecated">
  38545. <constructor name="CountingBloomFilter"
  38546. static="false" final="false" visibility="public"
  38547. deprecated="not deprecated">
  38548. <doc>
  38549. <![CDATA[Default constructor - use with readFields]]>
  38550. </doc>
  38551. </constructor>
  38552. <constructor name="CountingBloomFilter" type="int, int, int"
  38553. static="false" final="false" visibility="public"
  38554. deprecated="not deprecated">
  38555. <doc>
  38556. <![CDATA[Constructor
  38557. @param vectorSize The vector size of <i>this</i> filter.
  38558. @param nbHash The number of hash function to consider.
  38559. @param hashType type of the hashing function (see
  38560. {@link org.apache.hadoop.util.hash.Hash}).]]>
  38561. </doc>
  38562. </constructor>
  38563. <method name="add"
  38564. abstract="false" native="false" synchronized="false"
  38565. static="false" final="false" visibility="public"
  38566. deprecated="not deprecated">
  38567. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38568. </method>
  38569. <method name="delete"
  38570. abstract="false" native="false" synchronized="false"
  38571. static="false" final="false" visibility="public"
  38572. deprecated="not deprecated">
  38573. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38574. <doc>
  38575. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  38576. <p>
  38577. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  38578. @param key The key to remove.]]>
  38579. </doc>
  38580. </method>
  38581. <method name="and"
  38582. abstract="false" native="false" synchronized="false"
  38583. static="false" final="false" visibility="public"
  38584. deprecated="not deprecated">
  38585. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38586. </method>
  38587. <method name="membershipTest" return="boolean"
  38588. abstract="false" native="false" synchronized="false"
  38589. static="false" final="false" visibility="public"
  38590. deprecated="not deprecated">
  38591. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38592. </method>
  38593. <method name="approximateCount" return="int"
  38594. abstract="false" native="false" synchronized="false"
  38595. static="false" final="false" visibility="public"
  38596. deprecated="not deprecated">
  38597. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38598. <doc>
  38599. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  38600. times the key was added to the filter. This allows the filter to be
  38601. used as an approximate <code>key -&gt; count</code> map.
  38602. <p>NOTE: due to the bucket size of this filter, inserting the same
  38603. key more than 15 times will cause an overflow at all filter positions
  38604. associated with this key, and it will significantly increase the error
  38605. rate for this and other keys. For this reason the filter can only be
  38606. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  38607. @param key key to be tested
  38608. @return 0 if the key is not present. Otherwise, a positive value v will
  38609. be returned such that <code>v == count</code> with probability equal to the
  38610. error rate of this filter, and <code>v &gt; count</code> otherwise.
  38611. Additionally, if the filter experienced an underflow as a result of
  38612. {@link #delete(Key)} operation, the return value may be lower than the
  38613. <code>count</code> with the probability of the false negative rate of such
  38614. filter.]]>
  38615. </doc>
  38616. </method>
  38617. <method name="not"
  38618. abstract="false" native="false" synchronized="false"
  38619. static="false" final="false" visibility="public"
  38620. deprecated="not deprecated">
  38621. </method>
  38622. <method name="or"
  38623. abstract="false" native="false" synchronized="false"
  38624. static="false" final="false" visibility="public"
  38625. deprecated="not deprecated">
  38626. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38627. </method>
  38628. <method name="xor"
  38629. abstract="false" native="false" synchronized="false"
  38630. static="false" final="false" visibility="public"
  38631. deprecated="not deprecated">
  38632. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38633. </method>
  38634. <method name="toString" return="java.lang.String"
  38635. abstract="false" native="false" synchronized="false"
  38636. static="false" final="false" visibility="public"
  38637. deprecated="not deprecated">
  38638. </method>
  38639. <method name="write"
  38640. abstract="false" native="false" synchronized="false"
  38641. static="false" final="false" visibility="public"
  38642. deprecated="not deprecated">
  38643. <param name="out" type="java.io.DataOutput"/>
  38644. <exception name="IOException" type="java.io.IOException"/>
  38645. </method>
  38646. <method name="readFields"
  38647. abstract="false" native="false" synchronized="false"
  38648. static="false" final="false" visibility="public"
  38649. deprecated="not deprecated">
  38650. <param name="in" type="java.io.DataInput"/>
  38651. <exception name="IOException" type="java.io.IOException"/>
  38652. </method>
  38653. <doc>
  38654. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  38655. 2000 paper.
  38656. <p>
  38657. A counting Bloom filter is an improvement to standard a Bloom filter as it
  38658. allows dynamic additions and deletions of set membership information. This
  38659. is achieved through the use of a counting vector instead of a bit vector.
  38660. <p>
  38661. Originally created by
  38662. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  38663. @see Filter The general behavior of a filter
  38664. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  38665. </doc>
  38666. </class>
  38667. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  38668. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  38669. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  38670. abstract="false"
  38671. static="false" final="false" visibility="public"
  38672. deprecated="not deprecated">
  38673. <constructor name="DynamicBloomFilter"
  38674. static="false" final="false" visibility="public"
  38675. deprecated="not deprecated">
  38676. <doc>
  38677. <![CDATA[Zero-args constructor for the serialization.]]>
  38678. </doc>
  38679. </constructor>
  38680. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  38681. static="false" final="false" visibility="public"
  38682. deprecated="not deprecated">
  38683. <doc>
  38684. <![CDATA[Constructor.
  38685. <p>
  38686. Builds an empty Dynamic Bloom filter.
  38687. @param vectorSize The number of bits in the vector.
  38688. @param nbHash The number of hash function to consider.
  38689. @param hashType type of the hashing function (see
  38690. {@link org.apache.hadoop.util.hash.Hash}).
  38691. @param nr The threshold for the maximum number of keys to record in a
  38692. dynamic Bloom filter row.]]>
  38693. </doc>
  38694. </constructor>
  38695. <method name="add"
  38696. abstract="false" native="false" synchronized="false"
  38697. static="false" final="false" visibility="public"
  38698. deprecated="not deprecated">
  38699. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38700. </method>
  38701. <method name="and"
  38702. abstract="false" native="false" synchronized="false"
  38703. static="false" final="false" visibility="public"
  38704. deprecated="not deprecated">
  38705. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38706. </method>
  38707. <method name="membershipTest" return="boolean"
  38708. abstract="false" native="false" synchronized="false"
  38709. static="false" final="false" visibility="public"
  38710. deprecated="not deprecated">
  38711. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38712. </method>
  38713. <method name="not"
  38714. abstract="false" native="false" synchronized="false"
  38715. static="false" final="false" visibility="public"
  38716. deprecated="not deprecated">
  38717. </method>
  38718. <method name="or"
  38719. abstract="false" native="false" synchronized="false"
  38720. static="false" final="false" visibility="public"
  38721. deprecated="not deprecated">
  38722. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38723. </method>
  38724. <method name="xor"
  38725. abstract="false" native="false" synchronized="false"
  38726. static="false" final="false" visibility="public"
  38727. deprecated="not deprecated">
  38728. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38729. </method>
  38730. <method name="toString" return="java.lang.String"
  38731. abstract="false" native="false" synchronized="false"
  38732. static="false" final="false" visibility="public"
  38733. deprecated="not deprecated">
  38734. </method>
  38735. <method name="write"
  38736. abstract="false" native="false" synchronized="false"
  38737. static="false" final="false" visibility="public"
  38738. deprecated="not deprecated">
  38739. <param name="out" type="java.io.DataOutput"/>
  38740. <exception name="IOException" type="java.io.IOException"/>
  38741. </method>
  38742. <method name="readFields"
  38743. abstract="false" native="false" synchronized="false"
  38744. static="false" final="false" visibility="public"
  38745. deprecated="not deprecated">
  38746. <param name="in" type="java.io.DataInput"/>
  38747. <exception name="IOException" type="java.io.IOException"/>
  38748. </method>
  38749. <doc>
  38750. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  38751. <p>
  38752. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  38753. each of the <code>s</code> rows is a standard Bloom filter. The creation
  38754. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  38755. bit matrix, i.e., it is composed of a single standard Bloom filter.
  38756. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  38757. initial bit vector, where <code>n<sub>r</sub> {@literal <=} n</code>
  38758. (<code>n</code> is the cardinality of the set <code>A</code> to record in
  38759. the filter).
  38760. <p>
  38761. As the size of <code>A</code> grows during the execution of the application,
  38762. several keys must be inserted in the DBF. When inserting a key into the DBF,
  38763. one must first get an active Bloom filter in the matrix. A Bloom filter is
  38764. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  38765. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  38766. If an active Bloom filter is found, the key is inserted and
  38767. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  38768. is no active Bloom filter, a new one is created (i.e., a new row is added to
  38769. the matrix) according to the current size of <code>A</code> and the element
  38770. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  38771. this new Bloom filter is set to one. A given key is said to belong to the
  38772. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  38773. <p>
  38774. Originally created by
  38775. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  38776. @see Filter The general behavior of a filter
  38777. @see BloomFilter A Bloom filter
  38778. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  38779. </doc>
  38780. </class>
  38781. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  38782. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  38783. <class name="HashFunction" extends="java.lang.Object"
  38784. abstract="false"
  38785. static="false" final="true" visibility="public"
  38786. deprecated="not deprecated">
  38787. <constructor name="HashFunction" type="int, int, int"
  38788. static="false" final="false" visibility="public"
  38789. deprecated="not deprecated">
  38790. <doc>
  38791. <![CDATA[Constructor.
  38792. <p>
  38793. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  38794. @param maxValue The maximum highest returned value.
  38795. @param nbHash The number of resulting hashed values.
  38796. @param hashType type of the hashing function (see {@link Hash}).]]>
  38797. </doc>
  38798. </constructor>
  38799. <method name="clear"
  38800. abstract="false" native="false" synchronized="false"
  38801. static="false" final="false" visibility="public"
  38802. deprecated="not deprecated">
  38803. <doc>
  38804. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  38805. </doc>
  38806. </method>
  38807. <method name="hash" return="int[]"
  38808. abstract="false" native="false" synchronized="false"
  38809. static="false" final="false" visibility="public"
  38810. deprecated="not deprecated">
  38811. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  38812. <doc>
  38813. <![CDATA[Hashes a specified key into several integers.
  38814. @param k The specified key.
  38815. @return The array of hashed values.]]>
  38816. </doc>
  38817. </method>
  38818. <doc>
  38819. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  38820. @see Key The general behavior of a key being stored in a filter
  38821. @see Filter The general behavior of a filter]]>
  38822. </doc>
  38823. </class>
  38824. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  38825. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  38826. <interface name="RemoveScheme" abstract="true"
  38827. static="false" final="false" visibility="public"
  38828. deprecated="not deprecated">
  38829. <field name="RANDOM" type="short"
  38830. transient="false" volatile="false"
  38831. static="true" final="true" visibility="public"
  38832. deprecated="not deprecated">
  38833. <doc>
  38834. <![CDATA[Random selection.
  38835. <p>
  38836. The idea is to randomly select a bit to reset.]]>
  38837. </doc>
  38838. </field>
  38839. <field name="MINIMUM_FN" type="short"
  38840. transient="false" volatile="false"
  38841. static="true" final="true" visibility="public"
  38842. deprecated="not deprecated">
  38843. <doc>
  38844. <![CDATA[MinimumFN Selection.
  38845. <p>
  38846. The idea is to select the bit to reset that will generate the minimum
  38847. number of false negative.]]>
  38848. </doc>
  38849. </field>
  38850. <field name="MAXIMUM_FP" type="short"
  38851. transient="false" volatile="false"
  38852. static="true" final="true" visibility="public"
  38853. deprecated="not deprecated">
  38854. <doc>
  38855. <![CDATA[MaximumFP Selection.
  38856. <p>
  38857. The idea is to select the bit to reset that will remove the maximum number
  38858. of false positive.]]>
  38859. </doc>
  38860. </field>
  38861. <field name="RATIO" type="short"
  38862. transient="false" volatile="false"
  38863. static="true" final="true" visibility="public"
  38864. deprecated="not deprecated">
  38865. <doc>
  38866. <![CDATA[Ratio Selection.
  38867. <p>
  38868. The idea is to select the bit to reset that will, at the same time, remove
  38869. the maximum number of false positve while minimizing the amount of false
  38870. negative generated.]]>
  38871. </doc>
  38872. </field>
  38873. <doc>
  38874. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  38875. <p>
  38876. Originally created by
  38877. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  38878. </doc>
  38879. </interface>
  38880. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  38881. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  38882. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  38883. abstract="false"
  38884. static="false" final="true" visibility="public"
  38885. deprecated="not deprecated">
  38886. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  38887. <constructor name="RetouchedBloomFilter"
  38888. static="false" final="false" visibility="public"
  38889. deprecated="not deprecated">
  38890. <doc>
  38891. <![CDATA[Default constructor - use with readFields]]>
  38892. </doc>
  38893. </constructor>
  38894. <constructor name="RetouchedBloomFilter" type="int, int, int"
  38895. static="false" final="false" visibility="public"
  38896. deprecated="not deprecated">
  38897. <doc>
  38898. <![CDATA[Constructor
  38899. @param vectorSize The vector size of <i>this</i> filter.
  38900. @param nbHash The number of hash function to consider.
  38901. @param hashType type of the hashing function (see
  38902. {@link org.apache.hadoop.util.hash.Hash}).]]>
  38903. </doc>
  38904. </constructor>
  38905. <method name="add"
  38906. abstract="false" native="false" synchronized="false"
  38907. static="false" final="false" visibility="public"
  38908. deprecated="not deprecated">
  38909. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38910. </method>
  38911. <method name="addFalsePositive"
  38912. abstract="false" native="false" synchronized="false"
  38913. static="false" final="false" visibility="public"
  38914. deprecated="not deprecated">
  38915. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38916. <doc>
  38917. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  38918. <p>
  38919. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  38920. @param key The false positive key to add.]]>
  38921. </doc>
  38922. </method>
  38923. <method name="addFalsePositive"
  38924. abstract="false" native="false" synchronized="false"
  38925. static="false" final="false" visibility="public"
  38926. deprecated="not deprecated">
  38927. <param name="coll" type="java.util.Collection"/>
  38928. <doc>
  38929. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  38930. @param coll The collection of false positive.]]>
  38931. </doc>
  38932. </method>
  38933. <method name="addFalsePositive"
  38934. abstract="false" native="false" synchronized="false"
  38935. static="false" final="false" visibility="public"
  38936. deprecated="not deprecated">
  38937. <param name="keys" type="java.util.List"/>
  38938. <doc>
  38939. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  38940. @param keys The list of false positive.]]>
  38941. </doc>
  38942. </method>
  38943. <method name="addFalsePositive"
  38944. abstract="false" native="false" synchronized="false"
  38945. static="false" final="false" visibility="public"
  38946. deprecated="not deprecated">
  38947. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  38948. <doc>
  38949. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  38950. @param keys The array of false positive.]]>
  38951. </doc>
  38952. </method>
  38953. <method name="selectiveClearing"
  38954. abstract="false" native="false" synchronized="false"
  38955. static="false" final="false" visibility="public"
  38956. deprecated="not deprecated">
  38957. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  38958. <param name="scheme" type="short"/>
  38959. <doc>
  38960. <![CDATA[Performs the selective clearing for a given key.
  38961. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  38962. @param scheme The selective clearing scheme to apply.]]>
  38963. </doc>
  38964. </method>
  38965. <method name="write"
  38966. abstract="false" native="false" synchronized="false"
  38967. static="false" final="false" visibility="public"
  38968. deprecated="not deprecated">
  38969. <param name="out" type="java.io.DataOutput"/>
  38970. <exception name="IOException" type="java.io.IOException"/>
  38971. </method>
  38972. <method name="readFields"
  38973. abstract="false" native="false" synchronized="false"
  38974. static="false" final="false" visibility="public"
  38975. deprecated="not deprecated">
  38976. <param name="in" type="java.io.DataInput"/>
  38977. <exception name="IOException" type="java.io.IOException"/>
  38978. </method>
  38979. <doc>
  38980. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  38981. <p>
  38982. It allows the removal of selected false positives at the cost of introducing
  38983. random false negatives, and with the benefit of eliminating some random false
  38984. positives at the same time.
  38985. <p>
  38986. Originally created by
  38987. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  38988. @see Filter The general behavior of a filter
  38989. @see BloomFilter A Bloom filter
  38990. @see RemoveScheme The different selective clearing algorithms
  38991. @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>]]>
  38992. </doc>
  38993. </class>
  38994. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  38995. </package>
  38996. <package name="org.apache.hadoop.util.curator">
  38997. </package>
  38998. <package name="org.apache.hadoop.util.functional">
  38999. <!-- start class org.apache.hadoop.util.functional.CloseableTaskPoolSubmitter -->
  39000. <class name="CloseableTaskPoolSubmitter" extends="java.lang.Object"
  39001. abstract="false"
  39002. static="false" final="false" visibility="public"
  39003. deprecated="not deprecated">
  39004. <implements name="org.apache.hadoop.util.functional.TaskPool.Submitter"/>
  39005. <implements name="java.io.Closeable"/>
  39006. <constructor name="CloseableTaskPoolSubmitter" type="java.util.concurrent.ExecutorService"
  39007. static="false" final="false" visibility="public"
  39008. deprecated="not deprecated">
  39009. <doc>
  39010. <![CDATA[Constructor.
  39011. @param pool non-null executor.]]>
  39012. </doc>
  39013. </constructor>
  39014. <method name="getPool" return="java.util.concurrent.ExecutorService"
  39015. abstract="false" native="false" synchronized="false"
  39016. static="false" final="false" visibility="public"
  39017. deprecated="not deprecated">
  39018. <doc>
  39019. <![CDATA[Get the pool.
  39020. @return the pool.]]>
  39021. </doc>
  39022. </method>
  39023. <method name="close"
  39024. abstract="false" native="false" synchronized="false"
  39025. static="false" final="false" visibility="public"
  39026. deprecated="not deprecated">
  39027. <doc>
  39028. <![CDATA[Shut down the pool.]]>
  39029. </doc>
  39030. </method>
  39031. <method name="submit" return="java.util.concurrent.Future"
  39032. abstract="false" native="false" synchronized="false"
  39033. static="false" final="false" visibility="public"
  39034. deprecated="not deprecated">
  39035. <param name="task" type="java.lang.Runnable"/>
  39036. </method>
  39037. <doc>
  39038. <![CDATA[A task submitter which is closeable, and whose close() call
  39039. shuts down the pool. This can help manage
  39040. thread pool lifecycles.]]>
  39041. </doc>
  39042. </class>
  39043. <!-- end class org.apache.hadoop.util.functional.CloseableTaskPoolSubmitter -->
  39044. <!-- start class org.apache.hadoop.util.functional.FutureIO -->
  39045. <class name="FutureIO" extends="java.lang.Object"
  39046. abstract="false"
  39047. static="false" final="true" visibility="public"
  39048. deprecated="not deprecated">
  39049. <method name="awaitFuture" return="T"
  39050. abstract="false" native="false" synchronized="false"
  39051. static="true" final="false" visibility="public"
  39052. deprecated="not deprecated">
  39053. <param name="future" type="java.util.concurrent.Future"/>
  39054. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  39055. <exception name="IOException" type="java.io.IOException"/>
  39056. <exception name="RuntimeException" type="java.lang.RuntimeException"/>
  39057. <doc>
  39058. <![CDATA[Given a future, evaluate it.
  39059. <p>
  39060. Any exception generated in the future is
  39061. extracted and rethrown.
  39062. </p>
  39063. @param future future to evaluate
  39064. @param <T> type of the result.
  39065. @return the result, if all went well.
  39066. @throws InterruptedIOException future was interrupted
  39067. @throws IOException if something went wrong
  39068. @throws RuntimeException any nested RTE thrown]]>
  39069. </doc>
  39070. </method>
  39071. <method name="awaitFuture" return="T"
  39072. abstract="false" native="false" synchronized="false"
  39073. static="true" final="false" visibility="public"
  39074. deprecated="not deprecated">
  39075. <param name="future" type="java.util.concurrent.Future"/>
  39076. <param name="timeout" type="long"/>
  39077. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  39078. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  39079. <exception name="IOException" type="java.io.IOException"/>
  39080. <exception name="RuntimeException" type="java.lang.RuntimeException"/>
  39081. <exception name="TimeoutException" type="java.util.concurrent.TimeoutException"/>
  39082. <doc>
  39083. <![CDATA[Given a future, evaluate it.
  39084. <p>
  39085. Any exception generated in the future is
  39086. extracted and rethrown.
  39087. </p>
  39088. @param future future to evaluate
  39089. @param timeout timeout to wait
  39090. @param unit time unit.
  39091. @param <T> type of the result.
  39092. @return the result, if all went well.
  39093. @throws InterruptedIOException future was interrupted
  39094. @throws IOException if something went wrong
  39095. @throws RuntimeException any nested RTE thrown
  39096. @throws TimeoutException the future timed out.]]>
  39097. </doc>
  39098. </method>
  39099. <method name="raiseInnerCause" return="T"
  39100. abstract="false" native="false" synchronized="false"
  39101. static="true" final="false" visibility="public"
  39102. deprecated="not deprecated">
  39103. <param name="e" type="java.util.concurrent.ExecutionException"/>
  39104. <exception name="IOException" type="java.io.IOException"/>
  39105. <doc>
  39106. <![CDATA[From the inner cause of an execution exception, extract the inner cause
  39107. if it is an IOE or RTE.
  39108. This will always raise an exception, either the inner IOException,
  39109. an inner RuntimeException, or a new IOException wrapping the raised
  39110. exception.
  39111. @param e exception.
  39112. @param <T> type of return value.
  39113. @return nothing, ever.
  39114. @throws IOException either the inner IOException, or a wrapper around
  39115. any non-Runtime-Exception
  39116. @throws RuntimeException if that is the inner cause.]]>
  39117. </doc>
  39118. </method>
  39119. <method name="raiseInnerCause" return="T"
  39120. abstract="false" native="false" synchronized="false"
  39121. static="true" final="false" visibility="public"
  39122. deprecated="not deprecated">
  39123. <param name="e" type="java.util.concurrent.CompletionException"/>
  39124. <exception name="IOException" type="java.io.IOException"/>
  39125. <doc>
  39126. <![CDATA[Extract the cause of a completion failure and rethrow it if an IOE
  39127. or RTE.
  39128. @param e exception.
  39129. @param <T> type of return value.
  39130. @return nothing, ever.
  39131. @throws IOException either the inner IOException, or a wrapper around
  39132. any non-Runtime-Exception
  39133. @throws RuntimeException if that is the inner cause.]]>
  39134. </doc>
  39135. </method>
  39136. <method name="unwrapInnerException" return="java.io.IOException"
  39137. abstract="false" native="false" synchronized="false"
  39138. static="true" final="false" visibility="public"
  39139. deprecated="not deprecated">
  39140. <param name="e" type="java.lang.Throwable"/>
  39141. <doc>
  39142. <![CDATA[From the inner cause of an execution exception, extract the inner cause
  39143. to an IOException, raising RuntimeExceptions and Errors immediately.
  39144. <ol>
  39145. <li> If it is an IOE: Return.</li>
  39146. <li> If it is a {@link UncheckedIOException}: return the cause</li>
  39147. <li> Completion/Execution Exceptions: extract and repeat</li>
  39148. <li> If it is an RTE or Error: throw.</li>
  39149. <li> Any other type: wrap in an IOE</li>
  39150. </ol>
  39151. Recursively handles wrapped Execution and Completion Exceptions in
  39152. case something very complicated has happened.
  39153. @param e exception.
  39154. @return an IOException extracted or built from the cause.
  39155. @throws RuntimeException if that is the inner cause.
  39156. @throws Error if that is the inner cause.]]>
  39157. </doc>
  39158. </method>
  39159. <method name="propagateOptions" return="org.apache.hadoop.fs.FSBuilder"
  39160. abstract="false" native="false" synchronized="false"
  39161. static="true" final="false" visibility="public"
  39162. deprecated="not deprecated">
  39163. <param name="builder" type="org.apache.hadoop.fs.FSBuilder"/>
  39164. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39165. <param name="optionalPrefix" type="java.lang.String"/>
  39166. <param name="mandatoryPrefix" type="java.lang.String"/>
  39167. <doc>
  39168. <![CDATA[Propagate options to any builder, converting everything with the
  39169. prefix to an option where, if there were 2+ dot-separated elements,
  39170. it is converted to a schema.
  39171. See {@link #propagateOptions(FSBuilder, Configuration, String, boolean)}.
  39172. @param builder builder to modify
  39173. @param conf configuration to read
  39174. @param optionalPrefix prefix for optional settings
  39175. @param mandatoryPrefix prefix for mandatory settings
  39176. @param <T> type of result
  39177. @param <U> type of builder
  39178. @return the builder passed in.]]>
  39179. </doc>
  39180. </method>
  39181. <method name="propagateOptions"
  39182. abstract="false" native="false" synchronized="false"
  39183. static="true" final="false" visibility="public"
  39184. deprecated="not deprecated">
  39185. <param name="builder" type="org.apache.hadoop.fs.FSBuilder"/>
  39186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39187. <param name="prefix" type="java.lang.String"/>
  39188. <param name="mandatory" type="boolean"/>
  39189. <doc>
  39190. <![CDATA[Propagate options to any builder, converting everything with the
  39191. prefix to an option where, if there were 2+ dot-separated elements,
  39192. it is converted to a schema.
  39193. <pre>
  39194. fs.example.s3a.option becomes "s3a.option"
  39195. fs.example.fs.io.policy becomes "fs.io.policy"
  39196. fs.example.something becomes "something"
  39197. </pre>
  39198. @param builder builder to modify
  39199. @param conf configuration to read
  39200. @param prefix prefix to scan/strip
  39201. @param mandatory are the options to be mandatory or optional?]]>
  39202. </doc>
  39203. </method>
  39204. <method name="eval" return="java.util.concurrent.CompletableFuture"
  39205. abstract="false" native="false" synchronized="false"
  39206. static="true" final="false" visibility="public"
  39207. deprecated="not deprecated">
  39208. <param name="callable" type="org.apache.hadoop.util.functional.CallableRaisingIOE"/>
  39209. <doc>
  39210. <![CDATA[Evaluate a CallableRaisingIOE in the current thread,
  39211. converting IOEs to RTEs and propagating.
  39212. @param callable callable to invoke
  39213. @param <T> Return type.
  39214. @return the evaluated result.
  39215. @throws UnsupportedOperationException fail fast if unsupported
  39216. @throws IllegalArgumentException invalid argument]]>
  39217. </doc>
  39218. </method>
  39219. <doc>
  39220. <![CDATA[Future IO Helper methods.
  39221. <p>
  39222. Contains methods promoted from
  39223. {@link org.apache.hadoop.fs.impl.FutureIOSupport} because they
  39224. are a key part of integrating async IO in application code.
  39225. </p>
  39226. <p>
  39227. One key feature is that the {@link #awaitFuture(Future)} and
  39228. {@link #awaitFuture(Future, long, TimeUnit)} calls will
  39229. extract and rethrow exceptions raised in the future's execution,
  39230. including extracting the inner IOException of any
  39231. {@code UncheckedIOException} raised in the future.
  39232. This makes it somewhat easier to execute IOException-raising
  39233. code inside futures.
  39234. </p>]]>
  39235. </doc>
  39236. </class>
  39237. <!-- end class org.apache.hadoop.util.functional.FutureIO -->
  39238. <!-- start class org.apache.hadoop.util.functional.RemoteIterators -->
  39239. <class name="RemoteIterators" extends="java.lang.Object"
  39240. abstract="false"
  39241. static="false" final="true" visibility="public"
  39242. deprecated="not deprecated">
  39243. <method name="remoteIteratorFromSingleton" return="org.apache.hadoop.fs.RemoteIterator"
  39244. abstract="false" native="false" synchronized="false"
  39245. static="true" final="false" visibility="public"
  39246. deprecated="not deprecated">
  39247. <param name="singleton" type="T"/>
  39248. <doc>
  39249. <![CDATA[Create an iterator from a singleton.
  39250. @param singleton instance
  39251. @param <T> type
  39252. @return a remote iterator]]>
  39253. </doc>
  39254. </method>
  39255. <method name="remoteIteratorFromIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39256. abstract="false" native="false" synchronized="false"
  39257. static="true" final="false" visibility="public"
  39258. deprecated="not deprecated">
  39259. <param name="iterator" type="java.util.Iterator"/>
  39260. <doc>
  39261. <![CDATA[Create a remote iterator from a java.util.Iterator.
  39262. @param <T> type
  39263. @param iterator iterator.
  39264. @return a remote iterator]]>
  39265. </doc>
  39266. </method>
  39267. <method name="remoteIteratorFromIterable" return="org.apache.hadoop.fs.RemoteIterator"
  39268. abstract="false" native="false" synchronized="false"
  39269. static="true" final="false" visibility="public"
  39270. deprecated="not deprecated">
  39271. <param name="iterable" type="java.lang.Iterable"/>
  39272. <doc>
  39273. <![CDATA[Create a remote iterator from a java.util.Iterable -e.g. a list
  39274. or other collection.
  39275. @param <T> type
  39276. @param iterable iterable.
  39277. @return a remote iterator]]>
  39278. </doc>
  39279. </method>
  39280. <method name="remoteIteratorFromArray" return="org.apache.hadoop.fs.RemoteIterator"
  39281. abstract="false" native="false" synchronized="false"
  39282. static="true" final="false" visibility="public"
  39283. deprecated="not deprecated">
  39284. <param name="array" type="T[]"/>
  39285. <doc>
  39286. <![CDATA[Create a remote iterator from an array.
  39287. @param <T> type
  39288. @param array array.
  39289. @return a remote iterator]]>
  39290. </doc>
  39291. </method>
  39292. <method name="mappingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39293. abstract="false" native="false" synchronized="false"
  39294. static="true" final="false" visibility="public"
  39295. deprecated="not deprecated">
  39296. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39297. <param name="mapper" type="org.apache.hadoop.util.functional.FunctionRaisingIOE"/>
  39298. <doc>
  39299. <![CDATA[Create an iterator from an iterator and a transformation function.
  39300. @param <S> source type
  39301. @param <T> result type
  39302. @param iterator source
  39303. @param mapper transformation
  39304. @return a remote iterator]]>
  39305. </doc>
  39306. </method>
  39307. <method name="typeCastingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39308. abstract="false" native="false" synchronized="false"
  39309. static="true" final="false" visibility="public"
  39310. deprecated="not deprecated">
  39311. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39312. <doc>
  39313. <![CDATA[Create a RemoteIterator from a RemoteIterator, casting the
  39314. type in the process. This is to help with filesystem API
  39315. calls where overloading causes confusion (e.g. listStatusIterator())
  39316. @param <S> source type
  39317. @param <T> result type
  39318. @param iterator source
  39319. @return a remote iterator]]>
  39320. </doc>
  39321. </method>
  39322. <method name="filteringRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39323. abstract="false" native="false" synchronized="false"
  39324. static="true" final="false" visibility="public"
  39325. deprecated="not deprecated">
  39326. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39327. <param name="filter" type="org.apache.hadoop.util.functional.FunctionRaisingIOE"/>
  39328. <doc>
  39329. <![CDATA[Create a RemoteIterator from a RemoteIterator and a filter
  39330. function which returns true for every element to be passed
  39331. through.
  39332. <p>
  39333. Elements are filtered in the hasNext() method; if not used
  39334. the filtering will be done on demand in the {@code next()}
  39335. call.
  39336. </p>
  39337. @param <S> type
  39338. @param iterator source
  39339. @param filter filter
  39340. @return a remote iterator]]>
  39341. </doc>
  39342. </method>
  39343. <method name="closingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39344. abstract="false" native="false" synchronized="false"
  39345. static="true" final="false" visibility="public"
  39346. deprecated="not deprecated">
  39347. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39348. <param name="toClose" type="java.io.Closeable"/>
  39349. <doc>
  39350. <![CDATA[This adds an extra close operation alongside the passthrough
  39351. to any Closeable.close() method supported by the source iterator.
  39352. @param iterator source
  39353. @param toClose extra object to close.
  39354. @param <S> source type.
  39355. @return a new iterator]]>
  39356. </doc>
  39357. </method>
  39358. <method name="toList" return="java.util.List"
  39359. abstract="false" native="false" synchronized="false"
  39360. static="true" final="false" visibility="public"
  39361. deprecated="not deprecated">
  39362. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39363. <exception name="IOException" type="java.io.IOException"/>
  39364. <doc>
  39365. <![CDATA[Build a list from a RemoteIterator.
  39366. @param source source iterator
  39367. @param <T> type
  39368. @return a list of the values.
  39369. @throws IOException if the source RemoteIterator raises it.]]>
  39370. </doc>
  39371. </method>
  39372. <method name="toArray" return="T[]"
  39373. abstract="false" native="false" synchronized="false"
  39374. static="true" final="false" visibility="public"
  39375. deprecated="not deprecated">
  39376. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39377. <param name="a" type="T[]"/>
  39378. <exception name="IOException" type="java.io.IOException"/>
  39379. <doc>
  39380. <![CDATA[Build an array from a RemoteIterator.
  39381. @param source source iterator
  39382. @param a destination array; if too small a new array
  39383. of the same type is created
  39384. @param <T> type
  39385. @return an array of the values.
  39386. @throws IOException if the source RemoteIterator raises it.]]>
  39387. </doc>
  39388. </method>
  39389. <method name="foreach" return="long"
  39390. abstract="false" native="false" synchronized="false"
  39391. static="true" final="false" visibility="public"
  39392. deprecated="not deprecated">
  39393. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39394. <param name="consumer" type="org.apache.hadoop.util.functional.ConsumerRaisingIOE"/>
  39395. <exception name="IOException" type="java.io.IOException"/>
  39396. <doc>
  39397. <![CDATA[Apply an operation to all values of a RemoteIterator.
  39398. If the iterator is an IOStatisticsSource returning a non-null
  39399. set of statistics, <i>and</i> this classes log is set to DEBUG,
  39400. then the statistics of the operation are evaluated and logged at
  39401. debug.
  39402. <p>
  39403. The number of entries processed is returned, as it is useful to
  39404. know this, especially during tests or when reporting values
  39405. to users.
  39406. </p>
  39407. This does not close the iterator afterwards.
  39408. @param source iterator source
  39409. @param consumer consumer of the values.
  39410. @return the number of elements processed
  39411. @param <T> type of source
  39412. @throws IOException if the source RemoteIterator or the consumer raise one.]]>
  39413. </doc>
  39414. </method>
  39415. <method name="cleanupRemoteIterator"
  39416. abstract="false" native="false" synchronized="false"
  39417. static="true" final="false" visibility="public"
  39418. deprecated="not deprecated">
  39419. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39420. <doc>
  39421. <![CDATA[Clean up after an iteration.
  39422. If the log is at debug, calculate and log the IOStatistics.
  39423. If the iterator is closeable, cast and then cleanup the iterator
  39424. @param source iterator source
  39425. @param <T> type of source]]>
  39426. </doc>
  39427. </method>
  39428. <doc>
  39429. <![CDATA[A set of remote iterators supporting transformation and filtering,
  39430. with IOStatisticsSource passthrough, and of conversions of
  39431. the iterators to lists/arrays and of performing actions
  39432. on the values.
  39433. <p>
  39434. This aims to make it straightforward to use lambda-expressions to
  39435. transform the results of an iterator, without losing the statistics
  39436. in the process, and to chain the operations together.
  39437. </p>
  39438. The closeable operation will be passed through RemoteIterators which
  39439. wrap other RemoteIterators. This is to support any iterator which
  39440. can be closed to release held connections, file handles etc.
  39441. Unless client code is written to assume that RemoteIterator instances
  39442. may be closed, this is not likely to be broadly used. It is added
  39443. to make it possible to adopt this feature in a managed way.
  39444. <p>
  39445. One notable feature is that the
  39446. {@link #foreach(RemoteIterator, ConsumerRaisingIOE)} method will
  39447. LOG at debug any IOStatistics provided by the iterator, if such
  39448. statistics are provided. There's no attempt at retrieval and logging
  39449. if the LOG is not set to debug, so it is a zero cost feature unless
  39450. the logger {@code org.apache.hadoop.fs.functional.RemoteIterators}
  39451. is at DEBUG.
  39452. </p>
  39453. Based on the S3A Listing code, and some some work on moving other code
  39454. to using iterative listings so as to pick up the statistics.]]>
  39455. </doc>
  39456. </class>
  39457. <!-- end class org.apache.hadoop.util.functional.RemoteIterators -->
  39458. </package>
  39459. <package name="org.apache.hadoop.util.hash">
  39460. </package>
  39461. </api>