Apache_Hadoop_Common_3.3.6.xml 1.6 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Mon Jun 19 00:15:39 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.6"
  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.6.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.51.v20230217/jetty-server-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-http/9.4.51.v20230217/jetty-http-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-io/9.4.51.v20230217/jetty-io-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-util/9.4.51.v20230217/jetty-util-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-servlet/9.4.51.v20230217/jetty-servlet-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-security/9.4.51.v20230217/jetty-security-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-webapp/9.4.51.v20230217/jetty-webapp-9.4.51.v20230217.jar:/maven/org/eclipse/jetty/jetty-xml/9.4.51.v20230217/jetty-xml-9.4.51.v20230217.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.4/jettison-1.5.4.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.6.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/org/apache/curator/curator-framework/5.2.0/curator-framework-5.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/5.2.0/curator-client-5.2.0.jar:/maven/org/apache/curator/curator-recipes/5.2.0/curator-recipes-5.2.0.jar:/maven/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/maven/org/apache/zookeeper/zookeeper/3.6.3/zookeeper-3.6.3.jar:/maven/org/apache/zookeeper/zookeeper-jute/3.6.3/zookeeper-jute-3.6.3.jar:/maven/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/maven/io/dropwizard/metrics/metrics-core/3.2.4/metrics-core-3.2.4.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.6 -->
  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="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10113. abstract="false" native="false" synchronized="false"
  10114. static="false" final="false" visibility="public"
  10115. deprecated="not deprecated">
  10116. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10117. <param name="appendToNewBlock" type="boolean"/>
  10118. <exception name="IOException" type="java.io.IOException"/>
  10119. <doc>
  10120. <![CDATA[Append to an existing file (optional operation).
  10121. @param f the existing file to be appended.
  10122. @param appendToNewBlock whether to append data to a new block
  10123. instead of the end of the last partial block
  10124. @throws IOException IO failure
  10125. @throws UnsupportedOperationException if the operation is unsupported
  10126. (default).
  10127. @return output stream.]]>
  10128. </doc>
  10129. </method>
  10130. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10131. abstract="false" native="false" synchronized="false"
  10132. static="false" final="false" visibility="public"
  10133. deprecated="not deprecated">
  10134. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10135. <param name="bufferSize" type="int"/>
  10136. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10137. <param name="appendToNewBlock" type="boolean"/>
  10138. <exception name="IOException" type="java.io.IOException"/>
  10139. <doc>
  10140. <![CDATA[Append to an existing file (optional operation).
  10141. This function is used for being overridden by some FileSystem like DistributedFileSystem
  10142. @param f the existing file to be appended.
  10143. @param bufferSize the size of the buffer to be used.
  10144. @param progress for reporting progress if it is not null.
  10145. @param appendToNewBlock whether to append data to a new block
  10146. instead of the end of the last partial block
  10147. @throws IOException IO failure
  10148. @throws UnsupportedOperationException if the operation is unsupported
  10149. (default).
  10150. @return output stream.]]>
  10151. </doc>
  10152. </method>
  10153. <method name="concat"
  10154. abstract="false" native="false" synchronized="false"
  10155. static="false" final="false" visibility="public"
  10156. deprecated="not deprecated">
  10157. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  10158. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  10159. <exception name="IOException" type="java.io.IOException"/>
  10160. <doc>
  10161. <![CDATA[Concat existing files together.
  10162. @param trg the path to the target destination.
  10163. @param psrcs the paths to the sources to use for the concatenation.
  10164. @throws IOException IO failure
  10165. @throws UnsupportedOperationException if the operation is unsupported
  10166. (default).]]>
  10167. </doc>
  10168. </method>
  10169. <method name="getReplication" return="short"
  10170. abstract="false" native="false" synchronized="false"
  10171. static="false" final="false" visibility="public"
  10172. deprecated="Use {@link #getFileStatus(Path)} instead">
  10173. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10174. <exception name="IOException" type="java.io.IOException"/>
  10175. <doc>
  10176. <![CDATA[Get the replication factor.
  10177. @deprecated Use {@link #getFileStatus(Path)} instead
  10178. @param src file name
  10179. @return file replication
  10180. @throws FileNotFoundException if the path does not resolve.
  10181. @throws IOException an IO failure]]>
  10182. </doc>
  10183. </method>
  10184. <method name="setReplication" return="boolean"
  10185. abstract="false" native="false" synchronized="false"
  10186. static="false" final="false" visibility="public"
  10187. deprecated="not deprecated">
  10188. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10189. <param name="replication" type="short"/>
  10190. <exception name="IOException" type="java.io.IOException"/>
  10191. <doc>
  10192. <![CDATA[Set the replication for an existing file.
  10193. If a filesystem does not support replication, it will always
  10194. return true: the check for a file existing may be bypassed.
  10195. This is the default behavior.
  10196. @param src file name
  10197. @param replication new replication
  10198. @throws IOException an IO failure.
  10199. @return true if successful, or the feature in unsupported;
  10200. false if replication is supported but the file does not exist,
  10201. or is a directory]]>
  10202. </doc>
  10203. </method>
  10204. <method name="rename" return="boolean"
  10205. abstract="true" native="false" synchronized="false"
  10206. static="false" final="false" visibility="public"
  10207. deprecated="not deprecated">
  10208. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10209. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10210. <exception name="IOException" type="java.io.IOException"/>
  10211. <doc>
  10212. <![CDATA[Renames Path src to Path dst.
  10213. @param src path to be renamed
  10214. @param dst new path after rename
  10215. @throws IOException on failure
  10216. @return true if rename is successful]]>
  10217. </doc>
  10218. </method>
  10219. <method name="rename"
  10220. abstract="false" native="false" synchronized="false"
  10221. static="false" final="false" visibility="protected"
  10222. deprecated="not deprecated">
  10223. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10224. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10225. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  10226. <exception name="IOException" type="java.io.IOException"/>
  10227. <doc>
  10228. <![CDATA[Renames Path src to Path dst
  10229. <ul>
  10230. <li>Fails if src is a file and dst is a directory.</li>
  10231. <li>Fails if src is a directory and dst is a file.</li>
  10232. <li>Fails if the parent of dst does not exist or is a file.</li>
  10233. </ul>
  10234. <p>
  10235. If OVERWRITE option is not passed as an argument, rename fails
  10236. if the dst already exists.
  10237. </p>
  10238. <p>
  10239. If OVERWRITE option is passed as an argument, rename overwrites
  10240. the dst if it is a file or an empty directory. Rename fails if dst is
  10241. a non-empty directory.
  10242. </p>
  10243. Note that atomicity of rename is dependent on the file system
  10244. implementation. Please refer to the file system documentation for
  10245. details. This default implementation is non atomic.
  10246. <p>
  10247. This method is deprecated since it is a temporary method added to
  10248. support the transition from FileSystem to FileContext for user
  10249. applications.
  10250. </p>
  10251. @param src path to be renamed
  10252. @param dst new path after rename
  10253. @param options rename options.
  10254. @throws FileNotFoundException src path does not exist, or the parent
  10255. path of dst does not exist.
  10256. @throws FileAlreadyExistsException dest path exists and is a file
  10257. @throws ParentNotDirectoryException if the parent path of dest is not
  10258. a directory
  10259. @throws IOException on failure]]>
  10260. </doc>
  10261. </method>
  10262. <method name="truncate" return="boolean"
  10263. abstract="false" native="false" synchronized="false"
  10264. static="false" final="false" visibility="public"
  10265. deprecated="not deprecated">
  10266. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10267. <param name="newLength" type="long"/>
  10268. <exception name="IOException" type="java.io.IOException"/>
  10269. <doc>
  10270. <![CDATA[Truncate the file in the indicated path to the indicated size.
  10271. <ul>
  10272. <li>Fails if path is a directory.</li>
  10273. <li>Fails if path does not exist.</li>
  10274. <li>Fails if path is not closed.</li>
  10275. <li>Fails if new size is greater than current size.</li>
  10276. </ul>
  10277. @param f The path to the file to be truncated
  10278. @param newLength The size the file is to be truncated to
  10279. @return <code>true</code> if the file has been truncated to the desired
  10280. <code>newLength</code> and is immediately available to be reused for
  10281. write operations such as <code>append</code>, or
  10282. <code>false</code> if a background process of adjusting the length of
  10283. the last block has been started, and clients should wait for it to
  10284. complete before proceeding with further file updates.
  10285. @throws IOException IO failure
  10286. @throws UnsupportedOperationException if the operation is unsupported
  10287. (default).]]>
  10288. </doc>
  10289. </method>
  10290. <method name="delete" return="boolean"
  10291. abstract="false" native="false" synchronized="false"
  10292. static="false" final="false" visibility="public"
  10293. deprecated="Use {@link #delete(Path, boolean)} instead.">
  10294. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10295. <exception name="IOException" type="java.io.IOException"/>
  10296. <doc>
  10297. <![CDATA[Delete a file/directory.
  10298. @param f the path.
  10299. @throws IOException IO failure.
  10300. @return if delete success true, not false.
  10301. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  10302. </doc>
  10303. </method>
  10304. <method name="delete" return="boolean"
  10305. abstract="true" native="false" synchronized="false"
  10306. static="false" final="false" visibility="public"
  10307. deprecated="not deprecated">
  10308. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10309. <param name="recursive" type="boolean"/>
  10310. <exception name="IOException" type="java.io.IOException"/>
  10311. <doc>
  10312. <![CDATA[Delete a file.
  10313. @param f the path to delete.
  10314. @param recursive if path is a directory and set to
  10315. true, the directory is deleted else throws an exception. In
  10316. case of a file the recursive can be set to either true or false.
  10317. @return true if delete is successful else false.
  10318. @throws IOException IO failure]]>
  10319. </doc>
  10320. </method>
  10321. <method name="deleteOnExit" return="boolean"
  10322. abstract="false" native="false" synchronized="false"
  10323. static="false" final="false" visibility="public"
  10324. deprecated="not deprecated">
  10325. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10326. <exception name="IOException" type="java.io.IOException"/>
  10327. <doc>
  10328. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  10329. When the JVM shuts down cleanly, all cached FileSystem objects will be
  10330. closed automatically. These the marked paths will be deleted as a result.
  10331. If a FileSystem instance is not cached, i.e. has been created with
  10332. {@link #createFileSystem(URI, Configuration)}, then the paths will
  10333. be deleted in when {@link #close()} is called on that instance.
  10334. The path must exist in the filesystem at the time of the method call;
  10335. it does not have to exist at the time of JVM shutdown.
  10336. Notes
  10337. <ol>
  10338. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  10339. <li>The time to shut down a FileSystem will depends on the number of
  10340. files to delete. For filesystems where the cost of checking
  10341. for the existence of a file/directory and the actual delete operation
  10342. (for example: object stores) is high, the time to shutdown the JVM can be
  10343. significantly extended by over-use of this feature.</li>
  10344. <li>Connectivity problems with a remote filesystem may delay shutdown
  10345. further, and may cause the files to not be deleted.</li>
  10346. </ol>
  10347. @param f the path to delete.
  10348. @return true if deleteOnExit is successful, otherwise false.
  10349. @throws IOException IO failure]]>
  10350. </doc>
  10351. </method>
  10352. <method name="cancelDeleteOnExit" return="boolean"
  10353. abstract="false" native="false" synchronized="false"
  10354. static="false" final="false" visibility="public"
  10355. deprecated="not deprecated">
  10356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10357. <doc>
  10358. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  10359. @param f the path to cancel deletion
  10360. @return true if the path was found in the delete-on-exit list.]]>
  10361. </doc>
  10362. </method>
  10363. <method name="processDeleteOnExit"
  10364. abstract="false" native="false" synchronized="false"
  10365. static="false" final="false" visibility="protected"
  10366. deprecated="not deprecated">
  10367. <doc>
  10368. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  10369. deletes all files and directories in the specified paths.
  10370. The time to process this operation is {@code O(paths)}, with the actual
  10371. time dependent on the time for existence and deletion operations to
  10372. complete, successfully or not.]]>
  10373. </doc>
  10374. </method>
  10375. <method name="exists" return="boolean"
  10376. abstract="false" native="false" synchronized="false"
  10377. static="false" final="false" visibility="public"
  10378. deprecated="not deprecated">
  10379. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10380. <exception name="IOException" type="java.io.IOException"/>
  10381. <doc>
  10382. <![CDATA[Check if a path exists.
  10383. It is highly discouraged to call this method back to back with other
  10384. {@link #getFileStatus(Path)} calls, as this will involve multiple redundant
  10385. RPC calls in HDFS.
  10386. @param f source path
  10387. @return true if the path exists
  10388. @throws IOException IO failure]]>
  10389. </doc>
  10390. </method>
  10391. <method name="isDirectory" return="boolean"
  10392. abstract="false" native="false" synchronized="false"
  10393. static="false" final="false" visibility="public"
  10394. deprecated="Use {@link #getFileStatus(Path)} instead">
  10395. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10396. <exception name="IOException" type="java.io.IOException"/>
  10397. <doc>
  10398. <![CDATA[True iff the named path is a directory.
  10399. Note: Avoid using this method. Instead reuse the FileStatus
  10400. returned by getFileStatus() or listStatus() methods.
  10401. @param f path to check
  10402. @throws IOException IO failure
  10403. @deprecated Use {@link #getFileStatus(Path)} instead
  10404. @return if f is directory true, not false.]]>
  10405. </doc>
  10406. </method>
  10407. <method name="isFile" return="boolean"
  10408. abstract="false" native="false" synchronized="false"
  10409. static="false" final="false" visibility="public"
  10410. deprecated="Use {@link #getFileStatus(Path)} instead">
  10411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10412. <exception name="IOException" type="java.io.IOException"/>
  10413. <doc>
  10414. <![CDATA[True iff the named path is a regular file.
  10415. Note: Avoid using this method. Instead reuse the FileStatus
  10416. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  10417. @param f path to check
  10418. @throws IOException IO failure
  10419. @deprecated Use {@link #getFileStatus(Path)} instead
  10420. @return if f is file true, not false.]]>
  10421. </doc>
  10422. </method>
  10423. <method name="getLength" return="long"
  10424. abstract="false" native="false" synchronized="false"
  10425. static="false" final="false" visibility="public"
  10426. deprecated="Use {@link #getFileStatus(Path)} instead.">
  10427. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10428. <exception name="IOException" type="java.io.IOException"/>
  10429. <doc>
  10430. <![CDATA[The number of bytes in a file.
  10431. @param f the path.
  10432. @return the number of bytes; 0 for a directory
  10433. @deprecated Use {@link #getFileStatus(Path)} instead.
  10434. @throws FileNotFoundException if the path does not resolve
  10435. @throws IOException IO failure]]>
  10436. </doc>
  10437. </method>
  10438. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  10439. abstract="false" native="false" synchronized="false"
  10440. static="false" final="false" visibility="public"
  10441. deprecated="not deprecated">
  10442. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10443. <exception name="IOException" type="java.io.IOException"/>
  10444. <doc>
  10445. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  10446. @param f path to use
  10447. @throws FileNotFoundException if the path does not resolve
  10448. @throws IOException IO failure
  10449. @return content summary.]]>
  10450. </doc>
  10451. </method>
  10452. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  10453. abstract="false" native="false" synchronized="false"
  10454. static="false" final="false" visibility="public"
  10455. deprecated="not deprecated">
  10456. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10457. <exception name="IOException" type="java.io.IOException"/>
  10458. <doc>
  10459. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  10460. @param f path to use
  10461. @return the quota usage
  10462. @throws IOException IO failure]]>
  10463. </doc>
  10464. </method>
  10465. <method name="setQuota"
  10466. abstract="false" native="false" synchronized="false"
  10467. static="false" final="false" visibility="public"
  10468. deprecated="not deprecated">
  10469. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10470. <param name="namespaceQuota" type="long"/>
  10471. <param name="storagespaceQuota" type="long"/>
  10472. <exception name="IOException" type="java.io.IOException"/>
  10473. <doc>
  10474. <![CDATA[Set quota for the given {@link Path}.
  10475. @param src the target path to set quota for
  10476. @param namespaceQuota the namespace quota (i.e., # of files/directories)
  10477. to set
  10478. @param storagespaceQuota the storage space quota to set
  10479. @throws IOException IO failure]]>
  10480. </doc>
  10481. </method>
  10482. <method name="setQuotaByStorageType"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10487. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  10488. <param name="quota" type="long"/>
  10489. <exception name="IOException" type="java.io.IOException"/>
  10490. <doc>
  10491. <![CDATA[Set per storage type quota for the given {@link Path}.
  10492. @param src the target path to set storage type quota for
  10493. @param type the storage type to set
  10494. @param quota the quota to set for the given storage type
  10495. @throws IOException IO failure]]>
  10496. </doc>
  10497. </method>
  10498. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10499. abstract="true" native="false" synchronized="false"
  10500. static="false" final="false" visibility="public"
  10501. deprecated="not deprecated">
  10502. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10503. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10504. <exception name="IOException" type="java.io.IOException"/>
  10505. <doc>
  10506. <![CDATA[List the statuses of the files/directories in the given path if the path is
  10507. a directory.
  10508. <p>
  10509. Does not guarantee to return the List of files/directories status in a
  10510. sorted order.
  10511. <p>
  10512. Will not return null. Expect IOException upon access error.
  10513. @param f given path
  10514. @return the statuses of the files/directories in the given patch
  10515. @throws FileNotFoundException when the path does not exist
  10516. @throws IOException see specific implementation]]>
  10517. </doc>
  10518. </method>
  10519. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  10520. abstract="false" native="false" synchronized="false"
  10521. static="false" final="false" visibility="public"
  10522. deprecated="not deprecated">
  10523. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10524. <exception name="IOException" type="java.io.IOException"/>
  10525. <doc>
  10526. <![CDATA[List corrupted file blocks.
  10527. @param path the path.
  10528. @return an iterator over the corrupt files under the given path
  10529. (may contain duplicates if a file has more than one corrupt block)
  10530. @throws UnsupportedOperationException if the operation is unsupported
  10531. (default).
  10532. @throws IOException IO failure]]>
  10533. </doc>
  10534. </method>
  10535. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10536. abstract="false" native="false" synchronized="false"
  10537. static="false" final="false" visibility="public"
  10538. deprecated="not deprecated">
  10539. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10540. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10541. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10542. <exception name="IOException" type="java.io.IOException"/>
  10543. <doc>
  10544. <![CDATA[Filter files/directories in the given path using the user-supplied path
  10545. filter.
  10546. <p>
  10547. Does not guarantee to return the List of files/directories status in a
  10548. sorted order.
  10549. @param f
  10550. a path name
  10551. @param filter
  10552. the user-supplied path filter
  10553. @return an array of FileStatus objects for the files under the given path
  10554. after applying the filter
  10555. @throws FileNotFoundException when the path does not exist
  10556. @throws IOException see specific implementation]]>
  10557. </doc>
  10558. </method>
  10559. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10560. abstract="false" native="false" synchronized="false"
  10561. static="false" final="false" visibility="public"
  10562. deprecated="not deprecated">
  10563. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  10564. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10565. <exception name="IOException" type="java.io.IOException"/>
  10566. <doc>
  10567. <![CDATA[Filter files/directories in the given list of paths using default
  10568. path filter.
  10569. <p>
  10570. Does not guarantee to return the List of files/directories status in a
  10571. sorted order.
  10572. @param files
  10573. a list of paths
  10574. @return a list of statuses for the files under the given paths after
  10575. applying the filter default Path filter
  10576. @throws FileNotFoundException when the path does not exist
  10577. @throws IOException see specific implementation]]>
  10578. </doc>
  10579. </method>
  10580. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10581. abstract="false" native="false" synchronized="false"
  10582. static="false" final="false" visibility="public"
  10583. deprecated="not deprecated">
  10584. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  10585. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10586. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10587. <exception name="IOException" type="java.io.IOException"/>
  10588. <doc>
  10589. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  10590. path filter.
  10591. <p>
  10592. Does not guarantee to return the List of files/directories status in a
  10593. sorted order.
  10594. @param files
  10595. a list of paths
  10596. @param filter
  10597. the user-supplied path filter
  10598. @return a list of statuses for the files under the given paths after
  10599. applying the filter
  10600. @throws FileNotFoundException when the path does not exist
  10601. @throws IOException see specific implementation]]>
  10602. </doc>
  10603. </method>
  10604. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10605. abstract="false" native="false" synchronized="false"
  10606. static="false" final="false" visibility="public"
  10607. deprecated="not deprecated">
  10608. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  10609. <exception name="IOException" type="java.io.IOException"/>
  10610. <doc>
  10611. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  10612. files. Results are sorted by their names.
  10613. <p>
  10614. A filename pattern is composed of <i>regular</i> characters and
  10615. <i>special pattern matching</i> characters, which are:
  10616. <dl>
  10617. <dd>
  10618. <dl>
  10619. <dt> <tt> ? </tt>
  10620. <dd> Matches any single character.
  10621. <dt> <tt> * </tt>
  10622. <dd> Matches zero or more characters.
  10623. <dt> <tt> [<i>abc</i>] </tt>
  10624. <dd> Matches a single character from character set
  10625. <tt>{<i>a,b,c</i>}</tt>.
  10626. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  10627. <dd> Matches a single character from the character range
  10628. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  10629. lexicographically less than or equal to character <tt><i>b</i></tt>.
  10630. <dt> <tt> [^<i>a</i>] </tt>
  10631. <dd> Matches a single character that is not from character set or range
  10632. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  10633. immediately to the right of the opening bracket.
  10634. <dt> <tt> \<i>c</i> </tt>
  10635. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  10636. <dt> <tt> {ab,cd} </tt>
  10637. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  10638. <dt> <tt> {ab,c{de,fh}} </tt>
  10639. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  10640. </dl>
  10641. </dd>
  10642. </dl>
  10643. @param pathPattern a glob specifying a path pattern
  10644. @return an array of paths that match the path pattern
  10645. @throws IOException IO failure]]>
  10646. </doc>
  10647. </method>
  10648. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10649. abstract="false" native="false" synchronized="false"
  10650. static="false" final="false" visibility="public"
  10651. deprecated="not deprecated">
  10652. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  10653. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10654. <exception name="IOException" type="java.io.IOException"/>
  10655. <doc>
  10656. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  10657. {@code pathPattern} and is accepted by the user-supplied path filter.
  10658. Results are sorted by their path names.
  10659. @param pathPattern a glob specifying the path pattern
  10660. @param filter a user-supplied path filter
  10661. @return null if {@code pathPattern} has no glob and the path does not exist
  10662. an empty array if {@code pathPattern} has a glob and no path
  10663. matches it else an array of {@link FileStatus} objects matching the
  10664. pattern
  10665. @throws IOException if any I/O error occurs when fetching file status]]>
  10666. </doc>
  10667. </method>
  10668. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10669. abstract="false" native="false" synchronized="false"
  10670. static="false" final="false" visibility="public"
  10671. deprecated="not deprecated">
  10672. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10673. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10674. <exception name="IOException" type="java.io.IOException"/>
  10675. <doc>
  10676. <![CDATA[List the statuses of the files/directories in the given path if the path is
  10677. a directory.
  10678. Return the file's status and block locations If the path is a file.
  10679. If a returned status is a file, it contains the file's block locations.
  10680. @param f is the path
  10681. @return an iterator that traverses statuses of the files/directories
  10682. in the given path
  10683. @throws FileNotFoundException If <code>f</code> does not exist
  10684. @throws IOException If an I/O error occurred]]>
  10685. </doc>
  10686. </method>
  10687. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10688. abstract="false" native="false" synchronized="false"
  10689. static="false" final="false" visibility="protected"
  10690. deprecated="not deprecated">
  10691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10692. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10693. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10694. <exception name="IOException" type="java.io.IOException"/>
  10695. <doc>
  10696. <![CDATA[List a directory.
  10697. The returned results include its block location if it is a file
  10698. The results are filtered by the given path filter
  10699. @param f a path
  10700. @param filter a path filter
  10701. @return an iterator that traverses statuses of the files/directories
  10702. in the given path
  10703. @throws FileNotFoundException if <code>f</code> does not exist
  10704. @throws IOException if any I/O error occurred]]>
  10705. </doc>
  10706. </method>
  10707. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  10708. abstract="false" native="false" synchronized="false"
  10709. static="false" final="false" visibility="public"
  10710. deprecated="not deprecated">
  10711. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10712. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10713. <exception name="IOException" type="java.io.IOException"/>
  10714. <doc>
  10715. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  10716. while consuming the entries. Each FileSystem implementation should
  10717. override this method and provide a more efficient implementation, if
  10718. possible.
  10719. Does not guarantee to return the iterator that traverses statuses
  10720. of the files in a sorted order.
  10721. @param p target path
  10722. @return remote iterator
  10723. @throws FileNotFoundException if <code>p</code> does not exist
  10724. @throws IOException if any I/O error occurred]]>
  10725. </doc>
  10726. </method>
  10727. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  10728. abstract="false" native="false" synchronized="false"
  10729. static="false" final="false" visibility="public"
  10730. deprecated="not deprecated">
  10731. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10732. <param name="recursive" type="boolean"/>
  10733. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10734. <exception name="IOException" type="java.io.IOException"/>
  10735. <doc>
  10736. <![CDATA[List the statuses and block locations of the files in the given path.
  10737. Does not guarantee to return the iterator that traverses statuses
  10738. of the files in a sorted order.
  10739. <pre>
  10740. If the path is a directory,
  10741. if recursive is false, returns files in the directory;
  10742. if recursive is true, return files in the subtree rooted at the path.
  10743. If the path is a file, return the file's status and block locations.
  10744. </pre>
  10745. @param f is the path
  10746. @param recursive if the subdirectories need to be traversed recursively
  10747. @return an iterator that traverses statuses of the files
  10748. @throws FileNotFoundException when the path does not exist;
  10749. @throws IOException see specific implementation]]>
  10750. </doc>
  10751. </method>
  10752. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10753. abstract="false" native="false" synchronized="false"
  10754. static="false" final="false" visibility="public"
  10755. deprecated="not deprecated">
  10756. <doc>
  10757. <![CDATA[Return the current user's home directory in this FileSystem.
  10758. The default implementation returns {@code "/user/$USER/"}.
  10759. @return the path.]]>
  10760. </doc>
  10761. </method>
  10762. <method name="setWorkingDirectory"
  10763. abstract="true" native="false" synchronized="false"
  10764. static="false" final="false" visibility="public"
  10765. deprecated="not deprecated">
  10766. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  10767. <doc>
  10768. <![CDATA[Set the current working directory for the given FileSystem. All relative
  10769. paths will be resolved relative to it.
  10770. @param new_dir Path of new working directory]]>
  10771. </doc>
  10772. </method>
  10773. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10774. abstract="true" native="false" synchronized="false"
  10775. static="false" final="false" visibility="public"
  10776. deprecated="not deprecated">
  10777. <doc>
  10778. <![CDATA[Get the current working directory for the given FileSystem
  10779. @return the directory pathname]]>
  10780. </doc>
  10781. </method>
  10782. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10783. abstract="false" native="false" synchronized="false"
  10784. static="false" final="false" visibility="protected"
  10785. deprecated="not deprecated">
  10786. <doc>
  10787. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  10788. will be removed.
  10789. The working directory is implemented in FileContext.
  10790. Some FileSystems like LocalFileSystem have an initial workingDir
  10791. that we use as the starting workingDir. For other file systems
  10792. like HDFS there is no built in notion of an initial workingDir.
  10793. @return if there is built in notion of workingDir then it
  10794. is returned; else a null is returned.]]>
  10795. </doc>
  10796. </method>
  10797. <method name="mkdirs" return="boolean"
  10798. abstract="false" native="false" synchronized="false"
  10799. static="false" final="false" visibility="public"
  10800. deprecated="not deprecated">
  10801. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10802. <exception name="IOException" type="java.io.IOException"/>
  10803. <doc>
  10804. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  10805. @param f path
  10806. @return true if the directory was created
  10807. @throws IOException IO failure]]>
  10808. </doc>
  10809. </method>
  10810. <method name="mkdirs" return="boolean"
  10811. abstract="true" native="false" synchronized="false"
  10812. static="false" final="false" visibility="public"
  10813. deprecated="not deprecated">
  10814. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10815. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10816. <exception name="IOException" type="java.io.IOException"/>
  10817. <doc>
  10818. <![CDATA[Make the given file and all non-existent parents into
  10819. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  10820. Existence of the directory hierarchy is not an error.
  10821. @param f path to create
  10822. @param permission to apply to f
  10823. @throws IOException IO failure
  10824. @return if mkdir success true, not false.]]>
  10825. </doc>
  10826. </method>
  10827. <method name="copyFromLocalFile"
  10828. abstract="false" native="false" synchronized="false"
  10829. static="false" final="false" visibility="public"
  10830. deprecated="not deprecated">
  10831. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10832. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10833. <exception name="IOException" type="java.io.IOException"/>
  10834. <doc>
  10835. <![CDATA[The src file is on the local disk. Add it to filesystem at
  10836. the given dst name and the source is kept intact afterwards
  10837. @param src path
  10838. @param dst path
  10839. @throws IOException IO failure]]>
  10840. </doc>
  10841. </method>
  10842. <method name="moveFromLocalFile"
  10843. abstract="false" native="false" synchronized="false"
  10844. static="false" final="false" visibility="public"
  10845. deprecated="not deprecated">
  10846. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10847. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10848. <exception name="IOException" type="java.io.IOException"/>
  10849. <doc>
  10850. <![CDATA[The src files is on the local disk. Add it to filesystem at
  10851. the given dst name, removing the source afterwards.
  10852. @param srcs source paths
  10853. @param dst path
  10854. @throws IOException IO failure]]>
  10855. </doc>
  10856. </method>
  10857. <method name="moveFromLocalFile"
  10858. abstract="false" native="false" synchronized="false"
  10859. static="false" final="false" visibility="public"
  10860. deprecated="not deprecated">
  10861. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10862. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10863. <exception name="IOException" type="java.io.IOException"/>
  10864. <doc>
  10865. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10866. the given dst name, removing the source afterwards.
  10867. @param src local path
  10868. @param dst path
  10869. @throws IOException IO failure]]>
  10870. </doc>
  10871. </method>
  10872. <method name="copyFromLocalFile"
  10873. abstract="false" native="false" synchronized="false"
  10874. static="false" final="false" visibility="public"
  10875. deprecated="not deprecated">
  10876. <param name="delSrc" type="boolean"/>
  10877. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10878. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10879. <exception name="IOException" type="java.io.IOException"/>
  10880. <doc>
  10881. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10882. the given dst name.
  10883. delSrc indicates if the source should be removed
  10884. @param delSrc whether to delete the src
  10885. @param src path
  10886. @param dst path
  10887. @throws IOException IO failure.]]>
  10888. </doc>
  10889. </method>
  10890. <method name="copyFromLocalFile"
  10891. abstract="false" native="false" synchronized="false"
  10892. static="false" final="false" visibility="public"
  10893. deprecated="not deprecated">
  10894. <param name="delSrc" type="boolean"/>
  10895. <param name="overwrite" type="boolean"/>
  10896. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10897. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10898. <exception name="IOException" type="java.io.IOException"/>
  10899. <doc>
  10900. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  10901. the given dst name.
  10902. delSrc indicates if the source should be removed
  10903. @param delSrc whether to delete the src
  10904. @param overwrite whether to overwrite an existing file
  10905. @param srcs array of paths which are source
  10906. @param dst path
  10907. @throws IOException IO failure]]>
  10908. </doc>
  10909. </method>
  10910. <method name="copyFromLocalFile"
  10911. abstract="false" native="false" synchronized="false"
  10912. static="false" final="false" visibility="public"
  10913. deprecated="not deprecated">
  10914. <param name="delSrc" type="boolean"/>
  10915. <param name="overwrite" type="boolean"/>
  10916. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10917. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10918. <exception name="IOException" type="java.io.IOException"/>
  10919. <doc>
  10920. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  10921. the given dst name.
  10922. delSrc indicates if the source should be removed
  10923. @param delSrc whether to delete the src
  10924. @param overwrite whether to overwrite an existing file
  10925. @param src path
  10926. @param dst path
  10927. @throws IOException IO failure]]>
  10928. </doc>
  10929. </method>
  10930. <method name="copyToLocalFile"
  10931. abstract="false" native="false" synchronized="false"
  10932. static="false" final="false" visibility="public"
  10933. deprecated="not deprecated">
  10934. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10935. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10936. <exception name="IOException" type="java.io.IOException"/>
  10937. <doc>
  10938. <![CDATA[Copy it a file from the remote filesystem to the local one.
  10939. @param src path src file in the remote filesystem
  10940. @param dst path local destination
  10941. @throws IOException IO failure]]>
  10942. </doc>
  10943. </method>
  10944. <method name="moveToLocalFile"
  10945. abstract="false" native="false" synchronized="false"
  10946. static="false" final="false" visibility="public"
  10947. deprecated="not deprecated">
  10948. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10949. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10950. <exception name="IOException" type="java.io.IOException"/>
  10951. <doc>
  10952. <![CDATA[Copy a file to the local filesystem, then delete it from the
  10953. remote filesystem (if successfully copied).
  10954. @param src path src file in the remote filesystem
  10955. @param dst path local destination
  10956. @throws IOException IO failure]]>
  10957. </doc>
  10958. </method>
  10959. <method name="copyToLocalFile"
  10960. abstract="false" native="false" synchronized="false"
  10961. static="false" final="false" visibility="public"
  10962. deprecated="not deprecated">
  10963. <param name="delSrc" type="boolean"/>
  10964. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10965. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10966. <exception name="IOException" type="java.io.IOException"/>
  10967. <doc>
  10968. <![CDATA[Copy it a file from a remote filesystem to the local one.
  10969. delSrc indicates if the src will be removed or not.
  10970. @param delSrc whether to delete the src
  10971. @param src path src file in the remote filesystem
  10972. @param dst path local destination
  10973. @throws IOException IO failure]]>
  10974. </doc>
  10975. </method>
  10976. <method name="copyToLocalFile"
  10977. abstract="false" native="false" synchronized="false"
  10978. static="false" final="false" visibility="public"
  10979. deprecated="not deprecated">
  10980. <param name="delSrc" type="boolean"/>
  10981. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10982. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10983. <param name="useRawLocalFileSystem" type="boolean"/>
  10984. <exception name="IOException" type="java.io.IOException"/>
  10985. <doc>
  10986. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  10987. Copy it from the remote filesystem to the local dst name.
  10988. delSrc indicates if the src will be removed
  10989. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  10990. as the local file system or not. RawLocalFileSystem is non checksumming,
  10991. So, It will not create any crc files at local.
  10992. @param delSrc
  10993. whether to delete the src
  10994. @param src
  10995. path
  10996. @param dst
  10997. path
  10998. @param useRawLocalFileSystem
  10999. whether to use RawLocalFileSystem as local file system or not.
  11000. @throws IOException for any IO error]]>
  11001. </doc>
  11002. </method>
  11003. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11004. abstract="false" native="false" synchronized="false"
  11005. static="false" final="false" visibility="public"
  11006. deprecated="not deprecated">
  11007. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11008. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11009. <exception name="IOException" type="java.io.IOException"/>
  11010. <doc>
  11011. <![CDATA[Returns a local file that the user can write output to. The caller
  11012. provides both the eventual target name in this FileSystem
  11013. and the local working file path.
  11014. If this FileSystem is local, we write directly into the target. If
  11015. the FileSystem is not local, we write into the tmp local area.
  11016. @param fsOutputFile path of output file
  11017. @param tmpLocalFile path of local tmp file
  11018. @throws IOException IO failure
  11019. @return the path.]]>
  11020. </doc>
  11021. </method>
  11022. <method name="completeLocalOutput"
  11023. abstract="false" native="false" synchronized="false"
  11024. static="false" final="false" visibility="public"
  11025. deprecated="not deprecated">
  11026. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11027. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11028. <exception name="IOException" type="java.io.IOException"/>
  11029. <doc>
  11030. <![CDATA[Called when we're all done writing to the target.
  11031. A local FS will do nothing, because we've written to exactly the
  11032. right place.
  11033. A remote FS will copy the contents of tmpLocalFile to the correct target at
  11034. fsOutputFile.
  11035. @param fsOutputFile path of output file
  11036. @param tmpLocalFile path to local tmp file
  11037. @throws IOException IO failure]]>
  11038. </doc>
  11039. </method>
  11040. <method name="close"
  11041. abstract="false" native="false" synchronized="false"
  11042. static="false" final="false" visibility="public"
  11043. deprecated="not deprecated">
  11044. <exception name="IOException" type="java.io.IOException"/>
  11045. <doc>
  11046. <![CDATA[Close this FileSystem instance.
  11047. Will release any held locks, delete all files queued for deletion
  11048. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  11049. from the cache, if cached.
  11050. After this operation, the outcome of any method call on this FileSystem
  11051. instance, or any input/output stream created by it is <i>undefined</i>.
  11052. @throws IOException IO failure]]>
  11053. </doc>
  11054. </method>
  11055. <method name="getUsed" return="long"
  11056. abstract="false" native="false" synchronized="false"
  11057. static="false" final="false" visibility="public"
  11058. deprecated="not deprecated">
  11059. <exception name="IOException" type="java.io.IOException"/>
  11060. <doc>
  11061. <![CDATA[Return the total size of all files in the filesystem.
  11062. @throws IOException IO failure
  11063. @return the number of path used.]]>
  11064. </doc>
  11065. </method>
  11066. <method name="getUsed" return="long"
  11067. abstract="false" native="false" synchronized="false"
  11068. static="false" final="false" visibility="public"
  11069. deprecated="not deprecated">
  11070. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11071. <exception name="IOException" type="java.io.IOException"/>
  11072. <doc>
  11073. <![CDATA[Return the total size of all files from a specified path.
  11074. @param path the path.
  11075. @throws IOException IO failure
  11076. @return the number of path content summary.]]>
  11077. </doc>
  11078. </method>
  11079. <method name="getBlockSize" return="long"
  11080. abstract="false" native="false" synchronized="false"
  11081. static="false" final="false" visibility="public"
  11082. deprecated="Use {@link #getFileStatus(Path)} instead">
  11083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11084. <exception name="IOException" type="java.io.IOException"/>
  11085. <doc>
  11086. <![CDATA[Get the block size for a particular file.
  11087. @param f the filename
  11088. @return the number of bytes in a block
  11089. @deprecated Use {@link #getFileStatus(Path)} instead
  11090. @throws FileNotFoundException if the path is not present
  11091. @throws IOException IO failure]]>
  11092. </doc>
  11093. </method>
  11094. <method name="getDefaultBlockSize" return="long"
  11095. abstract="false" native="false" synchronized="false"
  11096. static="false" final="false" visibility="public"
  11097. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  11098. <doc>
  11099. <![CDATA[Return the number of bytes that large input files should be optimally
  11100. be split into to minimize I/O time.
  11101. @deprecated use {@link #getDefaultBlockSize(Path)} instead
  11102. @return default block size.]]>
  11103. </doc>
  11104. </method>
  11105. <method name="getDefaultBlockSize" return="long"
  11106. abstract="false" native="false" synchronized="false"
  11107. static="false" final="false" visibility="public"
  11108. deprecated="not deprecated">
  11109. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11110. <doc>
  11111. <![CDATA[Return the number of bytes that large input files should be optimally
  11112. be split into to minimize I/O time. The given path will be used to
  11113. locate the actual filesystem. The full path does not have to exist.
  11114. @param f path of file
  11115. @return the default block size for the path's filesystem]]>
  11116. </doc>
  11117. </method>
  11118. <method name="getDefaultReplication" return="short"
  11119. abstract="false" native="false" synchronized="false"
  11120. static="false" final="false" visibility="public"
  11121. deprecated="use {@link #getDefaultReplication(Path)} instead">
  11122. <doc>
  11123. <![CDATA[Get the default replication.
  11124. @return the replication; the default value is "1".
  11125. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  11126. </doc>
  11127. </method>
  11128. <method name="getDefaultReplication" return="short"
  11129. abstract="false" native="false" synchronized="false"
  11130. static="false" final="false" visibility="public"
  11131. deprecated="not deprecated">
  11132. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11133. <doc>
  11134. <![CDATA[Get the default replication for a path.
  11135. The given path will be used to locate the actual FileSystem to query.
  11136. The full path does not have to exist.
  11137. @param path of the file
  11138. @return default replication for the path's filesystem]]>
  11139. </doc>
  11140. </method>
  11141. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11142. abstract="true" native="false" synchronized="false"
  11143. static="false" final="false" visibility="public"
  11144. deprecated="not deprecated">
  11145. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11146. <exception name="IOException" type="java.io.IOException"/>
  11147. <doc>
  11148. <![CDATA[Return a file status object that represents the path.
  11149. @param f The path we want information from
  11150. @return a FileStatus object
  11151. @throws FileNotFoundException when the path does not exist
  11152. @throws IOException see specific implementation]]>
  11153. </doc>
  11154. </method>
  11155. <method name="msync"
  11156. abstract="false" native="false" synchronized="false"
  11157. static="false" final="false" visibility="public"
  11158. deprecated="not deprecated">
  11159. <exception name="IOException" type="java.io.IOException"/>
  11160. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11161. <doc>
  11162. <![CDATA[Synchronize client metadata state.
  11163. <p>
  11164. In some FileSystem implementations such as HDFS metadata
  11165. synchronization is essential to guarantee consistency of read requests
  11166. particularly in HA setting.
  11167. @throws IOException If an I/O error occurred.
  11168. @throws UnsupportedOperationException if the operation is unsupported.]]>
  11169. </doc>
  11170. </method>
  11171. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  11172. abstract="false" native="false" synchronized="false"
  11173. static="false" final="false" visibility="protected"
  11174. deprecated="not deprecated">
  11175. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11176. <doc>
  11177. <![CDATA[See {@link FileContext#fixRelativePart}.
  11178. @param p the path.
  11179. @return relative part.]]>
  11180. </doc>
  11181. </method>
  11182. <method name="createSymlink"
  11183. abstract="false" native="false" synchronized="false"
  11184. static="false" final="false" visibility="public"
  11185. deprecated="not deprecated">
  11186. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11187. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11188. <param name="createParent" type="boolean"/>
  11189. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11190. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  11191. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11192. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  11193. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11194. <exception name="IOException" type="java.io.IOException"/>
  11195. <doc>
  11196. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.
  11197. @param target target path.
  11198. @param link link.
  11199. @param createParent create parent.
  11200. @throws AccessControlException if access is denied.
  11201. @throws FileAlreadyExistsException when the path does not exist.
  11202. @throws FileNotFoundException when the path does not exist.
  11203. @throws ParentNotDirectoryException if the parent path of dest is not
  11204. a directory.
  11205. @throws UnsupportedFileSystemException if there was no known implementation
  11206. for the scheme.
  11207. @throws IOException raised on errors performing I/O.]]>
  11208. </doc>
  11209. </method>
  11210. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11211. abstract="false" native="false" synchronized="false"
  11212. static="false" final="false" visibility="public"
  11213. deprecated="not deprecated">
  11214. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11215. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11216. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11217. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11218. <exception name="IOException" type="java.io.IOException"/>
  11219. <doc>
  11220. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  11221. @param f the path.
  11222. @throws AccessControlException if access is denied.
  11223. @throws FileNotFoundException when the path does not exist.
  11224. @throws IOException raised on errors performing I/O.
  11225. @throws UnsupportedFileSystemException if there was no known implementation
  11226. for the scheme.
  11227. @return file status]]>
  11228. </doc>
  11229. </method>
  11230. <method name="supportsSymlinks" return="boolean"
  11231. abstract="false" native="false" synchronized="false"
  11232. static="false" final="false" visibility="public"
  11233. deprecated="not deprecated">
  11234. <doc>
  11235. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.
  11236. @return if support symlinkls true, not false.]]>
  11237. </doc>
  11238. </method>
  11239. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11240. abstract="false" native="false" synchronized="false"
  11241. static="false" final="false" visibility="public"
  11242. deprecated="not deprecated">
  11243. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11244. <exception name="IOException" type="java.io.IOException"/>
  11245. <doc>
  11246. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  11247. @param f the path.
  11248. @throws UnsupportedOperationException if the operation is unsupported
  11249. (default outcome).
  11250. @throws IOException IO failure.
  11251. @return the path.]]>
  11252. </doc>
  11253. </method>
  11254. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  11255. abstract="false" native="false" synchronized="false"
  11256. static="false" final="false" visibility="protected"
  11257. deprecated="not deprecated">
  11258. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11259. <exception name="IOException" type="java.io.IOException"/>
  11260. <doc>
  11261. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  11262. @param f the path.
  11263. @throws UnsupportedOperationException if the operation is unsupported
  11264. (default outcome).
  11265. @throws IOException IO failure.
  11266. @return the path.]]>
  11267. </doc>
  11268. </method>
  11269. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11270. abstract="false" native="false" synchronized="false"
  11271. static="false" final="false" visibility="public"
  11272. deprecated="not deprecated">
  11273. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11274. <exception name="IOException" type="java.io.IOException"/>
  11275. <doc>
  11276. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  11277. @param f The file path
  11278. @return The file checksum. The default return value is null,
  11279. which indicates that no checksum algorithm is implemented
  11280. in the corresponding FileSystem.
  11281. @throws IOException IO failure]]>
  11282. </doc>
  11283. </method>
  11284. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11285. abstract="false" native="false" synchronized="false"
  11286. static="false" final="false" visibility="public"
  11287. deprecated="not deprecated">
  11288. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11289. <param name="length" type="long"/>
  11290. <exception name="IOException" type="java.io.IOException"/>
  11291. <doc>
  11292. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  11293. specific length.
  11294. @param f The file path
  11295. @param length The length of the file range for checksum calculation
  11296. @return The file checksum or null if checksums are not supported.
  11297. @throws IOException IO failure]]>
  11298. </doc>
  11299. </method>
  11300. <method name="setVerifyChecksum"
  11301. abstract="false" native="false" synchronized="false"
  11302. static="false" final="false" visibility="public"
  11303. deprecated="not deprecated">
  11304. <param name="verifyChecksum" type="boolean"/>
  11305. <doc>
  11306. <![CDATA[Set the verify checksum flag. This is only applicable if the
  11307. corresponding filesystem supports checksums.
  11308. By default doesn't do anything.
  11309. @param verifyChecksum Verify checksum flag]]>
  11310. </doc>
  11311. </method>
  11312. <method name="setWriteChecksum"
  11313. abstract="false" native="false" synchronized="false"
  11314. static="false" final="false" visibility="public"
  11315. deprecated="not deprecated">
  11316. <param name="writeChecksum" type="boolean"/>
  11317. <doc>
  11318. <![CDATA[Set the write checksum flag. This is only applicable if the
  11319. corresponding filesystem supports checksums.
  11320. By default doesn't do anything.
  11321. @param writeChecksum Write checksum flag]]>
  11322. </doc>
  11323. </method>
  11324. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11325. abstract="false" native="false" synchronized="false"
  11326. static="false" final="false" visibility="public"
  11327. deprecated="not deprecated">
  11328. <exception name="IOException" type="java.io.IOException"/>
  11329. <doc>
  11330. <![CDATA[Returns a status object describing the use and capacity of the
  11331. filesystem. If the filesystem has multiple partitions, the
  11332. use and capacity of the root partition is reflected.
  11333. @return a FsStatus object
  11334. @throws IOException
  11335. see specific implementation]]>
  11336. </doc>
  11337. </method>
  11338. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11339. abstract="false" native="false" synchronized="false"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11343. <exception name="IOException" type="java.io.IOException"/>
  11344. <doc>
  11345. <![CDATA[Returns a status object describing the use and capacity of the
  11346. filesystem. If the filesystem has multiple partitions, the
  11347. use and capacity of the partition pointed to by the specified
  11348. path is reflected.
  11349. @param p Path for which status should be obtained. null means
  11350. the default partition.
  11351. @return a FsStatus object
  11352. @throws IOException
  11353. see specific implementation]]>
  11354. </doc>
  11355. </method>
  11356. <method name="setPermission"
  11357. abstract="false" native="false" synchronized="false"
  11358. static="false" final="false" visibility="public"
  11359. deprecated="not deprecated">
  11360. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11361. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11362. <exception name="IOException" type="java.io.IOException"/>
  11363. <doc>
  11364. <![CDATA[Set permission of a path.
  11365. @param p The path
  11366. @param permission permission
  11367. @throws IOException IO failure]]>
  11368. </doc>
  11369. </method>
  11370. <method name="setOwner"
  11371. abstract="false" native="false" synchronized="false"
  11372. static="false" final="false" visibility="public"
  11373. deprecated="not deprecated">
  11374. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11375. <param name="username" type="java.lang.String"/>
  11376. <param name="groupname" type="java.lang.String"/>
  11377. <exception name="IOException" type="java.io.IOException"/>
  11378. <doc>
  11379. <![CDATA[Set owner of a path (i.e. a file or a directory).
  11380. The parameters username and groupname cannot both be null.
  11381. @param p The path
  11382. @param username If it is null, the original username remains unchanged.
  11383. @param groupname If it is null, the original groupname remains unchanged.
  11384. @throws IOException IO failure]]>
  11385. </doc>
  11386. </method>
  11387. <method name="setTimes"
  11388. abstract="false" native="false" synchronized="false"
  11389. static="false" final="false" visibility="public"
  11390. deprecated="not deprecated">
  11391. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11392. <param name="mtime" type="long"/>
  11393. <param name="atime" type="long"/>
  11394. <exception name="IOException" type="java.io.IOException"/>
  11395. <doc>
  11396. <![CDATA[Set access time of a file.
  11397. @param p The path
  11398. @param mtime Set the modification time of this file.
  11399. The number of milliseconds since Jan 1, 1970.
  11400. A value of -1 means that this call should not set modification time.
  11401. @param atime Set the access time of this file.
  11402. The number of milliseconds since Jan 1, 1970.
  11403. A value of -1 means that this call should not set access time.
  11404. @throws IOException IO failure]]>
  11405. </doc>
  11406. </method>
  11407. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  11408. abstract="false" native="false" synchronized="false"
  11409. static="false" final="true" visibility="public"
  11410. deprecated="not deprecated">
  11411. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11412. <exception name="IOException" type="java.io.IOException"/>
  11413. <doc>
  11414. <![CDATA[Create a snapshot with a default name.
  11415. @param path The directory where snapshots will be taken.
  11416. @return the snapshot path.
  11417. @throws IOException IO failure
  11418. @throws UnsupportedOperationException if the operation is unsupported]]>
  11419. </doc>
  11420. </method>
  11421. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  11422. abstract="false" native="false" synchronized="false"
  11423. static="false" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11426. <param name="snapshotName" type="java.lang.String"/>
  11427. <exception name="IOException" type="java.io.IOException"/>
  11428. <doc>
  11429. <![CDATA[Create a snapshot.
  11430. @param path The directory where snapshots will be taken.
  11431. @param snapshotName The name of the snapshot
  11432. @return the snapshot path.
  11433. @throws IOException IO failure
  11434. @throws UnsupportedOperationException if the operation is unsupported]]>
  11435. </doc>
  11436. </method>
  11437. <method name="renameSnapshot"
  11438. abstract="false" native="false" synchronized="false"
  11439. static="false" final="false" visibility="public"
  11440. deprecated="not deprecated">
  11441. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11442. <param name="snapshotOldName" type="java.lang.String"/>
  11443. <param name="snapshotNewName" type="java.lang.String"/>
  11444. <exception name="IOException" type="java.io.IOException"/>
  11445. <doc>
  11446. <![CDATA[Rename a snapshot.
  11447. @param path The directory path where the snapshot was taken
  11448. @param snapshotOldName Old name of the snapshot
  11449. @param snapshotNewName New name of the snapshot
  11450. @throws IOException IO failure
  11451. @throws UnsupportedOperationException if the operation is unsupported
  11452. (default outcome).]]>
  11453. </doc>
  11454. </method>
  11455. <method name="deleteSnapshot"
  11456. abstract="false" native="false" synchronized="false"
  11457. static="false" final="false" visibility="public"
  11458. deprecated="not deprecated">
  11459. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11460. <param name="snapshotName" type="java.lang.String"/>
  11461. <exception name="IOException" type="java.io.IOException"/>
  11462. <doc>
  11463. <![CDATA[Delete a snapshot of a directory.
  11464. @param path The directory that the to-be-deleted snapshot belongs to
  11465. @param snapshotName The name of the snapshot
  11466. @throws IOException IO failure
  11467. @throws UnsupportedOperationException if the operation is unsupported
  11468. (default outcome).]]>
  11469. </doc>
  11470. </method>
  11471. <method name="modifyAclEntries"
  11472. abstract="false" native="false" synchronized="false"
  11473. static="false" final="false" visibility="public"
  11474. deprecated="not deprecated">
  11475. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11476. <param name="aclSpec" type="java.util.List"/>
  11477. <exception name="IOException" type="java.io.IOException"/>
  11478. <doc>
  11479. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  11480. entries or modify the permissions on existing ACL entries. All existing
  11481. ACL entries that are not specified in this call are retained without
  11482. changes. (Modifications are merged into the current ACL.)
  11483. @param path Path to modify
  11484. @param aclSpec List&lt;AclEntry&gt; describing modifications
  11485. @throws IOException if an ACL could not be modified
  11486. @throws UnsupportedOperationException if the operation is unsupported
  11487. (default outcome).]]>
  11488. </doc>
  11489. </method>
  11490. <method name="removeAclEntries"
  11491. abstract="false" native="false" synchronized="false"
  11492. static="false" final="false" visibility="public"
  11493. deprecated="not deprecated">
  11494. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11495. <param name="aclSpec" type="java.util.List"/>
  11496. <exception name="IOException" type="java.io.IOException"/>
  11497. <doc>
  11498. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  11499. retained.
  11500. @param path Path to modify
  11501. @param aclSpec List describing entries to remove
  11502. @throws IOException if an ACL could not be modified
  11503. @throws UnsupportedOperationException if the operation is unsupported
  11504. (default outcome).]]>
  11505. </doc>
  11506. </method>
  11507. <method name="removeDefaultAcl"
  11508. abstract="false" native="false" synchronized="false"
  11509. static="false" final="false" visibility="public"
  11510. deprecated="not deprecated">
  11511. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11512. <exception name="IOException" type="java.io.IOException"/>
  11513. <doc>
  11514. <![CDATA[Removes all default ACL entries from files and directories.
  11515. @param path Path to modify
  11516. @throws IOException if an ACL could not be modified
  11517. @throws UnsupportedOperationException if the operation is unsupported
  11518. (default outcome).]]>
  11519. </doc>
  11520. </method>
  11521. <method name="removeAcl"
  11522. abstract="false" native="false" synchronized="false"
  11523. static="false" final="false" visibility="public"
  11524. deprecated="not deprecated">
  11525. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11526. <exception name="IOException" type="java.io.IOException"/>
  11527. <doc>
  11528. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  11529. for user, group, and others are retained for compatibility with permission
  11530. bits.
  11531. @param path Path to modify
  11532. @throws IOException if an ACL could not be removed
  11533. @throws UnsupportedOperationException if the operation is unsupported
  11534. (default outcome).]]>
  11535. </doc>
  11536. </method>
  11537. <method name="setAcl"
  11538. abstract="false" native="false" synchronized="false"
  11539. static="false" final="false" visibility="public"
  11540. deprecated="not deprecated">
  11541. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11542. <param name="aclSpec" type="java.util.List"/>
  11543. <exception name="IOException" type="java.io.IOException"/>
  11544. <doc>
  11545. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  11546. entries.
  11547. @param path Path to modify
  11548. @param aclSpec List describing modifications, which must include entries
  11549. for user, group, and others for compatibility with permission bits.
  11550. @throws IOException if an ACL could not be modified
  11551. @throws UnsupportedOperationException if the operation is unsupported
  11552. (default outcome).]]>
  11553. </doc>
  11554. </method>
  11555. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11556. abstract="false" native="false" synchronized="false"
  11557. static="false" final="false" visibility="public"
  11558. deprecated="not deprecated">
  11559. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11560. <exception name="IOException" type="java.io.IOException"/>
  11561. <doc>
  11562. <![CDATA[Gets the ACL of a file or directory.
  11563. @param path Path to get
  11564. @return AclStatus describing the ACL of the file or directory
  11565. @throws IOException if an ACL could not be read
  11566. @throws UnsupportedOperationException if the operation is unsupported
  11567. (default outcome).]]>
  11568. </doc>
  11569. </method>
  11570. <method name="setXAttr"
  11571. abstract="false" native="false" synchronized="false"
  11572. static="false" final="false" visibility="public"
  11573. deprecated="not deprecated">
  11574. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11575. <param name="name" type="java.lang.String"/>
  11576. <param name="value" type="byte[]"/>
  11577. <exception name="IOException" type="java.io.IOException"/>
  11578. <doc>
  11579. <![CDATA[Set an xattr of a file or directory.
  11580. The name must be prefixed with the namespace followed by ".". For example,
  11581. "user.attr".
  11582. <p>
  11583. Refer to the HDFS extended attributes user documentation for details.
  11584. @param path Path to modify
  11585. @param name xattr name.
  11586. @param value xattr value.
  11587. @throws IOException IO failure
  11588. @throws UnsupportedOperationException if the operation is unsupported
  11589. (default outcome).]]>
  11590. </doc>
  11591. </method>
  11592. <method name="setXAttr"
  11593. abstract="false" native="false" synchronized="false"
  11594. static="false" final="false" visibility="public"
  11595. deprecated="not deprecated">
  11596. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11597. <param name="name" type="java.lang.String"/>
  11598. <param name="value" type="byte[]"/>
  11599. <param name="flag" type="java.util.EnumSet"/>
  11600. <exception name="IOException" type="java.io.IOException"/>
  11601. <doc>
  11602. <![CDATA[Set an xattr of a file or directory.
  11603. The name must be prefixed with the namespace followed by ".". For example,
  11604. "user.attr".
  11605. <p>
  11606. Refer to the HDFS extended attributes user documentation for details.
  11607. @param path Path to modify
  11608. @param name xattr name.
  11609. @param value xattr value.
  11610. @param flag xattr set flag
  11611. @throws IOException IO failure
  11612. @throws UnsupportedOperationException if the operation is unsupported
  11613. (default outcome).]]>
  11614. </doc>
  11615. </method>
  11616. <method name="getXAttr" return="byte[]"
  11617. abstract="false" native="false" synchronized="false"
  11618. static="false" final="false" visibility="public"
  11619. deprecated="not deprecated">
  11620. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11621. <param name="name" type="java.lang.String"/>
  11622. <exception name="IOException" type="java.io.IOException"/>
  11623. <doc>
  11624. <![CDATA[Get an xattr name and value for a file or directory.
  11625. The name must be prefixed with the namespace followed by ".". For example,
  11626. "user.attr".
  11627. <p>
  11628. Refer to the HDFS extended attributes user documentation for details.
  11629. @param path Path to get extended attribute
  11630. @param name xattr name.
  11631. @return byte[] xattr value.
  11632. @throws IOException IO failure
  11633. @throws UnsupportedOperationException if the operation is unsupported
  11634. (default outcome).]]>
  11635. </doc>
  11636. </method>
  11637. <method name="getXAttrs" return="java.util.Map"
  11638. abstract="false" native="false" synchronized="false"
  11639. static="false" final="false" visibility="public"
  11640. deprecated="not deprecated">
  11641. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11642. <exception name="IOException" type="java.io.IOException"/>
  11643. <doc>
  11644. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  11645. Only those xattrs which the logged-in user has permissions to view
  11646. are returned.
  11647. <p>
  11648. Refer to the HDFS extended attributes user documentation for details.
  11649. @param path Path to get extended attributes
  11650. @return Map describing the XAttrs of the file or directory
  11651. @throws IOException IO failure
  11652. @throws UnsupportedOperationException if the operation is unsupported
  11653. (default outcome).]]>
  11654. </doc>
  11655. </method>
  11656. <method name="getXAttrs" return="java.util.Map"
  11657. abstract="false" native="false" synchronized="false"
  11658. static="false" final="false" visibility="public"
  11659. deprecated="not deprecated">
  11660. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11661. <param name="names" type="java.util.List"/>
  11662. <exception name="IOException" type="java.io.IOException"/>
  11663. <doc>
  11664. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  11665. Only those xattrs which the logged-in user has permissions to view
  11666. are returned.
  11667. <p>
  11668. Refer to the HDFS extended attributes user documentation for details.
  11669. @param path Path to get extended attributes
  11670. @param names XAttr names.
  11671. @return Map describing the XAttrs of the file or directory
  11672. @throws IOException IO failure
  11673. @throws UnsupportedOperationException if the operation is unsupported
  11674. (default outcome).]]>
  11675. </doc>
  11676. </method>
  11677. <method name="listXAttrs" return="java.util.List"
  11678. abstract="false" native="false" synchronized="false"
  11679. static="false" final="false" visibility="public"
  11680. deprecated="not deprecated">
  11681. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11682. <exception name="IOException" type="java.io.IOException"/>
  11683. <doc>
  11684. <![CDATA[Get all of the xattr names for a file or directory.
  11685. Only those xattr names which the logged-in user has permissions to view
  11686. are returned.
  11687. <p>
  11688. Refer to the HDFS extended attributes user documentation for details.
  11689. @param path Path to get extended attributes
  11690. @return List{@literal <String>} of the XAttr names of the file or directory
  11691. @throws IOException IO failure
  11692. @throws UnsupportedOperationException if the operation is unsupported
  11693. (default outcome).]]>
  11694. </doc>
  11695. </method>
  11696. <method name="removeXAttr"
  11697. abstract="false" native="false" synchronized="false"
  11698. static="false" final="false" visibility="public"
  11699. deprecated="not deprecated">
  11700. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11701. <param name="name" type="java.lang.String"/>
  11702. <exception name="IOException" type="java.io.IOException"/>
  11703. <doc>
  11704. <![CDATA[Remove an xattr of a file or directory.
  11705. The name must be prefixed with the namespace followed by ".". For example,
  11706. "user.attr".
  11707. <p>
  11708. Refer to the HDFS extended attributes user documentation for details.
  11709. @param path Path to remove extended attribute
  11710. @param name xattr name
  11711. @throws IOException IO failure
  11712. @throws UnsupportedOperationException if the operation is unsupported
  11713. (default outcome).]]>
  11714. </doc>
  11715. </method>
  11716. <method name="satisfyStoragePolicy"
  11717. abstract="false" native="false" synchronized="false"
  11718. static="false" final="false" visibility="public"
  11719. deprecated="not deprecated">
  11720. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11721. <exception name="IOException" type="java.io.IOException"/>
  11722. <doc>
  11723. <![CDATA[Set the source path to satisfy storage policy.
  11724. @param path The source path referring to either a directory or a file.
  11725. @throws IOException If an I/O error occurred.]]>
  11726. </doc>
  11727. </method>
  11728. <method name="setStoragePolicy"
  11729. abstract="false" native="false" synchronized="false"
  11730. static="false" final="false" visibility="public"
  11731. deprecated="not deprecated">
  11732. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11733. <param name="policyName" type="java.lang.String"/>
  11734. <exception name="IOException" type="java.io.IOException"/>
  11735. <doc>
  11736. <![CDATA[Set the storage policy for a given file or directory.
  11737. @param src file or directory path.
  11738. @param policyName the name of the target storage policy. The list
  11739. of supported Storage policies can be retrieved
  11740. via {@link #getAllStoragePolicies}.
  11741. @throws IOException IO failure
  11742. @throws UnsupportedOperationException if the operation is unsupported
  11743. (default outcome).]]>
  11744. </doc>
  11745. </method>
  11746. <method name="unsetStoragePolicy"
  11747. abstract="false" native="false" synchronized="false"
  11748. static="false" final="false" visibility="public"
  11749. deprecated="not deprecated">
  11750. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11751. <exception name="IOException" type="java.io.IOException"/>
  11752. <doc>
  11753. <![CDATA[Unset the storage policy set for a given file or directory.
  11754. @param src file or directory path.
  11755. @throws IOException IO failure
  11756. @throws UnsupportedOperationException if the operation is unsupported
  11757. (default outcome).]]>
  11758. </doc>
  11759. </method>
  11760. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  11761. abstract="false" native="false" synchronized="false"
  11762. static="false" final="false" visibility="public"
  11763. deprecated="not deprecated">
  11764. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11765. <exception name="IOException" type="java.io.IOException"/>
  11766. <doc>
  11767. <![CDATA[Query the effective storage policy ID for the given file or directory.
  11768. @param src file or directory path.
  11769. @return storage policy for give file.
  11770. @throws IOException IO failure
  11771. @throws UnsupportedOperationException if the operation is unsupported
  11772. (default outcome).]]>
  11773. </doc>
  11774. </method>
  11775. <method name="getAllStoragePolicies" return="java.util.Collection"
  11776. abstract="false" native="false" synchronized="false"
  11777. static="false" final="false" visibility="public"
  11778. deprecated="not deprecated">
  11779. <exception name="IOException" type="java.io.IOException"/>
  11780. <doc>
  11781. <![CDATA[Retrieve all the storage policies supported by this file system.
  11782. @return all storage policies supported by this filesystem.
  11783. @throws IOException IO failure
  11784. @throws UnsupportedOperationException if the operation is unsupported
  11785. (default outcome).]]>
  11786. </doc>
  11787. </method>
  11788. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  11789. abstract="false" native="false" synchronized="false"
  11790. static="false" final="false" visibility="public"
  11791. deprecated="not deprecated">
  11792. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11793. <doc>
  11794. <![CDATA[Get the root directory of Trash for current user when the path specified
  11795. is deleted.
  11796. @param path the trash root of the path to be determined.
  11797. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  11798. </doc>
  11799. </method>
  11800. <method name="getTrashRoots" return="java.util.Collection"
  11801. abstract="false" native="false" synchronized="false"
  11802. static="false" final="false" visibility="public"
  11803. deprecated="not deprecated">
  11804. <param name="allUsers" type="boolean"/>
  11805. <doc>
  11806. <![CDATA[Get all the trash roots for current user or all users.
  11807. @param allUsers return trash roots for all users if true.
  11808. @return all the trash root directories.
  11809. Default FileSystem returns .Trash under users' home directories if
  11810. {@code /user/$USER/.Trash} exists.]]>
  11811. </doc>
  11812. </method>
  11813. <method name="hasPathCapability" return="boolean"
  11814. abstract="false" native="false" synchronized="false"
  11815. static="false" final="false" visibility="public"
  11816. deprecated="not deprecated">
  11817. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11818. <param name="capability" type="java.lang.String"/>
  11819. <exception name="IOException" type="java.io.IOException"/>
  11820. <doc>
  11821. <![CDATA[The base FileSystem implementation generally has no knowledge
  11822. of the capabilities of actual implementations.
  11823. Unless it has a way to explicitly determine the capabilities,
  11824. this method returns false.
  11825. {@inheritDoc}]]>
  11826. </doc>
  11827. </method>
  11828. <method name="getFileSystemClass" return="java.lang.Class"
  11829. abstract="false" native="false" synchronized="false"
  11830. static="true" final="false" visibility="public"
  11831. deprecated="not deprecated">
  11832. <param name="scheme" type="java.lang.String"/>
  11833. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11834. <exception name="IOException" type="java.io.IOException"/>
  11835. <doc>
  11836. <![CDATA[Get the FileSystem implementation class of a filesystem.
  11837. This triggers a scan and load of all FileSystem implementations listed as
  11838. services and discovered via the {@link ServiceLoader}
  11839. @param scheme URL scheme of FS
  11840. @param conf configuration: can be null, in which case the check for
  11841. a filesystem binding declaration in the configuration is skipped.
  11842. @return the filesystem
  11843. @throws UnsupportedFileSystemException if there was no known implementation
  11844. for the scheme.
  11845. @throws IOException if the filesystem could not be loaded]]>
  11846. </doc>
  11847. </method>
  11848. <method name="getStatistics" return="java.util.Map"
  11849. abstract="false" native="false" synchronized="true"
  11850. static="true" final="false" visibility="public"
  11851. deprecated="use {@link #getGlobalStorageStatistics()}">
  11852. <doc>
  11853. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  11854. @return a Map having a key as URI scheme and value as Statistics object
  11855. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11856. </doc>
  11857. </method>
  11858. <method name="getAllStatistics" return="java.util.List"
  11859. abstract="false" native="false" synchronized="true"
  11860. static="true" final="false" visibility="public"
  11861. deprecated="use {@link #getGlobalStorageStatistics()}">
  11862. <doc>
  11863. <![CDATA[Return the FileSystem classes that have Statistics.
  11864. @deprecated use {@link #getGlobalStorageStatistics()}
  11865. @return statistics lists.]]>
  11866. </doc>
  11867. </method>
  11868. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  11869. abstract="false" native="false" synchronized="true"
  11870. static="true" final="false" visibility="public"
  11871. deprecated="use {@link #getGlobalStorageStatistics()}">
  11872. <param name="scheme" type="java.lang.String"/>
  11873. <param name="cls" type="java.lang.Class"/>
  11874. <doc>
  11875. <![CDATA[Get the statistics for a particular file system.
  11876. @param scheme scheme.
  11877. @param cls the class to lookup
  11878. @return a statistics object
  11879. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  11880. </doc>
  11881. </method>
  11882. <method name="clearStatistics"
  11883. abstract="false" native="false" synchronized="true"
  11884. static="true" final="false" visibility="public"
  11885. deprecated="not deprecated">
  11886. <doc>
  11887. <![CDATA[Reset all statistics for all file systems.]]>
  11888. </doc>
  11889. </method>
  11890. <method name="printStatistics"
  11891. abstract="false" native="false" synchronized="true"
  11892. static="true" final="false" visibility="public"
  11893. deprecated="not deprecated">
  11894. <exception name="IOException" type="java.io.IOException"/>
  11895. <doc>
  11896. <![CDATA[Print all statistics for all file systems to {@code System.out}
  11897. @throws IOException If an I/O error occurred.]]>
  11898. </doc>
  11899. </method>
  11900. <method name="areSymlinksEnabled" return="boolean"
  11901. abstract="false" native="false" synchronized="false"
  11902. static="true" final="false" visibility="public"
  11903. deprecated="not deprecated">
  11904. </method>
  11905. <method name="enableSymlinks"
  11906. abstract="false" native="false" synchronized="false"
  11907. static="true" final="false" visibility="public"
  11908. deprecated="not deprecated">
  11909. </method>
  11910. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  11911. abstract="false" native="false" synchronized="false"
  11912. static="false" final="false" visibility="public"
  11913. deprecated="not deprecated">
  11914. <doc>
  11915. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  11916. per-instance. They are not shared with any other FileSystem object.
  11917. <p>This is a default method which is intended to be overridden by
  11918. subclasses. The default implementation returns an empty storage statistics
  11919. object.</p>
  11920. @return The StorageStatistics for this FileSystem instance.
  11921. Will never be null.]]>
  11922. </doc>
  11923. </method>
  11924. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  11925. abstract="false" native="false" synchronized="false"
  11926. static="true" final="false" visibility="public"
  11927. deprecated="not deprecated">
  11928. <doc>
  11929. <![CDATA[Get the global storage statistics.
  11930. @return global storage statistics.]]>
  11931. </doc>
  11932. </method>
  11933. <method name="createDataOutputStreamBuilder" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11934. abstract="false" native="false" synchronized="false"
  11935. static="true" final="false" visibility="protected"
  11936. deprecated="not deprecated">
  11937. <param name="fileSystem" type="org.apache.hadoop.fs.FileSystem"/>
  11938. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11939. <doc>
  11940. <![CDATA[Create instance of the standard FSDataOutputStreamBuilder for the
  11941. given filesystem and path.
  11942. @param fileSystem owner
  11943. @param path path to create
  11944. @return a builder.]]>
  11945. </doc>
  11946. </method>
  11947. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11948. abstract="false" native="false" synchronized="false"
  11949. static="false" final="false" visibility="public"
  11950. deprecated="not deprecated">
  11951. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11952. <doc>
  11953. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  11954. Files are overwritten by default.
  11955. @param path file path
  11956. @return a FSDataOutputStreamBuilder object to build the file
  11957. HADOOP-14384. Temporarily reduce the visibility of method before the
  11958. builder interface becomes stable.]]>
  11959. </doc>
  11960. </method>
  11961. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  11962. abstract="false" native="false" synchronized="false"
  11963. static="false" final="false" visibility="public"
  11964. deprecated="not deprecated">
  11965. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11966. <doc>
  11967. <![CDATA[Create a Builder to append a file.
  11968. @param path file path.
  11969. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  11970. </doc>
  11971. </method>
  11972. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  11973. abstract="false" native="false" synchronized="false"
  11974. static="false" final="false" visibility="public"
  11975. deprecated="not deprecated">
  11976. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11977. <exception name="IOException" type="java.io.IOException"/>
  11978. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11979. <doc>
  11980. <![CDATA[Open a file for reading through a builder API.
  11981. Ultimately calls {@link #open(Path, int)} unless a subclass
  11982. executes the open command differently.
  11983. The semantics of this call are therefore the same as that of
  11984. {@link #open(Path, int)} with one special point: it is in
  11985. {@code FSDataInputStreamBuilder.build()} in which the open operation
  11986. takes place -it is there where all preconditions to the operation
  11987. are checked.
  11988. @param path file path
  11989. @return a FSDataInputStreamBuilder object to build the input stream
  11990. @throws IOException if some early checks cause IO failures.
  11991. @throws UnsupportedOperationException if support is checked early.]]>
  11992. </doc>
  11993. </method>
  11994. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  11995. abstract="false" native="false" synchronized="false"
  11996. static="false" final="false" visibility="public"
  11997. deprecated="not deprecated">
  11998. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  11999. <exception name="IOException" type="java.io.IOException"/>
  12000. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12001. <doc>
  12002. <![CDATA[Open a file for reading through a builder API.
  12003. Ultimately calls {@link #open(PathHandle, int)} unless a subclass
  12004. executes the open command differently.
  12005. If PathHandles are unsupported, this may fail in the
  12006. {@code FSDataInputStreamBuilder.build()} command,
  12007. rather than in this {@code openFile()} operation.
  12008. @param pathHandle path handle.
  12009. @return a FSDataInputStreamBuilder object to build the input stream
  12010. @throws IOException if some early checks cause IO failures.
  12011. @throws UnsupportedOperationException if support is checked early.]]>
  12012. </doc>
  12013. </method>
  12014. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  12015. abstract="false" native="false" synchronized="false"
  12016. static="false" final="false" visibility="protected"
  12017. deprecated="not deprecated">
  12018. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12019. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  12020. <exception name="IOException" type="java.io.IOException"/>
  12021. <doc>
  12022. <![CDATA[Execute the actual open file operation.
  12023. This is invoked from {@code FSDataInputStreamBuilder.build()}
  12024. and from {@link DelegateToFileSystem} and is where
  12025. the action of opening the file should begin.
  12026. The base implementation performs a blocking
  12027. call to {@link #open(Path, int)} in this call;
  12028. the actual outcome is in the returned {@code CompletableFuture}.
  12029. This avoids having to create some thread pool, while still
  12030. setting up the expectation that the {@code get()} call
  12031. is needed to evaluate the result.
  12032. @param path path to the file
  12033. @param parameters open file parameters from the builder.
  12034. @return a future which will evaluate to the opened file.
  12035. @throws IOException failure to resolve the link.
  12036. @throws IllegalArgumentException unknown mandatory key]]>
  12037. </doc>
  12038. </method>
  12039. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  12040. abstract="false" native="false" synchronized="false"
  12041. static="false" final="false" visibility="protected"
  12042. deprecated="not deprecated">
  12043. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  12044. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  12045. <exception name="IOException" type="java.io.IOException"/>
  12046. <doc>
  12047. <![CDATA[Execute the actual open file operation.
  12048. The base implementation performs a blocking
  12049. call to {@link #open(Path, int)} in this call;
  12050. the actual outcome is in the returned {@code CompletableFuture}.
  12051. This avoids having to create some thread pool, while still
  12052. setting up the expectation that the {@code get()} call
  12053. is needed to evaluate the result.
  12054. @param pathHandle path to the file
  12055. @param parameters open file parameters from the builder.
  12056. @return a future which will evaluate to the opened file.
  12057. @throws IOException failure to resolve the link.
  12058. @throws IllegalArgumentException unknown mandatory key
  12059. @throws UnsupportedOperationException PathHandles are not supported.
  12060. This may be deferred until the future is evaluated.]]>
  12061. </doc>
  12062. </method>
  12063. <method name="createMultipartUploader" return="org.apache.hadoop.fs.MultipartUploaderBuilder"
  12064. abstract="false" native="false" synchronized="false"
  12065. static="false" final="false" visibility="public"
  12066. deprecated="not deprecated">
  12067. <param name="basePath" type="org.apache.hadoop.fs.Path"/>
  12068. <exception name="IOException" type="java.io.IOException"/>
  12069. <doc>
  12070. <![CDATA[Create a multipart uploader.
  12071. @param basePath file path under which all files are uploaded
  12072. @return a MultipartUploaderBuilder object to build the uploader
  12073. @throws IOException if some early checks cause IO failures.
  12074. @throws UnsupportedOperationException if support is checked early.]]>
  12075. </doc>
  12076. </method>
  12077. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  12078. transient="false" volatile="false"
  12079. static="true" final="true" visibility="public"
  12080. deprecated="not deprecated">
  12081. </field>
  12082. <field name="DEFAULT_FS" type="java.lang.String"
  12083. transient="false" volatile="false"
  12084. static="true" final="true" visibility="public"
  12085. deprecated="not deprecated">
  12086. </field>
  12087. <field name="LOG" type="org.apache.commons.logging.Log"
  12088. transient="false" volatile="false"
  12089. static="true" final="true" visibility="public"
  12090. deprecated="not deprecated">
  12091. <doc>
  12092. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  12093. so must be considered something to only be changed with care.]]>
  12094. </doc>
  12095. </field>
  12096. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  12097. transient="false" volatile="false"
  12098. static="true" final="true" visibility="public"
  12099. deprecated="not deprecated">
  12100. <doc>
  12101. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  12102. </doc>
  12103. </field>
  12104. <field name="TRASH_PREFIX" type="java.lang.String"
  12105. transient="false" volatile="false"
  12106. static="true" final="true" visibility="public"
  12107. deprecated="not deprecated">
  12108. <doc>
  12109. <![CDATA[Prefix for trash directory: {@value}.]]>
  12110. </doc>
  12111. </field>
  12112. <field name="USER_HOME_PREFIX" type="java.lang.String"
  12113. transient="false" volatile="false"
  12114. static="true" final="true" visibility="public"
  12115. deprecated="not deprecated">
  12116. </field>
  12117. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  12118. transient="false" volatile="false"
  12119. static="false" final="false" visibility="protected"
  12120. deprecated="not deprecated">
  12121. <doc>
  12122. <![CDATA[The statistics for this file system.]]>
  12123. </doc>
  12124. </field>
  12125. <doc>
  12126. <![CDATA[An abstract base class for a fairly generic filesystem. It
  12127. may be implemented as a distributed filesystem, or as a "local"
  12128. one that reflects the locally-connected disk. The local version
  12129. exists for small Hadoop instances and for testing.
  12130. <p>
  12131. All user code that may potentially use the Hadoop Distributed
  12132. File System should be written to use a FileSystem object or its
  12133. successor, {@link FileContext}.
  12134. </p>
  12135. <p>
  12136. The local implementation is {@link LocalFileSystem} and distributed
  12137. implementation is DistributedFileSystem. There are other implementations
  12138. for object stores and (outside the Apache Hadoop codebase),
  12139. third party filesystems.
  12140. </p>
  12141. Notes
  12142. <ol>
  12143. <li>The behaviour of the filesystem is
  12144. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  12145. specified in the Hadoop documentation. </a>
  12146. However, the normative specification of the behavior of this class is
  12147. actually HDFS: if HDFS does not behave the way these Javadocs or
  12148. the specification in the Hadoop documentations define, assume that
  12149. the documentation is incorrect.
  12150. </li>
  12151. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  12152. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  12153. <li>The term {@code filesystem} refers to the distributed/local filesystem
  12154. itself, rather than the class used to interact with it.</li>
  12155. <li>The term "file" refers to a file in the remote filesystem,
  12156. rather than instances of {@code java.io.File}.</li>
  12157. </ol>
  12158. This is a carefully evolving class.
  12159. New methods may be marked as Unstable or Evolving for their initial release,
  12160. as a warning that they are new and may change based on the
  12161. experience of use in applications.
  12162. <p>
  12163. <b>Important note for developers</b>
  12164. </p>
  12165. If you are making changes here to the public API or protected methods,
  12166. you must review the following subclasses and make sure that
  12167. they are filtering/passing through new methods as appropriate.
  12168. {@link FilterFileSystem}: methods are passed through. If not,
  12169. then {@code TestFilterFileSystem.MustNotImplement} must be
  12170. updated with the unsupported interface.
  12171. Furthermore, if the new API's support is probed for via
  12172. {@link #hasPathCapability(Path, String)} then
  12173. {@link FilterFileSystem#hasPathCapability(Path, String)}
  12174. must return false, always.
  12175. <p>
  12176. {@link ChecksumFileSystem}: checksums are created and
  12177. verified.
  12178. </p>
  12179. {@code TestHarFileSystem} will need its {@code MustNotImplement}
  12180. interface updated.
  12181. <p>
  12182. There are some external places your changes will break things.
  12183. Do co-ordinate changes here.
  12184. </p>
  12185. HBase: HBoss
  12186. <p>
  12187. Hive: HiveShim23
  12188. </p>
  12189. {@code shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java}]]>
  12190. </doc>
  12191. </class>
  12192. <!-- end class org.apache.hadoop.fs.FileSystem -->
  12193. <!-- start class org.apache.hadoop.fs.FileUtil -->
  12194. <class name="FileUtil" extends="java.lang.Object"
  12195. abstract="false"
  12196. static="false" final="false" visibility="public"
  12197. deprecated="not deprecated">
  12198. <constructor name="FileUtil"
  12199. static="false" final="false" visibility="public"
  12200. deprecated="not deprecated">
  12201. </constructor>
  12202. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  12203. abstract="false" native="false" synchronized="false"
  12204. static="true" final="false" visibility="public"
  12205. deprecated="not deprecated">
  12206. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  12207. <doc>
  12208. <![CDATA[convert an array of FileStatus to an array of Path
  12209. @param stats
  12210. an array of FileStatus objects
  12211. @return an array of paths corresponding to the input]]>
  12212. </doc>
  12213. </method>
  12214. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  12215. abstract="false" native="false" synchronized="false"
  12216. static="true" final="false" visibility="public"
  12217. deprecated="not deprecated">
  12218. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  12219. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12220. <doc>
  12221. <![CDATA[convert an array of FileStatus to an array of Path.
  12222. If stats if null, return path
  12223. @param stats
  12224. an array of FileStatus objects
  12225. @param path
  12226. default path to return in stats is null
  12227. @return an array of paths corresponding to the input]]>
  12228. </doc>
  12229. </method>
  12230. <method name="fullyDeleteOnExit"
  12231. abstract="false" native="false" synchronized="false"
  12232. static="true" final="false" visibility="public"
  12233. deprecated="not deprecated">
  12234. <param name="file" type="java.io.File"/>
  12235. <doc>
  12236. <![CDATA[Register all files recursively to be deleted on exit.
  12237. @param file File/directory to be deleted]]>
  12238. </doc>
  12239. </method>
  12240. <method name="fullyDelete" return="boolean"
  12241. abstract="false" native="false" synchronized="false"
  12242. static="true" final="false" visibility="public"
  12243. deprecated="not deprecated">
  12244. <param name="dir" type="java.io.File"/>
  12245. <doc>
  12246. <![CDATA[Delete a directory and all its contents. If
  12247. we return false, the directory may be partially-deleted.
  12248. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  12249. to by the symlink is not deleted.
  12250. (2) If dir is symlink to a directory, symlink is deleted. The directory
  12251. pointed to by symlink is not deleted.
  12252. (3) If dir is a normal file, it is deleted.
  12253. (4) If dir is a normal directory, then dir and all its contents recursively
  12254. are deleted.
  12255. @param dir dir.
  12256. @return fully delete status.]]>
  12257. </doc>
  12258. </method>
  12259. <method name="fullyDelete" return="boolean"
  12260. abstract="false" native="false" synchronized="false"
  12261. static="true" final="false" visibility="public"
  12262. deprecated="not deprecated">
  12263. <param name="dir" type="java.io.File"/>
  12264. <param name="tryGrantPermissions" type="boolean"/>
  12265. <doc>
  12266. <![CDATA[Delete a directory and all its contents. If
  12267. we return false, the directory may be partially-deleted.
  12268. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  12269. to by the symlink is not deleted.
  12270. (2) If dir is symlink to a directory, symlink is deleted. The directory
  12271. pointed to by symlink is not deleted.
  12272. (3) If dir is a normal file, it is deleted.
  12273. (4) If dir is a normal directory, then dir and all its contents recursively
  12274. are deleted.
  12275. @param dir the file or directory to be deleted
  12276. @param tryGrantPermissions true if permissions should be modified to delete a file.
  12277. @return true on success false on failure.]]>
  12278. </doc>
  12279. </method>
  12280. <method name="readLink" return="java.lang.String"
  12281. abstract="false" native="false" synchronized="false"
  12282. static="true" final="false" visibility="public"
  12283. deprecated="not deprecated">
  12284. <param name="f" type="java.io.File"/>
  12285. <doc>
  12286. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  12287. the given path does not refer to a symlink or there is an error
  12288. accessing the symlink.
  12289. @param f File representing the symbolic link.
  12290. @return The target of the symbolic link, empty string on error or if not
  12291. a symlink.]]>
  12292. </doc>
  12293. </method>
  12294. <method name="fullyDeleteContents" return="boolean"
  12295. abstract="false" native="false" synchronized="false"
  12296. static="true" final="false" visibility="public"
  12297. deprecated="not deprecated">
  12298. <param name="dir" type="java.io.File"/>
  12299. <doc>
  12300. <![CDATA[Delete the contents of a directory, not the directory itself. If
  12301. we return false, the directory may be partially-deleted.
  12302. If dir is a symlink to a directory, all the contents of the actual
  12303. directory pointed to by dir will be deleted.
  12304. @param dir dir.
  12305. @return fullyDeleteContents Status.]]>
  12306. </doc>
  12307. </method>
  12308. <method name="fullyDeleteContents" return="boolean"
  12309. abstract="false" native="false" synchronized="false"
  12310. static="true" final="false" visibility="public"
  12311. deprecated="not deprecated">
  12312. <param name="dir" type="java.io.File"/>
  12313. <param name="tryGrantPermissions" type="boolean"/>
  12314. <doc>
  12315. <![CDATA[Delete the contents of a directory, not the directory itself. If
  12316. we return false, the directory may be partially-deleted.
  12317. If dir is a symlink to a directory, all the contents of the actual
  12318. directory pointed to by dir will be deleted.
  12319. @param dir dir.
  12320. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  12321. and all the underlying directories before trying to delete their contents.
  12322. @return fully delete contents status.]]>
  12323. </doc>
  12324. </method>
  12325. <method name="fullyDelete"
  12326. abstract="false" native="false" synchronized="false"
  12327. static="true" final="false" visibility="public"
  12328. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  12329. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12330. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  12331. <exception name="IOException" type="java.io.IOException"/>
  12332. <doc>
  12333. <![CDATA[Recursively delete a directory.
  12334. @param fs {@link FileSystem} on which the path is present
  12335. @param dir directory to recursively delete
  12336. @throws IOException raised on errors performing I/O.
  12337. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  12338. </doc>
  12339. </method>
  12340. <method name="copy" return="boolean"
  12341. abstract="false" native="false" synchronized="false"
  12342. static="true" final="false" visibility="public"
  12343. deprecated="not deprecated">
  12344. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12345. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12346. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12347. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12348. <param name="deleteSource" type="boolean"/>
  12349. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12350. <exception name="IOException" type="java.io.IOException"/>
  12351. <doc>
  12352. <![CDATA[Copy files between FileSystems.
  12353. @param srcFS src fs.
  12354. @param src src.
  12355. @param dstFS dst fs.
  12356. @param dst dst.
  12357. @param deleteSource delete source.
  12358. @param conf configuration.
  12359. @return if copy success true, not false.
  12360. @throws IOException raised on errors performing I/O.]]>
  12361. </doc>
  12362. </method>
  12363. <method name="copy" return="boolean"
  12364. abstract="false" native="false" synchronized="false"
  12365. static="true" final="false" visibility="public"
  12366. deprecated="not deprecated">
  12367. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12368. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  12369. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12370. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12371. <param name="deleteSource" type="boolean"/>
  12372. <param name="overwrite" type="boolean"/>
  12373. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12374. <exception name="IOException" type="java.io.IOException"/>
  12375. </method>
  12376. <method name="copy" return="boolean"
  12377. abstract="false" native="false" synchronized="false"
  12378. static="true" final="false" visibility="public"
  12379. deprecated="not deprecated">
  12380. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12381. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12382. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12383. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12384. <param name="deleteSource" type="boolean"/>
  12385. <param name="overwrite" type="boolean"/>
  12386. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12387. <exception name="IOException" type="java.io.IOException"/>
  12388. <doc>
  12389. <![CDATA[Copy files between FileSystems.
  12390. @param srcFS srcFs.
  12391. @param src src.
  12392. @param dstFS dstFs.
  12393. @param dst dst.
  12394. @param deleteSource delete source.
  12395. @param overwrite overwrite.
  12396. @param conf configuration.
  12397. @throws IOException raised on errors performing I/O.
  12398. @return true if the operation succeeded.]]>
  12399. </doc>
  12400. </method>
  12401. <method name="copy" return="boolean"
  12402. abstract="false" native="false" synchronized="false"
  12403. static="true" final="false" visibility="public"
  12404. deprecated="not deprecated">
  12405. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12406. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  12407. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12408. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12409. <param name="deleteSource" type="boolean"/>
  12410. <param name="overwrite" type="boolean"/>
  12411. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12412. <exception name="IOException" type="java.io.IOException"/>
  12413. <doc>
  12414. <![CDATA[Copy a file/directory tree within/between filesystems.
  12415. <p>
  12416. returns true if the operation succeeded. When deleteSource is true,
  12417. this means "after the copy, delete(source) returned true"
  12418. If the destination is a directory, and mkdirs (dest) fails,
  12419. the operation will return false rather than raise any exception.
  12420. </p>
  12421. The overwrite flag is about overwriting files; it has no effect about
  12422. handing an attempt to copy a file atop a directory (expect an IOException),
  12423. or a directory over a path which contains a file (mkdir will fail, so
  12424. "false").
  12425. <p>
  12426. The operation is recursive, and the deleteSource operation takes place
  12427. as each subdirectory is copied. Therefore, if an operation fails partway
  12428. through, the source tree may be partially deleted.
  12429. </p>
  12430. @param srcFS source filesystem
  12431. @param srcStatus status of source
  12432. @param dstFS destination filesystem
  12433. @param dst path of source
  12434. @param deleteSource delete the source?
  12435. @param overwrite overwrite files at destination?
  12436. @param conf configuration to use when opening files
  12437. @return true if the operation succeeded.
  12438. @throws IOException failure]]>
  12439. </doc>
  12440. </method>
  12441. <method name="copy" return="boolean"
  12442. abstract="false" native="false" synchronized="false"
  12443. static="true" final="false" visibility="public"
  12444. deprecated="not deprecated">
  12445. <param name="src" type="java.io.File"/>
  12446. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  12447. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12448. <param name="deleteSource" type="boolean"/>
  12449. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12450. <exception name="IOException" type="java.io.IOException"/>
  12451. <doc>
  12452. <![CDATA[Copy local files to a FileSystem.
  12453. @param src src.
  12454. @param dstFS dstFs.
  12455. @param dst dst.
  12456. @param deleteSource delete source.
  12457. @param conf configuration.
  12458. @throws IOException raised on errors performing I/O.
  12459. @return true if the operation succeeded.]]>
  12460. </doc>
  12461. </method>
  12462. <method name="copy" return="boolean"
  12463. abstract="false" native="false" synchronized="false"
  12464. static="true" final="false" visibility="public"
  12465. deprecated="not deprecated">
  12466. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  12467. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12468. <param name="dst" type="java.io.File"/>
  12469. <param name="deleteSource" type="boolean"/>
  12470. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12471. <exception name="IOException" type="java.io.IOException"/>
  12472. <doc>
  12473. <![CDATA[Copy FileSystem files to local files.
  12474. @param srcFS srcFs.
  12475. @param src src.
  12476. @param dst dst.
  12477. @param deleteSource delete source.
  12478. @param conf configuration.
  12479. @throws IOException raised on errors performing I/O.
  12480. @return true if the operation succeeded.]]>
  12481. </doc>
  12482. </method>
  12483. <method name="makeShellPath" return="java.lang.String"
  12484. abstract="false" native="false" synchronized="false"
  12485. static="true" final="false" visibility="public"
  12486. deprecated="not deprecated">
  12487. <param name="filename" type="java.lang.String"/>
  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 filename The filename to convert
  12492. @return The unix pathname
  12493. @throws IOException on windows, there can be problems with the subprocess]]>
  12494. </doc>
  12495. </method>
  12496. <method name="makeShellPath" return="java.lang.String"
  12497. abstract="false" native="false" synchronized="false"
  12498. static="true" final="false" visibility="public"
  12499. deprecated="not deprecated">
  12500. <param name="file" type="java.io.File"/>
  12501. <exception name="IOException" type="java.io.IOException"/>
  12502. <doc>
  12503. <![CDATA[Convert a os-native filename to a path that works for the shell.
  12504. @param file The filename to convert
  12505. @return The unix pathname
  12506. @throws IOException on windows, there can be problems with the subprocess]]>
  12507. </doc>
  12508. </method>
  12509. <method name="makeSecureShellPath" return="java.lang.String"
  12510. abstract="false" native="false" synchronized="false"
  12511. static="true" final="false" visibility="public"
  12512. deprecated="not deprecated">
  12513. <param name="file" type="java.io.File"/>
  12514. <exception name="IOException" type="java.io.IOException"/>
  12515. <doc>
  12516. <![CDATA[Convert a os-native filename to a path that works for the shell
  12517. and avoids script injection attacks.
  12518. @param file The filename to convert
  12519. @return The unix pathname
  12520. @throws IOException on windows, there can be problems with the subprocess]]>
  12521. </doc>
  12522. </method>
  12523. <method name="makeShellPath" return="java.lang.String"
  12524. abstract="false" native="false" synchronized="false"
  12525. static="true" final="false" visibility="public"
  12526. deprecated="not deprecated">
  12527. <param name="file" type="java.io.File"/>
  12528. <param name="makeCanonicalPath" type="boolean"/>
  12529. <exception name="IOException" type="java.io.IOException"/>
  12530. <doc>
  12531. <![CDATA[Convert a os-native filename to a path that works for the shell.
  12532. @param file The filename to convert
  12533. @param makeCanonicalPath
  12534. Whether to make canonical path for the file passed
  12535. @return The unix pathname
  12536. @throws IOException on windows, there can be problems with the subprocess]]>
  12537. </doc>
  12538. </method>
  12539. <method name="getDU" return="long"
  12540. abstract="false" native="false" synchronized="false"
  12541. static="true" final="false" visibility="public"
  12542. deprecated="not deprecated">
  12543. <param name="dir" type="java.io.File"/>
  12544. <doc>
  12545. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  12546. implementation.
  12547. @param dir
  12548. The input dir to get the disk space of this local dir
  12549. @return The total disk space of the input local directory]]>
  12550. </doc>
  12551. </method>
  12552. <method name="unZip"
  12553. abstract="false" native="false" synchronized="false"
  12554. static="true" final="false" visibility="public"
  12555. deprecated="not deprecated">
  12556. <param name="inputStream" type="java.io.InputStream"/>
  12557. <param name="toDir" type="java.io.File"/>
  12558. <exception name="IOException" type="java.io.IOException"/>
  12559. <doc>
  12560. <![CDATA[Given a stream input it will unzip the it in the unzip directory.
  12561. passed as the second parameter
  12562. @param inputStream The zip file as input
  12563. @param toDir The unzip directory where to unzip the zip file.
  12564. @throws IOException an exception occurred]]>
  12565. </doc>
  12566. </method>
  12567. <method name="unZip"
  12568. abstract="false" native="false" synchronized="false"
  12569. static="true" final="false" visibility="public"
  12570. deprecated="not deprecated">
  12571. <param name="inFile" type="java.io.File"/>
  12572. <param name="unzipDir" type="java.io.File"/>
  12573. <exception name="IOException" type="java.io.IOException"/>
  12574. <doc>
  12575. <![CDATA[Given a File input it will unzip it in the unzip directory.
  12576. passed as the second parameter
  12577. @param inFile The zip file as input
  12578. @param unzipDir The unzip directory where to unzip the zip file.
  12579. @throws IOException An I/O exception has occurred]]>
  12580. </doc>
  12581. </method>
  12582. <method name="unTar"
  12583. abstract="false" native="false" synchronized="false"
  12584. static="true" final="false" visibility="public"
  12585. deprecated="not deprecated">
  12586. <param name="inputStream" type="java.io.InputStream"/>
  12587. <param name="untarDir" type="java.io.File"/>
  12588. <param name="gzipped" type="boolean"/>
  12589. <exception name="IOException" type="java.io.IOException"/>
  12590. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  12591. <exception name="ExecutionException" type="java.util.concurrent.ExecutionException"/>
  12592. <doc>
  12593. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  12594. passed as the second parameter
  12595. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  12596. @param inputStream The tar file as input.
  12597. @param untarDir The untar directory where to untar the tar file.
  12598. @param gzipped The input stream is gzipped
  12599. TODO Use magic number and PusbackInputStream to identify
  12600. @throws IOException an exception occurred
  12601. @throws InterruptedException command interrupted
  12602. @throws ExecutionException task submit failed]]>
  12603. </doc>
  12604. </method>
  12605. <method name="unTar"
  12606. abstract="false" native="false" synchronized="false"
  12607. static="true" final="false" visibility="public"
  12608. deprecated="not deprecated">
  12609. <param name="inFile" type="java.io.File"/>
  12610. <param name="untarDir" type="java.io.File"/>
  12611. <exception name="IOException" type="java.io.IOException"/>
  12612. <doc>
  12613. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  12614. passed as the second parameter
  12615. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  12616. @param inFile The tar file as input.
  12617. @param untarDir The untar directory where to untar the tar file.
  12618. @throws IOException an exception occurred.]]>
  12619. </doc>
  12620. </method>
  12621. <method name="symLink" return="int"
  12622. abstract="false" native="false" synchronized="false"
  12623. static="true" final="false" visibility="public"
  12624. deprecated="not deprecated">
  12625. <param name="target" type="java.lang.String"/>
  12626. <param name="linkname" type="java.lang.String"/>
  12627. <exception name="IOException" type="java.io.IOException"/>
  12628. <doc>
  12629. <![CDATA[Create a soft link between a src and destination
  12630. only on a local disk. HDFS does not support this.
  12631. On Windows, when symlink creation fails due to security
  12632. setting, we will log a warning. The return code in this
  12633. case is 2.
  12634. @param target the target for symlink
  12635. @param linkname the symlink
  12636. @return 0 on success
  12637. @throws IOException raised on errors performing I/O.]]>
  12638. </doc>
  12639. </method>
  12640. <method name="chmod" return="int"
  12641. abstract="false" native="false" synchronized="false"
  12642. static="true" final="false" visibility="public"
  12643. deprecated="not deprecated">
  12644. <param name="filename" type="java.lang.String"/>
  12645. <param name="perm" type="java.lang.String"/>
  12646. <exception name="IOException" type="java.io.IOException"/>
  12647. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  12648. <doc>
  12649. <![CDATA[Change the permissions on a filename.
  12650. @param filename the name of the file to change
  12651. @param perm the permission string
  12652. @return the exit code from the command
  12653. @throws IOException raised on errors performing I/O.
  12654. @throws InterruptedException command interrupted.]]>
  12655. </doc>
  12656. </method>
  12657. <method name="chmod" return="int"
  12658. abstract="false" native="false" synchronized="false"
  12659. static="true" final="false" visibility="public"
  12660. deprecated="not deprecated">
  12661. <param name="filename" type="java.lang.String"/>
  12662. <param name="perm" type="java.lang.String"/>
  12663. <param name="recursive" type="boolean"/>
  12664. <exception name="IOException" type="java.io.IOException"/>
  12665. <doc>
  12666. <![CDATA[Change the permissions on a file / directory, recursively, if
  12667. needed.
  12668. @param filename name of the file whose permissions are to change
  12669. @param perm permission string
  12670. @param recursive true, if permissions should be changed recursively
  12671. @return the exit code from the command.
  12672. @throws IOException raised on errors performing I/O.]]>
  12673. </doc>
  12674. </method>
  12675. <method name="setOwner"
  12676. abstract="false" native="false" synchronized="false"
  12677. static="true" final="false" visibility="public"
  12678. deprecated="not deprecated">
  12679. <param name="file" type="java.io.File"/>
  12680. <param name="username" type="java.lang.String"/>
  12681. <param name="groupname" type="java.lang.String"/>
  12682. <exception name="IOException" type="java.io.IOException"/>
  12683. <doc>
  12684. <![CDATA[Set the ownership on a file / directory. User name and group name
  12685. cannot both be null.
  12686. @param file the file to change
  12687. @param username the new user owner name
  12688. @param groupname the new group owner name
  12689. @throws IOException raised on errors performing I/O.]]>
  12690. </doc>
  12691. </method>
  12692. <method name="setReadable" return="boolean"
  12693. abstract="false" native="false" synchronized="false"
  12694. static="true" final="false" visibility="public"
  12695. deprecated="not deprecated">
  12696. <param name="f" type="java.io.File"/>
  12697. <param name="readable" type="boolean"/>
  12698. <doc>
  12699. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  12700. File#setReadable does not work as expected on Windows.
  12701. @param f input file
  12702. @param readable readable.
  12703. @return true on success, false otherwise]]>
  12704. </doc>
  12705. </method>
  12706. <method name="setWritable" return="boolean"
  12707. abstract="false" native="false" synchronized="false"
  12708. static="true" final="false" visibility="public"
  12709. deprecated="not deprecated">
  12710. <param name="f" type="java.io.File"/>
  12711. <param name="writable" type="boolean"/>
  12712. <doc>
  12713. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  12714. File#setWritable does not work as expected on Windows.
  12715. @param f input file
  12716. @param writable writable.
  12717. @return true on success, false otherwise]]>
  12718. </doc>
  12719. </method>
  12720. <method name="setExecutable" 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. <param name="executable" type="boolean"/>
  12726. <doc>
  12727. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  12728. File#setExecutable does not work as expected on Windows.
  12729. Note: revoking execute permission on folders does not have the same
  12730. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  12731. a file within that folder will still succeed on Windows.
  12732. @param f input file
  12733. @param executable executable.
  12734. @return true on success, false otherwise]]>
  12735. </doc>
  12736. </method>
  12737. <method name="canRead" return="boolean"
  12738. abstract="false" native="false" synchronized="false"
  12739. static="true" final="false" visibility="public"
  12740. deprecated="not deprecated">
  12741. <param name="f" type="java.io.File"/>
  12742. <doc>
  12743. <![CDATA[Platform independent implementation for {@link File#canRead()}
  12744. @param f input file
  12745. @return On Unix, same as {@link File#canRead()}
  12746. On Windows, true if process has read access on the path]]>
  12747. </doc>
  12748. </method>
  12749. <method name="canWrite" return="boolean"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="true" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <param name="f" type="java.io.File"/>
  12754. <doc>
  12755. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  12756. @param f input file
  12757. @return On Unix, same as {@link File#canWrite()}
  12758. On Windows, true if process has write access on the path]]>
  12759. </doc>
  12760. </method>
  12761. <method name="canExecute" return="boolean"
  12762. abstract="false" native="false" synchronized="false"
  12763. static="true" final="false" visibility="public"
  12764. deprecated="not deprecated">
  12765. <param name="f" type="java.io.File"/>
  12766. <doc>
  12767. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  12768. @param f input file
  12769. @return On Unix, same as {@link File#canExecute()}
  12770. On Windows, true if process has execute access on the path]]>
  12771. </doc>
  12772. </method>
  12773. <method name="setPermission"
  12774. abstract="false" native="false" synchronized="false"
  12775. static="true" final="false" visibility="public"
  12776. deprecated="not deprecated">
  12777. <param name="f" type="java.io.File"/>
  12778. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12779. <exception name="IOException" type="java.io.IOException"/>
  12780. <doc>
  12781. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  12782. of forking if group == other.
  12783. @param f the file to change
  12784. @param permission the new permissions
  12785. @throws IOException raised on errors performing I/O.]]>
  12786. </doc>
  12787. </method>
  12788. <method name="createLocalTempFile" return="java.io.File"
  12789. abstract="false" native="false" synchronized="false"
  12790. static="true" final="true" visibility="public"
  12791. deprecated="not deprecated">
  12792. <param name="basefile" type="java.io.File"/>
  12793. <param name="prefix" type="java.lang.String"/>
  12794. <param name="isDeleteOnExit" type="boolean"/>
  12795. <exception name="IOException" type="java.io.IOException"/>
  12796. <doc>
  12797. <![CDATA[Create a tmp file for a base file.
  12798. @param basefile the base file of the tmp
  12799. @param prefix file name prefix of tmp
  12800. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  12801. @return a newly created tmp file
  12802. @exception IOException If a tmp file cannot created
  12803. @see java.io.File#createTempFile(String, String, File)
  12804. @see java.io.File#deleteOnExit()]]>
  12805. </doc>
  12806. </method>
  12807. <method name="replaceFile"
  12808. abstract="false" native="false" synchronized="false"
  12809. static="true" final="false" visibility="public"
  12810. deprecated="not deprecated">
  12811. <param name="src" type="java.io.File"/>
  12812. <param name="target" type="java.io.File"/>
  12813. <exception name="IOException" type="java.io.IOException"/>
  12814. <doc>
  12815. <![CDATA[Move the src file to the name specified by target.
  12816. @param src the source file
  12817. @param target the target file
  12818. @exception IOException If this operation fails]]>
  12819. </doc>
  12820. </method>
  12821. <method name="listFiles" return="java.io.File[]"
  12822. abstract="false" native="false" synchronized="false"
  12823. static="true" final="false" visibility="public"
  12824. deprecated="not deprecated">
  12825. <param name="dir" type="java.io.File"/>
  12826. <exception name="IOException" type="java.io.IOException"/>
  12827. <doc>
  12828. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  12829. when a dir is not a directory or for any I/O error. Instead of having
  12830. null check everywhere File#listFiles() is used, we will add utility API
  12831. to get around this problem. For the majority of cases where we prefer
  12832. an IOException to be thrown.
  12833. @param dir directory for which listing should be performed
  12834. @return list of files or empty list
  12835. @exception IOException for invalid directory or for a bad disk.]]>
  12836. </doc>
  12837. </method>
  12838. <method name="list" return="java.lang.String[]"
  12839. abstract="false" native="false" synchronized="false"
  12840. static="true" final="false" visibility="public"
  12841. deprecated="not deprecated">
  12842. <param name="dir" type="java.io.File"/>
  12843. <exception name="IOException" type="java.io.IOException"/>
  12844. <doc>
  12845. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  12846. when a dir is not a directory or for any I/O error. Instead of having
  12847. null check everywhere File#list() is used, we will add utility API
  12848. to get around this problem. For the majority of cases where we prefer
  12849. an IOException to be thrown.
  12850. @param dir directory for which listing should be performed
  12851. @return list of file names or empty string list
  12852. @exception AccessDeniedException for unreadable directory
  12853. @exception IOException for invalid directory or for bad disk]]>
  12854. </doc>
  12855. </method>
  12856. <method name="createJarWithClassPath" return="java.lang.String[]"
  12857. abstract="false" native="false" synchronized="false"
  12858. static="true" final="false" visibility="public"
  12859. deprecated="not deprecated">
  12860. <param name="inputClassPath" type="java.lang.String"/>
  12861. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  12862. <param name="callerEnv" type="java.util.Map"/>
  12863. <exception name="IOException" type="java.io.IOException"/>
  12864. </method>
  12865. <method name="createJarWithClassPath" return="java.lang.String[]"
  12866. abstract="false" native="false" synchronized="false"
  12867. static="true" final="false" visibility="public"
  12868. deprecated="not deprecated">
  12869. <param name="inputClassPath" type="java.lang.String"/>
  12870. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  12871. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  12872. <param name="callerEnv" type="java.util.Map"/>
  12873. <exception name="IOException" type="java.io.IOException"/>
  12874. <doc>
  12875. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  12876. that references all specified entries.
  12877. Some platforms may have an upper limit on command line length. For example,
  12878. the maximum command line length on Windows is 8191 characters, but the
  12879. length of the classpath may exceed this. To work around this limitation,
  12880. use this method to create a small intermediate jar with a manifest that
  12881. contains the full classpath. It returns the absolute path to the new jar,
  12882. which the caller may set as the classpath for a new process.
  12883. Environment variable evaluation is not supported within a jar manifest, so
  12884. this method expands environment variables before inserting classpath entries
  12885. to the manifest. The method parses environment variables according to
  12886. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  12887. environment variables are case-insensitive. For example, %VAR% and %var%
  12888. evaluate to the same value.
  12889. Specifying the classpath in a jar manifest does not support wildcards, so
  12890. this method expands wildcards internally. Any classpath entry that ends
  12891. with * is translated to all files at that path with extension .jar or .JAR.
  12892. @param inputClassPath String input classpath to bundle into the jar manifest
  12893. @param pwd Path to working directory to save jar
  12894. @param targetDir path to where the jar execution will have its working dir
  12895. @param callerEnv Map {@literal <}String, String{@literal >} caller's
  12896. environment variables to use for expansion
  12897. @return String[] with absolute path to new jar in position 0 and
  12898. unexpanded wild card entry path in position 1
  12899. @throws IOException if there is an I/O error while writing the jar file]]>
  12900. </doc>
  12901. </method>
  12902. <method name="getJarsInDirectory" return="java.util.List"
  12903. abstract="false" native="false" synchronized="false"
  12904. static="true" final="false" visibility="public"
  12905. deprecated="not deprecated">
  12906. <param name="path" type="java.lang.String"/>
  12907. <doc>
  12908. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  12909. wildcard path to return all jars from the directory to use in a classpath.
  12910. It operates only on local paths.
  12911. @param path the path to the directory. The path may include the wildcard.
  12912. @return the list of jars as URLs, or an empty list if there are no jars, or
  12913. the directory does not exist locally]]>
  12914. </doc>
  12915. </method>
  12916. <method name="getJarsInDirectory" return="java.util.List"
  12917. abstract="false" native="false" synchronized="false"
  12918. static="true" final="false" visibility="public"
  12919. deprecated="not deprecated">
  12920. <param name="path" type="java.lang.String"/>
  12921. <param name="useLocal" type="boolean"/>
  12922. <doc>
  12923. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  12924. wildcard path to return all jars from the directory to use in a classpath.
  12925. @param path the path to the directory. The path may include the wildcard.
  12926. @param useLocal use local.
  12927. @return the list of jars as URLs, or an empty list if there are no jars, or
  12928. the directory does not exist]]>
  12929. </doc>
  12930. </method>
  12931. <method name="compareFs" return="boolean"
  12932. abstract="false" native="false" synchronized="false"
  12933. static="true" final="false" visibility="public"
  12934. deprecated="not deprecated">
  12935. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  12936. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  12937. </method>
  12938. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12939. abstract="false" native="false" synchronized="false"
  12940. static="true" final="false" visibility="public"
  12941. deprecated="not deprecated">
  12942. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12943. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12944. <param name="bytes" type="byte[]"/>
  12945. <exception name="IOException" type="java.io.IOException"/>
  12946. <doc>
  12947. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  12948. creating the file if it does not exist, or overwrites an existing file. All
  12949. bytes in the byte array are written to the file.
  12950. @param fs the file system with which to create the file
  12951. @param path the path to the file
  12952. @param bytes the byte array with the bytes to write
  12953. @return the file system
  12954. @throws NullPointerException if any of the arguments are {@code null}
  12955. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12956. </doc>
  12957. </method>
  12958. <method name="write" return="org.apache.hadoop.fs.FileContext"
  12959. abstract="false" native="false" synchronized="false"
  12960. static="true" final="false" visibility="public"
  12961. deprecated="not deprecated">
  12962. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  12963. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12964. <param name="bytes" type="byte[]"/>
  12965. <exception name="IOException" type="java.io.IOException"/>
  12966. <doc>
  12967. <![CDATA[Writes bytes to a file. This utility method opens the file for writing,
  12968. creating the file if it does not exist, or overwrites an existing file. All
  12969. bytes in the byte array are written to the file.
  12970. @param fileContext the file context with which to create the file
  12971. @param path the path to the file
  12972. @param bytes the byte array with the bytes to write
  12973. @return the file context
  12974. @throws NullPointerException if any of the arguments are {@code null}
  12975. @throws IOException if an I/O error occurs creating or writing to the file]]>
  12976. </doc>
  12977. </method>
  12978. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  12979. abstract="false" native="false" synchronized="false"
  12980. static="true" final="false" visibility="public"
  12981. deprecated="not deprecated">
  12982. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12983. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12984. <param name="lines" type="java.lang.Iterable"/>
  12985. <param name="cs" type="java.nio.charset.Charset"/>
  12986. <exception name="IOException" type="java.io.IOException"/>
  12987. <doc>
  12988. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  12989. to the file in sequence with each line terminated by the platform's line
  12990. separator, as defined by the system property {@code
  12991. line.separator}. Characters are encoded into bytes using the specified
  12992. charset. This utility method opens the file for writing, creating the file
  12993. if it does not exist, or overwrites an existing file.
  12994. @param fs the file system with which to create the file
  12995. @param path the path to the file
  12996. @param lines a Collection to iterate over the char sequences
  12997. @param cs the charset to use for encoding
  12998. @return the file system
  12999. @throws NullPointerException if any of the arguments are {@code null}
  13000. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13001. </doc>
  13002. </method>
  13003. <method name="write" return="org.apache.hadoop.fs.FileContext"
  13004. abstract="false" native="false" synchronized="false"
  13005. static="true" final="false" visibility="public"
  13006. deprecated="not deprecated">
  13007. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  13008. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13009. <param name="lines" type="java.lang.Iterable"/>
  13010. <param name="cs" type="java.nio.charset.Charset"/>
  13011. <exception name="IOException" type="java.io.IOException"/>
  13012. <doc>
  13013. <![CDATA[Write lines of text to a file. Each line is a char sequence and is written
  13014. to the file in sequence with each line terminated by the platform's line
  13015. separator, as defined by the system property {@code
  13016. line.separator}. Characters are encoded into bytes using the specified
  13017. charset. This utility method opens the file for writing, creating the file
  13018. if it does not exist, or overwrites an existing file.
  13019. @param fileContext the file context with which to create the file
  13020. @param path the path to the file
  13021. @param lines a Collection to iterate over the char sequences
  13022. @param cs the charset to use for encoding
  13023. @return the file context
  13024. @throws NullPointerException if any of the arguments are {@code null}
  13025. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13026. </doc>
  13027. </method>
  13028. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  13029. abstract="false" native="false" synchronized="false"
  13030. static="true" final="false" visibility="public"
  13031. deprecated="not deprecated">
  13032. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13033. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13034. <param name="charseq" type="java.lang.CharSequence"/>
  13035. <param name="cs" type="java.nio.charset.Charset"/>
  13036. <exception name="IOException" type="java.io.IOException"/>
  13037. <doc>
  13038. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using the
  13039. specified charset. This utility method opens the file for writing, creating
  13040. the file if it does not exist, or overwrites an existing file.
  13041. @param fs the file system with which to create the file
  13042. @param path the path to the file
  13043. @param charseq the char sequence to write to the file
  13044. @param cs the charset to use for encoding
  13045. @return the file system
  13046. @throws NullPointerException if any of the arguments are {@code null}
  13047. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13048. </doc>
  13049. </method>
  13050. <method name="write" return="org.apache.hadoop.fs.FileContext"
  13051. abstract="false" native="false" synchronized="false"
  13052. static="true" final="false" visibility="public"
  13053. deprecated="not deprecated">
  13054. <param name="fs" type="org.apache.hadoop.fs.FileContext"/>
  13055. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13056. <param name="charseq" type="java.lang.CharSequence"/>
  13057. <param name="cs" type="java.nio.charset.Charset"/>
  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 the
  13061. specified charset. This utility method opens the file for writing, creating
  13062. the file if it does not exist, or overwrites an existing file.
  13063. @param fs the file context 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. @param cs the charset to use for encoding
  13067. @return the file context
  13068. @throws NullPointerException if any of the arguments are {@code null}
  13069. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13070. </doc>
  13071. </method>
  13072. <method name="write" return="org.apache.hadoop.fs.FileSystem"
  13073. abstract="false" native="false" synchronized="false"
  13074. static="true" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13077. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13078. <param name="charseq" type="java.lang.CharSequence"/>
  13079. <exception name="IOException" type="java.io.IOException"/>
  13080. <doc>
  13081. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  13082. UTF-8. This utility method opens the file for writing, creating the file if
  13083. it does not exist, or overwrites an existing file.
  13084. @param fs the files system with which to create the file
  13085. @param path the path to the file
  13086. @param charseq the char sequence to write to the file
  13087. @return the file system
  13088. @throws NullPointerException if any of the arguments are {@code null}
  13089. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13090. </doc>
  13091. </method>
  13092. <method name="write" return="org.apache.hadoop.fs.FileContext"
  13093. abstract="false" native="false" synchronized="false"
  13094. static="true" final="false" visibility="public"
  13095. deprecated="not deprecated">
  13096. <param name="fileContext" type="org.apache.hadoop.fs.FileContext"/>
  13097. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13098. <param name="charseq" type="java.lang.CharSequence"/>
  13099. <exception name="IOException" type="java.io.IOException"/>
  13100. <doc>
  13101. <![CDATA[Write a line of text to a file. Characters are encoded into bytes using
  13102. UTF-8. This utility method opens the file for writing, creating the file if
  13103. it does not exist, or overwrites an existing file.
  13104. @param fileContext the files system with which to create the file
  13105. @param path the path to the file
  13106. @param charseq the char sequence to write to the file
  13107. @return the file context
  13108. @throws NullPointerException if any of the arguments are {@code null}
  13109. @throws IOException if an I/O error occurs creating or writing to the file]]>
  13110. </doc>
  13111. </method>
  13112. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  13113. transient="false" volatile="false"
  13114. static="true" final="true" visibility="public"
  13115. deprecated="not deprecated">
  13116. </field>
  13117. <doc>
  13118. <![CDATA[A collection of file-processing util methods]]>
  13119. </doc>
  13120. </class>
  13121. <!-- end class org.apache.hadoop.fs.FileUtil -->
  13122. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  13123. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13124. abstract="false"
  13125. static="false" final="false" visibility="public"
  13126. deprecated="not deprecated">
  13127. <constructor name="FilterFileSystem"
  13128. static="false" final="false" visibility="public"
  13129. deprecated="not deprecated">
  13130. </constructor>
  13131. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13132. static="false" final="false" visibility="public"
  13133. deprecated="not deprecated">
  13134. </constructor>
  13135. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  13136. abstract="false" native="false" synchronized="false"
  13137. static="false" final="false" visibility="public"
  13138. deprecated="not deprecated">
  13139. <doc>
  13140. <![CDATA[Get the raw file system
  13141. @return FileSystem being filtered]]>
  13142. </doc>
  13143. </method>
  13144. <method name="initialize"
  13145. abstract="false" native="false" synchronized="false"
  13146. static="false" final="false" visibility="public"
  13147. deprecated="not deprecated">
  13148. <param name="name" type="java.net.URI"/>
  13149. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13150. <exception name="IOException" type="java.io.IOException"/>
  13151. <doc>
  13152. <![CDATA[Called after a new FileSystem instance is constructed.
  13153. @param name a uri whose authority section names the host, port, etc.
  13154. for this FileSystem
  13155. @param conf the configuration]]>
  13156. </doc>
  13157. </method>
  13158. <method name="getUri" return="java.net.URI"
  13159. abstract="false" native="false" synchronized="false"
  13160. static="false" final="false" visibility="public"
  13161. deprecated="not deprecated">
  13162. <doc>
  13163. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  13164. </doc>
  13165. </method>
  13166. <method name="getCanonicalUri" return="java.net.URI"
  13167. abstract="false" native="false" synchronized="false"
  13168. static="false" final="false" visibility="protected"
  13169. deprecated="not deprecated">
  13170. </method>
  13171. <method name="canonicalizeUri" return="java.net.URI"
  13172. abstract="false" native="false" synchronized="false"
  13173. static="false" final="false" visibility="protected"
  13174. deprecated="not deprecated">
  13175. <param name="uri" type="java.net.URI"/>
  13176. </method>
  13177. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13178. abstract="false" native="false" synchronized="false"
  13179. static="false" final="false" visibility="public"
  13180. deprecated="not deprecated">
  13181. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13182. <doc>
  13183. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  13184. </doc>
  13185. </method>
  13186. <method name="checkPath"
  13187. abstract="false" native="false" synchronized="false"
  13188. static="false" final="false" visibility="protected"
  13189. deprecated="not deprecated">
  13190. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13191. <doc>
  13192. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  13193. </doc>
  13194. </method>
  13195. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13196. abstract="false" native="false" synchronized="false"
  13197. static="false" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  13200. <param name="start" type="long"/>
  13201. <param name="len" type="long"/>
  13202. <exception name="IOException" type="java.io.IOException"/>
  13203. </method>
  13204. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  13205. abstract="false" native="false" synchronized="false"
  13206. static="false" final="false" visibility="public"
  13207. deprecated="not deprecated">
  13208. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13209. <exception name="IOException" type="java.io.IOException"/>
  13210. </method>
  13211. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13212. abstract="false" native="false" synchronized="false"
  13213. static="false" final="false" visibility="public"
  13214. deprecated="not deprecated">
  13215. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13216. <param name="bufferSize" type="int"/>
  13217. <exception name="IOException" type="java.io.IOException"/>
  13218. <doc>
  13219. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  13220. @param f the file name to open
  13221. @param bufferSize the size of the buffer to be used.]]>
  13222. </doc>
  13223. </method>
  13224. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13225. abstract="false" native="false" synchronized="false"
  13226. static="false" final="false" visibility="public"
  13227. deprecated="not deprecated">
  13228. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  13229. <param name="bufferSize" type="int"/>
  13230. <exception name="IOException" type="java.io.IOException"/>
  13231. </method>
  13232. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  13233. abstract="false" native="false" synchronized="false"
  13234. static="false" final="false" visibility="protected"
  13235. deprecated="not deprecated">
  13236. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  13237. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  13238. </method>
  13239. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13240. abstract="false" native="false" synchronized="false"
  13241. static="false" final="false" visibility="public"
  13242. deprecated="not deprecated">
  13243. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13244. <param name="bufferSize" type="int"/>
  13245. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13246. <exception name="IOException" type="java.io.IOException"/>
  13247. </method>
  13248. <method name="concat"
  13249. abstract="false" native="false" synchronized="false"
  13250. static="false" final="false" visibility="public"
  13251. deprecated="not deprecated">
  13252. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13253. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  13254. <exception name="IOException" type="java.io.IOException"/>
  13255. </method>
  13256. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13257. abstract="false" native="false" synchronized="false"
  13258. static="false" final="false" visibility="public"
  13259. deprecated="not deprecated">
  13260. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13261. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13262. <param name="overwrite" type="boolean"/>
  13263. <param name="bufferSize" type="int"/>
  13264. <param name="replication" type="short"/>
  13265. <param name="blockSize" type="long"/>
  13266. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13267. <exception name="IOException" type="java.io.IOException"/>
  13268. </method>
  13269. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13270. abstract="false" native="false" synchronized="false"
  13271. static="false" final="false" visibility="public"
  13272. deprecated="not deprecated">
  13273. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13274. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13275. <param name="flags" type="java.util.EnumSet"/>
  13276. <param name="bufferSize" type="int"/>
  13277. <param name="replication" type="short"/>
  13278. <param name="blockSize" type="long"/>
  13279. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13280. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13281. <exception name="IOException" type="java.io.IOException"/>
  13282. </method>
  13283. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  13284. abstract="false" native="false" synchronized="false"
  13285. static="false" final="false" visibility="protected"
  13286. deprecated="not deprecated">
  13287. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13288. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  13289. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13290. <exception name="IOException" type="java.io.IOException"/>
  13291. </method>
  13292. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13293. abstract="false" native="false" synchronized="false"
  13294. static="false" final="false" visibility="public"
  13295. deprecated="not deprecated">
  13296. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13297. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13298. <param name="flags" type="java.util.EnumSet"/>
  13299. <param name="bufferSize" type="int"/>
  13300. <param name="replication" type="short"/>
  13301. <param name="blockSize" type="long"/>
  13302. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13303. <exception name="IOException" type="java.io.IOException"/>
  13304. </method>
  13305. <method name="setReplication" return="boolean"
  13306. abstract="false" native="false" synchronized="false"
  13307. static="false" final="false" visibility="public"
  13308. deprecated="not deprecated">
  13309. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13310. <param name="replication" type="short"/>
  13311. <exception name="IOException" type="java.io.IOException"/>
  13312. <doc>
  13313. <![CDATA[Set replication for an existing file.
  13314. @param src file name
  13315. @param replication new replication
  13316. @throws IOException raised on errors performing I/O.
  13317. @return true if successful;
  13318. false if file does not exist or is a directory]]>
  13319. </doc>
  13320. </method>
  13321. <method name="rename" return="boolean"
  13322. abstract="false" native="false" synchronized="false"
  13323. static="false" final="false" visibility="public"
  13324. deprecated="not deprecated">
  13325. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13326. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13327. <exception name="IOException" type="java.io.IOException"/>
  13328. <doc>
  13329. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  13330. or remote DFS.]]>
  13331. </doc>
  13332. </method>
  13333. <method name="rename"
  13334. abstract="false" native="false" synchronized="false"
  13335. static="false" final="false" visibility="protected"
  13336. deprecated="not deprecated">
  13337. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13338. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13339. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  13340. <exception name="IOException" type="java.io.IOException"/>
  13341. </method>
  13342. <method name="truncate" return="boolean"
  13343. abstract="false" native="false" synchronized="false"
  13344. static="false" final="false" visibility="public"
  13345. deprecated="not deprecated">
  13346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13347. <param name="newLength" type="long"/>
  13348. <exception name="IOException" type="java.io.IOException"/>
  13349. </method>
  13350. <method name="delete" return="boolean"
  13351. abstract="false" native="false" synchronized="false"
  13352. static="false" final="false" visibility="public"
  13353. deprecated="not deprecated">
  13354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13355. <param name="recursive" type="boolean"/>
  13356. <exception name="IOException" type="java.io.IOException"/>
  13357. <doc>
  13358. <![CDATA[Delete a file]]>
  13359. </doc>
  13360. </method>
  13361. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13362. abstract="false" native="false" synchronized="false"
  13363. static="false" final="false" visibility="public"
  13364. deprecated="not deprecated">
  13365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13366. <exception name="IOException" type="java.io.IOException"/>
  13367. <doc>
  13368. <![CDATA[List files in a directory.]]>
  13369. </doc>
  13370. </method>
  13371. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  13372. abstract="false" native="false" synchronized="false"
  13373. static="false" final="false" visibility="public"
  13374. deprecated="not deprecated">
  13375. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13376. <exception name="IOException" type="java.io.IOException"/>
  13377. </method>
  13378. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  13379. abstract="false" native="false" synchronized="false"
  13380. static="false" final="false" visibility="public"
  13381. deprecated="not deprecated">
  13382. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13383. <exception name="IOException" type="java.io.IOException"/>
  13384. <doc>
  13385. <![CDATA[List files and its block locations in a directory.]]>
  13386. </doc>
  13387. </method>
  13388. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  13389. abstract="false" native="false" synchronized="false"
  13390. static="false" final="false" visibility="public"
  13391. deprecated="not deprecated">
  13392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13393. <exception name="IOException" type="java.io.IOException"/>
  13394. <doc>
  13395. <![CDATA[Return a remote iterator for listing in a directory]]>
  13396. </doc>
  13397. </method>
  13398. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13399. abstract="false" native="false" synchronized="false"
  13400. static="false" final="false" visibility="public"
  13401. deprecated="not deprecated">
  13402. </method>
  13403. <method name="setWorkingDirectory"
  13404. abstract="false" native="false" synchronized="false"
  13405. static="false" final="false" visibility="public"
  13406. deprecated="not deprecated">
  13407. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13408. <doc>
  13409. <![CDATA[Set the current working directory for the given file system. All relative
  13410. paths will be resolved relative to it.
  13411. @param newDir new dir.]]>
  13412. </doc>
  13413. </method>
  13414. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13415. abstract="false" native="false" synchronized="false"
  13416. static="false" final="false" visibility="public"
  13417. deprecated="not deprecated">
  13418. <doc>
  13419. <![CDATA[Get the current working directory for the given file system
  13420. @return the directory pathname]]>
  13421. </doc>
  13422. </method>
  13423. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13424. abstract="false" native="false" synchronized="false"
  13425. static="false" final="false" visibility="protected"
  13426. deprecated="not deprecated">
  13427. </method>
  13428. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  13429. abstract="false" native="false" synchronized="false"
  13430. static="false" final="false" visibility="public"
  13431. deprecated="not deprecated">
  13432. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13433. <exception name="IOException" type="java.io.IOException"/>
  13434. </method>
  13435. <method name="mkdirs" return="boolean"
  13436. abstract="false" native="false" synchronized="false"
  13437. static="false" final="false" visibility="public"
  13438. deprecated="not deprecated">
  13439. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13440. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13441. <exception name="IOException" type="java.io.IOException"/>
  13442. </method>
  13443. <method name="mkdirs" return="boolean"
  13444. abstract="false" native="false" synchronized="false"
  13445. static="false" final="false" visibility="public"
  13446. deprecated="not deprecated">
  13447. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13448. <exception name="IOException" type="java.io.IOException"/>
  13449. </method>
  13450. <method name="copyFromLocalFile"
  13451. abstract="false" native="false" synchronized="false"
  13452. static="false" final="false" visibility="public"
  13453. deprecated="not deprecated">
  13454. <param name="delSrc" type="boolean"/>
  13455. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13456. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13457. <exception name="IOException" type="java.io.IOException"/>
  13458. <doc>
  13459. <![CDATA[The src file is on the local disk. Add it to FS at
  13460. the given dst name.
  13461. delSrc indicates if the source should be removed]]>
  13462. </doc>
  13463. </method>
  13464. <method name="copyFromLocalFile"
  13465. abstract="false" native="false" synchronized="false"
  13466. static="false" final="false" visibility="public"
  13467. deprecated="not deprecated">
  13468. <param name="delSrc" type="boolean"/>
  13469. <param name="overwrite" type="boolean"/>
  13470. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  13471. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13472. <exception name="IOException" type="java.io.IOException"/>
  13473. <doc>
  13474. <![CDATA[The src files are on the local disk. Add it to FS at
  13475. the given dst name.
  13476. delSrc indicates if the source should be removed]]>
  13477. </doc>
  13478. </method>
  13479. <method name="copyFromLocalFile"
  13480. abstract="false" native="false" synchronized="false"
  13481. static="false" final="false" visibility="public"
  13482. deprecated="not deprecated">
  13483. <param name="delSrc" type="boolean"/>
  13484. <param name="overwrite" type="boolean"/>
  13485. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13486. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13487. <exception name="IOException" type="java.io.IOException"/>
  13488. <doc>
  13489. <![CDATA[The src file is on the local disk. Add it to FS at
  13490. the given dst name.
  13491. delSrc indicates if the source should be removed]]>
  13492. </doc>
  13493. </method>
  13494. <method name="copyToLocalFile"
  13495. abstract="false" native="false" synchronized="false"
  13496. static="false" final="false" visibility="public"
  13497. deprecated="not deprecated">
  13498. <param name="delSrc" type="boolean"/>
  13499. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13500. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13501. <exception name="IOException" type="java.io.IOException"/>
  13502. <doc>
  13503. <![CDATA[The src file is under FS, and the dst is on the local disk.
  13504. Copy it from FS control to the local dst name.
  13505. delSrc indicates if the src will be removed or not.]]>
  13506. </doc>
  13507. </method>
  13508. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  13509. abstract="false" native="false" synchronized="false"
  13510. static="false" final="false" visibility="public"
  13511. deprecated="not deprecated">
  13512. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13513. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13514. <exception name="IOException" type="java.io.IOException"/>
  13515. <doc>
  13516. <![CDATA[Returns a local File that the user can write output to. The caller
  13517. provides both the eventual FS target name and the local working
  13518. file. If the FS is local, we write directly into the target. If
  13519. the FS is remote, we write into the tmp local area.]]>
  13520. </doc>
  13521. </method>
  13522. <method name="completeLocalOutput"
  13523. abstract="false" native="false" synchronized="false"
  13524. static="false" final="false" visibility="public"
  13525. deprecated="not deprecated">
  13526. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13527. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13528. <exception name="IOException" type="java.io.IOException"/>
  13529. <doc>
  13530. <![CDATA[Called when we're all done writing to the target. A local FS will
  13531. do nothing, because we've written to exactly the right place. A remote
  13532. FS will copy the contents of tmpLocalFile to the correct target at
  13533. fsOutputFile.]]>
  13534. </doc>
  13535. </method>
  13536. <method name="getUsed" return="long"
  13537. abstract="false" native="false" synchronized="false"
  13538. static="false" final="false" visibility="public"
  13539. deprecated="not deprecated">
  13540. <exception name="IOException" type="java.io.IOException"/>
  13541. <doc>
  13542. <![CDATA[Return the total size of all files in the filesystem.]]>
  13543. </doc>
  13544. </method>
  13545. <method name="getUsed" return="long"
  13546. abstract="false" native="false" synchronized="false"
  13547. static="false" final="false" visibility="public"
  13548. deprecated="not deprecated">
  13549. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13550. <exception name="IOException" type="java.io.IOException"/>
  13551. <doc>
  13552. <![CDATA[Return the total size of all files from a specified path.]]>
  13553. </doc>
  13554. </method>
  13555. <method name="getDefaultBlockSize" return="long"
  13556. abstract="false" native="false" synchronized="false"
  13557. static="false" final="false" visibility="public"
  13558. deprecated="not deprecated">
  13559. </method>
  13560. <method name="getDefaultReplication" return="short"
  13561. abstract="false" native="false" synchronized="false"
  13562. static="false" final="false" visibility="public"
  13563. deprecated="not deprecated">
  13564. </method>
  13565. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13566. abstract="false" native="false" synchronized="false"
  13567. static="false" final="false" visibility="public"
  13568. deprecated="not deprecated">
  13569. <exception name="IOException" type="java.io.IOException"/>
  13570. </method>
  13571. <method name="getDefaultBlockSize" return="long"
  13572. abstract="false" native="false" synchronized="false"
  13573. static="false" final="false" visibility="public"
  13574. deprecated="not deprecated">
  13575. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13576. </method>
  13577. <method name="getDefaultReplication" return="short"
  13578. abstract="false" native="false" synchronized="false"
  13579. static="false" final="false" visibility="public"
  13580. deprecated="not deprecated">
  13581. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13582. </method>
  13583. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13584. abstract="false" native="false" synchronized="false"
  13585. static="false" final="false" visibility="public"
  13586. deprecated="not deprecated">
  13587. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13588. <exception name="IOException" type="java.io.IOException"/>
  13589. </method>
  13590. <method name="getFileStatus" 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="IOException" type="java.io.IOException"/>
  13596. <doc>
  13597. <![CDATA[Get file status.]]>
  13598. </doc>
  13599. </method>
  13600. <method name="msync"
  13601. abstract="false" native="false" synchronized="false"
  13602. static="false" final="false" visibility="public"
  13603. deprecated="not deprecated">
  13604. <exception name="IOException" type="java.io.IOException"/>
  13605. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13606. </method>
  13607. <method name="access"
  13608. abstract="false" native="false" synchronized="false"
  13609. static="false" final="false" visibility="public"
  13610. deprecated="not deprecated">
  13611. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13612. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  13613. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13614. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13615. <exception name="IOException" type="java.io.IOException"/>
  13616. </method>
  13617. <method name="createSymlink"
  13618. abstract="false" native="false" synchronized="false"
  13619. static="false" final="false" visibility="public"
  13620. deprecated="not deprecated">
  13621. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13622. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13623. <param name="createParent" type="boolean"/>
  13624. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13625. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  13626. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13627. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  13628. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13629. <exception name="IOException" type="java.io.IOException"/>
  13630. </method>
  13631. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13632. abstract="false" native="false" synchronized="false"
  13633. static="false" final="false" visibility="public"
  13634. deprecated="not deprecated">
  13635. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13636. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13637. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13638. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13639. <exception name="IOException" type="java.io.IOException"/>
  13640. </method>
  13641. <method name="supportsSymlinks" return="boolean"
  13642. abstract="false" native="false" synchronized="false"
  13643. static="false" final="false" visibility="public"
  13644. deprecated="not deprecated">
  13645. </method>
  13646. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13647. abstract="false" native="false" synchronized="false"
  13648. static="false" final="false" visibility="public"
  13649. deprecated="not deprecated">
  13650. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13651. <exception name="IOException" type="java.io.IOException"/>
  13652. </method>
  13653. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  13654. abstract="false" native="false" synchronized="false"
  13655. static="false" final="false" visibility="protected"
  13656. deprecated="not deprecated">
  13657. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13658. <exception name="IOException" type="java.io.IOException"/>
  13659. </method>
  13660. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13661. abstract="false" native="false" synchronized="false"
  13662. static="false" final="false" visibility="public"
  13663. deprecated="not deprecated">
  13664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13665. <exception name="IOException" type="java.io.IOException"/>
  13666. </method>
  13667. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13668. abstract="false" native="false" synchronized="false"
  13669. static="false" final="false" visibility="public"
  13670. deprecated="not deprecated">
  13671. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13672. <param name="length" type="long"/>
  13673. <exception name="IOException" type="java.io.IOException"/>
  13674. </method>
  13675. <method name="setVerifyChecksum"
  13676. abstract="false" native="false" synchronized="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <param name="verifyChecksum" type="boolean"/>
  13680. </method>
  13681. <method name="setWriteChecksum"
  13682. abstract="false" native="false" synchronized="false"
  13683. static="false" final="false" visibility="public"
  13684. deprecated="not deprecated">
  13685. <param name="writeChecksum" type="boolean"/>
  13686. </method>
  13687. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13688. abstract="false" native="false" synchronized="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. </method>
  13692. <method name="close"
  13693. abstract="false" native="false" synchronized="false"
  13694. static="false" final="false" visibility="public"
  13695. deprecated="not deprecated">
  13696. <exception name="IOException" type="java.io.IOException"/>
  13697. </method>
  13698. <method name="setOwner"
  13699. abstract="false" native="false" synchronized="false"
  13700. static="false" final="false" visibility="public"
  13701. deprecated="not deprecated">
  13702. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13703. <param name="username" type="java.lang.String"/>
  13704. <param name="groupname" type="java.lang.String"/>
  13705. <exception name="IOException" type="java.io.IOException"/>
  13706. </method>
  13707. <method name="setTimes"
  13708. abstract="false" native="false" synchronized="false"
  13709. static="false" final="false" visibility="public"
  13710. deprecated="not deprecated">
  13711. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13712. <param name="mtime" type="long"/>
  13713. <param name="atime" type="long"/>
  13714. <exception name="IOException" type="java.io.IOException"/>
  13715. </method>
  13716. <method name="setPermission"
  13717. abstract="false" native="false" synchronized="false"
  13718. static="false" final="false" visibility="public"
  13719. deprecated="not deprecated">
  13720. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13721. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13722. <exception name="IOException" type="java.io.IOException"/>
  13723. </method>
  13724. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  13725. abstract="false" native="false" synchronized="false"
  13726. static="false" final="false" visibility="protected"
  13727. deprecated="not deprecated">
  13728. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13729. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13730. <param name="flag" type="java.util.EnumSet"/>
  13731. <param name="bufferSize" type="int"/>
  13732. <param name="replication" type="short"/>
  13733. <param name="blockSize" type="long"/>
  13734. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13735. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13736. <exception name="IOException" type="java.io.IOException"/>
  13737. </method>
  13738. <method name="primitiveMkdir" return="boolean"
  13739. abstract="false" native="false" synchronized="false"
  13740. static="false" final="false" visibility="protected"
  13741. deprecated="not deprecated">
  13742. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13743. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13744. <exception name="IOException" type="java.io.IOException"/>
  13745. </method>
  13746. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  13747. abstract="false" native="false" synchronized="false"
  13748. static="false" final="false" visibility="public"
  13749. deprecated="not deprecated">
  13750. </method>
  13751. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  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. <param name="snapshotName" type="java.lang.String"/>
  13757. <exception name="IOException" type="java.io.IOException"/>
  13758. </method>
  13759. <method name="renameSnapshot"
  13760. abstract="false" native="false" synchronized="false"
  13761. static="false" final="false" visibility="public"
  13762. deprecated="not deprecated">
  13763. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13764. <param name="snapshotOldName" type="java.lang.String"/>
  13765. <param name="snapshotNewName" type="java.lang.String"/>
  13766. <exception name="IOException" type="java.io.IOException"/>
  13767. </method>
  13768. <method name="deleteSnapshot"
  13769. abstract="false" native="false" synchronized="false"
  13770. static="false" final="false" visibility="public"
  13771. deprecated="not deprecated">
  13772. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13773. <param name="snapshotName" type="java.lang.String"/>
  13774. <exception name="IOException" type="java.io.IOException"/>
  13775. </method>
  13776. <method name="modifyAclEntries"
  13777. abstract="false" native="false" synchronized="false"
  13778. static="false" final="false" visibility="public"
  13779. deprecated="not deprecated">
  13780. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13781. <param name="aclSpec" type="java.util.List"/>
  13782. <exception name="IOException" type="java.io.IOException"/>
  13783. </method>
  13784. <method name="removeAclEntries"
  13785. abstract="false" native="false" synchronized="false"
  13786. static="false" final="false" visibility="public"
  13787. deprecated="not deprecated">
  13788. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13789. <param name="aclSpec" type="java.util.List"/>
  13790. <exception name="IOException" type="java.io.IOException"/>
  13791. </method>
  13792. <method name="removeDefaultAcl"
  13793. abstract="false" native="false" synchronized="false"
  13794. static="false" final="false" visibility="public"
  13795. deprecated="not deprecated">
  13796. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13797. <exception name="IOException" type="java.io.IOException"/>
  13798. </method>
  13799. <method name="removeAcl"
  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. <exception name="IOException" type="java.io.IOException"/>
  13805. </method>
  13806. <method name="setAcl"
  13807. abstract="false" native="false" synchronized="false"
  13808. static="false" final="false" visibility="public"
  13809. deprecated="not deprecated">
  13810. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13811. <param name="aclSpec" type="java.util.List"/>
  13812. <exception name="IOException" type="java.io.IOException"/>
  13813. </method>
  13814. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  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. <exception name="IOException" type="java.io.IOException"/>
  13820. </method>
  13821. <method name="setXAttr"
  13822. abstract="false" native="false" synchronized="false"
  13823. static="false" final="false" visibility="public"
  13824. deprecated="not deprecated">
  13825. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13826. <param name="name" type="java.lang.String"/>
  13827. <param name="value" type="byte[]"/>
  13828. <exception name="IOException" type="java.io.IOException"/>
  13829. </method>
  13830. <method name="setXAttr"
  13831. abstract="false" native="false" synchronized="false"
  13832. static="false" final="false" visibility="public"
  13833. deprecated="not deprecated">
  13834. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13835. <param name="name" type="java.lang.String"/>
  13836. <param name="value" type="byte[]"/>
  13837. <param name="flag" type="java.util.EnumSet"/>
  13838. <exception name="IOException" type="java.io.IOException"/>
  13839. </method>
  13840. <method name="getXAttr" return="byte[]"
  13841. abstract="false" native="false" synchronized="false"
  13842. static="false" final="false" visibility="public"
  13843. deprecated="not deprecated">
  13844. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13845. <param name="name" type="java.lang.String"/>
  13846. <exception name="IOException" type="java.io.IOException"/>
  13847. </method>
  13848. <method name="getXAttrs" return="java.util.Map"
  13849. abstract="false" native="false" synchronized="false"
  13850. static="false" final="false" visibility="public"
  13851. deprecated="not deprecated">
  13852. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13853. <exception name="IOException" type="java.io.IOException"/>
  13854. </method>
  13855. <method name="getXAttrs" return="java.util.Map"
  13856. abstract="false" native="false" synchronized="false"
  13857. static="false" final="false" visibility="public"
  13858. deprecated="not deprecated">
  13859. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13860. <param name="names" type="java.util.List"/>
  13861. <exception name="IOException" type="java.io.IOException"/>
  13862. </method>
  13863. <method name="listXAttrs" return="java.util.List"
  13864. abstract="false" native="false" synchronized="false"
  13865. static="false" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13868. <exception name="IOException" type="java.io.IOException"/>
  13869. </method>
  13870. <method name="removeXAttr"
  13871. abstract="false" native="false" synchronized="false"
  13872. static="false" final="false" visibility="public"
  13873. deprecated="not deprecated">
  13874. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13875. <param name="name" type="java.lang.String"/>
  13876. <exception name="IOException" type="java.io.IOException"/>
  13877. </method>
  13878. <method name="satisfyStoragePolicy"
  13879. abstract="false" native="false" synchronized="false"
  13880. static="false" final="false" visibility="public"
  13881. deprecated="not deprecated">
  13882. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13883. <exception name="IOException" type="java.io.IOException"/>
  13884. </method>
  13885. <method name="setStoragePolicy"
  13886. abstract="false" native="false" synchronized="false"
  13887. static="false" final="false" visibility="public"
  13888. deprecated="not deprecated">
  13889. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13890. <param name="policyName" type="java.lang.String"/>
  13891. <exception name="IOException" type="java.io.IOException"/>
  13892. </method>
  13893. <method name="unsetStoragePolicy"
  13894. abstract="false" native="false" synchronized="false"
  13895. static="false" final="false" visibility="public"
  13896. deprecated="not deprecated">
  13897. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13898. <exception name="IOException" type="java.io.IOException"/>
  13899. </method>
  13900. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  13901. abstract="false" native="false" synchronized="false"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13905. <exception name="IOException" type="java.io.IOException"/>
  13906. </method>
  13907. <method name="getAllStoragePolicies" return="java.util.Collection"
  13908. abstract="false" native="false" synchronized="false"
  13909. static="false" final="false" visibility="public"
  13910. deprecated="not deprecated">
  13911. <exception name="IOException" type="java.io.IOException"/>
  13912. </method>
  13913. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  13914. abstract="false" native="false" synchronized="false"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13918. </method>
  13919. <method name="getTrashRoots" return="java.util.Collection"
  13920. abstract="false" native="false" synchronized="false"
  13921. static="false" final="false" visibility="public"
  13922. deprecated="not deprecated">
  13923. <param name="allUsers" type="boolean"/>
  13924. </method>
  13925. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  13926. abstract="false" native="false" synchronized="false"
  13927. static="false" final="false" visibility="public"
  13928. deprecated="not deprecated">
  13929. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13930. </method>
  13931. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  13932. abstract="false" native="false" synchronized="false"
  13933. static="false" final="false" visibility="public"
  13934. deprecated="not deprecated">
  13935. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13936. </method>
  13937. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13942. <exception name="IOException" type="java.io.IOException"/>
  13943. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13944. </method>
  13945. <method name="openFile" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  13950. <exception name="IOException" type="java.io.IOException"/>
  13951. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  13952. </method>
  13953. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  13954. abstract="false" native="false" synchronized="false"
  13955. static="false" final="false" visibility="protected"
  13956. deprecated="not deprecated">
  13957. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13958. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  13959. <exception name="IOException" type="java.io.IOException"/>
  13960. </method>
  13961. <method name="openFileWithOptions" return="java.util.concurrent.CompletableFuture"
  13962. abstract="false" native="false" synchronized="false"
  13963. static="false" final="false" visibility="protected"
  13964. deprecated="not deprecated">
  13965. <param name="pathHandle" type="org.apache.hadoop.fs.PathHandle"/>
  13966. <param name="parameters" type="org.apache.hadoop.fs.impl.OpenFileParameters"/>
  13967. <exception name="IOException" type="java.io.IOException"/>
  13968. </method>
  13969. <method name="hasPathCapability" return="boolean"
  13970. abstract="false" native="false" synchronized="false"
  13971. static="false" final="false" visibility="public"
  13972. deprecated="not deprecated">
  13973. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13974. <param name="capability" type="java.lang.String"/>
  13975. <exception name="IOException" type="java.io.IOException"/>
  13976. </method>
  13977. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  13978. transient="false" volatile="false"
  13979. static="false" final="false" visibility="protected"
  13980. deprecated="not deprecated">
  13981. </field>
  13982. <field name="swapScheme" type="java.lang.String"
  13983. transient="false" volatile="false"
  13984. static="false" final="false" visibility="protected"
  13985. deprecated="not deprecated">
  13986. </field>
  13987. <doc>
  13988. <![CDATA[A <code>FilterFileSystem</code> contains
  13989. some other file system, which it uses as
  13990. its basic file system, possibly transforming
  13991. the data along the way or providing additional
  13992. functionality. The class <code>FilterFileSystem</code>
  13993. itself simply overrides all methods of
  13994. <code>FileSystem</code> with versions that
  13995. pass all requests to the contained file
  13996. system. Subclasses of <code>FilterFileSystem</code>
  13997. may further override some of these methods
  13998. and may also provide additional methods
  13999. and fields.]]>
  14000. </doc>
  14001. </class>
  14002. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  14003. <!-- start interface org.apache.hadoop.fs.FSBuilder -->
  14004. <interface name="FSBuilder" abstract="true"
  14005. static="false" final="false" visibility="public"
  14006. deprecated="not deprecated">
  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="java.lang.String"/>
  14013. <doc>
  14014. <![CDATA[Set optional Builder parameter.
  14015. @param key key.
  14016. @param value value.
  14017. @return generic type B.]]>
  14018. </doc>
  14019. </method>
  14020. <method name="opt" return="B"
  14021. abstract="false" native="false" synchronized="false"
  14022. static="false" final="false" visibility="public"
  14023. deprecated="not deprecated">
  14024. <param name="key" type="java.lang.String"/>
  14025. <param name="value" type="boolean"/>
  14026. <doc>
  14027. <![CDATA[Set optional boolean parameter for the Builder.
  14028. @param key key.
  14029. @param value value.
  14030. @return generic type B.
  14031. @see #opt(String, String)]]>
  14032. </doc>
  14033. </method>
  14034. <method name="opt" return="B"
  14035. abstract="false" native="false" synchronized="false"
  14036. static="false" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. <param name="key" type="java.lang.String"/>
  14039. <param name="value" type="int"/>
  14040. <doc>
  14041. <![CDATA[Set optional int parameter for the Builder.
  14042. @param key key.
  14043. @param value value.
  14044. @return generic type B.
  14045. @see #opt(String, String)]]>
  14046. </doc>
  14047. </method>
  14048. <method name="opt" return="B"
  14049. abstract="false" native="false" synchronized="false"
  14050. static="false" final="false" visibility="public"
  14051. deprecated="use {@link #optDouble(String, double)}">
  14052. <param name="key" type="java.lang.String"/>
  14053. <param name="value" type="float"/>
  14054. <doc>
  14055. <![CDATA[This parameter is converted to a long and passed
  14056. to {@link #optLong(String, long)} -all
  14057. decimal precision is lost.
  14058. @param key key.
  14059. @param value value.
  14060. @return generic type B.
  14061. @see #opt(String, String)
  14062. @deprecated use {@link #optDouble(String, double)}]]>
  14063. </doc>
  14064. </method>
  14065. <method name="opt" return="B"
  14066. abstract="false" native="false" synchronized="false"
  14067. static="false" final="false" visibility="public"
  14068. deprecated="use {@link #optLong(String, long)} where possible.">
  14069. <param name="key" type="java.lang.String"/>
  14070. <param name="value" type="long"/>
  14071. <doc>
  14072. <![CDATA[Set optional long parameter for the Builder.
  14073. @param key key.
  14074. @param value value.
  14075. @return generic type B.
  14076. @deprecated use {@link #optLong(String, long)} where possible.]]>
  14077. </doc>
  14078. </method>
  14079. <method name="opt" return="B"
  14080. abstract="false" native="false" synchronized="false"
  14081. static="false" final="false" visibility="public"
  14082. deprecated="use {@link #optDouble(String, double)}">
  14083. <param name="key" type="java.lang.String"/>
  14084. <param name="value" type="double"/>
  14085. <doc>
  14086. <![CDATA[Pass an optional double parameter for the Builder.
  14087. This parameter is converted to a long and passed
  14088. to {@link #optLong(String, long)} -all
  14089. decimal precision is lost.
  14090. @param key key.
  14091. @param value value.
  14092. @return generic type B.
  14093. @see #opt(String, String)
  14094. @deprecated use {@link #optDouble(String, double)}]]>
  14095. </doc>
  14096. </method>
  14097. <method name="opt" return="B"
  14098. abstract="true" native="false" synchronized="false"
  14099. static="false" final="false" visibility="public"
  14100. deprecated="not deprecated">
  14101. <param name="key" type="java.lang.String"/>
  14102. <param name="values" type="java.lang.String[]"/>
  14103. <doc>
  14104. <![CDATA[Set an array of string values as optional parameter for the Builder.
  14105. @param key key.
  14106. @param values values.
  14107. @return generic type B.
  14108. @see #opt(String, String)]]>
  14109. </doc>
  14110. </method>
  14111. <method name="optLong" return="B"
  14112. abstract="false" native="false" synchronized="false"
  14113. static="false" final="false" visibility="public"
  14114. deprecated="not deprecated">
  14115. <param name="key" type="java.lang.String"/>
  14116. <param name="value" type="long"/>
  14117. <doc>
  14118. <![CDATA[Set optional long parameter for the Builder.
  14119. @param key key.
  14120. @param value value.
  14121. @return generic type B.
  14122. @see #opt(String, String)]]>
  14123. </doc>
  14124. </method>
  14125. <method name="optDouble" return="B"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="false" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. <param name="key" type="java.lang.String"/>
  14130. <param name="value" type="double"/>
  14131. <doc>
  14132. <![CDATA[Set optional double parameter for the Builder.
  14133. @param key key.
  14134. @param value value.
  14135. @return generic type B.
  14136. @see #opt(String, String)]]>
  14137. </doc>
  14138. </method>
  14139. <method name="must" return="B"
  14140. abstract="true" native="false" synchronized="false"
  14141. static="false" final="false" visibility="public"
  14142. deprecated="not deprecated">
  14143. <param name="key" type="java.lang.String"/>
  14144. <param name="value" type="java.lang.String"/>
  14145. <doc>
  14146. <![CDATA[Set mandatory option to the Builder.
  14147. If the option is not supported or unavailable,
  14148. the client should expect {@link #build()} throws IllegalArgumentException.
  14149. @param key key.
  14150. @param value value.
  14151. @return generic type B.]]>
  14152. </doc>
  14153. </method>
  14154. <method name="must" return="B"
  14155. abstract="false" native="false" synchronized="false"
  14156. static="false" final="false" visibility="public"
  14157. deprecated="not deprecated">
  14158. <param name="key" type="java.lang.String"/>
  14159. <param name="value" type="boolean"/>
  14160. <doc>
  14161. <![CDATA[Set mandatory boolean option.
  14162. @param key key.
  14163. @param value value.
  14164. @return generic type B.
  14165. @see #must(String, String)]]>
  14166. </doc>
  14167. </method>
  14168. <method name="must" return="B"
  14169. abstract="false" native="false" synchronized="false"
  14170. static="false" final="false" visibility="public"
  14171. deprecated="not deprecated">
  14172. <param name="key" type="java.lang.String"/>
  14173. <param name="value" type="int"/>
  14174. <doc>
  14175. <![CDATA[Set mandatory int option.
  14176. @param key key.
  14177. @param value value.
  14178. @return generic type B.
  14179. @see #must(String, String)]]>
  14180. </doc>
  14181. </method>
  14182. <method name="must" return="B"
  14183. abstract="false" native="false" synchronized="false"
  14184. static="false" final="false" visibility="public"
  14185. deprecated="use {@link #mustDouble(String, double)} to set floating point.">
  14186. <param name="key" type="java.lang.String"/>
  14187. <param name="value" type="float"/>
  14188. <doc>
  14189. <![CDATA[This parameter is converted to a long and passed
  14190. to {@link #mustLong(String, long)} -all
  14191. decimal precision is lost.
  14192. @param key key.
  14193. @param value value.
  14194. @return generic type B.
  14195. @deprecated use {@link #mustDouble(String, double)} to set floating point.]]>
  14196. </doc>
  14197. </method>
  14198. <method name="must" return="B"
  14199. abstract="false" native="false" synchronized="false"
  14200. static="false" final="false" visibility="public"
  14201. deprecated="not deprecated">
  14202. <param name="key" type="java.lang.String"/>
  14203. <param name="value" type="long"/>
  14204. <doc>
  14205. <![CDATA[Set mandatory long option.
  14206. @param key key.
  14207. @param value value.
  14208. @return generic type B.
  14209. @see #must(String, String)]]>
  14210. </doc>
  14211. </method>
  14212. <method name="must" return="B"
  14213. abstract="false" native="false" synchronized="false"
  14214. static="false" final="false" visibility="public"
  14215. deprecated="not deprecated">
  14216. <param name="key" type="java.lang.String"/>
  14217. <param name="value" type="double"/>
  14218. <doc>
  14219. <![CDATA[Set mandatory long option, despite passing in a floating
  14220. point value.
  14221. @param key key.
  14222. @param value value.
  14223. @return generic type B.
  14224. @see #must(String, String)]]>
  14225. </doc>
  14226. </method>
  14227. <method name="must" return="B"
  14228. abstract="true" native="false" synchronized="false"
  14229. static="false" final="false" visibility="public"
  14230. deprecated="not deprecated">
  14231. <param name="key" type="java.lang.String"/>
  14232. <param name="values" type="java.lang.String[]"/>
  14233. <doc>
  14234. <![CDATA[Set a string array as mandatory option.
  14235. @param key key.
  14236. @param values values.
  14237. @return generic type B.
  14238. @see #must(String, String)]]>
  14239. </doc>
  14240. </method>
  14241. <method name="mustLong" return="B"
  14242. abstract="false" native="false" synchronized="false"
  14243. static="false" final="false" visibility="public"
  14244. deprecated="not deprecated">
  14245. <param name="key" type="java.lang.String"/>
  14246. <param name="value" type="long"/>
  14247. <doc>
  14248. <![CDATA[Set mandatory long parameter for the Builder.
  14249. @param key key.
  14250. @param value value.
  14251. @return generic type B.
  14252. @see #opt(String, String)]]>
  14253. </doc>
  14254. </method>
  14255. <method name="mustDouble" return="B"
  14256. abstract="false" native="false" synchronized="false"
  14257. static="false" final="false" visibility="public"
  14258. deprecated="not deprecated">
  14259. <param name="key" type="java.lang.String"/>
  14260. <param name="value" type="double"/>
  14261. <doc>
  14262. <![CDATA[Set mandatory double parameter for the Builder.
  14263. @param key key.
  14264. @param value value.
  14265. @return generic type B.
  14266. @see #opt(String, String)]]>
  14267. </doc>
  14268. </method>
  14269. <method name="build" return="S"
  14270. abstract="true" native="false" synchronized="false"
  14271. static="false" final="false" visibility="public"
  14272. deprecated="not deprecated">
  14273. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14274. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14275. <exception name="IOException" type="java.io.IOException"/>
  14276. <doc>
  14277. <![CDATA[Instantiate the object which was being built.
  14278. @throws IllegalArgumentException if the parameters are not valid.
  14279. @throws UnsupportedOperationException if the filesystem does not support
  14280. the specific operation.
  14281. @throws IOException on filesystem IO errors.
  14282. @return generic type S.]]>
  14283. </doc>
  14284. </method>
  14285. <doc>
  14286. <![CDATA[The base interface which various FileSystem FileContext Builder
  14287. interfaces can extend, and which underlying implementations
  14288. will then implement.
  14289. <p>
  14290. HADOOP-16202 expanded the opt() and must() arguments with
  14291. operator overloading, but HADOOP-18724 identified mapping problems:
  14292. passing a long value in to {@code opt()} could end up invoking
  14293. {@code opt(string, double)}, which could then trigger parse failures.
  14294. <p>
  14295. To fix this without forcing existing code to break/be recompiled.
  14296. <ol>
  14297. <li>A new method to explicitly set a long value is added:
  14298. {@link #optLong(String, long)}
  14299. </li>
  14300. <li>A new method to explicitly set a double value is added:
  14301. {@link #optLong(String, long)}
  14302. </li>
  14303. <li>
  14304. All of {@link #opt(String, long)}, {@link #opt(String, float)} and
  14305. {@link #opt(String, double)} invoke {@link #optLong(String, long)}.
  14306. </li>
  14307. <li>
  14308. The same changes have been applied to {@code must()} methods.
  14309. </li>
  14310. </ol>
  14311. The forwarding of existing double/float setters to the long setters ensure
  14312. that existing code will link, but are guaranteed to always set a long value.
  14313. If you need to write code which works correctly with all hadoop releases,
  14314. covert the option to a string explicitly and then call {@link #opt(String, String)}
  14315. or {@link #must(String, String)} as appropriate.
  14316. @param <S> Return type on the {@link #build()} call.
  14317. @param <B> type of builder itself.]]>
  14318. </doc>
  14319. </interface>
  14320. <!-- end interface org.apache.hadoop.fs.FSBuilder -->
  14321. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  14322. <interface name="FsConstants" abstract="true"
  14323. static="false" final="false" visibility="public"
  14324. deprecated="not deprecated">
  14325. <field name="LOCAL_FS_URI" type="java.net.URI"
  14326. transient="false" volatile="false"
  14327. static="true" final="true" visibility="public"
  14328. deprecated="not deprecated">
  14329. </field>
  14330. <field name="FTP_SCHEME" type="java.lang.String"
  14331. transient="false" volatile="false"
  14332. static="true" final="true" visibility="public"
  14333. deprecated="not deprecated">
  14334. </field>
  14335. <field name="MAX_PATH_LINKS" type="int"
  14336. transient="false" volatile="false"
  14337. static="true" final="true" visibility="public"
  14338. deprecated="not deprecated">
  14339. </field>
  14340. <field name="VIEWFS_URI" type="java.net.URI"
  14341. transient="false" volatile="false"
  14342. static="true" final="true" visibility="public"
  14343. deprecated="not deprecated">
  14344. <doc>
  14345. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  14346. </doc>
  14347. </field>
  14348. <field name="VIEWFS_SCHEME" type="java.lang.String"
  14349. transient="false" volatile="false"
  14350. static="true" final="true" visibility="public"
  14351. deprecated="not deprecated">
  14352. </field>
  14353. <field name="FS_VIEWFS_OVERLOAD_SCHEME_TARGET_FS_IMPL_PATTERN" type="java.lang.String"
  14354. transient="false" volatile="false"
  14355. static="true" final="true" visibility="public"
  14356. deprecated="not deprecated">
  14357. </field>
  14358. <field name="VIEWFS_TYPE" type="java.lang.String"
  14359. transient="false" volatile="false"
  14360. static="true" final="true" visibility="public"
  14361. deprecated="not deprecated">
  14362. </field>
  14363. <doc>
  14364. <![CDATA[FileSystem related constants.]]>
  14365. </doc>
  14366. </interface>
  14367. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  14368. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  14369. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  14370. abstract="false"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <implements name="org.apache.hadoop.fs.Seekable"/>
  14374. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  14375. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  14376. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  14377. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  14378. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  14379. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  14380. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  14381. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  14382. <implements name="org.apache.hadoop.fs.ByteBufferPositionedReadable"/>
  14383. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  14384. <constructor name="FSDataInputStream" type="java.io.InputStream"
  14385. static="false" final="false" visibility="public"
  14386. deprecated="not deprecated">
  14387. </constructor>
  14388. <method name="seek"
  14389. abstract="false" native="false" synchronized="false"
  14390. static="false" final="false" visibility="public"
  14391. deprecated="not deprecated">
  14392. <param name="desired" type="long"/>
  14393. <exception name="IOException" type="java.io.IOException"/>
  14394. <doc>
  14395. <![CDATA[Seek to the given offset.
  14396. @param desired offset to seek to]]>
  14397. </doc>
  14398. </method>
  14399. <method name="getPos" return="long"
  14400. abstract="false" native="false" synchronized="false"
  14401. static="false" final="false" visibility="public"
  14402. deprecated="not deprecated">
  14403. <exception name="IOException" type="java.io.IOException"/>
  14404. <doc>
  14405. <![CDATA[Get the current position in the input stream.
  14406. @return current position in the input stream]]>
  14407. </doc>
  14408. </method>
  14409. <method name="read" return="int"
  14410. abstract="false" native="false" synchronized="false"
  14411. static="false" final="false" visibility="public"
  14412. deprecated="not deprecated">
  14413. <param name="position" type="long"/>
  14414. <param name="buffer" type="byte[]"/>
  14415. <param name="offset" type="int"/>
  14416. <param name="length" type="int"/>
  14417. <exception name="IOException" type="java.io.IOException"/>
  14418. <doc>
  14419. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  14420. @param position position in the input stream to seek
  14421. @param buffer buffer into which data is read
  14422. @param offset offset into the buffer in which data is written
  14423. @param length maximum number of bytes to read
  14424. @return total number of bytes read into the buffer, or <code>-1</code>
  14425. if there is no more data because the end of the stream has been
  14426. reached]]>
  14427. </doc>
  14428. </method>
  14429. <method name="readFully"
  14430. abstract="false" native="false" synchronized="false"
  14431. static="false" final="false" visibility="public"
  14432. deprecated="not deprecated">
  14433. <param name="position" type="long"/>
  14434. <param name="buffer" type="byte[]"/>
  14435. <param name="offset" type="int"/>
  14436. <param name="length" type="int"/>
  14437. <exception name="IOException" type="java.io.IOException"/>
  14438. <doc>
  14439. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  14440. Continues to read until <code>length</code> bytes have been read.
  14441. @param position position in the input stream to seek
  14442. @param buffer buffer into which data is read
  14443. @param offset offset into the buffer in which data is written
  14444. @param length the number of bytes to read
  14445. @throws IOException IO problems
  14446. @throws EOFException If the end of stream is reached while reading.
  14447. If an exception is thrown an undetermined number
  14448. of bytes in the buffer may have been written.]]>
  14449. </doc>
  14450. </method>
  14451. <method name="readFully"
  14452. abstract="false" native="false" synchronized="false"
  14453. static="false" final="false" visibility="public"
  14454. deprecated="not deprecated">
  14455. <param name="position" type="long"/>
  14456. <param name="buffer" type="byte[]"/>
  14457. <exception name="IOException" type="java.io.IOException"/>
  14458. <doc>
  14459. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  14460. </doc>
  14461. </method>
  14462. <method name="seekToNewSource" return="boolean"
  14463. abstract="false" native="false" synchronized="false"
  14464. static="false" final="false" visibility="public"
  14465. deprecated="not deprecated">
  14466. <param name="targetPos" type="long"/>
  14467. <exception name="IOException" type="java.io.IOException"/>
  14468. <doc>
  14469. <![CDATA[Seek to the given position on an alternate copy of the data.
  14470. @param targetPos position to seek to
  14471. @return true if a new source is found, false otherwise]]>
  14472. </doc>
  14473. </method>
  14474. <method name="getWrappedStream" return="java.io.InputStream"
  14475. abstract="false" native="false" synchronized="false"
  14476. static="false" final="false" visibility="public"
  14477. deprecated="not deprecated">
  14478. <doc>
  14479. <![CDATA[Get a reference to the wrapped input stream. Used by unit tests.
  14480. @return the underlying input stream]]>
  14481. </doc>
  14482. </method>
  14483. <method name="read" return="int"
  14484. abstract="false" native="false" synchronized="false"
  14485. static="false" final="false" visibility="public"
  14486. deprecated="not deprecated">
  14487. <param name="buf" type="java.nio.ByteBuffer"/>
  14488. <exception name="IOException" type="java.io.IOException"/>
  14489. </method>
  14490. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  14491. abstract="false" native="false" synchronized="false"
  14492. static="false" final="false" visibility="public"
  14493. deprecated="not deprecated">
  14494. <exception name="IOException" type="java.io.IOException"/>
  14495. </method>
  14496. <method name="setReadahead"
  14497. abstract="false" native="false" synchronized="false"
  14498. static="false" final="false" visibility="public"
  14499. deprecated="not deprecated">
  14500. <param name="readahead" type="java.lang.Long"/>
  14501. <exception name="IOException" type="java.io.IOException"/>
  14502. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14503. </method>
  14504. <method name="setDropBehind"
  14505. abstract="false" native="false" synchronized="false"
  14506. static="false" final="false" visibility="public"
  14507. deprecated="not deprecated">
  14508. <param name="dropBehind" type="java.lang.Boolean"/>
  14509. <exception name="IOException" type="java.io.IOException"/>
  14510. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14511. </method>
  14512. <method name="read" return="java.nio.ByteBuffer"
  14513. abstract="false" native="false" synchronized="false"
  14514. static="false" final="false" visibility="public"
  14515. deprecated="not deprecated">
  14516. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  14517. <param name="maxLength" type="int"/>
  14518. <param name="opts" type="java.util.EnumSet"/>
  14519. <exception name="IOException" type="java.io.IOException"/>
  14520. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14521. </method>
  14522. <method name="read" return="java.nio.ByteBuffer"
  14523. abstract="false" native="false" synchronized="false"
  14524. static="false" final="true" visibility="public"
  14525. deprecated="not deprecated">
  14526. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  14527. <param name="maxLength" type="int"/>
  14528. <exception name="IOException" type="java.io.IOException"/>
  14529. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  14530. </method>
  14531. <method name="releaseBuffer"
  14532. abstract="false" native="false" synchronized="false"
  14533. static="false" final="false" visibility="public"
  14534. deprecated="not deprecated">
  14535. <param name="buffer" type="java.nio.ByteBuffer"/>
  14536. </method>
  14537. <method name="unbuffer"
  14538. abstract="false" native="false" synchronized="false"
  14539. static="false" final="false" visibility="public"
  14540. deprecated="not deprecated">
  14541. </method>
  14542. <method name="hasCapability" return="boolean"
  14543. abstract="false" native="false" synchronized="false"
  14544. static="false" final="false" visibility="public"
  14545. deprecated="not deprecated">
  14546. <param name="capability" type="java.lang.String"/>
  14547. </method>
  14548. <method name="toString" return="java.lang.String"
  14549. abstract="false" native="false" synchronized="false"
  14550. static="false" final="false" visibility="public"
  14551. deprecated="not deprecated">
  14552. <doc>
  14553. <![CDATA[String value. Includes the string value of the inner stream
  14554. @return the stream]]>
  14555. </doc>
  14556. </method>
  14557. <method name="read" return="int"
  14558. abstract="false" native="false" synchronized="false"
  14559. static="false" final="false" visibility="public"
  14560. deprecated="not deprecated">
  14561. <param name="position" type="long"/>
  14562. <param name="buf" type="java.nio.ByteBuffer"/>
  14563. <exception name="IOException" type="java.io.IOException"/>
  14564. </method>
  14565. <method name="readFully"
  14566. abstract="false" native="false" synchronized="false"
  14567. static="false" final="false" visibility="public"
  14568. deprecated="not deprecated">
  14569. <param name="position" type="long"/>
  14570. <param name="buf" type="java.nio.ByteBuffer"/>
  14571. <exception name="IOException" type="java.io.IOException"/>
  14572. </method>
  14573. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  14574. abstract="false" native="false" synchronized="false"
  14575. static="false" final="false" visibility="public"
  14576. deprecated="not deprecated">
  14577. <doc>
  14578. <![CDATA[Get the IO Statistics of the nested stream, falling back to
  14579. null if the stream does not implement the interface
  14580. {@link IOStatisticsSource}.
  14581. @return an IOStatistics instance or null]]>
  14582. </doc>
  14583. </method>
  14584. <method name="minSeekForVectorReads" return="int"
  14585. abstract="false" native="false" synchronized="false"
  14586. static="false" final="false" visibility="public"
  14587. deprecated="not deprecated">
  14588. </method>
  14589. <method name="maxReadSizeForVectorReads" return="int"
  14590. abstract="false" native="false" synchronized="false"
  14591. static="false" final="false" visibility="public"
  14592. deprecated="not deprecated">
  14593. </method>
  14594. <method name="readVectored"
  14595. abstract="false" native="false" synchronized="false"
  14596. static="false" final="false" visibility="public"
  14597. deprecated="not deprecated">
  14598. <param name="ranges" type="java.util.List"/>
  14599. <param name="allocate" type="java.util.function.IntFunction"/>
  14600. <exception name="IOException" type="java.io.IOException"/>
  14601. </method>
  14602. <doc>
  14603. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  14604. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  14605. </doc>
  14606. </class>
  14607. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  14608. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  14609. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  14610. abstract="false"
  14611. static="false" final="false" visibility="public"
  14612. deprecated="not deprecated">
  14613. <implements name="org.apache.hadoop.fs.Syncable"/>
  14614. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  14615. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  14616. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  14617. <implements name="org.apache.hadoop.fs.Abortable"/>
  14618. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  14619. static="false" final="false" visibility="public"
  14620. deprecated="not deprecated">
  14621. </constructor>
  14622. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  14623. static="false" final="false" visibility="public"
  14624. deprecated="not deprecated">
  14625. </constructor>
  14626. <method name="getPos" return="long"
  14627. abstract="false" native="false" synchronized="false"
  14628. static="false" final="false" visibility="public"
  14629. deprecated="not deprecated">
  14630. <doc>
  14631. <![CDATA[Get the current position in the output stream.
  14632. @return the current position in the output stream]]>
  14633. </doc>
  14634. </method>
  14635. <method name="close"
  14636. abstract="false" native="false" synchronized="false"
  14637. static="false" final="false" visibility="public"
  14638. deprecated="not deprecated">
  14639. <exception name="IOException" type="java.io.IOException"/>
  14640. <doc>
  14641. <![CDATA[Close the underlying output stream.]]>
  14642. </doc>
  14643. </method>
  14644. <method name="toString" return="java.lang.String"
  14645. abstract="false" native="false" synchronized="false"
  14646. static="false" final="false" visibility="public"
  14647. deprecated="not deprecated">
  14648. </method>
  14649. <method name="hasCapability" return="boolean"
  14650. abstract="false" native="false" synchronized="false"
  14651. static="false" final="false" visibility="public"
  14652. deprecated="not deprecated">
  14653. <param name="capability" type="java.lang.String"/>
  14654. </method>
  14655. <method name="hflush"
  14656. abstract="false" native="false" synchronized="false"
  14657. static="false" final="false" visibility="public"
  14658. deprecated="not deprecated">
  14659. <exception name="IOException" type="java.io.IOException"/>
  14660. </method>
  14661. <method name="hsync"
  14662. abstract="false" native="false" synchronized="false"
  14663. static="false" final="false" visibility="public"
  14664. deprecated="not deprecated">
  14665. <exception name="IOException" type="java.io.IOException"/>
  14666. </method>
  14667. <method name="setDropBehind"
  14668. abstract="false" native="false" synchronized="false"
  14669. static="false" final="false" visibility="public"
  14670. deprecated="not deprecated">
  14671. <param name="dropBehind" type="java.lang.Boolean"/>
  14672. <exception name="IOException" type="java.io.IOException"/>
  14673. </method>
  14674. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  14675. abstract="false" native="false" synchronized="false"
  14676. static="false" final="false" visibility="public"
  14677. deprecated="not deprecated">
  14678. <doc>
  14679. <![CDATA[Get the IO Statistics of the nested stream, falling back to
  14680. empty statistics if the stream does not implement the interface
  14681. {@link IOStatisticsSource}.
  14682. @return an IOStatistics instance.]]>
  14683. </doc>
  14684. </method>
  14685. <method name="abort" return="org.apache.hadoop.fs.Abortable.AbortableResult"
  14686. abstract="false" native="false" synchronized="false"
  14687. static="false" final="false" visibility="public"
  14688. deprecated="not deprecated">
  14689. <doc>
  14690. <![CDATA[Invoke {@code abort()} on the wrapped stream if it
  14691. is Abortable, otherwise raise an
  14692. {@code UnsupportedOperationException}.
  14693. @throws UnsupportedOperationException if not available.
  14694. @return the result.]]>
  14695. </doc>
  14696. </method>
  14697. <doc>
  14698. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  14699. </doc>
  14700. </class>
  14701. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  14702. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  14703. <class name="FSDataOutputStreamBuilder" extends="org.apache.hadoop.fs.impl.AbstractFSBuilderImpl"
  14704. abstract="true"
  14705. static="false" final="false" visibility="public"
  14706. deprecated="not deprecated">
  14707. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  14708. static="false" final="false" visibility="protected"
  14709. deprecated="not deprecated">
  14710. <doc>
  14711. <![CDATA[Constructor.
  14712. @param fileSystem file system.
  14713. @param p the path.]]>
  14714. </doc>
  14715. </constructor>
  14716. <method name="getThisBuilder" return="B"
  14717. abstract="true" native="false" synchronized="false"
  14718. static="false" final="false" visibility="public"
  14719. deprecated="not deprecated">
  14720. <doc>
  14721. <![CDATA[Return the concrete implementation of the builder instance.]]>
  14722. </doc>
  14723. </method>
  14724. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  14725. abstract="false" native="false" synchronized="false"
  14726. static="false" final="false" visibility="protected"
  14727. deprecated="not deprecated">
  14728. </method>
  14729. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  14730. abstract="false" native="false" synchronized="false"
  14731. static="false" final="false" visibility="protected"
  14732. deprecated="not deprecated">
  14733. </method>
  14734. <method name="permission" return="B"
  14735. abstract="false" native="false" synchronized="false"
  14736. static="false" final="false" visibility="public"
  14737. deprecated="not deprecated">
  14738. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14739. <doc>
  14740. <![CDATA[Set permission for the file.
  14741. @param perm permission.
  14742. @return B Generics Type.]]>
  14743. </doc>
  14744. </method>
  14745. <method name="getBufferSize" return="int"
  14746. abstract="false" native="false" synchronized="false"
  14747. static="false" final="false" visibility="protected"
  14748. deprecated="not deprecated">
  14749. </method>
  14750. <method name="bufferSize" return="B"
  14751. abstract="false" native="false" synchronized="false"
  14752. static="false" final="false" visibility="public"
  14753. deprecated="not deprecated">
  14754. <param name="bufSize" type="int"/>
  14755. <doc>
  14756. <![CDATA[Set the size of the buffer to be used.
  14757. @param bufSize buffer size.
  14758. @return Generics Type B.]]>
  14759. </doc>
  14760. </method>
  14761. <method name="getReplication" return="short"
  14762. abstract="false" native="false" synchronized="false"
  14763. static="false" final="false" visibility="protected"
  14764. deprecated="not deprecated">
  14765. </method>
  14766. <method name="replication" return="B"
  14767. abstract="false" native="false" synchronized="false"
  14768. static="false" final="false" visibility="public"
  14769. deprecated="not deprecated">
  14770. <param name="replica" type="short"/>
  14771. <doc>
  14772. <![CDATA[Set replication factor.
  14773. @param replica replica.
  14774. @return Generics Type B.]]>
  14775. </doc>
  14776. </method>
  14777. <method name="getBlockSize" return="long"
  14778. abstract="false" native="false" synchronized="false"
  14779. static="false" final="false" visibility="protected"
  14780. deprecated="not deprecated">
  14781. </method>
  14782. <method name="blockSize" return="B"
  14783. abstract="false" native="false" synchronized="false"
  14784. static="false" final="false" visibility="public"
  14785. deprecated="not deprecated">
  14786. <param name="blkSize" type="long"/>
  14787. <doc>
  14788. <![CDATA[Set block size.
  14789. @param blkSize block size.
  14790. @return B Generics Type.]]>
  14791. </doc>
  14792. </method>
  14793. <method name="isRecursive" return="boolean"
  14794. abstract="false" native="false" synchronized="false"
  14795. static="false" final="false" visibility="protected"
  14796. deprecated="not deprecated">
  14797. <doc>
  14798. <![CDATA[Return true to create the parent directories if they do not exist.
  14799. @return if create the parent directories if they do not exist true,not false.]]>
  14800. </doc>
  14801. </method>
  14802. <method name="recursive" return="B"
  14803. abstract="false" native="false" synchronized="false"
  14804. static="false" final="false" visibility="public"
  14805. deprecated="not deprecated">
  14806. <doc>
  14807. <![CDATA[Create the parent directory if they do not exist.
  14808. @return B Generics Type.]]>
  14809. </doc>
  14810. </method>
  14811. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  14812. abstract="false" native="false" synchronized="false"
  14813. static="false" final="false" visibility="protected"
  14814. deprecated="not deprecated">
  14815. </method>
  14816. <method name="progress" return="B"
  14817. abstract="false" native="false" synchronized="false"
  14818. static="false" final="false" visibility="public"
  14819. deprecated="not deprecated">
  14820. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  14821. <doc>
  14822. <![CDATA[Set the facility of reporting progress.
  14823. @param prog progress.
  14824. @return B Generics Type.]]>
  14825. </doc>
  14826. </method>
  14827. <method name="getFlags" return="java.util.EnumSet"
  14828. abstract="false" native="false" synchronized="false"
  14829. static="false" final="false" visibility="protected"
  14830. deprecated="not deprecated">
  14831. </method>
  14832. <method name="create" return="B"
  14833. abstract="false" native="false" synchronized="false"
  14834. static="false" final="false" visibility="public"
  14835. deprecated="not deprecated">
  14836. <doc>
  14837. <![CDATA[Create an FSDataOutputStream at the specified path.
  14838. @return return Generics Type B.]]>
  14839. </doc>
  14840. </method>
  14841. <method name="overwrite" return="B"
  14842. abstract="false" native="false" synchronized="false"
  14843. static="false" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <param name="overwrite" type="boolean"/>
  14846. <doc>
  14847. <![CDATA[Set to true to overwrite the existing file.
  14848. Set it to false, an exception will be thrown when calling {@link #build()}
  14849. if the file exists.
  14850. @param overwrite overrite.
  14851. @return Generics Type B.]]>
  14852. </doc>
  14853. </method>
  14854. <method name="append" return="B"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <doc>
  14859. <![CDATA[Append to an existing file (optional operation).
  14860. @return Generics Type B.]]>
  14861. </doc>
  14862. </method>
  14863. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14864. abstract="false" native="false" synchronized="false"
  14865. static="false" final="false" visibility="protected"
  14866. deprecated="not deprecated">
  14867. </method>
  14868. <method name="checksumOpt" return="B"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="false" final="false" visibility="public"
  14871. deprecated="not deprecated">
  14872. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14873. <doc>
  14874. <![CDATA[Set checksum opt.
  14875. @param chksumOpt check sum opt.
  14876. @return Generics Type B.]]>
  14877. </doc>
  14878. </method>
  14879. <method name="build" return="S"
  14880. abstract="true" native="false" synchronized="false"
  14881. static="false" final="false" visibility="public"
  14882. deprecated="not deprecated">
  14883. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14884. <exception name="IOException" type="java.io.IOException"/>
  14885. <doc>
  14886. <![CDATA[Create the FSDataOutputStream to write on the file system.
  14887. @throws IllegalArgumentException if the parameters are not valid.
  14888. @throws IOException on errors when file system creates or appends the file.]]>
  14889. </doc>
  14890. </method>
  14891. <doc>
  14892. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  14893. It is used to create {@link FSDataOutputStream} when creating a new file or
  14894. appending an existing file on {@link FileSystem}.
  14895. By default, it does not create parent directory that do not exist.
  14896. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  14897. Progressable)}.
  14898. To create missing parent directory, use {@link #recursive()}.
  14899. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  14900. variants provide implementation-agnostic way to customize the builder.
  14901. Each FS-specific builder implementation can interpret the FS-specific
  14902. options accordingly, for example:
  14903. <code>
  14904. // Don't
  14905. if (fs instanceof FooFileSystem) {
  14906. FooFileSystem fs = (FooFileSystem) fs;
  14907. OutputStream out = dfs.createFile(path)
  14908. .optionA()
  14909. .optionB("value")
  14910. .cache()
  14911. .build()
  14912. } else if (fs instanceof BarFileSystem) {
  14913. ...
  14914. }
  14915. // Do
  14916. OutputStream out = fs.createFile(path)
  14917. .permission(perm)
  14918. .bufferSize(bufSize)
  14919. .opt("foofs:option.a", true)
  14920. .opt("foofs:option.b", "value")
  14921. .opt("barfs:cache", true)
  14922. .must("foofs:cache", true)
  14923. .must("barfs:cache-size", 256 * 1024 * 1024)
  14924. .build();
  14925. </code>
  14926. If the option is not related to the file system, the option will be ignored.
  14927. If the option is must, but not supported by the file system, a
  14928. {@link IllegalArgumentException} will be thrown.]]>
  14929. </doc>
  14930. </class>
  14931. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  14932. <!-- start class org.apache.hadoop.fs.FSError -->
  14933. <class name="FSError" extends="java.lang.Error"
  14934. abstract="false"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. <doc>
  14938. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  14939. in the native filesystem.]]>
  14940. </doc>
  14941. </class>
  14942. <!-- end class org.apache.hadoop.fs.FSError -->
  14943. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  14944. <class name="FSInputStream" extends="java.io.InputStream"
  14945. abstract="true"
  14946. static="false" final="false" visibility="public"
  14947. deprecated="not deprecated">
  14948. <implements name="org.apache.hadoop.fs.Seekable"/>
  14949. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  14950. <constructor name="FSInputStream"
  14951. static="false" final="false" visibility="public"
  14952. deprecated="not deprecated">
  14953. </constructor>
  14954. <method name="seek"
  14955. abstract="true" native="false" synchronized="false"
  14956. static="false" final="false" visibility="public"
  14957. deprecated="not deprecated">
  14958. <param name="pos" type="long"/>
  14959. <exception name="IOException" type="java.io.IOException"/>
  14960. <doc>
  14961. <![CDATA[Seek to the given offset from the start of the file.
  14962. The next read() will be from that location. Can't
  14963. seek past the end of the file.]]>
  14964. </doc>
  14965. </method>
  14966. <method name="getPos" return="long"
  14967. abstract="true" native="false" synchronized="false"
  14968. static="false" final="false" visibility="public"
  14969. deprecated="not deprecated">
  14970. <exception name="IOException" type="java.io.IOException"/>
  14971. <doc>
  14972. <![CDATA[Return the current offset from the start of the file]]>
  14973. </doc>
  14974. </method>
  14975. <method name="seekToNewSource" return="boolean"
  14976. abstract="true" native="false" synchronized="false"
  14977. static="false" final="false" visibility="public"
  14978. deprecated="not deprecated">
  14979. <param name="targetPos" type="long"/>
  14980. <exception name="IOException" type="java.io.IOException"/>
  14981. <doc>
  14982. <![CDATA[Seeks a different copy of the data. Returns true if
  14983. found a new source, false otherwise.]]>
  14984. </doc>
  14985. </method>
  14986. <method name="read" return="int"
  14987. abstract="false" native="false" synchronized="false"
  14988. static="false" final="false" visibility="public"
  14989. deprecated="not deprecated">
  14990. <param name="position" type="long"/>
  14991. <param name="buffer" type="byte[]"/>
  14992. <param name="offset" type="int"/>
  14993. <param name="length" type="int"/>
  14994. <exception name="IOException" type="java.io.IOException"/>
  14995. </method>
  14996. <method name="validatePositionedReadArgs"
  14997. abstract="false" native="false" synchronized="false"
  14998. static="false" final="false" visibility="protected"
  14999. deprecated="not deprecated">
  15000. <param name="position" type="long"/>
  15001. <param name="buffer" type="byte[]"/>
  15002. <param name="offset" type="int"/>
  15003. <param name="length" type="int"/>
  15004. <exception name="EOFException" type="java.io.EOFException"/>
  15005. <doc>
  15006. <![CDATA[Validation code, available for use in subclasses.
  15007. @param position position: if negative an EOF exception is raised
  15008. @param buffer destination buffer
  15009. @param offset offset within the buffer
  15010. @param length length of bytes to read
  15011. @throws EOFException if the position is negative
  15012. @throws IndexOutOfBoundsException if there isn't space for the amount of
  15013. data requested.
  15014. @throws IllegalArgumentException other arguments are invalid.]]>
  15015. </doc>
  15016. </method>
  15017. <method name="readFully"
  15018. abstract="false" native="false" synchronized="false"
  15019. static="false" final="false" visibility="public"
  15020. deprecated="not deprecated">
  15021. <param name="position" type="long"/>
  15022. <param name="buffer" type="byte[]"/>
  15023. <param name="offset" type="int"/>
  15024. <param name="length" type="int"/>
  15025. <exception name="IOException" type="java.io.IOException"/>
  15026. </method>
  15027. <method name="readFully"
  15028. abstract="false" native="false" synchronized="false"
  15029. static="false" final="false" visibility="public"
  15030. deprecated="not deprecated">
  15031. <param name="position" type="long"/>
  15032. <param name="buffer" type="byte[]"/>
  15033. <exception name="IOException" type="java.io.IOException"/>
  15034. </method>
  15035. <method name="toString" return="java.lang.String"
  15036. abstract="false" native="false" synchronized="false"
  15037. static="false" final="false" visibility="public"
  15038. deprecated="not deprecated">
  15039. <doc>
  15040. <![CDATA[toString method returns the superclass toString, but if the subclass
  15041. implements {@link IOStatisticsSource} then those statistics are
  15042. extracted and included in the output.
  15043. That is: statistics of subclasses are automatically reported.
  15044. @return a string value.]]>
  15045. </doc>
  15046. </method>
  15047. <doc>
  15048. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  15049. of RAF-style seek ability.]]>
  15050. </doc>
  15051. </class>
  15052. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  15053. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  15054. <class name="FsServerDefaults" extends="java.lang.Object"
  15055. abstract="false"
  15056. static="false" final="false" visibility="public"
  15057. deprecated="not deprecated">
  15058. <implements name="org.apache.hadoop.io.Writable"/>
  15059. <constructor name="FsServerDefaults"
  15060. static="false" final="false" visibility="public"
  15061. deprecated="not deprecated">
  15062. </constructor>
  15063. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  15064. static="false" final="false" visibility="public"
  15065. deprecated="not deprecated">
  15066. </constructor>
  15067. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  15068. static="false" final="false" visibility="public"
  15069. deprecated="not deprecated">
  15070. </constructor>
  15071. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  15072. static="false" final="false" visibility="public"
  15073. deprecated="not deprecated">
  15074. </constructor>
  15075. <method name="getBlockSize" return="long"
  15076. abstract="false" native="false" synchronized="false"
  15077. static="false" final="false" visibility="public"
  15078. deprecated="not deprecated">
  15079. </method>
  15080. <method name="getBytesPerChecksum" return="int"
  15081. abstract="false" native="false" synchronized="false"
  15082. static="false" final="false" visibility="public"
  15083. deprecated="not deprecated">
  15084. </method>
  15085. <method name="getWritePacketSize" return="int"
  15086. abstract="false" native="false" synchronized="false"
  15087. static="false" final="false" visibility="public"
  15088. deprecated="not deprecated">
  15089. </method>
  15090. <method name="getReplication" return="short"
  15091. abstract="false" native="false" synchronized="false"
  15092. static="false" final="false" visibility="public"
  15093. deprecated="not deprecated">
  15094. </method>
  15095. <method name="getFileBufferSize" return="int"
  15096. abstract="false" native="false" synchronized="false"
  15097. static="false" final="false" visibility="public"
  15098. deprecated="not deprecated">
  15099. </method>
  15100. <method name="getEncryptDataTransfer" return="boolean"
  15101. abstract="false" native="false" synchronized="false"
  15102. static="false" final="false" visibility="public"
  15103. deprecated="not deprecated">
  15104. </method>
  15105. <method name="getTrashInterval" return="long"
  15106. abstract="false" native="false" synchronized="false"
  15107. static="false" final="false" visibility="public"
  15108. deprecated="not deprecated">
  15109. </method>
  15110. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  15111. abstract="false" native="false" synchronized="false"
  15112. static="false" final="false" visibility="public"
  15113. deprecated="not deprecated">
  15114. </method>
  15115. <method name="getKeyProviderUri" return="java.lang.String"
  15116. abstract="false" native="false" synchronized="false"
  15117. static="false" final="false" visibility="public"
  15118. deprecated="not deprecated">
  15119. </method>
  15120. <method name="getDefaultStoragePolicyId" return="byte"
  15121. abstract="false" native="false" synchronized="false"
  15122. static="false" final="false" visibility="public"
  15123. deprecated="not deprecated">
  15124. </method>
  15125. <doc>
  15126. <![CDATA[Provides server default configuration values to clients.]]>
  15127. </doc>
  15128. </class>
  15129. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  15130. <!-- start class org.apache.hadoop.fs.FsStatus -->
  15131. <class name="FsStatus" extends="java.lang.Object"
  15132. abstract="false"
  15133. static="false" final="false" visibility="public"
  15134. deprecated="not deprecated">
  15135. <implements name="org.apache.hadoop.io.Writable"/>
  15136. <constructor name="FsStatus" type="long, long, long"
  15137. static="false" final="false" visibility="public"
  15138. deprecated="not deprecated">
  15139. <doc>
  15140. <![CDATA[Construct a FsStatus object, using the specified statistics.
  15141. @param capacity capacity.
  15142. @param used used.
  15143. @param remaining remaining.]]>
  15144. </doc>
  15145. </constructor>
  15146. <method name="getCapacity" return="long"
  15147. abstract="false" native="false" synchronized="false"
  15148. static="false" final="false" visibility="public"
  15149. deprecated="not deprecated">
  15150. <doc>
  15151. <![CDATA[Return the capacity in bytes of the file system.
  15152. @return capacity.]]>
  15153. </doc>
  15154. </method>
  15155. <method name="getUsed" return="long"
  15156. abstract="false" native="false" synchronized="false"
  15157. static="false" final="false" visibility="public"
  15158. deprecated="not deprecated">
  15159. <doc>
  15160. <![CDATA[Return the number of bytes used on the file system.
  15161. @return used.]]>
  15162. </doc>
  15163. </method>
  15164. <method name="getRemaining" return="long"
  15165. abstract="false" native="false" synchronized="false"
  15166. static="false" final="false" visibility="public"
  15167. deprecated="not deprecated">
  15168. <doc>
  15169. <![CDATA[Return the number of remaining bytes on the file system.
  15170. @return remaining.]]>
  15171. </doc>
  15172. </method>
  15173. <method name="write"
  15174. abstract="false" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. <param name="out" type="java.io.DataOutput"/>
  15178. <exception name="IOException" type="java.io.IOException"/>
  15179. </method>
  15180. <method name="readFields"
  15181. abstract="false" native="false" synchronized="false"
  15182. static="false" final="false" visibility="public"
  15183. deprecated="not deprecated">
  15184. <param name="in" type="java.io.DataInput"/>
  15185. <exception name="IOException" type="java.io.IOException"/>
  15186. </method>
  15187. <doc>
  15188. <![CDATA[This class is used to represent the capacity, free and used space on a
  15189. {@link FileSystem}.]]>
  15190. </doc>
  15191. </class>
  15192. <!-- end class org.apache.hadoop.fs.FsStatus -->
  15193. <!-- start interface org.apache.hadoop.fs.FutureDataInputStreamBuilder -->
  15194. <interface name="FutureDataInputStreamBuilder" abstract="true"
  15195. static="false" final="false" visibility="public"
  15196. deprecated="not deprecated">
  15197. <implements name="org.apache.hadoop.fs.FSBuilder"/>
  15198. <method name="build" return="java.util.concurrent.CompletableFuture"
  15199. abstract="true" native="false" synchronized="false"
  15200. static="false" final="false" visibility="public"
  15201. deprecated="not deprecated">
  15202. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15203. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  15204. <exception name="IOException" type="java.io.IOException"/>
  15205. </method>
  15206. <method name="withFileStatus" return="org.apache.hadoop.fs.FutureDataInputStreamBuilder"
  15207. abstract="false" native="false" synchronized="false"
  15208. static="false" final="false" visibility="public"
  15209. deprecated="not deprecated">
  15210. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  15211. <doc>
  15212. <![CDATA[A FileStatus may be provided to the open request.
  15213. It is up to the implementation whether to use this or not.
  15214. @param status status: may be null
  15215. @return the builder.]]>
  15216. </doc>
  15217. </method>
  15218. <doc>
  15219. <![CDATA[Builder for input streams and subclasses whose return value is
  15220. actually a completable future: this allows for better asynchronous
  15221. operation.
  15222. To be more generic, {@link #opt(String, int)} and {@link #must(String, int)}
  15223. variants provide implementation-agnostic way to customize the builder.
  15224. Each FS-specific builder implementation can interpret the FS-specific
  15225. options accordingly, for example:
  15226. If the option is not related to the file system, the option will be ignored.
  15227. If the option is must, but not supported/known by the file system, an
  15228. {@link IllegalArgumentException} will be thrown.]]>
  15229. </doc>
  15230. </interface>
  15231. <!-- end interface org.apache.hadoop.fs.FutureDataInputStreamBuilder -->
  15232. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  15233. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  15234. abstract="false"
  15235. static="false" final="true" visibility="public"
  15236. deprecated="not deprecated">
  15237. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  15238. abstract="false" native="false" synchronized="false"
  15239. static="true" final="false" visibility="public"
  15240. deprecated="not deprecated">
  15241. </method>
  15242. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  15243. abstract="false" native="false" synchronized="false"
  15244. static="true" final="false" visibility="public"
  15245. deprecated="not deprecated">
  15246. <param name="name" type="java.lang.String"/>
  15247. </method>
  15248. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  15249. abstract="false" native="false" synchronized="true"
  15250. static="false" final="false" visibility="public"
  15251. deprecated="not deprecated">
  15252. <param name="name" type="java.lang.String"/>
  15253. <doc>
  15254. <![CDATA[Get the StorageStatistics object with the given name.
  15255. @param name The storage statistics object name.
  15256. @return The StorageStatistics object with the given name, or
  15257. null if there is none.]]>
  15258. </doc>
  15259. </method>
  15260. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  15261. abstract="false" native="false" synchronized="true"
  15262. static="false" final="false" visibility="public"
  15263. deprecated="not deprecated">
  15264. <param name="name" type="java.lang.String"/>
  15265. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  15266. <doc>
  15267. <![CDATA[Create or return the StorageStatistics object with the given name.
  15268. @param name The storage statistics object name.
  15269. @param provider An object which can create a new StorageStatistics
  15270. object if needed.
  15271. @return The StorageStatistics object with the given name.
  15272. @throws RuntimeException If the StorageStatisticsProvider provides a null
  15273. object or a new StorageStatistics object with the
  15274. wrong name.]]>
  15275. </doc>
  15276. </method>
  15277. <method name="reset"
  15278. abstract="false" native="false" synchronized="true"
  15279. static="false" final="false" visibility="public"
  15280. deprecated="not deprecated">
  15281. <doc>
  15282. <![CDATA[Reset all global storage statistics.]]>
  15283. </doc>
  15284. </method>
  15285. <method name="iterator" return="java.util.Iterator"
  15286. abstract="false" native="false" synchronized="true"
  15287. static="false" final="false" visibility="public"
  15288. deprecated="not deprecated">
  15289. <doc>
  15290. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  15291. statistics objects.
  15292. @return StorageStatistics Iterator.]]>
  15293. </doc>
  15294. </method>
  15295. <doc>
  15296. <![CDATA[Stores global storage statistics objects.]]>
  15297. </doc>
  15298. </class>
  15299. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  15300. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  15301. <class name="GlobFilter" extends="java.lang.Object"
  15302. abstract="false"
  15303. static="false" final="false" visibility="public"
  15304. deprecated="not deprecated">
  15305. <implements name="org.apache.hadoop.fs.PathFilter"/>
  15306. <constructor name="GlobFilter" type="java.lang.String"
  15307. static="false" final="false" visibility="public"
  15308. deprecated="not deprecated">
  15309. <exception name="IOException" type="java.io.IOException"/>
  15310. <doc>
  15311. <![CDATA[Creates a glob filter with the specified file pattern.
  15312. @param filePattern the file pattern.
  15313. @throws IOException thrown if the file pattern is incorrect.]]>
  15314. </doc>
  15315. </constructor>
  15316. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  15317. static="false" final="false" visibility="public"
  15318. deprecated="not deprecated">
  15319. <exception name="IOException" type="java.io.IOException"/>
  15320. <doc>
  15321. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  15322. @param filePattern the file pattern.
  15323. @param filter user filter in addition to the glob pattern.
  15324. @throws IOException thrown if the file pattern is incorrect.]]>
  15325. </doc>
  15326. </constructor>
  15327. <method name="hasPattern" return="boolean"
  15328. abstract="false" native="false" synchronized="false"
  15329. static="false" final="false" visibility="public"
  15330. deprecated="not deprecated">
  15331. </method>
  15332. <method name="accept" return="boolean"
  15333. abstract="false" native="false" synchronized="false"
  15334. static="false" final="false" visibility="public"
  15335. deprecated="not deprecated">
  15336. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15337. </method>
  15338. <doc>
  15339. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  15340. </doc>
  15341. </class>
  15342. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  15343. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  15344. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  15345. abstract="false"
  15346. static="false" final="false" visibility="public"
  15347. deprecated="not deprecated">
  15348. <constructor name="InvalidPathException" type="java.lang.String"
  15349. static="false" final="false" visibility="public"
  15350. deprecated="not deprecated">
  15351. <doc>
  15352. <![CDATA[Constructs exception with the specified detail message.
  15353. @param path invalid path.]]>
  15354. </doc>
  15355. </constructor>
  15356. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  15357. static="false" final="false" visibility="public"
  15358. deprecated="not deprecated">
  15359. <doc>
  15360. <![CDATA[Constructs exception with the specified detail message.
  15361. @param path invalid path.
  15362. @param reason Reason <code>path</code> is invalid]]>
  15363. </doc>
  15364. </constructor>
  15365. <doc>
  15366. <![CDATA[Path string is invalid either because it has invalid characters or due to
  15367. other file system specific reasons.]]>
  15368. </doc>
  15369. </class>
  15370. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  15371. <!-- start class org.apache.hadoop.fs.InvalidPathHandleException -->
  15372. <class name="InvalidPathHandleException" extends="java.io.IOException"
  15373. abstract="false"
  15374. static="false" final="false" visibility="public"
  15375. deprecated="not deprecated">
  15376. <constructor name="InvalidPathHandleException" type="java.lang.String"
  15377. static="false" final="false" visibility="public"
  15378. deprecated="not deprecated">
  15379. </constructor>
  15380. <constructor name="InvalidPathHandleException" type="java.lang.String, java.lang.Throwable"
  15381. static="false" final="false" visibility="public"
  15382. deprecated="not deprecated">
  15383. </constructor>
  15384. <doc>
  15385. <![CDATA[Thrown when the constraints enoded in a {@link PathHandle} do not hold.
  15386. For example, if a handle were created with the default
  15387. {@link Options.HandleOpt#path()} constraints, a call to
  15388. {@link FileSystem#open(PathHandle)} would succeed if the file were
  15389. modified, but if a different file was at that location then it would throw
  15390. this exception.]]>
  15391. </doc>
  15392. </class>
  15393. <!-- end class org.apache.hadoop.fs.InvalidPathHandleException -->
  15394. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  15395. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  15396. abstract="false"
  15397. static="false" final="false" visibility="public"
  15398. deprecated="not deprecated">
  15399. <constructor name="LocalFileSystem"
  15400. static="false" final="false" visibility="public"
  15401. deprecated="not deprecated">
  15402. </constructor>
  15403. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  15404. static="false" final="false" visibility="public"
  15405. deprecated="not deprecated">
  15406. </constructor>
  15407. <method name="initialize"
  15408. abstract="false" native="false" synchronized="false"
  15409. static="false" final="false" visibility="public"
  15410. deprecated="not deprecated">
  15411. <param name="name" type="java.net.URI"/>
  15412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15413. <exception name="IOException" type="java.io.IOException"/>
  15414. </method>
  15415. <method name="getScheme" return="java.lang.String"
  15416. abstract="false" native="false" synchronized="false"
  15417. static="false" final="false" visibility="public"
  15418. deprecated="not deprecated">
  15419. <doc>
  15420. <![CDATA[Return the protocol scheme for the FileSystem.
  15421. <p>
  15422. @return <code>file</code>]]>
  15423. </doc>
  15424. </method>
  15425. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  15426. abstract="false" native="false" synchronized="false"
  15427. static="false" final="false" visibility="public"
  15428. deprecated="not deprecated">
  15429. </method>
  15430. <method name="pathToFile" return="java.io.File"
  15431. abstract="false" native="false" synchronized="false"
  15432. static="false" final="false" visibility="public"
  15433. deprecated="not deprecated">
  15434. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15435. <doc>
  15436. <![CDATA[Convert a path to a File.
  15437. @param path the path.
  15438. @return file.]]>
  15439. </doc>
  15440. </method>
  15441. <method name="copyFromLocalFile"
  15442. abstract="false" native="false" synchronized="false"
  15443. static="false" final="false" visibility="public"
  15444. deprecated="not deprecated">
  15445. <param name="delSrc" type="boolean"/>
  15446. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15447. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15448. <exception name="IOException" type="java.io.IOException"/>
  15449. </method>
  15450. <method name="copyToLocalFile"
  15451. abstract="false" native="false" synchronized="false"
  15452. static="false" final="false" visibility="public"
  15453. deprecated="not deprecated">
  15454. <param name="delSrc" type="boolean"/>
  15455. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15456. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15457. <exception name="IOException" type="java.io.IOException"/>
  15458. </method>
  15459. <method name="reportChecksumFailure" return="boolean"
  15460. abstract="false" native="false" synchronized="false"
  15461. static="false" final="false" visibility="public"
  15462. deprecated="not deprecated">
  15463. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15464. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  15465. <param name="inPos" type="long"/>
  15466. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  15467. <param name="sumsPos" type="long"/>
  15468. <doc>
  15469. <![CDATA[Moves files to a bad file directory on the same device, so that their
  15470. storage will not be reused.]]>
  15471. </doc>
  15472. </method>
  15473. <method name="supportsSymlinks" return="boolean"
  15474. abstract="false" native="false" synchronized="false"
  15475. static="false" final="false" visibility="public"
  15476. deprecated="not deprecated">
  15477. </method>
  15478. <method name="createSymlink"
  15479. abstract="false" native="false" synchronized="false"
  15480. static="false" final="false" visibility="public"
  15481. deprecated="not deprecated">
  15482. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15483. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15484. <param name="createParent" type="boolean"/>
  15485. <exception name="IOException" type="java.io.IOException"/>
  15486. </method>
  15487. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15488. abstract="false" native="false" synchronized="false"
  15489. static="false" final="false" visibility="public"
  15490. deprecated="not deprecated">
  15491. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15492. <exception name="IOException" type="java.io.IOException"/>
  15493. </method>
  15494. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15495. abstract="false" native="false" synchronized="false"
  15496. static="false" final="false" visibility="public"
  15497. deprecated="not deprecated">
  15498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15499. <exception name="IOException" type="java.io.IOException"/>
  15500. </method>
  15501. <doc>
  15502. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  15503. </doc>
  15504. </class>
  15505. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  15506. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  15507. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  15508. abstract="false"
  15509. static="false" final="false" visibility="public"
  15510. deprecated="not deprecated">
  15511. <constructor name="LocatedFileStatus"
  15512. static="false" final="false" visibility="public"
  15513. deprecated="not deprecated">
  15514. </constructor>
  15515. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  15516. static="false" final="false" visibility="public"
  15517. deprecated="not deprecated">
  15518. <doc>
  15519. <![CDATA[Constructor
  15520. @param stat a file status
  15521. @param locations a file's block locations]]>
  15522. </doc>
  15523. </constructor>
  15524. <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[]"
  15525. static="false" final="false" visibility="public"
  15526. deprecated="not deprecated">
  15527. <doc>
  15528. <![CDATA[Constructor
  15529. @param length a file's length
  15530. @param isdir if the path is a directory
  15531. @param block_replication the file's replication factor
  15532. @param blocksize a file's block size
  15533. @param modification_time a file's modification time
  15534. @param access_time a file's access time
  15535. @param permission a file's permission
  15536. @param owner a file's owner
  15537. @param group a file's group
  15538. @param symlink symlink if the path is a symbolic link
  15539. @param path the path's qualified name
  15540. @param locations a file's block locations]]>
  15541. </doc>
  15542. </constructor>
  15543. <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[]"
  15544. static="false" final="false" visibility="public"
  15545. deprecated="not deprecated">
  15546. <doc>
  15547. <![CDATA[Constructor.
  15548. @param length a file's length
  15549. @param isdir if the path is a directory
  15550. @param block_replication the file's replication factor
  15551. @param blocksize a file's block size
  15552. @param modification_time a file's modification time
  15553. @param access_time a file's access time
  15554. @param permission a file's permission
  15555. @param owner a file's owner
  15556. @param group a file's group
  15557. @param symlink symlink if the path is a symbolic link
  15558. @param path the path's qualified name
  15559. @param hasAcl entity has associated ACLs
  15560. @param isEncrypted entity is encrypted
  15561. @param isErasureCoded entity is erasure coded
  15562. @param locations a file's block locations]]>
  15563. </doc>
  15564. </constructor>
  15565. <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[]"
  15566. static="false" final="false" visibility="public"
  15567. deprecated="not deprecated">
  15568. <doc>
  15569. <![CDATA[Constructor.
  15570. @param length a file's length
  15571. @param isdir if the path is a directory
  15572. @param block_replication the file's replication factor
  15573. @param blocksize a file's block size
  15574. @param modification_time a file's modification time
  15575. @param access_time a file's access time
  15576. @param permission a file's permission
  15577. @param owner a file's owner
  15578. @param group a file's group
  15579. @param symlink symlink if the path is a symbolic link
  15580. @param path the path's qualified name
  15581. @param attr Attribute flags (See {@link FileStatus.AttrFlags}).
  15582. @param locations a file's block locations]]>
  15583. </doc>
  15584. </constructor>
  15585. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15586. abstract="false" native="false" synchronized="false"
  15587. static="false" final="false" visibility="public"
  15588. deprecated="not deprecated">
  15589. <doc>
  15590. <![CDATA[Get the file's block locations
  15591. In HDFS, the returned BlockLocation will have different formats for
  15592. replicated and erasure coded file.
  15593. Please refer to
  15594. {@link FileSystem#getFileBlockLocations(FileStatus, long, long)}
  15595. for more details.
  15596. @return the file's block locations]]>
  15597. </doc>
  15598. </method>
  15599. <method name="setBlockLocations"
  15600. abstract="false" native="false" synchronized="false"
  15601. static="false" final="false" visibility="protected"
  15602. deprecated="not deprecated">
  15603. <param name="locations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  15604. <doc>
  15605. <![CDATA[Hook for subclasses to lazily set block locations. The {@link #locations}
  15606. field should be null before this is called.
  15607. @param locations Block locations for this instance.]]>
  15608. </doc>
  15609. </method>
  15610. <method name="compareTo" return="int"
  15611. abstract="false" native="false" synchronized="false"
  15612. static="false" final="false" visibility="public"
  15613. deprecated="not deprecated">
  15614. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  15615. <doc>
  15616. <![CDATA[Compare this FileStatus to another FileStatus
  15617. @param o the FileStatus to be compared.
  15618. @return a negative integer, zero, or a positive integer as this object
  15619. is less than, equal to, or greater than the specified object.]]>
  15620. </doc>
  15621. </method>
  15622. <method name="equals" return="boolean"
  15623. abstract="false" native="false" synchronized="false"
  15624. static="false" final="false" visibility="public"
  15625. deprecated="not deprecated">
  15626. <param name="o" type="java.lang.Object"/>
  15627. <doc>
  15628. <![CDATA[Compare if this object is equal to another object
  15629. @param o the object to be compared.
  15630. @return true if two file status has the same path name; false if not.]]>
  15631. </doc>
  15632. </method>
  15633. <method name="hashCode" return="int"
  15634. abstract="false" native="false" synchronized="false"
  15635. static="false" final="false" visibility="public"
  15636. deprecated="not deprecated">
  15637. <doc>
  15638. <![CDATA[Returns a hash code value for the object, which is defined as
  15639. the hash code of the path name.
  15640. @return a hash code value for the path name.]]>
  15641. </doc>
  15642. </method>
  15643. <doc>
  15644. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  15645. </doc>
  15646. </class>
  15647. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  15648. <!-- start interface org.apache.hadoop.fs.MultipartUploader -->
  15649. <interface name="MultipartUploader" abstract="true"
  15650. static="false" final="false" visibility="public"
  15651. deprecated="not deprecated">
  15652. <implements name="java.io.Closeable"/>
  15653. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  15654. <method name="startUpload" return="java.util.concurrent.CompletableFuture"
  15655. abstract="true" native="false" synchronized="false"
  15656. static="false" final="false" visibility="public"
  15657. deprecated="not deprecated">
  15658. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15659. <exception name="IOException" type="java.io.IOException"/>
  15660. <doc>
  15661. <![CDATA[Initialize a multipart upload.
  15662. @param filePath Target path for upload.
  15663. @return unique identifier associating part uploads.
  15664. @throws IOException IO failure]]>
  15665. </doc>
  15666. </method>
  15667. <method name="putPart" return="java.util.concurrent.CompletableFuture"
  15668. abstract="true" native="false" synchronized="false"
  15669. static="false" final="false" visibility="public"
  15670. deprecated="not deprecated">
  15671. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  15672. <param name="partNumber" type="int"/>
  15673. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15674. <param name="inputStream" type="java.io.InputStream"/>
  15675. <param name="lengthInBytes" type="long"/>
  15676. <exception name="IOException" type="java.io.IOException"/>
  15677. <doc>
  15678. <![CDATA[Put part as part of a multipart upload.
  15679. It is possible to have parts uploaded in any order (or in parallel).
  15680. @param uploadId Identifier from {@link #startUpload(Path)}.
  15681. @param partNumber Index of the part relative to others.
  15682. @param filePath Target path for upload (as {@link #startUpload(Path)}).
  15683. @param inputStream Data for this part. Implementations MUST close this
  15684. stream after reading in the data.
  15685. @param lengthInBytes Target length to read from the stream.
  15686. @return unique PartHandle identifier for the uploaded part.
  15687. @throws IOException IO failure]]>
  15688. </doc>
  15689. </method>
  15690. <method name="complete" return="java.util.concurrent.CompletableFuture"
  15691. abstract="true" native="false" synchronized="false"
  15692. static="false" final="false" visibility="public"
  15693. deprecated="not deprecated">
  15694. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  15695. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15696. <param name="handles" type="java.util.Map"/>
  15697. <exception name="IOException" type="java.io.IOException"/>
  15698. <doc>
  15699. <![CDATA[Complete a multipart upload.
  15700. @param uploadId Identifier from {@link #startUpload(Path)}.
  15701. @param filePath Target path for upload (as {@link #startUpload(Path)}.
  15702. @param handles non-empty map of part number to part handle.
  15703. from {@link #putPart(UploadHandle, int, Path, InputStream, long)}.
  15704. @return unique PathHandle identifier for the uploaded file.
  15705. @throws IOException IO failure]]>
  15706. </doc>
  15707. </method>
  15708. <method name="abort" return="java.util.concurrent.CompletableFuture"
  15709. abstract="true" native="false" synchronized="false"
  15710. static="false" final="false" visibility="public"
  15711. deprecated="not deprecated">
  15712. <param name="uploadId" type="org.apache.hadoop.fs.UploadHandle"/>
  15713. <param name="filePath" type="org.apache.hadoop.fs.Path"/>
  15714. <exception name="IOException" type="java.io.IOException"/>
  15715. <doc>
  15716. <![CDATA[Aborts a multipart upload.
  15717. @param uploadId Identifier from {@link #startUpload(Path)}.
  15718. @param filePath Target path for upload (same as {@link #startUpload(Path)}.
  15719. @throws IOException IO failure
  15720. @return a future; the operation will have completed]]>
  15721. </doc>
  15722. </method>
  15723. <method name="abortUploadsUnderPath" return="java.util.concurrent.CompletableFuture"
  15724. abstract="true" native="false" synchronized="false"
  15725. static="false" final="false" visibility="public"
  15726. deprecated="not deprecated">
  15727. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15728. <exception name="IOException" type="java.io.IOException"/>
  15729. <doc>
  15730. <![CDATA[Best effort attempt to aborts multipart uploads under a path.
  15731. Not all implementations support this, and those which do may
  15732. be vulnerable to eventually consistent listings of current uploads
  15733. -some may be missed.
  15734. @param path path to abort uploads under.
  15735. @return a future to the number of entries aborted;
  15736. -1 if aborting is unsupported
  15737. @throws IOException IO failure]]>
  15738. </doc>
  15739. </method>
  15740. <doc>
  15741. <![CDATA[MultipartUploader is an interface for copying files multipart and across
  15742. multiple nodes.
  15743. <p>
  15744. The interface extends {@link IOStatisticsSource} so that there is no
  15745. need to cast an instance to see if is a source of statistics.
  15746. However, implementations MAY return null for their actual statistics.
  15747. </p>]]>
  15748. </doc>
  15749. </interface>
  15750. <!-- end interface org.apache.hadoop.fs.MultipartUploader -->
  15751. <!-- start class org.apache.hadoop.fs.Options -->
  15752. <class name="Options" extends="java.lang.Object"
  15753. abstract="false"
  15754. static="false" final="true" visibility="public"
  15755. deprecated="not deprecated">
  15756. <constructor name="Options"
  15757. static="false" final="false" visibility="public"
  15758. deprecated="not deprecated">
  15759. </constructor>
  15760. <doc>
  15761. <![CDATA[This class contains options related to file system operations.]]>
  15762. </doc>
  15763. </class>
  15764. <!-- end class org.apache.hadoop.fs.Options -->
  15765. <!-- start class org.apache.hadoop.fs.Options.OpenFileOptions -->
  15766. <class name="Options.OpenFileOptions" extends="java.lang.Object"
  15767. abstract="false"
  15768. static="true" final="true" visibility="public"
  15769. deprecated="not deprecated">
  15770. <field name="FS_OPTION_OPENFILE" type="java.lang.String"
  15771. transient="false" volatile="false"
  15772. static="true" final="true" visibility="public"
  15773. deprecated="not deprecated">
  15774. <doc>
  15775. <![CDATA[Prefix for all openFile options: {@value}.]]>
  15776. </doc>
  15777. </field>
  15778. <field name="FS_OPTION_OPENFILE_LENGTH" type="java.lang.String"
  15779. transient="false" volatile="false"
  15780. static="true" final="true" visibility="public"
  15781. deprecated="not deprecated">
  15782. <doc>
  15783. <![CDATA[OpenFile option for file length: {@value}.]]>
  15784. </doc>
  15785. </field>
  15786. <field name="FS_OPTION_OPENFILE_SPLIT_START" type="java.lang.String"
  15787. transient="false" volatile="false"
  15788. static="true" final="true" visibility="public"
  15789. deprecated="not deprecated">
  15790. <doc>
  15791. <![CDATA[OpenFile option for split start: {@value}.]]>
  15792. </doc>
  15793. </field>
  15794. <field name="FS_OPTION_OPENFILE_SPLIT_END" type="java.lang.String"
  15795. transient="false" volatile="false"
  15796. static="true" final="true" visibility="public"
  15797. deprecated="not deprecated">
  15798. <doc>
  15799. <![CDATA[OpenFile option for split end: {@value}.]]>
  15800. </doc>
  15801. </field>
  15802. <field name="FS_OPTION_OPENFILE_BUFFER_SIZE" type="java.lang.String"
  15803. transient="false" volatile="false"
  15804. static="true" final="true" visibility="public"
  15805. deprecated="not deprecated">
  15806. <doc>
  15807. <![CDATA[OpenFile option for buffer size: {@value}.]]>
  15808. </doc>
  15809. </field>
  15810. <field name="FS_OPTION_OPENFILE_READ_POLICY" type="java.lang.String"
  15811. transient="false" volatile="false"
  15812. static="true" final="true" visibility="public"
  15813. deprecated="not deprecated">
  15814. <doc>
  15815. <![CDATA[OpenFile option for read policies: {@value}.]]>
  15816. </doc>
  15817. </field>
  15818. <field name="FS_OPTION_OPENFILE_STANDARD_OPTIONS" type="java.util.Set"
  15819. transient="false" volatile="false"
  15820. static="true" final="true" visibility="public"
  15821. deprecated="not deprecated">
  15822. <doc>
  15823. <![CDATA[Set of standard options which openFile implementations
  15824. MUST recognize, even if they ignore the actual values.]]>
  15825. </doc>
  15826. </field>
  15827. <field name="FS_OPTION_OPENFILE_READ_POLICY_ADAPTIVE" type="java.lang.String"
  15828. transient="false" volatile="false"
  15829. static="true" final="true" visibility="public"
  15830. deprecated="not deprecated">
  15831. <doc>
  15832. <![CDATA[Read policy for adaptive IO: {@value}.]]>
  15833. </doc>
  15834. </field>
  15835. <field name="FS_OPTION_OPENFILE_READ_POLICY_DEFAULT" type="java.lang.String"
  15836. transient="false" volatile="false"
  15837. static="true" final="true" visibility="public"
  15838. deprecated="not deprecated">
  15839. <doc>
  15840. <![CDATA[Read policy {@value} -whateve the implementation does by default.]]>
  15841. </doc>
  15842. </field>
  15843. <field name="FS_OPTION_OPENFILE_READ_POLICY_RANDOM" type="java.lang.String"
  15844. transient="false" volatile="false"
  15845. static="true" final="true" visibility="public"
  15846. deprecated="not deprecated">
  15847. <doc>
  15848. <![CDATA[Read policy for random IO: {@value}.]]>
  15849. </doc>
  15850. </field>
  15851. <field name="FS_OPTION_OPENFILE_READ_POLICY_SEQUENTIAL" type="java.lang.String"
  15852. transient="false" volatile="false"
  15853. static="true" final="true" visibility="public"
  15854. deprecated="not deprecated">
  15855. <doc>
  15856. <![CDATA[Read policy for sequential IO: {@value}.]]>
  15857. </doc>
  15858. </field>
  15859. <field name="FS_OPTION_OPENFILE_READ_POLICY_VECTOR" type="java.lang.String"
  15860. transient="false" volatile="false"
  15861. static="true" final="true" visibility="public"
  15862. deprecated="not deprecated">
  15863. <doc>
  15864. <![CDATA[Vectored IO API to be used: {@value}.]]>
  15865. </doc>
  15866. </field>
  15867. <field name="FS_OPTION_OPENFILE_READ_POLICY_WHOLE_FILE" type="java.lang.String"
  15868. transient="false" volatile="false"
  15869. static="true" final="true" visibility="public"
  15870. deprecated="not deprecated">
  15871. <doc>
  15872. <![CDATA[Whole file to be read, end-to-end: {@value}.]]>
  15873. </doc>
  15874. </field>
  15875. <field name="FS_OPTION_OPENFILE_READ_POLICIES" type="java.util.Set"
  15876. transient="false" volatile="false"
  15877. static="true" final="true" visibility="public"
  15878. deprecated="not deprecated">
  15879. <doc>
  15880. <![CDATA[All the current read policies as a set.]]>
  15881. </doc>
  15882. </field>
  15883. <doc>
  15884. <![CDATA[The standard {@code openFile()} options.]]>
  15885. </doc>
  15886. </class>
  15887. <!-- end class org.apache.hadoop.fs.Options.OpenFileOptions -->
  15888. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  15889. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  15890. abstract="false"
  15891. static="false" final="false" visibility="public"
  15892. deprecated="not deprecated">
  15893. <constructor name="ParentNotDirectoryException"
  15894. static="false" final="false" visibility="public"
  15895. deprecated="not deprecated">
  15896. </constructor>
  15897. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  15898. static="false" final="false" visibility="public"
  15899. deprecated="not deprecated">
  15900. </constructor>
  15901. <doc>
  15902. <![CDATA[Indicates that the parent of specified Path is not a directory
  15903. as expected.]]>
  15904. </doc>
  15905. </class>
  15906. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  15907. <!-- start interface org.apache.hadoop.fs.PartHandle -->
  15908. <interface name="PartHandle" abstract="true"
  15909. static="false" final="false" visibility="public"
  15910. deprecated="not deprecated">
  15911. <implements name="java.io.Serializable"/>
  15912. <method name="toByteArray" return="byte[]"
  15913. abstract="false" native="false" synchronized="false"
  15914. static="false" final="false" visibility="public"
  15915. deprecated="not deprecated">
  15916. <doc>
  15917. <![CDATA[@return Serialized from in bytes.]]>
  15918. </doc>
  15919. </method>
  15920. <method name="bytes" return="java.nio.ByteBuffer"
  15921. abstract="true" native="false" synchronized="false"
  15922. static="false" final="false" visibility="public"
  15923. deprecated="not deprecated">
  15924. </method>
  15925. <method name="equals" return="boolean"
  15926. abstract="true" native="false" synchronized="false"
  15927. static="false" final="false" visibility="public"
  15928. deprecated="not deprecated">
  15929. <param name="other" type="java.lang.Object"/>
  15930. </method>
  15931. <doc>
  15932. <![CDATA[Opaque, serializable reference to a part id for multipart uploads.]]>
  15933. </doc>
  15934. </interface>
  15935. <!-- end interface org.apache.hadoop.fs.PartHandle -->
  15936. <!-- start class org.apache.hadoop.fs.PartialListing -->
  15937. <class name="PartialListing" extends="java.lang.Object"
  15938. abstract="false"
  15939. static="false" final="false" visibility="public"
  15940. deprecated="not deprecated">
  15941. <constructor name="PartialListing" type="org.apache.hadoop.fs.Path, java.util.List"
  15942. static="false" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. </constructor>
  15945. <constructor name="PartialListing" type="org.apache.hadoop.fs.Path, org.apache.hadoop.ipc.RemoteException"
  15946. static="false" final="false" visibility="public"
  15947. deprecated="not deprecated">
  15948. </constructor>
  15949. <method name="get" return="java.util.List"
  15950. abstract="false" native="false" synchronized="false"
  15951. static="false" final="false" visibility="public"
  15952. deprecated="not deprecated">
  15953. <exception name="IOException" type="java.io.IOException"/>
  15954. <doc>
  15955. <![CDATA[Partial listing of the path being listed. In the case where the path is
  15956. a file. The list will be a singleton with the file itself.
  15957. @return Partial listing of the path being listed.
  15958. @throws IOException if there was an exception getting the listing.]]>
  15959. </doc>
  15960. </method>
  15961. <method name="getListedPath" return="org.apache.hadoop.fs.Path"
  15962. abstract="false" native="false" synchronized="false"
  15963. static="false" final="false" visibility="public"
  15964. deprecated="not deprecated">
  15965. <doc>
  15966. <![CDATA[Path being listed.
  15967. @return the path being listed.]]>
  15968. </doc>
  15969. </method>
  15970. <method name="toString" return="java.lang.String"
  15971. abstract="false" native="false" synchronized="false"
  15972. static="false" final="false" visibility="public"
  15973. deprecated="not deprecated">
  15974. </method>
  15975. <doc>
  15976. <![CDATA[<p>
  15977. A partial listing of the children of a parent directory. Since it is a
  15978. partial listing, multiple PartialListing may need to be combined to obtain
  15979. the full listing of a parent directory.
  15980. </p>
  15981. ListingBatch behaves similar to a Future, in that getting the result via
  15982. {@link #get()} will throw an Exception if there was a failure.]]>
  15983. </doc>
  15984. </class>
  15985. <!-- end class org.apache.hadoop.fs.PartialListing -->
  15986. <!-- start class org.apache.hadoop.fs.Path -->
  15987. <class name="Path" extends="java.lang.Object"
  15988. abstract="false"
  15989. static="false" final="false" visibility="public"
  15990. deprecated="not deprecated">
  15991. <implements name="java.lang.Comparable"/>
  15992. <implements name="java.io.Serializable"/>
  15993. <implements name="java.io.ObjectInputValidation"/>
  15994. <constructor name="Path" type="java.lang.String, java.lang.String"
  15995. static="false" final="false" visibility="public"
  15996. deprecated="not deprecated">
  15997. <doc>
  15998. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  15999. @param parent the parent path
  16000. @param child the child path]]>
  16001. </doc>
  16002. </constructor>
  16003. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  16004. static="false" final="false" visibility="public"
  16005. deprecated="not deprecated">
  16006. <doc>
  16007. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  16008. @param parent the parent path
  16009. @param child the child path]]>
  16010. </doc>
  16011. </constructor>
  16012. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  16013. static="false" final="false" visibility="public"
  16014. deprecated="not deprecated">
  16015. <doc>
  16016. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  16017. @param parent the parent path
  16018. @param child the child path]]>
  16019. </doc>
  16020. </constructor>
  16021. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <doc>
  16025. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  16026. @param parent the parent path
  16027. @param child the child path]]>
  16028. </doc>
  16029. </constructor>
  16030. <constructor name="Path" type="java.lang.String"
  16031. static="false" final="false" visibility="public"
  16032. deprecated="not deprecated">
  16033. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  16034. <doc>
  16035. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  16036. unescaped elements and some additional normalization.
  16037. @param pathString the path string]]>
  16038. </doc>
  16039. </constructor>
  16040. <constructor name="Path" type="java.net.URI"
  16041. static="false" final="false" visibility="public"
  16042. deprecated="not deprecated">
  16043. <doc>
  16044. <![CDATA[Construct a path from a URI
  16045. @param aUri the source URI]]>
  16046. </doc>
  16047. </constructor>
  16048. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  16049. static="false" final="false" visibility="public"
  16050. deprecated="not deprecated">
  16051. <doc>
  16052. <![CDATA[Construct a Path from components.
  16053. @param scheme the scheme
  16054. @param authority the authority
  16055. @param path the path]]>
  16056. </doc>
  16057. </constructor>
  16058. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  16059. abstract="false" native="false" synchronized="false"
  16060. static="true" final="false" visibility="public"
  16061. deprecated="not deprecated">
  16062. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16063. <doc>
  16064. <![CDATA[Return a version of the given Path without the scheme information.
  16065. @param path the source Path
  16066. @return a copy of this Path without the scheme information]]>
  16067. </doc>
  16068. </method>
  16069. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  16070. abstract="false" native="false" synchronized="false"
  16071. static="true" final="false" visibility="public"
  16072. deprecated="not deprecated">
  16073. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  16074. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  16075. <doc>
  16076. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  16077. The returned path has the scheme and authority of the first path. On
  16078. Windows, the drive specification in the second path is discarded.
  16079. @param path1 the first path
  16080. @param path2 the second path, to be appended relative to path1
  16081. @return the merged path]]>
  16082. </doc>
  16083. </method>
  16084. <method name="isWindowsAbsolutePath" return="boolean"
  16085. abstract="false" native="false" synchronized="false"
  16086. static="true" final="false" visibility="public"
  16087. deprecated="not deprecated">
  16088. <param name="pathString" type="java.lang.String"/>
  16089. <param name="slashed" type="boolean"/>
  16090. <doc>
  16091. <![CDATA[Determine whether a given path string represents an absolute path on
  16092. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  16093. @param pathString the path string to evaluate
  16094. @param slashed true if the given path is prefixed with "/"
  16095. @return true if the supplied path looks like an absolute path with a Windows
  16096. drive-specifier]]>
  16097. </doc>
  16098. </method>
  16099. <method name="toUri" return="java.net.URI"
  16100. abstract="false" native="false" synchronized="false"
  16101. static="false" final="false" visibility="public"
  16102. deprecated="not deprecated">
  16103. <doc>
  16104. <![CDATA[Convert this Path to a URI.
  16105. @return this Path as a URI]]>
  16106. </doc>
  16107. </method>
  16108. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  16109. abstract="false" native="false" synchronized="false"
  16110. static="false" final="false" visibility="public"
  16111. deprecated="not deprecated">
  16112. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16113. <exception name="IOException" type="java.io.IOException"/>
  16114. <doc>
  16115. <![CDATA[Return the FileSystem that owns this Path.
  16116. @param conf the configuration to use when resolving the FileSystem
  16117. @return the FileSystem that owns this Path
  16118. @throws java.io.IOException thrown if there's an issue resolving the
  16119. FileSystem]]>
  16120. </doc>
  16121. </method>
  16122. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  16123. abstract="false" native="false" synchronized="false"
  16124. static="false" final="false" visibility="public"
  16125. deprecated="not deprecated">
  16126. <doc>
  16127. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  16128. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  16129. is null.
  16130. @return whether the path is absolute and the URI has no scheme nor
  16131. authority parts]]>
  16132. </doc>
  16133. </method>
  16134. <method name="isUriPathAbsolute" return="boolean"
  16135. abstract="false" native="false" synchronized="false"
  16136. static="false" final="false" visibility="public"
  16137. deprecated="not deprecated">
  16138. <doc>
  16139. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  16140. absolute.
  16141. @return whether this URI's path is absolute]]>
  16142. </doc>
  16143. </method>
  16144. <method name="isAbsolute" return="boolean"
  16145. abstract="false" native="false" synchronized="false"
  16146. static="false" final="false" visibility="public"
  16147. deprecated="not deprecated">
  16148. <doc>
  16149. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  16150. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  16151. @return whether this URI's path is absolute]]>
  16152. </doc>
  16153. </method>
  16154. <method name="isRoot" return="boolean"
  16155. abstract="false" native="false" synchronized="false"
  16156. static="false" final="false" visibility="public"
  16157. deprecated="not deprecated">
  16158. <doc>
  16159. <![CDATA[Returns true if and only if this path represents the root of a file system.
  16160. @return true if and only if this path represents the root of a file system]]>
  16161. </doc>
  16162. </method>
  16163. <method name="getName" return="java.lang.String"
  16164. abstract="false" native="false" synchronized="false"
  16165. static="false" final="false" visibility="public"
  16166. deprecated="not deprecated">
  16167. <doc>
  16168. <![CDATA[Returns the final component of this path.
  16169. @return the final component of this path]]>
  16170. </doc>
  16171. </method>
  16172. <method name="getParent" return="org.apache.hadoop.fs.Path"
  16173. abstract="false" native="false" synchronized="false"
  16174. static="false" final="false" visibility="public"
  16175. deprecated="not deprecated">
  16176. <doc>
  16177. <![CDATA[Returns the parent of a path or null if at root.
  16178. @return the parent of a path or null if at root]]>
  16179. </doc>
  16180. </method>
  16181. <method name="suffix" return="org.apache.hadoop.fs.Path"
  16182. abstract="false" native="false" synchronized="false"
  16183. static="false" final="false" visibility="public"
  16184. deprecated="not deprecated">
  16185. <param name="suffix" type="java.lang.String"/>
  16186. <doc>
  16187. <![CDATA[Adds a suffix to the final name in the path.
  16188. @param suffix the suffix to add
  16189. @return a new path with the suffix added]]>
  16190. </doc>
  16191. </method>
  16192. <method name="toString" return="java.lang.String"
  16193. abstract="false" native="false" synchronized="false"
  16194. static="false" final="false" visibility="public"
  16195. deprecated="not deprecated">
  16196. </method>
  16197. <method name="equals" return="boolean"
  16198. abstract="false" native="false" synchronized="false"
  16199. static="false" final="false" visibility="public"
  16200. deprecated="not deprecated">
  16201. <param name="o" type="java.lang.Object"/>
  16202. </method>
  16203. <method name="hashCode" return="int"
  16204. abstract="false" native="false" synchronized="false"
  16205. static="false" final="false" visibility="public"
  16206. deprecated="not deprecated">
  16207. </method>
  16208. <method name="compareTo" return="int"
  16209. abstract="false" native="false" synchronized="false"
  16210. static="false" final="false" visibility="public"
  16211. deprecated="not deprecated">
  16212. <param name="o" type="org.apache.hadoop.fs.Path"/>
  16213. </method>
  16214. <method name="depth" return="int"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="public"
  16217. deprecated="not deprecated">
  16218. <doc>
  16219. <![CDATA[Returns the number of elements in this path.
  16220. @return the number of elements in this path]]>
  16221. </doc>
  16222. </method>
  16223. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  16224. abstract="false" native="false" synchronized="false"
  16225. static="false" final="false" visibility="public"
  16226. deprecated="use {@link #makeQualified(URI, Path)}">
  16227. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16228. <doc>
  16229. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  16230. directory.
  16231. @param fs the target FileSystem
  16232. @return a qualified path object for the FileSystem's working directory
  16233. @deprecated use {@link #makeQualified(URI, Path)}]]>
  16234. </doc>
  16235. </method>
  16236. <method name="validateObject"
  16237. abstract="false" native="false" synchronized="false"
  16238. static="false" final="false" visibility="public"
  16239. deprecated="not deprecated">
  16240. <exception name="InvalidObjectException" type="java.io.InvalidObjectException"/>
  16241. <doc>
  16242. <![CDATA[Validate the contents of a deserialized Path, so as
  16243. to defend against malicious object streams.
  16244. @throws InvalidObjectException if there's no URI]]>
  16245. </doc>
  16246. </method>
  16247. <field name="SEPARATOR" type="java.lang.String"
  16248. transient="false" volatile="false"
  16249. static="true" final="true" visibility="public"
  16250. deprecated="not deprecated">
  16251. <doc>
  16252. <![CDATA[The directory separator, a slash.]]>
  16253. </doc>
  16254. </field>
  16255. <field name="SEPARATOR_CHAR" type="char"
  16256. transient="false" volatile="false"
  16257. static="true" final="true" visibility="public"
  16258. deprecated="not deprecated">
  16259. <doc>
  16260. <![CDATA[The directory separator, a slash, as a character.]]>
  16261. </doc>
  16262. </field>
  16263. <field name="CUR_DIR" type="java.lang.String"
  16264. transient="false" volatile="false"
  16265. static="true" final="true" visibility="public"
  16266. deprecated="not deprecated">
  16267. <doc>
  16268. <![CDATA[The current directory, ".".]]>
  16269. </doc>
  16270. </field>
  16271. <field name="WINDOWS" type="boolean"
  16272. transient="false" volatile="false"
  16273. static="true" final="true" visibility="public"
  16274. deprecated="not deprecated">
  16275. <doc>
  16276. <![CDATA[Whether the current host is a Windows machine.]]>
  16277. </doc>
  16278. </field>
  16279. <doc>
  16280. <![CDATA[Names a file or directory in a {@link FileSystem}.
  16281. Path strings use slash as the directory separator.]]>
  16282. </doc>
  16283. </class>
  16284. <!-- end class org.apache.hadoop.fs.Path -->
  16285. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  16286. <interface name="PathFilter" abstract="true"
  16287. static="false" final="false" visibility="public"
  16288. deprecated="not deprecated">
  16289. <method name="accept" return="boolean"
  16290. abstract="true" native="false" synchronized="false"
  16291. static="false" final="false" visibility="public"
  16292. deprecated="not deprecated">
  16293. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16294. <doc>
  16295. <![CDATA[Tests whether or not the specified abstract pathname should be
  16296. included in a pathname list.
  16297. @param path The abstract pathname to be tested
  16298. @return <code>true</code> if and only if <code>pathname</code>
  16299. should be included]]>
  16300. </doc>
  16301. </method>
  16302. </interface>
  16303. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  16304. <!-- start interface org.apache.hadoop.fs.PathHandle -->
  16305. <interface name="PathHandle" abstract="true"
  16306. static="false" final="false" visibility="public"
  16307. deprecated="not deprecated">
  16308. <implements name="java.io.Serializable"/>
  16309. <method name="toByteArray" return="byte[]"
  16310. abstract="false" native="false" synchronized="false"
  16311. static="false" final="false" visibility="public"
  16312. deprecated="not deprecated">
  16313. <doc>
  16314. <![CDATA[@return Serialized form in bytes.]]>
  16315. </doc>
  16316. </method>
  16317. <method name="bytes" return="java.nio.ByteBuffer"
  16318. abstract="true" native="false" synchronized="false"
  16319. static="false" final="false" visibility="public"
  16320. deprecated="not deprecated">
  16321. <doc>
  16322. <![CDATA[Get the bytes of this path handle.
  16323. @return the bytes to get to the process completing the upload.]]>
  16324. </doc>
  16325. </method>
  16326. <method name="equals" return="boolean"
  16327. abstract="true" native="false" synchronized="false"
  16328. static="false" final="false" visibility="public"
  16329. deprecated="not deprecated">
  16330. <param name="other" type="java.lang.Object"/>
  16331. </method>
  16332. <doc>
  16333. <![CDATA[Opaque, serializable reference to an entity in the FileSystem. May contain
  16334. metadata sufficient to resolve or verify subsequent accesses independent of
  16335. other modifications to the FileSystem.]]>
  16336. </doc>
  16337. </interface>
  16338. <!-- end interface org.apache.hadoop.fs.PathHandle -->
  16339. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  16340. <interface name="PositionedReadable" abstract="true"
  16341. static="false" final="false" visibility="public"
  16342. deprecated="not deprecated">
  16343. <method name="read" return="int"
  16344. abstract="true" native="false" synchronized="false"
  16345. static="false" final="false" visibility="public"
  16346. deprecated="not deprecated">
  16347. <param name="position" type="long"/>
  16348. <param name="buffer" type="byte[]"/>
  16349. <param name="offset" type="int"/>
  16350. <param name="length" type="int"/>
  16351. <exception name="IOException" type="java.io.IOException"/>
  16352. <doc>
  16353. <![CDATA[Read up to the specified number of bytes, from a given
  16354. position within a file, and return the number of bytes read. This does not
  16355. change the current offset of a file, and is thread-safe.
  16356. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  16357. @param position position within file
  16358. @param buffer destination buffer
  16359. @param offset offset in the buffer
  16360. @param length number of bytes to read
  16361. @return actual number of bytes read; -1 means "none"
  16362. @throws IOException IO problems.]]>
  16363. </doc>
  16364. </method>
  16365. <method name="readFully"
  16366. abstract="true" native="false" synchronized="false"
  16367. static="false" final="false" visibility="public"
  16368. deprecated="not deprecated">
  16369. <param name="position" type="long"/>
  16370. <param name="buffer" type="byte[]"/>
  16371. <param name="offset" type="int"/>
  16372. <param name="length" type="int"/>
  16373. <exception name="IOException" type="java.io.IOException"/>
  16374. <doc>
  16375. <![CDATA[Read the specified number of bytes, from a given
  16376. position within a file. This does not
  16377. change the current offset of a file, and is thread-safe.
  16378. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  16379. @param position position within file
  16380. @param buffer destination buffer
  16381. @param offset offset in the buffer
  16382. @param length number of bytes to read
  16383. @throws IOException IO problems.
  16384. @throws EOFException the end of the data was reached before
  16385. the read operation completed]]>
  16386. </doc>
  16387. </method>
  16388. <method name="readFully"
  16389. abstract="true" native="false" synchronized="false"
  16390. static="false" final="false" visibility="public"
  16391. deprecated="not deprecated">
  16392. <param name="position" type="long"/>
  16393. <param name="buffer" type="byte[]"/>
  16394. <exception name="IOException" type="java.io.IOException"/>
  16395. <doc>
  16396. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  16397. position within a file. This does not
  16398. change the current offset of a file, and is thread-safe.
  16399. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  16400. @param position position within file
  16401. @param buffer destination buffer
  16402. @throws IOException IO problems.
  16403. @throws EOFException the end of the data was reached before
  16404. the read operation completed]]>
  16405. </doc>
  16406. </method>
  16407. <method name="minSeekForVectorReads" return="int"
  16408. abstract="false" native="false" synchronized="false"
  16409. static="false" final="false" visibility="public"
  16410. deprecated="not deprecated">
  16411. <doc>
  16412. <![CDATA[What is the smallest reasonable seek?
  16413. @return the minimum number of bytes]]>
  16414. </doc>
  16415. </method>
  16416. <method name="maxReadSizeForVectorReads" return="int"
  16417. abstract="false" native="false" synchronized="false"
  16418. static="false" final="false" visibility="public"
  16419. deprecated="not deprecated">
  16420. <doc>
  16421. <![CDATA[What is the largest size that we should group ranges together as?
  16422. @return the number of bytes to read at once]]>
  16423. </doc>
  16424. </method>
  16425. <method name="readVectored"
  16426. abstract="false" native="false" synchronized="false"
  16427. static="false" final="false" visibility="public"
  16428. deprecated="not deprecated">
  16429. <param name="ranges" type="java.util.List"/>
  16430. <param name="allocate" type="java.util.function.IntFunction"/>
  16431. <exception name="IOException" type="java.io.IOException"/>
  16432. <doc>
  16433. <![CDATA[Read fully a list of file ranges asynchronously from this file.
  16434. The default iterates through the ranges to read each synchronously, but
  16435. the intent is that FSDataInputStream subclasses can make more efficient
  16436. readers.
  16437. As a result of the call, each range will have FileRange.setData(CompletableFuture)
  16438. called with a future that when complete will have a ByteBuffer with the
  16439. data from the file's range.
  16440. <p>
  16441. The position returned by getPos() after readVectored() is undefined.
  16442. </p>
  16443. <p>
  16444. If a file is changed while the readVectored() operation is in progress, the output is
  16445. undefined. Some ranges may have old data, some may have new and some may have both.
  16446. </p>
  16447. <p>
  16448. While a readVectored() operation is in progress, normal read api calls may block.
  16449. </p>
  16450. @param ranges the byte ranges to read
  16451. @param allocate the function to allocate ByteBuffer
  16452. @throws IOException any IOE.]]>
  16453. </doc>
  16454. </method>
  16455. <doc>
  16456. <![CDATA[Stream that permits positional reading.
  16457. Implementations are required to implement thread-safe operations; this may
  16458. be supported by concurrent access to the data, or by using a synchronization
  16459. mechanism to serialize access.
  16460. Not all implementations meet this requirement. Those that do not cannot
  16461. be used as a backing store for some applications, such as Apache HBase.
  16462. Independent of whether or not they are thread safe, some implementations
  16463. may make the intermediate state of the system, specifically the position
  16464. obtained in {@code Seekable.getPos()} visible.]]>
  16465. </doc>
  16466. </interface>
  16467. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  16468. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  16469. <class name="QuotaUsage" extends="java.lang.Object"
  16470. abstract="false"
  16471. static="false" final="false" visibility="public"
  16472. deprecated="not deprecated">
  16473. <constructor name="QuotaUsage"
  16474. static="false" final="false" visibility="protected"
  16475. deprecated="not deprecated">
  16476. </constructor>
  16477. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  16478. static="false" final="false" visibility="protected"
  16479. deprecated="not deprecated">
  16480. <doc>
  16481. <![CDATA[Build the instance based on the builder.
  16482. @param builder bulider.]]>
  16483. </doc>
  16484. </constructor>
  16485. <method name="setQuota"
  16486. abstract="false" native="false" synchronized="false"
  16487. static="false" final="false" visibility="protected"
  16488. deprecated="not deprecated">
  16489. <param name="quota" type="long"/>
  16490. </method>
  16491. <method name="setSpaceConsumed"
  16492. abstract="false" native="false" synchronized="false"
  16493. static="false" final="false" visibility="protected"
  16494. deprecated="not deprecated">
  16495. <param name="spaceConsumed" type="long"/>
  16496. </method>
  16497. <method name="setSpaceQuota"
  16498. abstract="false" native="false" synchronized="false"
  16499. static="false" final="false" visibility="protected"
  16500. deprecated="not deprecated">
  16501. <param name="spaceQuota" type="long"/>
  16502. </method>
  16503. <method name="getFileAndDirectoryCount" return="long"
  16504. abstract="false" native="false" synchronized="false"
  16505. static="false" final="false" visibility="public"
  16506. deprecated="not deprecated">
  16507. <doc>
  16508. <![CDATA[Return the directory count.
  16509. @return file and directory count.]]>
  16510. </doc>
  16511. </method>
  16512. <method name="getQuota" return="long"
  16513. abstract="false" native="false" synchronized="false"
  16514. static="false" final="false" visibility="public"
  16515. deprecated="not deprecated">
  16516. <doc>
  16517. <![CDATA[Return the directory quota.
  16518. @return quota.]]>
  16519. </doc>
  16520. </method>
  16521. <method name="getSpaceConsumed" return="long"
  16522. abstract="false" native="false" synchronized="false"
  16523. static="false" final="false" visibility="public"
  16524. deprecated="not deprecated">
  16525. <doc>
  16526. <![CDATA[Return (disk) space consumed.
  16527. @return space consumed.]]>
  16528. </doc>
  16529. </method>
  16530. <method name="getSpaceQuota" return="long"
  16531. abstract="false" native="false" synchronized="false"
  16532. static="false" final="false" visibility="public"
  16533. deprecated="not deprecated">
  16534. <doc>
  16535. <![CDATA[Return (disk) space quota.
  16536. @return space quota.]]>
  16537. </doc>
  16538. </method>
  16539. <method name="getTypeQuota" return="long"
  16540. abstract="false" native="false" synchronized="false"
  16541. static="false" final="false" visibility="public"
  16542. deprecated="not deprecated">
  16543. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  16544. <doc>
  16545. <![CDATA[Return storage type quota.
  16546. @param type storage type.
  16547. @return type quota.]]>
  16548. </doc>
  16549. </method>
  16550. <method name="getTypeConsumed" return="long"
  16551. abstract="false" native="false" synchronized="false"
  16552. static="false" final="false" visibility="public"
  16553. deprecated="not deprecated">
  16554. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  16555. <doc>
  16556. <![CDATA[Return storage type consumed.
  16557. @param type storage type.
  16558. @return type consumed.]]>
  16559. </doc>
  16560. </method>
  16561. <method name="isTypeQuotaSet" return="boolean"
  16562. abstract="false" native="false" synchronized="false"
  16563. static="false" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. <doc>
  16566. <![CDATA[Return true if any storage type quota has been set.
  16567. @return if any storage type quota has been set true, not false.]]>
  16568. </doc>
  16569. </method>
  16570. <method name="isTypeConsumedAvailable" return="boolean"
  16571. abstract="false" native="false" synchronized="false"
  16572. static="false" final="false" visibility="public"
  16573. deprecated="not deprecated">
  16574. <doc>
  16575. <![CDATA[Return true if any storage type consumption information is available.
  16576. @return if any storage type consumption information
  16577. is available, not false.]]>
  16578. </doc>
  16579. </method>
  16580. <method name="hashCode" return="int"
  16581. abstract="false" native="false" synchronized="false"
  16582. static="false" final="false" visibility="public"
  16583. deprecated="not deprecated">
  16584. </method>
  16585. <method name="equals" return="boolean"
  16586. abstract="false" native="false" synchronized="false"
  16587. static="false" final="false" visibility="public"
  16588. deprecated="not deprecated">
  16589. <param name="obj" type="java.lang.Object"/>
  16590. </method>
  16591. <method name="getHeader" return="java.lang.String"
  16592. abstract="false" native="false" synchronized="false"
  16593. static="true" final="false" visibility="public"
  16594. deprecated="not deprecated">
  16595. <doc>
  16596. <![CDATA[Return the header of the output.
  16597. @return the header of the output]]>
  16598. </doc>
  16599. </method>
  16600. <method name="toString" return="java.lang.String"
  16601. abstract="false" native="false" synchronized="false"
  16602. static="false" final="false" visibility="public"
  16603. deprecated="not deprecated">
  16604. </method>
  16605. <method name="toString" return="java.lang.String"
  16606. abstract="false" native="false" synchronized="false"
  16607. static="false" final="false" visibility="public"
  16608. deprecated="not deprecated">
  16609. <param name="hOption" type="boolean"/>
  16610. </method>
  16611. <method name="toString" return="java.lang.String"
  16612. abstract="false" native="false" synchronized="false"
  16613. static="false" final="false" visibility="public"
  16614. deprecated="not deprecated">
  16615. <param name="hOption" type="boolean"/>
  16616. <param name="tOption" type="boolean"/>
  16617. <param name="types" type="java.util.List"/>
  16618. <doc>
  16619. <![CDATA[Return the string representation of the object in the output format.
  16620. if hOption is false file sizes are returned in bytes
  16621. if hOption is true file sizes are returned in human readable
  16622. @param hOption a flag indicating if human readable output if to be used
  16623. @param tOption type option.
  16624. @param types storage types.
  16625. @return the string representation of the object.]]>
  16626. </doc>
  16627. </method>
  16628. <method name="getQuotaUsage" return="java.lang.String"
  16629. abstract="false" native="false" synchronized="false"
  16630. static="false" final="false" visibility="protected"
  16631. deprecated="not deprecated">
  16632. <param name="hOption" type="boolean"/>
  16633. </method>
  16634. <method name="getTypesQuotaUsage" return="java.lang.String"
  16635. abstract="false" native="false" synchronized="false"
  16636. static="false" final="false" visibility="protected"
  16637. deprecated="not deprecated">
  16638. <param name="hOption" type="boolean"/>
  16639. <param name="types" type="java.util.List"/>
  16640. </method>
  16641. <method name="getStorageTypeHeader" return="java.lang.String"
  16642. abstract="false" native="false" synchronized="false"
  16643. static="true" final="false" visibility="public"
  16644. deprecated="not deprecated">
  16645. <param name="storageTypes" type="java.util.List"/>
  16646. <doc>
  16647. <![CDATA[return the header of with the StorageTypes.
  16648. @param storageTypes storage types.
  16649. @return storage header string]]>
  16650. </doc>
  16651. </method>
  16652. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  16653. transient="false" volatile="false"
  16654. static="true" final="true" visibility="protected"
  16655. deprecated="not deprecated">
  16656. <doc>
  16657. <![CDATA[Output format:
  16658. |----12----| |----15----| |----15----| |----15----| |-------18-------|
  16659. QUOTA REMAINING_QUOTA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  16660. </doc>
  16661. </field>
  16662. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  16663. transient="false" volatile="false"
  16664. static="true" final="true" visibility="protected"
  16665. deprecated="not deprecated">
  16666. </field>
  16667. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  16668. transient="false" volatile="false"
  16669. static="true" final="true" visibility="protected"
  16670. deprecated="not deprecated">
  16671. </field>
  16672. <field name="QUOTA_HEADER" type="java.lang.String"
  16673. transient="false" volatile="false"
  16674. static="true" final="true" visibility="protected"
  16675. deprecated="not deprecated">
  16676. </field>
  16677. <doc>
  16678. <![CDATA[Store the quota usage of a directory.]]>
  16679. </doc>
  16680. </class>
  16681. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  16682. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  16683. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  16684. abstract="false"
  16685. static="false" final="false" visibility="public"
  16686. deprecated="not deprecated">
  16687. <constructor name="RawLocalFileSystem"
  16688. static="false" final="false" visibility="public"
  16689. deprecated="not deprecated">
  16690. </constructor>
  16691. <method name="useStatIfAvailable"
  16692. abstract="false" native="false" synchronized="false"
  16693. static="true" final="false" visibility="public"
  16694. deprecated="not deprecated">
  16695. </method>
  16696. <method name="pathToFile" return="java.io.File"
  16697. abstract="false" native="false" synchronized="false"
  16698. static="false" final="false" visibility="public"
  16699. deprecated="not deprecated">
  16700. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16701. <doc>
  16702. <![CDATA[Convert a path to a File.
  16703. @param path the path.
  16704. @return file.]]>
  16705. </doc>
  16706. </method>
  16707. <method name="getUri" return="java.net.URI"
  16708. abstract="false" native="false" synchronized="false"
  16709. static="false" final="false" visibility="public"
  16710. deprecated="not deprecated">
  16711. </method>
  16712. <method name="initialize"
  16713. abstract="false" native="false" synchronized="false"
  16714. static="false" final="false" visibility="public"
  16715. deprecated="not deprecated">
  16716. <param name="uri" type="java.net.URI"/>
  16717. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16718. <exception name="IOException" type="java.io.IOException"/>
  16719. </method>
  16720. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16721. abstract="false" native="false" synchronized="false"
  16722. static="false" final="false" visibility="public"
  16723. deprecated="not deprecated">
  16724. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16725. <param name="bufferSize" type="int"/>
  16726. <exception name="IOException" type="java.io.IOException"/>
  16727. </method>
  16728. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16729. abstract="false" native="false" synchronized="false"
  16730. static="false" final="false" visibility="public"
  16731. deprecated="not deprecated">
  16732. <param name="fd" type="org.apache.hadoop.fs.PathHandle"/>
  16733. <param name="bufferSize" type="int"/>
  16734. <exception name="IOException" type="java.io.IOException"/>
  16735. </method>
  16736. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  16737. abstract="false" native="false" synchronized="false"
  16738. static="false" final="false" visibility="public"
  16739. deprecated="not deprecated">
  16740. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16741. <param name="bufferSize" type="int"/>
  16742. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16743. <exception name="IOException" type="java.io.IOException"/>
  16744. </method>
  16745. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16746. abstract="false" native="false" synchronized="false"
  16747. static="false" final="false" visibility="public"
  16748. deprecated="not deprecated">
  16749. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16750. <param name="overwrite" type="boolean"/>
  16751. <param name="bufferSize" type="int"/>
  16752. <param name="replication" type="short"/>
  16753. <param name="blockSize" type="long"/>
  16754. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16755. <exception name="IOException" type="java.io.IOException"/>
  16756. </method>
  16757. <method name="createOutputStream" return="java.io.OutputStream"
  16758. abstract="false" native="false" synchronized="false"
  16759. static="false" final="false" visibility="protected"
  16760. deprecated="not deprecated">
  16761. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16762. <param name="append" type="boolean"/>
  16763. <exception name="IOException" type="java.io.IOException"/>
  16764. </method>
  16765. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="protected"
  16768. deprecated="not deprecated">
  16769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16770. <param name="append" type="boolean"/>
  16771. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16772. <exception name="IOException" type="java.io.IOException"/>
  16773. </method>
  16774. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  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. <param name="flags" type="java.util.EnumSet"/>
  16781. <param name="bufferSize" type="int"/>
  16782. <param name="replication" type="short"/>
  16783. <param name="blockSize" type="long"/>
  16784. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16785. <exception name="IOException" type="java.io.IOException"/>
  16786. </method>
  16787. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16788. abstract="false" native="false" synchronized="false"
  16789. static="false" final="false" visibility="public"
  16790. deprecated="not deprecated">
  16791. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16792. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16793. <param name="overwrite" type="boolean"/>
  16794. <param name="bufferSize" type="int"/>
  16795. <param name="replication" type="short"/>
  16796. <param name="blockSize" type="long"/>
  16797. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16798. <exception name="IOException" type="java.io.IOException"/>
  16799. </method>
  16800. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  16801. abstract="false" native="false" synchronized="false"
  16802. static="false" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16805. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16806. <param name="overwrite" type="boolean"/>
  16807. <param name="bufferSize" type="int"/>
  16808. <param name="replication" type="short"/>
  16809. <param name="blockSize" type="long"/>
  16810. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16811. <exception name="IOException" type="java.io.IOException"/>
  16812. </method>
  16813. <method name="concat"
  16814. abstract="false" native="false" synchronized="false"
  16815. static="false" final="false" visibility="public"
  16816. deprecated="not deprecated">
  16817. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  16818. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  16819. <exception name="IOException" type="java.io.IOException"/>
  16820. </method>
  16821. <method name="rename" return="boolean"
  16822. abstract="false" native="false" synchronized="false"
  16823. static="false" final="false" visibility="public"
  16824. deprecated="not deprecated">
  16825. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16826. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16827. <exception name="IOException" type="java.io.IOException"/>
  16828. </method>
  16829. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  16830. abstract="false" native="false" synchronized="false"
  16831. static="false" final="true" visibility="public"
  16832. deprecated="not deprecated">
  16833. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16834. <param name="srcFile" type="java.io.File"/>
  16835. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16836. <param name="dstFile" type="java.io.File"/>
  16837. <exception name="IOException" type="java.io.IOException"/>
  16838. </method>
  16839. <method name="truncate" return="boolean"
  16840. abstract="false" native="false" synchronized="false"
  16841. static="false" final="false" visibility="public"
  16842. deprecated="not deprecated">
  16843. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16844. <param name="newLength" type="long"/>
  16845. <exception name="IOException" type="java.io.IOException"/>
  16846. </method>
  16847. <method name="delete" return="boolean"
  16848. abstract="false" native="false" synchronized="false"
  16849. static="false" final="false" visibility="public"
  16850. deprecated="not deprecated">
  16851. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16852. <param name="recursive" type="boolean"/>
  16853. <exception name="IOException" type="java.io.IOException"/>
  16854. <doc>
  16855. <![CDATA[Delete the given path to a file or directory.
  16856. @param p the path to delete
  16857. @param recursive to delete sub-directories
  16858. @return true if the file or directory and all its contents were deleted
  16859. @throws IOException if p is non-empty and recursive is false]]>
  16860. </doc>
  16861. </method>
  16862. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16863. abstract="false" native="false" synchronized="false"
  16864. static="false" final="false" visibility="public"
  16865. deprecated="not deprecated">
  16866. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16867. <exception name="IOException" type="java.io.IOException"/>
  16868. <doc>
  16869. <![CDATA[{@inheritDoc}
  16870. (<b>Note</b>: Returned list is not sorted in any given order,
  16871. due to reliance on Java's {@link File#list()} API.)]]>
  16872. </doc>
  16873. </method>
  16874. <method name="exists" return="boolean"
  16875. abstract="false" native="false" synchronized="false"
  16876. static="false" final="false" visibility="public"
  16877. deprecated="not deprecated">
  16878. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16879. <exception name="IOException" type="java.io.IOException"/>
  16880. </method>
  16881. <method name="mkOneDir" return="boolean"
  16882. abstract="false" native="false" synchronized="false"
  16883. static="false" final="false" visibility="protected"
  16884. deprecated="not deprecated">
  16885. <param name="p2f" type="java.io.File"/>
  16886. <exception name="IOException" type="java.io.IOException"/>
  16887. </method>
  16888. <method name="mkOneDirWithMode" return="boolean"
  16889. abstract="false" native="false" synchronized="false"
  16890. static="false" final="false" visibility="protected"
  16891. deprecated="not deprecated">
  16892. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16893. <param name="p2f" type="java.io.File"/>
  16894. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16895. <exception name="IOException" type="java.io.IOException"/>
  16896. </method>
  16897. <method name="mkdirs" return="boolean"
  16898. abstract="false" native="false" synchronized="false"
  16899. static="false" final="false" visibility="public"
  16900. deprecated="not deprecated">
  16901. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16902. <exception name="IOException" type="java.io.IOException"/>
  16903. <doc>
  16904. <![CDATA[Creates the specified directory hierarchy. Does not
  16905. treat existence as an error.]]>
  16906. </doc>
  16907. </method>
  16908. <method name="mkdirs" return="boolean"
  16909. abstract="false" native="false" synchronized="false"
  16910. static="false" final="false" visibility="public"
  16911. deprecated="not deprecated">
  16912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16913. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16914. <exception name="IOException" type="java.io.IOException"/>
  16915. </method>
  16916. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16917. abstract="false" native="false" synchronized="false"
  16918. static="false" final="false" visibility="public"
  16919. deprecated="not deprecated">
  16920. </method>
  16921. <method name="setWorkingDirectory"
  16922. abstract="false" native="false" synchronized="false"
  16923. static="false" final="false" visibility="public"
  16924. deprecated="not deprecated">
  16925. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  16926. <doc>
  16927. <![CDATA[Set the working directory to the given directory.]]>
  16928. </doc>
  16929. </method>
  16930. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16931. abstract="false" native="false" synchronized="false"
  16932. static="false" final="false" visibility="public"
  16933. deprecated="not deprecated">
  16934. </method>
  16935. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16936. abstract="false" native="false" synchronized="false"
  16937. static="false" final="false" visibility="protected"
  16938. deprecated="not deprecated">
  16939. </method>
  16940. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  16941. abstract="false" native="false" synchronized="false"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16945. <exception name="IOException" type="java.io.IOException"/>
  16946. </method>
  16947. <method name="moveFromLocalFile"
  16948. abstract="false" native="false" synchronized="false"
  16949. static="false" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16952. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16953. <exception name="IOException" type="java.io.IOException"/>
  16954. </method>
  16955. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  16956. abstract="false" native="false" synchronized="false"
  16957. static="false" final="false" visibility="public"
  16958. deprecated="not deprecated">
  16959. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  16960. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  16961. <exception name="IOException" type="java.io.IOException"/>
  16962. </method>
  16963. <method name="completeLocalOutput"
  16964. abstract="false" native="false" synchronized="false"
  16965. static="false" final="false" visibility="public"
  16966. deprecated="not deprecated">
  16967. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  16968. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  16969. <exception name="IOException" type="java.io.IOException"/>
  16970. </method>
  16971. <method name="close"
  16972. abstract="false" native="false" synchronized="false"
  16973. static="false" final="false" visibility="public"
  16974. deprecated="not deprecated">
  16975. <exception name="IOException" type="java.io.IOException"/>
  16976. </method>
  16977. <method name="toString" return="java.lang.String"
  16978. abstract="false" native="false" synchronized="false"
  16979. static="false" final="false" visibility="public"
  16980. deprecated="not deprecated">
  16981. </method>
  16982. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16983. abstract="false" native="false" synchronized="false"
  16984. static="false" final="false" visibility="public"
  16985. deprecated="not deprecated">
  16986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16987. <exception name="IOException" type="java.io.IOException"/>
  16988. </method>
  16989. <method name="setOwner"
  16990. abstract="false" native="false" synchronized="false"
  16991. static="false" final="false" visibility="public"
  16992. deprecated="not deprecated">
  16993. <param name="p" type="org.apache.hadoop.fs.Path"/>
  16994. <param name="username" type="java.lang.String"/>
  16995. <param name="groupname" type="java.lang.String"/>
  16996. <exception name="IOException" type="java.io.IOException"/>
  16997. <doc>
  16998. <![CDATA[Use the command chown to set owner.]]>
  16999. </doc>
  17000. </method>
  17001. <method name="setPermission"
  17002. abstract="false" native="false" synchronized="false"
  17003. static="false" final="false" visibility="public"
  17004. deprecated="not deprecated">
  17005. <param name="p" type="org.apache.hadoop.fs.Path"/>
  17006. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17007. <exception name="IOException" type="java.io.IOException"/>
  17008. <doc>
  17009. <![CDATA[Use the command chmod to set permission.]]>
  17010. </doc>
  17011. </method>
  17012. <method name="setTimes"
  17013. abstract="false" native="false" synchronized="false"
  17014. static="false" final="false" visibility="public"
  17015. deprecated="not deprecated">
  17016. <param name="p" type="org.apache.hadoop.fs.Path"/>
  17017. <param name="mtime" type="long"/>
  17018. <param name="atime" type="long"/>
  17019. <exception name="IOException" type="java.io.IOException"/>
  17020. <doc>
  17021. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  17022. the given valid times.
  17023. @param mtime the modification time to set (only if no less than zero).
  17024. @param atime the access time to set (only if no less than zero).
  17025. @throws IOException if setting the times fails.]]>
  17026. </doc>
  17027. </method>
  17028. <method name="createPathHandle" return="org.apache.hadoop.fs.PathHandle"
  17029. abstract="false" native="false" synchronized="false"
  17030. static="false" final="false" visibility="protected"
  17031. deprecated="not deprecated">
  17032. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  17033. <param name="opts" type="org.apache.hadoop.fs.Options.HandleOpt[]"/>
  17034. <doc>
  17035. <![CDATA[Hook to implement support for {@link PathHandle} operations.
  17036. @param stat Referent in the target FileSystem
  17037. @param opts Constraints that determine the validity of the
  17038. {@link PathHandle} reference.]]>
  17039. </doc>
  17040. </method>
  17041. <method name="supportsSymlinks" return="boolean"
  17042. abstract="false" native="false" synchronized="false"
  17043. static="false" final="false" visibility="public"
  17044. deprecated="not deprecated">
  17045. </method>
  17046. <method name="createSymlink"
  17047. abstract="false" native="false" synchronized="false"
  17048. static="false" final="false" visibility="public"
  17049. deprecated="not deprecated">
  17050. <param name="target" type="org.apache.hadoop.fs.Path"/>
  17051. <param name="link" type="org.apache.hadoop.fs.Path"/>
  17052. <param name="createParent" type="boolean"/>
  17053. <exception name="IOException" type="java.io.IOException"/>
  17054. </method>
  17055. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  17056. abstract="false" native="false" synchronized="false"
  17057. static="false" final="false" visibility="public"
  17058. deprecated="not deprecated">
  17059. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17060. <exception name="IOException" type="java.io.IOException"/>
  17061. <doc>
  17062. <![CDATA[Return a FileStatus representing the given path. If the path refers
  17063. to a symlink return a FileStatus representing the link rather than
  17064. the object the link refers to.]]>
  17065. </doc>
  17066. </method>
  17067. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  17068. abstract="false" native="false" synchronized="false"
  17069. static="false" final="false" visibility="public"
  17070. deprecated="not deprecated">
  17071. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17072. <exception name="IOException" type="java.io.IOException"/>
  17073. </method>
  17074. <method name="hasPathCapability" return="boolean"
  17075. abstract="false" native="false" synchronized="false"
  17076. static="false" final="false" visibility="public"
  17077. deprecated="not deprecated">
  17078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17079. <param name="capability" type="java.lang.String"/>
  17080. <exception name="IOException" type="java.io.IOException"/>
  17081. </method>
  17082. <doc>
  17083. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  17084. </doc>
  17085. </class>
  17086. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  17087. <!-- start class org.apache.hadoop.fs.ReadOption -->
  17088. <class name="ReadOption" extends="java.lang.Enum"
  17089. abstract="false"
  17090. static="false" final="true" visibility="public"
  17091. deprecated="not deprecated">
  17092. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  17093. abstract="false" native="false" synchronized="false"
  17094. static="true" final="false" visibility="public"
  17095. deprecated="not deprecated">
  17096. </method>
  17097. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  17098. abstract="false" native="false" synchronized="false"
  17099. static="true" final="false" visibility="public"
  17100. deprecated="not deprecated">
  17101. <param name="name" type="java.lang.String"/>
  17102. </method>
  17103. <doc>
  17104. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  17105. </doc>
  17106. </class>
  17107. <!-- end class org.apache.hadoop.fs.ReadOption -->
  17108. <!-- start interface org.apache.hadoop.fs.Seekable -->
  17109. <interface name="Seekable" abstract="true"
  17110. static="false" final="false" visibility="public"
  17111. deprecated="not deprecated">
  17112. <method name="seek"
  17113. abstract="true" native="false" synchronized="false"
  17114. static="false" final="false" visibility="public"
  17115. deprecated="not deprecated">
  17116. <param name="pos" type="long"/>
  17117. <exception name="IOException" type="java.io.IOException"/>
  17118. <doc>
  17119. <![CDATA[Seek to the given offset from the start of the file.
  17120. The next read() will be from that location. Can't
  17121. seek past the end of the file.
  17122. @param pos offset from the start of the file.
  17123. @throws IOException raised on errors performing I/O.]]>
  17124. </doc>
  17125. </method>
  17126. <method name="getPos" return="long"
  17127. abstract="true" native="false" synchronized="false"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. <exception name="IOException" type="java.io.IOException"/>
  17131. <doc>
  17132. <![CDATA[Return the current offset from the start of the file
  17133. @return offset from the start of the file.
  17134. @throws IOException raised on errors performing I/O.]]>
  17135. </doc>
  17136. </method>
  17137. <doc>
  17138. <![CDATA[Stream that permits seeking.]]>
  17139. </doc>
  17140. </interface>
  17141. <!-- end interface org.apache.hadoop.fs.Seekable -->
  17142. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  17143. <class name="StorageStatistics" extends="java.lang.Object"
  17144. abstract="true"
  17145. static="false" final="false" visibility="public"
  17146. deprecated="not deprecated">
  17147. <constructor name="StorageStatistics" type="java.lang.String"
  17148. static="false" final="false" visibility="public"
  17149. deprecated="not deprecated">
  17150. </constructor>
  17151. <method name="getName" return="java.lang.String"
  17152. abstract="false" native="false" synchronized="false"
  17153. static="false" final="false" visibility="public"
  17154. deprecated="not deprecated">
  17155. <doc>
  17156. <![CDATA[Get the name of this StorageStatistics object.
  17157. @return name of this StorageStatistics object]]>
  17158. </doc>
  17159. </method>
  17160. <method name="getScheme" return="java.lang.String"
  17161. abstract="false" native="false" synchronized="false"
  17162. static="false" final="false" visibility="public"
  17163. deprecated="not deprecated">
  17164. <doc>
  17165. <![CDATA[@return the associated file system scheme if this is scheme specific,
  17166. else return null.]]>
  17167. </doc>
  17168. </method>
  17169. <method name="getLongStatistics" return="java.util.Iterator"
  17170. abstract="true" native="false" synchronized="false"
  17171. static="false" final="false" visibility="public"
  17172. deprecated="not deprecated">
  17173. <doc>
  17174. <![CDATA[Get an iterator over all the currently tracked long statistics.
  17175. The values returned will depend on the type of FileSystem or FileContext
  17176. object. The values do not necessarily reflect a snapshot in time.
  17177. @return LongStatistic Iterator.]]>
  17178. </doc>
  17179. </method>
  17180. <method name="getLong" return="java.lang.Long"
  17181. abstract="true" native="false" synchronized="false"
  17182. static="false" final="false" visibility="public"
  17183. deprecated="not deprecated">
  17184. <param name="key" type="java.lang.String"/>
  17185. <doc>
  17186. <![CDATA[Get the value of a statistic.
  17187. @param key key.
  17188. @return null if the statistic is not being tracked or is not a
  17189. long statistic. The value of the statistic, otherwise.]]>
  17190. </doc>
  17191. </method>
  17192. <method name="isTracked" return="boolean"
  17193. abstract="true" native="false" synchronized="false"
  17194. static="false" final="false" visibility="public"
  17195. deprecated="not deprecated">
  17196. <param name="key" type="java.lang.String"/>
  17197. <doc>
  17198. <![CDATA[Return true if a statistic is being tracked.
  17199. @param key key.
  17200. @return True only if the statistic is being tracked.]]>
  17201. </doc>
  17202. </method>
  17203. <method name="reset"
  17204. abstract="true" native="false" synchronized="false"
  17205. static="false" final="false" visibility="public"
  17206. deprecated="not deprecated">
  17207. <doc>
  17208. <![CDATA[Reset all the statistic data.]]>
  17209. </doc>
  17210. </method>
  17211. <doc>
  17212. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  17213. instance.]]>
  17214. </doc>
  17215. </class>
  17216. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  17217. <!-- start class org.apache.hadoop.fs.StorageType -->
  17218. <class name="StorageType" extends="java.lang.Enum"
  17219. abstract="false"
  17220. static="false" final="true" visibility="public"
  17221. deprecated="not deprecated">
  17222. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  17223. abstract="false" native="false" synchronized="false"
  17224. static="true" final="false" visibility="public"
  17225. deprecated="not deprecated">
  17226. </method>
  17227. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  17228. abstract="false" native="false" synchronized="false"
  17229. static="true" final="false" visibility="public"
  17230. deprecated="not deprecated">
  17231. <param name="name" type="java.lang.String"/>
  17232. </method>
  17233. <method name="isTransient" return="boolean"
  17234. abstract="false" native="false" synchronized="false"
  17235. static="false" final="false" visibility="public"
  17236. deprecated="not deprecated">
  17237. </method>
  17238. <method name="supportTypeQuota" return="boolean"
  17239. abstract="false" native="false" synchronized="false"
  17240. static="false" final="false" visibility="public"
  17241. deprecated="not deprecated">
  17242. </method>
  17243. <method name="isMovable" return="boolean"
  17244. abstract="false" native="false" synchronized="false"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. </method>
  17248. <method name="asList" return="java.util.List"
  17249. abstract="false" native="false" synchronized="false"
  17250. static="true" final="false" visibility="public"
  17251. deprecated="not deprecated">
  17252. </method>
  17253. <method name="getMovableTypes" return="java.util.List"
  17254. abstract="false" native="false" synchronized="false"
  17255. static="true" final="false" visibility="public"
  17256. deprecated="not deprecated">
  17257. </method>
  17258. <method name="getTypesSupportingQuota" return="java.util.List"
  17259. abstract="false" native="false" synchronized="false"
  17260. static="true" final="false" visibility="public"
  17261. deprecated="not deprecated">
  17262. </method>
  17263. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  17264. abstract="false" native="false" synchronized="false"
  17265. static="true" final="false" visibility="public"
  17266. deprecated="not deprecated">
  17267. <param name="i" type="int"/>
  17268. </method>
  17269. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  17270. abstract="false" native="false" synchronized="false"
  17271. static="true" final="false" visibility="public"
  17272. deprecated="not deprecated">
  17273. <param name="s" type="java.lang.String"/>
  17274. </method>
  17275. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  17276. transient="false" volatile="false"
  17277. static="true" final="true" visibility="public"
  17278. deprecated="not deprecated">
  17279. </field>
  17280. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  17281. transient="false" volatile="false"
  17282. static="true" final="true" visibility="public"
  17283. deprecated="not deprecated">
  17284. </field>
  17285. <doc>
  17286. <![CDATA[Defines the types of supported storage media. The default storage
  17287. medium is assumed to be DISK.]]>
  17288. </doc>
  17289. </class>
  17290. <!-- end class org.apache.hadoop.fs.StorageType -->
  17291. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  17292. <interface name="StreamCapabilities" abstract="true"
  17293. static="false" final="false" visibility="public"
  17294. deprecated="not deprecated">
  17295. <method name="hasCapability" return="boolean"
  17296. abstract="true" native="false" synchronized="false"
  17297. static="false" final="false" visibility="public"
  17298. deprecated="not deprecated">
  17299. <param name="capability" type="java.lang.String"/>
  17300. <doc>
  17301. <![CDATA[Query the stream for a specific capability.
  17302. @param capability string to query the stream support for.
  17303. @return True if the stream supports capability.]]>
  17304. </doc>
  17305. </method>
  17306. <field name="HFLUSH" type="java.lang.String"
  17307. transient="false" volatile="false"
  17308. static="true" final="true" visibility="public"
  17309. deprecated="not deprecated">
  17310. <doc>
  17311. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.
  17312. Use the {@link #HSYNC} probe to check for the support of Syncable;
  17313. it's that presence of {@code hsync()} which matters.]]>
  17314. </doc>
  17315. </field>
  17316. <field name="HSYNC" type="java.lang.String"
  17317. transient="false" volatile="false"
  17318. static="true" final="true" visibility="public"
  17319. deprecated="not deprecated">
  17320. <doc>
  17321. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  17322. </doc>
  17323. </field>
  17324. <field name="READAHEAD" type="java.lang.String"
  17325. transient="false" volatile="false"
  17326. static="true" final="true" visibility="public"
  17327. deprecated="not deprecated">
  17328. <doc>
  17329. <![CDATA[Stream setReadahead capability implemented by
  17330. {@link CanSetReadahead#setReadahead(Long)}.]]>
  17331. </doc>
  17332. </field>
  17333. <field name="DROPBEHIND" type="java.lang.String"
  17334. transient="false" volatile="false"
  17335. static="true" final="true" visibility="public"
  17336. deprecated="not deprecated">
  17337. <doc>
  17338. <![CDATA[Stream setDropBehind capability implemented by
  17339. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  17340. </doc>
  17341. </field>
  17342. <field name="UNBUFFER" type="java.lang.String"
  17343. transient="false" volatile="false"
  17344. static="true" final="true" visibility="public"
  17345. deprecated="not deprecated">
  17346. <doc>
  17347. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  17348. </doc>
  17349. </field>
  17350. <field name="READBYTEBUFFER" type="java.lang.String"
  17351. transient="false" volatile="false"
  17352. static="true" final="true" visibility="public"
  17353. deprecated="not deprecated">
  17354. <doc>
  17355. <![CDATA[Stream read(ByteBuffer) capability implemented by
  17356. {@link ByteBufferReadable#read(java.nio.ByteBuffer)}.]]>
  17357. </doc>
  17358. </field>
  17359. <field name="PREADBYTEBUFFER" type="java.lang.String"
  17360. transient="false" volatile="false"
  17361. static="true" final="true" visibility="public"
  17362. deprecated="not deprecated">
  17363. <doc>
  17364. <![CDATA[Stream read(long, ByteBuffer) capability implemented by
  17365. {@link ByteBufferPositionedReadable#read(long, java.nio.ByteBuffer)}.]]>
  17366. </doc>
  17367. </field>
  17368. <field name="IOSTATISTICS" type="java.lang.String"
  17369. transient="false" volatile="false"
  17370. static="true" final="true" visibility="public"
  17371. deprecated="not deprecated">
  17372. <doc>
  17373. <![CDATA[IOStatisticsSource API.]]>
  17374. </doc>
  17375. </field>
  17376. <field name="VECTOREDIO" type="java.lang.String"
  17377. transient="false" volatile="false"
  17378. static="true" final="true" visibility="public"
  17379. deprecated="not deprecated">
  17380. <doc>
  17381. <![CDATA[Support for vectored IO api.
  17382. See {@code PositionedReadable#readVectored(List, IntFunction)}.]]>
  17383. </doc>
  17384. </field>
  17385. <field name="ABORTABLE_STREAM" type="java.lang.String"
  17386. transient="false" volatile="false"
  17387. static="true" final="true" visibility="public"
  17388. deprecated="not deprecated">
  17389. <doc>
  17390. <![CDATA[Stream abort() capability implemented by {@link Abortable#abort()}.
  17391. This matches the Path Capability
  17392. {@link CommonPathCapabilities#ABORTABLE_STREAM}.]]>
  17393. </doc>
  17394. </field>
  17395. <field name="IOSTATISTICS_CONTEXT" type="java.lang.String"
  17396. transient="false" volatile="false"
  17397. static="true" final="true" visibility="public"
  17398. deprecated="not deprecated">
  17399. <doc>
  17400. <![CDATA[Streams that support IOStatistics context and capture thread-level
  17401. IOStatistics.]]>
  17402. </doc>
  17403. </field>
  17404. <doc>
  17405. <![CDATA[Interface to query streams for supported capabilities.
  17406. Capability strings must be in lower case.
  17407. Constant strings are chosen over enums in order to allow other file systems
  17408. to define their own capabilities.]]>
  17409. </doc>
  17410. </interface>
  17411. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  17412. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  17413. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  17414. abstract="false"
  17415. static="false" final="false" visibility="public"
  17416. deprecated="not deprecated">
  17417. <constructor name="StreamCapabilitiesPolicy"
  17418. static="false" final="false" visibility="public"
  17419. deprecated="not deprecated">
  17420. </constructor>
  17421. <method name="unbuffer"
  17422. abstract="false" native="false" synchronized="false"
  17423. static="true" final="false" visibility="public"
  17424. deprecated="not deprecated">
  17425. <param name="in" type="java.io.InputStream"/>
  17426. <doc>
  17427. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  17428. @param in the input stream]]>
  17429. </doc>
  17430. </method>
  17431. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  17432. transient="false" volatile="false"
  17433. static="true" final="true" visibility="public"
  17434. deprecated="not deprecated">
  17435. </field>
  17436. <doc>
  17437. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  17438. </doc>
  17439. </class>
  17440. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  17441. <!-- start interface org.apache.hadoop.fs.Syncable -->
  17442. <interface name="Syncable" abstract="true"
  17443. static="false" final="false" visibility="public"
  17444. deprecated="not deprecated">
  17445. <method name="hflush"
  17446. abstract="true" native="false" synchronized="false"
  17447. static="false" final="false" visibility="public"
  17448. deprecated="not deprecated">
  17449. <exception name="IOException" type="java.io.IOException"/>
  17450. <doc>
  17451. <![CDATA[Flush out the data in client's user buffer. After the return of
  17452. this call, new readers will see the data.
  17453. @throws IOException if any error occurs]]>
  17454. </doc>
  17455. </method>
  17456. <method name="hsync"
  17457. abstract="true" native="false" synchronized="false"
  17458. static="false" final="false" visibility="public"
  17459. deprecated="not deprecated">
  17460. <exception name="IOException" type="java.io.IOException"/>
  17461. <doc>
  17462. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  17463. all the way to the disk device (but the disk may have it in its cache).
  17464. @throws IOException if error occurs]]>
  17465. </doc>
  17466. </method>
  17467. <doc>
  17468. <![CDATA[This is the interface for flush/sync operations.
  17469. Consult the Hadoop filesystem specification for the definition of the
  17470. semantics of these operations.]]>
  17471. </doc>
  17472. </interface>
  17473. <!-- end interface org.apache.hadoop.fs.Syncable -->
  17474. <!-- start class org.apache.hadoop.fs.Trash -->
  17475. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  17476. abstract="false"
  17477. static="false" final="false" visibility="public"
  17478. deprecated="not deprecated">
  17479. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  17480. static="false" final="false" visibility="public"
  17481. deprecated="not deprecated">
  17482. <exception name="IOException" type="java.io.IOException"/>
  17483. <doc>
  17484. <![CDATA[Construct a trash can accessor.
  17485. @param conf a Configuration
  17486. @throws IOException raised on errors performing I/O.]]>
  17487. </doc>
  17488. </constructor>
  17489. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  17490. static="false" final="false" visibility="public"
  17491. deprecated="not deprecated">
  17492. <exception name="IOException" type="java.io.IOException"/>
  17493. <doc>
  17494. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  17495. @param fs the FileSystem
  17496. @param conf a Configuration
  17497. @throws IOException raised on errors performing I/O.]]>
  17498. </doc>
  17499. </constructor>
  17500. <method name="moveToAppropriateTrash" return="boolean"
  17501. abstract="false" native="false" synchronized="false"
  17502. static="true" final="false" visibility="public"
  17503. deprecated="not deprecated">
  17504. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17505. <param name="p" type="org.apache.hadoop.fs.Path"/>
  17506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17507. <exception name="IOException" type="java.io.IOException"/>
  17508. <doc>
  17509. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  17510. trashbin in the actual volume of the path p being deleted.
  17511. Hence we get the file system of the fully-qualified resolved-path and
  17512. then move the path p to the trashbin in that volume,
  17513. @param fs - the filesystem of path p
  17514. @param p - the path being deleted - to be moved to trash
  17515. @param conf - configuration
  17516. @return false if the item is already in the trash or trash is disabled
  17517. @throws IOException on error]]>
  17518. </doc>
  17519. </method>
  17520. <method name="isEnabled" return="boolean"
  17521. abstract="false" native="false" synchronized="false"
  17522. static="false" final="false" visibility="public"
  17523. deprecated="not deprecated">
  17524. <doc>
  17525. <![CDATA[Returns whether the trash is enabled for this filesystem.
  17526. @return return if isEnabled true,not false.]]>
  17527. </doc>
  17528. </method>
  17529. <method name="moveToTrash" return="boolean"
  17530. abstract="false" native="false" synchronized="false"
  17531. static="false" final="false" visibility="public"
  17532. deprecated="not deprecated">
  17533. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17534. <exception name="IOException" type="java.io.IOException"/>
  17535. <doc>
  17536. <![CDATA[Move a file or directory to the current trash directory.
  17537. @param path the path.
  17538. @return false if the item is already in the trash or trash is disabled
  17539. @throws IOException raised on errors performing I/O.]]>
  17540. </doc>
  17541. </method>
  17542. <method name="checkpoint"
  17543. abstract="false" native="false" synchronized="false"
  17544. static="false" final="false" visibility="public"
  17545. deprecated="not deprecated">
  17546. <exception name="IOException" type="java.io.IOException"/>
  17547. <doc>
  17548. <![CDATA[Create a trash checkpoint.
  17549. @throws IOException raised on errors performing I/O.]]>
  17550. </doc>
  17551. </method>
  17552. <method name="expunge"
  17553. abstract="false" native="false" synchronized="false"
  17554. static="false" final="false" visibility="public"
  17555. deprecated="not deprecated">
  17556. <exception name="IOException" type="java.io.IOException"/>
  17557. <doc>
  17558. <![CDATA[Delete old checkpoint(s).
  17559. @throws IOException raised on errors performing I/O.]]>
  17560. </doc>
  17561. </method>
  17562. <method name="expungeImmediately"
  17563. abstract="false" native="false" synchronized="false"
  17564. static="false" final="false" visibility="public"
  17565. deprecated="not deprecated">
  17566. <exception name="IOException" type="java.io.IOException"/>
  17567. <doc>
  17568. <![CDATA[Delete all trash immediately.
  17569. @throws IOException raised on errors performing I/O.]]>
  17570. </doc>
  17571. </method>
  17572. <method name="getEmptier" return="java.lang.Runnable"
  17573. abstract="false" native="false" synchronized="false"
  17574. static="false" final="false" visibility="public"
  17575. deprecated="not deprecated">
  17576. <exception name="IOException" type="java.io.IOException"/>
  17577. <doc>
  17578. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  17579. users, intended to be run by the superuser.
  17580. @throws IOException on raised on errors performing I/O.
  17581. @return Runnable.]]>
  17582. </doc>
  17583. </method>
  17584. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  17585. abstract="false" native="false" synchronized="false"
  17586. static="false" final="false" visibility="public"
  17587. deprecated="not deprecated">
  17588. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17589. <exception name="IOException" type="java.io.IOException"/>
  17590. </method>
  17591. <doc>
  17592. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  17593. See the implementation of the configured TrashPolicy for more
  17594. details.]]>
  17595. </doc>
  17596. </class>
  17597. <!-- end class org.apache.hadoop.fs.Trash -->
  17598. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  17599. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  17600. abstract="true"
  17601. static="false" final="false" visibility="public"
  17602. deprecated="not deprecated">
  17603. <constructor name="TrashPolicy"
  17604. static="false" final="false" visibility="public"
  17605. deprecated="not deprecated">
  17606. </constructor>
  17607. <method name="initialize"
  17608. abstract="true" native="false" synchronized="false"
  17609. static="false" final="false" visibility="public"
  17610. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  17611. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17612. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17613. <param name="home" type="org.apache.hadoop.fs.Path"/>
  17614. <doc>
  17615. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  17616. implementations.
  17617. @param conf the configuration to be used
  17618. @param fs the filesystem to be used
  17619. @param home the home directory
  17620. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  17621. </doc>
  17622. </method>
  17623. <method name="initialize"
  17624. abstract="false" native="false" synchronized="false"
  17625. static="false" final="false" visibility="public"
  17626. deprecated="not deprecated">
  17627. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17628. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17629. <doc>
  17630. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  17631. implementations. Different from initialize(conf, fs, home), this one does
  17632. not assume trash always under /user/$USER due to HDFS encryption zone.
  17633. @param conf the configuration to be used
  17634. @param fs the filesystem to be used]]>
  17635. </doc>
  17636. </method>
  17637. <method name="isEnabled" return="boolean"
  17638. abstract="true" native="false" synchronized="false"
  17639. static="false" final="false" visibility="public"
  17640. deprecated="not deprecated">
  17641. <doc>
  17642. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.
  17643. @return if isEnabled true,not false.]]>
  17644. </doc>
  17645. </method>
  17646. <method name="moveToTrash" return="boolean"
  17647. abstract="true" native="false" synchronized="false"
  17648. static="false" final="false" visibility="public"
  17649. deprecated="not deprecated">
  17650. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17651. <exception name="IOException" type="java.io.IOException"/>
  17652. <doc>
  17653. <![CDATA[Move a file or directory to the current trash directory.
  17654. @param path the path.
  17655. @return false if the item is already in the trash or trash is disabled
  17656. @throws IOException raised on errors performing I/O.]]>
  17657. </doc>
  17658. </method>
  17659. <method name="createCheckpoint"
  17660. abstract="true" native="false" synchronized="false"
  17661. static="false" final="false" visibility="public"
  17662. deprecated="not deprecated">
  17663. <exception name="IOException" type="java.io.IOException"/>
  17664. <doc>
  17665. <![CDATA[Create a trash checkpoint.
  17666. @throws IOException raised on errors performing I/O.]]>
  17667. </doc>
  17668. </method>
  17669. <method name="deleteCheckpoint"
  17670. abstract="true" native="false" synchronized="false"
  17671. static="false" final="false" visibility="public"
  17672. deprecated="not deprecated">
  17673. <exception name="IOException" type="java.io.IOException"/>
  17674. <doc>
  17675. <![CDATA[Delete old trash checkpoint(s).
  17676. @throws IOException raised on errors performing I/O.]]>
  17677. </doc>
  17678. </method>
  17679. <method name="deleteCheckpointsImmediately"
  17680. abstract="true" native="false" synchronized="false"
  17681. static="false" final="false" visibility="public"
  17682. deprecated="not deprecated">
  17683. <exception name="IOException" type="java.io.IOException"/>
  17684. <doc>
  17685. <![CDATA[Delete all checkpoints immediately, ie empty trash.
  17686. @throws IOException raised on errors performing I/O.]]>
  17687. </doc>
  17688. </method>
  17689. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  17690. abstract="true" native="false" synchronized="false"
  17691. static="false" final="false" visibility="public"
  17692. deprecated="not deprecated">
  17693. <doc>
  17694. <![CDATA[Get the current working directory of the Trash Policy
  17695. This API does not work with files deleted from encryption zone when HDFS
  17696. data encryption at rest feature is enabled as rename file between
  17697. encryption zones or encryption zone and non-encryption zone is not allowed.
  17698. The caller is recommend to use the new API
  17699. TrashPolicy#getCurrentTrashDir(Path path).
  17700. It returns the trash location correctly for the path specified no matter
  17701. the path is in encryption zone or not.
  17702. @return the path.]]>
  17703. </doc>
  17704. </method>
  17705. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  17706. abstract="false" native="false" synchronized="false"
  17707. static="false" final="false" visibility="public"
  17708. deprecated="not deprecated">
  17709. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17710. <exception name="IOException" type="java.io.IOException"/>
  17711. <doc>
  17712. <![CDATA[Get the current trash directory for path specified based on the Trash
  17713. Policy
  17714. @param path path to be deleted
  17715. @return current trash directory for the path to be deleted
  17716. @throws IOException raised on errors performing I/O.]]>
  17717. </doc>
  17718. </method>
  17719. <method name="getEmptier" return="java.lang.Runnable"
  17720. abstract="true" native="false" synchronized="false"
  17721. static="false" final="false" visibility="public"
  17722. deprecated="not deprecated">
  17723. <exception name="IOException" type="java.io.IOException"/>
  17724. <doc>
  17725. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  17726. users, intended to be run by the superuser.
  17727. @throws IOException raised on errors performing I/O.
  17728. @return Runnable.]]>
  17729. </doc>
  17730. </method>
  17731. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  17732. abstract="false" native="false" synchronized="false"
  17733. static="true" final="false" visibility="public"
  17734. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  17735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17736. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17737. <param name="home" type="org.apache.hadoop.fs.Path"/>
  17738. <doc>
  17739. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  17740. of the configuration parameter fs.trash.classname.
  17741. @param conf the configuration to be used
  17742. @param fs the file system to be used
  17743. @param home the home directory
  17744. @return an instance of TrashPolicy
  17745. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  17746. </doc>
  17747. </method>
  17748. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  17749. abstract="false" native="false" synchronized="false"
  17750. static="true" final="false" visibility="public"
  17751. deprecated="not deprecated">
  17752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17753. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17754. <doc>
  17755. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  17756. of the configuration parameter fs.trash.classname.
  17757. @param conf the configuration to be used
  17758. @param fs the file system to be used
  17759. @return an instance of TrashPolicy]]>
  17760. </doc>
  17761. </method>
  17762. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  17763. transient="false" volatile="false"
  17764. static="false" final="false" visibility="protected"
  17765. deprecated="not deprecated">
  17766. </field>
  17767. <field name="trash" type="org.apache.hadoop.fs.Path"
  17768. transient="false" volatile="false"
  17769. static="false" final="false" visibility="protected"
  17770. deprecated="not deprecated">
  17771. </field>
  17772. <field name="deletionInterval" type="long"
  17773. transient="false" volatile="false"
  17774. static="false" final="false" visibility="protected"
  17775. deprecated="not deprecated">
  17776. </field>
  17777. <doc>
  17778. <![CDATA[This interface is used for implementing different Trash policies.
  17779. Provides factory method to create instances of the configured Trash policy.]]>
  17780. </doc>
  17781. </class>
  17782. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  17783. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  17784. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  17785. abstract="false"
  17786. static="false" final="false" visibility="public"
  17787. deprecated="not deprecated">
  17788. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  17789. static="false" final="false" visibility="public"
  17790. deprecated="not deprecated">
  17791. <doc>
  17792. <![CDATA[Constructs exception with the specified detail message.
  17793. @param message exception message.]]>
  17794. </doc>
  17795. </constructor>
  17796. <doc>
  17797. <![CDATA[File system for a given file system name/scheme is not supported]]>
  17798. </doc>
  17799. </class>
  17800. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  17801. <!-- start class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  17802. <class name="UnsupportedMultipartUploaderException" extends="java.io.IOException"
  17803. abstract="false"
  17804. static="false" final="false" visibility="public"
  17805. deprecated="not deprecated">
  17806. <constructor name="UnsupportedMultipartUploaderException" type="java.lang.String"
  17807. static="false" final="false" visibility="public"
  17808. deprecated="not deprecated">
  17809. <doc>
  17810. <![CDATA[Constructs exception with the specified detail message.
  17811. @param message exception message.]]>
  17812. </doc>
  17813. </constructor>
  17814. <doc>
  17815. <![CDATA[MultipartUploader for a given file system name/scheme is not supported.]]>
  17816. </doc>
  17817. </class>
  17818. <!-- end class org.apache.hadoop.fs.UnsupportedMultipartUploaderException -->
  17819. <!-- start interface org.apache.hadoop.fs.UploadHandle -->
  17820. <interface name="UploadHandle" abstract="true"
  17821. static="false" final="false" visibility="public"
  17822. deprecated="not deprecated">
  17823. <implements name="java.io.Serializable"/>
  17824. <method name="toByteArray" return="byte[]"
  17825. abstract="false" native="false" synchronized="false"
  17826. static="false" final="false" visibility="public"
  17827. deprecated="not deprecated">
  17828. <doc>
  17829. <![CDATA[@return Serialized from in bytes.]]>
  17830. </doc>
  17831. </method>
  17832. <method name="bytes" return="java.nio.ByteBuffer"
  17833. abstract="true" native="false" synchronized="false"
  17834. static="false" final="false" visibility="public"
  17835. deprecated="not deprecated">
  17836. </method>
  17837. <method name="equals" return="boolean"
  17838. abstract="true" native="false" synchronized="false"
  17839. static="false" final="false" visibility="public"
  17840. deprecated="not deprecated">
  17841. <param name="other" type="java.lang.Object"/>
  17842. </method>
  17843. <doc>
  17844. <![CDATA[Opaque, serializable reference to an uploadId for multipart uploads.]]>
  17845. </doc>
  17846. </interface>
  17847. <!-- end interface org.apache.hadoop.fs.UploadHandle -->
  17848. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  17849. <class name="XAttrCodec" extends="java.lang.Enum"
  17850. abstract="false"
  17851. static="false" final="true" visibility="public"
  17852. deprecated="not deprecated">
  17853. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  17854. abstract="false" native="false" synchronized="false"
  17855. static="true" final="false" visibility="public"
  17856. deprecated="not deprecated">
  17857. </method>
  17858. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  17859. abstract="false" native="false" synchronized="false"
  17860. static="true" final="false" visibility="public"
  17861. deprecated="not deprecated">
  17862. <param name="name" type="java.lang.String"/>
  17863. </method>
  17864. <method name="decodeValue" return="byte[]"
  17865. abstract="false" native="false" synchronized="false"
  17866. static="true" final="false" visibility="public"
  17867. deprecated="not deprecated">
  17868. <param name="value" type="java.lang.String"/>
  17869. <exception name="IOException" type="java.io.IOException"/>
  17870. <doc>
  17871. <![CDATA[Decode string representation of a value and check whether it's
  17872. encoded. If the given string begins with 0x or 0X, it expresses
  17873. a hexadecimal number. If the given string begins with 0s or 0S,
  17874. base64 encoding is expected. If the given string is enclosed in
  17875. double quotes, the inner string is treated as text. Otherwise
  17876. the given string is treated as text.
  17877. @param value string representation of the value.
  17878. @return byte[] the value
  17879. @throws IOException raised on errors performing I/O.]]>
  17880. </doc>
  17881. </method>
  17882. <method name="encodeValue" return="java.lang.String"
  17883. abstract="false" native="false" synchronized="false"
  17884. static="true" final="false" visibility="public"
  17885. deprecated="not deprecated">
  17886. <param name="value" type="byte[]"/>
  17887. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  17888. <exception name="IOException" type="java.io.IOException"/>
  17889. <doc>
  17890. <![CDATA[Encode byte[] value to string representation with encoding.
  17891. Values encoded as text strings are enclosed in double quotes (\"),
  17892. while strings encoded as hexadecimal and base64 are prefixed with
  17893. 0x and 0s, respectively.
  17894. @param value byte[] value
  17895. @param encoding encoding.
  17896. @return String string representation of value
  17897. @throws IOException raised on errors performing I/O.]]>
  17898. </doc>
  17899. </method>
  17900. <doc>
  17901. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  17902. covert byte[] to some kind of string representation or convert back.
  17903. String representation is convenient for display and input. For example
  17904. display in screen as shell response and json response, input as http
  17905. or shell parameter.]]>
  17906. </doc>
  17907. </class>
  17908. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  17909. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  17910. <class name="XAttrSetFlag" extends="java.lang.Enum"
  17911. abstract="false"
  17912. static="false" final="true" visibility="public"
  17913. deprecated="not deprecated">
  17914. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  17915. abstract="false" native="false" synchronized="false"
  17916. static="true" final="false" visibility="public"
  17917. deprecated="not deprecated">
  17918. </method>
  17919. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  17920. abstract="false" native="false" synchronized="false"
  17921. static="true" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <param name="name" type="java.lang.String"/>
  17924. </method>
  17925. <method name="validate"
  17926. abstract="false" native="false" synchronized="false"
  17927. static="true" final="false" visibility="public"
  17928. deprecated="not deprecated">
  17929. <param name="xAttrName" type="java.lang.String"/>
  17930. <param name="xAttrExists" type="boolean"/>
  17931. <param name="flag" type="java.util.EnumSet"/>
  17932. <exception name="IOException" type="java.io.IOException"/>
  17933. </method>
  17934. </class>
  17935. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  17936. <doc>
  17937. <![CDATA[An abstract file system API.]]>
  17938. </doc>
  17939. </package>
  17940. <package name="org.apache.hadoop.fs.audit">
  17941. <!-- start class org.apache.hadoop.fs.audit.CommonAuditContext -->
  17942. <class name="CommonAuditContext" extends="java.lang.Object"
  17943. abstract="false"
  17944. static="false" final="true" visibility="public"
  17945. deprecated="not deprecated">
  17946. <method name="put" return="java.util.function.Supplier"
  17947. abstract="false" native="false" synchronized="false"
  17948. static="false" final="false" visibility="public"
  17949. deprecated="not deprecated">
  17950. <param name="key" type="java.lang.String"/>
  17951. <param name="value" type="java.lang.String"/>
  17952. <doc>
  17953. <![CDATA[Put a context entry.
  17954. @param key key
  17955. @param value new value., If null, triggers removal.
  17956. @return old value or null]]>
  17957. </doc>
  17958. </method>
  17959. <method name="put" return="java.util.function.Supplier"
  17960. abstract="false" native="false" synchronized="false"
  17961. static="false" final="false" visibility="public"
  17962. deprecated="not deprecated">
  17963. <param name="key" type="java.lang.String"/>
  17964. <param name="value" type="java.util.function.Supplier"/>
  17965. <doc>
  17966. <![CDATA[Put a context entry dynamically evaluated on demand.
  17967. Important: as these supplier methods are long-lived,
  17968. the supplier function <i>MUST NOT</i> be part of/refer to
  17969. any object instance of significant memory size.
  17970. Applications SHOULD remove references when they are
  17971. no longer needed.
  17972. When logged at TRACE, prints the key and stack trace of the caller,
  17973. to allow for debugging of any problems.
  17974. @param key key
  17975. @param value new value
  17976. @return old value or null]]>
  17977. </doc>
  17978. </method>
  17979. <method name="remove"
  17980. abstract="false" native="false" synchronized="false"
  17981. static="false" final="false" visibility="public"
  17982. deprecated="not deprecated">
  17983. <param name="key" type="java.lang.String"/>
  17984. <doc>
  17985. <![CDATA[Remove a context entry.
  17986. @param key key]]>
  17987. </doc>
  17988. </method>
  17989. <method name="get" return="java.lang.String"
  17990. abstract="false" native="false" synchronized="false"
  17991. static="false" final="false" visibility="public"
  17992. deprecated="not deprecated">
  17993. <param name="key" type="java.lang.String"/>
  17994. <doc>
  17995. <![CDATA[Get a context entry.
  17996. @param key key
  17997. @return value or null]]>
  17998. </doc>
  17999. </method>
  18000. <method name="reset"
  18001. abstract="false" native="false" synchronized="false"
  18002. static="false" final="false" visibility="public"
  18003. deprecated="not deprecated">
  18004. <doc>
  18005. <![CDATA[Rest the context; will set the standard options again.
  18006. Primarily for testing.]]>
  18007. </doc>
  18008. </method>
  18009. <method name="containsKey" return="boolean"
  18010. abstract="false" native="false" synchronized="false"
  18011. static="false" final="false" visibility="public"
  18012. deprecated="not deprecated">
  18013. <param name="key" type="java.lang.String"/>
  18014. <doc>
  18015. <![CDATA[Does the context contain a specific key?
  18016. @param key key
  18017. @return true if it is in the context.]]>
  18018. </doc>
  18019. </method>
  18020. <method name="currentAuditContext" return="org.apache.hadoop.fs.audit.CommonAuditContext"
  18021. abstract="false" native="false" synchronized="false"
  18022. static="true" final="false" visibility="public"
  18023. deprecated="not deprecated">
  18024. <doc>
  18025. <![CDATA[Get the current common audit context. Thread local.
  18026. @return the audit context of this thread.]]>
  18027. </doc>
  18028. </method>
  18029. <method name="currentThreadID" return="java.lang.String"
  18030. abstract="false" native="false" synchronized="false"
  18031. static="true" final="false" visibility="public"
  18032. deprecated="not deprecated">
  18033. <doc>
  18034. <![CDATA[A thread ID which is unique for this process and shared across all
  18035. S3A clients on the same thread, even those using different FS instances.
  18036. @return a thread ID for reporting.]]>
  18037. </doc>
  18038. </method>
  18039. <method name="getEvaluatedEntries" return="java.util.Map"
  18040. abstract="false" native="false" synchronized="false"
  18041. static="false" final="false" visibility="public"
  18042. deprecated="not deprecated">
  18043. <doc>
  18044. <![CDATA[Get the evaluated operations.
  18045. This is the map unique to this context.
  18046. @return the operations map.]]>
  18047. </doc>
  18048. </method>
  18049. <method name="setGlobalContextEntry"
  18050. abstract="false" native="false" synchronized="false"
  18051. static="true" final="false" visibility="public"
  18052. deprecated="not deprecated">
  18053. <param name="key" type="java.lang.String"/>
  18054. <param name="value" type="java.lang.String"/>
  18055. <doc>
  18056. <![CDATA[Set a global entry.
  18057. @param key key
  18058. @param value value]]>
  18059. </doc>
  18060. </method>
  18061. <method name="getGlobalContextEntry" return="java.lang.String"
  18062. abstract="false" native="false" synchronized="false"
  18063. static="true" final="false" visibility="public"
  18064. deprecated="not deprecated">
  18065. <param name="key" type="java.lang.String"/>
  18066. <doc>
  18067. <![CDATA[Get a global entry.
  18068. @param key key
  18069. @return value or null]]>
  18070. </doc>
  18071. </method>
  18072. <method name="removeGlobalContextEntry"
  18073. abstract="false" native="false" synchronized="false"
  18074. static="true" final="false" visibility="public"
  18075. deprecated="not deprecated">
  18076. <param name="key" type="java.lang.String"/>
  18077. <doc>
  18078. <![CDATA[Remove a global entry.
  18079. @param key key to clear.]]>
  18080. </doc>
  18081. </method>
  18082. <method name="noteEntryPoint"
  18083. abstract="false" native="false" synchronized="false"
  18084. static="true" final="false" visibility="public"
  18085. deprecated="not deprecated">
  18086. <param name="tool" type="java.lang.Object"/>
  18087. <doc>
  18088. <![CDATA[Add the entry point as a context entry with the key
  18089. {@link AuditConstants#PARAM_COMMAND}
  18090. if it has not already been recorded.
  18091. This is called via ToolRunner but may be used at any
  18092. other entry point.
  18093. @param tool object loaded/being launched.]]>
  18094. </doc>
  18095. </method>
  18096. <method name="getGlobalContextEntries" return="java.lang.Iterable"
  18097. abstract="false" native="false" synchronized="false"
  18098. static="true" final="false" visibility="public"
  18099. deprecated="not deprecated">
  18100. <doc>
  18101. <![CDATA[Get an iterator over the global entries.
  18102. Thread safe.
  18103. @return an iterable to enumerate the values.]]>
  18104. </doc>
  18105. </method>
  18106. <field name="PROCESS_ID" type="java.lang.String"
  18107. transient="false" volatile="false"
  18108. static="true" final="true" visibility="public"
  18109. deprecated="not deprecated">
  18110. <doc>
  18111. <![CDATA[Process ID; currently built from UUID and timestamp.]]>
  18112. </doc>
  18113. </field>
  18114. <doc>
  18115. <![CDATA[The common audit context is a map of common context information
  18116. which can be used with any audit span.
  18117. This context is shared across all Filesystems within the
  18118. thread.
  18119. Audit spans will be created with a reference to the current
  18120. context of their thread;
  18121. That reference is retained even as they are moved across threads, so
  18122. context information (including thread ID Java runtime).
  18123. The Global context entries are a set of key-value pairs which span
  18124. all threads; the {@code HttpReferrerAuditHeader} picks these
  18125. up automatically. It is intended for minimal use of
  18126. shared constant values (process ID, entry point).
  18127. An attribute set in {@link #setGlobalContextEntry(String, String)}
  18128. will be set across all audit spans in all threads.
  18129. The {@link #noteEntryPoint(Object)} method should be
  18130. used in entry points (ToolRunner.run, etc). It extracts
  18131. the final element of the classname and attaches that
  18132. to the global context with the attribute key
  18133. {@link AuditConstants#PARAM_COMMAND}, if not already
  18134. set.
  18135. This helps identify the application being executued.
  18136. All other values set are specific to this context, which
  18137. is thread local.
  18138. The attributes which can be added to ths common context include
  18139. evaluator methods which will be evaluated in whichever thread
  18140. invokes {@link #getEvaluatedEntries()} and then evaluates them.
  18141. That map of evaluated options may evaluated later, in a different
  18142. thread.
  18143. For setting and clearing thread-level options, use
  18144. {@link #currentAuditContext()} to get the thread-local
  18145. context for the caller, which can then be manipulated.
  18146. For further information, especially related to memory consumption,
  18147. read the document `auditing_architecture` in the `hadoop-aws` module.]]>
  18148. </doc>
  18149. </class>
  18150. <!-- end class org.apache.hadoop.fs.audit.CommonAuditContext -->
  18151. </package>
  18152. <package name="org.apache.hadoop.fs.crypto">
  18153. </package>
  18154. <package name="org.apache.hadoop.fs.ftp">
  18155. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  18156. <class name="FTPException" extends="java.lang.RuntimeException"
  18157. abstract="false"
  18158. static="false" final="false" visibility="public"
  18159. deprecated="not deprecated">
  18160. <constructor name="FTPException" type="java.lang.String"
  18161. static="false" final="false" visibility="public"
  18162. deprecated="not deprecated">
  18163. </constructor>
  18164. <constructor name="FTPException" type="java.lang.Throwable"
  18165. static="false" final="false" visibility="public"
  18166. deprecated="not deprecated">
  18167. </constructor>
  18168. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  18169. static="false" final="false" visibility="public"
  18170. deprecated="not deprecated">
  18171. </constructor>
  18172. <doc>
  18173. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  18174. </doc>
  18175. </class>
  18176. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  18177. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  18178. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  18179. abstract="false"
  18180. static="false" final="false" visibility="public"
  18181. deprecated="not deprecated">
  18182. <constructor name="FTPFileSystem"
  18183. static="false" final="false" visibility="public"
  18184. deprecated="not deprecated">
  18185. </constructor>
  18186. <method name="getScheme" return="java.lang.String"
  18187. abstract="false" native="false" synchronized="false"
  18188. static="false" final="false" visibility="public"
  18189. deprecated="not deprecated">
  18190. <doc>
  18191. <![CDATA[Return the protocol scheme for the FileSystem.
  18192. <p>
  18193. @return <code>ftp</code>]]>
  18194. </doc>
  18195. </method>
  18196. <method name="getDefaultPort" return="int"
  18197. abstract="false" native="false" synchronized="false"
  18198. static="false" final="false" visibility="protected"
  18199. deprecated="not deprecated">
  18200. <doc>
  18201. <![CDATA[Get the default port for this FTPFileSystem.
  18202. @return the default port]]>
  18203. </doc>
  18204. </method>
  18205. <method name="initialize"
  18206. abstract="false" native="false" synchronized="false"
  18207. static="false" final="false" visibility="public"
  18208. deprecated="not deprecated">
  18209. <param name="uri" type="java.net.URI"/>
  18210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18211. <exception name="IOException" type="java.io.IOException"/>
  18212. </method>
  18213. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  18214. abstract="false" native="false" synchronized="false"
  18215. static="false" final="false" visibility="public"
  18216. deprecated="not deprecated">
  18217. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18218. <param name="bufferSize" type="int"/>
  18219. <exception name="IOException" type="java.io.IOException"/>
  18220. </method>
  18221. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  18222. abstract="false" native="false" synchronized="false"
  18223. static="false" final="false" visibility="public"
  18224. deprecated="not deprecated">
  18225. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18226. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18227. <param name="overwrite" type="boolean"/>
  18228. <param name="bufferSize" type="int"/>
  18229. <param name="replication" type="short"/>
  18230. <param name="blockSize" type="long"/>
  18231. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18232. <exception name="IOException" type="java.io.IOException"/>
  18233. <doc>
  18234. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  18235. this class or else the invocation will block.]]>
  18236. </doc>
  18237. </method>
  18238. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  18239. abstract="false" native="false" synchronized="false"
  18240. static="false" final="false" visibility="public"
  18241. deprecated="not deprecated">
  18242. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18243. <param name="bufferSize" type="int"/>
  18244. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18245. <exception name="IOException" type="java.io.IOException"/>
  18246. <doc>
  18247. <![CDATA[This optional operation is not yet supported.]]>
  18248. </doc>
  18249. </method>
  18250. <method name="delete" return="boolean"
  18251. abstract="false" native="false" synchronized="false"
  18252. static="false" final="false" visibility="public"
  18253. deprecated="not deprecated">
  18254. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18255. <param name="recursive" type="boolean"/>
  18256. <exception name="IOException" type="java.io.IOException"/>
  18257. </method>
  18258. <method name="getUri" return="java.net.URI"
  18259. abstract="false" native="false" synchronized="false"
  18260. static="false" final="false" visibility="public"
  18261. deprecated="not deprecated">
  18262. </method>
  18263. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  18264. abstract="false" native="false" synchronized="false"
  18265. static="false" final="false" visibility="public"
  18266. deprecated="not deprecated">
  18267. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18268. <exception name="IOException" type="java.io.IOException"/>
  18269. </method>
  18270. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  18271. abstract="false" native="false" synchronized="false"
  18272. static="false" final="false" visibility="public"
  18273. deprecated="not deprecated">
  18274. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18275. <exception name="IOException" type="java.io.IOException"/>
  18276. </method>
  18277. <method name="mkdirs" return="boolean"
  18278. abstract="false" native="false" synchronized="false"
  18279. static="false" final="false" visibility="public"
  18280. deprecated="not deprecated">
  18281. <param name="file" type="org.apache.hadoop.fs.Path"/>
  18282. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18283. <exception name="IOException" type="java.io.IOException"/>
  18284. </method>
  18285. <method name="rename" return="boolean"
  18286. abstract="false" native="false" synchronized="false"
  18287. static="false" final="false" visibility="public"
  18288. deprecated="not deprecated">
  18289. <param name="src" type="org.apache.hadoop.fs.Path"/>
  18290. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  18291. <exception name="IOException" type="java.io.IOException"/>
  18292. </method>
  18293. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  18294. abstract="false" native="false" synchronized="false"
  18295. static="false" final="false" visibility="public"
  18296. deprecated="not deprecated">
  18297. </method>
  18298. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  18299. abstract="false" native="false" synchronized="false"
  18300. static="false" final="false" visibility="public"
  18301. deprecated="not deprecated">
  18302. </method>
  18303. <method name="setWorkingDirectory"
  18304. abstract="false" native="false" synchronized="false"
  18305. static="false" final="false" visibility="public"
  18306. deprecated="not deprecated">
  18307. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  18308. </method>
  18309. <field name="LOG" type="org.slf4j.Logger"
  18310. transient="false" volatile="false"
  18311. static="true" final="true" visibility="public"
  18312. deprecated="not deprecated">
  18313. </field>
  18314. <field name="DEFAULT_BUFFER_SIZE" type="int"
  18315. transient="false" volatile="false"
  18316. static="true" final="true" visibility="public"
  18317. deprecated="not deprecated">
  18318. </field>
  18319. <field name="DEFAULT_BLOCK_SIZE" type="int"
  18320. transient="false" volatile="false"
  18321. static="true" final="true" visibility="public"
  18322. deprecated="not deprecated">
  18323. </field>
  18324. <field name="DEFAULT_TIMEOUT" type="long"
  18325. transient="false" volatile="false"
  18326. static="true" final="true" visibility="public"
  18327. deprecated="not deprecated">
  18328. </field>
  18329. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  18330. transient="false" volatile="false"
  18331. static="true" final="true" visibility="public"
  18332. deprecated="not deprecated">
  18333. </field>
  18334. <field name="FS_FTP_HOST" type="java.lang.String"
  18335. transient="false" volatile="false"
  18336. static="true" final="true" visibility="public"
  18337. deprecated="not deprecated">
  18338. </field>
  18339. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  18340. transient="false" volatile="false"
  18341. static="true" final="true" visibility="public"
  18342. deprecated="not deprecated">
  18343. </field>
  18344. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  18345. transient="false" volatile="false"
  18346. static="true" final="true" visibility="public"
  18347. deprecated="not deprecated">
  18348. </field>
  18349. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  18350. transient="false" volatile="false"
  18351. static="true" final="true" visibility="public"
  18352. deprecated="not deprecated">
  18353. </field>
  18354. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  18355. transient="false" volatile="false"
  18356. static="true" final="true" visibility="public"
  18357. deprecated="not deprecated">
  18358. </field>
  18359. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  18360. transient="false" volatile="false"
  18361. static="true" final="true" visibility="public"
  18362. deprecated="not deprecated">
  18363. </field>
  18364. <field name="FS_FTP_TIMEOUT" type="java.lang.String"
  18365. transient="false" volatile="false"
  18366. static="true" final="true" visibility="public"
  18367. deprecated="not deprecated">
  18368. </field>
  18369. <doc>
  18370. <![CDATA[<p>
  18371. A {@link FileSystem} backed by an FTP client provided by <a
  18372. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  18373. </p>]]>
  18374. </doc>
  18375. </class>
  18376. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  18377. </package>
  18378. <package name="org.apache.hadoop.fs.http">
  18379. </package>
  18380. <package name="org.apache.hadoop.fs.protocolPB">
  18381. </package>
  18382. <package name="org.apache.hadoop.fs.sftp">
  18383. </package>
  18384. <package name="org.apache.hadoop.fs.shell.find">
  18385. </package>
  18386. <package name="org.apache.hadoop.fs.statistics">
  18387. <!-- start class org.apache.hadoop.fs.statistics.DurationStatisticSummary -->
  18388. <class name="DurationStatisticSummary" extends="java.lang.Object"
  18389. abstract="false"
  18390. static="false" final="true" visibility="public"
  18391. deprecated="not deprecated">
  18392. <implements name="java.io.Serializable"/>
  18393. <constructor name="DurationStatisticSummary" type="java.lang.String, boolean, long, long, long, org.apache.hadoop.fs.statistics.MeanStatistic"
  18394. static="false" final="false" visibility="public"
  18395. deprecated="not deprecated">
  18396. <doc>
  18397. <![CDATA[Constructor.
  18398. @param key Statistic key.
  18399. @param success Are these success or failure statistics.
  18400. @param count Count of operation invocations.
  18401. @param max Max duration; -1 if unknown.
  18402. @param min Min duration; -1 if unknown.
  18403. @param mean Mean duration -may be null. (will be cloned)]]>
  18404. </doc>
  18405. </constructor>
  18406. <method name="getKey" return="java.lang.String"
  18407. abstract="false" native="false" synchronized="false"
  18408. static="false" final="false" visibility="public"
  18409. deprecated="not deprecated">
  18410. </method>
  18411. <method name="isSuccess" return="boolean"
  18412. abstract="false" native="false" synchronized="false"
  18413. static="false" final="false" visibility="public"
  18414. deprecated="not deprecated">
  18415. </method>
  18416. <method name="getCount" return="long"
  18417. abstract="false" native="false" synchronized="false"
  18418. static="false" final="false" visibility="public"
  18419. deprecated="not deprecated">
  18420. </method>
  18421. <method name="getMax" return="long"
  18422. abstract="false" native="false" synchronized="false"
  18423. static="false" final="false" visibility="public"
  18424. deprecated="not deprecated">
  18425. </method>
  18426. <method name="getMin" return="long"
  18427. abstract="false" native="false" synchronized="false"
  18428. static="false" final="false" visibility="public"
  18429. deprecated="not deprecated">
  18430. </method>
  18431. <method name="getMean" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  18432. abstract="false" native="false" synchronized="false"
  18433. static="false" final="false" visibility="public"
  18434. deprecated="not deprecated">
  18435. </method>
  18436. <method name="toString" return="java.lang.String"
  18437. abstract="false" native="false" synchronized="false"
  18438. static="false" final="false" visibility="public"
  18439. deprecated="not deprecated">
  18440. </method>
  18441. <method name="fetchDurationSummary" return="org.apache.hadoop.fs.statistics.DurationStatisticSummary"
  18442. abstract="false" native="false" synchronized="false"
  18443. static="true" final="false" visibility="public"
  18444. deprecated="not deprecated">
  18445. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18446. <param name="key" type="java.lang.String"/>
  18447. <param name="success" type="boolean"/>
  18448. <doc>
  18449. <![CDATA[Fetch the duration timing summary of success or failure operations
  18450. from an IO Statistics source.
  18451. If the duration key is unknown, the summary will be incomplete.
  18452. @param source source of data
  18453. @param key duration statistic key
  18454. @param success fetch success statistics, or if false, failure stats.
  18455. @return a summary of the statistics.]]>
  18456. </doc>
  18457. </method>
  18458. <method name="fetchSuccessSummary" return="org.apache.hadoop.fs.statistics.DurationStatisticSummary"
  18459. abstract="false" native="false" synchronized="false"
  18460. static="true" final="false" visibility="public"
  18461. deprecated="not deprecated">
  18462. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18463. <param name="key" type="java.lang.String"/>
  18464. <doc>
  18465. <![CDATA[Fetch the duration timing summary from an IOStatistics source.
  18466. If the duration key is unknown, the summary will be incomplete.
  18467. @param source source of data
  18468. @param key duration statistic key
  18469. @return a summary of the statistics.]]>
  18470. </doc>
  18471. </method>
  18472. <doc>
  18473. <![CDATA[Summary of duration tracking statistics
  18474. as extracted from an IOStatistics instance.
  18475. <p>
  18476. This is for reporting and testing.]]>
  18477. </doc>
  18478. </class>
  18479. <!-- end class org.apache.hadoop.fs.statistics.DurationStatisticSummary -->
  18480. <!-- start interface org.apache.hadoop.fs.statistics.IOStatistics -->
  18481. <interface name="IOStatistics" abstract="true"
  18482. static="false" final="false" visibility="public"
  18483. deprecated="not deprecated">
  18484. <method name="counters" return="java.util.Map"
  18485. abstract="true" native="false" synchronized="false"
  18486. static="false" final="false" visibility="public"
  18487. deprecated="not deprecated">
  18488. <doc>
  18489. <![CDATA[Map of counters.
  18490. @return the current map of counters.]]>
  18491. </doc>
  18492. </method>
  18493. <method name="gauges" return="java.util.Map"
  18494. abstract="true" native="false" synchronized="false"
  18495. static="false" final="false" visibility="public"
  18496. deprecated="not deprecated">
  18497. <doc>
  18498. <![CDATA[Map of gauges.
  18499. @return the current map of gauges.]]>
  18500. </doc>
  18501. </method>
  18502. <method name="minimums" return="java.util.Map"
  18503. abstract="true" native="false" synchronized="false"
  18504. static="false" final="false" visibility="public"
  18505. deprecated="not deprecated">
  18506. <doc>
  18507. <![CDATA[Map of minimums.
  18508. @return the current map of minimums.]]>
  18509. </doc>
  18510. </method>
  18511. <method name="maximums" return="java.util.Map"
  18512. abstract="true" native="false" synchronized="false"
  18513. static="false" final="false" visibility="public"
  18514. deprecated="not deprecated">
  18515. <doc>
  18516. <![CDATA[Map of maximums.
  18517. @return the current map of maximums.]]>
  18518. </doc>
  18519. </method>
  18520. <method name="meanStatistics" return="java.util.Map"
  18521. abstract="true" native="false" synchronized="false"
  18522. static="false" final="false" visibility="public"
  18523. deprecated="not deprecated">
  18524. <doc>
  18525. <![CDATA[Map of meanStatistics.
  18526. @return the current map of MeanStatistic statistics.]]>
  18527. </doc>
  18528. </method>
  18529. <field name="MIN_UNSET_VALUE" type="long"
  18530. transient="false" volatile="false"
  18531. static="true" final="true" visibility="public"
  18532. deprecated="not deprecated">
  18533. <doc>
  18534. <![CDATA[Value when a minimum value has never been set.]]>
  18535. </doc>
  18536. </field>
  18537. <field name="MAX_UNSET_VALUE" type="long"
  18538. transient="false" volatile="false"
  18539. static="true" final="true" visibility="public"
  18540. deprecated="not deprecated">
  18541. <doc>
  18542. <![CDATA[Value when a max value has never been set.]]>
  18543. </doc>
  18544. </field>
  18545. <doc>
  18546. <![CDATA[IO Statistics.
  18547. <p>
  18548. These are low-cost per-instance statistics provided by any Hadoop
  18549. I/O class instance.
  18550. <p>
  18551. Consult the filesystem specification document for the requirements
  18552. of an implementation of this interface.]]>
  18553. </doc>
  18554. </interface>
  18555. <!-- end interface org.apache.hadoop.fs.statistics.IOStatistics -->
  18556. <!-- start interface org.apache.hadoop.fs.statistics.IOStatisticsAggregator -->
  18557. <interface name="IOStatisticsAggregator" abstract="true"
  18558. static="false" final="false" visibility="public"
  18559. deprecated="not deprecated">
  18560. <method name="aggregate" return="boolean"
  18561. abstract="true" native="false" synchronized="false"
  18562. static="false" final="false" visibility="public"
  18563. deprecated="not deprecated">
  18564. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18565. <doc>
  18566. <![CDATA[Aggregate the supplied statistics into the current
  18567. set.
  18568. @param statistics statistics; may be null
  18569. @return true if the statistics reference was not null and
  18570. so aggregated.]]>
  18571. </doc>
  18572. </method>
  18573. <doc>
  18574. <![CDATA[Interface exported by classes which support
  18575. aggregation of {@link IOStatistics}.
  18576. Implementations MAY aggregate all statistics
  18577. exported by the IOStatistics reference passed in to
  18578. {@link #aggregate(IOStatistics)}, or they
  18579. may selectively aggregate specific values/classes
  18580. of statistics.]]>
  18581. </doc>
  18582. </interface>
  18583. <!-- end interface org.apache.hadoop.fs.statistics.IOStatisticsAggregator -->
  18584. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsLogging -->
  18585. <class name="IOStatisticsLogging" extends="java.lang.Object"
  18586. abstract="false"
  18587. static="false" final="true" visibility="public"
  18588. deprecated="not deprecated">
  18589. <method name="ioStatisticsSourceToString" return="java.lang.String"
  18590. abstract="false" native="false" synchronized="false"
  18591. static="true" final="false" visibility="public"
  18592. deprecated="not deprecated">
  18593. <param name="source" type="java.lang.Object"/>
  18594. <doc>
  18595. <![CDATA[Extract the statistics from a source object -or ""
  18596. if it is not an instance of {@link IOStatistics},
  18597. {@link IOStatisticsSource} or the retrieved
  18598. statistics are null.
  18599. <p>
  18600. Exceptions are caught and downgraded to debug logging.
  18601. @param source source of statistics.
  18602. @return a string for logging.]]>
  18603. </doc>
  18604. </method>
  18605. <method name="ioStatisticsToString" return="java.lang.String"
  18606. abstract="false" native="false" synchronized="false"
  18607. static="true" final="false" visibility="public"
  18608. deprecated="not deprecated">
  18609. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18610. <doc>
  18611. <![CDATA[Convert IOStatistics to a string form.
  18612. @param statistics A statistics instance.
  18613. @return string value or the empty string if null]]>
  18614. </doc>
  18615. </method>
  18616. <method name="ioStatisticsToPrettyString" return="java.lang.String"
  18617. abstract="false" native="false" synchronized="false"
  18618. static="true" final="false" visibility="public"
  18619. deprecated="not deprecated">
  18620. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18621. <doc>
  18622. <![CDATA[Convert IOStatistics to a string form, with all the metrics sorted
  18623. and empty value stripped.
  18624. This is more expensive than the simple conversion, so should only
  18625. be used for logging/output where it's known/highly likely that the
  18626. caller wants to see the values. Not for debug logging.
  18627. @param statistics A statistics instance.
  18628. @return string value or the empty string if null]]>
  18629. </doc>
  18630. </method>
  18631. <method name="demandStringifyIOStatisticsSource" return="java.lang.Object"
  18632. abstract="false" native="false" synchronized="false"
  18633. static="true" final="false" visibility="public"
  18634. deprecated="not deprecated">
  18635. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  18636. <doc>
  18637. <![CDATA[On demand stringifier of an IOStatisticsSource instance.
  18638. <p>
  18639. Whenever this object's toString() method is called, it evaluates the
  18640. statistics.
  18641. <p>
  18642. This is designed to affordable to use in log statements.
  18643. @param source source of statistics -may be null.
  18644. @return an object whose toString() operation returns the current values.]]>
  18645. </doc>
  18646. </method>
  18647. <method name="demandStringifyIOStatistics" return="java.lang.Object"
  18648. abstract="false" native="false" synchronized="false"
  18649. static="true" final="false" visibility="public"
  18650. deprecated="not deprecated">
  18651. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18652. <doc>
  18653. <![CDATA[On demand stringifier of an IOStatistics instance.
  18654. <p>
  18655. Whenever this object's toString() method is called, it evaluates the
  18656. statistics.
  18657. <p>
  18658. This is for use in log statements where for the cost of creation
  18659. of this entry is low; it is affordable to use in log statements.
  18660. @param statistics statistics to stringify -may be null.
  18661. @return an object whose toString() operation returns the current values.]]>
  18662. </doc>
  18663. </method>
  18664. <method name="logIOStatisticsAtDebug"
  18665. abstract="false" native="false" synchronized="false"
  18666. static="true" final="false" visibility="public"
  18667. deprecated="not deprecated">
  18668. <param name="log" type="org.slf4j.Logger"/>
  18669. <param name="message" type="java.lang.String"/>
  18670. <param name="source" type="java.lang.Object"/>
  18671. <doc>
  18672. <![CDATA[Extract any statistics from the source and log at debug, if
  18673. the log is set to log at debug.
  18674. No-op if logging is not at debug or the source is null/of
  18675. the wrong type/doesn't provide statistics.
  18676. @param log log to log to
  18677. @param message message for log -this must contain "{}" for the
  18678. statistics report to actually get logged.
  18679. @param source source object]]>
  18680. </doc>
  18681. </method>
  18682. <method name="logIOStatisticsAtDebug"
  18683. abstract="false" native="false" synchronized="false"
  18684. static="true" final="false" visibility="public"
  18685. deprecated="not deprecated">
  18686. <param name="message" type="java.lang.String"/>
  18687. <param name="source" type="java.lang.Object"/>
  18688. <doc>
  18689. <![CDATA[Extract any statistics from the source and log to
  18690. this class's log at debug, if
  18691. the log is set to log at debug.
  18692. No-op if logging is not at debug or the source is null/of
  18693. the wrong type/doesn't provide statistics.
  18694. @param message message for log -this must contain "{}" for the
  18695. statistics report to actually get logged.
  18696. @param source source object]]>
  18697. </doc>
  18698. </method>
  18699. <method name="logIOStatisticsAtLevel"
  18700. abstract="false" native="false" synchronized="false"
  18701. static="true" final="false" visibility="public"
  18702. deprecated="not deprecated">
  18703. <param name="log" type="org.slf4j.Logger"/>
  18704. <param name="level" type="java.lang.String"/>
  18705. <param name="source" type="java.lang.Object"/>
  18706. <doc>
  18707. <![CDATA[A method to log IOStatistics from a source at different levels.
  18708. @param log Logger for logging.
  18709. @param level LOG level.
  18710. @param source Source to LOG.]]>
  18711. </doc>
  18712. </method>
  18713. <doc>
  18714. <![CDATA[Utility operations convert IO Statistics sources/instances
  18715. to strings, especially for robustly logging.]]>
  18716. </doc>
  18717. </class>
  18718. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsLogging -->
  18719. <!-- start interface org.apache.hadoop.fs.statistics.IOStatisticsSetters -->
  18720. <interface name="IOStatisticsSetters" abstract="true"
  18721. static="false" final="false" visibility="public"
  18722. deprecated="not deprecated">
  18723. <implements name="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18724. <method name="setCounter"
  18725. abstract="true" native="false" synchronized="false"
  18726. static="false" final="false" visibility="public"
  18727. deprecated="not deprecated">
  18728. <param name="key" type="java.lang.String"/>
  18729. <param name="value" type="long"/>
  18730. <doc>
  18731. <![CDATA[Set a counter.
  18732. No-op if the counter is unknown.
  18733. @param key statistics key
  18734. @param value value to set]]>
  18735. </doc>
  18736. </method>
  18737. <method name="setGauge"
  18738. abstract="true" native="false" synchronized="false"
  18739. static="false" final="false" visibility="public"
  18740. deprecated="not deprecated">
  18741. <param name="key" type="java.lang.String"/>
  18742. <param name="value" type="long"/>
  18743. <doc>
  18744. <![CDATA[Set a gauge.
  18745. @param key statistics key
  18746. @param value value to set]]>
  18747. </doc>
  18748. </method>
  18749. <method name="setMaximum"
  18750. abstract="true" native="false" synchronized="false"
  18751. static="false" final="false" visibility="public"
  18752. deprecated="not deprecated">
  18753. <param name="key" type="java.lang.String"/>
  18754. <param name="value" type="long"/>
  18755. <doc>
  18756. <![CDATA[Set a maximum.
  18757. @param key statistics key
  18758. @param value value to set]]>
  18759. </doc>
  18760. </method>
  18761. <method name="setMinimum"
  18762. abstract="true" native="false" synchronized="false"
  18763. static="false" final="false" visibility="public"
  18764. deprecated="not deprecated">
  18765. <param name="key" type="java.lang.String"/>
  18766. <param name="value" type="long"/>
  18767. <doc>
  18768. <![CDATA[Set a minimum.
  18769. @param key statistics key
  18770. @param value value to set]]>
  18771. </doc>
  18772. </method>
  18773. <method name="setMeanStatistic"
  18774. abstract="true" native="false" synchronized="false"
  18775. static="false" final="false" visibility="public"
  18776. deprecated="not deprecated">
  18777. <param name="key" type="java.lang.String"/>
  18778. <param name="value" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  18779. <doc>
  18780. <![CDATA[Set a mean statistic to a given value.
  18781. @param key statistic key
  18782. @param value new value.]]>
  18783. </doc>
  18784. </method>
  18785. <doc>
  18786. <![CDATA[Setter for IOStatistics entries.
  18787. These operations have been in the read/write API
  18788. {@code IOStatisticsStore} since IOStatistics
  18789. was added; extracting into its own interface allows for
  18790. {@link IOStatisticsSnapshot} to also support it.
  18791. These are the simple setters, they don't provide for increments,
  18792. decrements, calculation of min/max/mean etc.
  18793. @since The interface and IOStatisticsSnapshot support was added <i>after</i> Hadoop 3.3.5]]>
  18794. </doc>
  18795. </interface>
  18796. <!-- end interface org.apache.hadoop.fs.statistics.IOStatisticsSetters -->
  18797. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsSnapshot -->
  18798. <class name="IOStatisticsSnapshot" extends="java.lang.Object"
  18799. abstract="false"
  18800. static="false" final="true" visibility="public"
  18801. deprecated="not deprecated">
  18802. <implements name="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18803. <implements name="java.io.Serializable"/>
  18804. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsAggregator"/>
  18805. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSetters"/>
  18806. <constructor name="IOStatisticsSnapshot"
  18807. static="false" final="false" visibility="public"
  18808. deprecated="not deprecated">
  18809. <doc>
  18810. <![CDATA[Construct.]]>
  18811. </doc>
  18812. </constructor>
  18813. <constructor name="IOStatisticsSnapshot" type="org.apache.hadoop.fs.statistics.IOStatistics"
  18814. static="false" final="false" visibility="public"
  18815. deprecated="not deprecated">
  18816. <doc>
  18817. <![CDATA[Construct, taking a snapshot of the source statistics data
  18818. if the source is non-null.
  18819. If the source is null, the empty maps are created
  18820. @param source statistics source. Nullable.]]>
  18821. </doc>
  18822. </constructor>
  18823. <method name="clear"
  18824. abstract="false" native="false" synchronized="true"
  18825. static="false" final="false" visibility="public"
  18826. deprecated="not deprecated">
  18827. <doc>
  18828. <![CDATA[Clear all the maps.]]>
  18829. </doc>
  18830. </method>
  18831. <method name="snapshot"
  18832. abstract="false" native="false" synchronized="true"
  18833. static="false" final="false" visibility="public"
  18834. deprecated="not deprecated">
  18835. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18836. <doc>
  18837. <![CDATA[Take a snapshot.
  18838. This completely overwrites the map data with the statistics
  18839. from the source.
  18840. @param source statistics source.]]>
  18841. </doc>
  18842. </method>
  18843. <method name="aggregate" return="boolean"
  18844. abstract="false" native="false" synchronized="true"
  18845. static="false" final="false" visibility="public"
  18846. deprecated="not deprecated">
  18847. <param name="source" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18848. <doc>
  18849. <![CDATA[Aggregate the current statistics with the
  18850. source reference passed in.
  18851. The operation is synchronized.
  18852. @param source source; may be null
  18853. @return true if a merge took place.]]>
  18854. </doc>
  18855. </method>
  18856. <method name="counters" return="java.util.Map"
  18857. abstract="false" native="false" synchronized="true"
  18858. static="false" final="false" visibility="public"
  18859. deprecated="not deprecated">
  18860. </method>
  18861. <method name="gauges" return="java.util.Map"
  18862. abstract="false" native="false" synchronized="true"
  18863. static="false" final="false" visibility="public"
  18864. deprecated="not deprecated">
  18865. </method>
  18866. <method name="minimums" return="java.util.Map"
  18867. abstract="false" native="false" synchronized="true"
  18868. static="false" final="false" visibility="public"
  18869. deprecated="not deprecated">
  18870. </method>
  18871. <method name="maximums" return="java.util.Map"
  18872. abstract="false" native="false" synchronized="true"
  18873. static="false" final="false" visibility="public"
  18874. deprecated="not deprecated">
  18875. </method>
  18876. <method name="meanStatistics" return="java.util.Map"
  18877. abstract="false" native="false" synchronized="true"
  18878. static="false" final="false" visibility="public"
  18879. deprecated="not deprecated">
  18880. </method>
  18881. <method name="setCounter"
  18882. abstract="false" native="false" synchronized="true"
  18883. static="false" final="false" visibility="public"
  18884. deprecated="not deprecated">
  18885. <param name="key" type="java.lang.String"/>
  18886. <param name="value" type="long"/>
  18887. </method>
  18888. <method name="setGauge"
  18889. abstract="false" native="false" synchronized="true"
  18890. static="false" final="false" visibility="public"
  18891. deprecated="not deprecated">
  18892. <param name="key" type="java.lang.String"/>
  18893. <param name="value" type="long"/>
  18894. </method>
  18895. <method name="setMaximum"
  18896. abstract="false" native="false" synchronized="true"
  18897. static="false" final="false" visibility="public"
  18898. deprecated="not deprecated">
  18899. <param name="key" type="java.lang.String"/>
  18900. <param name="value" type="long"/>
  18901. </method>
  18902. <method name="setMinimum"
  18903. abstract="false" native="false" synchronized="true"
  18904. static="false" final="false" visibility="public"
  18905. deprecated="not deprecated">
  18906. <param name="key" type="java.lang.String"/>
  18907. <param name="value" type="long"/>
  18908. </method>
  18909. <method name="setMeanStatistic"
  18910. abstract="false" native="false" synchronized="false"
  18911. static="false" final="false" visibility="public"
  18912. deprecated="not deprecated">
  18913. <param name="key" type="java.lang.String"/>
  18914. <param name="value" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  18915. </method>
  18916. <method name="toString" return="java.lang.String"
  18917. abstract="false" native="false" synchronized="false"
  18918. static="false" final="false" visibility="public"
  18919. deprecated="not deprecated">
  18920. </method>
  18921. <method name="serializer" return="org.apache.hadoop.util.JsonSerialization"
  18922. abstract="false" native="false" synchronized="false"
  18923. static="true" final="false" visibility="public"
  18924. deprecated="not deprecated">
  18925. <doc>
  18926. <![CDATA[Get a JSON serializer for this class.
  18927. @return a serializer.]]>
  18928. </doc>
  18929. </method>
  18930. <method name="requiredSerializationClasses" return="java.util.List"
  18931. abstract="false" native="false" synchronized="false"
  18932. static="true" final="false" visibility="public"
  18933. deprecated="not deprecated">
  18934. <doc>
  18935. <![CDATA[What classes are needed to deserialize this class?
  18936. Needed to securely unmarshall this from untrusted sources.
  18937. @return a list of required classes to deserialize the data.]]>
  18938. </doc>
  18939. </method>
  18940. <doc>
  18941. <![CDATA[Snapshot of statistics from a different source.
  18942. <p>
  18943. It is serializable so that frameworks which can use java serialization
  18944. to propagate data (Spark, Flink...) can send the statistics
  18945. back. For this reason, TreeMaps are explicitly used as field types,
  18946. even though IDEs can recommend use of Map instead.
  18947. For security reasons, untrusted java object streams should never be
  18948. deserialized. If for some reason this is required, use
  18949. {@link #requiredSerializationClasses()} to get the list of classes
  18950. used when deserializing instances of this object.
  18951. </p>
  18952. <p>
  18953. It is annotated for correct serializations with jackson2.
  18954. </p>]]>
  18955. </doc>
  18956. </class>
  18957. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsSnapshot -->
  18958. <!-- start class org.apache.hadoop.fs.statistics.IOStatisticsSupport -->
  18959. <class name="IOStatisticsSupport" extends="java.lang.Object"
  18960. abstract="false"
  18961. static="false" final="true" visibility="public"
  18962. deprecated="not deprecated">
  18963. <method name="snapshotIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatisticsSnapshot"
  18964. abstract="false" native="false" synchronized="false"
  18965. static="true" final="false" visibility="public"
  18966. deprecated="not deprecated">
  18967. <param name="statistics" type="org.apache.hadoop.fs.statistics.IOStatistics"/>
  18968. <doc>
  18969. <![CDATA[Take a snapshot of the current statistics state.
  18970. <p>
  18971. This is not an atomic option.
  18972. <p>
  18973. The instance can be serialized, and its
  18974. {@code toString()} method lists all the values.
  18975. @param statistics statistics
  18976. @return a snapshot of the current values.]]>
  18977. </doc>
  18978. </method>
  18979. <method name="snapshotIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatisticsSnapshot"
  18980. abstract="false" native="false" synchronized="false"
  18981. static="true" final="false" visibility="public"
  18982. deprecated="not deprecated">
  18983. <doc>
  18984. <![CDATA[Create a snapshot statistics instance ready to aggregate data.
  18985. The instance can be serialized, and its
  18986. {@code toString()} method lists all the values.
  18987. @return an empty snapshot]]>
  18988. </doc>
  18989. </method>
  18990. <method name="retrieveIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  18991. abstract="false" native="false" synchronized="false"
  18992. static="true" final="false" visibility="public"
  18993. deprecated="not deprecated">
  18994. <param name="source" type="java.lang.Object"/>
  18995. <doc>
  18996. <![CDATA[Get the IOStatistics of the source, casting it
  18997. if it is of the relevant type, otherwise,
  18998. if it implements {@link IOStatisticsSource}
  18999. extracting the value.
  19000. Returns null if the source isn't of the write type
  19001. or the return value of
  19002. {@link IOStatisticsSource#getIOStatistics()} was null.
  19003. @param source source.
  19004. @return an IOStatistics instance or null]]>
  19005. </doc>
  19006. </method>
  19007. <method name="stubDurationTrackerFactory" return="org.apache.hadoop.fs.statistics.DurationTrackerFactory"
  19008. abstract="false" native="false" synchronized="false"
  19009. static="true" final="false" visibility="public"
  19010. deprecated="not deprecated">
  19011. <doc>
  19012. <![CDATA[Return a stub duration tracker factory whose returned trackers
  19013. are always no-ops.
  19014. As singletons are returned, this is very low-cost to use.
  19015. @return a duration tracker factory.]]>
  19016. </doc>
  19017. </method>
  19018. <method name="stubDurationTracker" return="org.apache.hadoop.fs.statistics.DurationTracker"
  19019. abstract="false" native="false" synchronized="false"
  19020. static="true" final="false" visibility="public"
  19021. deprecated="not deprecated">
  19022. <doc>
  19023. <![CDATA[Get a stub duration tracker.
  19024. @return a stub tracker.]]>
  19025. </doc>
  19026. </method>
  19027. <doc>
  19028. <![CDATA[Support for working with IOStatistics.]]>
  19029. </doc>
  19030. </class>
  19031. <!-- end class org.apache.hadoop.fs.statistics.IOStatisticsSupport -->
  19032. <!-- start class org.apache.hadoop.fs.statistics.MeanStatistic -->
  19033. <class name="MeanStatistic" extends="java.lang.Object"
  19034. abstract="false"
  19035. static="false" final="true" visibility="public"
  19036. deprecated="not deprecated">
  19037. <implements name="java.io.Serializable"/>
  19038. <implements name="java.lang.Cloneable"/>
  19039. <constructor name="MeanStatistic" type="long, long"
  19040. static="false" final="false" visibility="public"
  19041. deprecated="not deprecated">
  19042. <doc>
  19043. <![CDATA[Constructor, with some resilience against invalid sample counts.
  19044. If the sample count is 0 or less, the sum is set to 0 and
  19045. the sample count to 0.
  19046. @param samples sample count.
  19047. @param sum sum value]]>
  19048. </doc>
  19049. </constructor>
  19050. <constructor name="MeanStatistic" type="org.apache.hadoop.fs.statistics.MeanStatistic"
  19051. static="false" final="false" visibility="public"
  19052. deprecated="not deprecated">
  19053. <doc>
  19054. <![CDATA[Create from another statistic.
  19055. @param that source]]>
  19056. </doc>
  19057. </constructor>
  19058. <constructor name="MeanStatistic"
  19059. static="false" final="false" visibility="public"
  19060. deprecated="not deprecated">
  19061. <doc>
  19062. <![CDATA[Create an empty statistic.]]>
  19063. </doc>
  19064. </constructor>
  19065. <method name="getSum" return="long"
  19066. abstract="false" native="false" synchronized="true"
  19067. static="false" final="false" visibility="public"
  19068. deprecated="not deprecated">
  19069. <doc>
  19070. <![CDATA[Get the sum of samples.
  19071. @return the sum]]>
  19072. </doc>
  19073. </method>
  19074. <method name="getSamples" return="long"
  19075. abstract="false" native="false" synchronized="true"
  19076. static="false" final="false" visibility="public"
  19077. deprecated="not deprecated">
  19078. <doc>
  19079. <![CDATA[Get the sample count.
  19080. @return the sample count; 0 means empty]]>
  19081. </doc>
  19082. </method>
  19083. <method name="isEmpty" return="boolean"
  19084. abstract="false" native="false" synchronized="true"
  19085. static="false" final="false" visibility="public"
  19086. deprecated="not deprecated">
  19087. <doc>
  19088. <![CDATA[Is a statistic empty?
  19089. @return true if the sample count is 0]]>
  19090. </doc>
  19091. </method>
  19092. <method name="clear"
  19093. abstract="false" native="false" synchronized="false"
  19094. static="false" final="false" visibility="public"
  19095. deprecated="not deprecated">
  19096. <doc>
  19097. <![CDATA[Set the values to 0.]]>
  19098. </doc>
  19099. </method>
  19100. <method name="setSamplesAndSum"
  19101. abstract="false" native="false" synchronized="true"
  19102. static="false" final="false" visibility="public"
  19103. deprecated="not deprecated">
  19104. <param name="sampleCount" type="long"/>
  19105. <param name="newSum" type="long"/>
  19106. <doc>
  19107. <![CDATA[Set the sum and samples.
  19108. Synchronized.
  19109. @param sampleCount new sample count.
  19110. @param newSum new sum]]>
  19111. </doc>
  19112. </method>
  19113. <method name="set"
  19114. abstract="false" native="false" synchronized="false"
  19115. static="false" final="false" visibility="public"
  19116. deprecated="not deprecated">
  19117. <param name="other" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  19118. <doc>
  19119. <![CDATA[Set the statistic to the values of another.
  19120. Synchronized.
  19121. @param other the source.]]>
  19122. </doc>
  19123. </method>
  19124. <method name="setSum"
  19125. abstract="false" native="false" synchronized="true"
  19126. static="false" final="false" visibility="public"
  19127. deprecated="not deprecated">
  19128. <param name="sum" type="long"/>
  19129. <doc>
  19130. <![CDATA[Set the sum.
  19131. @param sum new sum]]>
  19132. </doc>
  19133. </method>
  19134. <method name="setSamples"
  19135. abstract="false" native="false" synchronized="true"
  19136. static="false" final="false" visibility="public"
  19137. deprecated="not deprecated">
  19138. <param name="samples" type="long"/>
  19139. <doc>
  19140. <![CDATA[Set the sample count.
  19141. If this is less than zero, it is set to zero.
  19142. This stops an ill-formed JSON entry from
  19143. breaking deserialization, or get an invalid sample count
  19144. into an entry.
  19145. @param samples sample count.]]>
  19146. </doc>
  19147. </method>
  19148. <method name="mean" return="double"
  19149. abstract="false" native="false" synchronized="true"
  19150. static="false" final="false" visibility="public"
  19151. deprecated="not deprecated">
  19152. <doc>
  19153. <![CDATA[Get the arithmetic mean value.
  19154. @return the mean]]>
  19155. </doc>
  19156. </method>
  19157. <method name="add" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  19158. abstract="false" native="false" synchronized="true"
  19159. static="false" final="false" visibility="public"
  19160. deprecated="not deprecated">
  19161. <param name="other" type="org.apache.hadoop.fs.statistics.MeanStatistic"/>
  19162. <doc>
  19163. <![CDATA[Add another MeanStatistic.
  19164. @param other other value
  19165. @return mean statistic.]]>
  19166. </doc>
  19167. </method>
  19168. <method name="addSample"
  19169. abstract="false" native="false" synchronized="true"
  19170. static="false" final="false" visibility="public"
  19171. deprecated="not deprecated">
  19172. <param name="value" type="long"/>
  19173. <doc>
  19174. <![CDATA[Add a sample.
  19175. Thread safe.
  19176. @param value value to add to the sum]]>
  19177. </doc>
  19178. </method>
  19179. <method name="hashCode" return="int"
  19180. abstract="false" native="false" synchronized="true"
  19181. static="false" final="false" visibility="public"
  19182. deprecated="not deprecated">
  19183. <doc>
  19184. <![CDATA[The hash code is derived from the mean
  19185. and sample count: if either is changed
  19186. the statistic cannot be used as a key
  19187. for hash tables/maps.
  19188. @return a hash value]]>
  19189. </doc>
  19190. </method>
  19191. <method name="equals" return="boolean"
  19192. abstract="false" native="false" synchronized="true"
  19193. static="false" final="false" visibility="public"
  19194. deprecated="not deprecated">
  19195. <param name="o" type="java.lang.Object"/>
  19196. </method>
  19197. <method name="clone" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  19198. abstract="false" native="false" synchronized="false"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. </method>
  19202. <method name="copy" return="org.apache.hadoop.fs.statistics.MeanStatistic"
  19203. abstract="false" native="false" synchronized="false"
  19204. static="false" final="false" visibility="public"
  19205. deprecated="not deprecated">
  19206. <doc>
  19207. <![CDATA[Create a copy of this instance.
  19208. @return copy.]]>
  19209. </doc>
  19210. </method>
  19211. <method name="toString" return="java.lang.String"
  19212. abstract="false" native="false" synchronized="false"
  19213. static="false" final="false" visibility="public"
  19214. deprecated="not deprecated">
  19215. </method>
  19216. <doc>
  19217. <![CDATA[A mean statistic represented as the sum and the sample count;
  19218. the mean is calculated on demand.
  19219. <p>
  19220. It can be used to accrue values so as to dynamically update
  19221. the mean. If so, know that there is no synchronization
  19222. on the methods.
  19223. </p>
  19224. <p>
  19225. If a statistic has 0 samples then it is considered to be empty.
  19226. </p>
  19227. <p>
  19228. All 'empty' statistics are equivalent, independent of the sum value.
  19229. </p>
  19230. <p>
  19231. For non-empty statistics, sum and sample values must match
  19232. for equality.
  19233. </p>
  19234. <p>
  19235. It is serializable and annotated for correct serializations with jackson2.
  19236. </p>
  19237. <p>
  19238. Thread safety. The operations to add/copy sample data, are thread safe.
  19239. </p>
  19240. <ol>
  19241. <li>{@link #add(MeanStatistic)}</li>
  19242. <li>{@link #addSample(long)} </li>
  19243. <li>{@link #clear()} </li>
  19244. <li>{@link #setSamplesAndSum(long, long)}</li>
  19245. <li>{@link #set(MeanStatistic)}</li>
  19246. <li>{@link #setSamples(long)} and {@link #setSum(long)}</li>
  19247. </ol>
  19248. <p>
  19249. So is the {@link #mean()} method. This ensures that when
  19250. used to aggregated statistics, the aggregate value and sample
  19251. count are set and evaluated consistently.
  19252. </p>
  19253. <p>
  19254. Other methods marked as synchronized because Findbugs overreacts
  19255. to the idea that some operations to update sum and sample count
  19256. are synchronized, but that things like equals are not.
  19257. </p>]]>
  19258. </doc>
  19259. </class>
  19260. <!-- end class org.apache.hadoop.fs.statistics.MeanStatistic -->
  19261. <!-- start class org.apache.hadoop.fs.statistics.StoreStatisticNames -->
  19262. <class name="StoreStatisticNames" extends="java.lang.Object"
  19263. abstract="false"
  19264. static="false" final="true" visibility="public"
  19265. deprecated="not deprecated">
  19266. <field name="OP_ABORT" 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_ACCESS" type="java.lang.String"
  19275. transient="false" volatile="false"
  19276. static="true" final="true" visibility="public"
  19277. deprecated="not deprecated">
  19278. <doc>
  19279. <![CDATA[access() API call {@value}.]]>
  19280. </doc>
  19281. </field>
  19282. <field name="OP_APPEND" 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_COPY_FROM_LOCAL_FILE" 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_CREATE" 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_CREATE_FILE" type="java.lang.String"
  19307. transient="false" volatile="false"
  19308. static="true" final="true" visibility="public"
  19309. deprecated="not deprecated">
  19310. <doc>
  19311. <![CDATA[{@value}.]]>
  19312. </doc>
  19313. </field>
  19314. <field name="OP_CREATE_NON_RECURSIVE" type="java.lang.String"
  19315. transient="false" volatile="false"
  19316. static="true" final="true" visibility="public"
  19317. deprecated="not deprecated">
  19318. <doc>
  19319. <![CDATA[{@value}.]]>
  19320. </doc>
  19321. </field>
  19322. <field name="OP_DELETE" type="java.lang.String"
  19323. transient="false" volatile="false"
  19324. static="true" final="true" visibility="public"
  19325. deprecated="not deprecated">
  19326. <doc>
  19327. <![CDATA[{@value}.]]>
  19328. </doc>
  19329. </field>
  19330. <field name="OP_EXISTS" type="java.lang.String"
  19331. transient="false" volatile="false"
  19332. static="true" final="true" visibility="public"
  19333. deprecated="not deprecated">
  19334. <doc>
  19335. <![CDATA[{@value}.]]>
  19336. </doc>
  19337. </field>
  19338. <field name="OP_GET_CONTENT_SUMMARY" 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="OP_GET_DELEGATION_TOKEN" type="java.lang.String"
  19347. transient="false" volatile="false"
  19348. static="true" final="true" visibility="public"
  19349. deprecated="not deprecated">
  19350. <doc>
  19351. <![CDATA[{@value}.]]>
  19352. </doc>
  19353. </field>
  19354. <field name="OP_GET_FILE_CHECKSUM" type="java.lang.String"
  19355. transient="false" volatile="false"
  19356. static="true" final="true" visibility="public"
  19357. deprecated="not deprecated">
  19358. <doc>
  19359. <![CDATA[{@value}.]]>
  19360. </doc>
  19361. </field>
  19362. <field name="OP_GET_FILE_STATUS" type="java.lang.String"
  19363. transient="false" volatile="false"
  19364. static="true" final="true" visibility="public"
  19365. deprecated="not deprecated">
  19366. <doc>
  19367. <![CDATA[{@value}.]]>
  19368. </doc>
  19369. </field>
  19370. <field name="OP_GET_STATUS" type="java.lang.String"
  19371. transient="false" volatile="false"
  19372. static="true" final="true" visibility="public"
  19373. deprecated="not deprecated">
  19374. <doc>
  19375. <![CDATA[{@value}.]]>
  19376. </doc>
  19377. </field>
  19378. <field name="OP_GLOB_STATUS" type="java.lang.String"
  19379. transient="false" volatile="false"
  19380. static="true" final="true" visibility="public"
  19381. deprecated="not deprecated">
  19382. <doc>
  19383. <![CDATA[{@value}.]]>
  19384. </doc>
  19385. </field>
  19386. <field name="OP_IS_FILE" type="java.lang.String"
  19387. transient="false" volatile="false"
  19388. static="true" final="true" visibility="public"
  19389. deprecated="not deprecated">
  19390. <doc>
  19391. <![CDATA[{@value}.]]>
  19392. </doc>
  19393. </field>
  19394. <field name="OP_HFLUSH" type="java.lang.String"
  19395. transient="false" volatile="false"
  19396. static="true" final="true" visibility="public"
  19397. deprecated="not deprecated">
  19398. <doc>
  19399. <![CDATA[{@value}.]]>
  19400. </doc>
  19401. </field>
  19402. <field name="OP_HSYNC" type="java.lang.String"
  19403. transient="false" volatile="false"
  19404. static="true" final="true" visibility="public"
  19405. deprecated="not deprecated">
  19406. <doc>
  19407. <![CDATA[{@value}.]]>
  19408. </doc>
  19409. </field>
  19410. <field name="OP_IS_DIRECTORY" type="java.lang.String"
  19411. transient="false" volatile="false"
  19412. static="true" final="true" visibility="public"
  19413. deprecated="not deprecated">
  19414. <doc>
  19415. <![CDATA[{@value}.]]>
  19416. </doc>
  19417. </field>
  19418. <field name="OP_LIST_FILES" type="java.lang.String"
  19419. transient="false" volatile="false"
  19420. static="true" final="true" visibility="public"
  19421. deprecated="not deprecated">
  19422. <doc>
  19423. <![CDATA[{@value}.]]>
  19424. </doc>
  19425. </field>
  19426. <field name="OP_LIST_LOCATED_STATUS" type="java.lang.String"
  19427. transient="false" volatile="false"
  19428. static="true" final="true" visibility="public"
  19429. deprecated="not deprecated">
  19430. <doc>
  19431. <![CDATA[{@value}.]]>
  19432. </doc>
  19433. </field>
  19434. <field name="OP_LIST_STATUS" type="java.lang.String"
  19435. transient="false" volatile="false"
  19436. static="true" final="true" visibility="public"
  19437. deprecated="not deprecated">
  19438. <doc>
  19439. <![CDATA[{@value}.]]>
  19440. </doc>
  19441. </field>
  19442. <field name="OP_MKDIRS" type="java.lang.String"
  19443. transient="false" volatile="false"
  19444. static="true" final="true" visibility="public"
  19445. deprecated="not deprecated">
  19446. <doc>
  19447. <![CDATA[{@value}.]]>
  19448. </doc>
  19449. </field>
  19450. <field name="OP_MODIFY_ACL_ENTRIES" type="java.lang.String"
  19451. transient="false" volatile="false"
  19452. static="true" final="true" visibility="public"
  19453. deprecated="not deprecated">
  19454. <doc>
  19455. <![CDATA[{@value}.]]>
  19456. </doc>
  19457. </field>
  19458. <field name="OP_MSYNC" type="java.lang.String"
  19459. transient="false" volatile="false"
  19460. static="true" final="true" visibility="public"
  19461. deprecated="not deprecated">
  19462. <doc>
  19463. <![CDATA[{@value}.]]>
  19464. </doc>
  19465. </field>
  19466. <field name="OP_OPEN" type="java.lang.String"
  19467. transient="false" volatile="false"
  19468. static="true" final="true" visibility="public"
  19469. deprecated="not deprecated">
  19470. <doc>
  19471. <![CDATA[{@value}.]]>
  19472. </doc>
  19473. </field>
  19474. <field name="OP_OPENFILE" type="java.lang.String"
  19475. transient="false" volatile="false"
  19476. static="true" final="true" visibility="public"
  19477. deprecated="not deprecated">
  19478. <doc>
  19479. <![CDATA[Call to openFile() {@value}.]]>
  19480. </doc>
  19481. </field>
  19482. <field name="OP_REMOVE_ACL" type="java.lang.String"
  19483. transient="false" volatile="false"
  19484. static="true" final="true" visibility="public"
  19485. deprecated="not deprecated">
  19486. <doc>
  19487. <![CDATA[{@value}.]]>
  19488. </doc>
  19489. </field>
  19490. <field name="OP_REMOVE_ACL_ENTRIES" type="java.lang.String"
  19491. transient="false" volatile="false"
  19492. static="true" final="true" visibility="public"
  19493. deprecated="not deprecated">
  19494. <doc>
  19495. <![CDATA[{@value}.]]>
  19496. </doc>
  19497. </field>
  19498. <field name="OP_REMOVE_DEFAULT_ACL" type="java.lang.String"
  19499. transient="false" volatile="false"
  19500. static="true" final="true" visibility="public"
  19501. deprecated="not deprecated">
  19502. <doc>
  19503. <![CDATA[{@value}.]]>
  19504. </doc>
  19505. </field>
  19506. <field name="OP_RENAME" type="java.lang.String"
  19507. transient="false" volatile="false"
  19508. static="true" final="true" visibility="public"
  19509. deprecated="not deprecated">
  19510. <doc>
  19511. <![CDATA[{@value}.]]>
  19512. </doc>
  19513. </field>
  19514. <field name="OP_SET_ACL" type="java.lang.String"
  19515. transient="false" volatile="false"
  19516. static="true" final="true" visibility="public"
  19517. deprecated="not deprecated">
  19518. <doc>
  19519. <![CDATA[{@value}.]]>
  19520. </doc>
  19521. </field>
  19522. <field name="OP_SET_OWNER" type="java.lang.String"
  19523. transient="false" volatile="false"
  19524. static="true" final="true" visibility="public"
  19525. deprecated="not deprecated">
  19526. <doc>
  19527. <![CDATA[{@value}.]]>
  19528. </doc>
  19529. </field>
  19530. <field name="OP_SET_PERMISSION" type="java.lang.String"
  19531. transient="false" volatile="false"
  19532. static="true" final="true" visibility="public"
  19533. deprecated="not deprecated">
  19534. <doc>
  19535. <![CDATA[{@value}.]]>
  19536. </doc>
  19537. </field>
  19538. <field name="OP_SET_TIMES" type="java.lang.String"
  19539. transient="false" volatile="false"
  19540. static="true" final="true" visibility="public"
  19541. deprecated="not deprecated">
  19542. <doc>
  19543. <![CDATA[{@value}.]]>
  19544. </doc>
  19545. </field>
  19546. <field name="OP_TRUNCATE" type="java.lang.String"
  19547. transient="false" volatile="false"
  19548. static="true" final="true" visibility="public"
  19549. deprecated="not deprecated">
  19550. <doc>
  19551. <![CDATA[{@value}.]]>
  19552. </doc>
  19553. </field>
  19554. <field name="OP_XATTR_GET_MAP" type="java.lang.String"
  19555. transient="false" volatile="false"
  19556. static="true" final="true" visibility="public"
  19557. deprecated="not deprecated">
  19558. <doc>
  19559. <![CDATA[Invoke {@code getXAttrs(Path path)}: {@value}.]]>
  19560. </doc>
  19561. </field>
  19562. <field name="OP_XATTR_GET_NAMED" type="java.lang.String"
  19563. transient="false" volatile="false"
  19564. static="true" final="true" visibility="public"
  19565. deprecated="not deprecated">
  19566. <doc>
  19567. <![CDATA[Invoke {@code getXAttr(Path, String)}: {@value}.]]>
  19568. </doc>
  19569. </field>
  19570. <field name="OP_XATTR_GET_NAMED_MAP" type="java.lang.String"
  19571. transient="false" volatile="false"
  19572. static="true" final="true" visibility="public"
  19573. deprecated="not deprecated">
  19574. <doc>
  19575. <![CDATA[Invoke {@code getXAttrs(Path path, List<String> names)}: {@value}.]]>
  19576. </doc>
  19577. </field>
  19578. <field name="OP_XATTR_LIST" type="java.lang.String"
  19579. transient="false" volatile="false"
  19580. static="true" final="true" visibility="public"
  19581. deprecated="not deprecated">
  19582. <doc>
  19583. <![CDATA[Invoke {@code listXAttrs(Path path)}: {@value}.]]>
  19584. </doc>
  19585. </field>
  19586. <field name="DELEGATION_TOKENS_ISSUED" type="java.lang.String"
  19587. transient="false" volatile="false"
  19588. static="true" final="true" visibility="public"
  19589. deprecated="not deprecated">
  19590. <doc>
  19591. <![CDATA[{@value}.]]>
  19592. </doc>
  19593. </field>
  19594. <field name="STORE_EXISTS_PROBE" type="java.lang.String"
  19595. transient="false" volatile="false"
  19596. static="true" final="true" visibility="public"
  19597. deprecated="not deprecated">
  19598. <doc>
  19599. <![CDATA[Probe for store existing: {@value}.]]>
  19600. </doc>
  19601. </field>
  19602. <field name="STORE_IO_THROTTLED" type="java.lang.String"
  19603. transient="false" volatile="false"
  19604. static="true" final="true" visibility="public"
  19605. deprecated="not deprecated">
  19606. <doc>
  19607. <![CDATA[Requests throttled and retried: {@value}.]]>
  19608. </doc>
  19609. </field>
  19610. <field name="STORE_IO_RATE_LIMITED" type="java.lang.String"
  19611. transient="false" volatile="false"
  19612. static="true" final="true" visibility="public"
  19613. deprecated="not deprecated">
  19614. <doc>
  19615. <![CDATA[Rate limiting was reported {@value}.]]>
  19616. </doc>
  19617. </field>
  19618. <field name="STORE_IO_REQUEST" type="java.lang.String"
  19619. transient="false" volatile="false"
  19620. static="true" final="true" visibility="public"
  19621. deprecated="not deprecated">
  19622. <doc>
  19623. <![CDATA[Requests made of a store: {@value}.]]>
  19624. </doc>
  19625. </field>
  19626. <field name="STORE_IO_RETRY" type="java.lang.String"
  19627. transient="false" volatile="false"
  19628. static="true" final="true" visibility="public"
  19629. deprecated="not deprecated">
  19630. <doc>
  19631. <![CDATA[IO retried: {@value}.]]>
  19632. </doc>
  19633. </field>
  19634. <field name="OBJECT_LIST_REQUEST" type="java.lang.String"
  19635. transient="false" volatile="false"
  19636. static="true" final="true" visibility="public"
  19637. deprecated="not deprecated">
  19638. <doc>
  19639. <![CDATA[A store's equivalent of a paged LIST request was initiated: {@value}.]]>
  19640. </doc>
  19641. </field>
  19642. <field name="OBJECT_CONTINUE_LIST_REQUEST" type="java.lang.String"
  19643. transient="false" volatile="false"
  19644. static="true" final="true" visibility="public"
  19645. deprecated="not deprecated">
  19646. <doc>
  19647. <![CDATA[Number of continued object listings made.
  19648. Value :{@value}.]]>
  19649. </doc>
  19650. </field>
  19651. <field name="OBJECT_BULK_DELETE_REQUEST" type="java.lang.String"
  19652. transient="false" volatile="false"
  19653. static="true" final="true" visibility="public"
  19654. deprecated="not deprecated">
  19655. <doc>
  19656. <![CDATA[A bulk DELETE request was made: {@value}.
  19657. A separate statistic from {@link #OBJECT_DELETE_REQUEST}
  19658. so that metrics on duration of the operations can
  19659. be distinguished.]]>
  19660. </doc>
  19661. </field>
  19662. <field name="OBJECT_DELETE_REQUEST" type="java.lang.String"
  19663. transient="false" volatile="false"
  19664. static="true" final="true" visibility="public"
  19665. deprecated="not deprecated">
  19666. <doc>
  19667. <![CDATA[A store's equivalent of a DELETE request was made: {@value}.
  19668. This may be an HTTP DELETE verb, or it may be some custom
  19669. operation which takes a list of objects to delete.]]>
  19670. </doc>
  19671. </field>
  19672. <field name="OBJECT_DELETE_OBJECTS" type="java.lang.String"
  19673. transient="false" volatile="false"
  19674. static="true" final="true" visibility="public"
  19675. deprecated="not deprecated">
  19676. <doc>
  19677. <![CDATA[The count of objects deleted in delete requests.]]>
  19678. </doc>
  19679. </field>
  19680. <field name="OBJECT_MULTIPART_UPLOAD_INITIATED" type="java.lang.String"
  19681. transient="false" volatile="false"
  19682. static="true" final="true" visibility="public"
  19683. deprecated="not deprecated">
  19684. <doc>
  19685. <![CDATA[Object multipart upload initiated.
  19686. Value :{@value}.]]>
  19687. </doc>
  19688. </field>
  19689. <field name="OBJECT_MULTIPART_UPLOAD_ABORTED" type="java.lang.String"
  19690. transient="false" volatile="false"
  19691. static="true" final="true" visibility="public"
  19692. deprecated="not deprecated">
  19693. <doc>
  19694. <![CDATA[Object multipart upload aborted.
  19695. Value :{@value}.]]>
  19696. </doc>
  19697. </field>
  19698. <field name="OBJECT_PUT_REQUEST" type="java.lang.String"
  19699. transient="false" volatile="false"
  19700. static="true" final="true" visibility="public"
  19701. deprecated="not deprecated">
  19702. <doc>
  19703. <![CDATA[Object put/multipart upload count.
  19704. Value :{@value}.]]>
  19705. </doc>
  19706. </field>
  19707. <field name="OBJECT_PUT_REQUEST_COMPLETED" type="java.lang.String"
  19708. transient="false" volatile="false"
  19709. static="true" final="true" visibility="public"
  19710. deprecated="not deprecated">
  19711. <doc>
  19712. <![CDATA[Object put/multipart upload completed count.
  19713. Value :{@value}.]]>
  19714. </doc>
  19715. </field>
  19716. <field name="OBJECT_PUT_REQUEST_ACTIVE" type="java.lang.String"
  19717. transient="false" volatile="false"
  19718. static="true" final="true" visibility="public"
  19719. deprecated="not deprecated">
  19720. <doc>
  19721. <![CDATA[Current number of active put requests.
  19722. Value :{@value}.]]>
  19723. </doc>
  19724. </field>
  19725. <field name="OBJECT_PUT_BYTES" type="java.lang.String"
  19726. transient="false" volatile="false"
  19727. static="true" final="true" visibility="public"
  19728. deprecated="not deprecated">
  19729. <doc>
  19730. <![CDATA[number of bytes uploaded.
  19731. Value :{@value}.]]>
  19732. </doc>
  19733. </field>
  19734. <field name="OBJECT_PUT_BYTES_PENDING" type="java.lang.String"
  19735. transient="false" volatile="false"
  19736. static="true" final="true" visibility="public"
  19737. deprecated="not deprecated">
  19738. <doc>
  19739. <![CDATA[number of bytes queued for upload/being actively uploaded.
  19740. Value :{@value}.]]>
  19741. </doc>
  19742. </field>
  19743. <field name="OBJECT_SELECT_REQUESTS" type="java.lang.String"
  19744. transient="false" volatile="false"
  19745. static="true" final="true" visibility="public"
  19746. deprecated="not deprecated">
  19747. <doc>
  19748. <![CDATA[Count of S3 Select (or similar) requests issued.
  19749. Value :{@value}.]]>
  19750. </doc>
  19751. </field>
  19752. <field name="SUFFIX_MIN" type="java.lang.String"
  19753. transient="false" volatile="false"
  19754. static="true" final="true" visibility="public"
  19755. deprecated="not deprecated">
  19756. <doc>
  19757. <![CDATA[Suffix to use for a minimum value when
  19758. the same key is shared across min/mean/max
  19759. statistics.
  19760. Value {@value}.]]>
  19761. </doc>
  19762. </field>
  19763. <field name="SUFFIX_MAX" type="java.lang.String"
  19764. transient="false" volatile="false"
  19765. static="true" final="true" visibility="public"
  19766. deprecated="not deprecated">
  19767. <doc>
  19768. <![CDATA[Suffix to use for a maximum value when
  19769. the same key is shared across max/mean/max
  19770. statistics.
  19771. Value {@value}.]]>
  19772. </doc>
  19773. </field>
  19774. <field name="SUFFIX_MEAN" type="java.lang.String"
  19775. transient="false" volatile="false"
  19776. static="true" final="true" visibility="public"
  19777. deprecated="not deprecated">
  19778. <doc>
  19779. <![CDATA[Suffix to use for a mean statistic value when
  19780. the same key is shared across mean/mean/max
  19781. statistics.
  19782. Value {@value}.]]>
  19783. </doc>
  19784. </field>
  19785. <field name="SUFFIX_FAILURES" type="java.lang.String"
  19786. transient="false" volatile="false"
  19787. static="true" final="true" visibility="public"
  19788. deprecated="not deprecated">
  19789. <doc>
  19790. <![CDATA[String to add to counters and other stats to track failures.
  19791. This comes before the .min/.mean//max suffixes.
  19792. Value {@value}.]]>
  19793. </doc>
  19794. </field>
  19795. <field name="ACTION_EXECUTOR_ACQUIRED" type="java.lang.String"
  19796. transient="false" volatile="false"
  19797. static="true" final="true" visibility="public"
  19798. deprecated="not deprecated">
  19799. <doc>
  19800. <![CDATA[The name of the statistic collected for executor acquisition if
  19801. a duration tracker factory is passed in to the constructor.
  19802. {@value}.]]>
  19803. </doc>
  19804. </field>
  19805. <field name="ACTION_FILE_OPENED" type="java.lang.String"
  19806. transient="false" volatile="false"
  19807. static="true" final="true" visibility="public"
  19808. deprecated="not deprecated">
  19809. <doc>
  19810. <![CDATA[A file was opened: {@value}.]]>
  19811. </doc>
  19812. </field>
  19813. <field name="ACTION_HTTP_HEAD_REQUEST" type="java.lang.String"
  19814. transient="false" volatile="false"
  19815. static="true" final="true" visibility="public"
  19816. deprecated="not deprecated">
  19817. <doc>
  19818. <![CDATA[An HTTP HEAD request was made: {@value}.]]>
  19819. </doc>
  19820. </field>
  19821. <field name="ACTION_HTTP_GET_REQUEST" type="java.lang.String"
  19822. transient="false" volatile="false"
  19823. static="true" final="true" visibility="public"
  19824. deprecated="not deprecated">
  19825. <doc>
  19826. <![CDATA[An HTTP GET request was made: {@value}.]]>
  19827. </doc>
  19828. </field>
  19829. <field name="ACTION_HTTP_DELETE_REQUEST" type="java.lang.String"
  19830. transient="false" volatile="false"
  19831. static="true" final="true" visibility="public"
  19832. deprecated="not deprecated">
  19833. <doc>
  19834. <![CDATA[An HTTP DELETE request was made: {@value}.]]>
  19835. </doc>
  19836. </field>
  19837. <field name="ACTION_HTTP_PUT_REQUEST" type="java.lang.String"
  19838. transient="false" volatile="false"
  19839. static="true" final="true" visibility="public"
  19840. deprecated="not deprecated">
  19841. <doc>
  19842. <![CDATA[An HTTP PUT request was made: {@value}.]]>
  19843. </doc>
  19844. </field>
  19845. <field name="ACTION_HTTP_PATCH_REQUEST" type="java.lang.String"
  19846. transient="false" volatile="false"
  19847. static="true" final="true" visibility="public"
  19848. deprecated="not deprecated">
  19849. <doc>
  19850. <![CDATA[An HTTP PATCH request was made: {@value}.]]>
  19851. </doc>
  19852. </field>
  19853. <field name="ACTION_HTTP_POST_REQUEST" type="java.lang.String"
  19854. transient="false" volatile="false"
  19855. static="true" final="true" visibility="public"
  19856. deprecated="not deprecated">
  19857. <doc>
  19858. <![CDATA[An HTTP POST request was made: {@value}.]]>
  19859. </doc>
  19860. </field>
  19861. <field name="OBJECT_METADATA_REQUESTS" type="java.lang.String"
  19862. transient="false" volatile="false"
  19863. static="true" final="true" visibility="public"
  19864. deprecated="not deprecated">
  19865. <doc>
  19866. <![CDATA[An HTTP HEAD request was made: {@value}.]]>
  19867. </doc>
  19868. </field>
  19869. <field name="OBJECT_COPY_REQUESTS" type="java.lang.String"
  19870. transient="false" volatile="false"
  19871. static="true" final="true" visibility="public"
  19872. deprecated="not deprecated">
  19873. </field>
  19874. <field name="STORE_IO_THROTTLE_RATE" type="java.lang.String"
  19875. transient="false" volatile="false"
  19876. static="true" final="true" visibility="public"
  19877. deprecated="not deprecated">
  19878. </field>
  19879. <field name="MULTIPART_UPLOAD_INSTANTIATED" type="java.lang.String"
  19880. transient="false" volatile="false"
  19881. static="true" final="true" visibility="public"
  19882. deprecated="not deprecated">
  19883. </field>
  19884. <field name="MULTIPART_UPLOAD_PART_PUT" type="java.lang.String"
  19885. transient="false" volatile="false"
  19886. static="true" final="true" visibility="public"
  19887. deprecated="not deprecated">
  19888. </field>
  19889. <field name="MULTIPART_UPLOAD_PART_PUT_BYTES" type="java.lang.String"
  19890. transient="false" volatile="false"
  19891. static="true" final="true" visibility="public"
  19892. deprecated="not deprecated">
  19893. </field>
  19894. <field name="MULTIPART_UPLOAD_ABORTED" type="java.lang.String"
  19895. transient="false" volatile="false"
  19896. static="true" final="true" visibility="public"
  19897. deprecated="not deprecated">
  19898. </field>
  19899. <field name="MULTIPART_UPLOAD_ABORT_UNDER_PATH_INVOKED" type="java.lang.String"
  19900. transient="false" volatile="false"
  19901. static="true" final="true" visibility="public"
  19902. deprecated="not deprecated">
  19903. </field>
  19904. <field name="MULTIPART_UPLOAD_COMPLETED" type="java.lang.String"
  19905. transient="false" volatile="false"
  19906. static="true" final="true" visibility="public"
  19907. deprecated="not deprecated">
  19908. </field>
  19909. <field name="MULTIPART_UPLOAD_STARTED" type="java.lang.String"
  19910. transient="false" volatile="false"
  19911. static="true" final="true" visibility="public"
  19912. deprecated="not deprecated">
  19913. </field>
  19914. <field name="MULTIPART_UPLOAD_LIST" type="java.lang.String"
  19915. transient="false" volatile="false"
  19916. static="true" final="true" visibility="public"
  19917. deprecated="not deprecated">
  19918. </field>
  19919. <doc>
  19920. <![CDATA[Common statistic names for object store operations..
  19921. <p>
  19922. When adding new common statistic name constants, please make them unique.
  19923. By convention:
  19924. </p>
  19925. <ul>
  19926. <li>the name of the constants are uppercase, words separated by
  19927. underscores.</li>
  19928. <li>the value of the constants are lowercase of the constant names.</li>
  19929. </ul>]]>
  19930. </doc>
  19931. </class>
  19932. <!-- end class org.apache.hadoop.fs.statistics.StoreStatisticNames -->
  19933. <!-- start class org.apache.hadoop.fs.statistics.StreamStatisticNames -->
  19934. <class name="StreamStatisticNames" extends="java.lang.Object"
  19935. abstract="false"
  19936. static="false" final="true" visibility="public"
  19937. deprecated="not deprecated">
  19938. <field name="STREAM_READ_ABORTED" type="java.lang.String"
  19939. transient="false" volatile="false"
  19940. static="true" final="true" visibility="public"
  19941. deprecated="not deprecated">
  19942. <doc>
  19943. <![CDATA[Count of times the TCP stream was aborted.
  19944. Value: {@value}.]]>
  19945. </doc>
  19946. </field>
  19947. <field name="STREAM_READ_BYTES" type="java.lang.String"
  19948. transient="false" volatile="false"
  19949. static="true" final="true" visibility="public"
  19950. deprecated="not deprecated">
  19951. <doc>
  19952. <![CDATA[Bytes read from an input stream in read()/readVectored() calls.
  19953. Does not include bytes read and then discarded in seek/close etc.
  19954. These are the bytes returned to the caller.
  19955. Value: {@value}.]]>
  19956. </doc>
  19957. </field>
  19958. <field name="STREAM_READ_BYTES_DISCARDED_ABORT" type="java.lang.String"
  19959. transient="false" volatile="false"
  19960. static="true" final="true" visibility="public"
  19961. deprecated="not deprecated">
  19962. <doc>
  19963. <![CDATA[Count of bytes discarded by aborting an input stream .
  19964. Value: {@value}.]]>
  19965. </doc>
  19966. </field>
  19967. <field name="STREAM_READ_BYTES_DISCARDED_CLOSE" type="java.lang.String"
  19968. transient="false" volatile="false"
  19969. static="true" final="true" visibility="public"
  19970. deprecated="not deprecated">
  19971. <doc>
  19972. <![CDATA[Count of bytes read and discarded when closing an input stream.
  19973. Value: {@value}.]]>
  19974. </doc>
  19975. </field>
  19976. <field name="STREAM_READ_CLOSED" type="java.lang.String"
  19977. transient="false" volatile="false"
  19978. static="true" final="true" visibility="public"
  19979. deprecated="not deprecated">
  19980. <doc>
  19981. <![CDATA[Count of times the TCP stream was closed.
  19982. Value: {@value}.]]>
  19983. </doc>
  19984. </field>
  19985. <field name="STREAM_READ_CLOSE_OPERATIONS" type="java.lang.String"
  19986. transient="false" volatile="false"
  19987. static="true" final="true" visibility="public"
  19988. deprecated="not deprecated">
  19989. <doc>
  19990. <![CDATA[Total count of times an attempt to close an input stream was made.
  19991. Value: {@value}.]]>
  19992. </doc>
  19993. </field>
  19994. <field name="STREAM_READ_OPENED" type="java.lang.String"
  19995. transient="false" volatile="false"
  19996. static="true" final="true" visibility="public"
  19997. deprecated="not deprecated">
  19998. <doc>
  19999. <![CDATA[Total count of times an input stream to was opened.
  20000. For object stores, that means the count a GET request was initiated.
  20001. Value: {@value}.]]>
  20002. </doc>
  20003. </field>
  20004. <field name="STREAM_READ_EXCEPTIONS" type="java.lang.String"
  20005. transient="false" volatile="false"
  20006. static="true" final="true" visibility="public"
  20007. deprecated="not deprecated">
  20008. <doc>
  20009. <![CDATA[Count of exceptions raised during input stream reads.
  20010. Value: {@value}.]]>
  20011. </doc>
  20012. </field>
  20013. <field name="STREAM_READ_FULLY_OPERATIONS" type="java.lang.String"
  20014. transient="false" volatile="false"
  20015. static="true" final="true" visibility="public"
  20016. deprecated="not deprecated">
  20017. <doc>
  20018. <![CDATA[Count of readFully() operations in an input stream.
  20019. Value: {@value}.]]>
  20020. </doc>
  20021. </field>
  20022. <field name="STREAM_READ_OPERATIONS" type="java.lang.String"
  20023. transient="false" volatile="false"
  20024. static="true" final="true" visibility="public"
  20025. deprecated="not deprecated">
  20026. <doc>
  20027. <![CDATA[Count of read() operations in an input stream.
  20028. Value: {@value}.]]>
  20029. </doc>
  20030. </field>
  20031. <field name="STREAM_READ_VECTORED_OPERATIONS" type="java.lang.String"
  20032. transient="false" volatile="false"
  20033. static="true" final="true" visibility="public"
  20034. deprecated="not deprecated">
  20035. <doc>
  20036. <![CDATA[Count of readVectored() operations in an input stream.
  20037. Value: {@value}.]]>
  20038. </doc>
  20039. </field>
  20040. <field name="STREAM_READ_VECTORED_READ_BYTES_DISCARDED" type="java.lang.String"
  20041. transient="false" volatile="false"
  20042. static="true" final="true" visibility="public"
  20043. deprecated="not deprecated">
  20044. <doc>
  20045. <![CDATA[Count of bytes discarded during readVectored() operation
  20046. in an input stream.
  20047. Value: {@value}.]]>
  20048. </doc>
  20049. </field>
  20050. <field name="STREAM_READ_VECTORED_INCOMING_RANGES" type="java.lang.String"
  20051. transient="false" volatile="false"
  20052. static="true" final="true" visibility="public"
  20053. deprecated="not deprecated">
  20054. <doc>
  20055. <![CDATA[Count of incoming file ranges during readVectored() operation.
  20056. Value: {@value}]]>
  20057. </doc>
  20058. </field>
  20059. <field name="STREAM_READ_VECTORED_COMBINED_RANGES" type="java.lang.String"
  20060. transient="false" volatile="false"
  20061. static="true" final="true" visibility="public"
  20062. deprecated="not deprecated">
  20063. <doc>
  20064. <![CDATA[Count of combined file ranges during readVectored() operation.
  20065. Value: {@value}]]>
  20066. </doc>
  20067. </field>
  20068. <field name="STREAM_READ_OPERATIONS_INCOMPLETE" type="java.lang.String"
  20069. transient="false" volatile="false"
  20070. static="true" final="true" visibility="public"
  20071. deprecated="not deprecated">
  20072. <doc>
  20073. <![CDATA[Count of incomplete read() operations in an input stream,
  20074. that is, when the bytes returned were less than that requested.
  20075. Value: {@value}.]]>
  20076. </doc>
  20077. </field>
  20078. <field name="STREAM_READ_REMOTE_STREAM_ABORTED" type="java.lang.String"
  20079. transient="false" volatile="false"
  20080. static="true" final="true" visibility="public"
  20081. deprecated="not deprecated">
  20082. <doc>
  20083. <![CDATA[count/duration of aborting a remote stream during stream IO
  20084. IO.
  20085. Value: {@value}.]]>
  20086. </doc>
  20087. </field>
  20088. <field name="STREAM_READ_REMOTE_STREAM_DRAINED" type="java.lang.String"
  20089. transient="false" volatile="false"
  20090. static="true" final="true" visibility="public"
  20091. deprecated="not deprecated">
  20092. <doc>
  20093. <![CDATA[count/duration of closing a remote stream,
  20094. possibly including draining the stream to recycle
  20095. the HTTP connection.
  20096. Value: {@value}.]]>
  20097. </doc>
  20098. </field>
  20099. <field name="STREAM_READ_VERSION_MISMATCHES" type="java.lang.String"
  20100. transient="false" volatile="false"
  20101. static="true" final="true" visibility="public"
  20102. deprecated="not deprecated">
  20103. <doc>
  20104. <![CDATA[Count of version mismatches encountered while reading an input stream.
  20105. Value: {@value}.]]>
  20106. </doc>
  20107. </field>
  20108. <field name="STREAM_READ_SEEK_BACKWARD_OPERATIONS" type="java.lang.String"
  20109. transient="false" volatile="false"
  20110. static="true" final="true" visibility="public"
  20111. deprecated="not deprecated">
  20112. <doc>
  20113. <![CDATA[Count of executed seek operations which went backwards in a stream.
  20114. Value: {@value}.]]>
  20115. </doc>
  20116. </field>
  20117. <field name="STREAM_READ_SEEK_BYTES_BACKWARDS" type="java.lang.String"
  20118. transient="false" volatile="false"
  20119. static="true" final="true" visibility="public"
  20120. deprecated="not deprecated">
  20121. <doc>
  20122. <![CDATA[Count of bytes moved backwards during seek operations
  20123. in an input stream.
  20124. Value: {@value}.]]>
  20125. </doc>
  20126. </field>
  20127. <field name="STREAM_READ_SEEK_BYTES_DISCARDED" type="java.lang.String"
  20128. transient="false" volatile="false"
  20129. static="true" final="true" visibility="public"
  20130. deprecated="not deprecated">
  20131. <doc>
  20132. <![CDATA[Count of bytes read and discarded during seek() in an input stream.
  20133. Value: {@value}.]]>
  20134. </doc>
  20135. </field>
  20136. <field name="STREAM_READ_SEEK_BYTES_SKIPPED" type="java.lang.String"
  20137. transient="false" volatile="false"
  20138. static="true" final="true" visibility="public"
  20139. deprecated="not deprecated">
  20140. <doc>
  20141. <![CDATA[Count of bytes skipped during forward seek operations.
  20142. Value: {@value}.]]>
  20143. </doc>
  20144. </field>
  20145. <field name="STREAM_READ_SEEK_FORWARD_OPERATIONS" type="java.lang.String"
  20146. transient="false" volatile="false"
  20147. static="true" final="true" visibility="public"
  20148. deprecated="not deprecated">
  20149. <doc>
  20150. <![CDATA[Count of executed seek operations which went forward in
  20151. an input stream.
  20152. Value: {@value}.]]>
  20153. </doc>
  20154. </field>
  20155. <field name="STREAM_READ_SEEK_POLICY_CHANGED" type="java.lang.String"
  20156. transient="false" volatile="false"
  20157. static="true" final="true" visibility="public"
  20158. deprecated="not deprecated">
  20159. <doc>
  20160. <![CDATA[Count of times the seek policy was dynamically changed
  20161. in an input stream.
  20162. Value: {@value}.]]>
  20163. </doc>
  20164. </field>
  20165. <field name="STREAM_READ_SEEK_OPERATIONS" type="java.lang.String"
  20166. transient="false" volatile="false"
  20167. static="true" final="true" visibility="public"
  20168. deprecated="not deprecated">
  20169. <doc>
  20170. <![CDATA[Count of seek operations in an input stream.
  20171. Value: {@value}.]]>
  20172. </doc>
  20173. </field>
  20174. <field name="STREAM_READ_SKIP_OPERATIONS" type="java.lang.String"
  20175. transient="false" volatile="false"
  20176. static="true" final="true" visibility="public"
  20177. deprecated="not deprecated">
  20178. <doc>
  20179. <![CDATA[Count of {@code InputStream.skip()} calls.
  20180. Value: {@value}.]]>
  20181. </doc>
  20182. </field>
  20183. <field name="STREAM_READ_SKIP_BYTES" type="java.lang.String"
  20184. transient="false" volatile="false"
  20185. static="true" final="true" visibility="public"
  20186. deprecated="not deprecated">
  20187. <doc>
  20188. <![CDATA[Count bytes skipped in {@code InputStream.skip()} calls.
  20189. Value: {@value}.]]>
  20190. </doc>
  20191. </field>
  20192. <field name="STREAM_READ_TOTAL_BYTES" type="java.lang.String"
  20193. transient="false" volatile="false"
  20194. static="true" final="true" visibility="public"
  20195. deprecated="not deprecated">
  20196. <doc>
  20197. <![CDATA[Total count of bytes read from an input stream.
  20198. Value: {@value}.]]>
  20199. </doc>
  20200. </field>
  20201. <field name="STREAM_READ_UNBUFFERED" type="java.lang.String"
  20202. transient="false" volatile="false"
  20203. static="true" final="true" visibility="public"
  20204. deprecated="not deprecated">
  20205. <doc>
  20206. <![CDATA[Count of calls of {@code CanUnbuffer.unbuffer()}.
  20207. Value: {@value}.]]>
  20208. </doc>
  20209. </field>
  20210. <field name="STREAM_WRITE_EXCEPTIONS" type="java.lang.String"
  20211. transient="false" volatile="false"
  20212. static="true" final="true" visibility="public"
  20213. deprecated="not deprecated">
  20214. <doc>
  20215. <![CDATA["Count of stream write failures reported.
  20216. Value: {@value}.]]>
  20217. </doc>
  20218. </field>
  20219. <field name="STREAM_WRITE_EXCEPTIONS_COMPLETING_UPLOADS" type="java.lang.String"
  20220. transient="false" volatile="false"
  20221. static="true" final="true" visibility="public"
  20222. deprecated="not deprecated">
  20223. <doc>
  20224. <![CDATA[Count of failures when finalizing a multipart upload:
  20225. {@value}.]]>
  20226. </doc>
  20227. </field>
  20228. <field name="STREAM_WRITE_BLOCK_UPLOADS" type="java.lang.String"
  20229. transient="false" volatile="false"
  20230. static="true" final="true" visibility="public"
  20231. deprecated="not deprecated">
  20232. <doc>
  20233. <![CDATA[Count of block/partition uploads complete.
  20234. Value: {@value}.]]>
  20235. </doc>
  20236. </field>
  20237. <field name="STREAM_WRITE_BLOCK_UPLOADS_ABORTED" type="java.lang.String"
  20238. transient="false" volatile="false"
  20239. static="true" final="true" visibility="public"
  20240. deprecated="not deprecated">
  20241. <doc>
  20242. <![CDATA[Count of number of block uploads aborted.
  20243. Value: {@value}.]]>
  20244. </doc>
  20245. </field>
  20246. <field name="STREAM_WRITE_BLOCK_UPLOADS_ACTIVE" type="java.lang.String"
  20247. transient="false" volatile="false"
  20248. static="true" final="true" visibility="public"
  20249. deprecated="not deprecated">
  20250. <doc>
  20251. <![CDATA[Count of block/partition uploads active.
  20252. Value: {@value}.]]>
  20253. </doc>
  20254. </field>
  20255. <field name="STREAM_WRITE_BLOCK_UPLOADS_BYTES_PENDING" type="java.lang.String"
  20256. transient="false" volatile="false"
  20257. static="true" final="true" visibility="public"
  20258. deprecated="not deprecated">
  20259. <doc>
  20260. <![CDATA[Gauge of data queued to be written.
  20261. Value: {@value}.]]>
  20262. </doc>
  20263. </field>
  20264. <field name="STREAM_WRITE_BLOCK_UPLOADS_COMMITTED" type="java.lang.String"
  20265. transient="false" volatile="false"
  20266. static="true" final="true" visibility="public"
  20267. deprecated="not deprecated">
  20268. <doc>
  20269. <![CDATA[Count of number of block uploads committed.
  20270. Value: {@value}.]]>
  20271. </doc>
  20272. </field>
  20273. <field name="STREAM_WRITE_BLOCK_UPLOADS_PENDING" type="java.lang.String"
  20274. transient="false" volatile="false"
  20275. static="true" final="true" visibility="public"
  20276. deprecated="not deprecated">
  20277. <doc>
  20278. <![CDATA[Gauge of block/partitions uploads queued to be written.
  20279. Value: {@value}.]]>
  20280. </doc>
  20281. </field>
  20282. <field name="STREAM_WRITE_BYTES" type="java.lang.String"
  20283. transient="false" volatile="false"
  20284. static="true" final="true" visibility="public"
  20285. deprecated="not deprecated">
  20286. <doc>
  20287. <![CDATA["Count of bytes written to output stream including all not yet uploaded.
  20288. {@value}.]]>
  20289. </doc>
  20290. </field>
  20291. <field name="STREAM_WRITE_TOTAL_TIME" type="java.lang.String"
  20292. transient="false" volatile="false"
  20293. static="true" final="true" visibility="public"
  20294. deprecated="not deprecated">
  20295. <doc>
  20296. <![CDATA[Count of total time taken for uploads to complete.
  20297. {@value}.]]>
  20298. </doc>
  20299. </field>
  20300. <field name="STREAM_WRITE_QUEUE_DURATION" type="java.lang.String"
  20301. transient="false" volatile="false"
  20302. static="true" final="true" visibility="public"
  20303. deprecated="not deprecated">
  20304. <doc>
  20305. <![CDATA[Total queue duration of all block uploads.
  20306. {@value}.]]>
  20307. </doc>
  20308. </field>
  20309. <field name="STREAM_WRITE_TOTAL_DATA" type="java.lang.String"
  20310. transient="false" volatile="false"
  20311. static="true" final="true" visibility="public"
  20312. deprecated="not deprecated">
  20313. </field>
  20314. <field name="BYTES_TO_UPLOAD" type="java.lang.String"
  20315. transient="false" volatile="false"
  20316. static="true" final="true" visibility="public"
  20317. deprecated="not deprecated">
  20318. <doc>
  20319. <![CDATA[Number of bytes to upload from an OutputStream.]]>
  20320. </doc>
  20321. </field>
  20322. <field name="BYTES_UPLOAD_SUCCESSFUL" type="java.lang.String"
  20323. transient="false" volatile="false"
  20324. static="true" final="true" visibility="public"
  20325. deprecated="not deprecated">
  20326. <doc>
  20327. <![CDATA[Number of bytes uploaded successfully to the object store.]]>
  20328. </doc>
  20329. </field>
  20330. <field name="BYTES_UPLOAD_FAILED" type="java.lang.String"
  20331. transient="false" volatile="false"
  20332. static="true" final="true" visibility="public"
  20333. deprecated="not deprecated">
  20334. <doc>
  20335. <![CDATA[Number of bytes failed to upload to the object store.]]>
  20336. </doc>
  20337. </field>
  20338. <field name="TIME_SPENT_ON_TASK_WAIT" type="java.lang.String"
  20339. transient="false" volatile="false"
  20340. static="true" final="true" visibility="public"
  20341. deprecated="not deprecated">
  20342. <doc>
  20343. <![CDATA[Total time spent on waiting for a task to complete.]]>
  20344. </doc>
  20345. </field>
  20346. <field name="QUEUE_SHRUNK_OPS" type="java.lang.String"
  20347. transient="false" volatile="false"
  20348. static="true" final="true" visibility="public"
  20349. deprecated="not deprecated">
  20350. <doc>
  20351. <![CDATA[Number of task queue shrunk operations.]]>
  20352. </doc>
  20353. </field>
  20354. <field name="WRITE_CURRENT_BUFFER_OPERATIONS" type="java.lang.String"
  20355. transient="false" volatile="false"
  20356. static="true" final="true" visibility="public"
  20357. deprecated="not deprecated">
  20358. <doc>
  20359. <![CDATA[Number of times current buffer is written to the service.]]>
  20360. </doc>
  20361. </field>
  20362. <field name="TIME_SPENT_ON_PUT_REQUEST" type="java.lang.String"
  20363. transient="false" volatile="false"
  20364. static="true" final="true" visibility="public"
  20365. deprecated="not deprecated">
  20366. <doc>
  20367. <![CDATA[Total time spent on completing a PUT request.]]>
  20368. </doc>
  20369. </field>
  20370. <field name="SEEK_IN_BUFFER" type="java.lang.String"
  20371. transient="false" volatile="false"
  20372. static="true" final="true" visibility="public"
  20373. deprecated="not deprecated">
  20374. <doc>
  20375. <![CDATA[Number of seeks in buffer.]]>
  20376. </doc>
  20377. </field>
  20378. <field name="BYTES_READ_BUFFER" type="java.lang.String"
  20379. transient="false" volatile="false"
  20380. static="true" final="true" visibility="public"
  20381. deprecated="not deprecated">
  20382. <doc>
  20383. <![CDATA[Number of bytes read from the buffer.]]>
  20384. </doc>
  20385. </field>
  20386. <field name="REMOTE_READ_OP" type="java.lang.String"
  20387. transient="false" volatile="false"
  20388. static="true" final="true" visibility="public"
  20389. deprecated="not deprecated">
  20390. <doc>
  20391. <![CDATA[Total number of remote read operations performed.]]>
  20392. </doc>
  20393. </field>
  20394. <field name="READ_AHEAD_BYTES_READ" type="java.lang.String"
  20395. transient="false" volatile="false"
  20396. static="true" final="true" visibility="public"
  20397. deprecated="not deprecated">
  20398. <doc>
  20399. <![CDATA[Total number of bytes read from readAhead.]]>
  20400. </doc>
  20401. </field>
  20402. <field name="REMOTE_BYTES_READ" type="java.lang.String"
  20403. transient="false" volatile="false"
  20404. static="true" final="true" visibility="public"
  20405. deprecated="not deprecated">
  20406. <doc>
  20407. <![CDATA[Total number of bytes read from remote operations.]]>
  20408. </doc>
  20409. </field>
  20410. <field name="BLOCKS_ALLOCATED" type="java.lang.String"
  20411. transient="false" volatile="false"
  20412. static="true" final="true" visibility="public"
  20413. deprecated="not deprecated">
  20414. <doc>
  20415. <![CDATA[Total number of Data blocks allocated by an outputStream.]]>
  20416. </doc>
  20417. </field>
  20418. <field name="BLOCKS_RELEASED" type="java.lang.String"
  20419. transient="false" volatile="false"
  20420. static="true" final="true" visibility="public"
  20421. deprecated="not deprecated">
  20422. <doc>
  20423. <![CDATA[Total number of Data blocks released by an outputStream.]]>
  20424. </doc>
  20425. </field>
  20426. <field name="STREAM_READ_PREFETCH_OPERATIONS" type="java.lang.String"
  20427. transient="false" volatile="false"
  20428. static="true" final="true" visibility="public"
  20429. deprecated="not deprecated">
  20430. <doc>
  20431. <![CDATA[Total number of prefetching operations executed.]]>
  20432. </doc>
  20433. </field>
  20434. <field name="STREAM_READ_BLOCKS_IN_FILE_CACHE" type="java.lang.String"
  20435. transient="false" volatile="false"
  20436. static="true" final="true" visibility="public"
  20437. deprecated="not deprecated">
  20438. <doc>
  20439. <![CDATA[Total number of block in disk cache.]]>
  20440. </doc>
  20441. </field>
  20442. <field name="STREAM_READ_ACTIVE_PREFETCH_OPERATIONS" type="java.lang.String"
  20443. transient="false" volatile="false"
  20444. static="true" final="true" visibility="public"
  20445. deprecated="not deprecated">
  20446. <doc>
  20447. <![CDATA[Total number of active prefetch operations.]]>
  20448. </doc>
  20449. </field>
  20450. <field name="STREAM_READ_ACTIVE_MEMORY_IN_USE" type="java.lang.String"
  20451. transient="false" volatile="false"
  20452. static="true" final="true" visibility="public"
  20453. deprecated="not deprecated">
  20454. <doc>
  20455. <![CDATA[Total bytes of memory in use by this input stream.]]>
  20456. </doc>
  20457. </field>
  20458. <field name="STREAM_READ_REMOTE_BLOCK_READ" type="java.lang.String"
  20459. transient="false" volatile="false"
  20460. static="true" final="true" visibility="public"
  20461. deprecated="not deprecated">
  20462. <doc>
  20463. <![CDATA[count/duration of reading a remote block.
  20464. Value: {@value}.]]>
  20465. </doc>
  20466. </field>
  20467. <field name="STREAM_READ_BLOCK_ACQUIRE_AND_READ" type="java.lang.String"
  20468. transient="false" volatile="false"
  20469. static="true" final="true" visibility="public"
  20470. deprecated="not deprecated">
  20471. <doc>
  20472. <![CDATA[count/duration of acquiring a buffer and reading to it.
  20473. Value: {@value}.]]>
  20474. </doc>
  20475. </field>
  20476. <doc>
  20477. <![CDATA[These are common statistic names.
  20478. <p>
  20479. When adding new common statistic name constants, please make them unique.
  20480. By convention, they are implicitly unique:
  20481. <ul>
  20482. <li>
  20483. The name of the constants are uppercase, words separated by
  20484. underscores.
  20485. </li>
  20486. <li>
  20487. The value of the constants are lowercase of the constant names.
  20488. </li>
  20489. </ul>]]>
  20490. </doc>
  20491. </class>
  20492. <!-- end class org.apache.hadoop.fs.statistics.StreamStatisticNames -->
  20493. </package>
  20494. <package name="org.apache.hadoop.ha">
  20495. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  20496. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  20497. abstract="false"
  20498. static="false" final="false" visibility="public"
  20499. deprecated="not deprecated">
  20500. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  20501. static="false" final="false" visibility="public"
  20502. deprecated="not deprecated">
  20503. </constructor>
  20504. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  20505. static="false" final="false" visibility="public"
  20506. deprecated="not deprecated">
  20507. </constructor>
  20508. <doc>
  20509. <![CDATA[Indicates that the operator has specified an invalid configuration
  20510. for fencing methods.]]>
  20511. </doc>
  20512. </class>
  20513. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  20514. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  20515. <class name="FailoverFailedException" extends="java.lang.Exception"
  20516. abstract="false"
  20517. static="false" final="false" visibility="public"
  20518. deprecated="not deprecated">
  20519. <constructor name="FailoverFailedException" type="java.lang.String"
  20520. static="false" final="false" visibility="public"
  20521. deprecated="not deprecated">
  20522. </constructor>
  20523. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  20524. static="false" final="false" visibility="public"
  20525. deprecated="not deprecated">
  20526. </constructor>
  20527. <doc>
  20528. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  20529. </doc>
  20530. </class>
  20531. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  20532. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  20533. <interface name="FenceMethod" abstract="true"
  20534. static="false" final="false" visibility="public"
  20535. deprecated="not deprecated">
  20536. <method name="checkArgs"
  20537. abstract="true" native="false" synchronized="false"
  20538. static="false" final="false" visibility="public"
  20539. deprecated="not deprecated">
  20540. <param name="args" type="java.lang.String"/>
  20541. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  20542. <doc>
  20543. <![CDATA[Verify that the given fencing method's arguments are valid.
  20544. @param args the arguments provided in the configuration. This may
  20545. be null if the operator did not configure any arguments.
  20546. @throws BadFencingConfigurationException if the arguments are invalid]]>
  20547. </doc>
  20548. </method>
  20549. <method name="tryFence" return="boolean"
  20550. abstract="true" native="false" synchronized="false"
  20551. static="false" final="false" visibility="public"
  20552. deprecated="not deprecated">
  20553. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  20554. <param name="args" type="java.lang.String"/>
  20555. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  20556. <doc>
  20557. <![CDATA[Attempt to fence the target node.
  20558. @param target the target of the service to fence
  20559. @param args the configured arguments, which were checked at startup by
  20560. {@link #checkArgs(String)}
  20561. @return true if fencing was successful, false if unsuccessful or
  20562. indeterminate
  20563. @throws BadFencingConfigurationException if the configuration was
  20564. determined to be invalid only at runtime]]>
  20565. </doc>
  20566. </method>
  20567. <doc>
  20568. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  20569. another node from making continued progress. This might be implemented
  20570. by killing a process on the other node, by denying the other node's
  20571. access to shared storage, or by accessing a PDU to cut the other node's
  20572. power.
  20573. <p>
  20574. Since these methods are often vendor- or device-specific, operators
  20575. may implement this interface in order to achieve fencing.
  20576. <p>
  20577. Fencing is configured by the operator as an ordered list of methods to
  20578. attempt. Each method will be tried in turn, and the next in the list
  20579. will only be attempted if the previous one fails. See {@link NodeFencer}
  20580. for more information.
  20581. <p>
  20582. If an implementation also implements {@link Configurable} then its
  20583. <code>setConf</code> method will be called upon instantiation.]]>
  20584. </doc>
  20585. </interface>
  20586. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  20587. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  20588. <interface name="HAServiceProtocol" abstract="true"
  20589. static="false" final="false" visibility="public"
  20590. deprecated="not deprecated">
  20591. <method name="monitorHealth"
  20592. abstract="true" native="false" synchronized="false"
  20593. static="false" final="false" visibility="public"
  20594. deprecated="not deprecated">
  20595. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  20596. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20597. <exception name="IOException" type="java.io.IOException"/>
  20598. <doc>
  20599. <![CDATA[Monitor the health of service. This periodically called by the HA
  20600. frameworks to monitor the health of the service.
  20601. Service is expected to perform checks to ensure it is functional.
  20602. If the service is not healthy due to failure or partial failure,
  20603. it is expected to throw {@link HealthCheckFailedException}.
  20604. The definition of service not healthy is left to the service.
  20605. Note that when health check of an Active service fails,
  20606. failover to standby may be done.
  20607. @throws HealthCheckFailedException
  20608. if the health check of a service fails.
  20609. @throws AccessControlException
  20610. if access is denied.
  20611. @throws IOException
  20612. if other errors happen]]>
  20613. </doc>
  20614. </method>
  20615. <method name="transitionToActive"
  20616. abstract="true" native="false" synchronized="false"
  20617. static="false" final="false" visibility="public"
  20618. deprecated="not deprecated">
  20619. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20620. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  20621. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20622. <exception name="IOException" type="java.io.IOException"/>
  20623. <doc>
  20624. <![CDATA[Request service to transition to active state. No operation, if the
  20625. service is already in active state.
  20626. @param reqInfo reqInfo.
  20627. @throws ServiceFailedException
  20628. if transition from standby to active fails.
  20629. @throws AccessControlException
  20630. if access is denied.
  20631. @throws IOException
  20632. if other errors happen]]>
  20633. </doc>
  20634. </method>
  20635. <method name="transitionToStandby"
  20636. abstract="true" native="false" synchronized="false"
  20637. static="false" final="false" visibility="public"
  20638. deprecated="not deprecated">
  20639. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20640. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  20641. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20642. <exception name="IOException" type="java.io.IOException"/>
  20643. <doc>
  20644. <![CDATA[Request service to transition to standby state. No operation, if the
  20645. service is already in standby state.
  20646. @param reqInfo reqInfo.
  20647. @throws ServiceFailedException
  20648. if transition from active to standby fails.
  20649. @throws AccessControlException
  20650. if access is denied.
  20651. @throws IOException
  20652. if other errors happen]]>
  20653. </doc>
  20654. </method>
  20655. <method name="transitionToObserver"
  20656. abstract="true" native="false" synchronized="false"
  20657. static="false" final="false" visibility="public"
  20658. deprecated="not deprecated">
  20659. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20660. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  20661. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20662. <exception name="IOException" type="java.io.IOException"/>
  20663. <doc>
  20664. <![CDATA[Request service to transition to observer state. No operation, if the
  20665. service is already in observer state.
  20666. @param reqInfo reqInfo.
  20667. @throws ServiceFailedException
  20668. if transition from standby to observer fails.
  20669. @throws AccessControlException
  20670. if access is denied.
  20671. @throws IOException
  20672. if other errors happen]]>
  20673. </doc>
  20674. </method>
  20675. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  20676. abstract="true" native="false" synchronized="false"
  20677. static="false" final="false" visibility="public"
  20678. deprecated="not deprecated">
  20679. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  20680. <exception name="IOException" type="java.io.IOException"/>
  20681. <doc>
  20682. <![CDATA[Return the current status of the service. The status indicates
  20683. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  20684. some additional information.
  20685. @throws AccessControlException
  20686. if access is denied.
  20687. @throws IOException
  20688. if other errors happen
  20689. @see HAServiceStatus
  20690. @return HAServiceStatus.]]>
  20691. </doc>
  20692. </method>
  20693. <field name="versionID" type="long"
  20694. transient="false" volatile="false"
  20695. static="true" final="true" visibility="public"
  20696. deprecated="not deprecated">
  20697. <doc>
  20698. <![CDATA[Initial version of the protocol]]>
  20699. </doc>
  20700. </field>
  20701. <doc>
  20702. <![CDATA[Protocol interface that provides High Availability related primitives to
  20703. monitor and fail-over the service.
  20704. This interface could be used by HA frameworks to manage the service.]]>
  20705. </doc>
  20706. </interface>
  20707. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  20708. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  20709. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  20710. abstract="false"
  20711. static="false" final="false" visibility="public"
  20712. deprecated="not deprecated">
  20713. <constructor name="HAServiceProtocolHelper"
  20714. static="false" final="false" visibility="public"
  20715. deprecated="not deprecated">
  20716. </constructor>
  20717. <method name="monitorHealth"
  20718. abstract="false" native="false" synchronized="false"
  20719. static="true" final="false" visibility="public"
  20720. deprecated="not deprecated">
  20721. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20722. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20723. <exception name="IOException" type="java.io.IOException"/>
  20724. </method>
  20725. <method name="transitionToActive"
  20726. abstract="false" native="false" synchronized="false"
  20727. static="true" final="false" visibility="public"
  20728. deprecated="not deprecated">
  20729. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20730. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20731. <exception name="IOException" type="java.io.IOException"/>
  20732. </method>
  20733. <method name="transitionToStandby"
  20734. abstract="false" native="false" synchronized="false"
  20735. static="true" final="false" visibility="public"
  20736. deprecated="not deprecated">
  20737. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20738. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20739. <exception name="IOException" type="java.io.IOException"/>
  20740. </method>
  20741. <method name="transitionToObserver"
  20742. abstract="false" native="false" synchronized="false"
  20743. static="true" final="false" visibility="public"
  20744. deprecated="not deprecated">
  20745. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  20746. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  20747. <exception name="IOException" type="java.io.IOException"/>
  20748. </method>
  20749. <doc>
  20750. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  20751. unwraps the {@link RemoteException} to specific exceptions.]]>
  20752. </doc>
  20753. </class>
  20754. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  20755. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  20756. <class name="HAServiceTarget" extends="java.lang.Object"
  20757. abstract="true"
  20758. static="false" final="false" visibility="public"
  20759. deprecated="not deprecated">
  20760. <constructor name="HAServiceTarget"
  20761. static="false" final="false" visibility="public"
  20762. deprecated="not deprecated">
  20763. </constructor>
  20764. <method name="getAddress" return="java.net.InetSocketAddress"
  20765. abstract="true" native="false" synchronized="false"
  20766. static="false" final="false" visibility="public"
  20767. deprecated="not deprecated">
  20768. <doc>
  20769. <![CDATA[@return the IPC address of the target node.]]>
  20770. </doc>
  20771. </method>
  20772. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  20773. abstract="false" native="false" synchronized="false"
  20774. static="false" final="false" visibility="public"
  20775. deprecated="not deprecated">
  20776. <doc>
  20777. <![CDATA[Returns an optional separate RPC server address for health checks at the
  20778. target node. If defined, then this address is used by the health monitor
  20779. for the {@link HAServiceProtocol#monitorHealth()} and
  20780. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  20781. separating out these calls onto separate RPC handlers to protect against
  20782. resource exhaustion in the main RPC handler pool. If null (which is the
  20783. default implementation), then all RPC calls go to the address defined by
  20784. {@link #getAddress()}.
  20785. @return IPC address of the lifeline RPC server on the target node, or null
  20786. if no lifeline RPC server is used]]>
  20787. </doc>
  20788. </method>
  20789. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  20790. abstract="true" native="false" synchronized="false"
  20791. static="false" final="false" visibility="public"
  20792. deprecated="not deprecated">
  20793. <doc>
  20794. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  20795. </doc>
  20796. </method>
  20797. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  20798. abstract="true" native="false" synchronized="false"
  20799. static="false" final="false" visibility="public"
  20800. deprecated="not deprecated">
  20801. <doc>
  20802. <![CDATA[@return a Fencer implementation configured for this target node]]>
  20803. </doc>
  20804. </method>
  20805. <method name="checkFencingConfigured"
  20806. abstract="true" native="false" synchronized="false"
  20807. static="false" final="false" visibility="public"
  20808. deprecated="not deprecated">
  20809. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  20810. <doc>
  20811. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  20812. appears to be invalid. This is divorced from the above
  20813. {@link #getFencer()} method so that the configuration can be checked
  20814. during the pre-flight phase of failover.]]>
  20815. </doc>
  20816. </method>
  20817. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  20818. abstract="false" native="false" synchronized="false"
  20819. static="false" final="false" visibility="public"
  20820. deprecated="not deprecated">
  20821. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20822. <param name="timeoutMs" type="int"/>
  20823. <exception name="IOException" type="java.io.IOException"/>
  20824. <doc>
  20825. <![CDATA[@return a proxy to connect to the target HA Service.
  20826. @param timeoutMs timeout in milliseconds.
  20827. @param conf Configuration.
  20828. @throws IOException raised on errors performing I/O.]]>
  20829. </doc>
  20830. </method>
  20831. <method name="setTransitionTargetHAStatus"
  20832. abstract="false" native="false" synchronized="false"
  20833. static="false" final="false" visibility="public"
  20834. deprecated="not deprecated">
  20835. <param name="status" type="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"/>
  20836. </method>
  20837. <method name="getTransitionTargetHAStatus" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  20838. abstract="false" native="false" synchronized="false"
  20839. static="false" final="false" visibility="public"
  20840. deprecated="not deprecated">
  20841. </method>
  20842. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  20843. abstract="false" native="false" synchronized="false"
  20844. static="false" final="false" visibility="public"
  20845. deprecated="not deprecated">
  20846. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20847. <param name="timeoutMs" type="int"/>
  20848. <exception name="IOException" type="java.io.IOException"/>
  20849. <doc>
  20850. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  20851. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  20852. address, then this proxy will connect to that address. Otherwise, the
  20853. returned proxy defaults to using {@link #getAddress()}, which means this
  20854. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  20855. @param conf configuration.
  20856. @param timeoutMs timeout in milliseconds
  20857. @return a proxy to connect to the target HA service for health monitoring
  20858. @throws IOException if there is an error]]>
  20859. </doc>
  20860. </method>
  20861. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  20862. abstract="false" native="false" synchronized="false"
  20863. static="false" final="false" visibility="public"
  20864. deprecated="not deprecated">
  20865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20866. <param name="timeoutMs" type="int"/>
  20867. <param name="retries" type="int"/>
  20868. <exception name="IOException" type="java.io.IOException"/>
  20869. </method>
  20870. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  20871. abstract="false" native="false" synchronized="false"
  20872. static="false" final="false" visibility="public"
  20873. deprecated="not deprecated">
  20874. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20875. <param name="timeoutMs" type="int"/>
  20876. <exception name="IOException" type="java.io.IOException"/>
  20877. <doc>
  20878. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.
  20879. @param conf configuration.
  20880. @param timeoutMs timeout in milliseconds.
  20881. @throws IOException raised on errors performing I/O.]]>
  20882. </doc>
  20883. </method>
  20884. <method name="getFencingParameters" return="java.util.Map"
  20885. abstract="false" native="false" synchronized="false"
  20886. static="false" final="true" visibility="public"
  20887. deprecated="not deprecated">
  20888. </method>
  20889. <method name="addFencingParameters"
  20890. abstract="false" native="false" synchronized="false"
  20891. static="false" final="false" visibility="protected"
  20892. deprecated="not deprecated">
  20893. <param name="ret" type="java.util.Map"/>
  20894. <doc>
  20895. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  20896. expose to fencing implementations/scripts. Fencing methods are free
  20897. to use this map as they see fit -- notably, the shell script
  20898. implementation takes each entry, prepends 'target_', substitutes
  20899. '_' for '.', and adds it to the environment of the script.
  20900. Subclass implementations should be sure to delegate to the superclass
  20901. implementation as well as adding their own keys.
  20902. @param ret map which can be mutated to pass parameters to the fencer]]>
  20903. </doc>
  20904. </method>
  20905. <method name="isAutoFailoverEnabled" return="boolean"
  20906. abstract="false" native="false" synchronized="false"
  20907. static="false" final="false" visibility="public"
  20908. deprecated="not deprecated">
  20909. <doc>
  20910. <![CDATA[@return true if auto failover should be considered enabled]]>
  20911. </doc>
  20912. </method>
  20913. <method name="supportObserver" return="boolean"
  20914. abstract="false" native="false" synchronized="false"
  20915. static="false" final="false" visibility="public"
  20916. deprecated="not deprecated">
  20917. <doc>
  20918. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  20919. </doc>
  20920. </method>
  20921. <doc>
  20922. <![CDATA[Represents a target of the client side HA administration commands.]]>
  20923. </doc>
  20924. </class>
  20925. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  20926. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  20927. <class name="HealthCheckFailedException" extends="java.io.IOException"
  20928. abstract="false"
  20929. static="false" final="false" visibility="public"
  20930. deprecated="not deprecated">
  20931. <constructor name="HealthCheckFailedException" type="java.lang.String"
  20932. static="false" final="false" visibility="public"
  20933. deprecated="not deprecated">
  20934. </constructor>
  20935. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  20936. static="false" final="false" visibility="public"
  20937. deprecated="not deprecated">
  20938. </constructor>
  20939. <doc>
  20940. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  20941. </doc>
  20942. </class>
  20943. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  20944. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  20945. <class name="ServiceFailedException" extends="java.io.IOException"
  20946. abstract="false"
  20947. static="false" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. <constructor name="ServiceFailedException" type="java.lang.String"
  20950. static="false" final="false" visibility="public"
  20951. deprecated="not deprecated">
  20952. </constructor>
  20953. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  20954. static="false" final="false" visibility="public"
  20955. deprecated="not deprecated">
  20956. </constructor>
  20957. <doc>
  20958. <![CDATA[Exception thrown to indicate that an operation performed
  20959. to modify the state of a service or application failed.]]>
  20960. </doc>
  20961. </class>
  20962. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  20963. </package>
  20964. <package name="org.apache.hadoop.ha.protocolPB">
  20965. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  20966. <interface name="HAServiceProtocolPB" abstract="true"
  20967. static="false" final="false" visibility="public"
  20968. deprecated="not deprecated">
  20969. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  20970. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  20971. </interface>
  20972. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  20973. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  20974. <interface name="ZKFCProtocolPB" abstract="true"
  20975. static="false" final="false" visibility="public"
  20976. deprecated="not deprecated">
  20977. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  20978. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  20979. </interface>
  20980. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  20981. </package>
  20982. <package name="org.apache.hadoop.http.lib">
  20983. <doc>
  20984. <![CDATA[This package provides user-selectable (via configuration) classes that add
  20985. functionality to the web UI. They are configured as a list of classes in the
  20986. configuration parameter <b>hadoop.http.filter.initializers</b>.
  20987. <ul>
  20988. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  20989. users a static configured user.
  20990. </ul>]]>
  20991. </doc>
  20992. </package>
  20993. <package name="org.apache.hadoop.io">
  20994. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  20995. <class name="AbstractMapWritable" extends="java.lang.Object"
  20996. abstract="true"
  20997. static="false" final="false" visibility="public"
  20998. deprecated="not deprecated">
  20999. <implements name="org.apache.hadoop.io.Writable"/>
  21000. <implements name="org.apache.hadoop.conf.Configurable"/>
  21001. <constructor name="AbstractMapWritable"
  21002. static="false" final="false" visibility="protected"
  21003. deprecated="not deprecated">
  21004. <doc>
  21005. <![CDATA[constructor.]]>
  21006. </doc>
  21007. </constructor>
  21008. <method name="addToMap"
  21009. abstract="false" native="false" synchronized="true"
  21010. static="false" final="false" visibility="protected"
  21011. deprecated="not deprecated">
  21012. <param name="clazz" type="java.lang.Class"/>
  21013. <doc>
  21014. <![CDATA[Add a Class to the maps if it is not already present.
  21015. @param clazz clazz.]]>
  21016. </doc>
  21017. </method>
  21018. <method name="getClass" return="java.lang.Class"
  21019. abstract="false" native="false" synchronized="false"
  21020. static="false" final="false" visibility="protected"
  21021. deprecated="not deprecated">
  21022. <param name="id" type="byte"/>
  21023. <doc>
  21024. <![CDATA[the Class class for the specified id.
  21025. @param id id.
  21026. @return the Class class for the specified id.]]>
  21027. </doc>
  21028. </method>
  21029. <method name="getId" return="byte"
  21030. abstract="false" native="false" synchronized="false"
  21031. static="false" final="false" visibility="protected"
  21032. deprecated="not deprecated">
  21033. <param name="clazz" type="java.lang.Class"/>
  21034. <doc>
  21035. <![CDATA[get id.
  21036. @return the id for the specified Class.
  21037. @param clazz clazz.]]>
  21038. </doc>
  21039. </method>
  21040. <method name="copy"
  21041. abstract="false" native="false" synchronized="true"
  21042. static="false" final="false" visibility="protected"
  21043. deprecated="not deprecated">
  21044. <param name="other" type="org.apache.hadoop.io.Writable"/>
  21045. <doc>
  21046. <![CDATA[Used by child copy constructors.
  21047. @param other other.]]>
  21048. </doc>
  21049. </method>
  21050. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21051. abstract="false" native="false" synchronized="false"
  21052. static="false" final="false" visibility="public"
  21053. deprecated="not deprecated">
  21054. <doc>
  21055. <![CDATA[@return the conf]]>
  21056. </doc>
  21057. </method>
  21058. <method name="setConf"
  21059. abstract="false" native="false" synchronized="false"
  21060. static="false" final="false" visibility="public"
  21061. deprecated="not deprecated">
  21062. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21063. <doc>
  21064. <![CDATA[@param conf the conf to set]]>
  21065. </doc>
  21066. </method>
  21067. <method name="write"
  21068. abstract="false" native="false" synchronized="false"
  21069. static="false" final="false" visibility="public"
  21070. deprecated="not deprecated">
  21071. <param name="out" type="java.io.DataOutput"/>
  21072. <exception name="IOException" type="java.io.IOException"/>
  21073. </method>
  21074. <method name="readFields"
  21075. abstract="false" native="false" synchronized="false"
  21076. static="false" final="false" visibility="public"
  21077. deprecated="not deprecated">
  21078. <param name="in" type="java.io.DataInput"/>
  21079. <exception name="IOException" type="java.io.IOException"/>
  21080. </method>
  21081. <doc>
  21082. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  21083. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  21084. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  21085. maps travel with the class instead of being static.
  21086. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  21087. in any specific map instance.]]>
  21088. </doc>
  21089. </class>
  21090. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  21091. <!-- start class org.apache.hadoop.io.ArrayFile -->
  21092. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  21093. abstract="false"
  21094. static="false" final="false" visibility="public"
  21095. deprecated="not deprecated">
  21096. <constructor name="ArrayFile"
  21097. static="false" final="false" visibility="protected"
  21098. deprecated="not deprecated">
  21099. </constructor>
  21100. <doc>
  21101. <![CDATA[A dense file-based mapping from integers to values.]]>
  21102. </doc>
  21103. </class>
  21104. <!-- end class org.apache.hadoop.io.ArrayFile -->
  21105. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  21106. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  21107. abstract="false"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. <implements name="org.apache.hadoop.io.Writable"/>
  21111. <constructor name="ArrayPrimitiveWritable"
  21112. static="false" final="false" visibility="public"
  21113. deprecated="not deprecated">
  21114. <doc>
  21115. <![CDATA[Construct an empty instance, for use during Writable read]]>
  21116. </doc>
  21117. </constructor>
  21118. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  21119. static="false" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. <doc>
  21122. <![CDATA[Construct an instance of known type but no value yet
  21123. for use with type-specific wrapper classes.
  21124. @param componentType componentType.]]>
  21125. </doc>
  21126. </constructor>
  21127. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  21128. static="false" final="false" visibility="public"
  21129. deprecated="not deprecated">
  21130. <doc>
  21131. <![CDATA[Wrap an existing array of primitives
  21132. @param value - array of primitives]]>
  21133. </doc>
  21134. </constructor>
  21135. <method name="get" return="java.lang.Object"
  21136. abstract="false" native="false" synchronized="false"
  21137. static="false" final="false" visibility="public"
  21138. deprecated="not deprecated">
  21139. <doc>
  21140. <![CDATA[Get the original array.
  21141. Client must cast it back to type componentType[]
  21142. (or may use type-specific wrapper classes).
  21143. @return - original array as Object]]>
  21144. </doc>
  21145. </method>
  21146. <method name="getComponentType" return="java.lang.Class"
  21147. abstract="false" native="false" synchronized="false"
  21148. static="false" final="false" visibility="public"
  21149. deprecated="not deprecated">
  21150. </method>
  21151. <method name="getDeclaredComponentType" return="java.lang.Class"
  21152. abstract="false" native="false" synchronized="false"
  21153. static="false" final="false" visibility="public"
  21154. deprecated="not deprecated">
  21155. </method>
  21156. <method name="isDeclaredComponentType" return="boolean"
  21157. abstract="false" native="false" synchronized="false"
  21158. static="false" final="false" visibility="public"
  21159. deprecated="not deprecated">
  21160. <param name="componentType" type="java.lang.Class"/>
  21161. </method>
  21162. <method name="set"
  21163. abstract="false" native="false" synchronized="false"
  21164. static="false" final="false" visibility="public"
  21165. deprecated="not deprecated">
  21166. <param name="value" type="java.lang.Object"/>
  21167. </method>
  21168. <method name="write"
  21169. abstract="false" native="false" synchronized="false"
  21170. static="false" final="false" visibility="public"
  21171. deprecated="not deprecated">
  21172. <param name="out" type="java.io.DataOutput"/>
  21173. <exception name="IOException" type="java.io.IOException"/>
  21174. </method>
  21175. <method name="readFields"
  21176. abstract="false" native="false" synchronized="false"
  21177. static="false" final="false" visibility="public"
  21178. deprecated="not deprecated">
  21179. <param name="in" type="java.io.DataInput"/>
  21180. <exception name="IOException" type="java.io.IOException"/>
  21181. </method>
  21182. <doc>
  21183. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  21184. an array of primitives (e.g., int[], long[], etc.), with optimized
  21185. wire format, and without creating new objects per element.
  21186. This is a wrapper class only; it does not make a copy of the
  21187. underlying array.]]>
  21188. </doc>
  21189. </class>
  21190. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  21191. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  21192. <class name="ArrayWritable" extends="java.lang.Object"
  21193. abstract="false"
  21194. static="false" final="false" visibility="public"
  21195. deprecated="not deprecated">
  21196. <implements name="org.apache.hadoop.io.Writable"/>
  21197. <constructor name="ArrayWritable" type="java.lang.Class"
  21198. static="false" final="false" visibility="public"
  21199. deprecated="not deprecated">
  21200. </constructor>
  21201. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  21202. static="false" final="false" visibility="public"
  21203. deprecated="not deprecated">
  21204. </constructor>
  21205. <constructor name="ArrayWritable" type="java.lang.String[]"
  21206. static="false" final="false" visibility="public"
  21207. deprecated="not deprecated">
  21208. </constructor>
  21209. <method name="getValueClass" return="java.lang.Class"
  21210. abstract="false" native="false" synchronized="false"
  21211. static="false" final="false" visibility="public"
  21212. deprecated="not deprecated">
  21213. </method>
  21214. <method name="toStrings" return="java.lang.String[]"
  21215. abstract="false" native="false" synchronized="false"
  21216. static="false" final="false" visibility="public"
  21217. deprecated="not deprecated">
  21218. </method>
  21219. <method name="toArray" return="java.lang.Object"
  21220. abstract="false" native="false" synchronized="false"
  21221. static="false" final="false" visibility="public"
  21222. deprecated="not deprecated">
  21223. </method>
  21224. <method name="set"
  21225. abstract="false" native="false" synchronized="false"
  21226. static="false" final="false" visibility="public"
  21227. deprecated="not deprecated">
  21228. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  21229. </method>
  21230. <method name="get" return="org.apache.hadoop.io.Writable[]"
  21231. abstract="false" native="false" synchronized="false"
  21232. static="false" final="false" visibility="public"
  21233. deprecated="not deprecated">
  21234. </method>
  21235. <method name="readFields"
  21236. abstract="false" native="false" synchronized="false"
  21237. static="false" final="false" visibility="public"
  21238. deprecated="not deprecated">
  21239. <param name="in" type="java.io.DataInput"/>
  21240. <exception name="IOException" type="java.io.IOException"/>
  21241. </method>
  21242. <method name="write"
  21243. abstract="false" native="false" synchronized="false"
  21244. static="false" final="false" visibility="public"
  21245. deprecated="not deprecated">
  21246. <param name="out" type="java.io.DataOutput"/>
  21247. <exception name="IOException" type="java.io.IOException"/>
  21248. </method>
  21249. <method name="toString" return="java.lang.String"
  21250. abstract="false" native="false" synchronized="false"
  21251. static="false" final="false" visibility="public"
  21252. deprecated="not deprecated">
  21253. </method>
  21254. <doc>
  21255. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  21256. writable must all be instances of the same class. If this writable will be
  21257. the input for a Reducer, you will need to create a subclass that sets the
  21258. value to be of the proper type.
  21259. For example:
  21260. <code>
  21261. public class IntArrayWritable extends ArrayWritable {
  21262. public IntArrayWritable() {
  21263. super(IntWritable.class);
  21264. }
  21265. }
  21266. </code>]]>
  21267. </doc>
  21268. </class>
  21269. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  21270. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  21271. <class name="BinaryComparable" extends="java.lang.Object"
  21272. abstract="true"
  21273. static="false" final="false" visibility="public"
  21274. deprecated="not deprecated">
  21275. <implements name="java.lang.Comparable"/>
  21276. <constructor name="BinaryComparable"
  21277. static="false" final="false" visibility="public"
  21278. deprecated="not deprecated">
  21279. </constructor>
  21280. <method name="getLength" return="int"
  21281. abstract="true" native="false" synchronized="false"
  21282. static="false" final="false" visibility="public"
  21283. deprecated="not deprecated">
  21284. <doc>
  21285. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.
  21286. @return length.]]>
  21287. </doc>
  21288. </method>
  21289. <method name="getBytes" return="byte[]"
  21290. abstract="true" native="false" synchronized="false"
  21291. static="false" final="false" visibility="public"
  21292. deprecated="not deprecated">
  21293. <doc>
  21294. <![CDATA[Return representative byte array for this instance.
  21295. @return getBytes.]]>
  21296. </doc>
  21297. </method>
  21298. <method name="compareTo" return="int"
  21299. abstract="false" native="false" synchronized="false"
  21300. static="false" final="false" visibility="public"
  21301. deprecated="not deprecated">
  21302. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  21303. <doc>
  21304. <![CDATA[Compare bytes from {#getBytes()}.
  21305. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  21306. </doc>
  21307. </method>
  21308. <method name="compareTo" return="int"
  21309. abstract="false" native="false" synchronized="false"
  21310. static="false" final="false" visibility="public"
  21311. deprecated="not deprecated">
  21312. <param name="other" type="byte[]"/>
  21313. <param name="off" type="int"/>
  21314. <param name="len" type="int"/>
  21315. <doc>
  21316. <![CDATA[Compare bytes from {#getBytes()} to those provided.
  21317. @param other other.
  21318. @param off off.
  21319. @param len len.
  21320. @return compareBytes.]]>
  21321. </doc>
  21322. </method>
  21323. <method name="equals" return="boolean"
  21324. abstract="false" native="false" synchronized="false"
  21325. static="false" final="false" visibility="public"
  21326. deprecated="not deprecated">
  21327. <param name="other" type="java.lang.Object"/>
  21328. <doc>
  21329. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  21330. </doc>
  21331. </method>
  21332. <method name="hashCode" return="int"
  21333. abstract="false" native="false" synchronized="false"
  21334. static="false" final="false" visibility="public"
  21335. deprecated="not deprecated">
  21336. <doc>
  21337. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  21338. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  21339. </doc>
  21340. </method>
  21341. <doc>
  21342. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  21343. types supporting ordering/permutation by a representative set of bytes.]]>
  21344. </doc>
  21345. </class>
  21346. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  21347. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  21348. <class name="BloomMapFile" extends="java.lang.Object"
  21349. abstract="false"
  21350. static="false" final="false" visibility="public"
  21351. deprecated="not deprecated">
  21352. <constructor name="BloomMapFile"
  21353. static="false" final="false" visibility="public"
  21354. deprecated="not deprecated">
  21355. </constructor>
  21356. <method name="delete"
  21357. abstract="false" native="false" synchronized="false"
  21358. static="true" final="false" visibility="public"
  21359. deprecated="not deprecated">
  21360. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21361. <param name="name" type="java.lang.String"/>
  21362. <exception name="IOException" type="java.io.IOException"/>
  21363. </method>
  21364. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  21365. transient="false" volatile="false"
  21366. static="true" final="true" visibility="public"
  21367. deprecated="not deprecated">
  21368. </field>
  21369. <field name="HASH_COUNT" type="int"
  21370. transient="false" volatile="false"
  21371. static="true" final="true" visibility="public"
  21372. deprecated="not deprecated">
  21373. </field>
  21374. <doc>
  21375. <![CDATA[This class extends {@link MapFile} and provides very much the same
  21376. functionality. However, it uses dynamic Bloom filters to provide
  21377. quick membership test for keys, and it offers a fast version of
  21378. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  21379. case of sparsely populated MapFile-s.]]>
  21380. </doc>
  21381. </class>
  21382. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  21383. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  21384. <class name="BooleanWritable" extends="java.lang.Object"
  21385. abstract="false"
  21386. static="false" final="false" visibility="public"
  21387. deprecated="not deprecated">
  21388. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21389. <constructor name="BooleanWritable"
  21390. static="false" final="false" visibility="public"
  21391. deprecated="not deprecated">
  21392. </constructor>
  21393. <constructor name="BooleanWritable" type="boolean"
  21394. static="false" final="false" visibility="public"
  21395. deprecated="not deprecated">
  21396. <doc>
  21397. <![CDATA[@param value value.]]>
  21398. </doc>
  21399. </constructor>
  21400. <method name="set"
  21401. abstract="false" native="false" synchronized="false"
  21402. static="false" final="false" visibility="public"
  21403. deprecated="not deprecated">
  21404. <param name="value" type="boolean"/>
  21405. <doc>
  21406. <![CDATA[Set the value of the BooleanWritable.
  21407. @param value value.]]>
  21408. </doc>
  21409. </method>
  21410. <method name="get" return="boolean"
  21411. abstract="false" native="false" synchronized="false"
  21412. static="false" final="false" visibility="public"
  21413. deprecated="not deprecated">
  21414. <doc>
  21415. <![CDATA[Returns the value of the BooleanWritable.
  21416. @return the value of the BooleanWritable.]]>
  21417. </doc>
  21418. </method>
  21419. <method name="readFields"
  21420. abstract="false" native="false" synchronized="false"
  21421. static="false" final="false" visibility="public"
  21422. deprecated="not deprecated">
  21423. <param name="in" type="java.io.DataInput"/>
  21424. <exception name="IOException" type="java.io.IOException"/>
  21425. </method>
  21426. <method name="write"
  21427. abstract="false" native="false" synchronized="false"
  21428. static="false" final="false" visibility="public"
  21429. deprecated="not deprecated">
  21430. <param name="out" type="java.io.DataOutput"/>
  21431. <exception name="IOException" type="java.io.IOException"/>
  21432. </method>
  21433. <method name="equals" return="boolean"
  21434. abstract="false" native="false" synchronized="false"
  21435. static="false" final="false" visibility="public"
  21436. deprecated="not deprecated">
  21437. <param name="o" type="java.lang.Object"/>
  21438. </method>
  21439. <method name="hashCode" return="int"
  21440. abstract="false" native="false" synchronized="false"
  21441. static="false" final="false" visibility="public"
  21442. deprecated="not deprecated">
  21443. </method>
  21444. <method name="compareTo" return="int"
  21445. abstract="false" native="false" synchronized="false"
  21446. static="false" final="false" visibility="public"
  21447. deprecated="not deprecated">
  21448. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  21449. </method>
  21450. <method name="toString" return="java.lang.String"
  21451. abstract="false" native="false" synchronized="false"
  21452. static="false" final="false" visibility="public"
  21453. deprecated="not deprecated">
  21454. </method>
  21455. <doc>
  21456. <![CDATA[A WritableComparable for booleans.]]>
  21457. </doc>
  21458. </class>
  21459. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  21460. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  21461. <interface name="ByteBufferPool" abstract="true"
  21462. static="false" final="false" visibility="public"
  21463. deprecated="not deprecated">
  21464. <method name="getBuffer" return="java.nio.ByteBuffer"
  21465. abstract="true" native="false" synchronized="false"
  21466. static="false" final="false" visibility="public"
  21467. deprecated="not deprecated">
  21468. <param name="direct" type="boolean"/>
  21469. <param name="length" type="int"/>
  21470. <doc>
  21471. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  21472. removing a buffer from its internal cache, or by allocating a
  21473. new buffer.
  21474. @param direct Whether the buffer should be direct.
  21475. @param length The minimum length the buffer will have.
  21476. @return A new ByteBuffer. This ByteBuffer must be direct.
  21477. Its capacity can be less than what was requested, but
  21478. must be at least 1 byte.]]>
  21479. </doc>
  21480. </method>
  21481. <method name="putBuffer"
  21482. abstract="true" native="false" synchronized="false"
  21483. static="false" final="false" visibility="public"
  21484. deprecated="not deprecated">
  21485. <param name="buffer" type="java.nio.ByteBuffer"/>
  21486. <doc>
  21487. <![CDATA[Release a buffer back to the pool.
  21488. The pool may choose to put this buffer into its cache.
  21489. @param buffer a direct bytebuffer]]>
  21490. </doc>
  21491. </method>
  21492. <method name="release"
  21493. abstract="false" native="false" synchronized="false"
  21494. static="false" final="false" visibility="public"
  21495. deprecated="not deprecated">
  21496. <doc>
  21497. <![CDATA[Clear the buffer pool thus releasing all the buffers.]]>
  21498. </doc>
  21499. </method>
  21500. </interface>
  21501. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  21502. <!-- start class org.apache.hadoop.io.BytesWritable -->
  21503. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  21504. abstract="false"
  21505. static="false" final="false" visibility="public"
  21506. deprecated="not deprecated">
  21507. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21508. <constructor name="BytesWritable"
  21509. static="false" final="false" visibility="public"
  21510. deprecated="not deprecated">
  21511. <doc>
  21512. <![CDATA[Create a zero-size sequence.]]>
  21513. </doc>
  21514. </constructor>
  21515. <constructor name="BytesWritable" type="byte[]"
  21516. static="false" final="false" visibility="public"
  21517. deprecated="not deprecated">
  21518. <doc>
  21519. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  21520. @param bytes This array becomes the backing storage for the object.]]>
  21521. </doc>
  21522. </constructor>
  21523. <constructor name="BytesWritable" type="byte[], int"
  21524. static="false" final="false" visibility="public"
  21525. deprecated="not deprecated">
  21526. <doc>
  21527. <![CDATA[Create a BytesWritable using the byte array as the initial value
  21528. and length as the length. Use this constructor if the array is larger
  21529. than the value it represents.
  21530. @param bytes This array becomes the backing storage for the object.
  21531. @param length The number of bytes to use from array.]]>
  21532. </doc>
  21533. </constructor>
  21534. <method name="copyBytes" return="byte[]"
  21535. abstract="false" native="false" synchronized="false"
  21536. static="false" final="false" visibility="public"
  21537. deprecated="not deprecated">
  21538. <doc>
  21539. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  21540. See {@link #getBytes()} for faster access to the underlying array.
  21541. @return copyBytes.]]>
  21542. </doc>
  21543. </method>
  21544. <method name="getBytes" return="byte[]"
  21545. abstract="false" native="false" synchronized="false"
  21546. static="false" final="false" visibility="public"
  21547. deprecated="not deprecated">
  21548. <doc>
  21549. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  21550. if you need the returned array to be precisely the length of the data.
  21551. @return The data is only valid between 0 and getLength() - 1.]]>
  21552. </doc>
  21553. </method>
  21554. <method name="get" return="byte[]"
  21555. abstract="false" native="false" synchronized="false"
  21556. static="false" final="false" visibility="public"
  21557. deprecated="Use {@link #getBytes()} instead.">
  21558. <doc>
  21559. <![CDATA[Get the data from the BytesWritable.
  21560. @deprecated Use {@link #getBytes()} instead.
  21561. @return data from the BytesWritable.]]>
  21562. </doc>
  21563. </method>
  21564. <method name="getLength" return="int"
  21565. abstract="false" native="false" synchronized="false"
  21566. static="false" final="false" visibility="public"
  21567. deprecated="not deprecated">
  21568. <doc>
  21569. <![CDATA[Get the current size of the buffer.]]>
  21570. </doc>
  21571. </method>
  21572. <method name="getSize" return="int"
  21573. abstract="false" native="false" synchronized="false"
  21574. static="false" final="false" visibility="public"
  21575. deprecated="Use {@link #getLength()} instead.">
  21576. <doc>
  21577. <![CDATA[Get the current size of the buffer.
  21578. @deprecated Use {@link #getLength()} instead.
  21579. @return current size of the buffer.]]>
  21580. </doc>
  21581. </method>
  21582. <method name="setSize"
  21583. abstract="false" native="false" synchronized="false"
  21584. static="false" final="false" visibility="public"
  21585. deprecated="not deprecated">
  21586. <param name="size" type="int"/>
  21587. <doc>
  21588. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  21589. and any new values are undefined. The capacity is changed if it is
  21590. necessary.
  21591. @param size The new number of bytes]]>
  21592. </doc>
  21593. </method>
  21594. <method name="getCapacity" return="int"
  21595. abstract="false" native="false" synchronized="false"
  21596. static="false" final="false" visibility="public"
  21597. deprecated="not deprecated">
  21598. <doc>
  21599. <![CDATA[Get the capacity, which is the maximum size that could handled without
  21600. resizing the backing storage.
  21601. @return The number of bytes]]>
  21602. </doc>
  21603. </method>
  21604. <method name="setCapacity"
  21605. abstract="false" native="false" synchronized="false"
  21606. static="false" final="false" visibility="public"
  21607. deprecated="not deprecated">
  21608. <param name="new_cap" type="int"/>
  21609. <doc>
  21610. <![CDATA[Change the capacity of the backing storage.
  21611. The data is preserved.
  21612. @param new_cap The new capacity in bytes.]]>
  21613. </doc>
  21614. </method>
  21615. <method name="set"
  21616. abstract="false" native="false" synchronized="false"
  21617. static="false" final="false" visibility="public"
  21618. deprecated="not deprecated">
  21619. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  21620. <doc>
  21621. <![CDATA[Set the BytesWritable to the contents of the given newData.
  21622. @param newData the value to set this BytesWritable to.]]>
  21623. </doc>
  21624. </method>
  21625. <method name="set"
  21626. abstract="false" native="false" synchronized="false"
  21627. static="false" final="false" visibility="public"
  21628. deprecated="not deprecated">
  21629. <param name="newData" type="byte[]"/>
  21630. <param name="offset" type="int"/>
  21631. <param name="length" type="int"/>
  21632. <doc>
  21633. <![CDATA[Set the value to a copy of the given byte range
  21634. @param newData the new values to copy in
  21635. @param offset the offset in newData to start at
  21636. @param length the number of bytes to copy]]>
  21637. </doc>
  21638. </method>
  21639. <method name="readFields"
  21640. abstract="false" native="false" synchronized="false"
  21641. static="false" final="false" visibility="public"
  21642. deprecated="not deprecated">
  21643. <param name="in" type="java.io.DataInput"/>
  21644. <exception name="IOException" type="java.io.IOException"/>
  21645. </method>
  21646. <method name="write"
  21647. abstract="false" native="false" synchronized="false"
  21648. static="false" final="false" visibility="public"
  21649. deprecated="not deprecated">
  21650. <param name="out" type="java.io.DataOutput"/>
  21651. <exception name="IOException" type="java.io.IOException"/>
  21652. </method>
  21653. <method name="hashCode" return="int"
  21654. abstract="false" native="false" synchronized="false"
  21655. static="false" final="false" visibility="public"
  21656. deprecated="not deprecated">
  21657. </method>
  21658. <method name="equals" return="boolean"
  21659. abstract="false" native="false" synchronized="false"
  21660. static="false" final="false" visibility="public"
  21661. deprecated="not deprecated">
  21662. <param name="right_obj" type="java.lang.Object"/>
  21663. <doc>
  21664. <![CDATA[Are the two byte sequences equal?]]>
  21665. </doc>
  21666. </method>
  21667. <method name="toString" return="java.lang.String"
  21668. abstract="false" native="false" synchronized="false"
  21669. static="false" final="false" visibility="public"
  21670. deprecated="not deprecated">
  21671. <doc>
  21672. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  21673. </doc>
  21674. </method>
  21675. <doc>
  21676. <![CDATA[A byte sequence that is usable as a key or value.
  21677. It is resizable and distinguishes between the size of the sequence and
  21678. the current capacity. The hash function is the front of the md5 of the
  21679. buffer. The sort order is the same as memcmp.]]>
  21680. </doc>
  21681. </class>
  21682. <!-- end class org.apache.hadoop.io.BytesWritable -->
  21683. <!-- start class org.apache.hadoop.io.ByteWritable -->
  21684. <class name="ByteWritable" extends="java.lang.Object"
  21685. abstract="false"
  21686. static="false" final="false" visibility="public"
  21687. deprecated="not deprecated">
  21688. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21689. <constructor name="ByteWritable"
  21690. static="false" final="false" visibility="public"
  21691. deprecated="not deprecated">
  21692. </constructor>
  21693. <constructor name="ByteWritable" type="byte"
  21694. static="false" final="false" visibility="public"
  21695. deprecated="not deprecated">
  21696. </constructor>
  21697. <method name="set"
  21698. abstract="false" native="false" synchronized="false"
  21699. static="false" final="false" visibility="public"
  21700. deprecated="not deprecated">
  21701. <param name="value" type="byte"/>
  21702. <doc>
  21703. <![CDATA[Set the value of this ByteWritable.
  21704. @param value value.]]>
  21705. </doc>
  21706. </method>
  21707. <method name="get" return="byte"
  21708. abstract="false" native="false" synchronized="false"
  21709. static="false" final="false" visibility="public"
  21710. deprecated="not deprecated">
  21711. <doc>
  21712. <![CDATA[Return the value of this ByteWritable.
  21713. @return value bytes.]]>
  21714. </doc>
  21715. </method>
  21716. <method name="readFields"
  21717. abstract="false" native="false" synchronized="false"
  21718. static="false" final="false" visibility="public"
  21719. deprecated="not deprecated">
  21720. <param name="in" type="java.io.DataInput"/>
  21721. <exception name="IOException" type="java.io.IOException"/>
  21722. </method>
  21723. <method name="write"
  21724. abstract="false" native="false" synchronized="false"
  21725. static="false" final="false" visibility="public"
  21726. deprecated="not deprecated">
  21727. <param name="out" type="java.io.DataOutput"/>
  21728. <exception name="IOException" type="java.io.IOException"/>
  21729. </method>
  21730. <method name="equals" return="boolean"
  21731. abstract="false" native="false" synchronized="false"
  21732. static="false" final="false" visibility="public"
  21733. deprecated="not deprecated">
  21734. <param name="o" type="java.lang.Object"/>
  21735. <doc>
  21736. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  21737. </doc>
  21738. </method>
  21739. <method name="hashCode" return="int"
  21740. abstract="false" native="false" synchronized="false"
  21741. static="false" final="false" visibility="public"
  21742. deprecated="not deprecated">
  21743. </method>
  21744. <method name="compareTo" return="int"
  21745. abstract="false" native="false" synchronized="false"
  21746. static="false" final="false" visibility="public"
  21747. deprecated="not deprecated">
  21748. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  21749. <doc>
  21750. <![CDATA[Compares two ByteWritables.]]>
  21751. </doc>
  21752. </method>
  21753. <method name="toString" return="java.lang.String"
  21754. abstract="false" native="false" synchronized="false"
  21755. static="false" final="false" visibility="public"
  21756. deprecated="not deprecated">
  21757. </method>
  21758. <doc>
  21759. <![CDATA[A WritableComparable for a single byte.]]>
  21760. </doc>
  21761. </class>
  21762. <!-- end class org.apache.hadoop.io.ByteWritable -->
  21763. <!-- start interface org.apache.hadoop.io.Closeable -->
  21764. <interface name="Closeable" abstract="true"
  21765. static="false" final="false" visibility="public"
  21766. deprecated="use java.io.Closeable">
  21767. <implements name="java.io.Closeable"/>
  21768. <doc>
  21769. <![CDATA[@deprecated use java.io.Closeable]]>
  21770. </doc>
  21771. </interface>
  21772. <!-- end interface org.apache.hadoop.io.Closeable -->
  21773. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  21774. <class name="CompressedWritable" extends="java.lang.Object"
  21775. abstract="true"
  21776. static="false" final="false" visibility="public"
  21777. deprecated="not deprecated">
  21778. <implements name="org.apache.hadoop.io.Writable"/>
  21779. <constructor name="CompressedWritable"
  21780. static="false" final="false" visibility="public"
  21781. deprecated="not deprecated">
  21782. </constructor>
  21783. <method name="readFields"
  21784. abstract="false" native="false" synchronized="false"
  21785. static="false" final="true" visibility="public"
  21786. deprecated="not deprecated">
  21787. <param name="in" type="java.io.DataInput"/>
  21788. <exception name="IOException" type="java.io.IOException"/>
  21789. </method>
  21790. <method name="ensureInflated"
  21791. abstract="false" native="false" synchronized="false"
  21792. static="false" final="false" visibility="protected"
  21793. deprecated="not deprecated">
  21794. <doc>
  21795. <![CDATA[Must be called by all methods which access fields to ensure that the data
  21796. has been uncompressed.]]>
  21797. </doc>
  21798. </method>
  21799. <method name="readFieldsCompressed"
  21800. abstract="true" native="false" synchronized="false"
  21801. static="false" final="false" visibility="protected"
  21802. deprecated="not deprecated">
  21803. <param name="in" type="java.io.DataInput"/>
  21804. <exception name="IOException" type="java.io.IOException"/>
  21805. <doc>
  21806. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.
  21807. @param in data input.
  21808. @throws IOException raised on errors performing I/O.]]>
  21809. </doc>
  21810. </method>
  21811. <method name="write"
  21812. abstract="false" native="false" synchronized="false"
  21813. static="false" final="true" visibility="public"
  21814. deprecated="not deprecated">
  21815. <param name="out" type="java.io.DataOutput"/>
  21816. <exception name="IOException" type="java.io.IOException"/>
  21817. </method>
  21818. <method name="writeCompressed"
  21819. abstract="true" native="false" synchronized="false"
  21820. static="false" final="false" visibility="protected"
  21821. deprecated="not deprecated">
  21822. <param name="out" type="java.io.DataOutput"/>
  21823. <exception name="IOException" type="java.io.IOException"/>
  21824. <doc>
  21825. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.
  21826. @param out data output.
  21827. @throws IOException raised on errors performing I/O.]]>
  21828. </doc>
  21829. </method>
  21830. <doc>
  21831. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  21832. inflate on field access. This is useful for large objects whose fields are
  21833. not be altered during a map or reduce operation: leaving the field data
  21834. compressed makes copying the instance from one file to another much
  21835. faster.]]>
  21836. </doc>
  21837. </class>
  21838. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  21839. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  21840. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  21841. abstract="false"
  21842. static="false" final="false" visibility="public"
  21843. deprecated="not deprecated">
  21844. <method name="constructOutputStream" return="java.io.OutputStream"
  21845. abstract="false" native="false" synchronized="false"
  21846. static="true" final="false" visibility="public"
  21847. deprecated="not deprecated">
  21848. <param name="out" type="java.io.DataOutput"/>
  21849. <doc>
  21850. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  21851. is already an OutputStream, simply returns it. Otherwise, wraps
  21852. it in an OutputStream.
  21853. @param out the DataOutput to wrap
  21854. @return an OutputStream instance that outputs to 'out']]>
  21855. </doc>
  21856. </method>
  21857. <method name="write"
  21858. abstract="false" native="false" synchronized="false"
  21859. static="false" final="false" visibility="public"
  21860. deprecated="not deprecated">
  21861. <param name="b" type="int"/>
  21862. <exception name="IOException" type="java.io.IOException"/>
  21863. </method>
  21864. <method name="write"
  21865. abstract="false" native="false" synchronized="false"
  21866. static="false" final="false" visibility="public"
  21867. deprecated="not deprecated">
  21868. <param name="b" type="byte[]"/>
  21869. <param name="off" type="int"/>
  21870. <param name="len" type="int"/>
  21871. <exception name="IOException" type="java.io.IOException"/>
  21872. </method>
  21873. <method name="write"
  21874. abstract="false" native="false" synchronized="false"
  21875. static="false" final="false" visibility="public"
  21876. deprecated="not deprecated">
  21877. <param name="b" type="byte[]"/>
  21878. <exception name="IOException" type="java.io.IOException"/>
  21879. </method>
  21880. <doc>
  21881. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  21882. </doc>
  21883. </class>
  21884. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  21885. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  21886. <class name="DefaultStringifier" extends="java.lang.Object"
  21887. abstract="false"
  21888. static="false" final="false" visibility="public"
  21889. deprecated="not deprecated">
  21890. <implements name="org.apache.hadoop.io.Stringifier"/>
  21891. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  21892. static="false" final="false" visibility="public"
  21893. deprecated="not deprecated">
  21894. </constructor>
  21895. <method name="fromString" return="T"
  21896. abstract="false" native="false" synchronized="false"
  21897. static="false" final="false" visibility="public"
  21898. deprecated="not deprecated">
  21899. <param name="str" type="java.lang.String"/>
  21900. <exception name="IOException" type="java.io.IOException"/>
  21901. </method>
  21902. <method name="toString" return="java.lang.String"
  21903. abstract="false" native="false" synchronized="false"
  21904. static="false" final="false" visibility="public"
  21905. deprecated="not deprecated">
  21906. <param name="obj" type="T"/>
  21907. <exception name="IOException" type="java.io.IOException"/>
  21908. </method>
  21909. <method name="close"
  21910. abstract="false" native="false" synchronized="false"
  21911. static="false" final="false" visibility="public"
  21912. deprecated="not deprecated">
  21913. <exception name="IOException" type="java.io.IOException"/>
  21914. </method>
  21915. <method name="store"
  21916. abstract="false" native="false" synchronized="false"
  21917. static="true" final="false" visibility="public"
  21918. deprecated="not deprecated">
  21919. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21920. <param name="item" type="K"/>
  21921. <param name="keyName" type="java.lang.String"/>
  21922. <exception name="IOException" type="java.io.IOException"/>
  21923. <doc>
  21924. <![CDATA[Stores the item in the configuration with the given keyName.
  21925. @param <K> the class of the item
  21926. @param conf the configuration to store
  21927. @param item the object to be stored
  21928. @param keyName the name of the key to use
  21929. @throws IOException : forwards Exceptions from the underlying
  21930. {@link Serialization} classes.]]>
  21931. </doc>
  21932. </method>
  21933. <method name="load" return="K"
  21934. abstract="false" native="false" synchronized="false"
  21935. static="true" final="false" visibility="public"
  21936. deprecated="not deprecated">
  21937. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21938. <param name="keyName" type="java.lang.String"/>
  21939. <param name="itemClass" type="java.lang.Class"/>
  21940. <exception name="IOException" type="java.io.IOException"/>
  21941. <doc>
  21942. <![CDATA[Restores the object from the configuration.
  21943. @param <K> the class of the item
  21944. @param conf the configuration to use
  21945. @param keyName the name of the key to use
  21946. @param itemClass the class of the item
  21947. @return restored object
  21948. @throws IOException : forwards Exceptions from the underlying
  21949. {@link Serialization} classes.]]>
  21950. </doc>
  21951. </method>
  21952. <method name="storeArray"
  21953. abstract="false" native="false" synchronized="false"
  21954. static="true" final="false" visibility="public"
  21955. deprecated="not deprecated">
  21956. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21957. <param name="items" type="K[]"/>
  21958. <param name="keyName" type="java.lang.String"/>
  21959. <exception name="IOException" type="java.io.IOException"/>
  21960. <doc>
  21961. <![CDATA[Stores the array of items in the configuration with the given keyName.
  21962. @param <K> the class of the item
  21963. @param conf the configuration to use
  21964. @param items the objects to be stored
  21965. @param keyName the name of the key to use
  21966. @throws IndexOutOfBoundsException if the items array is empty
  21967. @throws IOException : forwards Exceptions from the underlying
  21968. {@link Serialization} classes.]]>
  21969. </doc>
  21970. </method>
  21971. <method name="loadArray" return="K[]"
  21972. abstract="false" native="false" synchronized="false"
  21973. static="true" final="false" visibility="public"
  21974. deprecated="not deprecated">
  21975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21976. <param name="keyName" type="java.lang.String"/>
  21977. <param name="itemClass" type="java.lang.Class"/>
  21978. <exception name="IOException" type="java.io.IOException"/>
  21979. <doc>
  21980. <![CDATA[Restores the array of objects from the configuration.
  21981. @param <K> the class of the item
  21982. @param conf the configuration to use
  21983. @param keyName the name of the key to use
  21984. @param itemClass the class of the item
  21985. @return restored object
  21986. @throws IOException : forwards Exceptions from the underlying
  21987. {@link Serialization} classes.]]>
  21988. </doc>
  21989. </method>
  21990. <doc>
  21991. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  21992. interface which stringifies the objects using base64 encoding of the
  21993. serialized version of the objects. The {@link Serializer} and
  21994. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  21995. <br>
  21996. DefaultStringifier offers convenience methods to store/load objects to/from
  21997. the configuration.
  21998. @param <T> the class of the objects to stringify]]>
  21999. </doc>
  22000. </class>
  22001. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  22002. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  22003. <class name="DoubleWritable" extends="java.lang.Object"
  22004. abstract="false"
  22005. static="false" final="false" visibility="public"
  22006. deprecated="not deprecated">
  22007. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22008. <constructor name="DoubleWritable"
  22009. static="false" final="false" visibility="public"
  22010. deprecated="not deprecated">
  22011. </constructor>
  22012. <constructor name="DoubleWritable" type="double"
  22013. static="false" final="false" visibility="public"
  22014. deprecated="not deprecated">
  22015. </constructor>
  22016. <method name="readFields"
  22017. abstract="false" native="false" synchronized="false"
  22018. static="false" final="false" visibility="public"
  22019. deprecated="not deprecated">
  22020. <param name="in" type="java.io.DataInput"/>
  22021. <exception name="IOException" type="java.io.IOException"/>
  22022. </method>
  22023. <method name="write"
  22024. abstract="false" native="false" synchronized="false"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. <param name="out" type="java.io.DataOutput"/>
  22028. <exception name="IOException" type="java.io.IOException"/>
  22029. </method>
  22030. <method name="set"
  22031. abstract="false" native="false" synchronized="false"
  22032. static="false" final="false" visibility="public"
  22033. deprecated="not deprecated">
  22034. <param name="value" type="double"/>
  22035. </method>
  22036. <method name="get" return="double"
  22037. abstract="false" native="false" synchronized="false"
  22038. static="false" final="false" visibility="public"
  22039. deprecated="not deprecated">
  22040. </method>
  22041. <method name="equals" return="boolean"
  22042. abstract="false" native="false" synchronized="false"
  22043. static="false" final="false" visibility="public"
  22044. deprecated="not deprecated">
  22045. <param name="o" type="java.lang.Object"/>
  22046. <doc>
  22047. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  22048. </doc>
  22049. </method>
  22050. <method name="hashCode" return="int"
  22051. abstract="false" native="false" synchronized="false"
  22052. static="false" final="false" visibility="public"
  22053. deprecated="not deprecated">
  22054. </method>
  22055. <method name="compareTo" return="int"
  22056. abstract="false" native="false" synchronized="false"
  22057. static="false" final="false" visibility="public"
  22058. deprecated="not deprecated">
  22059. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  22060. </method>
  22061. <method name="toString" return="java.lang.String"
  22062. abstract="false" native="false" synchronized="false"
  22063. static="false" final="false" visibility="public"
  22064. deprecated="not deprecated">
  22065. </method>
  22066. <doc>
  22067. <![CDATA[Writable for Double values.]]>
  22068. </doc>
  22069. </class>
  22070. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  22071. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  22072. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  22073. abstract="false"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  22077. <constructor name="ElasticByteBufferPool"
  22078. static="false" final="false" visibility="public"
  22079. deprecated="not deprecated">
  22080. </constructor>
  22081. <method name="getBuffer" return="java.nio.ByteBuffer"
  22082. abstract="false" native="false" synchronized="true"
  22083. static="false" final="false" visibility="public"
  22084. deprecated="not deprecated">
  22085. <param name="direct" type="boolean"/>
  22086. <param name="length" type="int"/>
  22087. </method>
  22088. <method name="putBuffer"
  22089. abstract="false" native="false" synchronized="true"
  22090. static="false" final="false" visibility="public"
  22091. deprecated="not deprecated">
  22092. <param name="buffer" type="java.nio.ByteBuffer"/>
  22093. </method>
  22094. <doc>
  22095. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  22096. It also caches ByteBuffers after they're released. It will always return
  22097. the smallest cached buffer with at least the capacity you request.
  22098. We don't try to do anything clever here like try to limit the maximum cache
  22099. size.]]>
  22100. </doc>
  22101. </class>
  22102. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  22103. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  22104. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  22105. abstract="false"
  22106. static="false" final="false" visibility="public"
  22107. deprecated="not deprecated">
  22108. <implements name="org.apache.hadoop.io.Writable"/>
  22109. <implements name="org.apache.hadoop.conf.Configurable"/>
  22110. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  22111. static="false" final="false" visibility="public"
  22112. deprecated="not deprecated">
  22113. <doc>
  22114. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  22115. its size is zero, the <tt>elementType</tt> argument must not be null. If
  22116. the argument <tt>value</tt>'s size is bigger than zero, the argument
  22117. <tt>elementType</tt> is not be used.
  22118. @param value enumSet value.
  22119. @param elementType elementType.]]>
  22120. </doc>
  22121. </constructor>
  22122. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  22123. static="false" final="false" visibility="public"
  22124. deprecated="not deprecated">
  22125. <doc>
  22126. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  22127. or empty.
  22128. @param value enumSet value.]]>
  22129. </doc>
  22130. </constructor>
  22131. <method name="iterator" return="java.util.Iterator"
  22132. abstract="false" native="false" synchronized="false"
  22133. static="false" final="false" visibility="public"
  22134. deprecated="not deprecated">
  22135. </method>
  22136. <method name="size" return="int"
  22137. abstract="false" native="false" synchronized="false"
  22138. static="false" final="false" visibility="public"
  22139. deprecated="not deprecated">
  22140. </method>
  22141. <method name="add" return="boolean"
  22142. abstract="false" native="false" synchronized="false"
  22143. static="false" final="false" visibility="public"
  22144. deprecated="not deprecated">
  22145. <param name="e" type="E"/>
  22146. </method>
  22147. <method name="set"
  22148. abstract="false" native="false" synchronized="false"
  22149. static="false" final="false" visibility="public"
  22150. deprecated="not deprecated">
  22151. <param name="value" type="java.util.EnumSet"/>
  22152. <param name="elementType" type="java.lang.Class"/>
  22153. <doc>
  22154. <![CDATA[reset the EnumSetWritable with specified
  22155. <tt>value</tt> and <tt>elementType</tt>. If the <tt>value</tt> argument
  22156. is null or its size is zero, the <tt>elementType</tt> argument must not be
  22157. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  22158. argument <tt>elementType</tt> is not be used.
  22159. @param value enumSet Value.
  22160. @param elementType elementType.]]>
  22161. </doc>
  22162. </method>
  22163. <method name="get" return="java.util.EnumSet"
  22164. abstract="false" native="false" synchronized="false"
  22165. static="false" final="false" visibility="public"
  22166. deprecated="not deprecated">
  22167. <doc>
  22168. <![CDATA[Return the value of this EnumSetWritable.
  22169. @return EnumSet.]]>
  22170. </doc>
  22171. </method>
  22172. <method name="readFields"
  22173. abstract="false" native="false" synchronized="false"
  22174. static="false" final="false" visibility="public"
  22175. deprecated="not deprecated">
  22176. <param name="in" type="java.io.DataInput"/>
  22177. <exception name="IOException" type="java.io.IOException"/>
  22178. </method>
  22179. <method name="write"
  22180. abstract="false" native="false" synchronized="false"
  22181. static="false" final="false" visibility="public"
  22182. deprecated="not deprecated">
  22183. <param name="out" type="java.io.DataOutput"/>
  22184. <exception name="IOException" type="java.io.IOException"/>
  22185. </method>
  22186. <method name="equals" return="boolean"
  22187. abstract="false" native="false" synchronized="false"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. <param name="o" type="java.lang.Object"/>
  22191. <doc>
  22192. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  22193. or both are null.]]>
  22194. </doc>
  22195. </method>
  22196. <method name="getElementType" return="java.lang.Class"
  22197. abstract="false" native="false" synchronized="false"
  22198. static="false" final="false" visibility="public"
  22199. deprecated="not deprecated">
  22200. <doc>
  22201. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  22202. may return null.
  22203. @return the element class]]>
  22204. </doc>
  22205. </method>
  22206. <method name="hashCode" return="int"
  22207. abstract="false" native="false" synchronized="false"
  22208. static="false" final="false" visibility="public"
  22209. deprecated="not deprecated">
  22210. </method>
  22211. <method name="toString" return="java.lang.String"
  22212. abstract="false" native="false" synchronized="false"
  22213. static="false" final="false" visibility="public"
  22214. deprecated="not deprecated">
  22215. </method>
  22216. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22217. abstract="false" native="false" synchronized="false"
  22218. static="false" final="false" visibility="public"
  22219. deprecated="not deprecated">
  22220. </method>
  22221. <method name="setConf"
  22222. abstract="false" native="false" synchronized="false"
  22223. static="false" final="false" visibility="public"
  22224. deprecated="not deprecated">
  22225. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22226. </method>
  22227. <doc>
  22228. <![CDATA[A Writable wrapper for EnumSet.]]>
  22229. </doc>
  22230. </class>
  22231. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  22232. <!-- start class org.apache.hadoop.io.FloatWritable -->
  22233. <class name="FloatWritable" extends="java.lang.Object"
  22234. abstract="false"
  22235. static="false" final="false" visibility="public"
  22236. deprecated="not deprecated">
  22237. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22238. <constructor name="FloatWritable"
  22239. static="false" final="false" visibility="public"
  22240. deprecated="not deprecated">
  22241. </constructor>
  22242. <constructor name="FloatWritable" type="float"
  22243. static="false" final="false" visibility="public"
  22244. deprecated="not deprecated">
  22245. </constructor>
  22246. <method name="set"
  22247. abstract="false" native="false" synchronized="false"
  22248. static="false" final="false" visibility="public"
  22249. deprecated="not deprecated">
  22250. <param name="value" type="float"/>
  22251. <doc>
  22252. <![CDATA[Set the value of this FloatWritable.
  22253. @param value value.]]>
  22254. </doc>
  22255. </method>
  22256. <method name="get" return="float"
  22257. abstract="false" native="false" synchronized="false"
  22258. static="false" final="false" visibility="public"
  22259. deprecated="not deprecated">
  22260. <doc>
  22261. <![CDATA[Return the value of this FloatWritable.
  22262. @return value.]]>
  22263. </doc>
  22264. </method>
  22265. <method name="readFields"
  22266. abstract="false" native="false" synchronized="false"
  22267. static="false" final="false" visibility="public"
  22268. deprecated="not deprecated">
  22269. <param name="in" type="java.io.DataInput"/>
  22270. <exception name="IOException" type="java.io.IOException"/>
  22271. </method>
  22272. <method name="write"
  22273. abstract="false" native="false" synchronized="false"
  22274. static="false" final="false" visibility="public"
  22275. deprecated="not deprecated">
  22276. <param name="out" type="java.io.DataOutput"/>
  22277. <exception name="IOException" type="java.io.IOException"/>
  22278. </method>
  22279. <method name="equals" return="boolean"
  22280. abstract="false" native="false" synchronized="false"
  22281. static="false" final="false" visibility="public"
  22282. deprecated="not deprecated">
  22283. <param name="o" type="java.lang.Object"/>
  22284. <doc>
  22285. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  22286. </doc>
  22287. </method>
  22288. <method name="hashCode" return="int"
  22289. abstract="false" native="false" synchronized="false"
  22290. static="false" final="false" visibility="public"
  22291. deprecated="not deprecated">
  22292. </method>
  22293. <method name="compareTo" return="int"
  22294. abstract="false" native="false" synchronized="false"
  22295. static="false" final="false" visibility="public"
  22296. deprecated="not deprecated">
  22297. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  22298. <doc>
  22299. <![CDATA[Compares two FloatWritables.]]>
  22300. </doc>
  22301. </method>
  22302. <method name="toString" return="java.lang.String"
  22303. abstract="false" native="false" synchronized="false"
  22304. static="false" final="false" visibility="public"
  22305. deprecated="not deprecated">
  22306. </method>
  22307. <doc>
  22308. <![CDATA[A WritableComparable for floats.]]>
  22309. </doc>
  22310. </class>
  22311. <!-- end class org.apache.hadoop.io.FloatWritable -->
  22312. <!-- start class org.apache.hadoop.io.GenericWritable -->
  22313. <class name="GenericWritable" extends="java.lang.Object"
  22314. abstract="true"
  22315. static="false" final="false" visibility="public"
  22316. deprecated="not deprecated">
  22317. <implements name="org.apache.hadoop.io.Writable"/>
  22318. <implements name="org.apache.hadoop.conf.Configurable"/>
  22319. <constructor name="GenericWritable"
  22320. static="false" final="false" visibility="public"
  22321. deprecated="not deprecated">
  22322. </constructor>
  22323. <method name="set"
  22324. abstract="false" native="false" synchronized="false"
  22325. static="false" final="false" visibility="public"
  22326. deprecated="not deprecated">
  22327. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  22328. <doc>
  22329. <![CDATA[Set the instance that is wrapped.
  22330. @param obj input obj.]]>
  22331. </doc>
  22332. </method>
  22333. <method name="get" return="org.apache.hadoop.io.Writable"
  22334. abstract="false" native="false" synchronized="false"
  22335. static="false" final="false" visibility="public"
  22336. deprecated="not deprecated">
  22337. <doc>
  22338. <![CDATA[Return the wrapped instance.
  22339. @return the wrapped instance.]]>
  22340. </doc>
  22341. </method>
  22342. <method name="toString" return="java.lang.String"
  22343. abstract="false" native="false" synchronized="false"
  22344. static="false" final="false" visibility="public"
  22345. deprecated="not deprecated">
  22346. </method>
  22347. <method name="readFields"
  22348. abstract="false" native="false" synchronized="false"
  22349. static="false" final="false" visibility="public"
  22350. deprecated="not deprecated">
  22351. <param name="in" type="java.io.DataInput"/>
  22352. <exception name="IOException" type="java.io.IOException"/>
  22353. </method>
  22354. <method name="write"
  22355. abstract="false" native="false" synchronized="false"
  22356. static="false" final="false" visibility="public"
  22357. deprecated="not deprecated">
  22358. <param name="out" type="java.io.DataOutput"/>
  22359. <exception name="IOException" type="java.io.IOException"/>
  22360. </method>
  22361. <method name="getTypes" return="java.lang.Class[]"
  22362. abstract="true" native="false" synchronized="false"
  22363. static="false" final="false" visibility="protected"
  22364. deprecated="not deprecated">
  22365. <doc>
  22366. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  22367. to return a constant array of classes.
  22368. @return all classes that may be wrapped.]]>
  22369. </doc>
  22370. </method>
  22371. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22372. abstract="false" native="false" synchronized="false"
  22373. static="false" final="false" visibility="public"
  22374. deprecated="not deprecated">
  22375. </method>
  22376. <method name="setConf"
  22377. abstract="false" native="false" synchronized="false"
  22378. static="false" final="false" visibility="public"
  22379. deprecated="not deprecated">
  22380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22381. </method>
  22382. <doc>
  22383. <![CDATA[A wrapper for Writable instances.
  22384. <p>
  22385. When two sequence files, which have same Key type but different Value
  22386. types, are mapped out to reduce, multiple Value types is not allowed.
  22387. In this case, this class can help you wrap instances with different types.
  22388. </p>
  22389. <p>
  22390. Compared with <code>ObjectWritable</code>, this class is much more effective,
  22391. because <code>ObjectWritable</code> will append the class declaration as a String
  22392. into the output file in every Key-Value pair.
  22393. </p>
  22394. <p>
  22395. Generic Writable implements {@link Configurable} interface, so that it will be
  22396. configured by the framework. The configuration is passed to the wrapped objects
  22397. implementing {@link Configurable} interface <i>before deserialization</i>.
  22398. </p>
  22399. how to use it: <br>
  22400. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  22401. 2. Implements the abstract method <code>getTypes()</code>, defines
  22402. the classes which will be wrapped in GenericObject in application.
  22403. Attention: this classes defined in <code>getTypes()</code> method, must
  22404. implement <code>Writable</code> interface.
  22405. <br><br>
  22406. The code looks like this:
  22407. <blockquote><pre>
  22408. public class GenericObject extends GenericWritable {
  22409. private static Class[] CLASSES = {
  22410. ClassType1.class,
  22411. ClassType2.class,
  22412. ClassType3.class,
  22413. };
  22414. protected Class[] getTypes() {
  22415. return CLASSES;
  22416. }
  22417. }
  22418. </pre></blockquote>
  22419. @since Nov 8, 2006]]>
  22420. </doc>
  22421. </class>
  22422. <!-- end class org.apache.hadoop.io.GenericWritable -->
  22423. <!-- start class org.apache.hadoop.io.IntWritable -->
  22424. <class name="IntWritable" extends="java.lang.Object"
  22425. abstract="false"
  22426. static="false" final="false" visibility="public"
  22427. deprecated="not deprecated">
  22428. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22429. <constructor name="IntWritable"
  22430. static="false" final="false" visibility="public"
  22431. deprecated="not deprecated">
  22432. </constructor>
  22433. <constructor name="IntWritable" type="int"
  22434. static="false" final="false" visibility="public"
  22435. deprecated="not deprecated">
  22436. </constructor>
  22437. <method name="set"
  22438. abstract="false" native="false" synchronized="false"
  22439. static="false" final="false" visibility="public"
  22440. deprecated="not deprecated">
  22441. <param name="value" type="int"/>
  22442. <doc>
  22443. <![CDATA[Set the value of this IntWritable.
  22444. @param value input value.]]>
  22445. </doc>
  22446. </method>
  22447. <method name="get" return="int"
  22448. abstract="false" native="false" synchronized="false"
  22449. static="false" final="false" visibility="public"
  22450. deprecated="not deprecated">
  22451. <doc>
  22452. <![CDATA[Return the value of this IntWritable.
  22453. @return value of this IntWritable.]]>
  22454. </doc>
  22455. </method>
  22456. <method name="readFields"
  22457. abstract="false" native="false" synchronized="false"
  22458. static="false" final="false" visibility="public"
  22459. deprecated="not deprecated">
  22460. <param name="in" type="java.io.DataInput"/>
  22461. <exception name="IOException" type="java.io.IOException"/>
  22462. </method>
  22463. <method name="write"
  22464. abstract="false" native="false" synchronized="false"
  22465. static="false" final="false" visibility="public"
  22466. deprecated="not deprecated">
  22467. <param name="out" type="java.io.DataOutput"/>
  22468. <exception name="IOException" type="java.io.IOException"/>
  22469. </method>
  22470. <method name="equals" return="boolean"
  22471. abstract="false" native="false" synchronized="false"
  22472. static="false" final="false" visibility="public"
  22473. deprecated="not deprecated">
  22474. <param name="o" type="java.lang.Object"/>
  22475. <doc>
  22476. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  22477. </doc>
  22478. </method>
  22479. <method name="hashCode" return="int"
  22480. abstract="false" native="false" synchronized="false"
  22481. static="false" final="false" visibility="public"
  22482. deprecated="not deprecated">
  22483. </method>
  22484. <method name="compareTo" return="int"
  22485. abstract="false" native="false" synchronized="false"
  22486. static="false" final="false" visibility="public"
  22487. deprecated="not deprecated">
  22488. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  22489. <doc>
  22490. <![CDATA[Compares two IntWritables.]]>
  22491. </doc>
  22492. </method>
  22493. <method name="toString" return="java.lang.String"
  22494. abstract="false" native="false" synchronized="false"
  22495. static="false" final="false" visibility="public"
  22496. deprecated="not deprecated">
  22497. </method>
  22498. <doc>
  22499. <![CDATA[A WritableComparable for ints.]]>
  22500. </doc>
  22501. </class>
  22502. <!-- end class org.apache.hadoop.io.IntWritable -->
  22503. <!-- start class org.apache.hadoop.io.IOUtils -->
  22504. <class name="IOUtils" extends="java.lang.Object"
  22505. abstract="false"
  22506. static="false" final="false" visibility="public"
  22507. deprecated="not deprecated">
  22508. <constructor name="IOUtils"
  22509. static="false" final="false" visibility="public"
  22510. deprecated="not deprecated">
  22511. </constructor>
  22512. <method name="copyBytes"
  22513. abstract="false" native="false" synchronized="false"
  22514. static="true" final="false" visibility="public"
  22515. deprecated="not deprecated">
  22516. <param name="in" type="java.io.InputStream"/>
  22517. <param name="out" type="java.io.OutputStream"/>
  22518. <param name="buffSize" type="int"/>
  22519. <param name="close" type="boolean"/>
  22520. <exception name="IOException" type="java.io.IOException"/>
  22521. <doc>
  22522. <![CDATA[Copies from one stream to another.
  22523. @param in InputStrem to read from
  22524. @param out OutputStream to write to
  22525. @param buffSize the size of the buffer
  22526. @param close whether or not close the InputStream and
  22527. OutputStream at the end. The streams are closed in the finally clause.
  22528. @throws IOException raised on errors performing I/O.]]>
  22529. </doc>
  22530. </method>
  22531. <method name="copyBytes"
  22532. abstract="false" native="false" synchronized="false"
  22533. static="true" final="false" visibility="public"
  22534. deprecated="not deprecated">
  22535. <param name="in" type="java.io.InputStream"/>
  22536. <param name="out" type="java.io.OutputStream"/>
  22537. <param name="buffSize" type="int"/>
  22538. <exception name="IOException" type="java.io.IOException"/>
  22539. <doc>
  22540. <![CDATA[Copies from one stream to another.
  22541. @param in InputStrem to read from
  22542. @param out OutputStream to write to
  22543. @param buffSize the size of the buffer.
  22544. @throws IOException raised on errors performing I/O.]]>
  22545. </doc>
  22546. </method>
  22547. <method name="copyBytes"
  22548. abstract="false" native="false" synchronized="false"
  22549. static="true" final="false" visibility="public"
  22550. deprecated="not deprecated">
  22551. <param name="in" type="java.io.InputStream"/>
  22552. <param name="out" type="java.io.OutputStream"/>
  22553. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22554. <exception name="IOException" type="java.io.IOException"/>
  22555. <doc>
  22556. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  22557. at the end</strong>.
  22558. @param in InputStrem to read from
  22559. @param out OutputStream to write to
  22560. @param conf the Configuration object.
  22561. @throws IOException raised on errors performing I/O.]]>
  22562. </doc>
  22563. </method>
  22564. <method name="copyBytes"
  22565. abstract="false" native="false" synchronized="false"
  22566. static="true" final="false" visibility="public"
  22567. deprecated="not deprecated">
  22568. <param name="in" type="java.io.InputStream"/>
  22569. <param name="out" type="java.io.OutputStream"/>
  22570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22571. <param name="close" type="boolean"/>
  22572. <exception name="IOException" type="java.io.IOException"/>
  22573. <doc>
  22574. <![CDATA[Copies from one stream to another.
  22575. @param in InputStream to read from
  22576. @param out OutputStream to write to
  22577. @param conf the Configuration object
  22578. @param close whether or not close the InputStream and
  22579. OutputStream at the end. The streams are closed in the finally clause.
  22580. @throws IOException raised on errors performing I/O.]]>
  22581. </doc>
  22582. </method>
  22583. <method name="copyBytes"
  22584. abstract="false" native="false" synchronized="false"
  22585. static="true" final="false" visibility="public"
  22586. deprecated="not deprecated">
  22587. <param name="in" type="java.io.InputStream"/>
  22588. <param name="out" type="java.io.OutputStream"/>
  22589. <param name="count" type="long"/>
  22590. <param name="close" type="boolean"/>
  22591. <exception name="IOException" type="java.io.IOException"/>
  22592. <doc>
  22593. <![CDATA[Copies count bytes from one stream to another.
  22594. @param in InputStream to read from
  22595. @param out OutputStream to write to
  22596. @param count number of bytes to copy
  22597. @param close whether to close the streams
  22598. @throws IOException if bytes can not be read or written]]>
  22599. </doc>
  22600. </method>
  22601. <method name="wrappedReadForCompressedData" return="int"
  22602. abstract="false" native="false" synchronized="false"
  22603. static="true" final="false" visibility="public"
  22604. deprecated="not deprecated">
  22605. <param name="is" type="java.io.InputStream"/>
  22606. <param name="buf" type="byte[]"/>
  22607. <param name="off" type="int"/>
  22608. <param name="len" type="int"/>
  22609. <exception name="IOException" type="java.io.IOException"/>
  22610. <doc>
  22611. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  22612. thrown by the underlying stream (either IO or decompression-related), and
  22613. re-throws as an IOException.
  22614. @param is - InputStream to be read from
  22615. @param buf - buffer the data is read into
  22616. @param off - offset within buf
  22617. @param len - amount of data to be read
  22618. @return number of bytes read
  22619. @throws IOException raised on errors performing I/O.]]>
  22620. </doc>
  22621. </method>
  22622. <method name="readFully"
  22623. abstract="false" native="false" synchronized="false"
  22624. static="true" final="false" visibility="public"
  22625. deprecated="not deprecated">
  22626. <param name="in" type="java.io.InputStream"/>
  22627. <param name="buf" type="byte[]"/>
  22628. <param name="off" type="int"/>
  22629. <param name="len" type="int"/>
  22630. <exception name="IOException" type="java.io.IOException"/>
  22631. <doc>
  22632. <![CDATA[Reads len bytes in a loop.
  22633. @param in InputStream to read from
  22634. @param buf The buffer to fill
  22635. @param off offset from the buffer
  22636. @param len the length of bytes to read
  22637. @throws IOException if it could not read requested number of bytes
  22638. for any reason (including EOF)]]>
  22639. </doc>
  22640. </method>
  22641. <method name="skipFully"
  22642. abstract="false" native="false" synchronized="false"
  22643. static="true" final="false" visibility="public"
  22644. deprecated="not deprecated">
  22645. <param name="in" type="java.io.InputStream"/>
  22646. <param name="len" type="long"/>
  22647. <exception name="IOException" type="java.io.IOException"/>
  22648. <doc>
  22649. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  22650. @param in The InputStream to skip bytes from
  22651. @param len number of bytes to skip.
  22652. @throws IOException if it could not skip requested number of bytes
  22653. for any reason (including EOF)]]>
  22654. </doc>
  22655. </method>
  22656. <method name="cleanup"
  22657. abstract="false" native="false" synchronized="false"
  22658. static="true" final="false" visibility="public"
  22659. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  22660. instead">
  22661. <param name="log" type="org.apache.commons.logging.Log"/>
  22662. <param name="closeables" type="java.io.Closeable[]"/>
  22663. <doc>
  22664. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  22665. null pointers. Must only be used for cleanup in exception handlers.
  22666. @param log the log to record problems to at debug level. Can be null.
  22667. @param closeables the objects to close
  22668. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  22669. instead]]>
  22670. </doc>
  22671. </method>
  22672. <method name="cleanupWithLogger"
  22673. abstract="false" native="false" synchronized="false"
  22674. static="true" final="false" visibility="public"
  22675. deprecated="not deprecated">
  22676. <param name="logger" type="org.slf4j.Logger"/>
  22677. <param name="closeables" type="java.io.Closeable[]"/>
  22678. <doc>
  22679. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  22680. null pointers. Must only be used for cleanup in exception handlers.
  22681. @param logger the log to record problems to at debug level. Can be null.
  22682. @param closeables the objects to close]]>
  22683. </doc>
  22684. </method>
  22685. <method name="closeStream"
  22686. abstract="false" native="false" synchronized="false"
  22687. static="true" final="false" visibility="public"
  22688. deprecated="not deprecated">
  22689. <param name="stream" type="java.io.Closeable"/>
  22690. <doc>
  22691. <![CDATA[Closes the stream ignoring {@link Throwable}.
  22692. Must only be called in cleaning up from exception handlers.
  22693. @param stream the Stream to close]]>
  22694. </doc>
  22695. </method>
  22696. <method name="closeStreams"
  22697. abstract="false" native="false" synchronized="false"
  22698. static="true" final="false" visibility="public"
  22699. deprecated="not deprecated">
  22700. <param name="streams" type="java.io.Closeable[]"/>
  22701. <doc>
  22702. <![CDATA[Closes the streams ignoring {@link Throwable}.
  22703. Must only be called in cleaning up from exception handlers.
  22704. @param streams the Streams to close]]>
  22705. </doc>
  22706. </method>
  22707. <method name="closeSocket"
  22708. abstract="false" native="false" synchronized="false"
  22709. static="true" final="false" visibility="public"
  22710. deprecated="not deprecated">
  22711. <param name="sock" type="java.net.Socket"/>
  22712. <doc>
  22713. <![CDATA[Closes the socket ignoring {@link IOException}
  22714. @param sock the Socket to close]]>
  22715. </doc>
  22716. </method>
  22717. <method name="writeFully"
  22718. abstract="false" native="false" synchronized="false"
  22719. static="true" final="false" visibility="public"
  22720. deprecated="not deprecated">
  22721. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  22722. <param name="buf" type="java.nio.ByteBuffer"/>
  22723. <exception name="IOException" type="java.io.IOException"/>
  22724. <doc>
  22725. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  22726. @param bc The WritableByteChannel to write to
  22727. @param buf The input buffer
  22728. @throws IOException On I/O error]]>
  22729. </doc>
  22730. </method>
  22731. <method name="writeFully"
  22732. abstract="false" native="false" synchronized="false"
  22733. static="true" final="false" visibility="public"
  22734. deprecated="not deprecated">
  22735. <param name="fc" type="java.nio.channels.FileChannel"/>
  22736. <param name="buf" type="java.nio.ByteBuffer"/>
  22737. <param name="offset" type="long"/>
  22738. <exception name="IOException" type="java.io.IOException"/>
  22739. <doc>
  22740. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  22741. handling short writes.
  22742. @param fc The FileChannel to write to
  22743. @param buf The input buffer
  22744. @param offset The offset in the file to start writing at
  22745. @throws IOException On I/O error]]>
  22746. </doc>
  22747. </method>
  22748. <method name="listDirectory" return="java.util.List"
  22749. abstract="false" native="false" synchronized="false"
  22750. static="true" final="false" visibility="public"
  22751. deprecated="not deprecated">
  22752. <param name="dir" type="java.io.File"/>
  22753. <param name="filter" type="java.io.FilenameFilter"/>
  22754. <exception name="IOException" type="java.io.IOException"/>
  22755. <doc>
  22756. <![CDATA[Return the complete list of files in a directory as strings.<p>
  22757. This is better than File#listDir because it does not ignore IOExceptions.
  22758. @param dir The directory to list.
  22759. @param filter If non-null, the filter to use when listing
  22760. this directory.
  22761. @return The list of files in the directory.
  22762. @throws IOException On I/O error]]>
  22763. </doc>
  22764. </method>
  22765. <method name="fsync"
  22766. abstract="false" native="false" synchronized="false"
  22767. static="true" final="false" visibility="public"
  22768. deprecated="not deprecated">
  22769. <param name="fileToSync" type="java.io.File"/>
  22770. <exception name="IOException" type="java.io.IOException"/>
  22771. <doc>
  22772. <![CDATA[Ensure that any writes to the given file is written to the storage device
  22773. that contains it. This method opens channel on given File and closes it
  22774. once the sync is done.<br>
  22775. Borrowed from Uwe Schindler in LUCENE-5588
  22776. @param fileToSync the file to fsync
  22777. @throws IOException raised on errors performing I/O.]]>
  22778. </doc>
  22779. </method>
  22780. <method name="fsync"
  22781. abstract="false" native="false" synchronized="false"
  22782. static="true" final="false" visibility="public"
  22783. deprecated="not deprecated">
  22784. <param name="channel" type="java.nio.channels.FileChannel"/>
  22785. <param name="isDir" type="boolean"/>
  22786. <exception name="IOException" type="java.io.IOException"/>
  22787. <doc>
  22788. <![CDATA[Ensure that any writes to the given file is written to the storage device
  22789. that contains it. This method opens channel on given File and closes it
  22790. once the sync is done.
  22791. Borrowed from Uwe Schindler in LUCENE-5588
  22792. @param channel Channel to sync
  22793. @param isDir if true, the given file is a directory (Channel should be
  22794. opened for read and ignore IOExceptions, because not all file
  22795. systems and operating systems allow to fsync on a directory)
  22796. @throws IOException raised on errors performing I/O.]]>
  22797. </doc>
  22798. </method>
  22799. <method name="wrapException" return="java.io.IOException"
  22800. abstract="false" native="false" synchronized="false"
  22801. static="true" final="false" visibility="public"
  22802. deprecated="not deprecated">
  22803. <param name="path" type="java.lang.String"/>
  22804. <param name="methodName" type="java.lang.String"/>
  22805. <param name="exception" type="java.io.IOException"/>
  22806. <doc>
  22807. <![CDATA[Takes an IOException, file/directory path, and method name and returns an
  22808. IOException with the input exception as the cause and also include the
  22809. file,method details. The new exception provides the stack trace of the
  22810. place where the exception is thrown and some extra diagnostics
  22811. information.
  22812. Return instance of same exception if exception class has a public string
  22813. constructor; Otherwise return an PathIOException.
  22814. InterruptedIOException and PathIOException are returned unwrapped.
  22815. @param path file/directory path
  22816. @param methodName method name
  22817. @param exception the caught exception.
  22818. @return an exception to throw]]>
  22819. </doc>
  22820. </method>
  22821. <method name="readFullyToByteArray" return="byte[]"
  22822. abstract="false" native="false" synchronized="false"
  22823. static="true" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. <param name="in" type="java.io.DataInput"/>
  22826. <exception name="IOException" type="java.io.IOException"/>
  22827. <doc>
  22828. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  22829. pass in an infinite DataInput or this will never return.
  22830. @param in A DataInput
  22831. @return a byte array containing the data from the DataInput
  22832. @throws IOException on I/O error, other than EOF]]>
  22833. </doc>
  22834. </method>
  22835. <field name="LOG" type="org.slf4j.Logger"
  22836. transient="false" volatile="false"
  22837. static="true" final="true" visibility="public"
  22838. deprecated="not deprecated">
  22839. </field>
  22840. <doc>
  22841. <![CDATA[An utility class for I/O related functionality.]]>
  22842. </doc>
  22843. </class>
  22844. <!-- end class org.apache.hadoop.io.IOUtils -->
  22845. <!-- start class org.apache.hadoop.io.LongWritable -->
  22846. <class name="LongWritable" extends="java.lang.Object"
  22847. abstract="false"
  22848. static="false" final="false" visibility="public"
  22849. deprecated="not deprecated">
  22850. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22851. <constructor name="LongWritable"
  22852. static="false" final="false" visibility="public"
  22853. deprecated="not deprecated">
  22854. </constructor>
  22855. <constructor name="LongWritable" type="long"
  22856. static="false" final="false" visibility="public"
  22857. deprecated="not deprecated">
  22858. </constructor>
  22859. <method name="set"
  22860. abstract="false" native="false" synchronized="false"
  22861. static="false" final="false" visibility="public"
  22862. deprecated="not deprecated">
  22863. <param name="value" type="long"/>
  22864. <doc>
  22865. <![CDATA[Set the value of this LongWritable.
  22866. @param value value.]]>
  22867. </doc>
  22868. </method>
  22869. <method name="get" return="long"
  22870. abstract="false" native="false" synchronized="false"
  22871. static="false" final="false" visibility="public"
  22872. deprecated="not deprecated">
  22873. <doc>
  22874. <![CDATA[Return the value of this LongWritable.
  22875. @return value of this LongWritable.]]>
  22876. </doc>
  22877. </method>
  22878. <method name="readFields"
  22879. abstract="false" native="false" synchronized="false"
  22880. static="false" final="false" visibility="public"
  22881. deprecated="not deprecated">
  22882. <param name="in" type="java.io.DataInput"/>
  22883. <exception name="IOException" type="java.io.IOException"/>
  22884. </method>
  22885. <method name="write"
  22886. abstract="false" native="false" synchronized="false"
  22887. static="false" final="false" visibility="public"
  22888. deprecated="not deprecated">
  22889. <param name="out" type="java.io.DataOutput"/>
  22890. <exception name="IOException" type="java.io.IOException"/>
  22891. </method>
  22892. <method name="equals" return="boolean"
  22893. abstract="false" native="false" synchronized="false"
  22894. static="false" final="false" visibility="public"
  22895. deprecated="not deprecated">
  22896. <param name="o" type="java.lang.Object"/>
  22897. <doc>
  22898. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  22899. </doc>
  22900. </method>
  22901. <method name="hashCode" return="int"
  22902. abstract="false" native="false" synchronized="false"
  22903. static="false" final="false" visibility="public"
  22904. deprecated="not deprecated">
  22905. </method>
  22906. <method name="compareTo" return="int"
  22907. abstract="false" native="false" synchronized="false"
  22908. static="false" final="false" visibility="public"
  22909. deprecated="not deprecated">
  22910. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  22911. <doc>
  22912. <![CDATA[Compares two LongWritables.]]>
  22913. </doc>
  22914. </method>
  22915. <method name="toString" return="java.lang.String"
  22916. abstract="false" native="false" synchronized="false"
  22917. static="false" final="false" visibility="public"
  22918. deprecated="not deprecated">
  22919. </method>
  22920. <doc>
  22921. <![CDATA[A WritableComparable for longs.]]>
  22922. </doc>
  22923. </class>
  22924. <!-- end class org.apache.hadoop.io.LongWritable -->
  22925. <!-- start class org.apache.hadoop.io.MapFile -->
  22926. <class name="MapFile" extends="java.lang.Object"
  22927. abstract="false"
  22928. static="false" final="false" visibility="public"
  22929. deprecated="not deprecated">
  22930. <constructor name="MapFile"
  22931. static="false" final="false" visibility="protected"
  22932. deprecated="not deprecated">
  22933. </constructor>
  22934. <method name="rename"
  22935. abstract="false" native="false" synchronized="false"
  22936. static="true" final="false" visibility="public"
  22937. deprecated="not deprecated">
  22938. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22939. <param name="oldName" type="java.lang.String"/>
  22940. <param name="newName" type="java.lang.String"/>
  22941. <exception name="IOException" type="java.io.IOException"/>
  22942. <doc>
  22943. <![CDATA[Renames an existing map directory.
  22944. @param fs fs.
  22945. @param oldName oldName.
  22946. @param newName newName.
  22947. @throws IOException raised on errors performing I/O.]]>
  22948. </doc>
  22949. </method>
  22950. <method name="delete"
  22951. abstract="false" native="false" synchronized="false"
  22952. static="true" final="false" visibility="public"
  22953. deprecated="not deprecated">
  22954. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22955. <param name="name" type="java.lang.String"/>
  22956. <exception name="IOException" type="java.io.IOException"/>
  22957. <doc>
  22958. <![CDATA[Deletes the named map file.
  22959. @param fs input fs.
  22960. @param name input name.
  22961. @throws IOException raised on errors performing I/O.]]>
  22962. </doc>
  22963. </method>
  22964. <method name="fix" return="long"
  22965. abstract="false" native="false" synchronized="false"
  22966. static="true" final="false" visibility="public"
  22967. deprecated="not deprecated">
  22968. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22969. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22970. <param name="keyClass" type="java.lang.Class"/>
  22971. <param name="valueClass" type="java.lang.Class"/>
  22972. <param name="dryrun" type="boolean"/>
  22973. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22974. <exception name="Exception" type="java.lang.Exception"/>
  22975. <doc>
  22976. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  22977. @param fs filesystem
  22978. @param dir directory containing the MapFile data and index
  22979. @param keyClass key class (has to be a subclass of Writable)
  22980. @param valueClass value class (has to be a subclass of Writable)
  22981. @param dryrun do not perform any changes, just report what needs to be done
  22982. @param conf configuration.
  22983. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  22984. @throws Exception Exception.]]>
  22985. </doc>
  22986. </method>
  22987. <method name="main"
  22988. abstract="false" native="false" synchronized="false"
  22989. static="true" final="false" visibility="public"
  22990. deprecated="not deprecated">
  22991. <param name="args" type="java.lang.String[]"/>
  22992. <exception name="Exception" type="java.lang.Exception"/>
  22993. </method>
  22994. <field name="INDEX_FILE_NAME" type="java.lang.String"
  22995. transient="false" volatile="false"
  22996. static="true" final="true" visibility="public"
  22997. deprecated="not deprecated">
  22998. <doc>
  22999. <![CDATA[The name of the index file.]]>
  23000. </doc>
  23001. </field>
  23002. <field name="DATA_FILE_NAME" type="java.lang.String"
  23003. transient="false" volatile="false"
  23004. static="true" final="true" visibility="public"
  23005. deprecated="not deprecated">
  23006. <doc>
  23007. <![CDATA[The name of the data file.]]>
  23008. </doc>
  23009. </field>
  23010. <doc>
  23011. <![CDATA[A file-based map from keys to values.
  23012. <p>A map is a directory containing two files, the <code>data</code> file,
  23013. containing all keys and values in the map, and a smaller <code>index</code>
  23014. file, containing a fraction of the keys. The fraction is determined by
  23015. {@link Writer#getIndexInterval()}.
  23016. <p>The index file is read entirely into memory. Thus key implementations
  23017. should try to keep themselves small.
  23018. <p>Map files are created by adding entries in-order. To maintain a large
  23019. database, perform updates by copying the previous version of a database and
  23020. merging in a sorted change list, to create a new version of the database in
  23021. a new file. Sorting large change lists can be done with {@link
  23022. SequenceFile.Sorter}.]]>
  23023. </doc>
  23024. </class>
  23025. <!-- end class org.apache.hadoop.io.MapFile -->
  23026. <!-- start class org.apache.hadoop.io.MapWritable -->
  23027. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  23028. abstract="false"
  23029. static="false" final="false" visibility="public"
  23030. deprecated="not deprecated">
  23031. <implements name="java.util.Map"/>
  23032. <constructor name="MapWritable"
  23033. static="false" final="false" visibility="public"
  23034. deprecated="not deprecated">
  23035. <doc>
  23036. <![CDATA[Default constructor.]]>
  23037. </doc>
  23038. </constructor>
  23039. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  23040. static="false" final="false" visibility="public"
  23041. deprecated="not deprecated">
  23042. <doc>
  23043. <![CDATA[Copy constructor.
  23044. @param other the map to copy from]]>
  23045. </doc>
  23046. </constructor>
  23047. <method name="clear"
  23048. abstract="false" native="false" synchronized="false"
  23049. static="false" final="false" visibility="public"
  23050. deprecated="not deprecated">
  23051. </method>
  23052. <method name="containsKey" return="boolean"
  23053. abstract="false" native="false" synchronized="false"
  23054. static="false" final="false" visibility="public"
  23055. deprecated="not deprecated">
  23056. <param name="key" type="java.lang.Object"/>
  23057. </method>
  23058. <method name="containsValue" return="boolean"
  23059. abstract="false" native="false" synchronized="false"
  23060. static="false" final="false" visibility="public"
  23061. deprecated="not deprecated">
  23062. <param name="value" type="java.lang.Object"/>
  23063. </method>
  23064. <method name="entrySet" return="java.util.Set"
  23065. abstract="false" native="false" synchronized="false"
  23066. static="false" final="false" visibility="public"
  23067. deprecated="not deprecated">
  23068. </method>
  23069. <method name="equals" return="boolean"
  23070. abstract="false" native="false" synchronized="false"
  23071. static="false" final="false" visibility="public"
  23072. deprecated="not deprecated">
  23073. <param name="obj" type="java.lang.Object"/>
  23074. </method>
  23075. <method name="get" return="org.apache.hadoop.io.Writable"
  23076. abstract="false" native="false" synchronized="false"
  23077. static="false" final="false" visibility="public"
  23078. deprecated="not deprecated">
  23079. <param name="key" type="java.lang.Object"/>
  23080. </method>
  23081. <method name="hashCode" return="int"
  23082. abstract="false" native="false" synchronized="false"
  23083. static="false" final="false" visibility="public"
  23084. deprecated="not deprecated">
  23085. </method>
  23086. <method name="isEmpty" return="boolean"
  23087. abstract="false" native="false" synchronized="false"
  23088. static="false" final="false" visibility="public"
  23089. deprecated="not deprecated">
  23090. </method>
  23091. <method name="keySet" return="java.util.Set"
  23092. abstract="false" native="false" synchronized="false"
  23093. static="false" final="false" visibility="public"
  23094. deprecated="not deprecated">
  23095. </method>
  23096. <method name="put" return="org.apache.hadoop.io.Writable"
  23097. abstract="false" native="false" synchronized="false"
  23098. static="false" final="false" visibility="public"
  23099. deprecated="not deprecated">
  23100. <param name="key" type="org.apache.hadoop.io.Writable"/>
  23101. <param name="value" type="org.apache.hadoop.io.Writable"/>
  23102. </method>
  23103. <method name="putAll"
  23104. abstract="false" native="false" synchronized="false"
  23105. static="false" final="false" visibility="public"
  23106. deprecated="not deprecated">
  23107. <param name="t" type="java.util.Map"/>
  23108. </method>
  23109. <method name="remove" return="org.apache.hadoop.io.Writable"
  23110. abstract="false" native="false" synchronized="false"
  23111. static="false" final="false" visibility="public"
  23112. deprecated="not deprecated">
  23113. <param name="key" type="java.lang.Object"/>
  23114. </method>
  23115. <method name="size" return="int"
  23116. abstract="false" native="false" synchronized="false"
  23117. static="false" final="false" visibility="public"
  23118. deprecated="not deprecated">
  23119. </method>
  23120. <method name="values" return="java.util.Collection"
  23121. abstract="false" native="false" synchronized="false"
  23122. static="false" final="false" visibility="public"
  23123. deprecated="not deprecated">
  23124. </method>
  23125. <method name="write"
  23126. abstract="false" native="false" synchronized="false"
  23127. static="false" final="false" visibility="public"
  23128. deprecated="not deprecated">
  23129. <param name="out" type="java.io.DataOutput"/>
  23130. <exception name="IOException" type="java.io.IOException"/>
  23131. </method>
  23132. <method name="readFields"
  23133. abstract="false" native="false" synchronized="false"
  23134. static="false" final="false" visibility="public"
  23135. deprecated="not deprecated">
  23136. <param name="in" type="java.io.DataInput"/>
  23137. <exception name="IOException" type="java.io.IOException"/>
  23138. </method>
  23139. <method name="toString" return="java.lang.String"
  23140. abstract="false" native="false" synchronized="false"
  23141. static="false" final="false" visibility="public"
  23142. deprecated="not deprecated">
  23143. </method>
  23144. <doc>
  23145. <![CDATA[A Writable Map.]]>
  23146. </doc>
  23147. </class>
  23148. <!-- end class org.apache.hadoop.io.MapWritable -->
  23149. <!-- start class org.apache.hadoop.io.MD5Hash -->
  23150. <class name="MD5Hash" extends="java.lang.Object"
  23151. abstract="false"
  23152. static="false" final="false" visibility="public"
  23153. deprecated="not deprecated">
  23154. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23155. <constructor name="MD5Hash"
  23156. static="false" final="false" visibility="public"
  23157. deprecated="not deprecated">
  23158. <doc>
  23159. <![CDATA[Constructs an MD5Hash.]]>
  23160. </doc>
  23161. </constructor>
  23162. <constructor name="MD5Hash" type="java.lang.String"
  23163. static="false" final="false" visibility="public"
  23164. deprecated="not deprecated">
  23165. <doc>
  23166. <![CDATA[Constructs an MD5Hash from a hex string.
  23167. @param hex input hex.]]>
  23168. </doc>
  23169. </constructor>
  23170. <constructor name="MD5Hash" type="byte[]"
  23171. static="false" final="false" visibility="public"
  23172. deprecated="not deprecated">
  23173. <doc>
  23174. <![CDATA[Constructs an MD5Hash with a specified value.
  23175. @param digest digest.]]>
  23176. </doc>
  23177. </constructor>
  23178. <method name="readFields"
  23179. abstract="false" native="false" synchronized="false"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. <param name="in" type="java.io.DataInput"/>
  23183. <exception name="IOException" type="java.io.IOException"/>
  23184. </method>
  23185. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  23186. abstract="false" native="false" synchronized="false"
  23187. static="true" final="false" visibility="public"
  23188. deprecated="not deprecated">
  23189. <param name="in" type="java.io.DataInput"/>
  23190. <exception name="IOException" type="java.io.IOException"/>
  23191. <doc>
  23192. <![CDATA[Constructs, reads and returns an instance.
  23193. @param in in.
  23194. @throws IOException raised on errors performing I/O.
  23195. @return MD5Hash.]]>
  23196. </doc>
  23197. </method>
  23198. <method name="write"
  23199. abstract="false" native="false" synchronized="false"
  23200. static="false" final="false" visibility="public"
  23201. deprecated="not deprecated">
  23202. <param name="out" type="java.io.DataOutput"/>
  23203. <exception name="IOException" type="java.io.IOException"/>
  23204. </method>
  23205. <method name="set"
  23206. abstract="false" native="false" synchronized="false"
  23207. static="false" final="false" visibility="public"
  23208. deprecated="not deprecated">
  23209. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  23210. <doc>
  23211. <![CDATA[Copy the contents of another instance into this instance.
  23212. @param that that.]]>
  23213. </doc>
  23214. </method>
  23215. <method name="getDigest" return="byte[]"
  23216. abstract="false" native="false" synchronized="false"
  23217. static="false" final="false" visibility="public"
  23218. deprecated="not deprecated">
  23219. <doc>
  23220. <![CDATA[Returns the digest bytes.
  23221. @return digest.]]>
  23222. </doc>
  23223. </method>
  23224. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23225. abstract="false" native="false" synchronized="false"
  23226. static="true" final="false" visibility="public"
  23227. deprecated="not deprecated">
  23228. <param name="data" type="byte[]"/>
  23229. <doc>
  23230. <![CDATA[Construct a hash value for a byte array.
  23231. @param data data.
  23232. @return MD5Hash.]]>
  23233. </doc>
  23234. </method>
  23235. <method name="getDigester" return="java.security.MessageDigest"
  23236. abstract="false" native="false" synchronized="false"
  23237. static="true" final="false" visibility="public"
  23238. deprecated="not deprecated">
  23239. <doc>
  23240. <![CDATA[Create a thread local MD5 digester.
  23241. @return MessageDigest.]]>
  23242. </doc>
  23243. </method>
  23244. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23245. abstract="false" native="false" synchronized="false"
  23246. static="true" final="false" visibility="public"
  23247. deprecated="not deprecated">
  23248. <param name="in" type="java.io.InputStream"/>
  23249. <exception name="IOException" type="java.io.IOException"/>
  23250. <doc>
  23251. <![CDATA[Construct a hash value for the content from the InputStream.
  23252. @param in input stream.
  23253. @return MD5Hash.
  23254. @throws IOException raised on errors performing I/O.]]>
  23255. </doc>
  23256. </method>
  23257. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23258. abstract="false" native="false" synchronized="false"
  23259. static="true" final="false" visibility="public"
  23260. deprecated="not deprecated">
  23261. <param name="data" type="byte[]"/>
  23262. <param name="start" type="int"/>
  23263. <param name="len" type="int"/>
  23264. <doc>
  23265. <![CDATA[Construct a hash value for a byte array.
  23266. @param data data.
  23267. @param start start.
  23268. @param len len.
  23269. @return MD5Hash.]]>
  23270. </doc>
  23271. </method>
  23272. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23273. abstract="false" native="false" synchronized="false"
  23274. static="true" final="false" visibility="public"
  23275. deprecated="not deprecated">
  23276. <param name="dataArr" type="byte[][]"/>
  23277. <param name="start" type="int"/>
  23278. <param name="len" type="int"/>
  23279. <doc>
  23280. <![CDATA[Construct a hash value for an array of byte array.
  23281. @param dataArr dataArr.
  23282. @param start start.
  23283. @param len len.
  23284. @return MD5Hash.]]>
  23285. </doc>
  23286. </method>
  23287. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23288. abstract="false" native="false" synchronized="false"
  23289. static="true" final="false" visibility="public"
  23290. deprecated="not deprecated">
  23291. <param name="string" type="java.lang.String"/>
  23292. <doc>
  23293. <![CDATA[Construct a hash value for a String.
  23294. @param string string.
  23295. @return MD5Hash.]]>
  23296. </doc>
  23297. </method>
  23298. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  23299. abstract="false" native="false" synchronized="false"
  23300. static="true" final="false" visibility="public"
  23301. deprecated="not deprecated">
  23302. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  23303. <doc>
  23304. <![CDATA[Construct a hash value for a String.
  23305. @param utf8 utf8.
  23306. @return MD5Hash.]]>
  23307. </doc>
  23308. </method>
  23309. <method name="halfDigest" return="long"
  23310. abstract="false" native="false" synchronized="false"
  23311. static="false" final="false" visibility="public"
  23312. deprecated="not deprecated">
  23313. <doc>
  23314. <![CDATA[Construct a half-sized version of this MD5. Fits in a long.
  23315. @return halfDigest.]]>
  23316. </doc>
  23317. </method>
  23318. <method name="quarterDigest" return="int"
  23319. abstract="false" native="false" synchronized="false"
  23320. static="false" final="false" visibility="public"
  23321. deprecated="not deprecated">
  23322. <doc>
  23323. <![CDATA[Return a 32-bit digest of the MD5.
  23324. @return the first 4 bytes of the md5]]>
  23325. </doc>
  23326. </method>
  23327. <method name="equals" return="boolean"
  23328. abstract="false" native="false" synchronized="false"
  23329. static="false" final="false" visibility="public"
  23330. deprecated="not deprecated">
  23331. <param name="o" type="java.lang.Object"/>
  23332. <doc>
  23333. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  23334. same values.]]>
  23335. </doc>
  23336. </method>
  23337. <method name="hashCode" return="int"
  23338. abstract="false" native="false" synchronized="false"
  23339. static="false" final="false" visibility="public"
  23340. deprecated="not deprecated">
  23341. <doc>
  23342. <![CDATA[Returns a hash code value for this object.
  23343. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  23344. </doc>
  23345. </method>
  23346. <method name="compareTo" return="int"
  23347. abstract="false" native="false" synchronized="false"
  23348. static="false" final="false" visibility="public"
  23349. deprecated="not deprecated">
  23350. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  23351. <doc>
  23352. <![CDATA[Compares this object with the specified object for order.]]>
  23353. </doc>
  23354. </method>
  23355. <method name="toString" return="java.lang.String"
  23356. abstract="false" native="false" synchronized="false"
  23357. static="false" final="false" visibility="public"
  23358. deprecated="not deprecated">
  23359. <doc>
  23360. <![CDATA[Returns a string representation of this object.]]>
  23361. </doc>
  23362. </method>
  23363. <method name="setDigest"
  23364. abstract="false" native="false" synchronized="false"
  23365. static="false" final="false" visibility="public"
  23366. deprecated="not deprecated">
  23367. <param name="hex" type="java.lang.String"/>
  23368. <doc>
  23369. <![CDATA[Sets the digest value from a hex string.
  23370. @param hex hex.]]>
  23371. </doc>
  23372. </method>
  23373. <field name="MD5_LEN" type="int"
  23374. transient="false" volatile="false"
  23375. static="true" final="true" visibility="public"
  23376. deprecated="not deprecated">
  23377. </field>
  23378. <doc>
  23379. <![CDATA[A Writable for MD5 hash values.]]>
  23380. </doc>
  23381. </class>
  23382. <!-- end class org.apache.hadoop.io.MD5Hash -->
  23383. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  23384. <class name="MultipleIOException" extends="java.io.IOException"
  23385. abstract="false"
  23386. static="false" final="false" visibility="public"
  23387. deprecated="not deprecated">
  23388. <method name="getExceptions" return="java.util.List"
  23389. abstract="false" native="false" synchronized="false"
  23390. static="false" final="false" visibility="public"
  23391. deprecated="not deprecated">
  23392. <doc>
  23393. <![CDATA[@return the underlying exceptions]]>
  23394. </doc>
  23395. </method>
  23396. <method name="createIOException" return="java.io.IOException"
  23397. abstract="false" native="false" synchronized="false"
  23398. static="true" final="false" visibility="public"
  23399. deprecated="not deprecated">
  23400. <param name="exceptions" type="java.util.List"/>
  23401. <doc>
  23402. <![CDATA[A convenient method to create an {@link IOException}.
  23403. @param exceptions IOException List.
  23404. @return IOException.]]>
  23405. </doc>
  23406. </method>
  23407. <doc>
  23408. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  23409. </doc>
  23410. </class>
  23411. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  23412. <!-- start class org.apache.hadoop.io.NullWritable -->
  23413. <class name="NullWritable" extends="java.lang.Object"
  23414. abstract="false"
  23415. static="false" final="false" visibility="public"
  23416. deprecated="not deprecated">
  23417. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23418. <method name="get" return="org.apache.hadoop.io.NullWritable"
  23419. abstract="false" native="false" synchronized="false"
  23420. static="true" final="false" visibility="public"
  23421. deprecated="not deprecated">
  23422. <doc>
  23423. <![CDATA[Returns the single instance of this class.
  23424. @return the single instance of this class.]]>
  23425. </doc>
  23426. </method>
  23427. <method name="toString" return="java.lang.String"
  23428. abstract="false" native="false" synchronized="false"
  23429. static="false" final="false" visibility="public"
  23430. deprecated="not deprecated">
  23431. </method>
  23432. <method name="hashCode" return="int"
  23433. abstract="false" native="false" synchronized="false"
  23434. static="false" final="false" visibility="public"
  23435. deprecated="not deprecated">
  23436. </method>
  23437. <method name="compareTo" return="int"
  23438. abstract="false" native="false" synchronized="false"
  23439. static="false" final="false" visibility="public"
  23440. deprecated="not deprecated">
  23441. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  23442. </method>
  23443. <method name="equals" return="boolean"
  23444. abstract="false" native="false" synchronized="false"
  23445. static="false" final="false" visibility="public"
  23446. deprecated="not deprecated">
  23447. <param name="other" type="java.lang.Object"/>
  23448. </method>
  23449. <method name="readFields"
  23450. abstract="false" native="false" synchronized="false"
  23451. static="false" final="false" visibility="public"
  23452. deprecated="not deprecated">
  23453. <param name="in" type="java.io.DataInput"/>
  23454. <exception name="IOException" type="java.io.IOException"/>
  23455. </method>
  23456. <method name="write"
  23457. abstract="false" native="false" synchronized="false"
  23458. static="false" final="false" visibility="public"
  23459. deprecated="not deprecated">
  23460. <param name="out" type="java.io.DataOutput"/>
  23461. <exception name="IOException" type="java.io.IOException"/>
  23462. </method>
  23463. <doc>
  23464. <![CDATA[Singleton Writable with no data.]]>
  23465. </doc>
  23466. </class>
  23467. <!-- end class org.apache.hadoop.io.NullWritable -->
  23468. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  23469. <class name="ObjectWritable" extends="java.lang.Object"
  23470. abstract="false"
  23471. static="false" final="false" visibility="public"
  23472. deprecated="not deprecated">
  23473. <implements name="org.apache.hadoop.io.Writable"/>
  23474. <implements name="org.apache.hadoop.conf.Configurable"/>
  23475. <constructor name="ObjectWritable"
  23476. static="false" final="false" visibility="public"
  23477. deprecated="not deprecated">
  23478. </constructor>
  23479. <constructor name="ObjectWritable" type="java.lang.Object"
  23480. static="false" final="false" visibility="public"
  23481. deprecated="not deprecated">
  23482. </constructor>
  23483. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  23484. static="false" final="false" visibility="public"
  23485. deprecated="not deprecated">
  23486. </constructor>
  23487. <method name="get" return="java.lang.Object"
  23488. abstract="false" native="false" synchronized="false"
  23489. static="false" final="false" visibility="public"
  23490. deprecated="not deprecated">
  23491. <doc>
  23492. <![CDATA[Return the instance, or null if none.
  23493. @return the instance, or null if none.]]>
  23494. </doc>
  23495. </method>
  23496. <method name="getDeclaredClass" return="java.lang.Class"
  23497. abstract="false" native="false" synchronized="false"
  23498. static="false" final="false" visibility="public"
  23499. deprecated="not deprecated">
  23500. <doc>
  23501. <![CDATA[Return the class this is meant to be.
  23502. @return the class this is meant to be.]]>
  23503. </doc>
  23504. </method>
  23505. <method name="set"
  23506. abstract="false" native="false" synchronized="false"
  23507. static="false" final="false" visibility="public"
  23508. deprecated="not deprecated">
  23509. <param name="instance" type="java.lang.Object"/>
  23510. <doc>
  23511. <![CDATA[Reset the instance.
  23512. @param instance instance.]]>
  23513. </doc>
  23514. </method>
  23515. <method name="toString" return="java.lang.String"
  23516. abstract="false" native="false" synchronized="false"
  23517. static="false" final="false" visibility="public"
  23518. deprecated="not deprecated">
  23519. </method>
  23520. <method name="readFields"
  23521. abstract="false" native="false" synchronized="false"
  23522. static="false" final="false" visibility="public"
  23523. deprecated="not deprecated">
  23524. <param name="in" type="java.io.DataInput"/>
  23525. <exception name="IOException" type="java.io.IOException"/>
  23526. </method>
  23527. <method name="write"
  23528. abstract="false" native="false" synchronized="false"
  23529. static="false" final="false" visibility="public"
  23530. deprecated="not deprecated">
  23531. <param name="out" type="java.io.DataOutput"/>
  23532. <exception name="IOException" type="java.io.IOException"/>
  23533. </method>
  23534. <method name="writeObject"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="true" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. <param name="out" type="java.io.DataOutput"/>
  23539. <param name="instance" type="java.lang.Object"/>
  23540. <param name="declaredClass" type="java.lang.Class"/>
  23541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23542. <exception name="IOException" type="java.io.IOException"/>
  23543. <doc>
  23544. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  23545. the preceding.
  23546. @param out DataOutput.
  23547. @param instance instance.
  23548. @param conf Configuration.
  23549. @param declaredClass declaredClass.
  23550. @throws IOException raised on errors performing I/O.]]>
  23551. </doc>
  23552. </method>
  23553. <method name="writeObject"
  23554. abstract="false" native="false" synchronized="false"
  23555. static="true" final="false" visibility="public"
  23556. deprecated="not deprecated">
  23557. <param name="out" type="java.io.DataOutput"/>
  23558. <param name="instance" type="java.lang.Object"/>
  23559. <param name="declaredClass" type="java.lang.Class"/>
  23560. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23561. <param name="allowCompactArrays" type="boolean"/>
  23562. <exception name="IOException" type="java.io.IOException"/>
  23563. <doc>
  23564. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  23565. the preceding.
  23566. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  23567. usages. Set false for inter-cluster, File, and other persisted output
  23568. usages, to preserve the ability to interchange files with other clusters
  23569. that may not be running the same version of software. Sometime in ~2013
  23570. we can consider removing this parameter and always using the compact format.
  23571. @param conf configuration.
  23572. @param out dataoutput.
  23573. @param declaredClass declaredClass.
  23574. @param instance instance.
  23575. @throws IOException raised on errors performing I/O.]]>
  23576. </doc>
  23577. </method>
  23578. <method name="readObject" return="java.lang.Object"
  23579. abstract="false" native="false" synchronized="false"
  23580. static="true" final="false" visibility="public"
  23581. deprecated="not deprecated">
  23582. <param name="in" type="java.io.DataInput"/>
  23583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23584. <exception name="IOException" type="java.io.IOException"/>
  23585. <doc>
  23586. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  23587. the preceding.
  23588. @param conf configuration.
  23589. @param in DataInput.
  23590. @return Object.
  23591. @throws IOException raised on errors performing I/O.]]>
  23592. </doc>
  23593. </method>
  23594. <method name="readObject" return="java.lang.Object"
  23595. abstract="false" native="false" synchronized="false"
  23596. static="true" final="false" visibility="public"
  23597. deprecated="not deprecated">
  23598. <param name="in" type="java.io.DataInput"/>
  23599. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  23600. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23601. <exception name="IOException" type="java.io.IOException"/>
  23602. <doc>
  23603. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  23604. the preceding.
  23605. @param in DataInput.
  23606. @param objectWritable objectWritable.
  23607. @param conf configuration.
  23608. @return Object.
  23609. @throws IOException raised on errors performing I/O.]]>
  23610. </doc>
  23611. </method>
  23612. <method name="loadClass" return="java.lang.Class"
  23613. abstract="false" native="false" synchronized="false"
  23614. static="true" final="false" visibility="public"
  23615. deprecated="not deprecated">
  23616. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23617. <param name="className" type="java.lang.String"/>
  23618. <doc>
  23619. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  23620. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  23621. try load it directly.
  23622. @param conf configuration.
  23623. @param className classname.
  23624. @return Class.]]>
  23625. </doc>
  23626. </method>
  23627. <method name="setConf"
  23628. abstract="false" native="false" synchronized="false"
  23629. static="false" final="false" visibility="public"
  23630. deprecated="not deprecated">
  23631. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23632. </method>
  23633. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23634. abstract="false" native="false" synchronized="false"
  23635. static="false" final="false" visibility="public"
  23636. deprecated="not deprecated">
  23637. </method>
  23638. <doc>
  23639. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  23640. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  23641. </doc>
  23642. </class>
  23643. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  23644. <!-- start interface org.apache.hadoop.io.RawComparator -->
  23645. <interface name="RawComparator" abstract="true"
  23646. static="false" final="false" visibility="public"
  23647. deprecated="not deprecated">
  23648. <implements name="java.util.Comparator"/>
  23649. <method name="compare" return="int"
  23650. abstract="true" native="false" synchronized="false"
  23651. static="false" final="false" visibility="public"
  23652. deprecated="not deprecated">
  23653. <param name="b1" type="byte[]"/>
  23654. <param name="s1" type="int"/>
  23655. <param name="l1" type="int"/>
  23656. <param name="b2" type="byte[]"/>
  23657. <param name="s2" type="int"/>
  23658. <param name="l2" type="int"/>
  23659. <doc>
  23660. <![CDATA[Compare two objects in binary.
  23661. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  23662. @param b1 The first byte array.
  23663. @param s1 The position index in b1. The object under comparison's starting index.
  23664. @param l1 The length of the object in b1.
  23665. @param b2 The second byte array.
  23666. @param s2 The position index in b2. The object under comparison's starting index.
  23667. @param l2 The length of the object under comparison in b2.
  23668. @return An integer result of the comparison.]]>
  23669. </doc>
  23670. </method>
  23671. <doc>
  23672. <![CDATA[<p>
  23673. A {@link Comparator} that operates directly on byte representations of
  23674. objects.
  23675. </p>
  23676. @param <T> generic type.
  23677. @see DeserializerComparator]]>
  23678. </doc>
  23679. </interface>
  23680. <!-- end interface org.apache.hadoop.io.RawComparator -->
  23681. <!-- start class org.apache.hadoop.io.SequenceFile -->
  23682. <class name="SequenceFile" extends="java.lang.Object"
  23683. abstract="false"
  23684. static="false" final="false" visibility="public"
  23685. deprecated="not deprecated">
  23686. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  23687. abstract="false" native="false" synchronized="false"
  23688. static="true" final="false" visibility="public"
  23689. deprecated="not deprecated">
  23690. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  23691. <doc>
  23692. <![CDATA[Get the compression type for the reduce outputs
  23693. @param job the job config to look in
  23694. @return the kind of compression to use]]>
  23695. </doc>
  23696. </method>
  23697. <method name="setDefaultCompressionType"
  23698. abstract="false" native="false" synchronized="false"
  23699. static="true" final="false" visibility="public"
  23700. deprecated="not deprecated">
  23701. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  23702. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23703. <doc>
  23704. <![CDATA[Set the default compression type for sequence files.
  23705. @param job the configuration to modify
  23706. @param val the new compression type (none, block, record)]]>
  23707. </doc>
  23708. </method>
  23709. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23710. abstract="false" native="false" synchronized="false"
  23711. static="true" final="false" visibility="public"
  23712. deprecated="not deprecated">
  23713. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23714. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  23715. <exception name="IOException" type="java.io.IOException"/>
  23716. <doc>
  23717. <![CDATA[Create a new Writer with the given options.
  23718. @param conf the configuration to use
  23719. @param opts the options to create the file with
  23720. @return a new Writer
  23721. @throws IOException raised on errors performing I/O.]]>
  23722. </doc>
  23723. </method>
  23724. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23725. abstract="false" native="false" synchronized="false"
  23726. static="true" final="false" visibility="public"
  23727. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23728. instead.">
  23729. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23730. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23731. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23732. <param name="keyClass" type="java.lang.Class"/>
  23733. <param name="valClass" type="java.lang.Class"/>
  23734. <exception name="IOException" type="java.io.IOException"/>
  23735. <doc>
  23736. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23737. @param fs The configured filesystem.
  23738. @param conf The configuration.
  23739. @param name The name of the file.
  23740. @param keyClass The 'key' type.
  23741. @param valClass The 'value' type.
  23742. @return Returns the handle to the constructed SequenceFile Writer.
  23743. @throws IOException raised on errors performing I/O.
  23744. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23745. instead.]]>
  23746. </doc>
  23747. </method>
  23748. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23749. abstract="false" native="false" synchronized="false"
  23750. static="true" final="false" visibility="public"
  23751. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23752. instead.">
  23753. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23754. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23755. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23756. <param name="keyClass" type="java.lang.Class"/>
  23757. <param name="valClass" type="java.lang.Class"/>
  23758. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23759. <exception name="IOException" type="java.io.IOException"/>
  23760. <doc>
  23761. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23762. @param fs The configured filesystem.
  23763. @param conf The configuration.
  23764. @param name The name of the file.
  23765. @param keyClass The 'key' type.
  23766. @param valClass The 'value' type.
  23767. @param compressionType The compression type.
  23768. @return Returns the handle to the constructed SequenceFile Writer.
  23769. @throws IOException raised on errors performing I/O.
  23770. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23771. instead.]]>
  23772. </doc>
  23773. </method>
  23774. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23775. abstract="false" native="false" synchronized="false"
  23776. static="true" final="false" visibility="public"
  23777. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23778. instead.">
  23779. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23780. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23781. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23782. <param name="keyClass" type="java.lang.Class"/>
  23783. <param name="valClass" type="java.lang.Class"/>
  23784. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23785. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23786. <exception name="IOException" type="java.io.IOException"/>
  23787. <doc>
  23788. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23789. @param fs The configured filesystem.
  23790. @param conf The configuration.
  23791. @param name The name of the file.
  23792. @param keyClass The 'key' type.
  23793. @param valClass The 'value' type.
  23794. @param compressionType The compression type.
  23795. @param progress The Progressable object to track progress.
  23796. @return Returns the handle to the constructed SequenceFile Writer.
  23797. @throws IOException raised on errors performing I/O.
  23798. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23799. instead.]]>
  23800. </doc>
  23801. </method>
  23802. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23803. abstract="false" native="false" synchronized="false"
  23804. static="true" final="false" visibility="public"
  23805. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23806. instead.">
  23807. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23808. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23809. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23810. <param name="keyClass" type="java.lang.Class"/>
  23811. <param name="valClass" type="java.lang.Class"/>
  23812. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23813. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23814. <exception name="IOException" type="java.io.IOException"/>
  23815. <doc>
  23816. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23817. @param fs The configured filesystem.
  23818. @param conf The configuration.
  23819. @param name The name of the file.
  23820. @param keyClass The 'key' type.
  23821. @param valClass The 'value' type.
  23822. @param compressionType The compression type.
  23823. @param codec The compression codec.
  23824. @return Returns the handle to the constructed SequenceFile Writer.
  23825. @throws IOException raised on errors performing I/O.
  23826. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23827. instead.]]>
  23828. </doc>
  23829. </method>
  23830. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23831. abstract="false" native="false" synchronized="false"
  23832. static="true" final="false" visibility="public"
  23833. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23834. instead.">
  23835. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23836. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23837. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23838. <param name="keyClass" type="java.lang.Class"/>
  23839. <param name="valClass" type="java.lang.Class"/>
  23840. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23841. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23842. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23843. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23844. <exception name="IOException" type="java.io.IOException"/>
  23845. <doc>
  23846. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23847. @param fs The configured filesystem.
  23848. @param conf The configuration.
  23849. @param name The name of the file.
  23850. @param keyClass The 'key' type.
  23851. @param valClass The 'value' type.
  23852. @param compressionType The compression type.
  23853. @param codec The compression codec.
  23854. @param progress The Progressable object to track progress.
  23855. @param metadata The metadata of the file.
  23856. @return Returns the handle to the constructed SequenceFile Writer.
  23857. @throws IOException raised on errors performing I/O.
  23858. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23859. instead.]]>
  23860. </doc>
  23861. </method>
  23862. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23863. abstract="false" native="false" synchronized="false"
  23864. static="true" final="false" visibility="public"
  23865. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23866. instead.">
  23867. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23868. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23869. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23870. <param name="keyClass" type="java.lang.Class"/>
  23871. <param name="valClass" type="java.lang.Class"/>
  23872. <param name="bufferSize" type="int"/>
  23873. <param name="replication" type="short"/>
  23874. <param name="blockSize" type="long"/>
  23875. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23876. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23877. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23878. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23879. <exception name="IOException" type="java.io.IOException"/>
  23880. <doc>
  23881. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23882. @param fs The configured filesystem.
  23883. @param conf The configuration.
  23884. @param name The name of the file.
  23885. @param keyClass The 'key' type.
  23886. @param valClass The 'value' type.
  23887. @param bufferSize buffer size for the underlaying outputstream.
  23888. @param replication replication factor for the file.
  23889. @param blockSize block size for the file.
  23890. @param compressionType The compression type.
  23891. @param codec The compression codec.
  23892. @param progress The Progressable object to track progress.
  23893. @param metadata The metadata of the file.
  23894. @return Returns the handle to the constructed SequenceFile Writer.
  23895. @throws IOException raised on errors performing I/O.
  23896. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23897. instead.]]>
  23898. </doc>
  23899. </method>
  23900. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23901. abstract="false" native="false" synchronized="false"
  23902. static="true" final="false" visibility="public"
  23903. deprecated="not deprecated">
  23904. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23905. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23906. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23907. <param name="keyClass" type="java.lang.Class"/>
  23908. <param name="valClass" type="java.lang.Class"/>
  23909. <param name="bufferSize" type="int"/>
  23910. <param name="replication" type="short"/>
  23911. <param name="blockSize" type="long"/>
  23912. <param name="createParent" type="boolean"/>
  23913. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23914. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23915. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23916. <exception name="IOException" type="java.io.IOException"/>
  23917. <doc>
  23918. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23919. @param fs The configured filesystem.
  23920. @param conf The configuration.
  23921. @param name The name of the file.
  23922. @param keyClass The 'key' type.
  23923. @param valClass The 'value' type.
  23924. @param bufferSize buffer size for the underlaying outputstream.
  23925. @param replication replication factor for the file.
  23926. @param blockSize block size for the file.
  23927. @param createParent create parent directory if non-existent
  23928. @param compressionType The compression type.
  23929. @param codec The compression codec.
  23930. @param metadata The metadata of the file.
  23931. @return Returns the handle to the constructed SequenceFile Writer.
  23932. @throws IOException raised on errors performing I/O.]]>
  23933. </doc>
  23934. </method>
  23935. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23936. abstract="false" native="false" synchronized="false"
  23937. static="true" final="false" visibility="public"
  23938. deprecated="not deprecated">
  23939. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  23940. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23941. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23942. <param name="keyClass" type="java.lang.Class"/>
  23943. <param name="valClass" type="java.lang.Class"/>
  23944. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23945. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23946. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23947. <param name="createFlag" type="java.util.EnumSet"/>
  23948. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  23949. <exception name="IOException" type="java.io.IOException"/>
  23950. <doc>
  23951. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23952. @param fc The context for the specified file.
  23953. @param conf The configuration.
  23954. @param name The name of the file.
  23955. @param keyClass The 'key' type.
  23956. @param valClass The 'value' type.
  23957. @param compressionType The compression type.
  23958. @param codec The compression codec.
  23959. @param metadata The metadata of the file.
  23960. @param createFlag gives the semantics of create: overwrite, append etc.
  23961. @param opts file creation options; see {@link CreateOpts}.
  23962. @return Returns the handle to the constructed SequenceFile Writer.
  23963. @throws IOException raised on errors performing I/O.]]>
  23964. </doc>
  23965. </method>
  23966. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23967. abstract="false" native="false" synchronized="false"
  23968. static="true" final="false" visibility="public"
  23969. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23970. instead.">
  23971. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23972. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23973. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23974. <param name="keyClass" type="java.lang.Class"/>
  23975. <param name="valClass" type="java.lang.Class"/>
  23976. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23977. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23978. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23979. <exception name="IOException" type="java.io.IOException"/>
  23980. <doc>
  23981. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23982. @param fs The configured filesystem.
  23983. @param conf The configuration.
  23984. @param name The name of the file.
  23985. @param keyClass The 'key' type.
  23986. @param valClass The 'value' type.
  23987. @param compressionType The compression type.
  23988. @param codec The compression codec.
  23989. @param progress The Progressable object to track progress.
  23990. @return Returns the handle to the constructed SequenceFile Writer.
  23991. @throws IOException raised on errors performing I/O.
  23992. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23993. instead.]]>
  23994. </doc>
  23995. </method>
  23996. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23997. abstract="false" native="false" synchronized="false"
  23998. static="true" final="false" visibility="public"
  23999. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  24000. instead.">
  24001. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24002. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  24003. <param name="keyClass" type="java.lang.Class"/>
  24004. <param name="valClass" type="java.lang.Class"/>
  24005. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  24006. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24007. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  24008. <exception name="IOException" type="java.io.IOException"/>
  24009. <doc>
  24010. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  24011. @param conf The configuration.
  24012. @param out The stream on top which the writer is to be constructed.
  24013. @param keyClass The 'key' type.
  24014. @param valClass The 'value' type.
  24015. @param compressionType The compression type.
  24016. @param codec The compression codec.
  24017. @param metadata The metadata of the file.
  24018. @return Returns the handle to the constructed SequenceFile Writer.
  24019. @throws IOException raised on errors performing I/O.
  24020. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  24021. instead.]]>
  24022. </doc>
  24023. </method>
  24024. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  24025. abstract="false" native="false" synchronized="false"
  24026. static="true" final="false" visibility="public"
  24027. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  24028. instead.">
  24029. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24030. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  24031. <param name="keyClass" type="java.lang.Class"/>
  24032. <param name="valClass" type="java.lang.Class"/>
  24033. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  24034. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24035. <exception name="IOException" type="java.io.IOException"/>
  24036. <doc>
  24037. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  24038. @param conf The configuration.
  24039. @param out The stream on top which the writer is to be constructed.
  24040. @param keyClass The 'key' type.
  24041. @param valClass The 'value' type.
  24042. @param compressionType The compression type.
  24043. @param codec The compression codec.
  24044. @return Returns the handle to the constructed SequenceFile Writer.
  24045. @throws IOException raised on errors performing I/O.
  24046. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  24047. instead.]]>
  24048. </doc>
  24049. </method>
  24050. <field name="SYNC_INTERVAL" type="int"
  24051. transient="false" volatile="false"
  24052. static="true" final="true" visibility="public"
  24053. deprecated="not deprecated">
  24054. <doc>
  24055. <![CDATA[The number of bytes between sync points. 100 KB, default.
  24056. Computed as 5 KB * 20 = 100 KB]]>
  24057. </doc>
  24058. </field>
  24059. <doc>
  24060. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  24061. pairs.
  24062. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  24063. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  24064. reading and sorting respectively.</p>
  24065. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  24066. {@link CompressionType} used to compress key/value pairs:
  24067. <ol>
  24068. <li>
  24069. <code>Writer</code> : Uncompressed records.
  24070. </li>
  24071. <li>
  24072. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  24073. values.
  24074. </li>
  24075. <li>
  24076. <code>BlockCompressWriter</code> : Block-compressed files, both keys &amp;
  24077. values are collected in 'blocks'
  24078. separately and compressed. The size of
  24079. the 'block' is configurable.
  24080. </ol>
  24081. <p>The actual compression algorithm used to compress key and/or values can be
  24082. specified by using the appropriate {@link CompressionCodec}.</p>
  24083. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  24084. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  24085. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  24086. above <code>SequenceFile</code> formats.</p>
  24087. <h3 id="Formats">SequenceFile Formats</h3>
  24088. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  24089. depending on the <code>CompressionType</code> specified. All of them share a
  24090. <a href="#Header">common header</a> described below.
  24091. <h4 id="Header">SequenceFile Header</h4>
  24092. <ul>
  24093. <li>
  24094. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  24095. version number (e.g. SEQ4 or SEQ6)
  24096. </li>
  24097. <li>
  24098. keyClassName -key class
  24099. </li>
  24100. <li>
  24101. valueClassName - value class
  24102. </li>
  24103. <li>
  24104. compression - A boolean which specifies if compression is turned on for
  24105. keys/values in this file.
  24106. </li>
  24107. <li>
  24108. blockCompression - A boolean which specifies if block-compression is
  24109. turned on for keys/values in this file.
  24110. </li>
  24111. <li>
  24112. compression codec - <code>CompressionCodec</code> class which is used for
  24113. compression of keys and/or values (if compression is
  24114. enabled).
  24115. </li>
  24116. <li>
  24117. metadata - {@link Metadata} for this file.
  24118. </li>
  24119. <li>
  24120. sync - A sync marker to denote end of the header.
  24121. </li>
  24122. </ul>
  24123. <h5>Uncompressed SequenceFile Format</h5>
  24124. <ul>
  24125. <li>
  24126. <a href="#Header">Header</a>
  24127. </li>
  24128. <li>
  24129. Record
  24130. <ul>
  24131. <li>Record length</li>
  24132. <li>Key length</li>
  24133. <li>Key</li>
  24134. <li>Value</li>
  24135. </ul>
  24136. </li>
  24137. <li>
  24138. A sync-marker every few <code>100</code> kilobytes or so.
  24139. </li>
  24140. </ul>
  24141. <h5>Record-Compressed SequenceFile Format</h5>
  24142. <ul>
  24143. <li>
  24144. <a href="#Header">Header</a>
  24145. </li>
  24146. <li>
  24147. Record
  24148. <ul>
  24149. <li>Record length</li>
  24150. <li>Key length</li>
  24151. <li>Key</li>
  24152. <li><i>Compressed</i> Value</li>
  24153. </ul>
  24154. </li>
  24155. <li>
  24156. A sync-marker every few <code>100</code> kilobytes or so.
  24157. </li>
  24158. </ul>
  24159. <h5>Block-Compressed SequenceFile Format</h5>
  24160. <ul>
  24161. <li>
  24162. <a href="#Header">Header</a>
  24163. </li>
  24164. <li>
  24165. Record <i>Block</i>
  24166. <ul>
  24167. <li>Uncompressed number of records in the block</li>
  24168. <li>Compressed key-lengths block-size</li>
  24169. <li>Compressed key-lengths block</li>
  24170. <li>Compressed keys block-size</li>
  24171. <li>Compressed keys block</li>
  24172. <li>Compressed value-lengths block-size</li>
  24173. <li>Compressed value-lengths block</li>
  24174. <li>Compressed values block-size</li>
  24175. <li>Compressed values block</li>
  24176. </ul>
  24177. </li>
  24178. <li>
  24179. A sync-marker every block.
  24180. </li>
  24181. </ul>
  24182. <p>The compressed blocks of key lengths and value lengths consist of the
  24183. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  24184. format.</p>
  24185. @see CompressionCodec]]>
  24186. </doc>
  24187. </class>
  24188. <!-- end class org.apache.hadoop.io.SequenceFile -->
  24189. <!-- start class org.apache.hadoop.io.SetFile -->
  24190. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  24191. abstract="false"
  24192. static="false" final="false" visibility="public"
  24193. deprecated="not deprecated">
  24194. <constructor name="SetFile"
  24195. static="false" final="false" visibility="protected"
  24196. deprecated="not deprecated">
  24197. </constructor>
  24198. <doc>
  24199. <![CDATA[A file-based set of keys.]]>
  24200. </doc>
  24201. </class>
  24202. <!-- end class org.apache.hadoop.io.SetFile -->
  24203. <!-- start class org.apache.hadoop.io.ShortWritable -->
  24204. <class name="ShortWritable" extends="java.lang.Object"
  24205. abstract="false"
  24206. static="false" final="false" visibility="public"
  24207. deprecated="not deprecated">
  24208. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24209. <constructor name="ShortWritable"
  24210. static="false" final="false" visibility="public"
  24211. deprecated="not deprecated">
  24212. </constructor>
  24213. <constructor name="ShortWritable" type="short"
  24214. static="false" final="false" visibility="public"
  24215. deprecated="not deprecated">
  24216. </constructor>
  24217. <method name="set"
  24218. abstract="false" native="false" synchronized="false"
  24219. static="false" final="false" visibility="public"
  24220. deprecated="not deprecated">
  24221. <param name="value" type="short"/>
  24222. <doc>
  24223. <![CDATA[Set the value of this ShortWritable.
  24224. @param value input value.]]>
  24225. </doc>
  24226. </method>
  24227. <method name="get" return="short"
  24228. abstract="false" native="false" synchronized="false"
  24229. static="false" final="false" visibility="public"
  24230. deprecated="not deprecated">
  24231. <doc>
  24232. <![CDATA[@return Return the value of this ShortWritable.]]>
  24233. </doc>
  24234. </method>
  24235. <method name="readFields"
  24236. abstract="false" native="false" synchronized="false"
  24237. static="false" final="false" visibility="public"
  24238. deprecated="not deprecated">
  24239. <param name="in" type="java.io.DataInput"/>
  24240. <exception name="IOException" type="java.io.IOException"/>
  24241. <doc>
  24242. <![CDATA[read the short value]]>
  24243. </doc>
  24244. </method>
  24245. <method name="write"
  24246. abstract="false" native="false" synchronized="false"
  24247. static="false" final="false" visibility="public"
  24248. deprecated="not deprecated">
  24249. <param name="out" type="java.io.DataOutput"/>
  24250. <exception name="IOException" type="java.io.IOException"/>
  24251. <doc>
  24252. <![CDATA[write short value]]>
  24253. </doc>
  24254. </method>
  24255. <method name="equals" return="boolean"
  24256. abstract="false" native="false" synchronized="false"
  24257. static="false" final="false" visibility="public"
  24258. deprecated="not deprecated">
  24259. <param name="o" type="java.lang.Object"/>
  24260. <doc>
  24261. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  24262. </doc>
  24263. </method>
  24264. <method name="hashCode" return="int"
  24265. abstract="false" native="false" synchronized="false"
  24266. static="false" final="false" visibility="public"
  24267. deprecated="not deprecated">
  24268. <doc>
  24269. <![CDATA[hash code]]>
  24270. </doc>
  24271. </method>
  24272. <method name="compareTo" return="int"
  24273. abstract="false" native="false" synchronized="false"
  24274. static="false" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  24277. <doc>
  24278. <![CDATA[Compares two ShortWritable.]]>
  24279. </doc>
  24280. </method>
  24281. <method name="toString" return="java.lang.String"
  24282. abstract="false" native="false" synchronized="false"
  24283. static="false" final="false" visibility="public"
  24284. deprecated="not deprecated">
  24285. <doc>
  24286. <![CDATA[Short values in string format]]>
  24287. </doc>
  24288. </method>
  24289. <doc>
  24290. <![CDATA[A WritableComparable for shorts.]]>
  24291. </doc>
  24292. </class>
  24293. <!-- end class org.apache.hadoop.io.ShortWritable -->
  24294. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  24295. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  24296. abstract="false"
  24297. static="false" final="false" visibility="public"
  24298. deprecated="not deprecated">
  24299. <implements name="java.util.SortedMap"/>
  24300. <constructor name="SortedMapWritable"
  24301. static="false" final="false" visibility="public"
  24302. deprecated="not deprecated">
  24303. <doc>
  24304. <![CDATA[default constructor.]]>
  24305. </doc>
  24306. </constructor>
  24307. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  24308. static="false" final="false" visibility="public"
  24309. deprecated="not deprecated">
  24310. <doc>
  24311. <![CDATA[Copy constructor.
  24312. @param other the map to copy from]]>
  24313. </doc>
  24314. </constructor>
  24315. <method name="comparator" return="java.util.Comparator"
  24316. abstract="false" native="false" synchronized="false"
  24317. static="false" final="false" visibility="public"
  24318. deprecated="not deprecated">
  24319. </method>
  24320. <method name="firstKey" return="K"
  24321. abstract="false" native="false" synchronized="false"
  24322. static="false" final="false" visibility="public"
  24323. deprecated="not deprecated">
  24324. </method>
  24325. <method name="headMap" return="java.util.SortedMap"
  24326. abstract="false" native="false" synchronized="false"
  24327. static="false" final="false" visibility="public"
  24328. deprecated="not deprecated">
  24329. <param name="toKey" type="K"/>
  24330. </method>
  24331. <method name="lastKey" return="K"
  24332. abstract="false" native="false" synchronized="false"
  24333. static="false" final="false" visibility="public"
  24334. deprecated="not deprecated">
  24335. </method>
  24336. <method name="subMap" return="java.util.SortedMap"
  24337. abstract="false" native="false" synchronized="false"
  24338. static="false" final="false" visibility="public"
  24339. deprecated="not deprecated">
  24340. <param name="fromKey" type="K"/>
  24341. <param name="toKey" type="K"/>
  24342. </method>
  24343. <method name="tailMap" return="java.util.SortedMap"
  24344. abstract="false" native="false" synchronized="false"
  24345. static="false" final="false" visibility="public"
  24346. deprecated="not deprecated">
  24347. <param name="fromKey" type="K"/>
  24348. </method>
  24349. <method name="clear"
  24350. abstract="false" native="false" synchronized="false"
  24351. static="false" final="false" visibility="public"
  24352. deprecated="not deprecated">
  24353. </method>
  24354. <method name="containsKey" return="boolean"
  24355. abstract="false" native="false" synchronized="false"
  24356. static="false" final="false" visibility="public"
  24357. deprecated="not deprecated">
  24358. <param name="key" type="java.lang.Object"/>
  24359. </method>
  24360. <method name="containsValue" return="boolean"
  24361. abstract="false" native="false" synchronized="false"
  24362. static="false" final="false" visibility="public"
  24363. deprecated="not deprecated">
  24364. <param name="value" type="java.lang.Object"/>
  24365. </method>
  24366. <method name="entrySet" return="java.util.Set"
  24367. abstract="false" native="false" synchronized="false"
  24368. static="false" final="false" visibility="public"
  24369. deprecated="not deprecated">
  24370. </method>
  24371. <method name="get" return="org.apache.hadoop.io.Writable"
  24372. abstract="false" native="false" synchronized="false"
  24373. static="false" final="false" visibility="public"
  24374. deprecated="not deprecated">
  24375. <param name="key" type="java.lang.Object"/>
  24376. </method>
  24377. <method name="isEmpty" return="boolean"
  24378. abstract="false" native="false" synchronized="false"
  24379. static="false" final="false" visibility="public"
  24380. deprecated="not deprecated">
  24381. </method>
  24382. <method name="keySet" return="java.util.Set"
  24383. abstract="false" native="false" synchronized="false"
  24384. static="false" final="false" visibility="public"
  24385. deprecated="not deprecated">
  24386. </method>
  24387. <method name="put" return="org.apache.hadoop.io.Writable"
  24388. abstract="false" native="false" synchronized="false"
  24389. static="false" final="false" visibility="public"
  24390. deprecated="not deprecated">
  24391. <param name="key" type="K"/>
  24392. <param name="value" type="org.apache.hadoop.io.Writable"/>
  24393. </method>
  24394. <method name="putAll"
  24395. abstract="false" native="false" synchronized="false"
  24396. static="false" final="false" visibility="public"
  24397. deprecated="not deprecated">
  24398. <param name="t" type="java.util.Map"/>
  24399. </method>
  24400. <method name="remove" return="org.apache.hadoop.io.Writable"
  24401. abstract="false" native="false" synchronized="false"
  24402. static="false" final="false" visibility="public"
  24403. deprecated="not deprecated">
  24404. <param name="key" type="java.lang.Object"/>
  24405. </method>
  24406. <method name="size" return="int"
  24407. abstract="false" native="false" synchronized="false"
  24408. static="false" final="false" visibility="public"
  24409. deprecated="not deprecated">
  24410. </method>
  24411. <method name="values" return="java.util.Collection"
  24412. abstract="false" native="false" synchronized="false"
  24413. static="false" final="false" visibility="public"
  24414. deprecated="not deprecated">
  24415. </method>
  24416. <method name="readFields"
  24417. abstract="false" native="false" synchronized="false"
  24418. static="false" final="false" visibility="public"
  24419. deprecated="not deprecated">
  24420. <param name="in" type="java.io.DataInput"/>
  24421. <exception name="IOException" type="java.io.IOException"/>
  24422. </method>
  24423. <method name="write"
  24424. abstract="false" native="false" synchronized="false"
  24425. static="false" final="false" visibility="public"
  24426. deprecated="not deprecated">
  24427. <param name="out" type="java.io.DataOutput"/>
  24428. <exception name="IOException" type="java.io.IOException"/>
  24429. </method>
  24430. <method name="equals" return="boolean"
  24431. abstract="false" native="false" synchronized="false"
  24432. static="false" final="false" visibility="public"
  24433. deprecated="not deprecated">
  24434. <param name="obj" type="java.lang.Object"/>
  24435. </method>
  24436. <method name="hashCode" return="int"
  24437. abstract="false" native="false" synchronized="false"
  24438. static="false" final="false" visibility="public"
  24439. deprecated="not deprecated">
  24440. </method>
  24441. <doc>
  24442. <![CDATA[A Writable SortedMap.]]>
  24443. </doc>
  24444. </class>
  24445. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  24446. <!-- start interface org.apache.hadoop.io.Stringifier -->
  24447. <interface name="Stringifier" abstract="true"
  24448. static="false" final="false" visibility="public"
  24449. deprecated="not deprecated">
  24450. <implements name="java.io.Closeable"/>
  24451. <method name="toString" return="java.lang.String"
  24452. abstract="true" native="false" synchronized="false"
  24453. static="false" final="false" visibility="public"
  24454. deprecated="not deprecated">
  24455. <param name="obj" type="T"/>
  24456. <exception name="IOException" type="java.io.IOException"/>
  24457. <doc>
  24458. <![CDATA[Converts the object to a string representation
  24459. @param obj the object to convert
  24460. @return the string representation of the object
  24461. @throws IOException if the object cannot be converted]]>
  24462. </doc>
  24463. </method>
  24464. <method name="fromString" return="T"
  24465. abstract="true" native="false" synchronized="false"
  24466. static="false" final="false" visibility="public"
  24467. deprecated="not deprecated">
  24468. <param name="str" type="java.lang.String"/>
  24469. <exception name="IOException" type="java.io.IOException"/>
  24470. <doc>
  24471. <![CDATA[Restores the object from its string representation.
  24472. @param str the string representation of the object
  24473. @return restored object
  24474. @throws IOException if the object cannot be restored]]>
  24475. </doc>
  24476. </method>
  24477. <method name="close"
  24478. abstract="true" native="false" synchronized="false"
  24479. static="false" final="false" visibility="public"
  24480. deprecated="not deprecated">
  24481. <exception name="IOException" type="java.io.IOException"/>
  24482. <doc>
  24483. <![CDATA[Closes this object.
  24484. @throws IOException if an I/O error occurs]]>
  24485. </doc>
  24486. </method>
  24487. <doc>
  24488. <![CDATA[Stringifier interface offers two methods to convert an object
  24489. to a string representation and restore the object given its
  24490. string representation.
  24491. @param <T> the class of the objects to stringify]]>
  24492. </doc>
  24493. </interface>
  24494. <!-- end interface org.apache.hadoop.io.Stringifier -->
  24495. <!-- start class org.apache.hadoop.io.Text -->
  24496. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  24497. abstract="false"
  24498. static="false" final="false" visibility="public"
  24499. deprecated="not deprecated">
  24500. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24501. <constructor name="Text"
  24502. static="false" final="false" visibility="public"
  24503. deprecated="not deprecated">
  24504. </constructor>
  24505. <constructor name="Text" type="java.lang.String"
  24506. static="false" final="false" visibility="public"
  24507. deprecated="not deprecated">
  24508. <doc>
  24509. <![CDATA[Construct from a string.
  24510. @param string input string.]]>
  24511. </doc>
  24512. </constructor>
  24513. <constructor name="Text" type="org.apache.hadoop.io.Text"
  24514. static="false" final="false" visibility="public"
  24515. deprecated="not deprecated">
  24516. <doc>
  24517. <![CDATA[Construct from another text.
  24518. @param utf8 input utf8.]]>
  24519. </doc>
  24520. </constructor>
  24521. <constructor name="Text" type="byte[]"
  24522. static="false" final="false" visibility="public"
  24523. deprecated="not deprecated">
  24524. <doc>
  24525. <![CDATA[Construct from a byte array.
  24526. @param utf8 input utf8.]]>
  24527. </doc>
  24528. </constructor>
  24529. <method name="copyBytes" return="byte[]"
  24530. abstract="false" native="false" synchronized="false"
  24531. static="false" final="false" visibility="public"
  24532. deprecated="not deprecated">
  24533. <doc>
  24534. <![CDATA[@return Get a copy of the bytes that is exactly the length of the data.
  24535. See {@link #getBytes()} for faster access to the underlying array.]]>
  24536. </doc>
  24537. </method>
  24538. <method name="getBytes" return="byte[]"
  24539. abstract="false" native="false" synchronized="false"
  24540. static="false" final="false" visibility="public"
  24541. deprecated="not deprecated">
  24542. <doc>
  24543. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  24544. valid. Please use {@link #copyBytes()} if you
  24545. need the returned array to be precisely the length of the data.]]>
  24546. </doc>
  24547. </method>
  24548. <method name="getLength" return="int"
  24549. abstract="false" native="false" synchronized="false"
  24550. static="false" final="false" visibility="public"
  24551. deprecated="not deprecated">
  24552. <doc>
  24553. <![CDATA[Returns the number of bytes in the byte array]]>
  24554. </doc>
  24555. </method>
  24556. <method name="charAt" return="int"
  24557. abstract="false" native="false" synchronized="false"
  24558. static="false" final="false" visibility="public"
  24559. deprecated="not deprecated">
  24560. <param name="position" type="int"/>
  24561. <doc>
  24562. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  24563. for the character at <code>position</code>. Note that this
  24564. method avoids using the converter or doing String instantiation.
  24565. @param position input position.
  24566. @return the Unicode scalar value at position or -1
  24567. if the position is invalid or points to a
  24568. trailing byte.]]>
  24569. </doc>
  24570. </method>
  24571. <method name="find" return="int"
  24572. abstract="false" native="false" synchronized="false"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. <param name="what" type="java.lang.String"/>
  24576. </method>
  24577. <method name="find" return="int"
  24578. abstract="false" native="false" synchronized="false"
  24579. static="false" final="false" visibility="public"
  24580. deprecated="not deprecated">
  24581. <param name="what" type="java.lang.String"/>
  24582. <param name="start" type="int"/>
  24583. <doc>
  24584. <![CDATA[Finds any occurrence of <code>what</code> in the backing
  24585. buffer, starting as position <code>start</code>. The starting
  24586. position is measured in bytes and the return value is in
  24587. terms of byte position in the buffer. The backing buffer is
  24588. not converted to a string for this operation.
  24589. @param what input what.
  24590. @param start input start.
  24591. @return byte position of the first occurrence of the search
  24592. string in the UTF-8 buffer or -1 if not found]]>
  24593. </doc>
  24594. </method>
  24595. <method name="set"
  24596. abstract="false" native="false" synchronized="false"
  24597. static="false" final="false" visibility="public"
  24598. deprecated="not deprecated">
  24599. <param name="string" type="java.lang.String"/>
  24600. <doc>
  24601. <![CDATA[Set to contain the contents of a string.
  24602. @param string input string.]]>
  24603. </doc>
  24604. </method>
  24605. <method name="set"
  24606. abstract="false" native="false" synchronized="false"
  24607. static="false" final="false" visibility="public"
  24608. deprecated="not deprecated">
  24609. <param name="utf8" type="byte[]"/>
  24610. <doc>
  24611. <![CDATA[Set to a utf8 byte array.
  24612. @param utf8 input utf8.]]>
  24613. </doc>
  24614. </method>
  24615. <method name="set"
  24616. abstract="false" native="false" synchronized="false"
  24617. static="false" final="false" visibility="public"
  24618. deprecated="not deprecated">
  24619. <param name="other" type="org.apache.hadoop.io.Text"/>
  24620. <doc>
  24621. <![CDATA[copy a text.
  24622. @param other input other.]]>
  24623. </doc>
  24624. </method>
  24625. <method name="set"
  24626. abstract="false" native="false" synchronized="false"
  24627. static="false" final="false" visibility="public"
  24628. deprecated="not deprecated">
  24629. <param name="utf8" type="byte[]"/>
  24630. <param name="start" type="int"/>
  24631. <param name="len" type="int"/>
  24632. <doc>
  24633. <![CDATA[Set the Text to range of bytes
  24634. @param utf8 the data to copy from
  24635. @param start the first position of the new string
  24636. @param len the number of bytes of the new string]]>
  24637. </doc>
  24638. </method>
  24639. <method name="append"
  24640. abstract="false" native="false" synchronized="false"
  24641. static="false" final="false" visibility="public"
  24642. deprecated="not deprecated">
  24643. <param name="utf8" type="byte[]"/>
  24644. <param name="start" type="int"/>
  24645. <param name="len" type="int"/>
  24646. <doc>
  24647. <![CDATA[Append a range of bytes to the end of the given text
  24648. @param utf8 the data to copy from
  24649. @param start the first position to append from utf8
  24650. @param len the number of bytes to append]]>
  24651. </doc>
  24652. </method>
  24653. <method name="clear"
  24654. abstract="false" native="false" synchronized="false"
  24655. static="false" final="false" visibility="public"
  24656. deprecated="not deprecated">
  24657. <doc>
  24658. <![CDATA[Clear the string to empty.
  24659. <em>Note</em>: For performance reasons, this call does not clear the
  24660. underlying byte array that is retrievable via {@link #getBytes()}.
  24661. In order to free the byte-array memory, call {@link #set(byte[])}
  24662. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  24663. </doc>
  24664. </method>
  24665. <method name="toString" return="java.lang.String"
  24666. abstract="false" native="false" synchronized="false"
  24667. static="false" final="false" visibility="public"
  24668. deprecated="not deprecated">
  24669. <doc>
  24670. <![CDATA[Convert text back to string
  24671. @see java.lang.Object#toString()]]>
  24672. </doc>
  24673. </method>
  24674. <method name="readFields"
  24675. abstract="false" native="false" synchronized="false"
  24676. static="false" final="false" visibility="public"
  24677. deprecated="not deprecated">
  24678. <param name="in" type="java.io.DataInput"/>
  24679. <exception name="IOException" type="java.io.IOException"/>
  24680. <doc>
  24681. <![CDATA[deserialize]]>
  24682. </doc>
  24683. </method>
  24684. <method name="readFields"
  24685. abstract="false" native="false" synchronized="false"
  24686. static="false" final="false" visibility="public"
  24687. deprecated="not deprecated">
  24688. <param name="in" type="java.io.DataInput"/>
  24689. <param name="maxLength" type="int"/>
  24690. <exception name="IOException" type="java.io.IOException"/>
  24691. </method>
  24692. <method name="skip"
  24693. abstract="false" native="false" synchronized="false"
  24694. static="true" final="false" visibility="public"
  24695. deprecated="not deprecated">
  24696. <param name="in" type="java.io.DataInput"/>
  24697. <exception name="IOException" type="java.io.IOException"/>
  24698. <doc>
  24699. <![CDATA[Skips over one Text in the input.
  24700. @param in input in.
  24701. @throws IOException raised on errors performing I/O.]]>
  24702. </doc>
  24703. </method>
  24704. <method name="readWithKnownLength"
  24705. abstract="false" native="false" synchronized="false"
  24706. static="false" final="false" visibility="public"
  24707. deprecated="not deprecated">
  24708. <param name="in" type="java.io.DataInput"/>
  24709. <param name="len" type="int"/>
  24710. <exception name="IOException" type="java.io.IOException"/>
  24711. <doc>
  24712. <![CDATA[Read a Text object whose length is already known.
  24713. This allows creating Text from a stream which uses a different serialization
  24714. format.
  24715. @param in input in.
  24716. @param len input len.
  24717. @throws IOException raised on errors performing I/O.]]>
  24718. </doc>
  24719. </method>
  24720. <method name="write"
  24721. abstract="false" native="false" synchronized="false"
  24722. static="false" final="false" visibility="public"
  24723. deprecated="not deprecated">
  24724. <param name="out" type="java.io.DataOutput"/>
  24725. <exception name="IOException" type="java.io.IOException"/>
  24726. <doc>
  24727. <![CDATA[serialize
  24728. write this object to out
  24729. length uses zero-compressed encoding
  24730. @see Writable#write(DataOutput)]]>
  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. <param name="maxLength" type="int"/>
  24739. <exception name="IOException" type="java.io.IOException"/>
  24740. </method>
  24741. <method name="equals" return="boolean"
  24742. abstract="false" native="false" synchronized="false"
  24743. static="false" final="false" visibility="public"
  24744. deprecated="not deprecated">
  24745. <param name="o" type="java.lang.Object"/>
  24746. <doc>
  24747. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  24748. </doc>
  24749. </method>
  24750. <method name="hashCode" return="int"
  24751. abstract="false" native="false" synchronized="false"
  24752. static="false" final="false" visibility="public"
  24753. deprecated="not deprecated">
  24754. </method>
  24755. <method name="decode" return="java.lang.String"
  24756. abstract="false" native="false" synchronized="false"
  24757. static="true" final="false" visibility="public"
  24758. deprecated="not deprecated">
  24759. <param name="utf8" type="byte[]"/>
  24760. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24761. <doc>
  24762. <![CDATA[@return Converts the provided byte array to a String using the
  24763. UTF-8 encoding. If the input is malformed,
  24764. replace by a default value.
  24765. @param utf8 input utf8.
  24766. @throws CharacterCodingException a character encoding or
  24767. decoding error occurs.]]>
  24768. </doc>
  24769. </method>
  24770. <method name="decode" return="java.lang.String"
  24771. abstract="false" native="false" synchronized="false"
  24772. static="true" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. <param name="utf8" type="byte[]"/>
  24775. <param name="start" type="int"/>
  24776. <param name="length" type="int"/>
  24777. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24778. </method>
  24779. <method name="decode" return="java.lang.String"
  24780. abstract="false" native="false" synchronized="false"
  24781. static="true" final="false" visibility="public"
  24782. deprecated="not deprecated">
  24783. <param name="utf8" type="byte[]"/>
  24784. <param name="start" type="int"/>
  24785. <param name="length" type="int"/>
  24786. <param name="replace" type="boolean"/>
  24787. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24788. <doc>
  24789. <![CDATA[@return Converts the provided byte array to a String using the
  24790. UTF-8 encoding. If <code>replace</code> is true, then
  24791. malformed input is replaced with the
  24792. substitution character, which is U+FFFD. Otherwise the
  24793. method throws a MalformedInputException.
  24794. @param utf8 input utf8.
  24795. @param start input start.
  24796. @param length input length.
  24797. @param replace input replace.
  24798. @throws CharacterCodingException a character encoding or
  24799. decoding error occurs.]]>
  24800. </doc>
  24801. </method>
  24802. <method name="encode" return="java.nio.ByteBuffer"
  24803. abstract="false" native="false" synchronized="false"
  24804. static="true" final="false" visibility="public"
  24805. deprecated="not deprecated">
  24806. <param name="string" type="java.lang.String"/>
  24807. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24808. <doc>
  24809. <![CDATA[Converts the provided String to bytes using the
  24810. UTF-8 encoding. If the input is malformed,
  24811. invalid chars are replaced by a default value.
  24812. @param string input string.
  24813. @return ByteBuffer: bytes stores at ByteBuffer.array()
  24814. and length is ByteBuffer.limit()
  24815. @throws CharacterCodingException
  24816. a character encoding or decoding error occurs.]]>
  24817. </doc>
  24818. </method>
  24819. <method name="encode" return="java.nio.ByteBuffer"
  24820. abstract="false" native="false" synchronized="false"
  24821. static="true" final="false" visibility="public"
  24822. deprecated="not deprecated">
  24823. <param name="string" type="java.lang.String"/>
  24824. <param name="replace" type="boolean"/>
  24825. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24826. <doc>
  24827. <![CDATA[Converts the provided String to bytes using the
  24828. UTF-8 encoding. If <code>replace</code> is true, then
  24829. malformed input is replaced with the
  24830. substitution character, which is U+FFFD. Otherwise the
  24831. method throws a MalformedInputException.
  24832. @param string input string.
  24833. @param replace input replace.
  24834. @return ByteBuffer: bytes stores at ByteBuffer.array()
  24835. and length is ByteBuffer.limit()
  24836. @throws CharacterCodingException a character encoding or decoding error occurs.]]>
  24837. </doc>
  24838. </method>
  24839. <method name="readString" return="java.lang.String"
  24840. abstract="false" native="false" synchronized="false"
  24841. static="true" final="false" visibility="public"
  24842. deprecated="not deprecated">
  24843. <param name="in" type="java.io.DataInput"/>
  24844. <exception name="IOException" type="java.io.IOException"/>
  24845. <doc>
  24846. <![CDATA[@return Read a UTF8 encoded string from in.
  24847. @param in input in.
  24848. @throws IOException raised on errors performing I/O.]]>
  24849. </doc>
  24850. </method>
  24851. <method name="readString" return="java.lang.String"
  24852. abstract="false" native="false" synchronized="false"
  24853. static="true" final="false" visibility="public"
  24854. deprecated="not deprecated">
  24855. <param name="in" type="java.io.DataInput"/>
  24856. <param name="maxLength" type="int"/>
  24857. <exception name="IOException" type="java.io.IOException"/>
  24858. <doc>
  24859. <![CDATA[@return Read a UTF8 encoded string with a maximum size.
  24860. @param in input in.
  24861. @param maxLength input maxLength.
  24862. @throws IOException raised on errors performing I/O.]]>
  24863. </doc>
  24864. </method>
  24865. <method name="writeString" return="int"
  24866. abstract="false" native="false" synchronized="false"
  24867. static="true" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. <param name="out" type="java.io.DataOutput"/>
  24870. <param name="s" type="java.lang.String"/>
  24871. <exception name="IOException" type="java.io.IOException"/>
  24872. <doc>
  24873. <![CDATA[@return Write a UTF8 encoded string to out.
  24874. @param out input out.
  24875. @param s input s.
  24876. @throws IOException raised on errors performing I/O.]]>
  24877. </doc>
  24878. </method>
  24879. <method name="writeString" return="int"
  24880. abstract="false" native="false" synchronized="false"
  24881. static="true" final="false" visibility="public"
  24882. deprecated="not deprecated">
  24883. <param name="out" type="java.io.DataOutput"/>
  24884. <param name="s" type="java.lang.String"/>
  24885. <param name="maxLength" type="int"/>
  24886. <exception name="IOException" type="java.io.IOException"/>
  24887. <doc>
  24888. <![CDATA[@return Write a UTF8 encoded string with a maximum size to out.
  24889. @param out input out.
  24890. @param s input s.
  24891. @param maxLength input maxLength.
  24892. @throws IOException raised on errors performing I/O.]]>
  24893. </doc>
  24894. </method>
  24895. <method name="validateUTF8"
  24896. abstract="false" native="false" synchronized="false"
  24897. static="true" final="false" visibility="public"
  24898. deprecated="not deprecated">
  24899. <param name="utf8" type="byte[]"/>
  24900. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  24901. <doc>
  24902. <![CDATA[Check if a byte array contains valid utf-8
  24903. @param utf8 byte array
  24904. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  24905. </doc>
  24906. </method>
  24907. <method name="validateUTF8"
  24908. abstract="false" native="false" synchronized="false"
  24909. static="true" final="false" visibility="public"
  24910. deprecated="not deprecated">
  24911. <param name="utf8" type="byte[]"/>
  24912. <param name="start" type="int"/>
  24913. <param name="len" type="int"/>
  24914. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  24915. <doc>
  24916. <![CDATA[Check to see if a byte array is valid utf-8
  24917. @param utf8 the array of bytes
  24918. @param start the offset of the first byte in the array
  24919. @param len the length of the byte sequence
  24920. @throws MalformedInputException if the byte array contains invalid bytes]]>
  24921. </doc>
  24922. </method>
  24923. <method name="bytesToCodePoint" return="int"
  24924. abstract="false" native="false" synchronized="false"
  24925. static="true" final="false" visibility="public"
  24926. deprecated="not deprecated">
  24927. <param name="bytes" type="java.nio.ByteBuffer"/>
  24928. <doc>
  24929. <![CDATA[@return Returns the next code point at the current position in
  24930. the buffer. The buffer's position will be incremented.
  24931. Any mark set on this buffer will be changed by this method!
  24932. @param bytes input bytes.]]>
  24933. </doc>
  24934. </method>
  24935. <method name="utf8Length" return="int"
  24936. abstract="false" native="false" synchronized="false"
  24937. static="true" final="false" visibility="public"
  24938. deprecated="not deprecated">
  24939. <param name="string" type="java.lang.String"/>
  24940. <doc>
  24941. <![CDATA[For the given string, returns the number of UTF-8 bytes
  24942. required to encode the string.
  24943. @param string text to encode
  24944. @return number of UTF-8 bytes required to encode]]>
  24945. </doc>
  24946. </method>
  24947. <field name="DEFAULT_MAX_LEN" type="int"
  24948. transient="false" volatile="false"
  24949. static="true" final="true" visibility="public"
  24950. deprecated="not deprecated">
  24951. </field>
  24952. <doc>
  24953. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  24954. to serialize, deserialize, and compare texts at byte level. The type of
  24955. length is integer and is serialized using zero-compressed format. <p>In
  24956. addition, it provides methods for string traversal without converting the
  24957. byte array to a string. <p>Also includes utilities for
  24958. serializing/deserialing a string, coding/decoding a string, checking if a
  24959. byte array contains valid UTF8 code, calculating the length of an encoded
  24960. string.]]>
  24961. </doc>
  24962. </class>
  24963. <!-- end class org.apache.hadoop.io.Text -->
  24964. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  24965. <class name="TwoDArrayWritable" extends="java.lang.Object"
  24966. abstract="false"
  24967. static="false" final="false" visibility="public"
  24968. deprecated="not deprecated">
  24969. <implements name="org.apache.hadoop.io.Writable"/>
  24970. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  24971. static="false" final="false" visibility="public"
  24972. deprecated="not deprecated">
  24973. </constructor>
  24974. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="not deprecated">
  24977. </constructor>
  24978. <method name="toArray" return="java.lang.Object"
  24979. abstract="false" native="false" synchronized="false"
  24980. static="false" final="false" visibility="public"
  24981. deprecated="not deprecated">
  24982. </method>
  24983. <method name="set"
  24984. abstract="false" native="false" synchronized="false"
  24985. static="false" final="false" visibility="public"
  24986. deprecated="not deprecated">
  24987. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  24988. </method>
  24989. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  24990. abstract="false" native="false" synchronized="false"
  24991. static="false" final="false" visibility="public"
  24992. deprecated="not deprecated">
  24993. </method>
  24994. <method name="readFields"
  24995. abstract="false" native="false" synchronized="false"
  24996. static="false" final="false" visibility="public"
  24997. deprecated="not deprecated">
  24998. <param name="in" type="java.io.DataInput"/>
  24999. <exception name="IOException" type="java.io.IOException"/>
  25000. </method>
  25001. <method name="write"
  25002. abstract="false" native="false" synchronized="false"
  25003. static="false" final="false" visibility="public"
  25004. deprecated="not deprecated">
  25005. <param name="out" type="java.io.DataOutput"/>
  25006. <exception name="IOException" type="java.io.IOException"/>
  25007. </method>
  25008. <doc>
  25009. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  25010. </doc>
  25011. </class>
  25012. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  25013. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  25014. <class name="VersionedWritable" extends="java.lang.Object"
  25015. abstract="true"
  25016. static="false" final="false" visibility="public"
  25017. deprecated="not deprecated">
  25018. <implements name="org.apache.hadoop.io.Writable"/>
  25019. <constructor name="VersionedWritable"
  25020. static="false" final="false" visibility="public"
  25021. deprecated="not deprecated">
  25022. </constructor>
  25023. <method name="getVersion" return="byte"
  25024. abstract="true" native="false" synchronized="false"
  25025. static="false" final="false" visibility="public"
  25026. deprecated="not deprecated">
  25027. <doc>
  25028. <![CDATA[@return Return the version number of the current implementation.]]>
  25029. </doc>
  25030. </method>
  25031. <method name="write"
  25032. abstract="false" native="false" synchronized="false"
  25033. static="false" final="false" visibility="public"
  25034. deprecated="not deprecated">
  25035. <param name="out" type="java.io.DataOutput"/>
  25036. <exception name="IOException" type="java.io.IOException"/>
  25037. </method>
  25038. <method name="readFields"
  25039. abstract="false" native="false" synchronized="false"
  25040. static="false" final="false" visibility="public"
  25041. deprecated="not deprecated">
  25042. <param name="in" type="java.io.DataInput"/>
  25043. <exception name="IOException" type="java.io.IOException"/>
  25044. </method>
  25045. <doc>
  25046. <![CDATA[A base class for Writables that provides version checking.
  25047. <p>This is useful when a class may evolve, so that instances written by the
  25048. old version of the class may still be processed by the new version. To
  25049. handle this situation, {@link #readFields(DataInput)}
  25050. implementations should catch {@link VersionMismatchException}.]]>
  25051. </doc>
  25052. </class>
  25053. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  25054. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  25055. <class name="VersionMismatchException" extends="java.io.IOException"
  25056. abstract="false"
  25057. static="false" final="false" visibility="public"
  25058. deprecated="not deprecated">
  25059. <constructor name="VersionMismatchException" type="byte, byte"
  25060. static="false" final="false" visibility="public"
  25061. deprecated="not deprecated">
  25062. </constructor>
  25063. <method name="toString" return="java.lang.String"
  25064. abstract="false" native="false" synchronized="false"
  25065. static="false" final="false" visibility="public"
  25066. deprecated="not deprecated">
  25067. <doc>
  25068. <![CDATA[Returns a string representation of this object.]]>
  25069. </doc>
  25070. </method>
  25071. <doc>
  25072. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  25073. version of an object being read does not match the current implementation
  25074. version as returned by {@link VersionedWritable#getVersion()}.]]>
  25075. </doc>
  25076. </class>
  25077. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  25078. <!-- start class org.apache.hadoop.io.VIntWritable -->
  25079. <class name="VIntWritable" extends="java.lang.Object"
  25080. abstract="false"
  25081. static="false" final="false" visibility="public"
  25082. deprecated="not deprecated">
  25083. <implements name="org.apache.hadoop.io.WritableComparable"/>
  25084. <constructor name="VIntWritable"
  25085. static="false" final="false" visibility="public"
  25086. deprecated="not deprecated">
  25087. </constructor>
  25088. <constructor name="VIntWritable" type="int"
  25089. static="false" final="false" visibility="public"
  25090. deprecated="not deprecated">
  25091. </constructor>
  25092. <method name="set"
  25093. abstract="false" native="false" synchronized="false"
  25094. static="false" final="false" visibility="public"
  25095. deprecated="not deprecated">
  25096. <param name="value" type="int"/>
  25097. <doc>
  25098. <![CDATA[Set the value of this VIntWritable.
  25099. @param value input value.]]>
  25100. </doc>
  25101. </method>
  25102. <method name="get" return="int"
  25103. abstract="false" native="false" synchronized="false"
  25104. static="false" final="false" visibility="public"
  25105. deprecated="not deprecated">
  25106. <doc>
  25107. <![CDATA[@return Return the value of this VIntWritable.]]>
  25108. </doc>
  25109. </method>
  25110. <method name="readFields"
  25111. abstract="false" native="false" synchronized="false"
  25112. static="false" final="false" visibility="public"
  25113. deprecated="not deprecated">
  25114. <param name="in" type="java.io.DataInput"/>
  25115. <exception name="IOException" type="java.io.IOException"/>
  25116. </method>
  25117. <method name="write"
  25118. abstract="false" native="false" synchronized="false"
  25119. static="false" final="false" visibility="public"
  25120. deprecated="not deprecated">
  25121. <param name="out" type="java.io.DataOutput"/>
  25122. <exception name="IOException" type="java.io.IOException"/>
  25123. </method>
  25124. <method name="equals" return="boolean"
  25125. abstract="false" native="false" synchronized="false"
  25126. static="false" final="false" visibility="public"
  25127. deprecated="not deprecated">
  25128. <param name="o" type="java.lang.Object"/>
  25129. <doc>
  25130. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  25131. </doc>
  25132. </method>
  25133. <method name="hashCode" return="int"
  25134. abstract="false" native="false" synchronized="false"
  25135. static="false" final="false" visibility="public"
  25136. deprecated="not deprecated">
  25137. </method>
  25138. <method name="compareTo" return="int"
  25139. abstract="false" native="false" synchronized="false"
  25140. static="false" final="false" visibility="public"
  25141. deprecated="not deprecated">
  25142. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  25143. <doc>
  25144. <![CDATA[Compares two VIntWritables.]]>
  25145. </doc>
  25146. </method>
  25147. <method name="toString" return="java.lang.String"
  25148. abstract="false" native="false" synchronized="false"
  25149. static="false" final="false" visibility="public"
  25150. deprecated="not deprecated">
  25151. </method>
  25152. <doc>
  25153. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  25154. Such values take between one and five bytes. Smaller values take fewer bytes.
  25155. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  25156. </doc>
  25157. </class>
  25158. <!-- end class org.apache.hadoop.io.VIntWritable -->
  25159. <!-- start class org.apache.hadoop.io.VLongWritable -->
  25160. <class name="VLongWritable" extends="java.lang.Object"
  25161. abstract="false"
  25162. static="false" final="false" visibility="public"
  25163. deprecated="not deprecated">
  25164. <implements name="org.apache.hadoop.io.WritableComparable"/>
  25165. <constructor name="VLongWritable"
  25166. static="false" final="false" visibility="public"
  25167. deprecated="not deprecated">
  25168. </constructor>
  25169. <constructor name="VLongWritable" type="long"
  25170. static="false" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. </constructor>
  25173. <method name="set"
  25174. abstract="false" native="false" synchronized="false"
  25175. static="false" final="false" visibility="public"
  25176. deprecated="not deprecated">
  25177. <param name="value" type="long"/>
  25178. <doc>
  25179. <![CDATA[Set the value of this LongWritable.
  25180. @param value input value.]]>
  25181. </doc>
  25182. </method>
  25183. <method name="get" return="long"
  25184. abstract="false" native="false" synchronized="false"
  25185. static="false" final="false" visibility="public"
  25186. deprecated="not deprecated">
  25187. <doc>
  25188. <![CDATA[@return Return the value of this LongWritable.]]>
  25189. </doc>
  25190. </method>
  25191. <method name="readFields"
  25192. abstract="false" native="false" synchronized="false"
  25193. static="false" final="false" visibility="public"
  25194. deprecated="not deprecated">
  25195. <param name="in" type="java.io.DataInput"/>
  25196. <exception name="IOException" type="java.io.IOException"/>
  25197. </method>
  25198. <method name="write"
  25199. abstract="false" native="false" synchronized="false"
  25200. static="false" final="false" visibility="public"
  25201. deprecated="not deprecated">
  25202. <param name="out" type="java.io.DataOutput"/>
  25203. <exception name="IOException" type="java.io.IOException"/>
  25204. </method>
  25205. <method name="equals" return="boolean"
  25206. abstract="false" native="false" synchronized="false"
  25207. static="false" final="false" visibility="public"
  25208. deprecated="not deprecated">
  25209. <param name="o" type="java.lang.Object"/>
  25210. <doc>
  25211. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  25212. </doc>
  25213. </method>
  25214. <method name="hashCode" return="int"
  25215. abstract="false" native="false" synchronized="false"
  25216. static="false" final="false" visibility="public"
  25217. deprecated="not deprecated">
  25218. </method>
  25219. <method name="compareTo" return="int"
  25220. abstract="false" native="false" synchronized="false"
  25221. static="false" final="false" visibility="public"
  25222. deprecated="not deprecated">
  25223. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  25224. <doc>
  25225. <![CDATA[Compares two VLongWritables.]]>
  25226. </doc>
  25227. </method>
  25228. <method name="toString" return="java.lang.String"
  25229. abstract="false" native="false" synchronized="false"
  25230. static="false" final="false" visibility="public"
  25231. deprecated="not deprecated">
  25232. </method>
  25233. <doc>
  25234. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  25235. between one and five bytes. Smaller values take fewer bytes.
  25236. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  25237. </doc>
  25238. </class>
  25239. <!-- end class org.apache.hadoop.io.VLongWritable -->
  25240. <!-- start interface org.apache.hadoop.io.Writable -->
  25241. <interface name="Writable" abstract="true"
  25242. static="false" final="false" visibility="public"
  25243. deprecated="not deprecated">
  25244. <method name="write"
  25245. abstract="true" native="false" synchronized="false"
  25246. static="false" final="false" visibility="public"
  25247. deprecated="not deprecated">
  25248. <param name="out" type="java.io.DataOutput"/>
  25249. <exception name="IOException" type="java.io.IOException"/>
  25250. <doc>
  25251. <![CDATA[Serialize the fields of this object to <code>out</code>.
  25252. @param out <code>DataOuput</code> to serialize this object into.
  25253. @throws IOException any other problem for write.]]>
  25254. </doc>
  25255. </method>
  25256. <method name="readFields"
  25257. abstract="true" native="false" synchronized="false"
  25258. static="false" final="false" visibility="public"
  25259. deprecated="not deprecated">
  25260. <param name="in" type="java.io.DataInput"/>
  25261. <exception name="IOException" type="java.io.IOException"/>
  25262. <doc>
  25263. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  25264. <p>For efficiency, implementations should attempt to re-use storage in the
  25265. existing object where possible.</p>
  25266. @param in <code>DataInput</code> to deseriablize this object from.
  25267. @throws IOException any other problem for readFields.]]>
  25268. </doc>
  25269. </method>
  25270. <doc>
  25271. <![CDATA[A serializable object which implements a simple, efficient, serialization
  25272. protocol, based on {@link DataInput} and {@link DataOutput}.
  25273. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  25274. framework implements this interface.</p>
  25275. <p>Implementations typically implement a static <code>read(DataInput)</code>
  25276. method which constructs a new instance, calls {@link #readFields(DataInput)}
  25277. and returns the instance.</p>
  25278. <p>Example:</p>
  25279. <blockquote><pre>
  25280. public class MyWritable implements Writable {
  25281. // Some data
  25282. private int counter;
  25283. private long timestamp;
  25284. // Default constructor to allow (de)serialization
  25285. MyWritable() { }
  25286. public void write(DataOutput out) throws IOException {
  25287. out.writeInt(counter);
  25288. out.writeLong(timestamp);
  25289. }
  25290. public void readFields(DataInput in) throws IOException {
  25291. counter = in.readInt();
  25292. timestamp = in.readLong();
  25293. }
  25294. public static MyWritable read(DataInput in) throws IOException {
  25295. MyWritable w = new MyWritable();
  25296. w.readFields(in);
  25297. return w;
  25298. }
  25299. }
  25300. </pre></blockquote>]]>
  25301. </doc>
  25302. </interface>
  25303. <!-- end interface org.apache.hadoop.io.Writable -->
  25304. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  25305. <interface name="WritableComparable" abstract="true"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. <implements name="org.apache.hadoop.io.Writable"/>
  25309. <implements name="java.lang.Comparable"/>
  25310. <doc>
  25311. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  25312. <p><code>WritableComparable</code>s can be compared to each other, typically
  25313. via <code>Comparator</code>s. Any type which is to be used as a
  25314. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  25315. interface.</p>
  25316. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  25317. keys. It's important that your implementation of hashCode() returns the same
  25318. result across different instances of the JVM. Note also that the default
  25319. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  25320. satisfy this property.</p>
  25321. <p>Example:</p>
  25322. <blockquote><pre>
  25323. public class MyWritableComparable implements
  25324. WritableComparable{@literal <MyWritableComparable>} {
  25325. // Some data
  25326. private int counter;
  25327. private long timestamp;
  25328. public void write(DataOutput out) throws IOException {
  25329. out.writeInt(counter);
  25330. out.writeLong(timestamp);
  25331. }
  25332. public void readFields(DataInput in) throws IOException {
  25333. counter = in.readInt();
  25334. timestamp = in.readLong();
  25335. }
  25336. public int compareTo(MyWritableComparable o) {
  25337. int thisValue = this.value;
  25338. int thatValue = o.value;
  25339. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  25340. }
  25341. public int hashCode() {
  25342. final int prime = 31;
  25343. int result = 1;
  25344. result = prime * result + counter;
  25345. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  25346. return result
  25347. }
  25348. }
  25349. </pre></blockquote>]]>
  25350. </doc>
  25351. </interface>
  25352. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  25353. <!-- start class org.apache.hadoop.io.WritableComparator -->
  25354. <class name="WritableComparator" extends="java.lang.Object"
  25355. abstract="false"
  25356. static="false" final="false" visibility="public"
  25357. deprecated="not deprecated">
  25358. <implements name="org.apache.hadoop.io.RawComparator"/>
  25359. <implements name="org.apache.hadoop.conf.Configurable"/>
  25360. <constructor name="WritableComparator"
  25361. static="false" final="false" visibility="protected"
  25362. deprecated="not deprecated">
  25363. </constructor>
  25364. <constructor name="WritableComparator" type="java.lang.Class"
  25365. static="false" final="false" visibility="protected"
  25366. deprecated="not deprecated">
  25367. <doc>
  25368. <![CDATA[Construct for a {@link WritableComparable} implementation.
  25369. @param keyClass WritableComparable Class.]]>
  25370. </doc>
  25371. </constructor>
  25372. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  25373. static="false" final="false" visibility="protected"
  25374. deprecated="not deprecated">
  25375. </constructor>
  25376. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  25377. static="false" final="false" visibility="protected"
  25378. deprecated="not deprecated">
  25379. </constructor>
  25380. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  25381. abstract="false" native="false" synchronized="false"
  25382. static="true" final="false" visibility="public"
  25383. deprecated="not deprecated">
  25384. <param name="c" type="java.lang.Class"/>
  25385. <doc>
  25386. <![CDATA[For backwards compatibility.
  25387. @param c WritableComparable Type.
  25388. @return WritableComparator.]]>
  25389. </doc>
  25390. </method>
  25391. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  25392. abstract="false" native="false" synchronized="false"
  25393. static="true" final="false" visibility="public"
  25394. deprecated="not deprecated">
  25395. <param name="c" type="java.lang.Class"/>
  25396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25397. <doc>
  25398. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.
  25399. @param c class.
  25400. @param conf configuration.
  25401. @return WritableComparator.]]>
  25402. </doc>
  25403. </method>
  25404. <method name="setConf"
  25405. abstract="false" native="false" synchronized="false"
  25406. static="false" final="false" visibility="public"
  25407. deprecated="not deprecated">
  25408. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25409. </method>
  25410. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25411. abstract="false" native="false" synchronized="false"
  25412. static="false" final="false" visibility="public"
  25413. deprecated="not deprecated">
  25414. </method>
  25415. <method name="define"
  25416. abstract="false" native="false" synchronized="false"
  25417. static="true" final="false" visibility="public"
  25418. deprecated="not deprecated">
  25419. <param name="c" type="java.lang.Class"/>
  25420. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  25421. <doc>
  25422. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  25423. implementation. Comparators registered with this method must be
  25424. thread-safe.
  25425. @param c class.
  25426. @param comparator WritableComparator.]]>
  25427. </doc>
  25428. </method>
  25429. <method name="getKeyClass" return="java.lang.Class"
  25430. abstract="false" native="false" synchronized="false"
  25431. static="false" final="false" visibility="public"
  25432. deprecated="not deprecated">
  25433. <doc>
  25434. <![CDATA[Returns the WritableComparable implementation class.
  25435. @return WritableComparable.]]>
  25436. </doc>
  25437. </method>
  25438. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  25439. abstract="false" native="false" synchronized="false"
  25440. static="false" final="false" visibility="public"
  25441. deprecated="not deprecated">
  25442. <doc>
  25443. <![CDATA[Construct a new {@link WritableComparable} instance.
  25444. @return WritableComparable.]]>
  25445. </doc>
  25446. </method>
  25447. <method name="compare" return="int"
  25448. abstract="false" native="false" synchronized="false"
  25449. static="false" final="false" visibility="public"
  25450. deprecated="not deprecated">
  25451. <param name="b1" type="byte[]"/>
  25452. <param name="s1" type="int"/>
  25453. <param name="l1" type="int"/>
  25454. <param name="b2" type="byte[]"/>
  25455. <param name="s2" type="int"/>
  25456. <param name="l2" type="int"/>
  25457. <doc>
  25458. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  25459. <p>The default implementation reads the data into two {@link
  25460. WritableComparable}s (using {@link
  25461. Writable#readFields(DataInput)}, then calls {@link
  25462. #compare(WritableComparable,WritableComparable)}.]]>
  25463. </doc>
  25464. </method>
  25465. <method name="compare" return="int"
  25466. abstract="false" native="false" synchronized="false"
  25467. static="false" final="false" visibility="public"
  25468. deprecated="not deprecated">
  25469. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  25470. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  25471. <doc>
  25472. <![CDATA[Compare two WritableComparables.
  25473. The default implementation uses the natural ordering, calling {@link
  25474. Comparable#compareTo(Object)}.
  25475. @param a the first object to be compared.
  25476. @param b the second object to be compared.
  25477. @return compare result.]]>
  25478. </doc>
  25479. </method>
  25480. <method name="compare" return="int"
  25481. abstract="false" native="false" synchronized="false"
  25482. static="false" final="false" visibility="public"
  25483. deprecated="not deprecated">
  25484. <param name="a" type="java.lang.Object"/>
  25485. <param name="b" type="java.lang.Object"/>
  25486. <doc>
  25487. <![CDATA[Compare two Object.
  25488. @param a the first object to be compared.
  25489. @param b the second object to be compared.
  25490. @return compare result.]]>
  25491. </doc>
  25492. </method>
  25493. <method name="compareBytes" return="int"
  25494. abstract="false" native="false" synchronized="false"
  25495. static="true" final="false" visibility="public"
  25496. deprecated="not deprecated">
  25497. <param name="b1" type="byte[]"/>
  25498. <param name="s1" type="int"/>
  25499. <param name="l1" type="int"/>
  25500. <param name="b2" type="byte[]"/>
  25501. <param name="s2" type="int"/>
  25502. <param name="l2" type="int"/>
  25503. <doc>
  25504. <![CDATA[Lexicographic order of binary data.
  25505. @param b1 b1.
  25506. @param s1 s1.
  25507. @param l1 l1.
  25508. @param b2 b2.
  25509. @param s2 s2.
  25510. @param l2 l2.
  25511. @return compare bytes.]]>
  25512. </doc>
  25513. </method>
  25514. <method name="hashBytes" return="int"
  25515. abstract="false" native="false" synchronized="false"
  25516. static="true" final="false" visibility="public"
  25517. deprecated="not deprecated">
  25518. <param name="bytes" type="byte[]"/>
  25519. <param name="offset" type="int"/>
  25520. <param name="length" type="int"/>
  25521. <doc>
  25522. <![CDATA[Compute hash for binary data.
  25523. @param bytes bytes.
  25524. @param offset offset.
  25525. @param length length.
  25526. @return hash for binary data.]]>
  25527. </doc>
  25528. </method>
  25529. <method name="hashBytes" return="int"
  25530. abstract="false" native="false" synchronized="false"
  25531. static="true" final="false" visibility="public"
  25532. deprecated="not deprecated">
  25533. <param name="bytes" type="byte[]"/>
  25534. <param name="length" type="int"/>
  25535. <doc>
  25536. <![CDATA[Compute hash for binary data.
  25537. @param bytes bytes.
  25538. @param length length.
  25539. @return hash for binary data.]]>
  25540. </doc>
  25541. </method>
  25542. <method name="readUnsignedShort" return="int"
  25543. abstract="false" native="false" synchronized="false"
  25544. static="true" final="false" visibility="public"
  25545. deprecated="not deprecated">
  25546. <param name="bytes" type="byte[]"/>
  25547. <param name="start" type="int"/>
  25548. <doc>
  25549. <![CDATA[Parse an unsigned short from a byte array.
  25550. @param bytes bytes.
  25551. @param start start.
  25552. @return unsigned short from a byte array]]>
  25553. </doc>
  25554. </method>
  25555. <method name="readInt" return="int"
  25556. abstract="false" native="false" synchronized="false"
  25557. static="true" final="false" visibility="public"
  25558. deprecated="not deprecated">
  25559. <param name="bytes" type="byte[]"/>
  25560. <param name="start" type="int"/>
  25561. <doc>
  25562. <![CDATA[Parse an integer from a byte array.
  25563. @param bytes bytes.
  25564. @param start start.
  25565. @return integer from a byte array]]>
  25566. </doc>
  25567. </method>
  25568. <method name="readFloat" return="float"
  25569. abstract="false" native="false" synchronized="false"
  25570. static="true" final="false" visibility="public"
  25571. deprecated="not deprecated">
  25572. <param name="bytes" type="byte[]"/>
  25573. <param name="start" type="int"/>
  25574. <doc>
  25575. <![CDATA[Parse a float from a byte array.
  25576. @param bytes bytes.
  25577. @param start start.
  25578. @return float from a byte array]]>
  25579. </doc>
  25580. </method>
  25581. <method name="readLong" return="long"
  25582. abstract="false" native="false" synchronized="false"
  25583. static="true" final="false" visibility="public"
  25584. deprecated="not deprecated">
  25585. <param name="bytes" type="byte[]"/>
  25586. <param name="start" type="int"/>
  25587. <doc>
  25588. <![CDATA[Parse a long from a byte array.
  25589. @param bytes bytes.
  25590. @param start start.
  25591. @return long from a byte array]]>
  25592. </doc>
  25593. </method>
  25594. <method name="readDouble" return="double"
  25595. abstract="false" native="false" synchronized="false"
  25596. static="true" final="false" visibility="public"
  25597. deprecated="not deprecated">
  25598. <param name="bytes" type="byte[]"/>
  25599. <param name="start" type="int"/>
  25600. <doc>
  25601. <![CDATA[Parse a double from a byte array.
  25602. @param bytes bytes.
  25603. @param start start.
  25604. @return double from a byte array.]]>
  25605. </doc>
  25606. </method>
  25607. <method name="readVLong" return="long"
  25608. abstract="false" native="false" synchronized="false"
  25609. static="true" final="false" visibility="public"
  25610. deprecated="not deprecated">
  25611. <param name="bytes" type="byte[]"/>
  25612. <param name="start" type="int"/>
  25613. <exception name="IOException" type="java.io.IOException"/>
  25614. <doc>
  25615. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  25616. @param bytes byte array with decode long
  25617. @param start starting index
  25618. @throws IOException raised on errors performing I/O.
  25619. @return deserialized long]]>
  25620. </doc>
  25621. </method>
  25622. <method name="readVInt" return="int"
  25623. abstract="false" native="false" synchronized="false"
  25624. static="true" final="false" visibility="public"
  25625. deprecated="not deprecated">
  25626. <param name="bytes" type="byte[]"/>
  25627. <param name="start" type="int"/>
  25628. <exception name="IOException" type="java.io.IOException"/>
  25629. <doc>
  25630. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  25631. @param bytes byte array with the encoded integer
  25632. @param start start index
  25633. @throws IOException raised on errors performing I/O.
  25634. @return deserialized integer]]>
  25635. </doc>
  25636. </method>
  25637. <doc>
  25638. <![CDATA[A Comparator for {@link WritableComparable}s.
  25639. <p>This base implementation uses the natural ordering. To define alternate
  25640. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  25641. <p>One may optimize compare-intensive operations by overriding
  25642. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  25643. provided to assist in optimized implementations of this method.]]>
  25644. </doc>
  25645. </class>
  25646. <!-- end class org.apache.hadoop.io.WritableComparator -->
  25647. <!-- start class org.apache.hadoop.io.WritableFactories -->
  25648. <class name="WritableFactories" extends="java.lang.Object"
  25649. abstract="false"
  25650. static="false" final="false" visibility="public"
  25651. deprecated="not deprecated">
  25652. <method name="setFactory"
  25653. abstract="false" native="false" synchronized="false"
  25654. static="true" final="false" visibility="public"
  25655. deprecated="not deprecated">
  25656. <param name="c" type="java.lang.Class"/>
  25657. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  25658. <doc>
  25659. <![CDATA[Define a factory for a class.
  25660. @param c input c.
  25661. @param factory input factory.]]>
  25662. </doc>
  25663. </method>
  25664. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  25665. abstract="false" native="false" synchronized="false"
  25666. static="true" final="false" visibility="public"
  25667. deprecated="not deprecated">
  25668. <param name="c" type="java.lang.Class"/>
  25669. <doc>
  25670. <![CDATA[Define a factory for a class.
  25671. @param c input c.
  25672. @return a factory for a class.]]>
  25673. </doc>
  25674. </method>
  25675. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25676. abstract="false" native="false" synchronized="false"
  25677. static="true" final="false" visibility="public"
  25678. deprecated="not deprecated">
  25679. <param name="c" type="java.lang.Class"/>
  25680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25681. <doc>
  25682. <![CDATA[Create a new instance of a class with a defined factory.
  25683. @param c input c.
  25684. @param conf input configuration.
  25685. @return a new instance of a class with a defined factory.]]>
  25686. </doc>
  25687. </method>
  25688. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25689. abstract="false" native="false" synchronized="false"
  25690. static="true" final="false" visibility="public"
  25691. deprecated="not deprecated">
  25692. <param name="c" type="java.lang.Class"/>
  25693. <doc>
  25694. <![CDATA[Create a new instance of a class with a defined factory.
  25695. @param c input c.
  25696. @return a new instance of a class with a defined factory.]]>
  25697. </doc>
  25698. </method>
  25699. <doc>
  25700. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  25701. ObjectWritable} to be able to construct instances of non-public classes.]]>
  25702. </doc>
  25703. </class>
  25704. <!-- end class org.apache.hadoop.io.WritableFactories -->
  25705. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  25706. <interface name="WritableFactory" abstract="true"
  25707. static="false" final="false" visibility="public"
  25708. deprecated="not deprecated">
  25709. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25710. abstract="true" native="false" synchronized="false"
  25711. static="false" final="false" visibility="public"
  25712. deprecated="not deprecated">
  25713. <doc>
  25714. <![CDATA[@return Return a new instance.]]>
  25715. </doc>
  25716. </method>
  25717. <doc>
  25718. <![CDATA[A factory for a class of Writable.
  25719. @see WritableFactories]]>
  25720. </doc>
  25721. </interface>
  25722. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  25723. <!-- start class org.apache.hadoop.io.WritableUtils -->
  25724. <class name="WritableUtils" extends="java.lang.Object"
  25725. abstract="false"
  25726. static="false" final="true" visibility="public"
  25727. deprecated="not deprecated">
  25728. <constructor name="WritableUtils"
  25729. static="false" final="false" visibility="public"
  25730. deprecated="not deprecated">
  25731. </constructor>
  25732. <method name="readCompressedByteArray" return="byte[]"
  25733. abstract="false" native="false" synchronized="false"
  25734. static="true" final="false" visibility="public"
  25735. deprecated="not deprecated">
  25736. <param name="in" type="java.io.DataInput"/>
  25737. <exception name="IOException" type="java.io.IOException"/>
  25738. </method>
  25739. <method name="skipCompressedByteArray"
  25740. abstract="false" native="false" synchronized="false"
  25741. static="true" final="false" visibility="public"
  25742. deprecated="not deprecated">
  25743. <param name="in" type="java.io.DataInput"/>
  25744. <exception name="IOException" type="java.io.IOException"/>
  25745. </method>
  25746. <method name="writeCompressedByteArray" return="int"
  25747. abstract="false" native="false" synchronized="false"
  25748. static="true" final="false" visibility="public"
  25749. deprecated="not deprecated">
  25750. <param name="out" type="java.io.DataOutput"/>
  25751. <param name="bytes" type="byte[]"/>
  25752. <exception name="IOException" type="java.io.IOException"/>
  25753. </method>
  25754. <method name="readCompressedString" return="java.lang.String"
  25755. abstract="false" native="false" synchronized="false"
  25756. static="true" final="false" visibility="public"
  25757. deprecated="not deprecated">
  25758. <param name="in" type="java.io.DataInput"/>
  25759. <exception name="IOException" type="java.io.IOException"/>
  25760. </method>
  25761. <method name="writeCompressedString" return="int"
  25762. abstract="false" native="false" synchronized="false"
  25763. static="true" final="false" visibility="public"
  25764. deprecated="not deprecated">
  25765. <param name="out" type="java.io.DataOutput"/>
  25766. <param name="s" type="java.lang.String"/>
  25767. <exception name="IOException" type="java.io.IOException"/>
  25768. </method>
  25769. <method name="writeString"
  25770. abstract="false" native="false" synchronized="false"
  25771. static="true" final="false" visibility="public"
  25772. deprecated="not deprecated">
  25773. <param name="out" type="java.io.DataOutput"/>
  25774. <param name="s" type="java.lang.String"/>
  25775. <exception name="IOException" type="java.io.IOException"/>
  25776. </method>
  25777. <method name="readString" return="java.lang.String"
  25778. abstract="false" native="false" synchronized="false"
  25779. static="true" final="false" visibility="public"
  25780. deprecated="not deprecated">
  25781. <param name="in" type="java.io.DataInput"/>
  25782. <exception name="IOException" type="java.io.IOException"/>
  25783. </method>
  25784. <method name="writeStringArray"
  25785. abstract="false" native="false" synchronized="false"
  25786. static="true" final="false" visibility="public"
  25787. deprecated="not deprecated">
  25788. <param name="out" type="java.io.DataOutput"/>
  25789. <param name="s" type="java.lang.String[]"/>
  25790. <exception name="IOException" type="java.io.IOException"/>
  25791. </method>
  25792. <method name="writeCompressedStringArray"
  25793. abstract="false" native="false" synchronized="false"
  25794. static="true" final="false" visibility="public"
  25795. deprecated="not deprecated">
  25796. <param name="out" type="java.io.DataOutput"/>
  25797. <param name="s" type="java.lang.String[]"/>
  25798. <exception name="IOException" type="java.io.IOException"/>
  25799. </method>
  25800. <method name="readStringArray" return="java.lang.String[]"
  25801. abstract="false" native="false" synchronized="false"
  25802. static="true" final="false" visibility="public"
  25803. deprecated="not deprecated">
  25804. <param name="in" type="java.io.DataInput"/>
  25805. <exception name="IOException" type="java.io.IOException"/>
  25806. </method>
  25807. <method name="readCompressedStringArray" return="java.lang.String[]"
  25808. abstract="false" native="false" synchronized="false"
  25809. static="true" final="false" visibility="public"
  25810. deprecated="not deprecated">
  25811. <param name="in" type="java.io.DataInput"/>
  25812. <exception name="IOException" type="java.io.IOException"/>
  25813. </method>
  25814. <method name="displayByteArray"
  25815. abstract="false" native="false" synchronized="false"
  25816. static="true" final="false" visibility="public"
  25817. deprecated="not deprecated">
  25818. <param name="record" type="byte[]"/>
  25819. </method>
  25820. <method name="clone" return="T"
  25821. abstract="false" native="false" synchronized="false"
  25822. static="true" final="false" visibility="public"
  25823. deprecated="not deprecated">
  25824. <param name="orig" type="T"/>
  25825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25826. <doc>
  25827. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  25828. @param <T> Generics Type T.
  25829. @param orig The object to copy
  25830. @param conf input Configuration.
  25831. @return The copied object]]>
  25832. </doc>
  25833. </method>
  25834. <method name="cloneInto"
  25835. abstract="false" native="false" synchronized="false"
  25836. static="true" final="false" visibility="public"
  25837. deprecated="use ReflectionUtils.cloneInto instead.">
  25838. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  25839. <param name="src" type="org.apache.hadoop.io.Writable"/>
  25840. <exception name="IOException" type="java.io.IOException"/>
  25841. <doc>
  25842. <![CDATA[Make a copy of the writable object using serialization to a buffer.
  25843. @param dst the object to copy from
  25844. @param src the object to copy into, which is destroyed
  25845. @throws IOException raised on errors performing I/O.
  25846. @deprecated use ReflectionUtils.cloneInto instead.]]>
  25847. </doc>
  25848. </method>
  25849. <method name="writeVInt"
  25850. abstract="false" native="false" synchronized="false"
  25851. static="true" final="false" visibility="public"
  25852. deprecated="not deprecated">
  25853. <param name="stream" type="java.io.DataOutput"/>
  25854. <param name="i" type="int"/>
  25855. <exception name="IOException" type="java.io.IOException"/>
  25856. <doc>
  25857. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  25858. For -112 {@literal <=} i {@literal <=} 127, only one byte is used with the
  25859. actual value.
  25860. For other values of i, the first byte value indicates whether the
  25861. integer is positive or negative, and the number of bytes that follow.
  25862. If the first byte value v is between -113 and -116, the following integer
  25863. is positive, with number of bytes that follow are -(v+112).
  25864. If the first byte value v is between -121 and -124, the following integer
  25865. is negative, with number of bytes that follow are -(v+120). Bytes are
  25866. stored in the high-non-zero-byte-first order.
  25867. @param stream Binary output stream
  25868. @param i Integer to be serialized
  25869. @throws IOException raised on errors performing I/O.]]>
  25870. </doc>
  25871. </method>
  25872. <method name="writeVLong"
  25873. abstract="false" native="false" synchronized="false"
  25874. static="true" final="false" visibility="public"
  25875. deprecated="not deprecated">
  25876. <param name="stream" type="java.io.DataOutput"/>
  25877. <param name="i" type="long"/>
  25878. <exception name="IOException" type="java.io.IOException"/>
  25879. <doc>
  25880. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  25881. For -112 {@literal <=} i {@literal <=} 127, only one byte is used with the
  25882. actual value.
  25883. For other values of i, the first byte value indicates whether the
  25884. long is positive or negative, and the number of bytes that follow.
  25885. If the first byte value v is between -113 and -120, the following long
  25886. is positive, with number of bytes that follow are -(v+112).
  25887. If the first byte value v is between -121 and -128, the following long
  25888. is negative, with number of bytes that follow are -(v+120). Bytes are
  25889. stored in the high-non-zero-byte-first order.
  25890. @param stream Binary output stream
  25891. @param i Long to be serialized
  25892. @throws IOException raised on errors performing I/O.]]>
  25893. </doc>
  25894. </method>
  25895. <method name="readVLong" return="long"
  25896. abstract="false" native="false" synchronized="false"
  25897. static="true" final="false" visibility="public"
  25898. deprecated="not deprecated">
  25899. <param name="stream" type="java.io.DataInput"/>
  25900. <exception name="IOException" type="java.io.IOException"/>
  25901. <doc>
  25902. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  25903. @param stream Binary input stream
  25904. @throws IOException raised on errors performing I/O.
  25905. @return deserialized long from stream.]]>
  25906. </doc>
  25907. </method>
  25908. <method name="readVInt" return="int"
  25909. abstract="false" native="false" synchronized="false"
  25910. static="true" final="false" visibility="public"
  25911. deprecated="not deprecated">
  25912. <param name="stream" type="java.io.DataInput"/>
  25913. <exception name="IOException" type="java.io.IOException"/>
  25914. <doc>
  25915. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  25916. @param stream Binary input stream
  25917. @throws IOException raised on errors performing I/O.
  25918. @return deserialized integer from stream.]]>
  25919. </doc>
  25920. </method>
  25921. <method name="readVIntInRange" return="int"
  25922. abstract="false" native="false" synchronized="false"
  25923. static="true" final="false" visibility="public"
  25924. deprecated="not deprecated">
  25925. <param name="stream" type="java.io.DataInput"/>
  25926. <param name="lower" type="int"/>
  25927. <param name="upper" type="int"/>
  25928. <exception name="IOException" type="java.io.IOException"/>
  25929. <doc>
  25930. <![CDATA[Reads an integer from the input stream and returns it.
  25931. This function validates that the integer is between [lower, upper],
  25932. inclusive.
  25933. @param stream Binary input stream
  25934. @param lower input lower.
  25935. @param upper input upper.
  25936. @throws IOException raised on errors performing I/O.
  25937. @return deserialized integer from stream.]]>
  25938. </doc>
  25939. </method>
  25940. <method name="isNegativeVInt" return="boolean"
  25941. abstract="false" native="false" synchronized="false"
  25942. static="true" final="false" visibility="public"
  25943. deprecated="not deprecated">
  25944. <param name="value" type="byte"/>
  25945. <doc>
  25946. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  25947. @param value the first byte
  25948. @return is the value negative]]>
  25949. </doc>
  25950. </method>
  25951. <method name="decodeVIntSize" return="int"
  25952. abstract="false" native="false" synchronized="false"
  25953. static="true" final="false" visibility="public"
  25954. deprecated="not deprecated">
  25955. <param name="value" type="byte"/>
  25956. <doc>
  25957. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  25958. @param value the first byte of the vint/vlong
  25959. @return the total number of bytes (1 to 9)]]>
  25960. </doc>
  25961. </method>
  25962. <method name="getVIntSize" return="int"
  25963. abstract="false" native="false" synchronized="false"
  25964. static="true" final="false" visibility="public"
  25965. deprecated="not deprecated">
  25966. <param name="i" type="long"/>
  25967. <doc>
  25968. <![CDATA[Get the encoded length if an integer is stored in a variable-length format.
  25969. @param i input i.
  25970. @return the encoded length]]>
  25971. </doc>
  25972. </method>
  25973. <method name="readEnum" return="T"
  25974. abstract="false" native="false" synchronized="false"
  25975. static="true" final="false" visibility="public"
  25976. deprecated="not deprecated">
  25977. <param name="in" type="java.io.DataInput"/>
  25978. <param name="enumType" type="java.lang.Class"/>
  25979. <exception name="IOException" type="java.io.IOException"/>
  25980. <doc>
  25981. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  25982. using String values.
  25983. @param <T> Enum type
  25984. @param in DataInput to read from
  25985. @param enumType Class type of Enum
  25986. @return Enum represented by String read from DataInput
  25987. @throws IOException raised on errors performing I/O.]]>
  25988. </doc>
  25989. </method>
  25990. <method name="writeEnum"
  25991. abstract="false" native="false" synchronized="false"
  25992. static="true" final="false" visibility="public"
  25993. deprecated="not deprecated">
  25994. <param name="out" type="java.io.DataOutput"/>
  25995. <param name="enumVal" type="java.lang.Enum"/>
  25996. <exception name="IOException" type="java.io.IOException"/>
  25997. <doc>
  25998. <![CDATA[writes String value of enum to DataOutput.
  25999. @param out Dataoutput stream
  26000. @param enumVal enum value
  26001. @throws IOException raised on errors performing I/O.]]>
  26002. </doc>
  26003. </method>
  26004. <method name="skipFully"
  26005. abstract="false" native="false" synchronized="false"
  26006. static="true" final="false" visibility="public"
  26007. deprecated="not deprecated">
  26008. <param name="in" type="java.io.DataInput"/>
  26009. <param name="len" type="int"/>
  26010. <exception name="IOException" type="java.io.IOException"/>
  26011. <doc>
  26012. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  26013. @param in input stream
  26014. @param len number of bytes to skip
  26015. @throws IOException when skipped less number of bytes]]>
  26016. </doc>
  26017. </method>
  26018. <method name="toByteArray" return="byte[]"
  26019. abstract="false" native="false" synchronized="false"
  26020. static="true" final="false" visibility="public"
  26021. deprecated="not deprecated">
  26022. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  26023. <doc>
  26024. <![CDATA[Convert writables to a byte array.
  26025. @param writables input writables.
  26026. @return ByteArray.]]>
  26027. </doc>
  26028. </method>
  26029. <method name="readStringSafely" return="java.lang.String"
  26030. abstract="false" native="false" synchronized="false"
  26031. static="true" final="false" visibility="public"
  26032. deprecated="not deprecated">
  26033. <param name="in" type="java.io.DataInput"/>
  26034. <param name="maxLength" type="int"/>
  26035. <exception name="IOException" type="java.io.IOException"/>
  26036. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  26037. <doc>
  26038. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  26039. followed by the given number of bytes.
  26040. @param in the stream to read from
  26041. @param maxLength the largest acceptable length of the encoded string
  26042. @return the bytes as a string
  26043. @throws IOException if reading from the DataInput fails
  26044. @throws IllegalArgumentException if the encoded byte size for string
  26045. is negative or larger than maxSize. Only the vint is read.]]>
  26046. </doc>
  26047. </method>
  26048. </class>
  26049. <!-- end class org.apache.hadoop.io.WritableUtils -->
  26050. <doc>
  26051. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  26052. to databases, and to files.]]>
  26053. </doc>
  26054. </package>
  26055. <package name="org.apache.hadoop.io.compress">
  26056. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  26057. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  26058. abstract="false"
  26059. static="false" final="false" visibility="public"
  26060. deprecated="not deprecated">
  26061. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  26062. static="false" final="false" visibility="public"
  26063. deprecated="not deprecated">
  26064. <doc>
  26065. <![CDATA[Create a {@link BlockCompressorStream}.
  26066. @param out stream
  26067. @param compressor compressor to be used
  26068. @param bufferSize size of buffer
  26069. @param compressionOverhead maximum 'overhead' of the compression
  26070. algorithm with given bufferSize]]>
  26071. </doc>
  26072. </constructor>
  26073. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  26074. static="false" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. <doc>
  26077. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  26078. compressor.
  26079. Use default of 512 as bufferSize and compressionOverhead of
  26080. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  26081. @param out stream
  26082. @param compressor compressor to be used]]>
  26083. </doc>
  26084. </constructor>
  26085. <method name="write"
  26086. abstract="false" native="false" synchronized="false"
  26087. static="false" final="false" visibility="public"
  26088. deprecated="not deprecated">
  26089. <param name="b" type="byte[]"/>
  26090. <param name="off" type="int"/>
  26091. <param name="len" type="int"/>
  26092. <exception name="IOException" type="java.io.IOException"/>
  26093. <doc>
  26094. <![CDATA[Write the data provided to the compression codec, compressing no more
  26095. than the buffer size less the compression overhead as specified during
  26096. construction for each block.
  26097. Each block contains the uncompressed length for the block, followed by
  26098. one or more length-prefixed blocks of compressed data.]]>
  26099. </doc>
  26100. </method>
  26101. <method name="finish"
  26102. abstract="false" native="false" synchronized="false"
  26103. static="false" final="false" visibility="public"
  26104. deprecated="not deprecated">
  26105. <exception name="IOException" type="java.io.IOException"/>
  26106. </method>
  26107. <method name="compress"
  26108. abstract="false" native="false" synchronized="false"
  26109. static="false" final="false" visibility="protected"
  26110. deprecated="not deprecated">
  26111. <exception name="IOException" type="java.io.IOException"/>
  26112. </method>
  26113. <doc>
  26114. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  26115. with 'block-based' based compression algorithms, as opposed to
  26116. 'stream-based' compression algorithms.
  26117. It should be noted that this wrapper does not guarantee that blocks will
  26118. be sized for the compressor. If the
  26119. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  26120. effect meaningful compression, it is responsible for it.]]>
  26121. </doc>
  26122. </class>
  26123. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  26124. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  26125. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  26126. abstract="false"
  26127. static="false" final="false" visibility="public"
  26128. deprecated="not deprecated">
  26129. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  26130. static="false" final="false" visibility="public"
  26131. deprecated="not deprecated">
  26132. <exception name="IOException" type="java.io.IOException"/>
  26133. <doc>
  26134. <![CDATA[Create a {@link BlockDecompressorStream}.
  26135. @param in input stream
  26136. @param decompressor decompressor to use
  26137. @param bufferSize size of buffer
  26138. @throws IOException raised on errors performing I/O.]]>
  26139. </doc>
  26140. </constructor>
  26141. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  26142. static="false" final="false" visibility="public"
  26143. deprecated="not deprecated">
  26144. <exception name="IOException" type="java.io.IOException"/>
  26145. <doc>
  26146. <![CDATA[Create a {@link BlockDecompressorStream}.
  26147. @param in input stream
  26148. @param decompressor decompressor to use
  26149. @throws IOException raised on errors performing I/O.]]>
  26150. </doc>
  26151. </constructor>
  26152. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  26153. static="false" final="false" visibility="protected"
  26154. deprecated="not deprecated">
  26155. <exception name="IOException" type="java.io.IOException"/>
  26156. </constructor>
  26157. <method name="decompress" return="int"
  26158. abstract="false" native="false" synchronized="false"
  26159. static="false" final="false" visibility="protected"
  26160. deprecated="not deprecated">
  26161. <param name="b" type="byte[]"/>
  26162. <param name="off" type="int"/>
  26163. <param name="len" type="int"/>
  26164. <exception name="IOException" type="java.io.IOException"/>
  26165. </method>
  26166. <method name="getCompressedData" return="int"
  26167. abstract="false" native="false" synchronized="false"
  26168. static="false" final="false" visibility="protected"
  26169. deprecated="not deprecated">
  26170. <exception name="IOException" type="java.io.IOException"/>
  26171. </method>
  26172. <method name="resetState"
  26173. abstract="false" native="false" synchronized="false"
  26174. static="false" final="false" visibility="public"
  26175. deprecated="not deprecated">
  26176. <exception name="IOException" type="java.io.IOException"/>
  26177. </method>
  26178. <doc>
  26179. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  26180. with 'block-based' based compression algorithms, as opposed to
  26181. 'stream-based' compression algorithms.]]>
  26182. </doc>
  26183. </class>
  26184. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  26185. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  26186. <class name="BZip2Codec" extends="java.lang.Object"
  26187. abstract="false"
  26188. static="false" final="false" visibility="public"
  26189. deprecated="not deprecated">
  26190. <implements name="org.apache.hadoop.conf.Configurable"/>
  26191. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  26192. <constructor name="BZip2Codec"
  26193. static="false" final="false" visibility="public"
  26194. deprecated="not deprecated">
  26195. <doc>
  26196. <![CDATA[Creates a new instance of BZip2Codec.]]>
  26197. </doc>
  26198. </constructor>
  26199. <method name="setConf"
  26200. abstract="false" native="false" synchronized="false"
  26201. static="false" final="false" visibility="public"
  26202. deprecated="not deprecated">
  26203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26204. <doc>
  26205. <![CDATA[Set the configuration to be used by this object.
  26206. @param conf the configuration object.]]>
  26207. </doc>
  26208. </method>
  26209. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26210. abstract="false" native="false" synchronized="false"
  26211. static="false" final="false" visibility="public"
  26212. deprecated="not deprecated">
  26213. <doc>
  26214. <![CDATA[Return the configuration used by this object.
  26215. @return the configuration object used by this objec.]]>
  26216. </doc>
  26217. </method>
  26218. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26219. abstract="false" native="false" synchronized="false"
  26220. static="false" final="false" visibility="public"
  26221. deprecated="not deprecated">
  26222. <param name="out" type="java.io.OutputStream"/>
  26223. <exception name="IOException" type="java.io.IOException"/>
  26224. <doc>
  26225. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26226. {@link OutputStream}.
  26227. @param out the location for the final output stream
  26228. @return a stream the user can write uncompressed data to, to have it
  26229. compressed
  26230. @throws IOException raised on errors performing I/O.]]>
  26231. </doc>
  26232. </method>
  26233. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26234. abstract="false" native="false" synchronized="false"
  26235. static="false" final="false" visibility="public"
  26236. deprecated="not deprecated">
  26237. <param name="out" type="java.io.OutputStream"/>
  26238. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26239. <exception name="IOException" type="java.io.IOException"/>
  26240. <doc>
  26241. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26242. {@link OutputStream} with the given {@link Compressor}.
  26243. @param out the location for the final output stream
  26244. @param compressor compressor to use
  26245. @return a stream the user can write uncompressed data to, to have it
  26246. compressed
  26247. @throws IOException raised on errors performing I/O.]]>
  26248. </doc>
  26249. </method>
  26250. <method name="getCompressorType" return="java.lang.Class"
  26251. abstract="false" native="false" synchronized="false"
  26252. static="false" final="false" visibility="public"
  26253. deprecated="not deprecated">
  26254. <doc>
  26255. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  26256. @return the type of compressor needed by this codec.]]>
  26257. </doc>
  26258. </method>
  26259. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26260. abstract="false" native="false" synchronized="false"
  26261. static="false" final="false" visibility="public"
  26262. deprecated="not deprecated">
  26263. <doc>
  26264. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  26265. @return a new compressor for use by this codec]]>
  26266. </doc>
  26267. </method>
  26268. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26269. abstract="false" native="false" synchronized="false"
  26270. static="false" final="false" visibility="public"
  26271. deprecated="not deprecated">
  26272. <param name="in" type="java.io.InputStream"/>
  26273. <exception name="IOException" type="java.io.IOException"/>
  26274. <doc>
  26275. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26276. input stream and return a stream for uncompressed data.
  26277. @param in the stream to read compressed bytes from
  26278. @return a stream to read uncompressed bytes from
  26279. @throws IOException raised on errors performing I/O.]]>
  26280. </doc>
  26281. </method>
  26282. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26283. abstract="false" native="false" synchronized="false"
  26284. static="false" final="false" visibility="public"
  26285. deprecated="not deprecated">
  26286. <param name="in" type="java.io.InputStream"/>
  26287. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26288. <exception name="IOException" type="java.io.IOException"/>
  26289. <doc>
  26290. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26291. {@link InputStream} with the given {@link Decompressor}, and return a
  26292. stream for uncompressed data.
  26293. @param in the stream to read compressed bytes from
  26294. @param decompressor decompressor to use
  26295. @return a stream to read uncompressed bytes from
  26296. @throws IOException raised on errors performing I/O.]]>
  26297. </doc>
  26298. </method>
  26299. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  26300. abstract="false" native="false" synchronized="false"
  26301. static="false" final="false" visibility="public"
  26302. deprecated="not deprecated">
  26303. <param name="seekableIn" type="java.io.InputStream"/>
  26304. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26305. <param name="start" type="long"/>
  26306. <param name="end" type="long"/>
  26307. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  26308. <exception name="IOException" type="java.io.IOException"/>
  26309. <doc>
  26310. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  26311. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  26312. @param seekableIn The InputStream
  26313. @param start The start offset into the compressed stream
  26314. @param end The end offset into the compressed stream
  26315. @param readMode Controls whether progress is reported continuously or
  26316. only at block boundaries.
  26317. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  26318. </doc>
  26319. </method>
  26320. <method name="getDecompressorType" return="java.lang.Class"
  26321. abstract="false" native="false" synchronized="false"
  26322. static="false" final="false" visibility="public"
  26323. deprecated="not deprecated">
  26324. <doc>
  26325. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  26326. @return the type of decompressor needed by this codec.]]>
  26327. </doc>
  26328. </method>
  26329. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26330. abstract="false" native="false" synchronized="false"
  26331. static="false" final="false" visibility="public"
  26332. deprecated="not deprecated">
  26333. <doc>
  26334. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  26335. @return a new decompressor for use by this codec]]>
  26336. </doc>
  26337. </method>
  26338. <method name="getDefaultExtension" return="java.lang.String"
  26339. abstract="false" native="false" synchronized="false"
  26340. static="false" final="false" visibility="public"
  26341. deprecated="not deprecated">
  26342. <doc>
  26343. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  26344. @return A String telling the default bzip2 file extension]]>
  26345. </doc>
  26346. </method>
  26347. <method name="writeHeader"
  26348. abstract="false" native="false" synchronized="false"
  26349. static="true" final="false" visibility="public"
  26350. deprecated="not deprecated">
  26351. <param name="out" type="java.io.OutputStream"/>
  26352. <exception name="IOException" type="java.io.IOException"/>
  26353. </method>
  26354. <doc>
  26355. <![CDATA[This class provides output and input streams for bzip2 compression
  26356. and decompression. It uses the native bzip2 library on the system
  26357. if possible, else it uses a pure-Java implementation of the bzip2
  26358. algorithm. The configuration parameter
  26359. io.compression.codec.bzip2.library can be used to control this
  26360. behavior.
  26361. In the pure-Java mode, the Compressor and Decompressor interfaces
  26362. are not implemented. Therefore, in that mode, those methods of
  26363. CompressionCodec which have a Compressor or Decompressor type
  26364. argument, throw UnsupportedOperationException.
  26365. Currently, support for splittability is available only in the
  26366. pure-Java mode; therefore, if a SplitCompressionInputStream is
  26367. requested, the pure-Java implementation is used, regardless of the
  26368. setting of the configuration parameter mentioned above.]]>
  26369. </doc>
  26370. </class>
  26371. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  26372. <!-- start class org.apache.hadoop.io.compress.CodecConstants -->
  26373. <class name="CodecConstants" extends="java.lang.Object"
  26374. abstract="false"
  26375. static="false" final="true" visibility="public"
  26376. deprecated="not deprecated">
  26377. <field name="DEFAULT_CODEC_EXTENSION" type="java.lang.String"
  26378. transient="false" volatile="false"
  26379. static="true" final="true" visibility="public"
  26380. deprecated="not deprecated">
  26381. <doc>
  26382. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.DefaultCodec}.]]>
  26383. </doc>
  26384. </field>
  26385. <field name="BZIP2_CODEC_EXTENSION" type="java.lang.String"
  26386. transient="false" volatile="false"
  26387. static="true" final="true" visibility="public"
  26388. deprecated="not deprecated">
  26389. <doc>
  26390. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.BZip2Codec}.]]>
  26391. </doc>
  26392. </field>
  26393. <field name="GZIP_CODEC_EXTENSION" type="java.lang.String"
  26394. transient="false" volatile="false"
  26395. static="true" final="true" visibility="public"
  26396. deprecated="not deprecated">
  26397. <doc>
  26398. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.GzipCodec}.]]>
  26399. </doc>
  26400. </field>
  26401. <field name="LZ4_CODEC_EXTENSION" type="java.lang.String"
  26402. transient="false" volatile="false"
  26403. static="true" final="true" visibility="public"
  26404. deprecated="not deprecated">
  26405. <doc>
  26406. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.Lz4Codec}.]]>
  26407. </doc>
  26408. </field>
  26409. <field name="PASSTHROUGH_CODEC_EXTENSION" type="java.lang.String"
  26410. transient="false" volatile="false"
  26411. static="true" final="true" visibility="public"
  26412. deprecated="not deprecated">
  26413. <doc>
  26414. <![CDATA[Default extension for
  26415. {@link org.apache.hadoop.io.compress.PassthroughCodec}.]]>
  26416. </doc>
  26417. </field>
  26418. <field name="SNAPPY_CODEC_EXTENSION" type="java.lang.String"
  26419. transient="false" volatile="false"
  26420. static="true" final="true" visibility="public"
  26421. deprecated="not deprecated">
  26422. <doc>
  26423. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.SnappyCodec}.]]>
  26424. </doc>
  26425. </field>
  26426. <field name="ZSTANDARD_CODEC_EXTENSION" type="java.lang.String"
  26427. transient="false" volatile="false"
  26428. static="true" final="true" visibility="public"
  26429. deprecated="not deprecated">
  26430. <doc>
  26431. <![CDATA[Default extension for {@link org.apache.hadoop.io.compress.ZStandardCodec}.]]>
  26432. </doc>
  26433. </field>
  26434. <doc>
  26435. <![CDATA[Codec related constants.]]>
  26436. </doc>
  26437. </class>
  26438. <!-- end class org.apache.hadoop.io.compress.CodecConstants -->
  26439. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  26440. <class name="CodecPool" extends="java.lang.Object"
  26441. abstract="false"
  26442. static="false" final="false" visibility="public"
  26443. deprecated="not deprecated">
  26444. <constructor name="CodecPool"
  26445. static="false" final="false" visibility="public"
  26446. deprecated="not deprecated">
  26447. </constructor>
  26448. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26449. abstract="false" native="false" synchronized="false"
  26450. static="true" final="false" visibility="public"
  26451. deprecated="not deprecated">
  26452. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26453. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26454. <doc>
  26455. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  26456. pool or a new one.
  26457. @param codec the <code>CompressionCodec</code> for which to get the
  26458. <code>Compressor</code>
  26459. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  26460. @return <code>Compressor</code> for the given
  26461. <code>CompressionCodec</code> from the pool or a new one]]>
  26462. </doc>
  26463. </method>
  26464. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26465. abstract="false" native="false" synchronized="false"
  26466. static="true" final="false" visibility="public"
  26467. deprecated="not deprecated">
  26468. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26469. </method>
  26470. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26471. abstract="false" native="false" synchronized="false"
  26472. static="true" final="false" visibility="public"
  26473. deprecated="not deprecated">
  26474. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26475. <doc>
  26476. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  26477. pool or a new one.
  26478. @param codec the <code>CompressionCodec</code> for which to get the
  26479. <code>Decompressor</code>
  26480. @return <code>Decompressor</code> for the given
  26481. <code>CompressionCodec</code> the pool or a new one]]>
  26482. </doc>
  26483. </method>
  26484. <method name="returnCompressor"
  26485. abstract="false" native="false" synchronized="false"
  26486. static="true" final="false" visibility="public"
  26487. deprecated="not deprecated">
  26488. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26489. <doc>
  26490. <![CDATA[Return the {@link Compressor} to the pool.
  26491. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  26492. </doc>
  26493. </method>
  26494. <method name="returnDecompressor"
  26495. abstract="false" native="false" synchronized="false"
  26496. static="true" final="false" visibility="public"
  26497. deprecated="not deprecated">
  26498. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26499. <doc>
  26500. <![CDATA[Return the {@link Decompressor} to the pool.
  26501. @param decompressor the <code>Decompressor</code> to be returned to the
  26502. pool]]>
  26503. </doc>
  26504. </method>
  26505. <method name="getLeasedCompressorsCount" return="int"
  26506. abstract="false" native="false" synchronized="false"
  26507. static="true" final="false" visibility="public"
  26508. deprecated="not deprecated">
  26509. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26510. <doc>
  26511. <![CDATA[Return the number of leased {@link Compressor}s for this
  26512. {@link CompressionCodec}.
  26513. @param codec codec.
  26514. @return the number of leased.]]>
  26515. </doc>
  26516. </method>
  26517. <method name="getLeasedDecompressorsCount" return="int"
  26518. abstract="false" native="false" synchronized="false"
  26519. static="true" final="false" visibility="public"
  26520. deprecated="not deprecated">
  26521. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26522. <doc>
  26523. <![CDATA[Return the number of leased {@link Decompressor}s for this
  26524. {@link CompressionCodec}.
  26525. @param codec codec.
  26526. @return the number of leased]]>
  26527. </doc>
  26528. </method>
  26529. <doc>
  26530. <![CDATA[A global compressor/decompressor pool used to save and reuse
  26531. (possibly native) compression/decompression codecs.]]>
  26532. </doc>
  26533. </class>
  26534. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  26535. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  26536. <interface name="CompressionCodec" abstract="true"
  26537. static="false" final="false" visibility="public"
  26538. deprecated="not deprecated">
  26539. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26540. abstract="true" native="false" synchronized="false"
  26541. static="false" final="false" visibility="public"
  26542. deprecated="not deprecated">
  26543. <param name="out" type="java.io.OutputStream"/>
  26544. <exception name="IOException" type="java.io.IOException"/>
  26545. <doc>
  26546. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26547. {@link OutputStream}.
  26548. @param out the location for the final output stream
  26549. @return a stream the user can write uncompressed data to have it compressed
  26550. @throws IOException raised on errors performing I/O.]]>
  26551. </doc>
  26552. </method>
  26553. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26554. abstract="true" native="false" synchronized="false"
  26555. static="false" final="false" visibility="public"
  26556. deprecated="not deprecated">
  26557. <param name="out" type="java.io.OutputStream"/>
  26558. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26559. <exception name="IOException" type="java.io.IOException"/>
  26560. <doc>
  26561. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26562. {@link OutputStream} with the given {@link Compressor}.
  26563. @param out the location for the final output stream
  26564. @param compressor compressor to use
  26565. @return a stream the user can write uncompressed data to have it compressed
  26566. @throws IOException raised on errors performing I/O.]]>
  26567. </doc>
  26568. </method>
  26569. <method name="getCompressorType" return="java.lang.Class"
  26570. abstract="true" native="false" synchronized="false"
  26571. static="false" final="false" visibility="public"
  26572. deprecated="not deprecated">
  26573. <doc>
  26574. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  26575. @return the type of compressor needed by this codec.]]>
  26576. </doc>
  26577. </method>
  26578. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26579. abstract="true" native="false" synchronized="false"
  26580. static="false" final="false" visibility="public"
  26581. deprecated="not deprecated">
  26582. <doc>
  26583. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  26584. @return a new compressor for use by this codec]]>
  26585. </doc>
  26586. </method>
  26587. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26588. abstract="true" native="false" synchronized="false"
  26589. static="false" final="false" visibility="public"
  26590. deprecated="not deprecated">
  26591. <param name="in" type="java.io.InputStream"/>
  26592. <exception name="IOException" type="java.io.IOException"/>
  26593. <doc>
  26594. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26595. input stream.
  26596. @param in the stream to read compressed bytes from
  26597. @return a stream to read uncompressed bytes from
  26598. @throws IOException raised on errors performing I/O.]]>
  26599. </doc>
  26600. </method>
  26601. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26602. abstract="true" native="false" synchronized="false"
  26603. static="false" final="false" visibility="public"
  26604. deprecated="not deprecated">
  26605. <param name="in" type="java.io.InputStream"/>
  26606. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26607. <exception name="IOException" type="java.io.IOException"/>
  26608. <doc>
  26609. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26610. {@link InputStream} with the given {@link Decompressor}.
  26611. @param in the stream to read compressed bytes from
  26612. @param decompressor decompressor to use
  26613. @return a stream to read uncompressed bytes from
  26614. @throws IOException raised on errors performing I/O.]]>
  26615. </doc>
  26616. </method>
  26617. <method name="getDecompressorType" return="java.lang.Class"
  26618. abstract="true" native="false" synchronized="false"
  26619. static="false" final="false" visibility="public"
  26620. deprecated="not deprecated">
  26621. <doc>
  26622. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  26623. @return the type of decompressor needed by this codec.]]>
  26624. </doc>
  26625. </method>
  26626. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26627. abstract="true" native="false" synchronized="false"
  26628. static="false" final="false" visibility="public"
  26629. deprecated="not deprecated">
  26630. <doc>
  26631. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  26632. @return a new decompressor for use by this codec]]>
  26633. </doc>
  26634. </method>
  26635. <method name="getDefaultExtension" return="java.lang.String"
  26636. abstract="true" native="false" synchronized="false"
  26637. static="false" final="false" visibility="public"
  26638. deprecated="not deprecated">
  26639. <doc>
  26640. <![CDATA[Get the default filename extension for this kind of compression.
  26641. @return the extension including the '.']]>
  26642. </doc>
  26643. </method>
  26644. <doc>
  26645. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  26646. </doc>
  26647. </interface>
  26648. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  26649. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  26650. <class name="CompressionCodecFactory" extends="java.lang.Object"
  26651. abstract="false"
  26652. static="false" final="false" visibility="public"
  26653. deprecated="not deprecated">
  26654. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  26655. static="false" final="false" visibility="public"
  26656. deprecated="not deprecated">
  26657. <doc>
  26658. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  26659. and register them. Defaults to gzip and deflate.
  26660. @param conf configuration.]]>
  26661. </doc>
  26662. </constructor>
  26663. <method name="toString" return="java.lang.String"
  26664. abstract="false" native="false" synchronized="false"
  26665. static="false" final="false" visibility="public"
  26666. deprecated="not deprecated">
  26667. <doc>
  26668. <![CDATA[Print the extension map out as a string.]]>
  26669. </doc>
  26670. </method>
  26671. <method name="getCodecClasses" return="java.util.List"
  26672. abstract="false" native="false" synchronized="false"
  26673. static="true" final="false" visibility="public"
  26674. deprecated="not deprecated">
  26675. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26676. <doc>
  26677. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  26678. listed in the configuration. Codecs specified in configuration come
  26679. later in the returned list, and are considered to override those
  26680. from the ServiceLoader.
  26681. @param conf the configuration to look in
  26682. @return a list of the {@link CompressionCodec} classes]]>
  26683. </doc>
  26684. </method>
  26685. <method name="setCodecClasses"
  26686. abstract="false" native="false" synchronized="false"
  26687. static="true" final="false" visibility="public"
  26688. deprecated="not deprecated">
  26689. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26690. <param name="classes" type="java.util.List"/>
  26691. <doc>
  26692. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  26693. classes specified using this method, {@link CompressionCodec} classes on
  26694. the classpath are discovered using a Java ServiceLoader.
  26695. @param conf the configuration to modify
  26696. @param classes the list of classes to set]]>
  26697. </doc>
  26698. </method>
  26699. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  26700. abstract="false" native="false" synchronized="false"
  26701. static="false" final="false" visibility="public"
  26702. deprecated="not deprecated">
  26703. <param name="file" type="org.apache.hadoop.fs.Path"/>
  26704. <doc>
  26705. <![CDATA[Find the relevant compression codec for the given file based on its
  26706. filename suffix.
  26707. @param file the filename to check
  26708. @return the codec object]]>
  26709. </doc>
  26710. </method>
  26711. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  26712. abstract="false" native="false" synchronized="false"
  26713. static="false" final="false" visibility="public"
  26714. deprecated="not deprecated">
  26715. <param name="classname" type="java.lang.String"/>
  26716. <doc>
  26717. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  26718. @param classname the canonical class name of the codec
  26719. @return the codec object]]>
  26720. </doc>
  26721. </method>
  26722. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  26723. abstract="false" native="false" synchronized="false"
  26724. static="false" final="false" visibility="public"
  26725. deprecated="not deprecated">
  26726. <param name="codecName" type="java.lang.String"/>
  26727. <doc>
  26728. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  26729. or by codec alias.
  26730. <p>
  26731. Codec aliases are case insensitive.
  26732. <p>
  26733. The code alias is the short class name (without the package name).
  26734. If the short class name ends with 'Codec', then there are two aliases for
  26735. the codec, the complete short class name and the short class name without
  26736. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  26737. alias are 'gzip' and 'gzipcodec'.
  26738. @param codecName the canonical class name of the codec
  26739. @return the codec object]]>
  26740. </doc>
  26741. </method>
  26742. <method name="getCodecClassByName" return="java.lang.Class"
  26743. abstract="false" native="false" synchronized="false"
  26744. static="false" final="false" visibility="public"
  26745. deprecated="not deprecated">
  26746. <param name="codecName" type="java.lang.String"/>
  26747. <doc>
  26748. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  26749. or by codec alias and returns its implemetation class.
  26750. <p>
  26751. Codec aliases are case insensitive.
  26752. <p>
  26753. The code alias is the short class name (without the package name).
  26754. If the short class name ends with 'Codec', then there are two aliases for
  26755. the codec, the complete short class name and the short class name without
  26756. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  26757. alias are 'gzip' and 'gzipcodec'.
  26758. @param codecName the canonical class name of the codec
  26759. @return the codec class]]>
  26760. </doc>
  26761. </method>
  26762. <method name="removeSuffix" return="java.lang.String"
  26763. abstract="false" native="false" synchronized="false"
  26764. static="true" final="false" visibility="public"
  26765. deprecated="not deprecated">
  26766. <param name="filename" type="java.lang.String"/>
  26767. <param name="suffix" type="java.lang.String"/>
  26768. <doc>
  26769. <![CDATA[Removes a suffix from a filename, if it has it.
  26770. @param filename the filename to strip
  26771. @param suffix the suffix to remove
  26772. @return the shortened filename]]>
  26773. </doc>
  26774. </method>
  26775. <method name="main"
  26776. abstract="false" native="false" synchronized="false"
  26777. static="true" final="false" visibility="public"
  26778. deprecated="not deprecated">
  26779. <param name="args" type="java.lang.String[]"/>
  26780. <exception name="Exception" type="java.lang.Exception"/>
  26781. <doc>
  26782. <![CDATA[A little test program.
  26783. @param args arguments.
  26784. @throws Exception exception.]]>
  26785. </doc>
  26786. </method>
  26787. <field name="LOG" type="org.slf4j.Logger"
  26788. transient="false" volatile="false"
  26789. static="true" final="true" visibility="public"
  26790. deprecated="not deprecated">
  26791. </field>
  26792. <doc>
  26793. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  26794. </doc>
  26795. </class>
  26796. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  26797. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  26798. <class name="CompressionInputStream" extends="java.io.InputStream"
  26799. abstract="true"
  26800. static="false" final="false" visibility="public"
  26801. deprecated="not deprecated">
  26802. <implements name="org.apache.hadoop.fs.Seekable"/>
  26803. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  26804. <constructor name="CompressionInputStream" type="java.io.InputStream"
  26805. static="false" final="false" visibility="protected"
  26806. deprecated="not deprecated">
  26807. <exception name="IOException" type="java.io.IOException"/>
  26808. <doc>
  26809. <![CDATA[Create a compression input stream that reads
  26810. the decompressed bytes from the given stream.
  26811. @param in The input stream to be compressed.
  26812. @throws IOException raised on errors performing I/O.]]>
  26813. </doc>
  26814. </constructor>
  26815. <method name="close"
  26816. abstract="false" native="false" synchronized="false"
  26817. static="false" final="false" visibility="public"
  26818. deprecated="not deprecated">
  26819. <exception name="IOException" type="java.io.IOException"/>
  26820. </method>
  26821. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  26822. abstract="false" native="false" synchronized="false"
  26823. static="false" final="false" visibility="public"
  26824. deprecated="not deprecated">
  26825. <doc>
  26826. <![CDATA[Return any IOStatistics provided by the underlying stream.
  26827. @return IO stats from the inner stream.]]>
  26828. </doc>
  26829. </method>
  26830. <method name="read" return="int"
  26831. abstract="true" native="false" synchronized="false"
  26832. static="false" final="false" visibility="public"
  26833. deprecated="not deprecated">
  26834. <param name="b" type="byte[]"/>
  26835. <param name="off" type="int"/>
  26836. <param name="len" type="int"/>
  26837. <exception name="IOException" type="java.io.IOException"/>
  26838. <doc>
  26839. <![CDATA[Read bytes from the stream.
  26840. Made abstract to prevent leakage to underlying stream.]]>
  26841. </doc>
  26842. </method>
  26843. <method name="resetState"
  26844. abstract="true" native="false" synchronized="false"
  26845. static="false" final="false" visibility="public"
  26846. deprecated="not deprecated">
  26847. <exception name="IOException" type="java.io.IOException"/>
  26848. <doc>
  26849. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  26850. as the underlying stream may have been repositioned.
  26851. @throws IOException raised on errors performing I/O.]]>
  26852. </doc>
  26853. </method>
  26854. <method name="getPos" return="long"
  26855. abstract="false" native="false" synchronized="false"
  26856. static="false" final="false" visibility="public"
  26857. deprecated="not deprecated">
  26858. <exception name="IOException" type="java.io.IOException"/>
  26859. <doc>
  26860. <![CDATA[This method returns the current position in the stream.
  26861. @return Current position in stream as a long]]>
  26862. </doc>
  26863. </method>
  26864. <method name="seek"
  26865. abstract="false" native="false" synchronized="false"
  26866. static="false" final="false" visibility="public"
  26867. deprecated="not deprecated">
  26868. <param name="pos" type="long"/>
  26869. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26870. <doc>
  26871. <![CDATA[This method is current not supported.
  26872. @throws UnsupportedOperationException Unsupported Operation Exception.]]>
  26873. </doc>
  26874. </method>
  26875. <method name="seekToNewSource" return="boolean"
  26876. abstract="false" native="false" synchronized="false"
  26877. static="false" final="false" visibility="public"
  26878. deprecated="not deprecated">
  26879. <param name="targetPos" type="long"/>
  26880. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26881. <doc>
  26882. <![CDATA[This method is current not supported.
  26883. @throws UnsupportedOperationException Unsupported Operation Exception.]]>
  26884. </doc>
  26885. </method>
  26886. <field name="in" type="java.io.InputStream"
  26887. transient="false" volatile="false"
  26888. static="false" final="true" visibility="protected"
  26889. deprecated="not deprecated">
  26890. <doc>
  26891. <![CDATA[The input stream to be compressed.]]>
  26892. </doc>
  26893. </field>
  26894. <field name="maxAvailableData" type="long"
  26895. transient="false" volatile="false"
  26896. static="false" final="false" visibility="protected"
  26897. deprecated="not deprecated">
  26898. </field>
  26899. <doc>
  26900. <![CDATA[A compression input stream.
  26901. <p>Implementations are assumed to be buffered. This permits clients to
  26902. reposition the underlying input stream then call {@link #resetState()},
  26903. without having to also synchronize client buffers.]]>
  26904. </doc>
  26905. </class>
  26906. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  26907. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  26908. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  26909. abstract="true"
  26910. static="false" final="false" visibility="public"
  26911. deprecated="not deprecated">
  26912. <implements name="org.apache.hadoop.fs.statistics.IOStatisticsSource"/>
  26913. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  26914. static="false" final="false" visibility="protected"
  26915. deprecated="not deprecated">
  26916. <doc>
  26917. <![CDATA[Create a compression output stream that writes
  26918. the compressed bytes to the given stream.
  26919. @param out out.]]>
  26920. </doc>
  26921. </constructor>
  26922. <method name="close"
  26923. abstract="false" native="false" synchronized="false"
  26924. static="false" final="false" visibility="public"
  26925. deprecated="not deprecated">
  26926. <exception name="IOException" type="java.io.IOException"/>
  26927. </method>
  26928. <method name="flush"
  26929. abstract="false" native="false" synchronized="false"
  26930. static="false" final="false" visibility="public"
  26931. deprecated="not deprecated">
  26932. <exception name="IOException" type="java.io.IOException"/>
  26933. </method>
  26934. <method name="write"
  26935. abstract="true" native="false" synchronized="false"
  26936. static="false" final="false" visibility="public"
  26937. deprecated="not deprecated">
  26938. <param name="b" type="byte[]"/>
  26939. <param name="off" type="int"/>
  26940. <param name="len" type="int"/>
  26941. <exception name="IOException" type="java.io.IOException"/>
  26942. <doc>
  26943. <![CDATA[Write compressed bytes to the stream.
  26944. Made abstract to prevent leakage to underlying stream.]]>
  26945. </doc>
  26946. </method>
  26947. <method name="finish"
  26948. abstract="true" native="false" synchronized="false"
  26949. static="false" final="false" visibility="public"
  26950. deprecated="not deprecated">
  26951. <exception name="IOException" type="java.io.IOException"/>
  26952. <doc>
  26953. <![CDATA[Finishes writing compressed data to the output stream
  26954. without closing the underlying stream.
  26955. @throws IOException raised on errors performing I/O.]]>
  26956. </doc>
  26957. </method>
  26958. <method name="resetState"
  26959. abstract="true" native="false" synchronized="false"
  26960. static="false" final="false" visibility="public"
  26961. deprecated="not deprecated">
  26962. <exception name="IOException" type="java.io.IOException"/>
  26963. <doc>
  26964. <![CDATA[Reset the compression to the initial state.
  26965. Does not reset the underlying stream.
  26966. @throws IOException raised on errors performing I/O.]]>
  26967. </doc>
  26968. </method>
  26969. <method name="getIOStatistics" return="org.apache.hadoop.fs.statistics.IOStatistics"
  26970. abstract="false" native="false" synchronized="false"
  26971. static="false" final="false" visibility="public"
  26972. deprecated="not deprecated">
  26973. <doc>
  26974. <![CDATA[Return any IOStatistics provided by the underlying stream.
  26975. @return IO stats from the inner stream.]]>
  26976. </doc>
  26977. </method>
  26978. <field name="out" type="java.io.OutputStream"
  26979. transient="false" volatile="false"
  26980. static="false" final="true" visibility="protected"
  26981. deprecated="not deprecated">
  26982. <doc>
  26983. <![CDATA[The output stream to be compressed.]]>
  26984. </doc>
  26985. </field>
  26986. <doc>
  26987. <![CDATA[A compression output stream.]]>
  26988. </doc>
  26989. </class>
  26990. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  26991. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  26992. <interface name="Compressor" abstract="true"
  26993. static="false" final="false" visibility="public"
  26994. deprecated="not deprecated">
  26995. <method name="setInput"
  26996. abstract="true" native="false" synchronized="false"
  26997. static="false" final="false" visibility="public"
  26998. deprecated="not deprecated">
  26999. <param name="b" type="byte[]"/>
  27000. <param name="off" type="int"/>
  27001. <param name="len" type="int"/>
  27002. <doc>
  27003. <![CDATA[Sets input data for compression.
  27004. This should be called whenever #needsInput() returns
  27005. <code>true</code> indicating that more input data is required.
  27006. @param b Input data
  27007. @param off Start offset
  27008. @param len Length]]>
  27009. </doc>
  27010. </method>
  27011. <method name="needsInput" return="boolean"
  27012. abstract="true" native="false" synchronized="false"
  27013. static="false" final="false" visibility="public"
  27014. deprecated="not deprecated">
  27015. <doc>
  27016. <![CDATA[Returns true if the input data buffer is empty and
  27017. #setInput() should be called to provide more input.
  27018. @return <code>true</code> if the input data buffer is empty and
  27019. #setInput() should be called in order to provide more input.]]>
  27020. </doc>
  27021. </method>
  27022. <method name="setDictionary"
  27023. abstract="true" native="false" synchronized="false"
  27024. static="false" final="false" visibility="public"
  27025. deprecated="not deprecated">
  27026. <param name="b" type="byte[]"/>
  27027. <param name="off" type="int"/>
  27028. <param name="len" type="int"/>
  27029. <doc>
  27030. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  27031. is used when the history buffer can be predetermined.
  27032. @param b Dictionary data bytes
  27033. @param off Start offset
  27034. @param len Length]]>
  27035. </doc>
  27036. </method>
  27037. <method name="getBytesRead" return="long"
  27038. abstract="true" native="false" synchronized="false"
  27039. static="false" final="false" visibility="public"
  27040. deprecated="not deprecated">
  27041. <doc>
  27042. <![CDATA[Return number of uncompressed bytes input so far.
  27043. @return bytes read.]]>
  27044. </doc>
  27045. </method>
  27046. <method name="getBytesWritten" return="long"
  27047. abstract="true" native="false" synchronized="false"
  27048. static="false" final="false" visibility="public"
  27049. deprecated="not deprecated">
  27050. <doc>
  27051. <![CDATA[Return number of compressed bytes output so far.
  27052. @return bytes written.]]>
  27053. </doc>
  27054. </method>
  27055. <method name="finish"
  27056. abstract="true" native="false" synchronized="false"
  27057. static="false" final="false" visibility="public"
  27058. deprecated="not deprecated">
  27059. <doc>
  27060. <![CDATA[When called, indicates that compression should end
  27061. with the current contents of the input buffer.]]>
  27062. </doc>
  27063. </method>
  27064. <method name="finished" return="boolean"
  27065. abstract="true" native="false" synchronized="false"
  27066. static="false" final="false" visibility="public"
  27067. deprecated="not deprecated">
  27068. <doc>
  27069. <![CDATA[Returns true if the end of the compressed
  27070. data output stream has been reached.
  27071. @return <code>true</code> if the end of the compressed
  27072. data output stream has been reached.]]>
  27073. </doc>
  27074. </method>
  27075. <method name="compress" return="int"
  27076. abstract="true" native="false" synchronized="false"
  27077. static="false" final="false" visibility="public"
  27078. deprecated="not deprecated">
  27079. <param name="b" type="byte[]"/>
  27080. <param name="off" type="int"/>
  27081. <param name="len" type="int"/>
  27082. <exception name="IOException" type="java.io.IOException"/>
  27083. <doc>
  27084. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  27085. of bytes of compressed data. A return value of 0 indicates that
  27086. needsInput() should be called in order to determine if more input
  27087. data is required.
  27088. @param b Buffer for the compressed data
  27089. @param off Start offset of the data
  27090. @param len Size of the buffer
  27091. @return The actual number of bytes of compressed data.
  27092. @throws IOException raised on errors performing I/O.]]>
  27093. </doc>
  27094. </method>
  27095. <method name="reset"
  27096. abstract="true" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. <doc>
  27100. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  27101. </doc>
  27102. </method>
  27103. <method name="end"
  27104. abstract="true" native="false" synchronized="false"
  27105. static="false" final="false" visibility="public"
  27106. deprecated="not deprecated">
  27107. <doc>
  27108. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  27109. </doc>
  27110. </method>
  27111. <method name="reinit"
  27112. abstract="true" native="false" synchronized="false"
  27113. static="false" final="false" visibility="public"
  27114. deprecated="not deprecated">
  27115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27116. <doc>
  27117. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  27118. the given Configuration
  27119. @param conf Configuration from which new setting are fetched]]>
  27120. </doc>
  27121. </method>
  27122. <doc>
  27123. <![CDATA[Specification of a stream-based 'compressor' which can be
  27124. plugged into a {@link CompressionOutputStream} to compress data.
  27125. This is modelled after {@link java.util.zip.Deflater}]]>
  27126. </doc>
  27127. </interface>
  27128. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  27129. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  27130. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  27131. abstract="false"
  27132. static="false" final="false" visibility="public"
  27133. deprecated="not deprecated">
  27134. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. </constructor>
  27138. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  27139. static="false" final="false" visibility="public"
  27140. deprecated="not deprecated">
  27141. </constructor>
  27142. <constructor name="CompressorStream" type="java.io.OutputStream"
  27143. static="false" final="false" visibility="protected"
  27144. deprecated="not deprecated">
  27145. <doc>
  27146. <![CDATA[Allow derived classes to directly set the underlying stream.
  27147. @param out Underlying output stream.]]>
  27148. </doc>
  27149. </constructor>
  27150. <method name="write"
  27151. abstract="false" native="false" synchronized="false"
  27152. static="false" final="false" visibility="public"
  27153. deprecated="not deprecated">
  27154. <param name="b" type="byte[]"/>
  27155. <param name="off" type="int"/>
  27156. <param name="len" type="int"/>
  27157. <exception name="IOException" type="java.io.IOException"/>
  27158. </method>
  27159. <method name="compress"
  27160. abstract="false" native="false" synchronized="false"
  27161. static="false" final="false" visibility="protected"
  27162. deprecated="not deprecated">
  27163. <exception name="IOException" type="java.io.IOException"/>
  27164. </method>
  27165. <method name="finish"
  27166. abstract="false" native="false" synchronized="false"
  27167. static="false" final="false" visibility="public"
  27168. deprecated="not deprecated">
  27169. <exception name="IOException" type="java.io.IOException"/>
  27170. </method>
  27171. <method name="resetState"
  27172. abstract="false" native="false" synchronized="false"
  27173. static="false" final="false" visibility="public"
  27174. deprecated="not deprecated">
  27175. <exception name="IOException" type="java.io.IOException"/>
  27176. </method>
  27177. <method name="close"
  27178. abstract="false" native="false" synchronized="false"
  27179. static="false" final="false" visibility="public"
  27180. deprecated="not deprecated">
  27181. <exception name="IOException" type="java.io.IOException"/>
  27182. </method>
  27183. <method name="write"
  27184. abstract="false" native="false" synchronized="false"
  27185. static="false" final="false" visibility="public"
  27186. deprecated="not deprecated">
  27187. <param name="b" type="int"/>
  27188. <exception name="IOException" type="java.io.IOException"/>
  27189. </method>
  27190. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  27191. transient="false" volatile="false"
  27192. static="false" final="false" visibility="protected"
  27193. deprecated="not deprecated">
  27194. </field>
  27195. <field name="buffer" type="byte[]"
  27196. transient="false" volatile="false"
  27197. static="false" final="false" visibility="protected"
  27198. deprecated="not deprecated">
  27199. </field>
  27200. <field name="closed" type="boolean"
  27201. transient="false" volatile="false"
  27202. static="false" final="false" visibility="protected"
  27203. deprecated="not deprecated">
  27204. </field>
  27205. </class>
  27206. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  27207. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  27208. <interface name="Decompressor" abstract="true"
  27209. static="false" final="false" visibility="public"
  27210. deprecated="not deprecated">
  27211. <method name="setInput"
  27212. abstract="true" native="false" synchronized="false"
  27213. static="false" final="false" visibility="public"
  27214. deprecated="not deprecated">
  27215. <param name="b" type="byte[]"/>
  27216. <param name="off" type="int"/>
  27217. <param name="len" type="int"/>
  27218. <doc>
  27219. <![CDATA[Sets input data for decompression.
  27220. This should be called if and only if {@link #needsInput()} returns
  27221. <code>true</code> indicating that more input data is required.
  27222. (Both native and non-native versions of various Decompressors require
  27223. that the data passed in via <code>b[]</code> remain unmodified until
  27224. the caller is explicitly notified--via {@link #needsInput()}--that the
  27225. buffer may be safely modified. With this requirement, an extra
  27226. buffer-copy can be avoided.)
  27227. @param b Input data
  27228. @param off Start offset
  27229. @param len Length]]>
  27230. </doc>
  27231. </method>
  27232. <method name="needsInput" return="boolean"
  27233. abstract="true" native="false" synchronized="false"
  27234. static="false" final="false" visibility="public"
  27235. deprecated="not deprecated">
  27236. <doc>
  27237. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  27238. {@link #setInput(byte[], int, int)} should be called to
  27239. provide more input.
  27240. @return <code>true</code> if the input data buffer is empty and
  27241. {@link #setInput(byte[], int, int)} should be called in
  27242. order to provide more input.]]>
  27243. </doc>
  27244. </method>
  27245. <method name="setDictionary"
  27246. abstract="true" native="false" synchronized="false"
  27247. static="false" final="false" visibility="public"
  27248. deprecated="not deprecated">
  27249. <param name="b" type="byte[]"/>
  27250. <param name="off" type="int"/>
  27251. <param name="len" type="int"/>
  27252. <doc>
  27253. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  27254. is used when the history buffer can be predetermined.
  27255. @param b Dictionary data bytes
  27256. @param off Start offset
  27257. @param len Length]]>
  27258. </doc>
  27259. </method>
  27260. <method name="needsDictionary" return="boolean"
  27261. abstract="true" native="false" synchronized="false"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <doc>
  27265. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  27266. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  27267. </doc>
  27268. </method>
  27269. <method name="finished" return="boolean"
  27270. abstract="true" native="false" synchronized="false"
  27271. static="false" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. <doc>
  27274. <![CDATA[Returns <code>true</code> if the end of the decompressed
  27275. data output stream has been reached. Indicates a concatenated data stream
  27276. when finished() returns <code>true</code> and {@link #getRemaining()}
  27277. returns a positive value. finished() will be reset with the
  27278. {@link #reset()} method.
  27279. @return <code>true</code> if the end of the decompressed
  27280. data output stream has been reached.]]>
  27281. </doc>
  27282. </method>
  27283. <method name="decompress" return="int"
  27284. abstract="true" native="false" synchronized="false"
  27285. static="false" final="false" visibility="public"
  27286. deprecated="not deprecated">
  27287. <param name="b" type="byte[]"/>
  27288. <param name="off" type="int"/>
  27289. <param name="len" type="int"/>
  27290. <exception name="IOException" type="java.io.IOException"/>
  27291. <doc>
  27292. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  27293. of bytes of uncompressed data. A return value of 0 indicates that
  27294. {@link #needsInput()} should be called in order to determine if more
  27295. input data is required.
  27296. @param b Buffer for the uncompressed data
  27297. @param off Start offset of the data
  27298. @param len Size of the buffer
  27299. @return The actual number of bytes of uncompressed data.
  27300. @throws IOException raised on errors performing I/O.]]>
  27301. </doc>
  27302. </method>
  27303. <method name="getRemaining" return="int"
  27304. abstract="true" native="false" synchronized="false"
  27305. static="false" final="false" visibility="public"
  27306. deprecated="not deprecated">
  27307. <doc>
  27308. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  27309. Indicates a concatenated data stream if {@link #finished()} returns
  27310. <code>true</code> and getRemaining() returns a positive value. If
  27311. {@link #finished()} returns <code>true</code> and getRemaining() returns
  27312. a zero value, indicates that the end of data stream has been reached and
  27313. is not a concatenated data stream.
  27314. @return The number of bytes remaining in the compressed data buffer.]]>
  27315. </doc>
  27316. </method>
  27317. <method name="reset"
  27318. abstract="true" native="false" synchronized="false"
  27319. static="false" final="false" visibility="public"
  27320. deprecated="not deprecated">
  27321. <doc>
  27322. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  27323. input data can be processed. If {@link #finished()}} returns
  27324. <code>true</code> and {@link #getRemaining()} returns a positive value,
  27325. reset() is called before processing of the next data stream in the
  27326. concatenated data stream. {@link #finished()} will be reset and will
  27327. return <code>false</code> when reset() is called.]]>
  27328. </doc>
  27329. </method>
  27330. <method name="end"
  27331. abstract="true" native="false" synchronized="false"
  27332. static="false" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. <doc>
  27335. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  27336. </doc>
  27337. </method>
  27338. <doc>
  27339. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  27340. plugged into a {@link CompressionInputStream} to compress data.
  27341. This is modelled after {@link java.util.zip.Inflater}]]>
  27342. </doc>
  27343. </interface>
  27344. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  27345. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  27346. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  27347. abstract="false"
  27348. static="false" final="false" visibility="public"
  27349. deprecated="not deprecated">
  27350. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  27351. static="false" final="false" visibility="public"
  27352. deprecated="not deprecated">
  27353. <exception name="IOException" type="java.io.IOException"/>
  27354. </constructor>
  27355. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <exception name="IOException" type="java.io.IOException"/>
  27359. </constructor>
  27360. <constructor name="DecompressorStream" type="java.io.InputStream"
  27361. static="false" final="false" visibility="protected"
  27362. deprecated="not deprecated">
  27363. <exception name="IOException" type="java.io.IOException"/>
  27364. <doc>
  27365. <![CDATA[Allow derived classes to directly set the underlying stream.
  27366. @param in Underlying input stream.
  27367. @throws IOException raised on errors performing I/O.]]>
  27368. </doc>
  27369. </constructor>
  27370. <method name="read" return="int"
  27371. abstract="false" native="false" synchronized="false"
  27372. static="false" final="false" visibility="public"
  27373. deprecated="not deprecated">
  27374. <exception name="IOException" type="java.io.IOException"/>
  27375. </method>
  27376. <method name="read" return="int"
  27377. abstract="false" native="false" synchronized="false"
  27378. static="false" final="false" visibility="public"
  27379. deprecated="not deprecated">
  27380. <param name="b" type="byte[]"/>
  27381. <param name="off" type="int"/>
  27382. <param name="len" type="int"/>
  27383. <exception name="IOException" type="java.io.IOException"/>
  27384. </method>
  27385. <method name="decompress" return="int"
  27386. abstract="false" native="false" synchronized="false"
  27387. static="false" final="false" visibility="protected"
  27388. deprecated="not deprecated">
  27389. <param name="b" type="byte[]"/>
  27390. <param name="off" type="int"/>
  27391. <param name="len" type="int"/>
  27392. <exception name="IOException" type="java.io.IOException"/>
  27393. </method>
  27394. <method name="getCompressedData" return="int"
  27395. abstract="false" native="false" synchronized="false"
  27396. static="false" final="false" visibility="protected"
  27397. deprecated="not deprecated">
  27398. <exception name="IOException" type="java.io.IOException"/>
  27399. </method>
  27400. <method name="checkStream"
  27401. abstract="false" native="false" synchronized="false"
  27402. static="false" final="false" visibility="protected"
  27403. deprecated="not deprecated">
  27404. <exception name="IOException" type="java.io.IOException"/>
  27405. </method>
  27406. <method name="resetState"
  27407. abstract="false" native="false" synchronized="false"
  27408. static="false" final="false" visibility="public"
  27409. deprecated="not deprecated">
  27410. <exception name="IOException" type="java.io.IOException"/>
  27411. </method>
  27412. <method name="skip" return="long"
  27413. abstract="false" native="false" synchronized="false"
  27414. static="false" final="false" visibility="public"
  27415. deprecated="not deprecated">
  27416. <param name="n" type="long"/>
  27417. <exception name="IOException" type="java.io.IOException"/>
  27418. </method>
  27419. <method name="available" return="int"
  27420. abstract="false" native="false" synchronized="false"
  27421. static="false" final="false" visibility="public"
  27422. deprecated="not deprecated">
  27423. <exception name="IOException" type="java.io.IOException"/>
  27424. </method>
  27425. <method name="close"
  27426. abstract="false" native="false" synchronized="false"
  27427. static="false" final="false" visibility="public"
  27428. deprecated="not deprecated">
  27429. <exception name="IOException" type="java.io.IOException"/>
  27430. </method>
  27431. <method name="markSupported" return="boolean"
  27432. abstract="false" native="false" synchronized="false"
  27433. static="false" final="false" visibility="public"
  27434. deprecated="not deprecated">
  27435. </method>
  27436. <method name="mark"
  27437. abstract="false" native="false" synchronized="true"
  27438. static="false" final="false" visibility="public"
  27439. deprecated="not deprecated">
  27440. <param name="readlimit" type="int"/>
  27441. </method>
  27442. <method name="reset"
  27443. abstract="false" native="false" synchronized="true"
  27444. static="false" final="false" visibility="public"
  27445. deprecated="not deprecated">
  27446. <exception name="IOException" type="java.io.IOException"/>
  27447. </method>
  27448. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  27449. transient="false" volatile="false"
  27450. static="false" final="false" visibility="protected"
  27451. deprecated="not deprecated">
  27452. </field>
  27453. <field name="buffer" type="byte[]"
  27454. transient="false" volatile="false"
  27455. static="false" final="false" visibility="protected"
  27456. deprecated="not deprecated">
  27457. </field>
  27458. <field name="eof" type="boolean"
  27459. transient="false" volatile="false"
  27460. static="false" final="false" visibility="protected"
  27461. deprecated="not deprecated">
  27462. </field>
  27463. <field name="closed" type="boolean"
  27464. transient="false" volatile="false"
  27465. static="false" final="false" visibility="protected"
  27466. deprecated="not deprecated">
  27467. </field>
  27468. </class>
  27469. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  27470. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  27471. <class name="DefaultCodec" extends="java.lang.Object"
  27472. abstract="false"
  27473. static="false" final="false" visibility="public"
  27474. deprecated="not deprecated">
  27475. <implements name="org.apache.hadoop.conf.Configurable"/>
  27476. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27477. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  27478. <constructor name="DefaultCodec"
  27479. static="false" final="false" visibility="public"
  27480. deprecated="not deprecated">
  27481. </constructor>
  27482. <method name="setConf"
  27483. abstract="false" native="false" synchronized="false"
  27484. static="false" final="false" visibility="public"
  27485. deprecated="not deprecated">
  27486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27487. </method>
  27488. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27489. abstract="false" native="false" synchronized="false"
  27490. static="false" final="false" visibility="public"
  27491. deprecated="not deprecated">
  27492. </method>
  27493. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27494. abstract="false" native="false" synchronized="false"
  27495. static="false" final="false" visibility="public"
  27496. deprecated="not deprecated">
  27497. <param name="out" type="java.io.OutputStream"/>
  27498. <exception name="IOException" type="java.io.IOException"/>
  27499. </method>
  27500. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27501. abstract="false" native="false" synchronized="false"
  27502. static="false" final="false" visibility="public"
  27503. deprecated="not deprecated">
  27504. <param name="out" type="java.io.OutputStream"/>
  27505. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27506. <exception name="IOException" type="java.io.IOException"/>
  27507. </method>
  27508. <method name="getCompressorType" return="java.lang.Class"
  27509. abstract="false" native="false" synchronized="false"
  27510. static="false" final="false" visibility="public"
  27511. deprecated="not deprecated">
  27512. </method>
  27513. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27514. abstract="false" native="false" synchronized="false"
  27515. static="false" final="false" visibility="public"
  27516. deprecated="not deprecated">
  27517. </method>
  27518. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27519. abstract="false" native="false" synchronized="false"
  27520. static="false" final="false" visibility="public"
  27521. deprecated="not deprecated">
  27522. <param name="in" type="java.io.InputStream"/>
  27523. <exception name="IOException" type="java.io.IOException"/>
  27524. </method>
  27525. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27526. abstract="false" native="false" synchronized="false"
  27527. static="false" final="false" visibility="public"
  27528. deprecated="not deprecated">
  27529. <param name="in" type="java.io.InputStream"/>
  27530. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27531. <exception name="IOException" type="java.io.IOException"/>
  27532. </method>
  27533. <method name="getDecompressorType" return="java.lang.Class"
  27534. abstract="false" native="false" synchronized="false"
  27535. static="false" final="false" visibility="public"
  27536. deprecated="not deprecated">
  27537. </method>
  27538. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27539. abstract="false" native="false" synchronized="false"
  27540. static="false" final="false" visibility="public"
  27541. deprecated="not deprecated">
  27542. </method>
  27543. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27544. abstract="false" native="false" synchronized="false"
  27545. static="false" final="false" visibility="public"
  27546. deprecated="not deprecated">
  27547. <doc>
  27548. <![CDATA[{@inheritDoc}]]>
  27549. </doc>
  27550. </method>
  27551. <method name="getDefaultExtension" return="java.lang.String"
  27552. abstract="false" native="false" synchronized="false"
  27553. static="false" final="false" visibility="public"
  27554. deprecated="not deprecated">
  27555. </method>
  27556. </class>
  27557. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  27558. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  27559. <interface name="DirectDecompressionCodec" abstract="true"
  27560. static="false" final="false" visibility="public"
  27561. deprecated="not deprecated">
  27562. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27563. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27564. abstract="true" native="false" synchronized="false"
  27565. static="false" final="false" visibility="public"
  27566. deprecated="not deprecated">
  27567. <doc>
  27568. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  27569. @return a new direct decompressor for use by this codec]]>
  27570. </doc>
  27571. </method>
  27572. <doc>
  27573. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  27574. </doc>
  27575. </interface>
  27576. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  27577. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  27578. <interface name="DirectDecompressor" abstract="true"
  27579. static="false" final="false" visibility="public"
  27580. deprecated="not deprecated">
  27581. <method name="decompress"
  27582. abstract="true" native="false" synchronized="false"
  27583. static="false" final="false" visibility="public"
  27584. deprecated="not deprecated">
  27585. <param name="src" type="java.nio.ByteBuffer"/>
  27586. <param name="dst" type="java.nio.ByteBuffer"/>
  27587. <exception name="IOException" type="java.io.IOException"/>
  27588. </method>
  27589. <doc>
  27590. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  27591. </doc>
  27592. </interface>
  27593. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  27594. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  27595. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  27596. abstract="false"
  27597. static="false" final="false" visibility="public"
  27598. deprecated="not deprecated">
  27599. <constructor name="GzipCodec"
  27600. static="false" final="false" visibility="public"
  27601. deprecated="not deprecated">
  27602. </constructor>
  27603. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27604. abstract="false" native="false" synchronized="false"
  27605. static="false" final="false" visibility="public"
  27606. deprecated="not deprecated">
  27607. <param name="out" type="java.io.OutputStream"/>
  27608. <exception name="IOException" type="java.io.IOException"/>
  27609. </method>
  27610. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27611. abstract="false" native="false" synchronized="false"
  27612. static="false" final="false" visibility="public"
  27613. deprecated="not deprecated">
  27614. <param name="out" type="java.io.OutputStream"/>
  27615. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27616. <exception name="IOException" type="java.io.IOException"/>
  27617. </method>
  27618. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27619. abstract="false" native="false" synchronized="false"
  27620. static="false" final="false" visibility="public"
  27621. deprecated="not deprecated">
  27622. </method>
  27623. <method name="getCompressorType" return="java.lang.Class"
  27624. abstract="false" native="false" synchronized="false"
  27625. static="false" final="false" visibility="public"
  27626. deprecated="not deprecated">
  27627. </method>
  27628. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27629. abstract="false" native="false" synchronized="false"
  27630. static="false" final="false" visibility="public"
  27631. deprecated="not deprecated">
  27632. <param name="in" type="java.io.InputStream"/>
  27633. <exception name="IOException" type="java.io.IOException"/>
  27634. </method>
  27635. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27636. abstract="false" native="false" synchronized="false"
  27637. static="false" final="false" visibility="public"
  27638. deprecated="not deprecated">
  27639. <param name="in" type="java.io.InputStream"/>
  27640. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27641. <exception name="IOException" type="java.io.IOException"/>
  27642. </method>
  27643. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27644. abstract="false" native="false" synchronized="false"
  27645. static="false" final="false" visibility="public"
  27646. deprecated="not deprecated">
  27647. </method>
  27648. <method name="getDecompressorType" return="java.lang.Class"
  27649. abstract="false" native="false" synchronized="false"
  27650. static="false" final="false" visibility="public"
  27651. deprecated="not deprecated">
  27652. </method>
  27653. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27654. abstract="false" native="false" synchronized="false"
  27655. static="false" final="false" visibility="public"
  27656. deprecated="not deprecated">
  27657. </method>
  27658. <method name="getDefaultExtension" return="java.lang.String"
  27659. abstract="false" native="false" synchronized="false"
  27660. static="false" final="false" visibility="public"
  27661. deprecated="not deprecated">
  27662. </method>
  27663. <doc>
  27664. <![CDATA[This class creates gzip compressors/decompressors.]]>
  27665. </doc>
  27666. </class>
  27667. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  27668. <!-- start class org.apache.hadoop.io.compress.PassthroughCodec -->
  27669. <class name="PassthroughCodec" extends="java.lang.Object"
  27670. abstract="false"
  27671. static="false" final="false" visibility="public"
  27672. deprecated="not deprecated">
  27673. <implements name="org.apache.hadoop.conf.Configurable"/>
  27674. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27675. <constructor name="PassthroughCodec"
  27676. static="false" final="false" visibility="public"
  27677. deprecated="not deprecated">
  27678. </constructor>
  27679. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27680. abstract="false" native="false" synchronized="false"
  27681. static="false" final="false" visibility="public"
  27682. deprecated="not deprecated">
  27683. </method>
  27684. <method name="setConf"
  27685. abstract="false" native="false" synchronized="false"
  27686. static="false" final="false" visibility="public"
  27687. deprecated="not deprecated">
  27688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27689. </method>
  27690. <method name="getDefaultExtension" return="java.lang.String"
  27691. abstract="false" native="false" synchronized="false"
  27692. static="false" final="false" visibility="public"
  27693. deprecated="not deprecated">
  27694. </method>
  27695. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27696. abstract="false" native="false" synchronized="false"
  27697. static="false" final="false" visibility="public"
  27698. deprecated="not deprecated">
  27699. <param name="out" type="java.io.OutputStream"/>
  27700. <exception name="IOException" type="java.io.IOException"/>
  27701. </method>
  27702. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27703. abstract="false" native="false" synchronized="false"
  27704. static="false" final="false" visibility="public"
  27705. deprecated="not deprecated">
  27706. <param name="out" type="java.io.OutputStream"/>
  27707. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27708. <exception name="IOException" type="java.io.IOException"/>
  27709. </method>
  27710. <method name="getCompressorType" return="java.lang.Class"
  27711. abstract="false" native="false" synchronized="false"
  27712. static="false" final="false" visibility="public"
  27713. deprecated="not deprecated">
  27714. </method>
  27715. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27716. abstract="false" native="false" synchronized="false"
  27717. static="false" final="false" visibility="public"
  27718. deprecated="not deprecated">
  27719. </method>
  27720. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27721. abstract="false" native="false" synchronized="false"
  27722. static="false" final="false" visibility="public"
  27723. deprecated="not deprecated">
  27724. <param name="in" type="java.io.InputStream"/>
  27725. <exception name="IOException" type="java.io.IOException"/>
  27726. </method>
  27727. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27728. abstract="false" native="false" synchronized="false"
  27729. static="false" final="false" visibility="public"
  27730. deprecated="not deprecated">
  27731. <param name="in" type="java.io.InputStream"/>
  27732. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27733. <exception name="IOException" type="java.io.IOException"/>
  27734. </method>
  27735. <method name="getDecompressorType" return="java.lang.Class"
  27736. abstract="false" native="false" synchronized="false"
  27737. static="false" final="false" visibility="public"
  27738. deprecated="not deprecated">
  27739. </method>
  27740. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27741. abstract="false" native="false" synchronized="false"
  27742. static="false" final="false" visibility="public"
  27743. deprecated="not deprecated">
  27744. </method>
  27745. <field name="CLASSNAME" type="java.lang.String"
  27746. transient="false" volatile="false"
  27747. static="true" final="true" visibility="public"
  27748. deprecated="not deprecated">
  27749. <doc>
  27750. <![CDATA[Classname of the codec: {@value}.]]>
  27751. </doc>
  27752. </field>
  27753. <field name="OPT_EXTENSION" type="java.lang.String"
  27754. transient="false" volatile="false"
  27755. static="true" final="true" visibility="public"
  27756. deprecated="not deprecated">
  27757. <doc>
  27758. <![CDATA[Option to control the extension of the code: {@value}.]]>
  27759. </doc>
  27760. </field>
  27761. <field name="DEFAULT_EXTENSION" type="java.lang.String"
  27762. transient="false" volatile="false"
  27763. static="true" final="true" visibility="public"
  27764. deprecated="not deprecated">
  27765. <doc>
  27766. <![CDATA[This default extension is here so that if no extension has been defined,
  27767. some value is still returned: {@value}..]]>
  27768. </doc>
  27769. </field>
  27770. <doc>
  27771. <![CDATA[This is a special codec which does not transform the output.
  27772. It can be declared as a codec in the option "io.compression.codecs",
  27773. and then it will declare that it supports the file extension
  27774. set in {@link #OPT_EXTENSION}.
  27775. This allows decompression to be disabled on a job, even when there is
  27776. a registered/discoverable decompression codec for a file extension
  27777. -without having to change the standard codec binding mechanism.
  27778. For example, to disable decompression for a gzipped files, set the
  27779. options
  27780. <pre>
  27781. io.compression.codecs = org.apache.hadoop.io.compress.PassthroughCodec
  27782. io.compress.passthrough.extension = .gz
  27783. </pre>
  27784. <i>Note:</i> this is not a Splittable codec: it doesn't know the
  27785. capabilities of the passed in stream. It should be possible to
  27786. extend this in a subclass: the inner classes are marked as protected
  27787. to enable this. <i>Do not retrofit splitting to this class.</i>.]]>
  27788. </doc>
  27789. </class>
  27790. <!-- end class org.apache.hadoop.io.compress.PassthroughCodec -->
  27791. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  27792. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  27793. abstract="true"
  27794. static="false" final="false" visibility="public"
  27795. deprecated="not deprecated">
  27796. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  27797. static="false" final="false" visibility="public"
  27798. deprecated="not deprecated">
  27799. <exception name="IOException" type="java.io.IOException"/>
  27800. </constructor>
  27801. <method name="setStart"
  27802. abstract="false" native="false" synchronized="false"
  27803. static="false" final="false" visibility="protected"
  27804. deprecated="not deprecated">
  27805. <param name="start" type="long"/>
  27806. </method>
  27807. <method name="setEnd"
  27808. abstract="false" native="false" synchronized="false"
  27809. static="false" final="false" visibility="protected"
  27810. deprecated="not deprecated">
  27811. <param name="end" type="long"/>
  27812. </method>
  27813. <method name="getAdjustedStart" return="long"
  27814. abstract="false" native="false" synchronized="false"
  27815. static="false" final="false" visibility="public"
  27816. deprecated="not deprecated">
  27817. <doc>
  27818. <![CDATA[After calling createInputStream, the values of start or end
  27819. might change. So this method can be used to get the new value of start.
  27820. @return The changed value of start]]>
  27821. </doc>
  27822. </method>
  27823. <method name="getAdjustedEnd" return="long"
  27824. abstract="false" native="false" synchronized="false"
  27825. static="false" final="false" visibility="public"
  27826. deprecated="not deprecated">
  27827. <doc>
  27828. <![CDATA[After calling createInputStream, the values of start or end
  27829. might change. So this method can be used to get the new value of end.
  27830. @return The changed value of end]]>
  27831. </doc>
  27832. </method>
  27833. <doc>
  27834. <![CDATA[An InputStream covering a range of compressed data. The start and end
  27835. offsets requested by a client may be modified by the codec to fit block
  27836. boundaries or other algorithm-dependent requirements.]]>
  27837. </doc>
  27838. </class>
  27839. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  27840. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  27841. <interface name="SplittableCompressionCodec" abstract="true"
  27842. static="false" final="false" visibility="public"
  27843. deprecated="not deprecated">
  27844. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27845. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  27846. abstract="true" native="false" synchronized="false"
  27847. static="false" final="false" visibility="public"
  27848. deprecated="not deprecated">
  27849. <param name="seekableIn" type="java.io.InputStream"/>
  27850. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27851. <param name="start" type="long"/>
  27852. <param name="end" type="long"/>
  27853. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  27854. <exception name="IOException" type="java.io.IOException"/>
  27855. <doc>
  27856. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  27857. the codecs wants the ability to work with the underlying stream positions.
  27858. @param decompressor decompressor.
  27859. @param seekableIn The seekable input stream (seeks in compressed data)
  27860. @param start The start offset into the compressed stream. May be changed
  27861. by the underlying codec.
  27862. @param end The end offset into the compressed stream. May be changed by
  27863. the underlying codec.
  27864. @param readMode Controls whether stream position is reported continuously
  27865. from the compressed stream only only at block boundaries.
  27866. @return a stream to read uncompressed bytes from
  27867. @throws IOException raised on errors performing I/O.]]>
  27868. </doc>
  27869. </method>
  27870. <doc>
  27871. <![CDATA[This interface is meant to be implemented by those compression codecs
  27872. which are capable to compress / de-compress a stream starting at any
  27873. arbitrary position.
  27874. Especially the process of de-compressing a stream starting at some arbitrary
  27875. position is challenging. Most of the codecs are only able to successfully
  27876. de-compress a stream, if they start from the very beginning till the end.
  27877. One of the reasons is the stored state at the beginning of the stream which
  27878. is crucial for de-compression.
  27879. Yet there are few codecs which do not save the whole state at the beginning
  27880. of the stream and hence can be used to de-compress stream starting at any
  27881. arbitrary points. This interface is meant to be used by such codecs. Such
  27882. codecs are highly valuable, especially in the context of Hadoop, because
  27883. an input compressed file can be split and hence can be worked on by multiple
  27884. machines in parallel.]]>
  27885. </doc>
  27886. </interface>
  27887. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  27888. </package>
  27889. <package name="org.apache.hadoop.io.erasurecode">
  27890. <!-- start class org.apache.hadoop.io.erasurecode.ECSchema -->
  27891. <class name="ECSchema" extends="java.lang.Object"
  27892. abstract="false"
  27893. static="false" final="true" visibility="public"
  27894. deprecated="not deprecated">
  27895. <implements name="java.io.Serializable"/>
  27896. <constructor name="ECSchema" type="java.util.Map"
  27897. static="false" final="false" visibility="public"
  27898. deprecated="not deprecated">
  27899. <doc>
  27900. <![CDATA[Constructor with schema name and provided all options. Note the options may
  27901. contain additional information for the erasure codec to interpret further.
  27902. @param allOptions all schema options]]>
  27903. </doc>
  27904. </constructor>
  27905. <constructor name="ECSchema" type="java.lang.String, int, int"
  27906. static="false" final="false" visibility="public"
  27907. deprecated="not deprecated">
  27908. <doc>
  27909. <![CDATA[Constructor with key parameters provided.
  27910. @param codecName codec name
  27911. @param numDataUnits number of data units used in the schema
  27912. @param numParityUnits number os parity units used in the schema]]>
  27913. </doc>
  27914. </constructor>
  27915. <constructor name="ECSchema" type="java.lang.String, int, int, java.util.Map"
  27916. static="false" final="false" visibility="public"
  27917. deprecated="not deprecated">
  27918. <doc>
  27919. <![CDATA[Constructor with key parameters provided. Note the extraOptions may contain
  27920. additional information for the erasure codec to interpret further.
  27921. @param codecName codec name
  27922. @param numDataUnits number of data units used in the schema
  27923. @param numParityUnits number os parity units used in the schema
  27924. @param extraOptions extra options to configure the codec]]>
  27925. </doc>
  27926. </constructor>
  27927. <method name="getCodecName" return="java.lang.String"
  27928. abstract="false" native="false" synchronized="false"
  27929. static="false" final="false" visibility="public"
  27930. deprecated="not deprecated">
  27931. <doc>
  27932. <![CDATA[Get the codec name
  27933. @return codec name]]>
  27934. </doc>
  27935. </method>
  27936. <method name="getExtraOptions" return="java.util.Map"
  27937. abstract="false" native="false" synchronized="false"
  27938. static="false" final="false" visibility="public"
  27939. deprecated="not deprecated">
  27940. <doc>
  27941. <![CDATA[Get extra options specific to a erasure code.
  27942. @return extra options]]>
  27943. </doc>
  27944. </method>
  27945. <method name="getNumDataUnits" return="int"
  27946. abstract="false" native="false" synchronized="false"
  27947. static="false" final="false" visibility="public"
  27948. deprecated="not deprecated">
  27949. <doc>
  27950. <![CDATA[Get required data units count in a coding group
  27951. @return count of data units]]>
  27952. </doc>
  27953. </method>
  27954. <method name="getNumParityUnits" return="int"
  27955. abstract="false" native="false" synchronized="false"
  27956. static="false" final="false" visibility="public"
  27957. deprecated="not deprecated">
  27958. <doc>
  27959. <![CDATA[Get required parity units count in a coding group
  27960. @return count of parity units]]>
  27961. </doc>
  27962. </method>
  27963. <method name="toString" return="java.lang.String"
  27964. abstract="false" native="false" synchronized="false"
  27965. static="false" final="false" visibility="public"
  27966. deprecated="not deprecated">
  27967. <doc>
  27968. <![CDATA[Make a meaningful string representation for log output.
  27969. @return string representation]]>
  27970. </doc>
  27971. </method>
  27972. <method name="equals" return="boolean"
  27973. abstract="false" native="false" synchronized="false"
  27974. static="false" final="false" visibility="public"
  27975. deprecated="not deprecated">
  27976. <param name="o" type="java.lang.Object"/>
  27977. </method>
  27978. <method name="hashCode" return="int"
  27979. abstract="false" native="false" synchronized="false"
  27980. static="false" final="false" visibility="public"
  27981. deprecated="not deprecated">
  27982. </method>
  27983. <field name="NUM_DATA_UNITS_KEY" type="java.lang.String"
  27984. transient="false" volatile="false"
  27985. static="true" final="true" visibility="public"
  27986. deprecated="not deprecated">
  27987. </field>
  27988. <field name="NUM_PARITY_UNITS_KEY" type="java.lang.String"
  27989. transient="false" volatile="false"
  27990. static="true" final="true" visibility="public"
  27991. deprecated="not deprecated">
  27992. </field>
  27993. <field name="CODEC_NAME_KEY" type="java.lang.String"
  27994. transient="false" volatile="false"
  27995. static="true" final="true" visibility="public"
  27996. deprecated="not deprecated">
  27997. </field>
  27998. <doc>
  27999. <![CDATA[Erasure coding schema to housekeeper relevant information.]]>
  28000. </doc>
  28001. </class>
  28002. <!-- end class org.apache.hadoop.io.erasurecode.ECSchema -->
  28003. </package>
  28004. <package name="org.apache.hadoop.io.erasurecode.coder.util">
  28005. </package>
  28006. <package name="org.apache.hadoop.io.erasurecode.grouper">
  28007. </package>
  28008. <package name="org.apache.hadoop.io.file.tfile">
  28009. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  28010. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  28011. abstract="false"
  28012. static="false" final="false" visibility="public"
  28013. deprecated="not deprecated">
  28014. <doc>
  28015. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  28016. </doc>
  28017. </class>
  28018. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  28019. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  28020. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  28021. abstract="false"
  28022. static="false" final="false" visibility="public"
  28023. deprecated="not deprecated">
  28024. <doc>
  28025. <![CDATA[Exception - No such Meta Block with the given name.]]>
  28026. </doc>
  28027. </class>
  28028. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  28029. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  28030. <interface name="RawComparable" abstract="true"
  28031. static="false" final="false" visibility="public"
  28032. deprecated="not deprecated">
  28033. <method name="buffer" return="byte[]"
  28034. abstract="true" native="false" synchronized="false"
  28035. static="false" final="false" visibility="public"
  28036. deprecated="not deprecated">
  28037. <doc>
  28038. <![CDATA[Get the underlying byte array.
  28039. @return The underlying byte array.]]>
  28040. </doc>
  28041. </method>
  28042. <method name="offset" return="int"
  28043. abstract="true" native="false" synchronized="false"
  28044. static="false" final="false" visibility="public"
  28045. deprecated="not deprecated">
  28046. <doc>
  28047. <![CDATA[Get the offset of the first byte in the byte array.
  28048. @return The offset of the first byte in the byte array.]]>
  28049. </doc>
  28050. </method>
  28051. <method name="size" return="int"
  28052. abstract="true" native="false" synchronized="false"
  28053. static="false" final="false" visibility="public"
  28054. deprecated="not deprecated">
  28055. <doc>
  28056. <![CDATA[Get the size of the byte range in the byte array.
  28057. @return The size of the byte range in the byte array.]]>
  28058. </doc>
  28059. </method>
  28060. <doc>
  28061. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  28062. This is useful in places where we need a single object reference to specify a
  28063. range of bytes in a byte array, such as {@link Comparable} or
  28064. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  28065. The actual comparison among RawComparable's requires an external
  28066. RawComparator and it is applications' responsibility to ensure two
  28067. RawComparable are supposed to be semantically comparable with the same
  28068. RawComparator.]]>
  28069. </doc>
  28070. </interface>
  28071. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  28072. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  28073. <class name="TFile" extends="java.lang.Object"
  28074. abstract="false"
  28075. static="false" final="false" visibility="public"
  28076. deprecated="not deprecated">
  28077. <method name="makeComparator" return="java.util.Comparator"
  28078. abstract="false" native="false" synchronized="false"
  28079. static="true" final="false" visibility="public"
  28080. deprecated="not deprecated">
  28081. <param name="name" type="java.lang.String"/>
  28082. <doc>
  28083. <![CDATA[Make a raw comparator from a string name.
  28084. @param name
  28085. Comparator name
  28086. @return A RawComparable comparator.]]>
  28087. </doc>
  28088. </method>
  28089. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  28090. abstract="false" native="false" synchronized="false"
  28091. static="true" final="false" visibility="public"
  28092. deprecated="not deprecated">
  28093. <doc>
  28094. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  28095. TFile.Writer.
  28096. @return Array of strings, each represents a supported compression
  28097. algorithm. Currently, the following compression algorithms are
  28098. supported.
  28099. <ul>
  28100. <li>"none" - No compression.
  28101. <li>"lzo" - LZO compression.
  28102. <li>"gz" - GZIP compression.
  28103. </ul>]]>
  28104. </doc>
  28105. </method>
  28106. <method name="main"
  28107. abstract="false" native="false" synchronized="false"
  28108. static="true" final="false" visibility="public"
  28109. deprecated="not deprecated">
  28110. <param name="args" type="java.lang.String[]"/>
  28111. <doc>
  28112. <![CDATA[Dumping the TFile information.
  28113. @param args
  28114. A list of TFile paths.]]>
  28115. </doc>
  28116. </method>
  28117. <field name="COMPRESSION_GZ" type="java.lang.String"
  28118. transient="false" volatile="false"
  28119. static="true" final="true" visibility="public"
  28120. deprecated="not deprecated">
  28121. <doc>
  28122. <![CDATA[compression: gzip]]>
  28123. </doc>
  28124. </field>
  28125. <field name="COMPRESSION_LZO" type="java.lang.String"
  28126. transient="false" volatile="false"
  28127. static="true" final="true" visibility="public"
  28128. deprecated="not deprecated">
  28129. <doc>
  28130. <![CDATA[compression: lzo]]>
  28131. </doc>
  28132. </field>
  28133. <field name="COMPRESSION_NONE" type="java.lang.String"
  28134. transient="false" volatile="false"
  28135. static="true" final="true" visibility="public"
  28136. deprecated="not deprecated">
  28137. <doc>
  28138. <![CDATA[compression: none]]>
  28139. </doc>
  28140. </field>
  28141. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  28142. transient="false" volatile="false"
  28143. static="true" final="true" visibility="public"
  28144. deprecated="not deprecated">
  28145. <doc>
  28146. <![CDATA[comparator: memcmp]]>
  28147. </doc>
  28148. </field>
  28149. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  28150. transient="false" volatile="false"
  28151. static="true" final="true" visibility="public"
  28152. deprecated="not deprecated">
  28153. <doc>
  28154. <![CDATA[comparator prefix: java class]]>
  28155. </doc>
  28156. </field>
  28157. <doc>
  28158. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  28159. bytes. Keys are restricted to 64KB, value length is not restricted
  28160. (practically limited to the available disk storage). TFile further provides
  28161. the following features:
  28162. <ul>
  28163. <li>Block Compression.
  28164. <li>Named meta data blocks.
  28165. <li>Sorted or unsorted keys.
  28166. <li>Seek by key or by file offset.
  28167. </ul>
  28168. The memory footprint of a TFile includes the following:
  28169. <ul>
  28170. <li>Some constant overhead of reading or writing a compressed block.
  28171. <ul>
  28172. <li>Each compressed block requires one compression/decompression codec for
  28173. I/O.
  28174. <li>Temporary space to buffer the key.
  28175. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  28176. chunk encoded, so that we buffer at most one chunk of user data. By default,
  28177. the chunk buffer is 1MB. Reading chunked value does not require additional
  28178. memory.
  28179. </ul>
  28180. <li>TFile index, which is proportional to the total number of Data Blocks.
  28181. The total amount of memory needed to hold the index can be estimated as
  28182. (56+AvgKeySize)*NumBlocks.
  28183. <li>MetaBlock index, which is proportional to the total number of Meta
  28184. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  28185. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  28186. </ul>
  28187. <p>
  28188. The behavior of TFile can be customized by the following variables through
  28189. Configuration:
  28190. <ul>
  28191. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  28192. to 1MB. Values of the length less than the chunk size is guaranteed to have
  28193. known value length in read time (See
  28194. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  28195. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  28196. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  28197. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  28198. FSDataInputStream. Integer (in bytes). Default to 256KB.
  28199. </ul>
  28200. <p>
  28201. Suggestions on performance optimization.
  28202. <ul>
  28203. <li>Minimum block size. We recommend a setting of minimum block size between
  28204. 256KB to 1MB for general usage. Larger block size is preferred if files are
  28205. primarily for sequential access. However, it would lead to inefficient random
  28206. access (because there are more data to decompress). Smaller blocks are good
  28207. for random access, but require more memory to hold the block index, and may
  28208. be slower to create (because we must flush the compressor stream at the
  28209. conclusion of each data block, which leads to an FS I/O flush). Further, due
  28210. to the internal caching in Compression codec, the smallest possible block
  28211. size would be around 20KB-30KB.
  28212. <li>The current implementation does not offer true multi-threading for
  28213. reading. The implementation uses FSDataInputStream seek()+read(), which is
  28214. shown to be much faster than positioned-read call in single thread mode.
  28215. However, it also means that if multiple threads attempt to access the same
  28216. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  28217. sequentially even if they access different DFS blocks.
  28218. <li>Compression codec. Use "none" if the data is not very compressable (by
  28219. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  28220. as the starting point for experimenting. "gz" overs slightly better
  28221. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  28222. decompress, comparing to "lzo".
  28223. <li>File system buffering, if the underlying FSDataInputStream and
  28224. FSDataOutputStream is already adequately buffered; or if applications
  28225. reads/writes keys and values in large buffers, we can reduce the sizes of
  28226. input/output buffering in TFile layer by setting the configuration parameters
  28227. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  28228. </ul>
  28229. Some design rationale behind TFile can be found at <a
  28230. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  28231. </doc>
  28232. </class>
  28233. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  28234. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  28235. <class name="Utils" extends="java.lang.Object"
  28236. abstract="false"
  28237. static="false" final="true" visibility="public"
  28238. deprecated="not deprecated">
  28239. <method name="writeVInt"
  28240. abstract="false" native="false" synchronized="false"
  28241. static="true" final="false" visibility="public"
  28242. deprecated="not deprecated">
  28243. <param name="out" type="java.io.DataOutput"/>
  28244. <param name="n" type="int"/>
  28245. <exception name="IOException" type="java.io.IOException"/>
  28246. <doc>
  28247. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  28248. <code>Utils#writeVLong(out, n)</code>.
  28249. @param out
  28250. output stream
  28251. @param n
  28252. The integer to be encoded
  28253. @throws IOException raised on errors performing I/O.
  28254. @see Utils#writeVLong(DataOutput, long)]]>
  28255. </doc>
  28256. </method>
  28257. <method name="writeVLong"
  28258. abstract="false" native="false" synchronized="false"
  28259. static="true" final="false" visibility="public"
  28260. deprecated="not deprecated">
  28261. <param name="out" type="java.io.DataOutput"/>
  28262. <param name="n" type="long"/>
  28263. <exception name="IOException" type="java.io.IOException"/>
  28264. <doc>
  28265. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  28266. <ul>
  28267. <li>if n in [-32, 127): encode in one byte with the actual value.
  28268. Otherwise,
  28269. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  28270. byte[1]=n&amp;0xff. Otherwise,
  28271. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  28272. 88; byte[1]=(n&gt;&gt;8)&amp;0xff; byte[2]=n&amp;0xff. Otherwise,
  28273. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  28274. byte[1] = (n&gt;&gt;16)&amp;0xff; byte[2] = (n&gt;&gt;8)&amp;0xff;
  28275. byte[3]=n&amp;0xff.
  28276. Otherwise:
  28277. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  28278. (n&gt;&gt;24)&amp;0xff; byte[2]=(n&gt;&gt;16)&amp;0xff;
  28279. byte[3]=(n&gt;&gt;8)&amp;0xff; byte[4]=n&amp;0xff;
  28280. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  28281. (n&gt;&gt;32)&amp;0xff; byte[2]=(n&gt;&gt;24)&amp;0xff;
  28282. byte[3]=(n&gt;&gt;16)&amp;0xff; byte[4]=(n&gt;&gt;8)&amp;0xff;
  28283. byte[5]=n&amp;0xff
  28284. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  28285. (n&gt;&gt;40)&amp;0xff; byte[2]=(n&gt;&gt;32)&amp;0xff;
  28286. byte[3]=(n&gt;&gt;24)&amp;0xff; byte[4]=(n&gt;&gt;16)&amp;0xff;
  28287. byte[5]=(n&gt;&gt;8)&amp;0xff; byte[6]=n&amp;0xff;
  28288. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  28289. (n&gt;&gt;48)&amp;0xff; byte[2] = (n&gt;&gt;40)&amp;0xff;
  28290. byte[3]=(n&gt;&gt;32)&amp;0xff; byte[4]=(n&gt;&gt;24)&amp;0xff; byte[5]=
  28291. (n&gt;&gt;16)&amp;0xff; byte[6]=(n&gt;&gt;8)&amp;0xff; byte[7]=n&amp;0xff;
  28292. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  28293. (n&gt;&gt;54)&amp;0xff; byte[2] = (n&gt;&gt;48)&amp;0xff;
  28294. byte[3] = (n&gt;&gt;40)&amp;0xff; byte[4]=(n&gt;&gt;32)&amp;0xff;
  28295. byte[5]=(n&gt;&gt;24)&amp;0xff; byte[6]=(n&gt;&gt;16)&amp;0xff; byte[7]=
  28296. (n&gt;&gt;8)&amp;0xff; byte[8]=n&amp;0xff;
  28297. </ul>
  28298. @param out
  28299. output stream
  28300. @param n
  28301. the integer number
  28302. @throws IOException raised on errors performing I/O.]]>
  28303. </doc>
  28304. </method>
  28305. <method name="readVInt" return="int"
  28306. abstract="false" native="false" synchronized="false"
  28307. static="true" final="false" visibility="public"
  28308. deprecated="not deprecated">
  28309. <param name="in" type="java.io.DataInput"/>
  28310. <exception name="IOException" type="java.io.IOException"/>
  28311. <doc>
  28312. <![CDATA[Decoding the variable-length integer. Synonymous to
  28313. <code>(int)Utils#readVLong(in)</code>.
  28314. @param in
  28315. input stream
  28316. @return the decoded integer
  28317. @throws IOException raised on errors performing I/O.
  28318. @see Utils#readVLong(DataInput)]]>
  28319. </doc>
  28320. </method>
  28321. <method name="readVLong" return="long"
  28322. abstract="false" native="false" synchronized="false"
  28323. static="true" final="false" visibility="public"
  28324. deprecated="not deprecated">
  28325. <param name="in" type="java.io.DataInput"/>
  28326. <exception name="IOException" type="java.io.IOException"/>
  28327. <doc>
  28328. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  28329. is FB, and the following bytes are NB[*].
  28330. <ul>
  28331. <li>if (FB &gt;= -32), return (long)FB;
  28332. <li>if (FB in [-72, -33]), return (FB+52)&lt;&lt;8 + NB[0]&amp;0xff;
  28333. <li>if (FB in [-104, -73]), return (FB+88)&lt;&lt;16 +
  28334. (NB[0]&amp;0xff)&lt;&lt;8 + NB[1]&amp;0xff;
  28335. <li>if (FB in [-120, -105]), return (FB+112)&lt;&lt;24 + (NB[0]&amp;0xff)
  28336. &lt;&lt;16 + (NB[1]&amp;0xff)&lt;&lt;8 + NB[2]&amp;0xff;
  28337. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  28338. big-endian integer.
  28339. </ul>
  28340. @param in
  28341. input stream
  28342. @return the decoded long integer.
  28343. @throws IOException raised on errors performing I/O.]]>
  28344. </doc>
  28345. </method>
  28346. <method name="writeString"
  28347. abstract="false" native="false" synchronized="false"
  28348. static="true" final="false" visibility="public"
  28349. deprecated="not deprecated">
  28350. <param name="out" type="java.io.DataOutput"/>
  28351. <param name="s" type="java.lang.String"/>
  28352. <exception name="IOException" type="java.io.IOException"/>
  28353. <doc>
  28354. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  28355. @param out out.
  28356. @param s s.
  28357. @throws IOException raised on errors performing I/O.]]>
  28358. </doc>
  28359. </method>
  28360. <method name="readString" return="java.lang.String"
  28361. abstract="false" native="false" synchronized="false"
  28362. static="true" final="false" visibility="public"
  28363. deprecated="not deprecated">
  28364. <param name="in" type="java.io.DataInput"/>
  28365. <exception name="IOException" type="java.io.IOException"/>
  28366. <doc>
  28367. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  28368. @param in
  28369. The input stream.
  28370. @return The string
  28371. @throws IOException raised on errors performing I/O.]]>
  28372. </doc>
  28373. </method>
  28374. <method name="lowerBound" return="int"
  28375. abstract="false" native="false" synchronized="false"
  28376. static="true" final="false" visibility="public"
  28377. deprecated="not deprecated">
  28378. <param name="list" type="java.util.List"/>
  28379. <param name="key" type="T"/>
  28380. <param name="cmp" type="java.util.Comparator"/>
  28381. <doc>
  28382. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  28383. that compares greater than or equal to key.
  28384. @param <T>
  28385. Type of the input key.
  28386. @param list
  28387. The list
  28388. @param key
  28389. The input key.
  28390. @param cmp
  28391. Comparator for the key.
  28392. @return The index to the desired element if it exists; or list.size()
  28393. otherwise.]]>
  28394. </doc>
  28395. </method>
  28396. <method name="upperBound" return="int"
  28397. abstract="false" native="false" synchronized="false"
  28398. static="true" final="false" visibility="public"
  28399. deprecated="not deprecated">
  28400. <param name="list" type="java.util.List"/>
  28401. <param name="key" type="T"/>
  28402. <param name="cmp" type="java.util.Comparator"/>
  28403. <doc>
  28404. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  28405. that compares greater than the input key.
  28406. @param <T>
  28407. Type of the input key.
  28408. @param list
  28409. The list
  28410. @param key
  28411. The input key.
  28412. @param cmp
  28413. Comparator for the key.
  28414. @return The index to the desired element if it exists; or list.size()
  28415. otherwise.]]>
  28416. </doc>
  28417. </method>
  28418. <method name="lowerBound" return="int"
  28419. abstract="false" native="false" synchronized="false"
  28420. static="true" final="false" visibility="public"
  28421. deprecated="not deprecated">
  28422. <param name="list" type="java.util.List"/>
  28423. <param name="key" type="T"/>
  28424. <doc>
  28425. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  28426. that compares greater than or equal to key.
  28427. @param <T>
  28428. Type of the input key.
  28429. @param list
  28430. The list
  28431. @param key
  28432. The input key.
  28433. @return The index to the desired element if it exists; or list.size()
  28434. otherwise.]]>
  28435. </doc>
  28436. </method>
  28437. <method name="upperBound" return="int"
  28438. abstract="false" native="false" synchronized="false"
  28439. static="true" final="false" visibility="public"
  28440. deprecated="not deprecated">
  28441. <param name="list" type="java.util.List"/>
  28442. <param name="key" type="T"/>
  28443. <doc>
  28444. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  28445. that compares greater than the input key.
  28446. @param <T>
  28447. Type of the input key.
  28448. @param list
  28449. The list
  28450. @param key
  28451. The input key.
  28452. @return The index to the desired element if it exists; or list.size()
  28453. otherwise.]]>
  28454. </doc>
  28455. </method>
  28456. <doc>
  28457. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  28458. </doc>
  28459. </class>
  28460. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  28461. </package>
  28462. <package name="org.apache.hadoop.io.serializer">
  28463. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  28464. <class name="JavaSerialization" extends="java.lang.Object"
  28465. abstract="false"
  28466. static="false" final="false" visibility="public"
  28467. deprecated="not deprecated">
  28468. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  28469. <constructor name="JavaSerialization"
  28470. static="false" final="false" visibility="public"
  28471. deprecated="not deprecated">
  28472. </constructor>
  28473. <doc>
  28474. <![CDATA[<p>
  28475. An experimental {@link Serialization} for Java {@link Serializable} classes.
  28476. </p>
  28477. @see JavaSerializationComparator]]>
  28478. </doc>
  28479. </class>
  28480. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  28481. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  28482. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  28483. abstract="false"
  28484. static="false" final="false" visibility="public"
  28485. deprecated="not deprecated">
  28486. <constructor name="JavaSerializationComparator"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. <exception name="IOException" type="java.io.IOException"/>
  28490. </constructor>
  28491. <doc>
  28492. <![CDATA[<p>
  28493. A {@link RawComparator} that uses a {@link JavaSerialization}
  28494. {@link Deserializer} to deserialize objects that are then compared via
  28495. their {@link Comparable} interfaces.
  28496. </p>
  28497. @param <T> generic type.
  28498. @see JavaSerialization]]>
  28499. </doc>
  28500. </class>
  28501. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  28502. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  28503. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  28504. abstract="false"
  28505. static="false" final="false" visibility="public"
  28506. deprecated="not deprecated">
  28507. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  28508. <constructor name="WritableSerialization"
  28509. static="false" final="false" visibility="public"
  28510. deprecated="not deprecated">
  28511. </constructor>
  28512. <doc>
  28513. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  28514. {@link Writable#write(java.io.DataOutput)} and
  28515. {@link Writable#readFields(java.io.DataInput)}.]]>
  28516. </doc>
  28517. </class>
  28518. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  28519. <doc>
  28520. <![CDATA[<p>
  28521. This package provides a mechanism for using different serialization frameworks
  28522. in Hadoop. The property "io.serializations" defines a list of
  28523. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  28524. {@link org.apache.hadoop.io.serializer.Serializer}s and
  28525. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  28526. </p>
  28527. <p>
  28528. To add a new serialization framework write an implementation of
  28529. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  28530. "io.serializations" property.
  28531. </p>]]>
  28532. </doc>
  28533. </package>
  28534. <package name="org.apache.hadoop.io.serializer.avro">
  28535. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  28536. <interface name="AvroReflectSerializable" abstract="true"
  28537. static="false" final="false" visibility="public"
  28538. deprecated="not deprecated">
  28539. <doc>
  28540. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  28541. this interface can be serialized/deserialized using
  28542. {@link AvroReflectSerialization}.]]>
  28543. </doc>
  28544. </interface>
  28545. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  28546. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  28547. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  28548. abstract="false"
  28549. static="false" final="false" visibility="public"
  28550. deprecated="not deprecated">
  28551. <constructor name="AvroReflectSerialization"
  28552. static="false" final="false" visibility="public"
  28553. deprecated="not deprecated">
  28554. </constructor>
  28555. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  28556. transient="false" volatile="false"
  28557. static="true" final="true" visibility="public"
  28558. deprecated="not deprecated">
  28559. <doc>
  28560. <![CDATA[Key to configure packages that contain classes to be serialized and
  28561. deserialized using this class. Multiple packages can be specified using
  28562. comma-separated list.]]>
  28563. </doc>
  28564. </field>
  28565. <doc>
  28566. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  28567. serialization, it must either be in the package list configured via
  28568. <code>avro.reflect.pkgs</code> or implement
  28569. {@link AvroReflectSerializable} interface.]]>
  28570. </doc>
  28571. </class>
  28572. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  28573. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  28574. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  28575. abstract="true"
  28576. static="false" final="false" visibility="public"
  28577. deprecated="not deprecated">
  28578. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  28579. <constructor name="AvroSerialization"
  28580. static="false" final="false" visibility="public"
  28581. deprecated="not deprecated">
  28582. </constructor>
  28583. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  28584. transient="false" volatile="false"
  28585. static="true" final="true" visibility="public"
  28586. deprecated="not deprecated">
  28587. </field>
  28588. <doc>
  28589. <![CDATA[Base class for providing serialization to Avro types.]]>
  28590. </doc>
  28591. </class>
  28592. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  28593. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  28594. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  28595. abstract="false"
  28596. static="false" final="false" visibility="public"
  28597. deprecated="not deprecated">
  28598. <constructor name="AvroSpecificSerialization"
  28599. static="false" final="false" visibility="public"
  28600. deprecated="not deprecated">
  28601. </constructor>
  28602. <doc>
  28603. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  28604. for classes generated by Avro's 'specific' compiler.]]>
  28605. </doc>
  28606. </class>
  28607. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  28608. <doc>
  28609. <![CDATA[<p>
  28610. This package provides Avro serialization in Hadoop. This can be used to
  28611. serialize/deserialize Avro types in Hadoop.
  28612. </p>
  28613. <p>
  28614. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  28615. serialization of classes generated by Avro's 'specific' compiler.
  28616. </p>
  28617. <p>
  28618. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  28619. other classes.
  28620. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  28621. any class which is either in the package list configured via
  28622. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  28623. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  28624. interface.
  28625. </p>]]>
  28626. </doc>
  28627. </package>
  28628. <package name="org.apache.hadoop.ipc.protocolPB">
  28629. </package>
  28630. <package name="org.apache.hadoop.log">
  28631. </package>
  28632. <package name="org.apache.hadoop.log.metrics">
  28633. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  28634. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  28635. abstract="false"
  28636. static="false" final="false" visibility="public"
  28637. deprecated="not deprecated">
  28638. <constructor name="EventCounter"
  28639. static="false" final="false" visibility="public"
  28640. deprecated="not deprecated">
  28641. </constructor>
  28642. <method name="append"
  28643. abstract="false" native="false" synchronized="false"
  28644. static="false" final="false" visibility="public"
  28645. deprecated="not deprecated">
  28646. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  28647. </method>
  28648. <method name="close"
  28649. abstract="false" native="false" synchronized="false"
  28650. static="false" final="false" visibility="public"
  28651. deprecated="not deprecated">
  28652. </method>
  28653. <method name="requiresLayout" return="boolean"
  28654. abstract="false" native="false" synchronized="false"
  28655. static="false" final="false" visibility="public"
  28656. deprecated="not deprecated">
  28657. </method>
  28658. <doc>
  28659. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  28660. fatal, error and warn. The class name is used in log4j.properties]]>
  28661. </doc>
  28662. </class>
  28663. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  28664. </package>
  28665. <package name="org.apache.hadoop.metrics2">
  28666. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  28667. <class name="AbstractMetric" extends="java.lang.Object"
  28668. abstract="true"
  28669. static="false" final="false" visibility="public"
  28670. deprecated="not deprecated">
  28671. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  28672. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  28673. static="false" final="false" visibility="protected"
  28674. deprecated="not deprecated">
  28675. <doc>
  28676. <![CDATA[Construct the metric
  28677. @param info about the metric]]>
  28678. </doc>
  28679. </constructor>
  28680. <method name="name" return="java.lang.String"
  28681. abstract="false" native="false" synchronized="false"
  28682. static="false" final="false" visibility="public"
  28683. deprecated="not deprecated">
  28684. </method>
  28685. <method name="description" return="java.lang.String"
  28686. abstract="false" native="false" synchronized="false"
  28687. static="false" final="false" visibility="public"
  28688. deprecated="not deprecated">
  28689. </method>
  28690. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  28691. abstract="false" native="false" synchronized="false"
  28692. static="false" final="false" visibility="protected"
  28693. deprecated="not deprecated">
  28694. </method>
  28695. <method name="value" return="java.lang.Number"
  28696. abstract="true" native="false" synchronized="false"
  28697. static="false" final="false" visibility="public"
  28698. deprecated="not deprecated">
  28699. <doc>
  28700. <![CDATA[Get the value of the metric
  28701. @return the value of the metric]]>
  28702. </doc>
  28703. </method>
  28704. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  28705. abstract="true" native="false" synchronized="false"
  28706. static="false" final="false" visibility="public"
  28707. deprecated="not deprecated">
  28708. <doc>
  28709. <![CDATA[Get the type of the metric
  28710. @return the type of the metric]]>
  28711. </doc>
  28712. </method>
  28713. <method name="visit"
  28714. abstract="true" native="false" synchronized="false"
  28715. static="false" final="false" visibility="public"
  28716. deprecated="not deprecated">
  28717. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  28718. <doc>
  28719. <![CDATA[Accept a visitor interface
  28720. @param visitor of the metric]]>
  28721. </doc>
  28722. </method>
  28723. <method name="equals" return="boolean"
  28724. abstract="false" native="false" synchronized="false"
  28725. static="false" final="false" visibility="public"
  28726. deprecated="not deprecated">
  28727. <param name="obj" type="java.lang.Object"/>
  28728. </method>
  28729. <method name="hashCode" return="int"
  28730. abstract="false" native="false" synchronized="false"
  28731. static="false" final="false" visibility="public"
  28732. deprecated="not deprecated">
  28733. </method>
  28734. <method name="toString" return="java.lang.String"
  28735. abstract="false" native="false" synchronized="false"
  28736. static="false" final="false" visibility="public"
  28737. deprecated="not deprecated">
  28738. </method>
  28739. <doc>
  28740. <![CDATA[The immutable metric]]>
  28741. </doc>
  28742. </class>
  28743. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  28744. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  28745. <interface name="MetricsCollector" abstract="true"
  28746. static="false" final="false" visibility="public"
  28747. deprecated="not deprecated">
  28748. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28749. abstract="true" native="false" synchronized="false"
  28750. static="false" final="false" visibility="public"
  28751. deprecated="not deprecated">
  28752. <param name="name" type="java.lang.String"/>
  28753. <doc>
  28754. <![CDATA[Add a metrics record
  28755. @param name of the record
  28756. @return a {@link MetricsRecordBuilder} for the record {@code name}]]>
  28757. </doc>
  28758. </method>
  28759. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28760. abstract="true" native="false" synchronized="false"
  28761. static="false" final="false" visibility="public"
  28762. deprecated="not deprecated">
  28763. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28764. <doc>
  28765. <![CDATA[Add a metrics record
  28766. @param info of the record
  28767. @return a {@link MetricsRecordBuilder} for metrics {@code info}]]>
  28768. </doc>
  28769. </method>
  28770. <doc>
  28771. <![CDATA[The metrics collector interface]]>
  28772. </doc>
  28773. </interface>
  28774. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  28775. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  28776. <class name="MetricsException" extends="java.lang.RuntimeException"
  28777. abstract="false"
  28778. static="false" final="false" visibility="public"
  28779. deprecated="not deprecated">
  28780. <constructor name="MetricsException" type="java.lang.String"
  28781. static="false" final="false" visibility="public"
  28782. deprecated="not deprecated">
  28783. <doc>
  28784. <![CDATA[Construct the exception with a message
  28785. @param message for the exception]]>
  28786. </doc>
  28787. </constructor>
  28788. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  28789. static="false" final="false" visibility="public"
  28790. deprecated="not deprecated">
  28791. <doc>
  28792. <![CDATA[Construct the exception with a message and a cause
  28793. @param message for the exception
  28794. @param cause of the exception]]>
  28795. </doc>
  28796. </constructor>
  28797. <constructor name="MetricsException" type="java.lang.Throwable"
  28798. static="false" final="false" visibility="public"
  28799. deprecated="not deprecated">
  28800. <doc>
  28801. <![CDATA[Construct the exception with a cause
  28802. @param cause of the exception]]>
  28803. </doc>
  28804. </constructor>
  28805. <doc>
  28806. <![CDATA[A general metrics exception wrapper]]>
  28807. </doc>
  28808. </class>
  28809. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  28810. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  28811. <class name="MetricsFilter" extends="java.lang.Object"
  28812. abstract="true"
  28813. static="false" final="false" visibility="public"
  28814. deprecated="not deprecated">
  28815. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  28816. <constructor name="MetricsFilter"
  28817. static="false" final="false" visibility="public"
  28818. deprecated="not deprecated">
  28819. </constructor>
  28820. <method name="accepts" return="boolean"
  28821. abstract="true" native="false" synchronized="false"
  28822. static="false" final="false" visibility="public"
  28823. deprecated="not deprecated">
  28824. <param name="name" type="java.lang.String"/>
  28825. <doc>
  28826. <![CDATA[Whether to accept the name
  28827. @param name to filter on
  28828. @return true to accept; false otherwise.]]>
  28829. </doc>
  28830. </method>
  28831. <method name="accepts" return="boolean"
  28832. abstract="true" native="false" synchronized="false"
  28833. static="false" final="false" visibility="public"
  28834. deprecated="not deprecated">
  28835. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  28836. <doc>
  28837. <![CDATA[Whether to accept the tag
  28838. @param tag to filter on
  28839. @return true to accept; false otherwise]]>
  28840. </doc>
  28841. </method>
  28842. <method name="accepts" return="boolean"
  28843. abstract="true" native="false" synchronized="false"
  28844. static="false" final="false" visibility="public"
  28845. deprecated="not deprecated">
  28846. <param name="tags" type="java.lang.Iterable"/>
  28847. <doc>
  28848. <![CDATA[Whether to accept the tags
  28849. @param tags to filter on
  28850. @return true to accept; false otherwise]]>
  28851. </doc>
  28852. </method>
  28853. <method name="accepts" return="boolean"
  28854. abstract="false" native="false" synchronized="false"
  28855. static="false" final="false" visibility="public"
  28856. deprecated="not deprecated">
  28857. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28858. <doc>
  28859. <![CDATA[Whether to accept the record
  28860. @param record to filter on
  28861. @return true to accept; false otherwise.]]>
  28862. </doc>
  28863. </method>
  28864. <doc>
  28865. <![CDATA[The metrics filter interface. The MetricsFilter objects can be used either to
  28866. filter the metrics from {@link MetricsSource}s or to filter metrics per
  28867. {@link MetricsSink}.]]>
  28868. </doc>
  28869. </class>
  28870. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  28871. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  28872. <interface name="MetricsInfo" abstract="true"
  28873. static="false" final="false" visibility="public"
  28874. deprecated="not deprecated">
  28875. <method name="name" return="java.lang.String"
  28876. abstract="true" native="false" synchronized="false"
  28877. static="false" final="false" visibility="public"
  28878. deprecated="not deprecated">
  28879. <doc>
  28880. <![CDATA[Typically name corresponds to annotation {@link Metric#value()} or
  28881. the name of the class.
  28882. @return the name of the metric/tag]]>
  28883. </doc>
  28884. </method>
  28885. <method name="description" return="java.lang.String"
  28886. abstract="true" native="false" synchronized="false"
  28887. static="false" final="false" visibility="public"
  28888. deprecated="not deprecated">
  28889. <doc>
  28890. <![CDATA[Typically the description corresponds to annotation {@link Metric#about()}
  28891. or the name of the class.
  28892. @return the description of the metric/tag]]>
  28893. </doc>
  28894. </method>
  28895. <doc>
  28896. <![CDATA[Interface to provide immutable metainfo for metrics.]]>
  28897. </doc>
  28898. </interface>
  28899. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  28900. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  28901. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28902. abstract="false"
  28903. static="false" final="false" visibility="public"
  28904. deprecated="not deprecated">
  28905. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  28906. static="false" final="false" visibility="public"
  28907. deprecated="not deprecated">
  28908. <doc>
  28909. <![CDATA[Build an instance.
  28910. @param parent parent collector. Unused in this instance; only used for
  28911. the {@link #parent()} method]]>
  28912. </doc>
  28913. </constructor>
  28914. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28915. abstract="false" native="false" synchronized="false"
  28916. static="false" final="false" visibility="public"
  28917. deprecated="not deprecated">
  28918. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28919. <param name="value" type="java.lang.String"/>
  28920. </method>
  28921. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28922. abstract="false" native="false" synchronized="false"
  28923. static="false" final="false" visibility="public"
  28924. deprecated="not deprecated">
  28925. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  28926. </method>
  28927. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28928. abstract="false" native="false" synchronized="false"
  28929. static="false" final="false" visibility="public"
  28930. deprecated="not deprecated">
  28931. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  28932. </method>
  28933. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28934. abstract="false" native="false" synchronized="false"
  28935. static="false" final="false" visibility="public"
  28936. deprecated="not deprecated">
  28937. <param name="value" type="java.lang.String"/>
  28938. </method>
  28939. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28940. abstract="false" native="false" synchronized="false"
  28941. static="false" final="false" visibility="public"
  28942. deprecated="not deprecated">
  28943. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28944. <param name="value" type="int"/>
  28945. </method>
  28946. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28947. abstract="false" native="false" synchronized="false"
  28948. static="false" final="false" visibility="public"
  28949. deprecated="not deprecated">
  28950. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28951. <param name="value" type="long"/>
  28952. </method>
  28953. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28954. abstract="false" native="false" synchronized="false"
  28955. static="false" final="false" visibility="public"
  28956. deprecated="not deprecated">
  28957. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28958. <param name="value" type="int"/>
  28959. </method>
  28960. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28961. abstract="false" native="false" synchronized="false"
  28962. static="false" final="false" visibility="public"
  28963. deprecated="not deprecated">
  28964. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28965. <param name="value" type="long"/>
  28966. </method>
  28967. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28968. abstract="false" native="false" synchronized="false"
  28969. static="false" final="false" visibility="public"
  28970. deprecated="not deprecated">
  28971. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28972. <param name="value" type="float"/>
  28973. </method>
  28974. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  28975. abstract="false" native="false" synchronized="false"
  28976. static="false" final="false" visibility="public"
  28977. deprecated="not deprecated">
  28978. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  28979. <param name="value" type="double"/>
  28980. </method>
  28981. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  28982. abstract="false" native="false" synchronized="false"
  28983. static="false" final="false" visibility="public"
  28984. deprecated="not deprecated">
  28985. </method>
  28986. <method name="toString" return="java.lang.String"
  28987. abstract="false" native="false" synchronized="false"
  28988. static="false" final="false" visibility="public"
  28989. deprecated="not deprecated">
  28990. </method>
  28991. <field name="LOG" type="org.slf4j.Logger"
  28992. transient="false" volatile="false"
  28993. static="true" final="true" visibility="public"
  28994. deprecated="not deprecated">
  28995. </field>
  28996. <doc>
  28997. <![CDATA[Build a JSON dump of the metrics.
  28998. The {@link #toString()} operator dumps out all values collected.]]>
  28999. </doc>
  29000. </class>
  29001. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  29002. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  29003. <interface name="MetricsPlugin" abstract="true"
  29004. static="false" final="false" visibility="public"
  29005. deprecated="not deprecated">
  29006. <method name="init"
  29007. abstract="true" native="false" synchronized="false"
  29008. static="false" final="false" visibility="public"
  29009. deprecated="not deprecated">
  29010. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  29011. <doc>
  29012. <![CDATA[Initialize the plugin
  29013. @param conf the configuration object for the plugin]]>
  29014. </doc>
  29015. </method>
  29016. <doc>
  29017. <![CDATA[The plugin interface for the metrics framework]]>
  29018. </doc>
  29019. </interface>
  29020. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  29021. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  29022. <interface name="MetricsRecord" abstract="true"
  29023. static="false" final="false" visibility="public"
  29024. deprecated="not deprecated">
  29025. <method name="timestamp" return="long"
  29026. abstract="true" native="false" synchronized="false"
  29027. static="false" final="false" visibility="public"
  29028. deprecated="not deprecated">
  29029. <doc>
  29030. <![CDATA[Get the timestamp of the metrics
  29031. @return the timestamp]]>
  29032. </doc>
  29033. </method>
  29034. <method name="name" return="java.lang.String"
  29035. abstract="true" native="false" synchronized="false"
  29036. static="false" final="false" visibility="public"
  29037. deprecated="not deprecated">
  29038. <doc>
  29039. <![CDATA[@return the metrics record name]]>
  29040. </doc>
  29041. </method>
  29042. <method name="description" return="java.lang.String"
  29043. abstract="true" native="false" synchronized="false"
  29044. static="false" final="false" visibility="public"
  29045. deprecated="not deprecated">
  29046. <doc>
  29047. <![CDATA[@return the description of the metrics record]]>
  29048. </doc>
  29049. </method>
  29050. <method name="context" return="java.lang.String"
  29051. abstract="true" native="false" synchronized="false"
  29052. static="false" final="false" visibility="public"
  29053. deprecated="not deprecated">
  29054. <doc>
  29055. <![CDATA[@return the context name of the metrics record]]>
  29056. </doc>
  29057. </method>
  29058. <method name="tags" return="java.util.Collection"
  29059. abstract="true" native="false" synchronized="false"
  29060. static="false" final="false" visibility="public"
  29061. deprecated="not deprecated">
  29062. <doc>
  29063. <![CDATA[Get the tags of the record
  29064. Note: returning a collection instead of iterable as we
  29065. need to use tags as keys (hence Collection#hashCode etc.) in maps
  29066. @return an unmodifiable collection of tags]]>
  29067. </doc>
  29068. </method>
  29069. <method name="metrics" return="java.lang.Iterable"
  29070. abstract="true" native="false" synchronized="false"
  29071. static="false" final="false" visibility="public"
  29072. deprecated="not deprecated">
  29073. <doc>
  29074. <![CDATA[Get the metrics of the record
  29075. @return an immutable iterable interface for metrics]]>
  29076. </doc>
  29077. </method>
  29078. <doc>
  29079. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  29080. </doc>
  29081. </interface>
  29082. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  29083. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  29084. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  29085. abstract="true"
  29086. static="false" final="false" visibility="public"
  29087. deprecated="not deprecated">
  29088. <constructor name="MetricsRecordBuilder"
  29089. static="false" final="false" visibility="public"
  29090. deprecated="not deprecated">
  29091. </constructor>
  29092. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29093. abstract="true" native="false" synchronized="false"
  29094. static="false" final="false" visibility="public"
  29095. deprecated="not deprecated">
  29096. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29097. <param name="value" type="java.lang.String"/>
  29098. <doc>
  29099. <![CDATA[Add a metrics value with metrics information
  29100. @param info metadata of the tag
  29101. @param value of the tag
  29102. @return self]]>
  29103. </doc>
  29104. </method>
  29105. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29106. abstract="true" native="false" synchronized="false"
  29107. static="false" final="false" visibility="public"
  29108. deprecated="not deprecated">
  29109. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  29110. <doc>
  29111. <![CDATA[Add an immutable metrics tag object
  29112. @param tag a pre-made tag object (potentially save an object construction)
  29113. @return self]]>
  29114. </doc>
  29115. </method>
  29116. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29117. abstract="true" native="false" synchronized="false"
  29118. static="false" final="false" visibility="public"
  29119. deprecated="not deprecated">
  29120. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  29121. <doc>
  29122. <![CDATA[Add a pre-made immutable metric object
  29123. @param metric the pre-made metric to save an object construction
  29124. @return self]]>
  29125. </doc>
  29126. </method>
  29127. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29128. abstract="true" native="false" synchronized="false"
  29129. static="false" final="false" visibility="public"
  29130. deprecated="not deprecated">
  29131. <param name="value" type="java.lang.String"/>
  29132. <doc>
  29133. <![CDATA[Set the context tag
  29134. @param value of the context
  29135. @return self]]>
  29136. </doc>
  29137. </method>
  29138. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29139. abstract="true" native="false" synchronized="false"
  29140. static="false" final="false" visibility="public"
  29141. deprecated="not deprecated">
  29142. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29143. <param name="value" type="int"/>
  29144. <doc>
  29145. <![CDATA[Add an integer metric
  29146. @param info metadata of the metric
  29147. @param value of the metric
  29148. @return self]]>
  29149. </doc>
  29150. </method>
  29151. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29152. abstract="true" native="false" synchronized="false"
  29153. static="false" final="false" visibility="public"
  29154. deprecated="not deprecated">
  29155. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29156. <param name="value" type="long"/>
  29157. <doc>
  29158. <![CDATA[Add an long metric
  29159. @param info metadata of the metric
  29160. @param value of the metric
  29161. @return self]]>
  29162. </doc>
  29163. </method>
  29164. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29165. abstract="true" native="false" synchronized="false"
  29166. static="false" final="false" visibility="public"
  29167. deprecated="not deprecated">
  29168. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29169. <param name="value" type="int"/>
  29170. <doc>
  29171. <![CDATA[Add a integer gauge metric
  29172. @param info metadata of the metric
  29173. @param value of the metric
  29174. @return self]]>
  29175. </doc>
  29176. </method>
  29177. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29178. abstract="true" native="false" synchronized="false"
  29179. static="false" final="false" visibility="public"
  29180. deprecated="not deprecated">
  29181. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29182. <param name="value" type="long"/>
  29183. <doc>
  29184. <![CDATA[Add a long gauge metric
  29185. @param info metadata of the metric
  29186. @param value of the metric
  29187. @return self]]>
  29188. </doc>
  29189. </method>
  29190. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29191. abstract="true" native="false" synchronized="false"
  29192. static="false" final="false" visibility="public"
  29193. deprecated="not deprecated">
  29194. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29195. <param name="value" type="float"/>
  29196. <doc>
  29197. <![CDATA[Add a float gauge metric
  29198. @param info metadata of the metric
  29199. @param value of the metric
  29200. @return self]]>
  29201. </doc>
  29202. </method>
  29203. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29204. abstract="true" native="false" synchronized="false"
  29205. static="false" final="false" visibility="public"
  29206. deprecated="not deprecated">
  29207. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29208. <param name="value" type="double"/>
  29209. <doc>
  29210. <![CDATA[Add a double gauge metric
  29211. @param info metadata of the metric
  29212. @param value of the metric
  29213. @return self]]>
  29214. </doc>
  29215. </method>
  29216. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  29217. abstract="true" native="false" synchronized="false"
  29218. static="false" final="false" visibility="public"
  29219. deprecated="not deprecated">
  29220. <doc>
  29221. <![CDATA[@return the parent metrics collector object]]>
  29222. </doc>
  29223. </method>
  29224. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  29225. abstract="false" native="false" synchronized="false"
  29226. static="false" final="false" visibility="public"
  29227. deprecated="not deprecated">
  29228. <doc>
  29229. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  29230. @return the parent metrics collector object]]>
  29231. </doc>
  29232. </method>
  29233. <doc>
  29234. <![CDATA[The metrics record builder interface]]>
  29235. </doc>
  29236. </class>
  29237. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  29238. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  29239. <interface name="MetricsSink" abstract="true"
  29240. static="false" final="false" visibility="public"
  29241. deprecated="not deprecated">
  29242. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  29243. <method name="putMetrics"
  29244. abstract="true" native="false" synchronized="false"
  29245. static="false" final="false" visibility="public"
  29246. deprecated="not deprecated">
  29247. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29248. <doc>
  29249. <![CDATA[Put a metrics record in the sink
  29250. @param record the record to put]]>
  29251. </doc>
  29252. </method>
  29253. <method name="flush"
  29254. abstract="true" native="false" synchronized="false"
  29255. static="false" final="false" visibility="public"
  29256. deprecated="not deprecated">
  29257. <doc>
  29258. <![CDATA[Flush any buffered metrics]]>
  29259. </doc>
  29260. </method>
  29261. <doc>
  29262. <![CDATA[The metrics sink interface. <p>
  29263. Implementations of this interface consume the {@link MetricsRecord} generated
  29264. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  29265. periodically pushes the {@link MetricsRecord} to the sink using
  29266. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  29267. implements {@link Closeable}, then the MetricsSystem will close the sink when
  29268. it is stopped.]]>
  29269. </doc>
  29270. </interface>
  29271. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  29272. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  29273. <interface name="MetricsSource" abstract="true"
  29274. static="false" final="false" visibility="public"
  29275. deprecated="not deprecated">
  29276. <method name="getMetrics"
  29277. abstract="true" native="false" synchronized="false"
  29278. static="false" final="false" visibility="public"
  29279. deprecated="not deprecated">
  29280. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  29281. <param name="all" type="boolean"/>
  29282. <doc>
  29283. <![CDATA[Get metrics from the metrics source
  29284. @param collector to contain the resulting metrics snapshot
  29285. @param all if true, return all metrics even if unchanged.]]>
  29286. </doc>
  29287. </method>
  29288. <doc>
  29289. <![CDATA[The source of metrics information. It generates and updates metrics. It
  29290. registers with {@link MetricsSystem}, which periodically polls it to collect
  29291. {@link MetricsRecord} and passes it to {@link MetricsSink}.]]>
  29292. </doc>
  29293. </interface>
  29294. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  29295. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  29296. <class name="MetricsSystem" extends="java.lang.Object"
  29297. abstract="true"
  29298. static="false" final="false" visibility="public"
  29299. deprecated="not deprecated">
  29300. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  29301. <constructor name="MetricsSystem"
  29302. static="false" final="false" visibility="public"
  29303. deprecated="not deprecated">
  29304. </constructor>
  29305. <method name="unregisterSource"
  29306. abstract="true" native="false" synchronized="false"
  29307. static="false" final="false" visibility="public"
  29308. deprecated="not deprecated">
  29309. <param name="name" type="java.lang.String"/>
  29310. <doc>
  29311. <![CDATA[Unregister a metrics source
  29312. @param name of the source. This is the name you use to call register()]]>
  29313. </doc>
  29314. </method>
  29315. <method name="register" return="T"
  29316. abstract="false" native="false" synchronized="false"
  29317. static="false" final="false" visibility="public"
  29318. deprecated="not deprecated">
  29319. <param name="source" type="T"/>
  29320. <doc>
  29321. <![CDATA[Register a metrics source (deriving name and description from the object)
  29322. @param <T> the actual type of the source object
  29323. @param source object to register
  29324. @return the source object
  29325. @exception MetricsException Metrics Exception.]]>
  29326. </doc>
  29327. </method>
  29328. <method name="register" return="T"
  29329. abstract="true" native="false" synchronized="false"
  29330. static="false" final="false" visibility="public"
  29331. deprecated="not deprecated">
  29332. <param name="name" type="java.lang.String"/>
  29333. <param name="desc" type="java.lang.String"/>
  29334. <param name="source" type="T"/>
  29335. <doc>
  29336. <![CDATA[Register a metrics source
  29337. @param <T> the actual type of the source object
  29338. @param source object to register
  29339. @param name of the source. Must be unique or null (then extracted from
  29340. the annotations of the source object.)
  29341. @param desc the description of the source (or null. See above.)
  29342. @return the source object
  29343. @exception MetricsException Metrics Exception.]]>
  29344. </doc>
  29345. </method>
  29346. <method name="register"
  29347. abstract="true" native="false" synchronized="false"
  29348. static="false" final="false" visibility="public"
  29349. deprecated="not deprecated">
  29350. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  29351. <doc>
  29352. <![CDATA[Register a callback interface for JMX events
  29353. @param callback the callback object implementing the MBean interface.]]>
  29354. </doc>
  29355. </method>
  29356. <method name="publishMetricsNow"
  29357. abstract="true" native="false" synchronized="false"
  29358. static="false" final="false" visibility="public"
  29359. deprecated="not deprecated">
  29360. <doc>
  29361. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  29362. This is a "soft" request: the expectation is that a best effort will be
  29363. done to synchronously snapshot the metrics from all the sources and put
  29364. them in all the sinks (including flushing the sinks) before returning to
  29365. the caller. If this can't be accomplished in reasonable time it's OK to
  29366. return to the caller before everything is done.]]>
  29367. </doc>
  29368. </method>
  29369. <method name="shutdown" return="boolean"
  29370. abstract="true" native="false" synchronized="false"
  29371. static="false" final="false" visibility="public"
  29372. deprecated="not deprecated">
  29373. <doc>
  29374. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  29375. The MetricsSystemMXBean will be unregistered.
  29376. @return true if shutdown completed]]>
  29377. </doc>
  29378. </method>
  29379. <doc>
  29380. <![CDATA[The metrics system interface.
  29381. The following components are used for metrics.
  29382. <ul>
  29383. <li>{@link MetricsSource} generate and update metrics information.</li>
  29384. <li>{@link MetricsSink} consume the metrics information</li>
  29385. </ul>
  29386. {@link MetricsSource} and {@link MetricsSink} register with the metrics
  29387. system. Implementations of {@link MetricsSystem} polls the
  29388. {@link MetricsSource}s periodically and pass the {@link MetricsRecord}s to
  29389. {@link MetricsSink}.]]>
  29390. </doc>
  29391. </class>
  29392. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  29393. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  29394. <interface name="MetricsSystemMXBean" abstract="true"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="not deprecated">
  29397. <method name="start"
  29398. abstract="true" native="false" synchronized="false"
  29399. static="false" final="false" visibility="public"
  29400. deprecated="not deprecated">
  29401. <doc>
  29402. <![CDATA[Start the metrics system
  29403. @throws MetricsException Metrics Exception.]]>
  29404. </doc>
  29405. </method>
  29406. <method name="stop"
  29407. abstract="true" native="false" synchronized="false"
  29408. static="false" final="false" visibility="public"
  29409. deprecated="not deprecated">
  29410. <doc>
  29411. <![CDATA[Stop the metrics system
  29412. @throws MetricsException Metrics Exception.]]>
  29413. </doc>
  29414. </method>
  29415. <method name="startMetricsMBeans"
  29416. abstract="true" native="false" synchronized="false"
  29417. static="false" final="false" visibility="public"
  29418. deprecated="not deprecated">
  29419. <doc>
  29420. <![CDATA[Start metrics MBeans
  29421. @throws MetricsException Metrics Exception.]]>
  29422. </doc>
  29423. </method>
  29424. <method name="stopMetricsMBeans"
  29425. abstract="true" native="false" synchronized="false"
  29426. static="false" final="false" visibility="public"
  29427. deprecated="not deprecated">
  29428. <doc>
  29429. <![CDATA[Stop metrics MBeans.
  29430. Note, it doesn't stop the metrics system control MBean,
  29431. i.e this interface.
  29432. @throws MetricsException Metrics Exception.]]>
  29433. </doc>
  29434. </method>
  29435. <method name="currentConfig" return="java.lang.String"
  29436. abstract="true" native="false" synchronized="false"
  29437. static="false" final="false" visibility="public"
  29438. deprecated="not deprecated">
  29439. <doc>
  29440. <![CDATA[@return the current config
  29441. Avoided getConfig, as it'll turn into a "Config" attribute,
  29442. which doesn't support multiple line values in jconsole.
  29443. @throws MetricsException Metrics Exception.]]>
  29444. </doc>
  29445. </method>
  29446. <doc>
  29447. <![CDATA[The JMX interface to the metrics system]]>
  29448. </doc>
  29449. </interface>
  29450. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  29451. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  29452. <class name="MetricsTag" extends="java.lang.Object"
  29453. abstract="false"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  29457. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  29458. static="false" final="false" visibility="public"
  29459. deprecated="not deprecated">
  29460. <doc>
  29461. <![CDATA[Construct the tag with name, description and value
  29462. @param info of the tag
  29463. @param value of the tag]]>
  29464. </doc>
  29465. </constructor>
  29466. <method name="name" return="java.lang.String"
  29467. abstract="false" native="false" synchronized="false"
  29468. static="false" final="false" visibility="public"
  29469. deprecated="not deprecated">
  29470. </method>
  29471. <method name="description" return="java.lang.String"
  29472. abstract="false" native="false" synchronized="false"
  29473. static="false" final="false" visibility="public"
  29474. deprecated="not deprecated">
  29475. </method>
  29476. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  29477. abstract="false" native="false" synchronized="false"
  29478. static="false" final="false" visibility="public"
  29479. deprecated="not deprecated">
  29480. <doc>
  29481. <![CDATA[@return the info object of the tag]]>
  29482. </doc>
  29483. </method>
  29484. <method name="value" return="java.lang.String"
  29485. abstract="false" native="false" synchronized="false"
  29486. static="false" final="false" visibility="public"
  29487. deprecated="not deprecated">
  29488. <doc>
  29489. <![CDATA[Get the value of the tag
  29490. @return the value]]>
  29491. </doc>
  29492. </method>
  29493. <method name="equals" return="boolean"
  29494. abstract="false" native="false" synchronized="false"
  29495. static="false" final="false" visibility="public"
  29496. deprecated="not deprecated">
  29497. <param name="obj" type="java.lang.Object"/>
  29498. </method>
  29499. <method name="hashCode" return="int"
  29500. abstract="false" native="false" synchronized="false"
  29501. static="false" final="false" visibility="public"
  29502. deprecated="not deprecated">
  29503. </method>
  29504. <method name="toString" return="java.lang.String"
  29505. abstract="false" native="false" synchronized="false"
  29506. static="false" final="false" visibility="public"
  29507. deprecated="not deprecated">
  29508. </method>
  29509. <doc>
  29510. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  29511. </doc>
  29512. </class>
  29513. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  29514. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  29515. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29516. abstract="false"
  29517. static="false" final="false" visibility="public"
  29518. deprecated="not deprecated">
  29519. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  29520. static="false" final="false" visibility="public"
  29521. deprecated="not deprecated">
  29522. <doc>
  29523. <![CDATA[Build an instance.
  29524. @param parent parent collector. Unused in this instance; only used for
  29525. the {@link #parent()} method
  29526. @param prefix string before each entry
  29527. @param separator separator between name and value
  29528. @param suffix suffix after each entry]]>
  29529. </doc>
  29530. </constructor>
  29531. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  29532. abstract="false" native="false" synchronized="false"
  29533. static="false" final="false" visibility="public"
  29534. deprecated="not deprecated">
  29535. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29536. <param name="value" type="java.lang.Object"/>
  29537. </method>
  29538. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  29539. abstract="false" native="false" synchronized="false"
  29540. static="false" final="false" visibility="public"
  29541. deprecated="not deprecated">
  29542. <param name="key" type="java.lang.String"/>
  29543. <param name="value" type="java.lang.String"/>
  29544. <doc>
  29545. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  29546. separated by the separator.
  29547. @param key key
  29548. @param value value
  29549. @return this instance]]>
  29550. </doc>
  29551. </method>
  29552. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29553. abstract="false" native="false" synchronized="false"
  29554. static="false" final="false" visibility="public"
  29555. deprecated="not deprecated">
  29556. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29557. <param name="value" type="java.lang.String"/>
  29558. </method>
  29559. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29560. abstract="false" native="false" synchronized="false"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  29564. </method>
  29565. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29566. abstract="false" native="false" synchronized="false"
  29567. static="false" final="false" visibility="public"
  29568. deprecated="not deprecated">
  29569. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  29570. </method>
  29571. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29572. abstract="false" native="false" synchronized="false"
  29573. static="false" final="false" visibility="public"
  29574. deprecated="not deprecated">
  29575. <param name="value" type="java.lang.String"/>
  29576. </method>
  29577. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29578. abstract="false" native="false" synchronized="false"
  29579. static="false" final="false" visibility="public"
  29580. deprecated="not deprecated">
  29581. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29582. <param name="value" type="int"/>
  29583. </method>
  29584. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29585. abstract="false" native="false" synchronized="false"
  29586. static="false" final="false" visibility="public"
  29587. deprecated="not deprecated">
  29588. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29589. <param name="value" type="long"/>
  29590. </method>
  29591. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29592. abstract="false" native="false" synchronized="false"
  29593. static="false" final="false" visibility="public"
  29594. deprecated="not deprecated">
  29595. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29596. <param name="value" type="int"/>
  29597. </method>
  29598. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29599. abstract="false" native="false" synchronized="false"
  29600. static="false" final="false" visibility="public"
  29601. deprecated="not deprecated">
  29602. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29603. <param name="value" type="long"/>
  29604. </method>
  29605. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29606. abstract="false" native="false" synchronized="false"
  29607. static="false" final="false" visibility="public"
  29608. deprecated="not deprecated">
  29609. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29610. <param name="value" type="float"/>
  29611. </method>
  29612. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  29613. abstract="false" native="false" synchronized="false"
  29614. static="false" final="false" visibility="public"
  29615. deprecated="not deprecated">
  29616. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29617. <param name="value" type="double"/>
  29618. </method>
  29619. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  29620. abstract="false" native="false" synchronized="false"
  29621. static="false" final="false" visibility="public"
  29622. deprecated="not deprecated">
  29623. </method>
  29624. <method name="toString" return="java.lang.String"
  29625. abstract="false" native="false" synchronized="false"
  29626. static="false" final="false" visibility="public"
  29627. deprecated="not deprecated">
  29628. </method>
  29629. <doc>
  29630. <![CDATA[Build a string dump of the metrics.
  29631. The {@link #toString()} operator dumps out all values collected.
  29632. Every entry is formatted as
  29633. {@code prefix + name + separator + value + suffix}]]>
  29634. </doc>
  29635. </class>
  29636. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  29637. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  29638. <interface name="MetricsVisitor" abstract="true"
  29639. static="false" final="false" visibility="public"
  29640. deprecated="not deprecated">
  29641. <method name="gauge"
  29642. abstract="true" native="false" synchronized="false"
  29643. static="false" final="false" visibility="public"
  29644. deprecated="not deprecated">
  29645. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29646. <param name="value" type="int"/>
  29647. <doc>
  29648. <![CDATA[Callback for integer value gauges
  29649. @param info the metric info
  29650. @param value of the metric]]>
  29651. </doc>
  29652. </method>
  29653. <method name="gauge"
  29654. abstract="true" native="false" synchronized="false"
  29655. static="false" final="false" visibility="public"
  29656. deprecated="not deprecated">
  29657. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29658. <param name="value" type="long"/>
  29659. <doc>
  29660. <![CDATA[Callback for long value gauges
  29661. @param info the metric info
  29662. @param value of the metric]]>
  29663. </doc>
  29664. </method>
  29665. <method name="gauge"
  29666. abstract="true" native="false" synchronized="false"
  29667. static="false" final="false" visibility="public"
  29668. deprecated="not deprecated">
  29669. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29670. <param name="value" type="float"/>
  29671. <doc>
  29672. <![CDATA[Callback for float value gauges
  29673. @param info the metric info
  29674. @param value of the metric]]>
  29675. </doc>
  29676. </method>
  29677. <method name="gauge"
  29678. abstract="true" native="false" synchronized="false"
  29679. static="false" final="false" visibility="public"
  29680. deprecated="not deprecated">
  29681. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29682. <param name="value" type="double"/>
  29683. <doc>
  29684. <![CDATA[Callback for double value gauges
  29685. @param info the metric info
  29686. @param value of the metric]]>
  29687. </doc>
  29688. </method>
  29689. <method name="counter"
  29690. abstract="true" native="false" synchronized="false"
  29691. static="false" final="false" visibility="public"
  29692. deprecated="not deprecated">
  29693. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29694. <param name="value" type="int"/>
  29695. <doc>
  29696. <![CDATA[Callback for integer value counters
  29697. @param info the metric info
  29698. @param value of the metric]]>
  29699. </doc>
  29700. </method>
  29701. <method name="counter"
  29702. abstract="true" native="false" synchronized="false"
  29703. static="false" final="false" visibility="public"
  29704. deprecated="not deprecated">
  29705. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29706. <param name="value" type="long"/>
  29707. <doc>
  29708. <![CDATA[Callback for long value counters
  29709. @param info the metric info
  29710. @param value of the metric]]>
  29711. </doc>
  29712. </method>
  29713. <doc>
  29714. <![CDATA[A visitor interface for metrics]]>
  29715. </doc>
  29716. </interface>
  29717. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  29718. </package>
  29719. <package name="org.apache.hadoop.metrics2.annotation">
  29720. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  29721. <class name="Metric" abstract="true"
  29722. static="false" final="false" visibility="public"
  29723. deprecated="not deprecated">
  29724. <implements name="java.lang.annotation.Annotation"/>
  29725. <doc>
  29726. <![CDATA[Annotation interface for a single metric used to annotate a field or a method
  29727. in the class.]]>
  29728. </doc>
  29729. </class>
  29730. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  29731. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  29732. <class name="Metrics" abstract="true"
  29733. static="false" final="false" visibility="public"
  29734. deprecated="not deprecated">
  29735. <implements name="java.lang.annotation.Annotation"/>
  29736. <doc>
  29737. <![CDATA[Annotation interface for a group of metrics]]>
  29738. </doc>
  29739. </class>
  29740. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  29741. </package>
  29742. <package name="org.apache.hadoop.metrics2.filter">
  29743. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  29744. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  29745. abstract="false"
  29746. static="false" final="false" visibility="public"
  29747. deprecated="not deprecated">
  29748. <constructor name="GlobFilter"
  29749. static="false" final="false" visibility="public"
  29750. deprecated="not deprecated">
  29751. </constructor>
  29752. <method name="compile" return="com.google.re2j.Pattern"
  29753. abstract="false" native="false" synchronized="false"
  29754. static="false" final="false" visibility="protected"
  29755. deprecated="not deprecated">
  29756. <param name="s" type="java.lang.String"/>
  29757. </method>
  29758. <doc>
  29759. <![CDATA[A glob pattern filter for metrics.
  29760. The class name is used in metrics config files]]>
  29761. </doc>
  29762. </class>
  29763. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  29764. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  29765. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  29766. abstract="false"
  29767. static="false" final="false" visibility="public"
  29768. deprecated="not deprecated">
  29769. <constructor name="RegexFilter"
  29770. static="false" final="false" visibility="public"
  29771. deprecated="not deprecated">
  29772. </constructor>
  29773. <method name="compile" return="com.google.re2j.Pattern"
  29774. abstract="false" native="false" synchronized="false"
  29775. static="false" final="false" visibility="protected"
  29776. deprecated="not deprecated">
  29777. <param name="s" type="java.lang.String"/>
  29778. </method>
  29779. <doc>
  29780. <![CDATA[A regex pattern filter for metrics]]>
  29781. </doc>
  29782. </class>
  29783. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  29784. </package>
  29785. <package name="org.apache.hadoop.metrics2.lib">
  29786. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  29787. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  29788. abstract="false"
  29789. static="false" final="true" visibility="public"
  29790. deprecated="not deprecated">
  29791. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  29792. abstract="false" native="false" synchronized="false"
  29793. static="true" final="false" visibility="public"
  29794. deprecated="not deprecated">
  29795. </method>
  29796. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  29797. abstract="false" native="false" synchronized="false"
  29798. static="true" final="false" visibility="public"
  29799. deprecated="not deprecated">
  29800. <param name="name" type="java.lang.String"/>
  29801. </method>
  29802. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  29803. abstract="false" native="false" synchronized="false"
  29804. static="true" final="false" visibility="public"
  29805. deprecated="not deprecated">
  29806. <param name="prefix" type="java.lang.String"/>
  29807. <doc>
  29808. <![CDATA[Convenience method to initialize the metrics system
  29809. @param prefix for the metrics system configuration
  29810. @return the metrics system instance]]>
  29811. </doc>
  29812. </method>
  29813. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  29814. abstract="false" native="false" synchronized="false"
  29815. static="true" final="false" visibility="public"
  29816. deprecated="not deprecated">
  29817. <doc>
  29818. <![CDATA[@return the metrics system object]]>
  29819. </doc>
  29820. </method>
  29821. <method name="shutdown"
  29822. abstract="false" native="false" synchronized="false"
  29823. static="true" final="false" visibility="public"
  29824. deprecated="not deprecated">
  29825. <doc>
  29826. <![CDATA[Shutdown the metrics system]]>
  29827. </doc>
  29828. </method>
  29829. <method name="setMiniClusterMode"
  29830. abstract="false" native="false" synchronized="false"
  29831. static="true" final="false" visibility="public"
  29832. deprecated="not deprecated">
  29833. <param name="choice" type="boolean"/>
  29834. </method>
  29835. <method name="inMiniClusterMode" return="boolean"
  29836. abstract="false" native="false" synchronized="false"
  29837. static="true" final="false" visibility="public"
  29838. deprecated="not deprecated">
  29839. </method>
  29840. <doc>
  29841. <![CDATA[The default metrics system singleton. This class is used by all the daemon
  29842. processes(such as NameNode, DataNode, JobTracker etc.). During daemon process
  29843. initialization the processes call {@link DefaultMetricsSystem#init(String)}
  29844. to initialize the {@link MetricsSystem}.]]>
  29845. </doc>
  29846. </class>
  29847. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  29848. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  29849. <class name="Interns" extends="java.lang.Object"
  29850. abstract="false"
  29851. static="false" final="false" visibility="public"
  29852. deprecated="not deprecated">
  29853. <constructor name="Interns"
  29854. static="false" final="false" visibility="public"
  29855. deprecated="not deprecated">
  29856. </constructor>
  29857. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  29858. abstract="false" native="false" synchronized="false"
  29859. static="true" final="false" visibility="public"
  29860. deprecated="not deprecated">
  29861. <param name="name" type="java.lang.String"/>
  29862. <param name="description" type="java.lang.String"/>
  29863. <doc>
  29864. <![CDATA[Get a metric info object.
  29865. @param name Name of metric info object
  29866. @param description Description of metric info object
  29867. @return an interned metric info object]]>
  29868. </doc>
  29869. </method>
  29870. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  29871. abstract="false" native="false" synchronized="false"
  29872. static="true" final="false" visibility="public"
  29873. deprecated="not deprecated">
  29874. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29875. <param name="value" type="java.lang.String"/>
  29876. <doc>
  29877. <![CDATA[Get a metrics tag.
  29878. @param info of the tag
  29879. @param value of the tag
  29880. @return an interned metrics tag]]>
  29881. </doc>
  29882. </method>
  29883. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  29884. abstract="false" native="false" synchronized="false"
  29885. static="true" final="false" visibility="public"
  29886. deprecated="not deprecated">
  29887. <param name="name" type="java.lang.String"/>
  29888. <param name="description" type="java.lang.String"/>
  29889. <param name="value" type="java.lang.String"/>
  29890. <doc>
  29891. <![CDATA[Get a metrics tag.
  29892. @param name of the tag
  29893. @param description of the tag
  29894. @param value of the tag
  29895. @return an interned metrics tag]]>
  29896. </doc>
  29897. </method>
  29898. <doc>
  29899. <![CDATA[Helpers to create interned metrics info.]]>
  29900. </doc>
  29901. </class>
  29902. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  29903. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  29904. <class name="MetricsRegistry" extends="java.lang.Object"
  29905. abstract="false"
  29906. static="false" final="false" visibility="public"
  29907. deprecated="not deprecated">
  29908. <constructor name="MetricsRegistry" type="java.lang.String"
  29909. static="false" final="false" visibility="public"
  29910. deprecated="not deprecated">
  29911. <doc>
  29912. <![CDATA[Construct the registry with a record name
  29913. @param name of the record of the metrics]]>
  29914. </doc>
  29915. </constructor>
  29916. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  29917. static="false" final="false" visibility="public"
  29918. deprecated="not deprecated">
  29919. <doc>
  29920. <![CDATA[Construct the registry with a metadata object
  29921. @param info the info object for the metrics record/group]]>
  29922. </doc>
  29923. </constructor>
  29924. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  29925. abstract="false" native="false" synchronized="false"
  29926. static="false" final="false" visibility="public"
  29927. deprecated="not deprecated">
  29928. <doc>
  29929. <![CDATA[@return the info object of the metrics registry]]>
  29930. </doc>
  29931. </method>
  29932. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  29933. abstract="false" native="false" synchronized="true"
  29934. static="false" final="false" visibility="public"
  29935. deprecated="not deprecated">
  29936. <param name="name" type="java.lang.String"/>
  29937. <doc>
  29938. <![CDATA[Get a metric by name
  29939. @param name of the metric
  29940. @return the metric object]]>
  29941. </doc>
  29942. </method>
  29943. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  29944. abstract="false" native="false" synchronized="true"
  29945. static="false" final="false" visibility="public"
  29946. deprecated="not deprecated">
  29947. <param name="name" type="java.lang.String"/>
  29948. <doc>
  29949. <![CDATA[Get a tag by name
  29950. @param name of the tag
  29951. @return the tag object]]>
  29952. </doc>
  29953. </method>
  29954. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  29955. abstract="false" native="false" synchronized="false"
  29956. static="false" final="false" visibility="public"
  29957. deprecated="not deprecated">
  29958. <param name="name" type="java.lang.String"/>
  29959. <param name="desc" type="java.lang.String"/>
  29960. <param name="iVal" type="int"/>
  29961. <doc>
  29962. <![CDATA[Create a mutable integer counter
  29963. @param name of the metric
  29964. @param desc metric description
  29965. @param iVal initial value
  29966. @return a new counter object]]>
  29967. </doc>
  29968. </method>
  29969. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  29970. abstract="false" native="false" synchronized="true"
  29971. static="false" final="false" visibility="public"
  29972. deprecated="not deprecated">
  29973. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  29974. <param name="iVal" type="int"/>
  29975. <doc>
  29976. <![CDATA[Create a mutable integer counter
  29977. @param info metadata of the metric
  29978. @param iVal initial value
  29979. @return a new counter object]]>
  29980. </doc>
  29981. </method>
  29982. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  29983. abstract="false" native="false" synchronized="false"
  29984. static="false" final="false" visibility="public"
  29985. deprecated="not deprecated">
  29986. <param name="name" type="java.lang.String"/>
  29987. <param name="desc" type="java.lang.String"/>
  29988. <param name="iVal" type="long"/>
  29989. <doc>
  29990. <![CDATA[Create a mutable long integer counter
  29991. @param name of the metric
  29992. @param desc metric description
  29993. @param iVal initial value
  29994. @return a new counter object]]>
  29995. </doc>
  29996. </method>
  29997. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  29998. abstract="false" native="false" synchronized="true"
  29999. static="false" final="false" visibility="public"
  30000. deprecated="not deprecated">
  30001. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  30002. <param name="iVal" type="long"/>
  30003. <doc>
  30004. <![CDATA[Create a mutable long integer counter
  30005. @param info metadata of the metric
  30006. @param iVal initial value
  30007. @return a new counter object]]>
  30008. </doc>
  30009. </method>
  30010. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  30011. abstract="false" native="false" synchronized="false"
  30012. static="false" final="false" visibility="public"
  30013. deprecated="not deprecated">
  30014. <param name="name" type="java.lang.String"/>
  30015. <param name="desc" type="java.lang.String"/>
  30016. <param name="iVal" type="int"/>
  30017. <doc>
  30018. <![CDATA[Create a mutable integer gauge
  30019. @param name of the metric
  30020. @param desc metric description
  30021. @param iVal initial value
  30022. @return a new gauge object]]>
  30023. </doc>
  30024. </method>
  30025. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  30026. abstract="false" native="false" synchronized="true"
  30027. static="false" final="false" visibility="public"
  30028. deprecated="not deprecated">
  30029. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  30030. <param name="iVal" type="int"/>
  30031. <doc>
  30032. <![CDATA[Create a mutable integer gauge
  30033. @param info metadata of the metric
  30034. @param iVal initial value
  30035. @return a new gauge object]]>
  30036. </doc>
  30037. </method>
  30038. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  30039. abstract="false" native="false" synchronized="false"
  30040. static="false" final="false" visibility="public"
  30041. deprecated="not deprecated">
  30042. <param name="name" type="java.lang.String"/>
  30043. <param name="desc" type="java.lang.String"/>
  30044. <param name="iVal" type="long"/>
  30045. <doc>
  30046. <![CDATA[Create a mutable long integer gauge
  30047. @param name of the metric
  30048. @param desc metric description
  30049. @param iVal initial value
  30050. @return a new gauge object]]>
  30051. </doc>
  30052. </method>
  30053. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  30054. abstract="false" native="false" synchronized="true"
  30055. static="false" final="false" visibility="public"
  30056. deprecated="not deprecated">
  30057. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  30058. <param name="iVal" type="long"/>
  30059. <doc>
  30060. <![CDATA[Create a mutable long integer gauge
  30061. @param info metadata of the metric
  30062. @param iVal initial value
  30063. @return a new gauge object]]>
  30064. </doc>
  30065. </method>
  30066. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  30067. abstract="false" native="false" synchronized="false"
  30068. static="false" final="false" visibility="public"
  30069. deprecated="not deprecated">
  30070. <param name="name" type="java.lang.String"/>
  30071. <param name="desc" type="java.lang.String"/>
  30072. <param name="iVal" type="float"/>
  30073. <doc>
  30074. <![CDATA[Create a mutable float gauge
  30075. @param name of the metric
  30076. @param desc metric description
  30077. @param iVal initial value
  30078. @return a new gauge object]]>
  30079. </doc>
  30080. </method>
  30081. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  30082. abstract="false" native="false" synchronized="true"
  30083. static="false" final="false" visibility="public"
  30084. deprecated="not deprecated">
  30085. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  30086. <param name="iVal" type="float"/>
  30087. <doc>
  30088. <![CDATA[Create a mutable float gauge
  30089. @param info metadata of the metric
  30090. @param iVal initial value
  30091. @return a new gauge object]]>
  30092. </doc>
  30093. </method>
  30094. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  30095. abstract="false" native="false" synchronized="true"
  30096. static="false" final="false" visibility="public"
  30097. deprecated="not deprecated">
  30098. <param name="name" type="java.lang.String"/>
  30099. <param name="desc" type="java.lang.String"/>
  30100. <param name="sampleName" type="java.lang.String"/>
  30101. <param name="valueName" type="java.lang.String"/>
  30102. <param name="interval" type="int"/>
  30103. <doc>
  30104. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  30105. @param name of the metric
  30106. @param desc metric description
  30107. @param sampleName of the metric (e.g., "Ops")
  30108. @param valueName of the metric (e.g., "Time" or "Latency")
  30109. @param interval rollover interval of estimator in seconds
  30110. @return a new quantile estimator object
  30111. @throws MetricsException if interval is not a positive integer]]>
  30112. </doc>
  30113. </method>
  30114. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  30115. abstract="false" native="false" synchronized="true"
  30116. static="false" final="false" visibility="public"
  30117. deprecated="not deprecated">
  30118. <param name="name" type="java.lang.String"/>
  30119. <param name="desc" type="java.lang.String"/>
  30120. <param name="sampleName" type="java.lang.String"/>
  30121. <param name="valueName" type="java.lang.String"/>
  30122. <param name="extended" type="boolean"/>
  30123. <doc>
  30124. <![CDATA[Create a mutable metric with stats
  30125. @param name of the metric
  30126. @param desc metric description
  30127. @param sampleName of the metric (e.g., "Ops")
  30128. @param valueName of the metric (e.g., "Time" or "Latency")
  30129. @param extended produce extended stat (stdev, min/max etc.) if true.
  30130. @return a new mutable stat metric object]]>
  30131. </doc>
  30132. </method>
  30133. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  30134. abstract="false" native="false" synchronized="false"
  30135. static="false" final="false" visibility="public"
  30136. deprecated="not deprecated">
  30137. <param name="name" type="java.lang.String"/>
  30138. <param name="desc" type="java.lang.String"/>
  30139. <param name="sampleName" type="java.lang.String"/>
  30140. <param name="valueName" type="java.lang.String"/>
  30141. <doc>
  30142. <![CDATA[Create a mutable metric with stats
  30143. @param name of the metric
  30144. @param desc metric description
  30145. @param sampleName of the metric (e.g., "Ops")
  30146. @param valueName of the metric (e.g., "Time" or "Latency")
  30147. @return a new mutable metric object]]>
  30148. </doc>
  30149. </method>
  30150. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  30151. abstract="false" native="false" synchronized="false"
  30152. static="false" final="false" visibility="public"
  30153. deprecated="not deprecated">
  30154. <param name="name" type="java.lang.String"/>
  30155. <doc>
  30156. <![CDATA[Create a mutable rate metric
  30157. @param name of the metric
  30158. @return a new mutable metric object]]>
  30159. </doc>
  30160. </method>
  30161. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  30162. abstract="false" native="false" synchronized="false"
  30163. static="false" final="false" visibility="public"
  30164. deprecated="not deprecated">
  30165. <param name="name" type="java.lang.String"/>
  30166. <param name="description" type="java.lang.String"/>
  30167. <doc>
  30168. <![CDATA[Create a mutable rate metric
  30169. @param name of the metric
  30170. @param description of the metric
  30171. @return a new mutable rate metric object]]>
  30172. </doc>
  30173. </method>
  30174. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  30175. abstract="false" native="false" synchronized="false"
  30176. static="false" final="false" visibility="public"
  30177. deprecated="not deprecated">
  30178. <param name="name" type="java.lang.String"/>
  30179. <param name="desc" type="java.lang.String"/>
  30180. <param name="extended" type="boolean"/>
  30181. <doc>
  30182. <![CDATA[Create a mutable rate metric (for throughput measurement)
  30183. @param name of the metric
  30184. @param desc description
  30185. @param extended produce extended stat (stdev/min/max etc.) if true
  30186. @return a new mutable rate metric object]]>
  30187. </doc>
  30188. </method>
  30189. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  30190. abstract="false" native="false" synchronized="true"
  30191. static="false" final="false" visibility="public"
  30192. deprecated="not deprecated">
  30193. <param name="name" type="java.lang.String"/>
  30194. </method>
  30195. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  30196. abstract="false" native="false" synchronized="true"
  30197. static="false" final="false" visibility="public"
  30198. deprecated="not deprecated">
  30199. <param name="name" type="java.lang.String"/>
  30200. <param name="valueName" type="java.lang.String"/>
  30201. </method>
  30202. <method name="add"
  30203. abstract="false" native="false" synchronized="true"
  30204. static="false" final="false" visibility="public"
  30205. deprecated="not deprecated">
  30206. <param name="name" type="java.lang.String"/>
  30207. <param name="value" type="long"/>
  30208. <doc>
  30209. <![CDATA[Add sample to a stat metric by name.
  30210. @param name of the metric
  30211. @param value of the snapshot to add]]>
  30212. </doc>
  30213. </method>
  30214. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  30215. abstract="false" native="false" synchronized="false"
  30216. static="false" final="false" visibility="public"
  30217. deprecated="not deprecated">
  30218. <param name="name" type="java.lang.String"/>
  30219. <doc>
  30220. <![CDATA[Set the metrics context tag
  30221. @param name of the context
  30222. @return the registry itself as a convenience]]>
  30223. </doc>
  30224. </method>
  30225. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  30226. abstract="false" native="false" synchronized="false"
  30227. static="false" final="false" visibility="public"
  30228. deprecated="not deprecated">
  30229. <param name="name" type="java.lang.String"/>
  30230. <param name="description" type="java.lang.String"/>
  30231. <param name="value" type="java.lang.String"/>
  30232. <doc>
  30233. <![CDATA[Add a tag to the metrics
  30234. @param name of the tag
  30235. @param description of the tag
  30236. @param value of the tag
  30237. @return the registry (for keep adding tags)]]>
  30238. </doc>
  30239. </method>
  30240. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  30241. abstract="false" native="false" synchronized="false"
  30242. static="false" final="false" visibility="public"
  30243. deprecated="not deprecated">
  30244. <param name="name" type="java.lang.String"/>
  30245. <param name="description" type="java.lang.String"/>
  30246. <param name="value" type="java.lang.String"/>
  30247. <param name="override" type="boolean"/>
  30248. <doc>
  30249. <![CDATA[Add a tag to the metrics
  30250. @param name of the tag
  30251. @param description of the tag
  30252. @param value of the tag
  30253. @param override existing tag if true
  30254. @return the registry (for keep adding tags)]]>
  30255. </doc>
  30256. </method>
  30257. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  30258. abstract="false" native="false" synchronized="true"
  30259. static="false" final="false" visibility="public"
  30260. deprecated="not deprecated">
  30261. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  30262. <param name="value" type="java.lang.String"/>
  30263. <param name="override" type="boolean"/>
  30264. <doc>
  30265. <![CDATA[Add a tag to the metrics
  30266. @param info metadata of the tag
  30267. @param value of the tag
  30268. @param override existing tag if true
  30269. @return the registry (for keep adding tags etc.)]]>
  30270. </doc>
  30271. </method>
  30272. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  30273. abstract="false" native="false" synchronized="false"
  30274. static="false" final="false" visibility="public"
  30275. deprecated="not deprecated">
  30276. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  30277. <param name="value" type="java.lang.String"/>
  30278. </method>
  30279. <method name="snapshot"
  30280. abstract="false" native="false" synchronized="true"
  30281. static="false" final="false" visibility="public"
  30282. deprecated="not deprecated">
  30283. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30284. <param name="all" type="boolean"/>
  30285. <doc>
  30286. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  30287. @param builder to contain the metrics snapshot
  30288. @param all get all the metrics even if the values are not changed.]]>
  30289. </doc>
  30290. </method>
  30291. <method name="toString" return="java.lang.String"
  30292. abstract="false" native="false" synchronized="false"
  30293. static="false" final="false" visibility="public"
  30294. deprecated="not deprecated">
  30295. </method>
  30296. <doc>
  30297. <![CDATA[An optional metrics registry class for creating and maintaining a
  30298. collection of MetricsMutables, making writing metrics source easier.]]>
  30299. </doc>
  30300. </class>
  30301. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  30302. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  30303. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30304. abstract="true"
  30305. static="false" final="false" visibility="public"
  30306. deprecated="not deprecated">
  30307. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  30308. static="false" final="false" visibility="protected"
  30309. deprecated="not deprecated">
  30310. </constructor>
  30311. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  30312. abstract="false" native="false" synchronized="false"
  30313. static="false" final="false" visibility="protected"
  30314. deprecated="not deprecated">
  30315. </method>
  30316. <method name="incr"
  30317. abstract="true" native="false" synchronized="false"
  30318. static="false" final="false" visibility="public"
  30319. deprecated="not deprecated">
  30320. <doc>
  30321. <![CDATA[Increment the metric value by 1.]]>
  30322. </doc>
  30323. </method>
  30324. <doc>
  30325. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  30326. </doc>
  30327. </class>
  30328. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  30329. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  30330. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  30331. abstract="false"
  30332. static="false" final="false" visibility="public"
  30333. deprecated="not deprecated">
  30334. <method name="incr"
  30335. abstract="false" native="false" synchronized="false"
  30336. static="false" final="false" visibility="public"
  30337. deprecated="not deprecated">
  30338. </method>
  30339. <method name="incr"
  30340. abstract="false" native="false" synchronized="true"
  30341. static="false" final="false" visibility="public"
  30342. deprecated="not deprecated">
  30343. <param name="delta" type="int"/>
  30344. <doc>
  30345. <![CDATA[Increment the value by a delta
  30346. @param delta of the increment]]>
  30347. </doc>
  30348. </method>
  30349. <method name="value" return="int"
  30350. abstract="false" native="false" synchronized="false"
  30351. static="false" final="false" visibility="public"
  30352. deprecated="not deprecated">
  30353. </method>
  30354. <method name="snapshot"
  30355. abstract="false" native="false" synchronized="false"
  30356. static="false" final="false" visibility="public"
  30357. deprecated="not deprecated">
  30358. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30359. <param name="all" type="boolean"/>
  30360. </method>
  30361. <doc>
  30362. <![CDATA[A mutable int counter for implementing metrics sources]]>
  30363. </doc>
  30364. </class>
  30365. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  30366. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  30367. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  30368. abstract="false"
  30369. static="false" final="false" visibility="public"
  30370. deprecated="not deprecated">
  30371. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  30372. static="false" final="false" visibility="public"
  30373. deprecated="not deprecated">
  30374. </constructor>
  30375. <method name="incr"
  30376. abstract="false" native="false" synchronized="false"
  30377. static="false" final="false" visibility="public"
  30378. deprecated="not deprecated">
  30379. </method>
  30380. <method name="incr"
  30381. abstract="false" native="false" synchronized="false"
  30382. static="false" final="false" visibility="public"
  30383. deprecated="not deprecated">
  30384. <param name="delta" type="long"/>
  30385. <doc>
  30386. <![CDATA[Increment the value by a delta
  30387. @param delta of the increment]]>
  30388. </doc>
  30389. </method>
  30390. <method name="value" return="long"
  30391. abstract="false" native="false" synchronized="false"
  30392. static="false" final="false" visibility="public"
  30393. deprecated="not deprecated">
  30394. </method>
  30395. <method name="snapshot"
  30396. abstract="false" native="false" synchronized="false"
  30397. static="false" final="false" visibility="public"
  30398. deprecated="not deprecated">
  30399. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30400. <param name="all" type="boolean"/>
  30401. </method>
  30402. <doc>
  30403. <![CDATA[A mutable long counter]]>
  30404. </doc>
  30405. </class>
  30406. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  30407. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  30408. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30409. abstract="true"
  30410. static="false" final="false" visibility="public"
  30411. deprecated="not deprecated">
  30412. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  30413. static="false" final="false" visibility="protected"
  30414. deprecated="not deprecated">
  30415. </constructor>
  30416. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  30417. abstract="false" native="false" synchronized="false"
  30418. static="false" final="false" visibility="protected"
  30419. deprecated="not deprecated">
  30420. </method>
  30421. <method name="incr"
  30422. abstract="true" native="false" synchronized="false"
  30423. static="false" final="false" visibility="public"
  30424. deprecated="not deprecated">
  30425. <doc>
  30426. <![CDATA[Increment the value of the metric by 1]]>
  30427. </doc>
  30428. </method>
  30429. <method name="decr"
  30430. abstract="true" native="false" synchronized="false"
  30431. static="false" final="false" visibility="public"
  30432. deprecated="not deprecated">
  30433. <doc>
  30434. <![CDATA[Decrement the value of the metric by 1]]>
  30435. </doc>
  30436. </method>
  30437. <doc>
  30438. <![CDATA[The mutable gauge metric interface]]>
  30439. </doc>
  30440. </class>
  30441. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  30442. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  30443. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  30444. abstract="false"
  30445. static="false" final="false" visibility="public"
  30446. deprecated="not deprecated">
  30447. <method name="value" return="int"
  30448. abstract="false" native="false" synchronized="false"
  30449. static="false" final="false" visibility="public"
  30450. deprecated="not deprecated">
  30451. </method>
  30452. <method name="incr"
  30453. abstract="false" native="false" synchronized="false"
  30454. static="false" final="false" visibility="public"
  30455. deprecated="not deprecated">
  30456. </method>
  30457. <method name="incr"
  30458. abstract="false" native="false" synchronized="false"
  30459. static="false" final="false" visibility="public"
  30460. deprecated="not deprecated">
  30461. <param name="delta" type="int"/>
  30462. <doc>
  30463. <![CDATA[Increment by delta
  30464. @param delta of the increment]]>
  30465. </doc>
  30466. </method>
  30467. <method name="decr"
  30468. abstract="false" native="false" synchronized="false"
  30469. static="false" final="false" visibility="public"
  30470. deprecated="not deprecated">
  30471. </method>
  30472. <method name="decr"
  30473. abstract="false" native="false" synchronized="false"
  30474. static="false" final="false" visibility="public"
  30475. deprecated="not deprecated">
  30476. <param name="delta" type="int"/>
  30477. <doc>
  30478. <![CDATA[decrement by delta
  30479. @param delta of the decrement]]>
  30480. </doc>
  30481. </method>
  30482. <method name="set"
  30483. abstract="false" native="false" synchronized="false"
  30484. static="false" final="false" visibility="public"
  30485. deprecated="not deprecated">
  30486. <param name="value" type="int"/>
  30487. <doc>
  30488. <![CDATA[Set the value of the metric
  30489. @param value to set]]>
  30490. </doc>
  30491. </method>
  30492. <method name="snapshot"
  30493. abstract="false" native="false" synchronized="false"
  30494. static="false" final="false" visibility="public"
  30495. deprecated="not deprecated">
  30496. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30497. <param name="all" type="boolean"/>
  30498. </method>
  30499. <method name="toString" return="java.lang.String"
  30500. abstract="false" native="false" synchronized="false"
  30501. static="false" final="false" visibility="public"
  30502. deprecated="not deprecated">
  30503. <doc>
  30504. <![CDATA[@return the value of the metric]]>
  30505. </doc>
  30506. </method>
  30507. <doc>
  30508. <![CDATA[A mutable int gauge]]>
  30509. </doc>
  30510. </class>
  30511. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  30512. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  30513. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  30514. abstract="false"
  30515. static="false" final="false" visibility="public"
  30516. deprecated="not deprecated">
  30517. <method name="value" return="long"
  30518. abstract="false" native="false" synchronized="false"
  30519. static="false" final="false" visibility="public"
  30520. deprecated="not deprecated">
  30521. </method>
  30522. <method name="incr"
  30523. abstract="false" native="false" synchronized="false"
  30524. static="false" final="false" visibility="public"
  30525. deprecated="not deprecated">
  30526. </method>
  30527. <method name="incr"
  30528. abstract="false" native="false" synchronized="false"
  30529. static="false" final="false" visibility="public"
  30530. deprecated="not deprecated">
  30531. <param name="delta" type="long"/>
  30532. <doc>
  30533. <![CDATA[Increment by delta
  30534. @param delta of the increment]]>
  30535. </doc>
  30536. </method>
  30537. <method name="decr"
  30538. abstract="false" native="false" synchronized="false"
  30539. static="false" final="false" visibility="public"
  30540. deprecated="not deprecated">
  30541. </method>
  30542. <method name="decr"
  30543. abstract="false" native="false" synchronized="false"
  30544. static="false" final="false" visibility="public"
  30545. deprecated="not deprecated">
  30546. <param name="delta" type="long"/>
  30547. <doc>
  30548. <![CDATA[decrement by delta
  30549. @param delta of the decrement]]>
  30550. </doc>
  30551. </method>
  30552. <method name="set"
  30553. abstract="false" native="false" synchronized="false"
  30554. static="false" final="false" visibility="public"
  30555. deprecated="not deprecated">
  30556. <param name="value" type="long"/>
  30557. <doc>
  30558. <![CDATA[Set the value of the metric
  30559. @param value to set]]>
  30560. </doc>
  30561. </method>
  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="toString" return="java.lang.String"
  30570. abstract="false" native="false" synchronized="false"
  30571. static="false" final="false" visibility="public"
  30572. deprecated="not deprecated">
  30573. <doc>
  30574. <![CDATA[@return the value of the metric]]>
  30575. </doc>
  30576. </method>
  30577. <doc>
  30578. <![CDATA[A mutable long gauge]]>
  30579. </doc>
  30580. </class>
  30581. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  30582. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  30583. <class name="MutableMetric" extends="java.lang.Object"
  30584. abstract="true"
  30585. static="false" final="false" visibility="public"
  30586. deprecated="not deprecated">
  30587. <constructor name="MutableMetric"
  30588. static="false" final="false" visibility="public"
  30589. deprecated="not deprecated">
  30590. </constructor>
  30591. <method name="snapshot"
  30592. abstract="true" native="false" synchronized="false"
  30593. static="false" final="false" visibility="public"
  30594. deprecated="not deprecated">
  30595. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30596. <param name="all" type="boolean"/>
  30597. <doc>
  30598. <![CDATA[Get a snapshot of the metric
  30599. @param builder the metrics record builder
  30600. @param all if true, snapshot unchanged metrics as well]]>
  30601. </doc>
  30602. </method>
  30603. <method name="snapshot"
  30604. abstract="false" native="false" synchronized="false"
  30605. static="false" final="false" visibility="public"
  30606. deprecated="not deprecated">
  30607. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30608. <doc>
  30609. <![CDATA[Get a snapshot of metric if changed
  30610. @param builder the metrics record builder]]>
  30611. </doc>
  30612. </method>
  30613. <method name="setChanged"
  30614. abstract="false" native="false" synchronized="false"
  30615. static="false" final="false" visibility="protected"
  30616. deprecated="not deprecated">
  30617. <doc>
  30618. <![CDATA[Set the changed flag in mutable operations]]>
  30619. </doc>
  30620. </method>
  30621. <method name="clearChanged"
  30622. abstract="false" native="false" synchronized="false"
  30623. static="false" final="false" visibility="protected"
  30624. deprecated="not deprecated">
  30625. <doc>
  30626. <![CDATA[Clear the changed flag in the snapshot operations]]>
  30627. </doc>
  30628. </method>
  30629. <method name="changed" return="boolean"
  30630. abstract="false" native="false" synchronized="false"
  30631. static="false" final="false" visibility="public"
  30632. deprecated="not deprecated">
  30633. <doc>
  30634. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  30635. </doc>
  30636. </method>
  30637. <doc>
  30638. <![CDATA[The mutable metric interface]]>
  30639. </doc>
  30640. </class>
  30641. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  30642. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  30643. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30644. abstract="false"
  30645. static="false" final="false" visibility="public"
  30646. deprecated="not deprecated">
  30647. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  30648. static="false" final="false" visibility="public"
  30649. deprecated="not deprecated">
  30650. <doc>
  30651. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  30652. over on the specified time interval.
  30653. @param name
  30654. of the metric
  30655. @param description
  30656. long-form textual description of the metric
  30657. @param sampleName
  30658. type of items in the stream (e.g., "Ops")
  30659. @param valueName
  30660. type of the values
  30661. @param interval
  30662. rollover interval (in seconds) of the estimator]]>
  30663. </doc>
  30664. </constructor>
  30665. <method name="snapshot"
  30666. abstract="false" native="false" synchronized="true"
  30667. static="false" final="false" visibility="public"
  30668. deprecated="not deprecated">
  30669. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30670. <param name="all" type="boolean"/>
  30671. </method>
  30672. <method name="add"
  30673. abstract="false" native="false" synchronized="true"
  30674. static="false" final="false" visibility="public"
  30675. deprecated="not deprecated">
  30676. <param name="value" type="long"/>
  30677. </method>
  30678. <method name="getInterval" return="int"
  30679. abstract="false" native="false" synchronized="false"
  30680. static="false" final="false" visibility="public"
  30681. deprecated="not deprecated">
  30682. </method>
  30683. <method name="stop"
  30684. abstract="false" native="false" synchronized="false"
  30685. static="false" final="false" visibility="public"
  30686. deprecated="not deprecated">
  30687. </method>
  30688. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  30689. abstract="false" native="false" synchronized="true"
  30690. static="false" final="false" visibility="public"
  30691. deprecated="not deprecated">
  30692. <doc>
  30693. <![CDATA[Get the quantile estimator.
  30694. @return the quantile estimator]]>
  30695. </doc>
  30696. </method>
  30697. <method name="setEstimator"
  30698. abstract="false" native="false" synchronized="true"
  30699. static="false" final="false" visibility="public"
  30700. deprecated="not deprecated">
  30701. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  30702. </method>
  30703. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  30704. transient="false" volatile="false"
  30705. static="true" final="true" visibility="public"
  30706. deprecated="not deprecated">
  30707. </field>
  30708. <field name="previousSnapshot" type="java.util.Map"
  30709. transient="false" volatile="false"
  30710. static="false" final="false" visibility="protected"
  30711. deprecated="not deprecated">
  30712. </field>
  30713. <doc>
  30714. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  30715. quantiles with provably low error bounds. This is particularly useful for
  30716. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  30717. </doc>
  30718. </class>
  30719. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  30720. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  30721. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  30722. abstract="false"
  30723. static="false" final="false" visibility="public"
  30724. deprecated="not deprecated">
  30725. <doc>
  30726. <![CDATA[A convenient mutable metric for throughput measurement]]>
  30727. </doc>
  30728. </class>
  30729. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  30730. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  30731. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30732. abstract="false"
  30733. static="false" final="false" visibility="public"
  30734. deprecated="not deprecated">
  30735. <method name="init"
  30736. abstract="false" native="false" synchronized="false"
  30737. static="false" final="false" visibility="public"
  30738. deprecated="not deprecated">
  30739. <param name="protocol" type="java.lang.Class"/>
  30740. <doc>
  30741. <![CDATA[Initialize the registry with all the methods in a protocol
  30742. so they all show up in the first snapshot.
  30743. Convenient for JMX implementations.
  30744. @param protocol the protocol class]]>
  30745. </doc>
  30746. </method>
  30747. <method name="add"
  30748. abstract="false" native="false" synchronized="false"
  30749. static="false" final="false" visibility="public"
  30750. deprecated="not deprecated">
  30751. <param name="name" type="java.lang.String"/>
  30752. <param name="elapsed" type="long"/>
  30753. <doc>
  30754. <![CDATA[Add a rate sample for a rate metric
  30755. @param name of the rate metric
  30756. @param elapsed time]]>
  30757. </doc>
  30758. </method>
  30759. <method name="snapshot"
  30760. abstract="false" native="false" synchronized="false"
  30761. static="false" final="false" visibility="public"
  30762. deprecated="not deprecated">
  30763. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30764. <param name="all" type="boolean"/>
  30765. </method>
  30766. <doc>
  30767. <![CDATA[Helper class to manage a group of mutable rate metrics
  30768. This class synchronizes all accesses to the metrics it
  30769. contains, so it should not be used in situations where
  30770. there is high contention on the metrics.
  30771. {@link MutableRatesWithAggregation} is preferable in that
  30772. situation.]]>
  30773. </doc>
  30774. </class>
  30775. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  30776. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  30777. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30778. abstract="false"
  30779. static="false" final="false" visibility="public"
  30780. deprecated="not deprecated">
  30781. <constructor name="MutableRatesWithAggregation"
  30782. static="false" final="false" visibility="public"
  30783. deprecated="not deprecated">
  30784. </constructor>
  30785. <method name="init"
  30786. abstract="false" native="false" synchronized="false"
  30787. static="false" final="false" visibility="public"
  30788. deprecated="not deprecated">
  30789. <param name="protocol" type="java.lang.Class"/>
  30790. <doc>
  30791. <![CDATA[Initialize the registry with all the methods in a protocol
  30792. so they all show up in the first snapshot.
  30793. Convenient for JMX implementations.
  30794. @param protocol the protocol class]]>
  30795. </doc>
  30796. </method>
  30797. <method name="init"
  30798. abstract="false" native="false" synchronized="false"
  30799. static="false" final="false" visibility="public"
  30800. deprecated="not deprecated">
  30801. <param name="names" type="java.lang.String[]"/>
  30802. <doc>
  30803. <![CDATA[Initialize the registry with all rate names passed in.
  30804. This is an alternative to the above init function since this metric
  30805. can be used more than just for rpc name.
  30806. @param names the array of all rate names]]>
  30807. </doc>
  30808. </method>
  30809. <method name="add"
  30810. abstract="false" native="false" synchronized="false"
  30811. static="false" final="false" visibility="public"
  30812. deprecated="not deprecated">
  30813. <param name="name" type="java.lang.String"/>
  30814. <param name="elapsed" type="long"/>
  30815. <doc>
  30816. <![CDATA[Add a rate sample for a rate metric.
  30817. @param name of the rate metric
  30818. @param elapsed time]]>
  30819. </doc>
  30820. </method>
  30821. <method name="snapshot"
  30822. abstract="false" native="false" synchronized="true"
  30823. static="false" final="false" visibility="public"
  30824. deprecated="not deprecated">
  30825. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30826. <param name="all" type="boolean"/>
  30827. </method>
  30828. <method name="init"
  30829. abstract="false" native="false" synchronized="false"
  30830. static="false" final="false" visibility="public"
  30831. deprecated="not deprecated">
  30832. <param name="protocol" type="java.lang.Class"/>
  30833. <param name="prefix" type="java.lang.String"/>
  30834. </method>
  30835. <doc>
  30836. <![CDATA[Helper class to manage a group of mutable rate metrics.
  30837. Each thread will maintain a local rate count, and upon snapshot,
  30838. these values will be aggregated into a global rate. This class
  30839. should only be used for long running threads, as any metrics
  30840. produced between the last snapshot and the death of a thread
  30841. will be lost. This allows for significantly higher concurrency
  30842. than {@link MutableRates}. See HADOOP-24420.]]>
  30843. </doc>
  30844. </class>
  30845. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  30846. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  30847. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30848. abstract="false"
  30849. static="false" final="false" visibility="public"
  30850. deprecated="not deprecated">
  30851. <implements name="java.io.Closeable"/>
  30852. <constructor name="MutableRollingAverages" type="java.lang.String"
  30853. static="false" final="false" visibility="public"
  30854. deprecated="not deprecated">
  30855. <doc>
  30856. <![CDATA[Constructor for {@link MutableRollingAverages}.
  30857. @param metricValueName input metricValueName.]]>
  30858. </doc>
  30859. </constructor>
  30860. <method name="snapshot"
  30861. abstract="false" native="false" synchronized="false"
  30862. static="false" final="false" visibility="public"
  30863. deprecated="not deprecated">
  30864. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  30865. <param name="all" type="boolean"/>
  30866. </method>
  30867. <method name="collectThreadLocalStates"
  30868. abstract="false" native="false" synchronized="false"
  30869. static="false" final="false" visibility="public"
  30870. deprecated="not deprecated">
  30871. <doc>
  30872. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  30873. </doc>
  30874. </method>
  30875. <method name="add"
  30876. abstract="false" native="false" synchronized="false"
  30877. static="false" final="false" visibility="public"
  30878. deprecated="not deprecated">
  30879. <param name="name" type="java.lang.String"/>
  30880. <param name="value" type="long"/>
  30881. <doc>
  30882. <![CDATA[@param name
  30883. name of metric
  30884. @param value
  30885. value of metric]]>
  30886. </doc>
  30887. </method>
  30888. <method name="close"
  30889. abstract="false" native="false" synchronized="false"
  30890. static="false" final="false" visibility="public"
  30891. deprecated="not deprecated">
  30892. <exception name="IOException" type="java.io.IOException"/>
  30893. </method>
  30894. <method name="getStats" return="java.util.Map"
  30895. abstract="false" native="false" synchronized="true"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. <param name="minSamples" type="long"/>
  30899. <doc>
  30900. <![CDATA[Retrieve a map of metric name {@literal ->} (aggregate).
  30901. Filter out entries that don't have at least minSamples.
  30902. @param minSamples input minSamples.
  30903. @return a map of peer DataNode Id to the average latency to that
  30904. node seen over the measurement period.]]>
  30905. </doc>
  30906. </method>
  30907. <method name="setRecordValidityMs"
  30908. abstract="false" native="false" synchronized="true"
  30909. static="false" final="false" visibility="public"
  30910. deprecated="not deprecated">
  30911. <param name="value" type="long"/>
  30912. <doc>
  30913. <![CDATA[Use for test only.
  30914. @param value input value.]]>
  30915. </doc>
  30916. </method>
  30917. <doc>
  30918. <![CDATA[<p>
  30919. This class maintains a group of rolling average metrics. It implements the
  30920. algorithm of rolling average, i.e. a number of sliding windows are kept to
  30921. roll over and evict old subsets of samples. Each window has a subset of
  30922. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  30923. and sub-totals in all windows will be aggregated to final-sum and final-total
  30924. used to compute final average, which is called rolling average.
  30925. </p>]]>
  30926. </doc>
  30927. </class>
  30928. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  30929. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  30930. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  30931. abstract="false"
  30932. static="false" final="false" visibility="public"
  30933. deprecated="not deprecated">
  30934. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  30935. static="false" final="false" visibility="public"
  30936. deprecated="not deprecated">
  30937. <doc>
  30938. <![CDATA[Construct a sample statistics metric
  30939. @param name of the metric
  30940. @param description of the metric
  30941. @param sampleName of the metric (e.g. "Ops")
  30942. @param valueName of the metric (e.g. "Time", "Latency")
  30943. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  30944. </doc>
  30945. </constructor>
  30946. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  30947. static="false" final="false" visibility="public"
  30948. deprecated="not deprecated">
  30949. <doc>
  30950. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  30951. @param name of the metric
  30952. @param description of the metric
  30953. @param sampleName of the metric (e.g. "Ops")
  30954. @param valueName of the metric (e.g. "Time", "Latency")]]>
  30955. </doc>
  30956. </constructor>
  30957. <method name="setExtended"
  30958. abstract="false" native="false" synchronized="true"
  30959. static="false" final="false" visibility="public"
  30960. deprecated="not deprecated">
  30961. <param name="extended" type="boolean"/>
  30962. <doc>
  30963. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  30964. @param extended enable/disable displaying extended stats]]>
  30965. </doc>
  30966. </method>
  30967. <method name="setUpdateTimeStamp"
  30968. abstract="false" native="false" synchronized="true"
  30969. static="false" final="false" visibility="public"
  30970. deprecated="not deprecated">
  30971. <param name="updateTimeStamp" type="boolean"/>
  30972. <doc>
  30973. <![CDATA[Set whether to update the snapshot time or not.
  30974. @param updateTimeStamp enable update stats snapshot timestamp]]>
  30975. </doc>
  30976. </method>
  30977. <method name="add"
  30978. abstract="false" native="false" synchronized="true"
  30979. static="false" final="false" visibility="public"
  30980. deprecated="not deprecated">
  30981. <param name="numSamples" type="long"/>
  30982. <param name="sum" type="long"/>
  30983. <doc>
  30984. <![CDATA[Add a number of samples and their sum to the running stat
  30985. Note that although use of this method will preserve accurate mean values,
  30986. large values for numSamples may result in inaccurate variance values due
  30987. to the use of a single step of the Welford method for variance calculation.
  30988. @param numSamples number of samples
  30989. @param sum of the samples]]>
  30990. </doc>
  30991. </method>
  30992. <method name="add"
  30993. abstract="false" native="false" synchronized="true"
  30994. static="false" final="false" visibility="public"
  30995. deprecated="not deprecated">
  30996. <param name="value" type="long"/>
  30997. <doc>
  30998. <![CDATA[Add a snapshot to the metric.
  30999. @param value of the metric]]>
  31000. </doc>
  31001. </method>
  31002. <method name="snapshot"
  31003. abstract="false" native="false" synchronized="true"
  31004. static="false" final="false" visibility="public"
  31005. deprecated="not deprecated">
  31006. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  31007. <param name="all" type="boolean"/>
  31008. </method>
  31009. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  31010. abstract="false" native="false" synchronized="false"
  31011. static="false" final="false" visibility="public"
  31012. deprecated="not deprecated">
  31013. <doc>
  31014. <![CDATA[Return a SampleStat object that supports
  31015. calls like StdDev and Mean.
  31016. @return SampleStat]]>
  31017. </doc>
  31018. </method>
  31019. <method name="resetMinMax"
  31020. abstract="false" native="false" synchronized="false"
  31021. static="false" final="false" visibility="public"
  31022. deprecated="not deprecated">
  31023. <doc>
  31024. <![CDATA[Reset the all time min max of the metric]]>
  31025. </doc>
  31026. </method>
  31027. <method name="getSnapshotTimeStamp" return="long"
  31028. abstract="false" native="false" synchronized="false"
  31029. static="false" final="false" visibility="public"
  31030. deprecated="not deprecated">
  31031. <doc>
  31032. <![CDATA[@return Return the SampleStat snapshot timestamp.]]>
  31033. </doc>
  31034. </method>
  31035. <method name="toString" return="java.lang.String"
  31036. abstract="false" native="false" synchronized="false"
  31037. static="false" final="false" visibility="public"
  31038. deprecated="not deprecated">
  31039. </method>
  31040. <doc>
  31041. <![CDATA[A mutable metric with stats.
  31042. Useful for keeping throughput/latency stats.]]>
  31043. </doc>
  31044. </class>
  31045. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  31046. </package>
  31047. <package name="org.apache.hadoop.metrics2.sink">
  31048. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  31049. <class name="FileSink" extends="java.lang.Object"
  31050. abstract="false"
  31051. static="false" final="false" visibility="public"
  31052. deprecated="not deprecated">
  31053. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  31054. <implements name="java.io.Closeable"/>
  31055. <constructor name="FileSink"
  31056. static="false" final="false" visibility="public"
  31057. deprecated="not deprecated">
  31058. </constructor>
  31059. <method name="init"
  31060. abstract="false" native="false" synchronized="false"
  31061. static="false" final="false" visibility="public"
  31062. deprecated="not deprecated">
  31063. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  31064. </method>
  31065. <method name="putMetrics"
  31066. abstract="false" native="false" synchronized="false"
  31067. static="false" final="false" visibility="public"
  31068. deprecated="not deprecated">
  31069. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31070. </method>
  31071. <method name="flush"
  31072. abstract="false" native="false" synchronized="false"
  31073. static="false" final="false" visibility="public"
  31074. deprecated="not deprecated">
  31075. </method>
  31076. <method name="close"
  31077. abstract="false" native="false" synchronized="false"
  31078. static="false" final="false" visibility="public"
  31079. deprecated="not deprecated">
  31080. <exception name="IOException" type="java.io.IOException"/>
  31081. </method>
  31082. <doc>
  31083. <![CDATA[A metrics sink that writes to a file]]>
  31084. </doc>
  31085. </class>
  31086. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  31087. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  31088. <class name="GraphiteSink" extends="java.lang.Object"
  31089. abstract="false"
  31090. static="false" final="false" visibility="public"
  31091. deprecated="not deprecated">
  31092. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  31093. <implements name="java.io.Closeable"/>
  31094. <constructor name="GraphiteSink"
  31095. static="false" final="false" visibility="public"
  31096. deprecated="not deprecated">
  31097. </constructor>
  31098. <method name="init"
  31099. abstract="false" native="false" synchronized="false"
  31100. static="false" final="false" visibility="public"
  31101. deprecated="not deprecated">
  31102. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  31103. </method>
  31104. <method name="putMetrics"
  31105. abstract="false" native="false" synchronized="false"
  31106. static="false" final="false" visibility="public"
  31107. deprecated="not deprecated">
  31108. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31109. </method>
  31110. <method name="flush"
  31111. abstract="false" native="false" synchronized="false"
  31112. static="false" final="false" visibility="public"
  31113. deprecated="not deprecated">
  31114. </method>
  31115. <method name="close"
  31116. abstract="false" native="false" synchronized="false"
  31117. static="false" final="false" visibility="public"
  31118. deprecated="not deprecated">
  31119. <exception name="IOException" type="java.io.IOException"/>
  31120. </method>
  31121. <doc>
  31122. <![CDATA[A metrics sink that writes to a Graphite server]]>
  31123. </doc>
  31124. </class>
  31125. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  31126. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  31127. <class name="RollingFileSystemSink" extends="java.lang.Object"
  31128. abstract="false"
  31129. static="false" final="false" visibility="public"
  31130. deprecated="not deprecated">
  31131. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  31132. <implements name="java.io.Closeable"/>
  31133. <constructor name="RollingFileSystemSink"
  31134. static="false" final="false" visibility="public"
  31135. deprecated="not deprecated">
  31136. <doc>
  31137. <![CDATA[Create an empty instance. Required for reflection.]]>
  31138. </doc>
  31139. </constructor>
  31140. <constructor name="RollingFileSystemSink" type="long, long"
  31141. static="false" final="false" visibility="protected"
  31142. deprecated="not deprecated">
  31143. <doc>
  31144. <![CDATA[Create an instance for testing.
  31145. @param flushIntervalMillis the roll interval in millis
  31146. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  31147. </doc>
  31148. </constructor>
  31149. <method name="init"
  31150. abstract="false" native="false" synchronized="false"
  31151. static="false" final="false" visibility="public"
  31152. deprecated="not deprecated">
  31153. <param name="metrics2Properties" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  31154. </method>
  31155. <method name="getRollInterval" return="long"
  31156. abstract="false" native="false" synchronized="false"
  31157. static="false" final="false" visibility="protected"
  31158. deprecated="not deprecated">
  31159. <doc>
  31160. <![CDATA[Extract the roll interval from the configuration and return it in
  31161. milliseconds.
  31162. @return the roll interval in millis]]>
  31163. </doc>
  31164. </method>
  31165. <method name="updateFlushTime"
  31166. abstract="false" native="false" synchronized="false"
  31167. static="false" final="false" visibility="protected"
  31168. deprecated="not deprecated">
  31169. <param name="now" type="java.util.Date"/>
  31170. <doc>
  31171. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  31172. an integer number of flush intervals, preserving the initial random offset.
  31173. @param now the current time]]>
  31174. </doc>
  31175. </method>
  31176. <method name="setInitialFlushTime"
  31177. abstract="false" native="false" synchronized="false"
  31178. static="false" final="false" visibility="protected"
  31179. deprecated="not deprecated">
  31180. <param name="now" type="java.util.Date"/>
  31181. <doc>
  31182. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  31183. flush will be an integer number of flush intervals past the beginning of
  31184. the current hour and will have a random offset added, up to
  31185. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  31186. past that can be used from which to calculate future flush times.
  31187. @param now the current time]]>
  31188. </doc>
  31189. </method>
  31190. <method name="putMetrics"
  31191. abstract="false" native="false" synchronized="false"
  31192. static="false" final="false" visibility="public"
  31193. deprecated="not deprecated">
  31194. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31195. </method>
  31196. <method name="flush"
  31197. abstract="false" native="false" synchronized="false"
  31198. static="false" final="false" visibility="public"
  31199. deprecated="not deprecated">
  31200. </method>
  31201. <method name="close"
  31202. abstract="false" native="false" synchronized="false"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. </method>
  31206. <field name="source" type="java.lang.String"
  31207. transient="false" volatile="false"
  31208. static="false" final="false" visibility="protected"
  31209. deprecated="not deprecated">
  31210. </field>
  31211. <field name="ignoreError" type="boolean"
  31212. transient="false" volatile="false"
  31213. static="false" final="false" visibility="protected"
  31214. deprecated="not deprecated">
  31215. </field>
  31216. <field name="allowAppend" type="boolean"
  31217. transient="false" volatile="false"
  31218. static="false" final="false" visibility="protected"
  31219. deprecated="not deprecated">
  31220. </field>
  31221. <field name="basePath" type="org.apache.hadoop.fs.Path"
  31222. transient="false" volatile="false"
  31223. static="false" final="false" visibility="protected"
  31224. deprecated="not deprecated">
  31225. </field>
  31226. <field name="rollIntervalMillis" type="long"
  31227. transient="false" volatile="false"
  31228. static="false" final="false" visibility="protected"
  31229. deprecated="not deprecated">
  31230. </field>
  31231. <field name="rollOffsetIntervalMillis" type="long"
  31232. transient="false" volatile="false"
  31233. static="false" final="false" visibility="protected"
  31234. deprecated="not deprecated">
  31235. </field>
  31236. <field name="nextFlush" type="java.util.Calendar"
  31237. transient="false" volatile="false"
  31238. static="false" final="false" visibility="protected"
  31239. deprecated="not deprecated">
  31240. </field>
  31241. <field name="forceFlush" type="boolean"
  31242. transient="false" volatile="false"
  31243. static="true" final="false" visibility="protected"
  31244. deprecated="not deprecated">
  31245. </field>
  31246. <field name="hasFlushed" type="boolean"
  31247. transient="false" volatile="true"
  31248. static="true" final="false" visibility="protected"
  31249. deprecated="not deprecated">
  31250. </field>
  31251. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  31252. transient="false" volatile="false"
  31253. static="true" final="false" visibility="protected"
  31254. deprecated="not deprecated">
  31255. </field>
  31256. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  31257. transient="false" volatile="false"
  31258. static="true" final="false" visibility="protected"
  31259. deprecated="not deprecated">
  31260. </field>
  31261. <doc>
  31262. <![CDATA[<p>This class is a metrics sink that uses
  31263. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  31264. roll interval a new directory will be created under the path specified by the
  31265. <code>basepath</code> property. All metrics will be logged to a file in the
  31266. current interval's directory in a file named &lt;hostname&gt;.log, where
  31267. &lt;hostname&gt; is the name of the host on which the metrics logging
  31268. process is running. The base path is set by the
  31269. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  31270. time zone used to create the current interval's directory name is GMT. If
  31271. the <code>basepath</code> property isn't specified, it will default to
  31272. &quot;/tmp&quot;, which is the temp directory on whatever default file
  31273. system is configured for the cluster.</p>
  31274. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  31275. property controls whether an exception is thrown when an error is encountered
  31276. writing a log file. The default value is <code>true</code>. When set to
  31277. <code>false</code>, file errors are quietly swallowed.</p>
  31278. <p>The <code>roll-interval</code> property sets the amount of time before
  31279. rolling the directory. The default value is 1 hour. The roll interval may
  31280. not be less than 1 minute. The property's value should be given as
  31281. <i>number unit</i>, where <i>number</i> is an integer value, and
  31282. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  31283. and <i>day</i>. The units are case insensitive and may be abbreviated or
  31284. plural. If no units are specified, hours are assumed. For example,
  31285. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  31286. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  31287. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  31288. bound on a random time interval (in milliseconds) that is used to delay
  31289. before the initial roll. All subsequent rolls will happen an integer
  31290. number of roll intervals after the initial roll, hence retaining the original
  31291. offset. The purpose of this property is to insert some variance in the roll
  31292. times so that large clusters using this sink on every node don't cause a
  31293. performance impact on HDFS by rolling simultaneously. The default value is
  31294. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  31295. millis should be no less than the number of sink instances times 5.
  31296. <p>The primary use of this class is for logging to HDFS. As it uses
  31297. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  31298. however, it can be used to write to the local file system, Amazon S3, or any
  31299. other supported file system. The base path for the sink will determine the
  31300. file system used. An unqualified path will write to the default file system
  31301. set by the configuration.</p>
  31302. <p>Not all file systems support the ability to append to files. In file
  31303. systems without the ability to append to files, only one writer can write to
  31304. a file at a time. To allow for concurrent writes from multiple daemons on a
  31305. single host, the <code>source</code> property is used to set unique headers
  31306. for the log files. The property should be set to the name of
  31307. the source daemon, e.g. <i>namenode</i>. The value of the
  31308. <code>source</code> property should typically be the same as the property's
  31309. prefix. If this property is not set, the source is taken to be
  31310. <i>unknown</i>.</p>
  31311. <p>Instead of appending to an existing file, by default the sink
  31312. will create a new file with a suffix of &quot;.&lt;n&gt;&quot;, where
  31313. <i>n</i> is the next lowest integer that isn't already used in a file name,
  31314. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  31315. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  31316. <p>For file systems that allow append, the sink supports appending to the
  31317. existing file instead. If the <code>allow-append</code> property is set to
  31318. true, the sink will instead append to the existing file on file systems that
  31319. support appends. By default, the <code>allow-append</code> property is
  31320. false.</p>
  31321. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  31322. there is a minimum acceptable number of data nodes. If the number of data
  31323. nodes drops below that minimum, the append will succeed, but reading the
  31324. data will fail with an IOException in the DataStreamer class. The minimum
  31325. number of data nodes required for a successful append is generally 2 or
  31326. 3.</p>
  31327. <p>Note also that when writing to HDFS, the file size information is not
  31328. updated until the file is closed (at the end of the interval) even though
  31329. the data is being written successfully. This is a known HDFS limitation that
  31330. exists because of the performance cost of updating the metadata. See
  31331. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  31332. <p>When using this sink in a secure (Kerberos) environment, two additional
  31333. properties must be set: <code>keytab-key</code> and
  31334. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  31335. which the keytab file can be found in the configuration, for example,
  31336. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  31337. contain the key by which the principal can be found in the configuration,
  31338. for example, <code>yarn.nodemanager.principal</code>.]]>
  31339. </doc>
  31340. </class>
  31341. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  31342. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  31343. <class name="StatsDSink" extends="java.lang.Object"
  31344. abstract="false"
  31345. static="false" final="false" visibility="public"
  31346. deprecated="not deprecated">
  31347. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  31348. <implements name="java.io.Closeable"/>
  31349. <constructor name="StatsDSink"
  31350. static="false" final="false" visibility="public"
  31351. deprecated="not deprecated">
  31352. </constructor>
  31353. <method name="init"
  31354. abstract="false" native="false" synchronized="false"
  31355. static="false" final="false" visibility="public"
  31356. deprecated="not deprecated">
  31357. <param name="conf" type="org.apache.commons.configuration2.SubsetConfiguration"/>
  31358. </method>
  31359. <method name="putMetrics"
  31360. abstract="false" native="false" synchronized="false"
  31361. static="false" final="false" visibility="public"
  31362. deprecated="not deprecated">
  31363. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31364. </method>
  31365. <method name="writeMetric"
  31366. abstract="false" native="false" synchronized="false"
  31367. static="false" final="false" visibility="public"
  31368. deprecated="not deprecated">
  31369. <param name="line" type="java.lang.String"/>
  31370. </method>
  31371. <method name="flush"
  31372. abstract="false" native="false" synchronized="false"
  31373. static="false" final="false" visibility="public"
  31374. deprecated="not deprecated">
  31375. </method>
  31376. <method name="close"
  31377. abstract="false" native="false" synchronized="false"
  31378. static="false" final="false" visibility="public"
  31379. deprecated="not deprecated">
  31380. <exception name="IOException" type="java.io.IOException"/>
  31381. </method>
  31382. <doc>
  31383. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  31384. This sink will produce metrics of the form
  31385. '[hostname].servicename.context.name.metricname:value|type'
  31386. where hostname is optional. This is useful when sending to
  31387. a daemon that is running on the localhost and will add the
  31388. hostname to the metric (such as the
  31389. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  31390. <br>
  31391. To configure this plugin, you will need to add the following
  31392. entries to your hadoop-metrics2.properties file:
  31393. <br>
  31394. <pre>
  31395. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  31396. [prefix].sink.statsd.server.host=
  31397. [prefix].sink.statsd.server.port=
  31398. [prefix].sink.statsd.skip.hostname=true|false (optional)
  31399. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  31400. </pre>]]>
  31401. </doc>
  31402. </class>
  31403. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  31404. </package>
  31405. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  31406. </package>
  31407. <package name="org.apache.hadoop.metrics2.source">
  31408. </package>
  31409. <package name="org.apache.hadoop.metrics2.util">
  31410. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  31411. <class name="MBeans" extends="java.lang.Object"
  31412. abstract="false"
  31413. static="false" final="true" visibility="public"
  31414. deprecated="not deprecated">
  31415. <method name="register" return="javax.management.ObjectName"
  31416. abstract="false" native="false" synchronized="false"
  31417. static="true" final="false" visibility="public"
  31418. deprecated="not deprecated">
  31419. <param name="serviceName" type="java.lang.String"/>
  31420. <param name="nameName" type="java.lang.String"/>
  31421. <param name="theMbean" type="java.lang.Object"/>
  31422. <doc>
  31423. <![CDATA[Register the MBean using our standard MBeanName format
  31424. "hadoop:service={@literal <serviceName>,name=<nameName>}"
  31425. Where the {@literal <serviceName> and <nameName>} are the supplied
  31426. parameters.
  31427. @param serviceName serviceName.
  31428. @param nameName nameName.
  31429. @param theMbean - the MBean to register
  31430. @return the named used to register the MBean]]>
  31431. </doc>
  31432. </method>
  31433. <method name="register" return="javax.management.ObjectName"
  31434. abstract="false" native="false" synchronized="false"
  31435. static="true" final="false" visibility="public"
  31436. deprecated="not deprecated">
  31437. <param name="serviceName" type="java.lang.String"/>
  31438. <param name="nameName" type="java.lang.String"/>
  31439. <param name="properties" type="java.util.Map"/>
  31440. <param name="theMbean" type="java.lang.Object"/>
  31441. <doc>
  31442. <![CDATA[Register the MBean using our standard MBeanName format
  31443. "hadoop:service={@literal <serviceName>,name=<nameName>}"
  31444. Where the {@literal <serviceName> and <nameName>} are the supplied
  31445. parameters.
  31446. @param serviceName serviceName.
  31447. @param nameName nameName.
  31448. @param properties - Key value pairs to define additional JMX ObjectName
  31449. properties.
  31450. @param theMbean - the MBean to register
  31451. @return the named used to register the MBean]]>
  31452. </doc>
  31453. </method>
  31454. <method name="getMbeanNameService" return="java.lang.String"
  31455. abstract="false" native="false" synchronized="false"
  31456. static="true" final="false" visibility="public"
  31457. deprecated="not deprecated">
  31458. <param name="objectName" type="javax.management.ObjectName"/>
  31459. </method>
  31460. <method name="getMbeanNameName" return="java.lang.String"
  31461. abstract="false" native="false" synchronized="false"
  31462. static="true" final="false" visibility="public"
  31463. deprecated="not deprecated">
  31464. <param name="objectName" type="javax.management.ObjectName"/>
  31465. </method>
  31466. <method name="unregister"
  31467. abstract="false" native="false" synchronized="false"
  31468. static="true" final="false" visibility="public"
  31469. deprecated="not deprecated">
  31470. <param name="mbeanName" type="javax.management.ObjectName"/>
  31471. </method>
  31472. <doc>
  31473. <![CDATA[This util class provides a method to register an MBean using
  31474. our standard naming convention as described in the doc
  31475. for {link {@link #register(String, String, Object)}.]]>
  31476. </doc>
  31477. </class>
  31478. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  31479. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  31480. <class name="MetricsCache" extends="java.lang.Object"
  31481. abstract="false"
  31482. static="false" final="false" visibility="public"
  31483. deprecated="not deprecated">
  31484. <constructor name="MetricsCache"
  31485. static="false" final="false" visibility="public"
  31486. deprecated="not deprecated">
  31487. </constructor>
  31488. <constructor name="MetricsCache" type="int"
  31489. static="false" final="false" visibility="public"
  31490. deprecated="not deprecated">
  31491. <doc>
  31492. <![CDATA[Construct a metrics cache
  31493. @param maxRecsPerName limit of the number records per record name]]>
  31494. </doc>
  31495. </constructor>
  31496. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  31497. abstract="false" native="false" synchronized="false"
  31498. static="false" final="false" visibility="public"
  31499. deprecated="not deprecated">
  31500. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31501. <param name="includingTags" type="boolean"/>
  31502. <doc>
  31503. <![CDATA[Update the cache and return the current cached record
  31504. @param mr the update record
  31505. @param includingTags cache tag values (for later lookup by name) if true
  31506. @return the updated cache record]]>
  31507. </doc>
  31508. </method>
  31509. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  31510. abstract="false" native="false" synchronized="false"
  31511. static="false" final="false" visibility="public"
  31512. deprecated="not deprecated">
  31513. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31514. <doc>
  31515. <![CDATA[Update the cache and return the current cache record
  31516. @param mr the update record
  31517. @return the updated cache record]]>
  31518. </doc>
  31519. </method>
  31520. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  31521. abstract="false" native="false" synchronized="false"
  31522. static="false" final="false" visibility="public"
  31523. deprecated="not deprecated">
  31524. <param name="name" type="java.lang.String"/>
  31525. <param name="tags" type="java.util.Collection"/>
  31526. <doc>
  31527. <![CDATA[Get the cached record
  31528. @param name of the record
  31529. @param tags of the record
  31530. @return the cached record or null]]>
  31531. </doc>
  31532. </method>
  31533. <doc>
  31534. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  31535. </doc>
  31536. </class>
  31537. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  31538. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  31539. <class name="Servers" extends="java.lang.Object"
  31540. abstract="false"
  31541. static="false" final="false" visibility="public"
  31542. deprecated="not deprecated">
  31543. <method name="parse" return="java.util.List"
  31544. abstract="false" native="false" synchronized="false"
  31545. static="true" final="false" visibility="public"
  31546. deprecated="not deprecated">
  31547. <param name="specs" type="java.lang.String"/>
  31548. <param name="defaultPort" type="int"/>
  31549. <doc>
  31550. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  31551. of the form <i>hostname</i> or <i>hostname:port</i>. If
  31552. the specs string is null, defaults to localhost:defaultPort.
  31553. @param specs server specs (see description)
  31554. @param defaultPort the default port if not specified
  31555. @return a list of InetSocketAddress objects.]]>
  31556. </doc>
  31557. </method>
  31558. <doc>
  31559. <![CDATA[Helpers to handle server addresses]]>
  31560. </doc>
  31561. </class>
  31562. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  31563. </package>
  31564. <package name="org.apache.hadoop.net">
  31565. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  31566. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  31567. abstract="true"
  31568. static="false" final="false" visibility="public"
  31569. deprecated="not deprecated">
  31570. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  31571. <implements name="org.apache.hadoop.conf.Configurable"/>
  31572. <constructor name="AbstractDNSToSwitchMapping"
  31573. static="false" final="false" visibility="protected"
  31574. deprecated="not deprecated">
  31575. <doc>
  31576. <![CDATA[Create an unconfigured instance]]>
  31577. </doc>
  31578. </constructor>
  31579. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  31580. static="false" final="false" visibility="protected"
  31581. deprecated="not deprecated">
  31582. <doc>
  31583. <![CDATA[Create an instance, caching the configuration file.
  31584. This constructor does not call {@link #setConf(Configuration)}; if
  31585. a subclass extracts information in that method, it must call it explicitly.
  31586. @param conf the configuration]]>
  31587. </doc>
  31588. </constructor>
  31589. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31590. abstract="false" native="false" synchronized="false"
  31591. static="false" final="false" visibility="public"
  31592. deprecated="not deprecated">
  31593. </method>
  31594. <method name="setConf"
  31595. abstract="false" native="false" synchronized="false"
  31596. static="false" final="false" visibility="public"
  31597. deprecated="not deprecated">
  31598. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31599. </method>
  31600. <method name="isSingleSwitch" return="boolean"
  31601. abstract="false" native="false" synchronized="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <doc>
  31605. <![CDATA[Predicate that indicates that the switch mapping is known to be
  31606. single-switch. The base class returns false: it assumes all mappings are
  31607. multi-rack. Subclasses may override this with methods that are more aware
  31608. of their topologies.
  31609. <p>
  31610. This method is used when parts of Hadoop need know whether to apply
  31611. single rack vs multi-rack policies, such as during block placement.
  31612. Such algorithms behave differently if they are on multi-switch systems.
  31613. </p>
  31614. @return true if the mapping thinks that it is on a single switch]]>
  31615. </doc>
  31616. </method>
  31617. <method name="getSwitchMap" return="java.util.Map"
  31618. abstract="false" native="false" synchronized="false"
  31619. static="false" final="false" visibility="public"
  31620. deprecated="not deprecated">
  31621. <doc>
  31622. <![CDATA[Get a copy of the map (for diagnostics)
  31623. @return a clone of the map or null for none known]]>
  31624. </doc>
  31625. </method>
  31626. <method name="dumpTopology" return="java.lang.String"
  31627. abstract="false" native="false" synchronized="false"
  31628. static="false" final="false" visibility="public"
  31629. deprecated="not deprecated">
  31630. <doc>
  31631. <![CDATA[Generate a string listing the switch mapping implementation,
  31632. the mapping for every known node and the number of nodes and
  31633. unique switches known about -each entry to a separate line.
  31634. @return a string that can be presented to the ops team or used in
  31635. debug messages.]]>
  31636. </doc>
  31637. </method>
  31638. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  31639. abstract="false" native="false" synchronized="false"
  31640. static="false" final="false" visibility="protected"
  31641. deprecated="not deprecated">
  31642. </method>
  31643. <method name="isMappingSingleSwitch" return="boolean"
  31644. abstract="false" native="false" synchronized="false"
  31645. static="true" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  31648. <doc>
  31649. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  31650. switch.
  31651. <p>
  31652. This predicate simply assumes that all mappings not derived from
  31653. this class are multi-switch.
  31654. @param mapping the mapping to query
  31655. @return true if the base class says it is single switch, or the mapping
  31656. is not derived from this class.]]>
  31657. </doc>
  31658. </method>
  31659. <doc>
  31660. <![CDATA[This is a base class for DNS to Switch mappings. <p> It is not mandatory to
  31661. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  31662. recommended, as it makes it easy for the Hadoop developers to add new methods
  31663. to this base class that are automatically picked up by all implementations.
  31664. <p>
  31665. This class does not extend the <code>Configured</code>
  31666. base class, and should not be changed to do so, as it causes problems
  31667. for subclasses. The constructor of the <code>Configured</code> calls
  31668. the {@link #setConf(Configuration)} method, which will call into the
  31669. subclasses before they have been fully constructed.]]>
  31670. </doc>
  31671. </class>
  31672. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  31673. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  31674. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  31675. abstract="false"
  31676. static="false" final="false" visibility="public"
  31677. deprecated="not deprecated">
  31678. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  31679. static="false" final="false" visibility="public"
  31680. deprecated="not deprecated">
  31681. <doc>
  31682. <![CDATA[cache a raw DNS mapping
  31683. @param rawMapping the raw mapping to cache]]>
  31684. </doc>
  31685. </constructor>
  31686. <method name="resolve" return="java.util.List"
  31687. abstract="false" native="false" synchronized="false"
  31688. static="false" final="false" visibility="public"
  31689. deprecated="not deprecated">
  31690. <param name="names" type="java.util.List"/>
  31691. </method>
  31692. <method name="getSwitchMap" return="java.util.Map"
  31693. abstract="false" native="false" synchronized="false"
  31694. static="false" final="false" visibility="public"
  31695. deprecated="not deprecated">
  31696. <doc>
  31697. <![CDATA[Get the (host x switch) map.
  31698. @return a copy of the cached map of hosts to rack]]>
  31699. </doc>
  31700. </method>
  31701. <method name="toString" return="java.lang.String"
  31702. abstract="false" native="false" synchronized="false"
  31703. static="false" final="false" visibility="public"
  31704. deprecated="not deprecated">
  31705. </method>
  31706. <method name="isSingleSwitch" return="boolean"
  31707. abstract="false" native="false" synchronized="false"
  31708. static="false" final="false" visibility="public"
  31709. deprecated="not deprecated">
  31710. <doc>
  31711. <![CDATA[Delegate the switch topology query to the raw mapping, via
  31712. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  31713. @return true iff the raw mapper is considered single-switch.]]>
  31714. </doc>
  31715. </method>
  31716. <method name="reloadCachedMappings"
  31717. abstract="false" native="false" synchronized="false"
  31718. static="false" final="false" visibility="public"
  31719. deprecated="not deprecated">
  31720. </method>
  31721. <method name="reloadCachedMappings"
  31722. abstract="false" native="false" synchronized="false"
  31723. static="false" final="false" visibility="public"
  31724. deprecated="not deprecated">
  31725. <param name="names" type="java.util.List"/>
  31726. </method>
  31727. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  31728. transient="false" volatile="false"
  31729. static="false" final="true" visibility="protected"
  31730. deprecated="not deprecated">
  31731. <doc>
  31732. <![CDATA[The uncached mapping]]>
  31733. </doc>
  31734. </field>
  31735. <doc>
  31736. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  31737. raw DNSToSwitchMapping and stores the resolved network location in
  31738. a cache. The following calls to a resolved network location
  31739. will get its location from the cache.]]>
  31740. </doc>
  31741. </class>
  31742. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  31743. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  31744. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  31745. abstract="false"
  31746. static="false" final="false" visibility="public"
  31747. deprecated="not deprecated">
  31748. <constructor name="ConnectTimeoutException" type="java.lang.String"
  31749. static="false" final="false" visibility="public"
  31750. deprecated="not deprecated">
  31751. </constructor>
  31752. <doc>
  31753. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  31754. if it times out while connecting to the remote host.]]>
  31755. </doc>
  31756. </class>
  31757. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  31758. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  31759. <interface name="DNSToSwitchMapping" abstract="true"
  31760. static="false" final="false" visibility="public"
  31761. deprecated="not deprecated">
  31762. <method name="resolve" return="java.util.List"
  31763. abstract="true" native="false" synchronized="false"
  31764. static="false" final="false" visibility="public"
  31765. deprecated="not deprecated">
  31766. <param name="names" type="java.util.List"/>
  31767. <doc>
  31768. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  31769. switch information (network paths). One-to-one correspondence must be
  31770. maintained between the elements in the lists.
  31771. Consider an element in the argument list - x.y.com. The switch information
  31772. that is returned must be a network path of the form /foo/rack,
  31773. where / is the root, and 'foo' is the switch where 'rack' is connected.
  31774. Note the hostname/ip-address is not part of the returned path.
  31775. The network topology of the cluster would determine the number of
  31776. components in the network path.
  31777. <p>
  31778. If a name cannot be resolved to a rack, the implementation
  31779. should return {@link NetworkTopology#DEFAULT_RACK}. This
  31780. is what the bundled implementations do, though it is not a formal requirement
  31781. @param names the list of hosts to resolve (can be empty)
  31782. @return list of resolved network paths.
  31783. If <i>names</i> is empty, the returned list is also empty]]>
  31784. </doc>
  31785. </method>
  31786. <method name="reloadCachedMappings"
  31787. abstract="true" native="false" synchronized="false"
  31788. static="false" final="false" visibility="public"
  31789. deprecated="not deprecated">
  31790. <doc>
  31791. <![CDATA[Reload all of the cached mappings.
  31792. If there is a cache, this method will clear it, so that future accesses
  31793. will get a chance to see the new data.]]>
  31794. </doc>
  31795. </method>
  31796. <method name="reloadCachedMappings"
  31797. abstract="true" native="false" synchronized="false"
  31798. static="false" final="false" visibility="public"
  31799. deprecated="not deprecated">
  31800. <param name="names" type="java.util.List"/>
  31801. <doc>
  31802. <![CDATA[Reload cached mappings on specific nodes.
  31803. If there is a cache on these nodes, this method will clear it, so that
  31804. future accesses will see updated data.
  31805. @param names input names.]]>
  31806. </doc>
  31807. </method>
  31808. <doc>
  31809. <![CDATA[An interface that must be implemented to allow pluggable
  31810. DNS-name/IP-address to RackID resolvers.]]>
  31811. </doc>
  31812. </interface>
  31813. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  31814. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  31815. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  31816. abstract="false"
  31817. static="false" final="false" visibility="public"
  31818. deprecated="not deprecated">
  31819. <constructor name="ScriptBasedMapping"
  31820. static="false" final="false" visibility="public"
  31821. deprecated="not deprecated">
  31822. <doc>
  31823. <![CDATA[Create an instance with the default configuration.
  31824. <p>
  31825. Calling {@link #setConf(Configuration)} will trigger a
  31826. re-evaluation of the configuration settings and so be used to
  31827. set up the mapping script.]]>
  31828. </doc>
  31829. </constructor>
  31830. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  31831. static="false" final="false" visibility="public"
  31832. deprecated="not deprecated">
  31833. <doc>
  31834. <![CDATA[Create an instance from the given raw mapping
  31835. @param rawMap raw DNSTOSwithMapping]]>
  31836. </doc>
  31837. </constructor>
  31838. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  31839. static="false" final="false" visibility="public"
  31840. deprecated="not deprecated">
  31841. <doc>
  31842. <![CDATA[Create an instance from the given configuration
  31843. @param conf configuration]]>
  31844. </doc>
  31845. </constructor>
  31846. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31847. abstract="false" native="false" synchronized="false"
  31848. static="false" final="false" visibility="public"
  31849. deprecated="not deprecated">
  31850. </method>
  31851. <method name="toString" return="java.lang.String"
  31852. abstract="false" native="false" synchronized="false"
  31853. static="false" final="false" visibility="public"
  31854. deprecated="not deprecated">
  31855. </method>
  31856. <method name="setConf"
  31857. abstract="false" native="false" synchronized="false"
  31858. static="false" final="false" visibility="public"
  31859. deprecated="not deprecated">
  31860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31861. <doc>
  31862. <![CDATA[{@inheritDoc}.
  31863. <p>
  31864. This will get called in the superclass constructor, so a check is needed
  31865. to ensure that the raw mapping is defined before trying to relaying a null
  31866. configuration.
  31867. </p>
  31868. @param conf input Configuration.]]>
  31869. </doc>
  31870. </method>
  31871. <field name="NO_SCRIPT" type="java.lang.String"
  31872. transient="false" volatile="false"
  31873. static="true" final="true" visibility="public"
  31874. deprecated="not deprecated">
  31875. <doc>
  31876. <![CDATA[Text used in the {@link #toString()} method if there is no string
  31877. {@value}]]>
  31878. </doc>
  31879. </field>
  31880. <doc>
  31881. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  31882. script configured via the
  31883. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  31884. <p>
  31885. It contains a static class <code>RawScriptBasedMapping</code> that performs
  31886. the work: reading the configuration parameters, executing any defined
  31887. script, handling errors and such like. The outer
  31888. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  31889. queries.
  31890. <p>
  31891. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  31892. true if and only if a script is defined.]]>
  31893. </doc>
  31894. </class>
  31895. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  31896. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  31897. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  31898. abstract="false"
  31899. static="false" final="false" visibility="public"
  31900. deprecated="not deprecated">
  31901. <implements name="org.apache.hadoop.conf.Configurable"/>
  31902. <constructor name="SocksSocketFactory"
  31903. static="false" final="false" visibility="public"
  31904. deprecated="not deprecated">
  31905. <doc>
  31906. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31907. </doc>
  31908. </constructor>
  31909. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  31910. static="false" final="false" visibility="public"
  31911. deprecated="not deprecated">
  31912. <doc>
  31913. <![CDATA[Constructor with a supplied Proxy
  31914. @param proxy the proxy to use to create sockets]]>
  31915. </doc>
  31916. </constructor>
  31917. <method name="createSocket" return="java.net.Socket"
  31918. abstract="false" native="false" synchronized="false"
  31919. static="false" final="false" visibility="public"
  31920. deprecated="not deprecated">
  31921. <exception name="IOException" type="java.io.IOException"/>
  31922. </method>
  31923. <method name="createSocket" return="java.net.Socket"
  31924. abstract="false" native="false" synchronized="false"
  31925. static="false" final="false" visibility="public"
  31926. deprecated="not deprecated">
  31927. <param name="addr" type="java.net.InetAddress"/>
  31928. <param name="port" type="int"/>
  31929. <exception name="IOException" type="java.io.IOException"/>
  31930. </method>
  31931. <method name="createSocket" return="java.net.Socket"
  31932. abstract="false" native="false" synchronized="false"
  31933. static="false" final="false" visibility="public"
  31934. deprecated="not deprecated">
  31935. <param name="addr" type="java.net.InetAddress"/>
  31936. <param name="port" type="int"/>
  31937. <param name="localHostAddr" type="java.net.InetAddress"/>
  31938. <param name="localPort" type="int"/>
  31939. <exception name="IOException" type="java.io.IOException"/>
  31940. </method>
  31941. <method name="createSocket" return="java.net.Socket"
  31942. abstract="false" native="false" synchronized="false"
  31943. static="false" final="false" visibility="public"
  31944. deprecated="not deprecated">
  31945. <param name="host" type="java.lang.String"/>
  31946. <param name="port" type="int"/>
  31947. <exception name="IOException" type="java.io.IOException"/>
  31948. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31949. </method>
  31950. <method name="createSocket" return="java.net.Socket"
  31951. abstract="false" native="false" synchronized="false"
  31952. static="false" final="false" visibility="public"
  31953. deprecated="not deprecated">
  31954. <param name="host" type="java.lang.String"/>
  31955. <param name="port" type="int"/>
  31956. <param name="localHostAddr" type="java.net.InetAddress"/>
  31957. <param name="localPort" type="int"/>
  31958. <exception name="IOException" type="java.io.IOException"/>
  31959. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31960. </method>
  31961. <method name="hashCode" return="int"
  31962. abstract="false" native="false" synchronized="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. </method>
  31966. <method name="equals" return="boolean"
  31967. abstract="false" native="false" synchronized="false"
  31968. static="false" final="false" visibility="public"
  31969. deprecated="not deprecated">
  31970. <param name="obj" type="java.lang.Object"/>
  31971. </method>
  31972. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31973. abstract="false" native="false" synchronized="false"
  31974. static="false" final="false" visibility="public"
  31975. deprecated="not deprecated">
  31976. </method>
  31977. <method name="setConf"
  31978. abstract="false" native="false" synchronized="false"
  31979. static="false" final="false" visibility="public"
  31980. deprecated="not deprecated">
  31981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31982. </method>
  31983. <doc>
  31984. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31985. </doc>
  31986. </class>
  31987. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  31988. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  31989. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  31990. abstract="false"
  31991. static="false" final="false" visibility="public"
  31992. deprecated="not deprecated">
  31993. <constructor name="StandardSocketFactory"
  31994. static="false" final="false" visibility="public"
  31995. deprecated="not deprecated">
  31996. <doc>
  31997. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31998. </doc>
  31999. </constructor>
  32000. <method name="createSocket" return="java.net.Socket"
  32001. abstract="false" native="false" synchronized="false"
  32002. static="false" final="false" visibility="public"
  32003. deprecated="not deprecated">
  32004. <exception name="IOException" type="java.io.IOException"/>
  32005. </method>
  32006. <method name="createSocket" return="java.net.Socket"
  32007. abstract="false" native="false" synchronized="false"
  32008. static="false" final="false" visibility="public"
  32009. deprecated="not deprecated">
  32010. <param name="addr" type="java.net.InetAddress"/>
  32011. <param name="port" type="int"/>
  32012. <exception name="IOException" type="java.io.IOException"/>
  32013. </method>
  32014. <method name="createSocket" return="java.net.Socket"
  32015. abstract="false" native="false" synchronized="false"
  32016. static="false" final="false" visibility="public"
  32017. deprecated="not deprecated">
  32018. <param name="addr" type="java.net.InetAddress"/>
  32019. <param name="port" type="int"/>
  32020. <param name="localHostAddr" type="java.net.InetAddress"/>
  32021. <param name="localPort" type="int"/>
  32022. <exception name="IOException" type="java.io.IOException"/>
  32023. </method>
  32024. <method name="createSocket" return="java.net.Socket"
  32025. abstract="false" native="false" synchronized="false"
  32026. static="false" final="false" visibility="public"
  32027. deprecated="not deprecated">
  32028. <param name="host" type="java.lang.String"/>
  32029. <param name="port" type="int"/>
  32030. <exception name="IOException" type="java.io.IOException"/>
  32031. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  32032. </method>
  32033. <method name="createSocket" return="java.net.Socket"
  32034. abstract="false" native="false" synchronized="false"
  32035. static="false" final="false" visibility="public"
  32036. deprecated="not deprecated">
  32037. <param name="host" type="java.lang.String"/>
  32038. <param name="port" type="int"/>
  32039. <param name="localHostAddr" type="java.net.InetAddress"/>
  32040. <param name="localPort" type="int"/>
  32041. <exception name="IOException" type="java.io.IOException"/>
  32042. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  32043. </method>
  32044. <method name="equals" return="boolean"
  32045. abstract="false" native="false" synchronized="false"
  32046. static="false" final="false" visibility="public"
  32047. deprecated="not deprecated">
  32048. <param name="obj" type="java.lang.Object"/>
  32049. </method>
  32050. <method name="hashCode" return="int"
  32051. abstract="false" native="false" synchronized="false"
  32052. static="false" final="false" visibility="public"
  32053. deprecated="not deprecated">
  32054. </method>
  32055. <doc>
  32056. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  32057. </doc>
  32058. </class>
  32059. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  32060. <!-- start class org.apache.hadoop.net.TableMapping -->
  32061. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  32062. abstract="false"
  32063. static="false" final="false" visibility="public"
  32064. deprecated="not deprecated">
  32065. <constructor name="TableMapping"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. </constructor>
  32069. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  32070. abstract="false" native="false" synchronized="false"
  32071. static="false" final="false" visibility="public"
  32072. deprecated="not deprecated">
  32073. </method>
  32074. <method name="setConf"
  32075. abstract="false" native="false" synchronized="false"
  32076. static="false" final="false" visibility="public"
  32077. deprecated="not deprecated">
  32078. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32079. </method>
  32080. <method name="reloadCachedMappings"
  32081. abstract="false" native="false" synchronized="false"
  32082. static="false" final="false" visibility="public"
  32083. deprecated="not deprecated">
  32084. </method>
  32085. <doc>
  32086. <![CDATA[<p>
  32087. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  32088. file. The columns are separated by whitespace. The first column is a DNS or
  32089. IP address and the second column specifies the rack where the address maps.
  32090. </p>
  32091. <p>
  32092. This class uses the configuration parameter {@code
  32093. net.topology.table.file.name} to locate the mapping file.
  32094. </p>
  32095. <p>
  32096. Calls to {@link #resolve(List)} will look up the address as defined in the
  32097. mapping file. If no entry corresponding to the address is found, the value
  32098. {@code /default-rack} is returned.
  32099. </p>]]>
  32100. </doc>
  32101. </class>
  32102. <!-- end class org.apache.hadoop.net.TableMapping -->
  32103. </package>
  32104. <package name="org.apache.hadoop.net.unix">
  32105. </package>
  32106. <package name="org.apache.hadoop.security">
  32107. <!-- start class org.apache.hadoop.security.AccessControlException -->
  32108. <class name="AccessControlException" extends="java.io.IOException"
  32109. abstract="false"
  32110. static="false" final="false" visibility="public"
  32111. deprecated="not deprecated">
  32112. <constructor name="AccessControlException"
  32113. static="false" final="false" visibility="public"
  32114. deprecated="not deprecated">
  32115. <doc>
  32116. <![CDATA[Default constructor is needed for unwrapping from
  32117. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  32118. </doc>
  32119. </constructor>
  32120. <constructor name="AccessControlException" type="java.lang.String"
  32121. static="false" final="false" visibility="public"
  32122. deprecated="not deprecated">
  32123. <doc>
  32124. <![CDATA[Constructs an {@link AccessControlException}
  32125. with the specified detail message.
  32126. @param s the detail message.]]>
  32127. </doc>
  32128. </constructor>
  32129. <constructor name="AccessControlException" type="java.lang.Throwable"
  32130. static="false" final="false" visibility="public"
  32131. deprecated="not deprecated">
  32132. <doc>
  32133. <![CDATA[Constructs a new exception with the specified cause and a detail
  32134. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32135. typically contains the class and detail message of <tt>cause</tt>).
  32136. @param cause the cause (which is saved for later retrieval by the
  32137. {@link #getCause()} method). (A <tt>null</tt> value is
  32138. permitted, and indicates that the cause is nonexistent or
  32139. unknown.)]]>
  32140. </doc>
  32141. </constructor>
  32142. <doc>
  32143. <![CDATA[An exception class for access control related issues.]]>
  32144. </doc>
  32145. </class>
  32146. <!-- end class org.apache.hadoop.security.AccessControlException -->
  32147. <!-- start class org.apache.hadoop.security.Credentials -->
  32148. <class name="Credentials" extends="java.lang.Object"
  32149. abstract="false"
  32150. static="false" final="false" visibility="public"
  32151. deprecated="not deprecated">
  32152. <implements name="org.apache.hadoop.io.Writable"/>
  32153. <constructor name="Credentials"
  32154. static="false" final="false" visibility="public"
  32155. deprecated="not deprecated">
  32156. <doc>
  32157. <![CDATA[Create an empty credentials instance.]]>
  32158. </doc>
  32159. </constructor>
  32160. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  32161. static="false" final="false" visibility="public"
  32162. deprecated="not deprecated">
  32163. <doc>
  32164. <![CDATA[Create a copy of the given credentials.
  32165. @param credentials to copy]]>
  32166. </doc>
  32167. </constructor>
  32168. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  32169. abstract="false" native="false" synchronized="false"
  32170. static="false" final="false" visibility="public"
  32171. deprecated="not deprecated">
  32172. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32173. <doc>
  32174. <![CDATA[Returns the Token object for the alias.
  32175. @param alias the alias for the Token
  32176. @return token for this alias]]>
  32177. </doc>
  32178. </method>
  32179. <method name="addToken"
  32180. abstract="false" native="false" synchronized="false"
  32181. static="false" final="false" visibility="public"
  32182. deprecated="not deprecated">
  32183. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32184. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  32185. <doc>
  32186. <![CDATA[Add a token in the storage (in memory).
  32187. @param alias the alias for the key
  32188. @param t the token object]]>
  32189. </doc>
  32190. </method>
  32191. <method name="getAllTokens" return="java.util.Collection"
  32192. abstract="false" native="false" synchronized="false"
  32193. static="false" final="false" visibility="public"
  32194. deprecated="not deprecated">
  32195. <doc>
  32196. <![CDATA[Return all the tokens in the in-memory map.
  32197. @return all the tokens in the in-memory map.]]>
  32198. </doc>
  32199. </method>
  32200. <method name="getTokenMap" return="java.util.Map"
  32201. abstract="false" native="false" synchronized="false"
  32202. static="false" final="false" visibility="public"
  32203. deprecated="not deprecated">
  32204. <doc>
  32205. <![CDATA[Returns an unmodifiable version of the full map of aliases to Tokens.
  32206. @return TokenMap.]]>
  32207. </doc>
  32208. </method>
  32209. <method name="numberOfTokens" return="int"
  32210. abstract="false" native="false" synchronized="false"
  32211. static="false" final="false" visibility="public"
  32212. deprecated="not deprecated">
  32213. <doc>
  32214. <![CDATA[@return number of Tokens in the in-memory map]]>
  32215. </doc>
  32216. </method>
  32217. <method name="getSecretKey" return="byte[]"
  32218. abstract="false" native="false" synchronized="false"
  32219. static="false" final="false" visibility="public"
  32220. deprecated="not deprecated">
  32221. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32222. <doc>
  32223. <![CDATA[Returns the key bytes for the alias.
  32224. @param alias the alias for the key
  32225. @return key for this alias]]>
  32226. </doc>
  32227. </method>
  32228. <method name="numberOfSecretKeys" return="int"
  32229. abstract="false" native="false" synchronized="false"
  32230. static="false" final="false" visibility="public"
  32231. deprecated="not deprecated">
  32232. <doc>
  32233. <![CDATA[@return number of keys in the in-memory map]]>
  32234. </doc>
  32235. </method>
  32236. <method name="addSecretKey"
  32237. abstract="false" native="false" synchronized="false"
  32238. static="false" final="false" visibility="public"
  32239. deprecated="not deprecated">
  32240. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32241. <param name="key" type="byte[]"/>
  32242. <doc>
  32243. <![CDATA[Set the key for an alias.
  32244. @param alias the alias for the key
  32245. @param key the key bytes]]>
  32246. </doc>
  32247. </method>
  32248. <method name="removeSecretKey"
  32249. abstract="false" native="false" synchronized="false"
  32250. static="false" final="false" visibility="public"
  32251. deprecated="not deprecated">
  32252. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32253. <doc>
  32254. <![CDATA[Remove the key for a given alias.
  32255. @param alias the alias for the key]]>
  32256. </doc>
  32257. </method>
  32258. <method name="getAllSecretKeys" return="java.util.List"
  32259. abstract="false" native="false" synchronized="false"
  32260. static="false" final="false" visibility="public"
  32261. deprecated="not deprecated">
  32262. <doc>
  32263. <![CDATA[Return all the secret key entries in the in-memory map.
  32264. @return Text List.]]>
  32265. </doc>
  32266. </method>
  32267. <method name="getSecretKeyMap" return="java.util.Map"
  32268. abstract="false" native="false" synchronized="false"
  32269. static="false" final="false" visibility="public"
  32270. deprecated="not deprecated">
  32271. <doc>
  32272. <![CDATA[Returns an unmodifiable version of the full map of aliases to secret keys.
  32273. @return SecretKeyMap.]]>
  32274. </doc>
  32275. </method>
  32276. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  32277. abstract="false" native="false" synchronized="false"
  32278. static="true" final="false" visibility="public"
  32279. deprecated="not deprecated">
  32280. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32281. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32282. <exception name="IOException" type="java.io.IOException"/>
  32283. <doc>
  32284. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  32285. @param filename filename.
  32286. @param conf configuration.
  32287. @throws IOException raised on errors performing I/O.
  32288. @return Credentials.]]>
  32289. </doc>
  32290. </method>
  32291. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  32292. abstract="false" native="false" synchronized="false"
  32293. static="true" final="false" visibility="public"
  32294. deprecated="not deprecated">
  32295. <param name="filename" type="java.io.File"/>
  32296. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32297. <exception name="IOException" type="java.io.IOException"/>
  32298. <doc>
  32299. <![CDATA[Convenience method for reading a token storage file and loading its Tokens.
  32300. @param filename filename.
  32301. @param conf configuration.
  32302. @throws IOException raised on errors performing I/O.
  32303. @return Token.]]>
  32304. </doc>
  32305. </method>
  32306. <method name="readTokenStorageStream"
  32307. abstract="false" native="false" synchronized="false"
  32308. static="false" final="false" visibility="public"
  32309. deprecated="not deprecated">
  32310. <param name="in" type="java.io.DataInputStream"/>
  32311. <exception name="IOException" type="java.io.IOException"/>
  32312. <doc>
  32313. <![CDATA[Convenience method for reading a token from a DataInputStream.
  32314. @param in DataInputStream.
  32315. @throws IOException raised on errors performing I/O.]]>
  32316. </doc>
  32317. </method>
  32318. <method name="writeTokenStorageToStream"
  32319. abstract="false" native="false" synchronized="false"
  32320. static="false" final="false" visibility="public"
  32321. deprecated="not deprecated">
  32322. <param name="os" type="java.io.DataOutputStream"/>
  32323. <exception name="IOException" type="java.io.IOException"/>
  32324. </method>
  32325. <method name="writeTokenStorageToStream"
  32326. abstract="false" native="false" synchronized="false"
  32327. static="false" final="false" visibility="public"
  32328. deprecated="not deprecated">
  32329. <param name="os" type="java.io.DataOutputStream"/>
  32330. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  32331. <exception name="IOException" type="java.io.IOException"/>
  32332. </method>
  32333. <method name="writeTokenStorageFile"
  32334. abstract="false" native="false" synchronized="false"
  32335. static="false" final="false" visibility="public"
  32336. deprecated="not deprecated">
  32337. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32338. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32339. <exception name="IOException" type="java.io.IOException"/>
  32340. </method>
  32341. <method name="writeTokenStorageFile"
  32342. abstract="false" native="false" synchronized="false"
  32343. static="false" final="false" visibility="public"
  32344. deprecated="not deprecated">
  32345. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32346. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32347. <param name="format" type="org.apache.hadoop.security.Credentials.SerializedFormat"/>
  32348. <exception name="IOException" type="java.io.IOException"/>
  32349. </method>
  32350. <method name="write"
  32351. abstract="false" native="false" synchronized="false"
  32352. static="false" final="false" visibility="public"
  32353. deprecated="not deprecated">
  32354. <param name="out" type="java.io.DataOutput"/>
  32355. <exception name="IOException" type="java.io.IOException"/>
  32356. <doc>
  32357. <![CDATA[Stores all the keys to DataOutput.
  32358. @param out DataOutput.
  32359. @throws IOException raised on errors performing I/O.]]>
  32360. </doc>
  32361. </method>
  32362. <method name="readFields"
  32363. abstract="false" native="false" synchronized="false"
  32364. static="false" final="false" visibility="public"
  32365. deprecated="not deprecated">
  32366. <param name="in" type="java.io.DataInput"/>
  32367. <exception name="IOException" type="java.io.IOException"/>
  32368. <doc>
  32369. <![CDATA[Loads all the keys.
  32370. @param in DataInput.
  32371. @throws IOException raised on errors performing I/O.]]>
  32372. </doc>
  32373. </method>
  32374. <method name="addAll"
  32375. abstract="false" native="false" synchronized="false"
  32376. static="false" final="false" visibility="public"
  32377. deprecated="not deprecated">
  32378. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  32379. <doc>
  32380. <![CDATA[Copy all of the credentials from one credential object into another.
  32381. Existing secrets and tokens are overwritten.
  32382. @param other the credentials to copy]]>
  32383. </doc>
  32384. </method>
  32385. <method name="mergeAll"
  32386. abstract="false" native="false" synchronized="false"
  32387. static="false" final="false" visibility="public"
  32388. deprecated="not deprecated">
  32389. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  32390. <doc>
  32391. <![CDATA[Copy all of the credentials from one credential object into another.
  32392. Existing secrets and tokens are not overwritten.
  32393. @param other the credentials to copy]]>
  32394. </doc>
  32395. </method>
  32396. <doc>
  32397. <![CDATA[A class that provides the facilities of reading and writing
  32398. secret keys and Tokens.]]>
  32399. </doc>
  32400. </class>
  32401. <!-- end class org.apache.hadoop.security.Credentials -->
  32402. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  32403. <interface name="GroupMappingServiceProvider" abstract="true"
  32404. static="false" final="false" visibility="public"
  32405. deprecated="not deprecated">
  32406. <method name="getGroups" return="java.util.List"
  32407. abstract="true" native="false" synchronized="false"
  32408. static="false" final="false" visibility="public"
  32409. deprecated="not deprecated">
  32410. <param name="user" type="java.lang.String"/>
  32411. <exception name="IOException" type="java.io.IOException"/>
  32412. <doc>
  32413. <![CDATA[Get all various group memberships of a given user.
  32414. Returns EMPTY list in case of non-existing user
  32415. @param user User's name
  32416. @return group memberships of user
  32417. @throws IOException raised on errors performing I/O.]]>
  32418. </doc>
  32419. </method>
  32420. <method name="cacheGroupsRefresh"
  32421. abstract="true" native="false" synchronized="false"
  32422. static="false" final="false" visibility="public"
  32423. deprecated="not deprecated">
  32424. <exception name="IOException" type="java.io.IOException"/>
  32425. <doc>
  32426. <![CDATA[Refresh the cache of groups and user mapping
  32427. @throws IOException raised on errors performing I/O.]]>
  32428. </doc>
  32429. </method>
  32430. <method name="cacheGroupsAdd"
  32431. abstract="true" native="false" synchronized="false"
  32432. static="false" final="false" visibility="public"
  32433. deprecated="not deprecated">
  32434. <param name="groups" type="java.util.List"/>
  32435. <exception name="IOException" type="java.io.IOException"/>
  32436. <doc>
  32437. <![CDATA[Caches the group user information
  32438. @param groups list of groups to add to cache
  32439. @throws IOException raised on errors performing I/O.]]>
  32440. </doc>
  32441. </method>
  32442. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  32443. transient="false" volatile="false"
  32444. static="true" final="true" visibility="public"
  32445. deprecated="not deprecated">
  32446. </field>
  32447. <doc>
  32448. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  32449. used by {@link Groups}.]]>
  32450. </doc>
  32451. </interface>
  32452. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  32453. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  32454. <interface name="IdMappingServiceProvider" abstract="true"
  32455. static="false" final="false" visibility="public"
  32456. deprecated="not deprecated">
  32457. <method name="getUid" return="int"
  32458. abstract="true" native="false" synchronized="false"
  32459. static="false" final="false" visibility="public"
  32460. deprecated="not deprecated">
  32461. <param name="user" type="java.lang.String"/>
  32462. <exception name="IOException" type="java.io.IOException"/>
  32463. </method>
  32464. <method name="getGid" return="int"
  32465. abstract="true" native="false" synchronized="false"
  32466. static="false" final="false" visibility="public"
  32467. deprecated="not deprecated">
  32468. <param name="group" type="java.lang.String"/>
  32469. <exception name="IOException" type="java.io.IOException"/>
  32470. </method>
  32471. <method name="getUserName" return="java.lang.String"
  32472. abstract="true" native="false" synchronized="false"
  32473. static="false" final="false" visibility="public"
  32474. deprecated="not deprecated">
  32475. <param name="uid" type="int"/>
  32476. <param name="unknown" type="java.lang.String"/>
  32477. </method>
  32478. <method name="getGroupName" return="java.lang.String"
  32479. abstract="true" native="false" synchronized="false"
  32480. static="false" final="false" visibility="public"
  32481. deprecated="not deprecated">
  32482. <param name="gid" type="int"/>
  32483. <param name="unknown" type="java.lang.String"/>
  32484. </method>
  32485. <method name="getUidAllowingUnknown" return="int"
  32486. abstract="true" native="false" synchronized="false"
  32487. static="false" final="false" visibility="public"
  32488. deprecated="not deprecated">
  32489. <param name="user" type="java.lang.String"/>
  32490. </method>
  32491. <method name="getGidAllowingUnknown" return="int"
  32492. abstract="true" native="false" synchronized="false"
  32493. static="false" final="false" visibility="public"
  32494. deprecated="not deprecated">
  32495. <param name="group" type="java.lang.String"/>
  32496. </method>
  32497. <doc>
  32498. <![CDATA[An interface for the implementation of {@literal <}userId,
  32499. userName{@literal >} mapping and {@literal <}groupId, groupName{@literal >}
  32500. mapping.]]>
  32501. </doc>
  32502. </interface>
  32503. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  32504. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  32505. <class name="KerberosAuthException" extends="java.io.IOException"
  32506. abstract="false"
  32507. static="false" final="false" visibility="public"
  32508. deprecated="not deprecated">
  32509. <constructor name="KerberosAuthException" type="java.lang.String"
  32510. static="false" final="false" visibility="public"
  32511. deprecated="not deprecated">
  32512. </constructor>
  32513. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  32514. static="false" final="false" visibility="public"
  32515. deprecated="not deprecated">
  32516. </constructor>
  32517. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  32518. static="false" final="false" visibility="public"
  32519. deprecated="not deprecated">
  32520. </constructor>
  32521. <method name="setUser"
  32522. abstract="false" native="false" synchronized="false"
  32523. static="false" final="false" visibility="public"
  32524. deprecated="not deprecated">
  32525. <param name="u" type="java.lang.String"/>
  32526. </method>
  32527. <method name="setPrincipal"
  32528. abstract="false" native="false" synchronized="false"
  32529. static="false" final="false" visibility="public"
  32530. deprecated="not deprecated">
  32531. <param name="p" type="java.lang.String"/>
  32532. </method>
  32533. <method name="setKeytabFile"
  32534. abstract="false" native="false" synchronized="false"
  32535. static="false" final="false" visibility="public"
  32536. deprecated="not deprecated">
  32537. <param name="k" type="java.lang.String"/>
  32538. </method>
  32539. <method name="setTicketCacheFile"
  32540. abstract="false" native="false" synchronized="false"
  32541. static="false" final="false" visibility="public"
  32542. deprecated="not deprecated">
  32543. <param name="t" type="java.lang.String"/>
  32544. </method>
  32545. <method name="getInitialMessage" return="java.lang.String"
  32546. abstract="false" native="false" synchronized="false"
  32547. static="false" final="false" visibility="public"
  32548. deprecated="not deprecated">
  32549. <doc>
  32550. <![CDATA[@return The initial message, or null if not set.]]>
  32551. </doc>
  32552. </method>
  32553. <method name="getKeytabFile" return="java.lang.String"
  32554. abstract="false" native="false" synchronized="false"
  32555. static="false" final="false" visibility="public"
  32556. deprecated="not deprecated">
  32557. <doc>
  32558. <![CDATA[@return The keytab file path, or null if not set.]]>
  32559. </doc>
  32560. </method>
  32561. <method name="getPrincipal" return="java.lang.String"
  32562. abstract="false" native="false" synchronized="false"
  32563. static="false" final="false" visibility="public"
  32564. deprecated="not deprecated">
  32565. <doc>
  32566. <![CDATA[@return The principal, or null if not set.]]>
  32567. </doc>
  32568. </method>
  32569. <method name="getTicketCacheFile" return="java.lang.String"
  32570. abstract="false" native="false" synchronized="false"
  32571. static="false" final="false" visibility="public"
  32572. deprecated="not deprecated">
  32573. <doc>
  32574. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  32575. </doc>
  32576. </method>
  32577. <method name="getUser" return="java.lang.String"
  32578. abstract="false" native="false" synchronized="false"
  32579. static="false" final="false" visibility="public"
  32580. deprecated="not deprecated">
  32581. <doc>
  32582. <![CDATA[@return The user, or null if not set.]]>
  32583. </doc>
  32584. </method>
  32585. <method name="getMessage" return="java.lang.String"
  32586. abstract="false" native="false" synchronized="false"
  32587. static="false" final="false" visibility="public"
  32588. deprecated="not deprecated">
  32589. </method>
  32590. <doc>
  32591. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  32592. such as failure in kerberos login/logout, invalid subject etc.
  32593. Caller should not retry when catching this exception.]]>
  32594. </doc>
  32595. </class>
  32596. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  32597. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  32598. <class name="SecurityUtil" extends="java.lang.Object"
  32599. abstract="false"
  32600. static="false" final="true" visibility="public"
  32601. deprecated="not deprecated">
  32602. <method name="setConfiguration"
  32603. abstract="false" native="false" synchronized="false"
  32604. static="true" final="false" visibility="public"
  32605. deprecated="not deprecated">
  32606. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32607. </method>
  32608. <method name="isOriginalTGT" return="boolean"
  32609. abstract="false" native="false" synchronized="false"
  32610. static="true" final="false" visibility="protected"
  32611. deprecated="not deprecated">
  32612. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  32613. <doc>
  32614. <![CDATA[Check whether the server principal is the TGS's principal
  32615. @param ticket the original TGT (the ticket that is obtained when a
  32616. kinit is done)
  32617. @return true or false]]>
  32618. </doc>
  32619. </method>
  32620. <method name="getServerPrincipal" return="java.lang.String"
  32621. abstract="false" native="false" synchronized="false"
  32622. static="true" final="false" visibility="public"
  32623. deprecated="not deprecated">
  32624. <param name="principalConfig" type="java.lang.String"/>
  32625. <param name="hostname" type="java.lang.String"/>
  32626. <exception name="IOException" type="java.io.IOException"/>
  32627. <doc>
  32628. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  32629. names. It replaces hostname pattern with hostname, which should be
  32630. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  32631. dynamically looked-up fqdn of the current host instead.
  32632. @param principalConfig
  32633. the Kerberos principal name conf value to convert
  32634. @param hostname
  32635. the fully-qualified domain name used for substitution
  32636. @return converted Kerberos principal name
  32637. @throws IOException if the client address cannot be determined]]>
  32638. </doc>
  32639. </method>
  32640. <method name="getServerPrincipal" return="java.lang.String"
  32641. abstract="false" native="false" synchronized="false"
  32642. static="true" final="false" visibility="public"
  32643. deprecated="not deprecated">
  32644. <param name="principalConfig" type="java.lang.String"/>
  32645. <param name="addr" type="java.net.InetAddress"/>
  32646. <exception name="IOException" type="java.io.IOException"/>
  32647. <doc>
  32648. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  32649. This method is similar to {@link #getServerPrincipal(String, String)},
  32650. except 1) the reverse DNS lookup from addr to hostname is done only when
  32651. necessary, 2) param addr can't be null (no default behavior of using local
  32652. hostname when addr is null).
  32653. @param principalConfig
  32654. Kerberos principal name pattern to convert
  32655. @param addr
  32656. InetAddress of the host used for substitution
  32657. @return converted Kerberos principal name
  32658. @throws IOException if the client address cannot be determined]]>
  32659. </doc>
  32660. </method>
  32661. <method name="login"
  32662. abstract="false" native="false" synchronized="false"
  32663. static="true" final="false" visibility="public"
  32664. deprecated="not deprecated">
  32665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32666. <param name="keytabFileKey" type="java.lang.String"/>
  32667. <param name="userNameKey" type="java.lang.String"/>
  32668. <exception name="IOException" type="java.io.IOException"/>
  32669. <doc>
  32670. <![CDATA[Login as a principal specified in config. Substitute $host in
  32671. user's Kerberos principal name with a dynamically looked-up fully-qualified
  32672. domain name of the current host.
  32673. @param conf
  32674. conf to use
  32675. @param keytabFileKey
  32676. the key to look for keytab file in conf
  32677. @param userNameKey
  32678. the key to look for user's Kerberos principal name in conf
  32679. @throws IOException if login fails]]>
  32680. </doc>
  32681. </method>
  32682. <method name="login"
  32683. abstract="false" native="false" synchronized="false"
  32684. static="true" final="false" visibility="public"
  32685. deprecated="not deprecated">
  32686. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32687. <param name="keytabFileKey" type="java.lang.String"/>
  32688. <param name="userNameKey" type="java.lang.String"/>
  32689. <param name="hostname" type="java.lang.String"/>
  32690. <exception name="IOException" type="java.io.IOException"/>
  32691. <doc>
  32692. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  32693. name with hostname. If non-secure mode - return. If no keytab available -
  32694. bail out with an exception
  32695. @param conf
  32696. conf to use
  32697. @param keytabFileKey
  32698. the key to look for keytab file in conf
  32699. @param userNameKey
  32700. the key to look for user's Kerberos principal name in conf
  32701. @param hostname
  32702. hostname to use for substitution
  32703. @throws IOException if the config doesn't specify a keytab]]>
  32704. </doc>
  32705. </method>
  32706. <method name="buildDTServiceName" return="java.lang.String"
  32707. abstract="false" native="false" synchronized="false"
  32708. static="true" final="false" visibility="public"
  32709. deprecated="not deprecated">
  32710. <param name="uri" type="java.net.URI"/>
  32711. <param name="defPort" type="int"/>
  32712. <doc>
  32713. <![CDATA[create the service name for a Delegation token
  32714. @param uri of the service
  32715. @param defPort is used if the uri lacks a port
  32716. @return the token service, or null if no authority
  32717. @see #buildTokenService(InetSocketAddress)]]>
  32718. </doc>
  32719. </method>
  32720. <method name="getHostFromPrincipal" return="java.lang.String"
  32721. abstract="false" native="false" synchronized="false"
  32722. static="true" final="false" visibility="public"
  32723. deprecated="not deprecated">
  32724. <param name="principalName" type="java.lang.String"/>
  32725. <doc>
  32726. <![CDATA[Get the host name from the principal name of format {@literal <}service
  32727. {@literal >}/host@realm.
  32728. @param principalName principal name of format as described above
  32729. @return host name if the the string conforms to the above format, else null]]>
  32730. </doc>
  32731. </method>
  32732. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  32733. abstract="false" native="false" synchronized="false"
  32734. static="true" final="false" visibility="public"
  32735. deprecated="not deprecated">
  32736. <param name="protocol" type="java.lang.Class"/>
  32737. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32738. <doc>
  32739. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  32740. SecurityInfo providers.
  32741. @param protocol the protocol class to get the information for
  32742. @param conf configuration object
  32743. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  32744. </doc>
  32745. </method>
  32746. <method name="getClientPrincipal" return="java.lang.String"
  32747. abstract="false" native="false" synchronized="false"
  32748. static="true" final="false" visibility="public"
  32749. deprecated="not deprecated">
  32750. <param name="protocol" type="java.lang.Class"/>
  32751. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32752. <doc>
  32753. <![CDATA[Look up the client principal for a given protocol. It searches all known
  32754. SecurityInfo providers.
  32755. @param protocol the protocol class to get the information for
  32756. @param conf configuration object
  32757. @return client principal or null if it has no client principal defined.]]>
  32758. </doc>
  32759. </method>
  32760. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  32761. abstract="false" native="false" synchronized="false"
  32762. static="true" final="false" visibility="public"
  32763. deprecated="not deprecated">
  32764. <param name="protocol" type="java.lang.Class"/>
  32765. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32766. <doc>
  32767. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  32768. SecurityInfo providers.
  32769. @param protocol The protocol class to get the information for.
  32770. @param conf Configuration object
  32771. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  32772. </doc>
  32773. </method>
  32774. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  32775. abstract="false" native="false" synchronized="false"
  32776. static="true" final="false" visibility="public"
  32777. deprecated="not deprecated">
  32778. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  32779. <doc>
  32780. <![CDATA[Decode the given token's service field into an InetAddress
  32781. @param token from which to obtain the service
  32782. @return InetAddress for the service]]>
  32783. </doc>
  32784. </method>
  32785. <method name="setTokenService"
  32786. abstract="false" native="false" synchronized="false"
  32787. static="true" final="false" visibility="public"
  32788. deprecated="not deprecated">
  32789. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  32790. <param name="addr" type="java.net.InetSocketAddress"/>
  32791. <doc>
  32792. <![CDATA[Set the given token's service to the format expected by the RPC client
  32793. @param token a delegation token
  32794. @param addr the socket for the rpc connection]]>
  32795. </doc>
  32796. </method>
  32797. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  32798. abstract="false" native="false" synchronized="false"
  32799. static="true" final="false" visibility="public"
  32800. deprecated="not deprecated">
  32801. <param name="addr" type="java.net.InetSocketAddress"/>
  32802. <doc>
  32803. <![CDATA[Construct the service key for a token
  32804. @param addr InetSocketAddress of remote connection with a token
  32805. @return "ip:port" or "host:port" depending on the value of
  32806. hadoop.security.token.service.use_ip]]>
  32807. </doc>
  32808. </method>
  32809. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  32810. abstract="false" native="false" synchronized="false"
  32811. static="true" final="false" visibility="public"
  32812. deprecated="not deprecated">
  32813. <param name="uri" type="java.net.URI"/>
  32814. <doc>
  32815. <![CDATA[Construct the service key for a token
  32816. @param uri of remote connection with a token
  32817. @return "ip:port" or "host:port" depending on the value of
  32818. hadoop.security.token.service.use_ip]]>
  32819. </doc>
  32820. </method>
  32821. <method name="doAsLoginUserOrFatal" return="T"
  32822. abstract="false" native="false" synchronized="false"
  32823. static="true" final="false" visibility="public"
  32824. deprecated="not deprecated">
  32825. <param name="action" type="java.security.PrivilegedAction"/>
  32826. <doc>
  32827. <![CDATA[Perform the given action as the daemon's login user. If the login
  32828. user cannot be determined, this will log a FATAL error and exit
  32829. the whole JVM.
  32830. @param action action.
  32831. @param <T> generic type T.
  32832. @return generic type T.]]>
  32833. </doc>
  32834. </method>
  32835. <method name="doAsLoginUser" return="T"
  32836. abstract="false" native="false" synchronized="false"
  32837. static="true" final="false" visibility="public"
  32838. deprecated="not deprecated">
  32839. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  32840. <exception name="IOException" type="java.io.IOException"/>
  32841. <doc>
  32842. <![CDATA[Perform the given action as the daemon's login user. If an
  32843. InterruptedException is thrown, it is converted to an IOException.
  32844. @param action the action to perform
  32845. @param <T> Generics Type T.
  32846. @return the result of the action
  32847. @throws IOException in the event of error]]>
  32848. </doc>
  32849. </method>
  32850. <method name="doAsCurrentUser" return="T"
  32851. abstract="false" native="false" synchronized="false"
  32852. static="true" final="false" visibility="public"
  32853. deprecated="not deprecated">
  32854. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  32855. <exception name="IOException" type="java.io.IOException"/>
  32856. <doc>
  32857. <![CDATA[Perform the given action as the daemon's current user. If an
  32858. InterruptedException is thrown, it is converted to an IOException.
  32859. @param action the action to perform
  32860. @param <T> generic type T.
  32861. @return the result of the action
  32862. @throws IOException in the event of error]]>
  32863. </doc>
  32864. </method>
  32865. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32866. abstract="false" native="false" synchronized="false"
  32867. static="true" final="false" visibility="public"
  32868. deprecated="not deprecated">
  32869. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32870. </method>
  32871. <method name="setAuthenticationMethod"
  32872. abstract="false" native="false" synchronized="false"
  32873. static="true" final="false" visibility="public"
  32874. deprecated="not deprecated">
  32875. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  32876. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32877. </method>
  32878. <method name="isPrivilegedPort" return="boolean"
  32879. abstract="false" native="false" synchronized="false"
  32880. static="true" final="false" visibility="public"
  32881. deprecated="not deprecated">
  32882. <param name="port" type="int"/>
  32883. </method>
  32884. <method name="getZKAuthInfos" return="java.util.List"
  32885. abstract="false" native="false" synchronized="false"
  32886. static="true" final="false" visibility="public"
  32887. deprecated="not deprecated">
  32888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32889. <param name="configKey" type="java.lang.String"/>
  32890. <exception name="IOException" type="java.io.IOException"/>
  32891. <doc>
  32892. <![CDATA[Utility method to fetch ZK auth info from the configuration.
  32893. @param conf configuration.
  32894. @param configKey config key.
  32895. @throws java.io.IOException if the Zookeeper ACLs configuration file
  32896. cannot be read
  32897. @throws ZKUtil.BadAuthFormatException if the auth format is invalid
  32898. @return ZKAuthInfo List.]]>
  32899. </doc>
  32900. </method>
  32901. <field name="LOG" type="org.slf4j.Logger"
  32902. transient="false" volatile="false"
  32903. static="true" final="true" visibility="public"
  32904. deprecated="not deprecated">
  32905. </field>
  32906. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  32907. transient="false" volatile="false"
  32908. static="true" final="true" visibility="public"
  32909. deprecated="not deprecated">
  32910. </field>
  32911. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  32912. transient="false" volatile="false"
  32913. static="true" final="true" visibility="public"
  32914. deprecated="not deprecated">
  32915. </field>
  32916. <doc>
  32917. <![CDATA[Security Utils.]]>
  32918. </doc>
  32919. </class>
  32920. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  32921. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  32922. <class name="UserGroupInformation" extends="java.lang.Object"
  32923. abstract="false"
  32924. static="false" final="false" visibility="public"
  32925. deprecated="not deprecated">
  32926. <method name="setShouldRenewImmediatelyForTests"
  32927. abstract="false" native="false" synchronized="false"
  32928. static="true" final="false" visibility="public"
  32929. deprecated="not deprecated">
  32930. <param name="immediate" type="boolean"/>
  32931. <doc>
  32932. <![CDATA[For the purposes of unit tests, we want to test login
  32933. from keytab and don't want to wait until the renew
  32934. window (controlled by TICKET_RENEW_WINDOW).
  32935. @param immediate true if we should login without waiting for ticket window]]>
  32936. </doc>
  32937. </method>
  32938. <method name="reattachMetrics"
  32939. abstract="false" native="false" synchronized="false"
  32940. static="true" final="false" visibility="public"
  32941. deprecated="not deprecated">
  32942. <doc>
  32943. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  32944. </doc>
  32945. </method>
  32946. <method name="isInitialized" return="boolean"
  32947. abstract="false" native="false" synchronized="false"
  32948. static="true" final="false" visibility="public"
  32949. deprecated="not deprecated">
  32950. </method>
  32951. <method name="setConfiguration"
  32952. abstract="false" native="false" synchronized="false"
  32953. static="true" final="false" visibility="public"
  32954. deprecated="not deprecated">
  32955. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32956. <doc>
  32957. <![CDATA[Set the static configuration for UGI.
  32958. In particular, set the security authentication mechanism and the
  32959. group look up service.
  32960. @param conf the configuration to use]]>
  32961. </doc>
  32962. </method>
  32963. <method name="isSecurityEnabled" return="boolean"
  32964. abstract="false" native="false" synchronized="false"
  32965. static="true" final="false" visibility="public"
  32966. deprecated="not deprecated">
  32967. <doc>
  32968. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  32969. user identities or is relying on simple authentication
  32970. @return true if UGI is working in a secure environment]]>
  32971. </doc>
  32972. </method>
  32973. <method name="hasKerberosCredentials" return="boolean"
  32974. abstract="false" native="false" synchronized="false"
  32975. static="false" final="false" visibility="public"
  32976. deprecated="not deprecated">
  32977. <doc>
  32978. <![CDATA[checks if logged in using kerberos
  32979. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  32980. </doc>
  32981. </method>
  32982. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  32983. abstract="false" native="false" synchronized="false"
  32984. static="true" final="false" visibility="public"
  32985. deprecated="not deprecated">
  32986. <exception name="IOException" type="java.io.IOException"/>
  32987. <doc>
  32988. <![CDATA[Return the current user, including any doAs in the current stack.
  32989. @return the current user
  32990. @throws IOException if login fails]]>
  32991. </doc>
  32992. </method>
  32993. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  32994. abstract="false" native="false" synchronized="false"
  32995. static="true" final="false" visibility="public"
  32996. deprecated="not deprecated">
  32997. <param name="ticketCachePath" type="java.lang.String"/>
  32998. <param name="user" type="java.lang.String"/>
  32999. <exception name="IOException" type="java.io.IOException"/>
  33000. <doc>
  33001. <![CDATA[Find the most appropriate UserGroupInformation to use
  33002. @param ticketCachePath The Kerberos ticket cache path, or NULL
  33003. if none is specfied
  33004. @param user The user name, or NULL if none is specified.
  33005. @return The most appropriate UserGroupInformation
  33006. @throws IOException raised on errors performing I/O.]]>
  33007. </doc>
  33008. </method>
  33009. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  33010. abstract="false" native="false" synchronized="false"
  33011. static="true" final="false" visibility="public"
  33012. deprecated="not deprecated">
  33013. <param name="ticketCache" type="java.lang.String"/>
  33014. <param name="user" type="java.lang.String"/>
  33015. <exception name="IOException" type="java.io.IOException"/>
  33016. <doc>
  33017. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  33018. @param user The principal name to load from the ticket
  33019. cache
  33020. @param ticketCache the path to the ticket cache file
  33021. @throws IOException if the kerberos login fails
  33022. @return UserGroupInformation.]]>
  33023. </doc>
  33024. </method>
  33025. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  33026. abstract="false" native="false" synchronized="false"
  33027. static="true" final="false" visibility="public"
  33028. deprecated="not deprecated">
  33029. <param name="subject" type="javax.security.auth.Subject"/>
  33030. <exception name="IOException" type="java.io.IOException"/>
  33031. <doc>
  33032. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  33033. @param subject The KerberosPrincipal to use in UGI.
  33034. The creator of subject is responsible for
  33035. renewing credentials.
  33036. @throws IOException raised on errors performing I/O.
  33037. @throws KerberosAuthException if the kerberos login fails
  33038. @return UserGroupInformation.]]>
  33039. </doc>
  33040. </method>
  33041. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  33042. abstract="false" native="false" synchronized="false"
  33043. static="true" final="false" visibility="public"
  33044. deprecated="not deprecated">
  33045. <exception name="IOException" type="java.io.IOException"/>
  33046. <doc>
  33047. <![CDATA[Get the currently logged in user. If no explicit login has occurred,
  33048. the user will automatically be logged in with either kerberos credentials
  33049. if available, or as the local OS user, based on security settings.
  33050. @return the logged in user
  33051. @throws IOException if login fails]]>
  33052. </doc>
  33053. </method>
  33054. <method name="trimLoginMethod" return="java.lang.String"
  33055. abstract="false" native="false" synchronized="false"
  33056. static="true" final="false" visibility="public"
  33057. deprecated="not deprecated">
  33058. <param name="userName" type="java.lang.String"/>
  33059. <doc>
  33060. <![CDATA[remove the login method that is followed by a space from the username
  33061. e.g. "jack (auth:SIMPLE)" {@literal ->} "jack"
  33062. @param userName input userName.
  33063. @return userName without login method]]>
  33064. </doc>
  33065. </method>
  33066. <method name="loginUserFromSubject"
  33067. abstract="false" native="false" synchronized="false"
  33068. static="true" final="false" visibility="public"
  33069. deprecated="not deprecated">
  33070. <param name="subject" type="javax.security.auth.Subject"/>
  33071. <exception name="IOException" type="java.io.IOException"/>
  33072. <doc>
  33073. <![CDATA[Log in a user using the given subject
  33074. @param subject the subject to use when logging in a user, or null to
  33075. create a new subject.
  33076. If subject is not null, the creator of subject is responsible for renewing
  33077. credentials.
  33078. @throws IOException if login fails]]>
  33079. </doc>
  33080. </method>
  33081. <method name="isFromKeytab" return="boolean"
  33082. abstract="false" native="false" synchronized="false"
  33083. static="false" final="false" visibility="public"
  33084. deprecated="not deprecated">
  33085. <doc>
  33086. <![CDATA[Is this user logged in from a keytab file managed by the UGI?
  33087. @return true if the credentials are from a keytab file.]]>
  33088. </doc>
  33089. </method>
  33090. <method name="loginUserFromKeytab"
  33091. abstract="false" native="false" synchronized="false"
  33092. static="true" final="false" visibility="public"
  33093. deprecated="not deprecated">
  33094. <param name="user" type="java.lang.String"/>
  33095. <param name="path" type="java.lang.String"/>
  33096. <exception name="IOException" type="java.io.IOException"/>
  33097. <doc>
  33098. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  33099. file and logs them in. They become the currently logged-in user.
  33100. @param user the principal name to load from the keytab
  33101. @param path the path to the keytab file
  33102. @throws IOException raised on errors performing I/O.
  33103. @throws KerberosAuthException if it's a kerberos login exception.]]>
  33104. </doc>
  33105. </method>
  33106. <method name="logoutUserFromKeytab"
  33107. abstract="false" native="false" synchronized="false"
  33108. static="false" final="false" visibility="public"
  33109. deprecated="not deprecated">
  33110. <exception name="IOException" type="java.io.IOException"/>
  33111. <doc>
  33112. <![CDATA[Log the current user out who previously logged in using keytab.
  33113. This method assumes that the user logged in by calling
  33114. {@link #loginUserFromKeytab(String, String)}.
  33115. @throws IOException raised on errors performing I/O.
  33116. @throws KerberosAuthException if a failure occurred in logout,
  33117. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  33118. </doc>
  33119. </method>
  33120. <method name="checkTGTAndReloginFromKeytab"
  33121. abstract="false" native="false" synchronized="false"
  33122. static="false" final="false" visibility="public"
  33123. deprecated="not deprecated">
  33124. <exception name="IOException" type="java.io.IOException"/>
  33125. <doc>
  33126. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  33127. @throws IOException raised on errors performing I/O.
  33128. @throws KerberosAuthException if it's a kerberos login exception.]]>
  33129. </doc>
  33130. </method>
  33131. <method name="reloginFromKeytab"
  33132. abstract="false" native="false" synchronized="false"
  33133. static="false" final="false" visibility="public"
  33134. deprecated="not deprecated">
  33135. <exception name="IOException" type="java.io.IOException"/>
  33136. <doc>
  33137. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  33138. file and logs them in. They become the currently logged-in user. This
  33139. method assumes that {@link #loginUserFromKeytab(String, String)} had
  33140. happened already.
  33141. The Subject field of this UserGroupInformation object is updated to have
  33142. the new credentials.
  33143. @throws IOException raised on errors performing I/O.
  33144. @throws KerberosAuthException on a failure]]>
  33145. </doc>
  33146. </method>
  33147. <method name="forceReloginFromKeytab"
  33148. abstract="false" native="false" synchronized="false"
  33149. static="false" final="false" visibility="public"
  33150. deprecated="not deprecated">
  33151. <exception name="IOException" type="java.io.IOException"/>
  33152. <doc>
  33153. <![CDATA[Force re-Login a user in from a keytab file irrespective of the last login
  33154. time. Loads a user identity from a keytab file and logs them in. They
  33155. become the currently logged-in user. This method assumes that
  33156. {@link #loginUserFromKeytab(String, String)} had happened already. The
  33157. Subject field of this UserGroupInformation object is updated to have the
  33158. new credentials.
  33159. @throws IOException raised on errors performing I/O.
  33160. @throws KerberosAuthException on a failure]]>
  33161. </doc>
  33162. </method>
  33163. <method name="reloginFromTicketCache"
  33164. abstract="false" native="false" synchronized="false"
  33165. static="false" final="false" visibility="public"
  33166. deprecated="not deprecated">
  33167. <exception name="IOException" type="java.io.IOException"/>
  33168. <doc>
  33169. <![CDATA[Re-Login a user in from the ticket cache. This
  33170. method assumes that login had happened already.
  33171. The Subject field of this UserGroupInformation object is updated to have
  33172. the new credentials.
  33173. @throws IOException raised on errors performing I/O.
  33174. @throws KerberosAuthException on a failure]]>
  33175. </doc>
  33176. </method>
  33177. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  33178. abstract="false" native="false" synchronized="false"
  33179. static="true" final="false" visibility="public"
  33180. deprecated="not deprecated">
  33181. <param name="user" type="java.lang.String"/>
  33182. <param name="path" type="java.lang.String"/>
  33183. <exception name="IOException" type="java.io.IOException"/>
  33184. <doc>
  33185. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  33186. file and login them in. This new user does not affect the currently
  33187. logged-in user.
  33188. @param user the principal name to load from the keytab
  33189. @param path the path to the keytab file
  33190. @throws IOException if the keytab file can't be read
  33191. @return UserGroupInformation.]]>
  33192. </doc>
  33193. </method>
  33194. <method name="isLoginKeytabBased" return="boolean"
  33195. abstract="false" native="false" synchronized="false"
  33196. static="true" final="false" visibility="public"
  33197. deprecated="not deprecated">
  33198. <exception name="IOException" type="java.io.IOException"/>
  33199. <doc>
  33200. <![CDATA[Did the login happen via keytab.
  33201. @return true or false
  33202. @throws IOException raised on errors performing I/O.]]>
  33203. </doc>
  33204. </method>
  33205. <method name="isLoginTicketBased" return="boolean"
  33206. abstract="false" native="false" synchronized="false"
  33207. static="true" final="false" visibility="public"
  33208. deprecated="not deprecated">
  33209. <exception name="IOException" type="java.io.IOException"/>
  33210. <doc>
  33211. <![CDATA[Did the login happen via ticket cache.
  33212. @return true or false
  33213. @throws IOException raised on errors performing I/O.]]>
  33214. </doc>
  33215. </method>
  33216. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  33217. abstract="false" native="false" synchronized="false"
  33218. static="true" final="false" visibility="public"
  33219. deprecated="not deprecated">
  33220. <param name="user" type="java.lang.String"/>
  33221. <doc>
  33222. <![CDATA[Create a user from a login name. It is intended to be used for remote
  33223. users in RPC, since it won't have any credentials.
  33224. @param user the full user principal name, must not be empty or null
  33225. @return the UserGroupInformation for the remote user.]]>
  33226. </doc>
  33227. </method>
  33228. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  33229. abstract="false" native="false" synchronized="false"
  33230. static="true" final="false" visibility="public"
  33231. deprecated="not deprecated">
  33232. <param name="user" type="java.lang.String"/>
  33233. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33234. <doc>
  33235. <![CDATA[Create a user from a login name. It is intended to be used for remote
  33236. users in RPC, since it won't have any credentials.
  33237. @param user the full user principal name, must not be empty or null
  33238. @param authMethod input authMethod.
  33239. @return the UserGroupInformation for the remote user.]]>
  33240. </doc>
  33241. </method>
  33242. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  33243. abstract="false" native="false" synchronized="false"
  33244. static="true" final="false" visibility="public"
  33245. deprecated="not deprecated">
  33246. <param name="user" type="java.lang.String"/>
  33247. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  33248. <doc>
  33249. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  33250. real user.
  33251. @param user input user.
  33252. @param realUser input realUser.
  33253. @return proxyUser ugi]]>
  33254. </doc>
  33255. </method>
  33256. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  33257. abstract="false" native="false" synchronized="false"
  33258. static="false" final="false" visibility="public"
  33259. deprecated="not deprecated">
  33260. <doc>
  33261. <![CDATA[get RealUser (vs. EffectiveUser)
  33262. @return realUser running over proxy user]]>
  33263. </doc>
  33264. </method>
  33265. <method name="getRealUserOrSelf" return="org.apache.hadoop.security.UserGroupInformation"
  33266. abstract="false" native="false" synchronized="false"
  33267. static="true" final="false" visibility="public"
  33268. deprecated="not deprecated">
  33269. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  33270. <doc>
  33271. <![CDATA[If this is a proxy user, get the real user. Otherwise, return
  33272. this user.
  33273. @param user the user to check
  33274. @return the real user or self]]>
  33275. </doc>
  33276. </method>
  33277. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  33278. abstract="false" native="false" synchronized="false"
  33279. static="true" final="false" visibility="public"
  33280. deprecated="not deprecated">
  33281. <param name="user" type="java.lang.String"/>
  33282. <param name="userGroups" type="java.lang.String[]"/>
  33283. <doc>
  33284. <![CDATA[Create a UGI for testing HDFS and MapReduce
  33285. @param user the full user principal name
  33286. @param userGroups the names of the groups that the user belongs to
  33287. @return a fake user for running unit tests]]>
  33288. </doc>
  33289. </method>
  33290. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  33291. abstract="false" native="false" synchronized="false"
  33292. static="true" final="false" visibility="public"
  33293. deprecated="not deprecated">
  33294. <param name="user" type="java.lang.String"/>
  33295. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  33296. <param name="userGroups" type="java.lang.String[]"/>
  33297. <doc>
  33298. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  33299. @param user
  33300. the full user principal name for effective user
  33301. @param realUser
  33302. UGI of the real user
  33303. @param userGroups
  33304. the names of the groups that the user belongs to
  33305. @return a fake user for running unit tests]]>
  33306. </doc>
  33307. </method>
  33308. <method name="getShortUserName" return="java.lang.String"
  33309. abstract="false" native="false" synchronized="false"
  33310. static="false" final="false" visibility="public"
  33311. deprecated="not deprecated">
  33312. <doc>
  33313. <![CDATA[Get the user's login name.
  33314. @return the user's name up to the first '/' or '@'.]]>
  33315. </doc>
  33316. </method>
  33317. <method name="getPrimaryGroupName" return="java.lang.String"
  33318. abstract="false" native="false" synchronized="false"
  33319. static="false" final="false" visibility="public"
  33320. deprecated="not deprecated">
  33321. <exception name="IOException" type="java.io.IOException"/>
  33322. </method>
  33323. <method name="getUserName" return="java.lang.String"
  33324. abstract="false" native="false" synchronized="false"
  33325. static="false" final="false" visibility="public"
  33326. deprecated="not deprecated">
  33327. <doc>
  33328. <![CDATA[Get the user's full principal name.
  33329. @return the user's full principal name.]]>
  33330. </doc>
  33331. </method>
  33332. <method name="addTokenIdentifier" return="boolean"
  33333. abstract="false" native="false" synchronized="true"
  33334. static="false" final="false" visibility="public"
  33335. deprecated="not deprecated">
  33336. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  33337. <doc>
  33338. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  33339. authenticated by the RPC layer as belonging to the user represented by this
  33340. UGI.
  33341. @param tokenId
  33342. tokenIdentifier to be added
  33343. @return true on successful add of new tokenIdentifier]]>
  33344. </doc>
  33345. </method>
  33346. <method name="getTokenIdentifiers" return="java.util.Set"
  33347. abstract="false" native="false" synchronized="true"
  33348. static="false" final="false" visibility="public"
  33349. deprecated="not deprecated">
  33350. <doc>
  33351. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  33352. @return the set of TokenIdentifiers belonging to this UGI]]>
  33353. </doc>
  33354. </method>
  33355. <method name="addToken" return="boolean"
  33356. abstract="false" native="false" synchronized="false"
  33357. static="false" final="false" visibility="public"
  33358. deprecated="not deprecated">
  33359. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33360. <doc>
  33361. <![CDATA[Add a token to this UGI
  33362. @param token Token to be added
  33363. @return true on successful add of new token]]>
  33364. </doc>
  33365. </method>
  33366. <method name="addToken" return="boolean"
  33367. abstract="false" native="false" synchronized="false"
  33368. static="false" final="false" visibility="public"
  33369. deprecated="not deprecated">
  33370. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33371. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33372. <doc>
  33373. <![CDATA[Add a named token to this UGI
  33374. @param alias Name of the token
  33375. @param token Token to be added
  33376. @return true on successful add of new token]]>
  33377. </doc>
  33378. </method>
  33379. <method name="getTokens" return="java.util.Collection"
  33380. abstract="false" native="false" synchronized="false"
  33381. static="false" final="false" visibility="public"
  33382. deprecated="not deprecated">
  33383. <doc>
  33384. <![CDATA[Obtain the collection of tokens associated with this user.
  33385. @return an unmodifiable collection of tokens associated with user]]>
  33386. </doc>
  33387. </method>
  33388. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  33389. abstract="false" native="false" synchronized="false"
  33390. static="false" final="false" visibility="public"
  33391. deprecated="not deprecated">
  33392. <doc>
  33393. <![CDATA[Obtain the tokens in credentials form associated with this user.
  33394. @return Credentials of tokens associated with this user]]>
  33395. </doc>
  33396. </method>
  33397. <method name="addCredentials"
  33398. abstract="false" native="false" synchronized="false"
  33399. static="false" final="false" visibility="public"
  33400. deprecated="not deprecated">
  33401. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  33402. <doc>
  33403. <![CDATA[Add the given Credentials to this user.
  33404. @param credentials of tokens and secrets]]>
  33405. </doc>
  33406. </method>
  33407. <method name="getGroupNames" return="java.lang.String[]"
  33408. abstract="false" native="false" synchronized="false"
  33409. static="false" final="false" visibility="public"
  33410. deprecated="not deprecated">
  33411. <doc>
  33412. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  33413. expensive alternative when checking for a contained element.
  33414. @return the list of users with the primary group first. If the command
  33415. fails, it returns an empty list.]]>
  33416. </doc>
  33417. </method>
  33418. <method name="getGroups" return="java.util.List"
  33419. abstract="false" native="false" synchronized="false"
  33420. static="false" final="false" visibility="public"
  33421. deprecated="not deprecated">
  33422. <doc>
  33423. <![CDATA[Get the group names for this user.
  33424. @return the list of users with the primary group first. If the command
  33425. fails, it returns an empty list.]]>
  33426. </doc>
  33427. </method>
  33428. <method name="toString" return="java.lang.String"
  33429. abstract="false" native="false" synchronized="false"
  33430. static="false" final="false" visibility="public"
  33431. deprecated="not deprecated">
  33432. <doc>
  33433. <![CDATA[Return the username.]]>
  33434. </doc>
  33435. </method>
  33436. <method name="setAuthenticationMethod"
  33437. abstract="false" native="false" synchronized="true"
  33438. static="false" final="false" visibility="public"
  33439. deprecated="not deprecated">
  33440. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  33441. <doc>
  33442. <![CDATA[Sets the authentication method in the subject.
  33443. @param authMethod input authMethod.]]>
  33444. </doc>
  33445. </method>
  33446. <method name="setAuthenticationMethod"
  33447. abstract="false" native="false" synchronized="false"
  33448. static="false" final="false" visibility="public"
  33449. deprecated="not deprecated">
  33450. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33451. <doc>
  33452. <![CDATA[Sets the authentication method in the subject.
  33453. @param authMethod input authMethod.]]>
  33454. </doc>
  33455. </method>
  33456. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33457. abstract="false" native="false" synchronized="true"
  33458. static="false" final="false" visibility="public"
  33459. deprecated="not deprecated">
  33460. <doc>
  33461. <![CDATA[Get the authentication method from the subject
  33462. @return AuthenticationMethod in the subject, null if not present.]]>
  33463. </doc>
  33464. </method>
  33465. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33466. abstract="false" native="false" synchronized="true"
  33467. static="false" final="false" visibility="public"
  33468. deprecated="not deprecated">
  33469. <doc>
  33470. <![CDATA[Get the authentication method from the real user's subject. If there
  33471. is no real user, return the given user's authentication method.
  33472. @return AuthenticationMethod in the subject, null if not present.]]>
  33473. </doc>
  33474. </method>
  33475. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33476. abstract="false" native="false" synchronized="false"
  33477. static="true" final="false" visibility="public"
  33478. deprecated="not deprecated">
  33479. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33480. <doc>
  33481. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  33482. PROXY, returns the authentication method of the real user.
  33483. @param ugi input ugi.
  33484. @return AuthenticationMethod]]>
  33485. </doc>
  33486. </method>
  33487. <method name="equals" return="boolean"
  33488. abstract="false" native="false" synchronized="false"
  33489. static="false" final="false" visibility="public"
  33490. deprecated="not deprecated">
  33491. <param name="o" type="java.lang.Object"/>
  33492. <doc>
  33493. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  33494. </doc>
  33495. </method>
  33496. <method name="hashCode" return="int"
  33497. abstract="false" native="false" synchronized="false"
  33498. static="false" final="false" visibility="public"
  33499. deprecated="not deprecated">
  33500. <doc>
  33501. <![CDATA[Return the hash of the subject.]]>
  33502. </doc>
  33503. </method>
  33504. <method name="getSubject" return="javax.security.auth.Subject"
  33505. abstract="false" native="false" synchronized="false"
  33506. static="false" final="false" visibility="protected"
  33507. deprecated="not deprecated">
  33508. <doc>
  33509. <![CDATA[Get the underlying subject from this ugi.
  33510. @return the subject that represents this user.]]>
  33511. </doc>
  33512. </method>
  33513. <method name="doAs" return="T"
  33514. abstract="false" native="false" synchronized="false"
  33515. static="false" final="false" visibility="public"
  33516. deprecated="not deprecated">
  33517. <param name="action" type="java.security.PrivilegedAction"/>
  33518. <doc>
  33519. <![CDATA[Run the given action as the user.
  33520. @param <T> the return type of the run method
  33521. @param action the method to execute
  33522. @return the value from the run method]]>
  33523. </doc>
  33524. </method>
  33525. <method name="doAs" return="T"
  33526. abstract="false" native="false" synchronized="false"
  33527. static="false" final="false" visibility="public"
  33528. deprecated="not deprecated">
  33529. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  33530. <exception name="IOException" type="java.io.IOException"/>
  33531. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33532. <doc>
  33533. <![CDATA[Run the given action as the user, potentially throwing an exception.
  33534. @param <T> the return type of the run method
  33535. @param action the method to execute
  33536. @return the value from the run method
  33537. @throws IOException if the action throws an IOException
  33538. @throws Error if the action throws an Error
  33539. @throws RuntimeException if the action throws a RuntimeException
  33540. @throws InterruptedException if the action throws an InterruptedException
  33541. @throws UndeclaredThrowableException if the action throws something else]]>
  33542. </doc>
  33543. </method>
  33544. <method name="logAllUserInfo"
  33545. abstract="false" native="false" synchronized="false"
  33546. static="true" final="false" visibility="public"
  33547. deprecated="not deprecated">
  33548. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33549. <exception name="IOException" type="java.io.IOException"/>
  33550. <doc>
  33551. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  33552. @param ugi - UGI
  33553. @throws IOException raised on errors performing I/O.]]>
  33554. </doc>
  33555. </method>
  33556. <method name="main"
  33557. abstract="false" native="false" synchronized="false"
  33558. static="true" final="false" visibility="public"
  33559. deprecated="not deprecated">
  33560. <param name="args" type="java.lang.String[]"/>
  33561. <exception name="Exception" type="java.lang.Exception"/>
  33562. <doc>
  33563. <![CDATA[A test method to print out the current user's UGI.
  33564. @param args if there are two arguments, read the user from the keytab
  33565. and print it out.
  33566. @throws Exception if any error occurs.]]>
  33567. </doc>
  33568. </method>
  33569. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  33570. transient="false" volatile="false"
  33571. static="true" final="true" visibility="public"
  33572. deprecated="not deprecated">
  33573. <doc>
  33574. <![CDATA[Environment variable pointing to the token cache file]]>
  33575. </doc>
  33576. </field>
  33577. <field name="HADOOP_TOKEN" type="java.lang.String"
  33578. transient="false" volatile="false"
  33579. static="true" final="true" visibility="public"
  33580. deprecated="not deprecated">
  33581. <doc>
  33582. <![CDATA[Environment variable pointing to the base64 tokens.]]>
  33583. </doc>
  33584. </field>
  33585. <doc>
  33586. <![CDATA[User and group information for Hadoop.
  33587. This class wraps around a JAAS Subject and provides methods to determine the
  33588. user's username and groups. It supports both the Windows, Unix and Kerberos
  33589. login modules.]]>
  33590. </doc>
  33591. </class>
  33592. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  33593. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  33594. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  33595. abstract="false"
  33596. static="true" final="true" visibility="public"
  33597. deprecated="not deprecated">
  33598. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  33599. abstract="false" native="false" synchronized="false"
  33600. static="true" final="false" visibility="public"
  33601. deprecated="not deprecated">
  33602. </method>
  33603. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33604. abstract="false" native="false" synchronized="false"
  33605. static="true" final="false" visibility="public"
  33606. deprecated="not deprecated">
  33607. <param name="name" type="java.lang.String"/>
  33608. </method>
  33609. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  33610. abstract="false" native="false" synchronized="false"
  33611. static="false" final="false" visibility="public"
  33612. deprecated="not deprecated">
  33613. </method>
  33614. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33615. abstract="false" native="false" synchronized="false"
  33616. static="true" final="false" visibility="public"
  33617. deprecated="not deprecated">
  33618. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33619. </method>
  33620. <doc>
  33621. <![CDATA[existing types of authentications' methods]]>
  33622. </doc>
  33623. </class>
  33624. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  33625. </package>
  33626. <package name="org.apache.hadoop.security.alias">
  33627. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  33628. <class name="CredentialProvider" extends="java.lang.Object"
  33629. abstract="true"
  33630. static="false" final="false" visibility="public"
  33631. deprecated="not deprecated">
  33632. <constructor name="CredentialProvider"
  33633. static="false" final="false" visibility="public"
  33634. deprecated="not deprecated">
  33635. </constructor>
  33636. <method name="isTransient" return="boolean"
  33637. abstract="false" native="false" synchronized="false"
  33638. static="false" final="false" visibility="public"
  33639. deprecated="not deprecated">
  33640. <doc>
  33641. <![CDATA[Indicates whether this provider represents a store
  33642. that is intended for transient use - such as the UserProvider
  33643. is. These providers are generally used to provide job access to
  33644. passwords rather than for long term storage.
  33645. @return true if transient, false otherwise]]>
  33646. </doc>
  33647. </method>
  33648. <method name="flush"
  33649. abstract="true" native="false" synchronized="false"
  33650. static="false" final="false" visibility="public"
  33651. deprecated="not deprecated">
  33652. <exception name="IOException" type="java.io.IOException"/>
  33653. <doc>
  33654. <![CDATA[Ensures that any changes to the credentials are written to persistent
  33655. store.
  33656. @throws IOException raised on errors performing I/O.]]>
  33657. </doc>
  33658. </method>
  33659. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  33660. abstract="true" native="false" synchronized="false"
  33661. static="false" final="false" visibility="public"
  33662. deprecated="not deprecated">
  33663. <param name="alias" type="java.lang.String"/>
  33664. <exception name="IOException" type="java.io.IOException"/>
  33665. <doc>
  33666. <![CDATA[Get the credential entry for a specific alias.
  33667. @param alias the name of a specific credential
  33668. @return the credentialEntry
  33669. @throws IOException raised on errors performing I/O.]]>
  33670. </doc>
  33671. </method>
  33672. <method name="getAliases" return="java.util.List"
  33673. abstract="true" native="false" synchronized="false"
  33674. static="false" final="false" visibility="public"
  33675. deprecated="not deprecated">
  33676. <exception name="IOException" type="java.io.IOException"/>
  33677. <doc>
  33678. <![CDATA[Get the aliases for all credentials.
  33679. @return the list of alias names
  33680. @throws IOException raised on errors performing I/O.]]>
  33681. </doc>
  33682. </method>
  33683. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  33684. abstract="true" native="false" synchronized="false"
  33685. static="false" final="false" visibility="public"
  33686. deprecated="not deprecated">
  33687. <param name="name" type="java.lang.String"/>
  33688. <param name="credential" type="char[]"/>
  33689. <exception name="IOException" type="java.io.IOException"/>
  33690. <doc>
  33691. <![CDATA[Create a new credential. The given alias must not already exist.
  33692. @param name the alias of the credential
  33693. @param credential the credential value for the alias.
  33694. @throws IOException raised on errors performing I/O.
  33695. @return CredentialEntry.]]>
  33696. </doc>
  33697. </method>
  33698. <method name="deleteCredentialEntry"
  33699. abstract="true" native="false" synchronized="false"
  33700. static="false" final="false" visibility="public"
  33701. deprecated="not deprecated">
  33702. <param name="name" type="java.lang.String"/>
  33703. <exception name="IOException" type="java.io.IOException"/>
  33704. <doc>
  33705. <![CDATA[Delete the given credential.
  33706. @param name the alias of the credential to delete
  33707. @throws IOException raised on errors performing I/O.]]>
  33708. </doc>
  33709. </method>
  33710. <method name="needsPassword" return="boolean"
  33711. abstract="false" native="false" synchronized="false"
  33712. static="false" final="false" visibility="public"
  33713. deprecated="not deprecated">
  33714. <exception name="IOException" type="java.io.IOException"/>
  33715. <doc>
  33716. <![CDATA[Does this provider require a password? This means that a password is
  33717. required for normal operation, and it has not been found through normal
  33718. means. If true, the password should be provided by the caller using
  33719. setPassword().
  33720. @return Whether or not the provider requires a password
  33721. @throws IOException raised on errors performing I/O.]]>
  33722. </doc>
  33723. </method>
  33724. <method name="noPasswordWarning" return="java.lang.String"
  33725. abstract="false" native="false" synchronized="false"
  33726. static="false" final="false" visibility="public"
  33727. deprecated="not deprecated">
  33728. <doc>
  33729. <![CDATA[If a password for the provider is needed, but is not provided, this will
  33730. return a warning and instructions for supplying said password to the
  33731. provider.
  33732. @return A warning and instructions for supplying the password]]>
  33733. </doc>
  33734. </method>
  33735. <method name="noPasswordError" return="java.lang.String"
  33736. abstract="false" native="false" synchronized="false"
  33737. static="false" final="false" visibility="public"
  33738. deprecated="not deprecated">
  33739. <doc>
  33740. <![CDATA[If a password for the provider is needed, but is not provided, this will
  33741. return an error message and instructions for supplying said password to
  33742. the provider.
  33743. @return An error message and instructions for supplying the password]]>
  33744. </doc>
  33745. </method>
  33746. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  33747. transient="false" volatile="false"
  33748. static="true" final="true" visibility="public"
  33749. deprecated="not deprecated">
  33750. </field>
  33751. <doc>
  33752. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  33753. abstraction to separate credential storage from users of them. It
  33754. is intended to support getting or storing passwords in a variety of ways,
  33755. including third party bindings.
  33756. <code>CredentialProvider</code> implementations must be thread safe.]]>
  33757. </doc>
  33758. </class>
  33759. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  33760. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  33761. <class name="CredentialProviderFactory" extends="java.lang.Object"
  33762. abstract="true"
  33763. static="false" final="false" visibility="public"
  33764. deprecated="not deprecated">
  33765. <constructor name="CredentialProviderFactory"
  33766. static="false" final="false" visibility="public"
  33767. deprecated="not deprecated">
  33768. </constructor>
  33769. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  33770. abstract="true" native="false" synchronized="false"
  33771. static="false" final="false" visibility="public"
  33772. deprecated="not deprecated">
  33773. <param name="providerName" type="java.net.URI"/>
  33774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33775. <exception name="IOException" type="java.io.IOException"/>
  33776. </method>
  33777. <method name="getProviders" return="java.util.List"
  33778. abstract="false" native="false" synchronized="false"
  33779. static="true" final="false" visibility="public"
  33780. deprecated="not deprecated">
  33781. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33782. <exception name="IOException" type="java.io.IOException"/>
  33783. </method>
  33784. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  33785. transient="false" volatile="false"
  33786. static="true" final="true" visibility="public"
  33787. deprecated="not deprecated">
  33788. </field>
  33789. <doc>
  33790. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  33791. Configuration. It uses a service loader interface to find the available
  33792. CredentialProviders and create them based on the list of URIs.]]>
  33793. </doc>
  33794. </class>
  33795. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  33796. </package>
  33797. <package name="org.apache.hadoop.security.authentication.server">
  33798. </package>
  33799. <package name="org.apache.hadoop.security.authorize">
  33800. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  33801. <class name="AccessControlList" extends="java.lang.Object"
  33802. abstract="false"
  33803. static="false" final="false" visibility="public"
  33804. deprecated="not deprecated">
  33805. <implements name="org.apache.hadoop.io.Writable"/>
  33806. <constructor name="AccessControlList"
  33807. static="false" final="false" visibility="public"
  33808. deprecated="not deprecated">
  33809. <doc>
  33810. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  33811. </doc>
  33812. </constructor>
  33813. <constructor name="AccessControlList" type="java.lang.String"
  33814. static="false" final="false" visibility="public"
  33815. deprecated="not deprecated">
  33816. <doc>
  33817. <![CDATA[Construct a new ACL from a String representation of the same.
  33818. The String is a a comma separated list of users and groups.
  33819. The user list comes first and is separated by a space followed
  33820. by the group list. For e.g. "user1,user2 group1,group2"
  33821. @param aclString String representation of the ACL]]>
  33822. </doc>
  33823. </constructor>
  33824. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  33825. static="false" final="false" visibility="public"
  33826. deprecated="not deprecated">
  33827. <doc>
  33828. <![CDATA[Construct a new ACL from String representation of users and groups
  33829. The arguments are comma separated lists
  33830. @param users comma separated list of users
  33831. @param groups comma separated list of groups]]>
  33832. </doc>
  33833. </constructor>
  33834. <method name="isAllAllowed" return="boolean"
  33835. abstract="false" native="false" synchronized="false"
  33836. static="false" final="false" visibility="public"
  33837. deprecated="not deprecated">
  33838. </method>
  33839. <method name="addUser"
  33840. abstract="false" native="false" synchronized="false"
  33841. static="false" final="false" visibility="public"
  33842. deprecated="not deprecated">
  33843. <param name="user" type="java.lang.String"/>
  33844. <doc>
  33845. <![CDATA[Add user to the names of users allowed for this service.
  33846. @param user
  33847. The user name]]>
  33848. </doc>
  33849. </method>
  33850. <method name="addGroup"
  33851. abstract="false" native="false" synchronized="false"
  33852. static="false" final="false" visibility="public"
  33853. deprecated="not deprecated">
  33854. <param name="group" type="java.lang.String"/>
  33855. <doc>
  33856. <![CDATA[Add group to the names of groups allowed for this service.
  33857. @param group
  33858. The group name]]>
  33859. </doc>
  33860. </method>
  33861. <method name="removeUser"
  33862. abstract="false" native="false" synchronized="false"
  33863. static="false" final="false" visibility="public"
  33864. deprecated="not deprecated">
  33865. <param name="user" type="java.lang.String"/>
  33866. <doc>
  33867. <![CDATA[Remove user from the names of users allowed for this service.
  33868. @param user
  33869. The user name]]>
  33870. </doc>
  33871. </method>
  33872. <method name="removeGroup"
  33873. abstract="false" native="false" synchronized="false"
  33874. static="false" final="false" visibility="public"
  33875. deprecated="not deprecated">
  33876. <param name="group" type="java.lang.String"/>
  33877. <doc>
  33878. <![CDATA[Remove group from the names of groups allowed for this service.
  33879. @param group
  33880. The group name]]>
  33881. </doc>
  33882. </method>
  33883. <method name="getUsers" return="java.util.Collection"
  33884. abstract="false" native="false" synchronized="false"
  33885. static="false" final="false" visibility="public"
  33886. deprecated="not deprecated">
  33887. <doc>
  33888. <![CDATA[Get the names of users allowed for this service.
  33889. @return the set of user names. the set must not be modified.]]>
  33890. </doc>
  33891. </method>
  33892. <method name="getGroups" return="java.util.Collection"
  33893. abstract="false" native="false" synchronized="false"
  33894. static="false" final="false" visibility="public"
  33895. deprecated="not deprecated">
  33896. <doc>
  33897. <![CDATA[Get the names of user groups allowed for this service.
  33898. @return the set of group names. the set must not be modified.]]>
  33899. </doc>
  33900. </method>
  33901. <method name="isUserInList" return="boolean"
  33902. abstract="false" native="false" synchronized="false"
  33903. static="false" final="true" visibility="public"
  33904. deprecated="not deprecated">
  33905. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33906. <doc>
  33907. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  33908. is a member of the Access Control List. If user was proxied and
  33909. USE_REAL_ACLS + the real user name is in the control list, then treat this
  33910. case as if user were in the ACL list.
  33911. @param ugi UserGroupInformation to check if contained in the ACL
  33912. @return true if ugi is member of the list or if USE_REAL_ACLS + real user
  33913. is in the list]]>
  33914. </doc>
  33915. </method>
  33916. <method name="isUserAllowed" return="boolean"
  33917. abstract="false" native="false" synchronized="false"
  33918. static="false" final="false" visibility="public"
  33919. deprecated="not deprecated">
  33920. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  33921. </method>
  33922. <method name="toString" return="java.lang.String"
  33923. abstract="false" native="false" synchronized="false"
  33924. static="false" final="false" visibility="public"
  33925. deprecated="not deprecated">
  33926. <doc>
  33927. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  33928. Use {@link #getAclString()} to get the exact String that can be given to
  33929. the constructor of AccessControlList to create a new instance.]]>
  33930. </doc>
  33931. </method>
  33932. <method name="getAclString" return="java.lang.String"
  33933. abstract="false" native="false" synchronized="false"
  33934. static="false" final="false" visibility="public"
  33935. deprecated="not deprecated">
  33936. <doc>
  33937. <![CDATA[Returns the access control list as a String that can be used for building a
  33938. new instance by sending it to the constructor of {@link AccessControlList}.
  33939. @return acl string.]]>
  33940. </doc>
  33941. </method>
  33942. <method name="write"
  33943. abstract="false" native="false" synchronized="false"
  33944. static="false" final="false" visibility="public"
  33945. deprecated="not deprecated">
  33946. <param name="out" type="java.io.DataOutput"/>
  33947. <exception name="IOException" type="java.io.IOException"/>
  33948. <doc>
  33949. <![CDATA[Serializes the AccessControlList object]]>
  33950. </doc>
  33951. </method>
  33952. <method name="readFields"
  33953. abstract="false" native="false" synchronized="false"
  33954. static="false" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. <param name="in" type="java.io.DataInput"/>
  33957. <exception name="IOException" type="java.io.IOException"/>
  33958. <doc>
  33959. <![CDATA[Deserializes the AccessControlList object]]>
  33960. </doc>
  33961. </method>
  33962. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  33963. transient="false" volatile="false"
  33964. static="true" final="true" visibility="public"
  33965. deprecated="not deprecated">
  33966. </field>
  33967. <field name="USE_REAL_ACLS" type="java.lang.String"
  33968. transient="false" volatile="false"
  33969. static="true" final="true" visibility="public"
  33970. deprecated="not deprecated">
  33971. </field>
  33972. <doc>
  33973. <![CDATA[Class representing a configured access control list.]]>
  33974. </doc>
  33975. </class>
  33976. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  33977. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  33978. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  33979. abstract="false"
  33980. static="false" final="false" visibility="public"
  33981. deprecated="not deprecated">
  33982. <constructor name="AuthorizationException"
  33983. static="false" final="false" visibility="public"
  33984. deprecated="not deprecated">
  33985. </constructor>
  33986. <constructor name="AuthorizationException" type="java.lang.String"
  33987. static="false" final="false" visibility="public"
  33988. deprecated="not deprecated">
  33989. </constructor>
  33990. <constructor name="AuthorizationException" type="java.lang.Throwable"
  33991. static="false" final="false" visibility="public"
  33992. deprecated="not deprecated">
  33993. <doc>
  33994. <![CDATA[Constructs a new exception with the specified cause and a detail
  33995. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  33996. typically contains the class and detail message of <tt>cause</tt>).
  33997. @param cause the cause (which is saved for later retrieval by the
  33998. {@link #getCause()} method). (A <tt>null</tt> value is
  33999. permitted, and indicates that the cause is nonexistent or
  34000. unknown.)]]>
  34001. </doc>
  34002. </constructor>
  34003. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  34004. abstract="false" native="false" synchronized="false"
  34005. static="false" final="false" visibility="public"
  34006. deprecated="not deprecated">
  34007. </method>
  34008. <method name="printStackTrace"
  34009. abstract="false" native="false" synchronized="false"
  34010. static="false" final="false" visibility="public"
  34011. deprecated="not deprecated">
  34012. </method>
  34013. <method name="printStackTrace"
  34014. abstract="false" native="false" synchronized="false"
  34015. static="false" final="false" visibility="public"
  34016. deprecated="not deprecated">
  34017. <param name="s" type="java.io.PrintStream"/>
  34018. </method>
  34019. <method name="printStackTrace"
  34020. abstract="false" native="false" synchronized="false"
  34021. static="false" final="false" visibility="public"
  34022. deprecated="not deprecated">
  34023. <param name="s" type="java.io.PrintWriter"/>
  34024. </method>
  34025. <doc>
  34026. <![CDATA[An exception class for authorization-related issues.
  34027. This class <em>does not</em> provide the stack trace for security purposes.]]>
  34028. </doc>
  34029. </class>
  34030. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  34031. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  34032. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  34033. abstract="false"
  34034. static="false" final="false" visibility="public"
  34035. deprecated="not deprecated">
  34036. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  34037. <constructor name="DefaultImpersonationProvider"
  34038. static="false" final="false" visibility="public"
  34039. deprecated="not deprecated">
  34040. </constructor>
  34041. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  34042. abstract="false" native="false" synchronized="true"
  34043. static="true" final="false" visibility="public"
  34044. deprecated="not deprecated">
  34045. </method>
  34046. <method name="setConf"
  34047. abstract="false" native="false" synchronized="false"
  34048. static="false" final="false" visibility="public"
  34049. deprecated="not deprecated">
  34050. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34051. </method>
  34052. <method name="init"
  34053. abstract="false" native="false" synchronized="false"
  34054. static="false" final="false" visibility="public"
  34055. deprecated="not deprecated">
  34056. <param name="configurationPrefix" type="java.lang.String"/>
  34057. </method>
  34058. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34059. abstract="false" native="false" synchronized="false"
  34060. static="false" final="false" visibility="public"
  34061. deprecated="not deprecated">
  34062. </method>
  34063. <method name="authorize"
  34064. abstract="false" native="false" synchronized="false"
  34065. static="false" final="false" visibility="public"
  34066. deprecated="not deprecated">
  34067. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34068. <param name="remoteAddress" type="java.net.InetAddress"/>
  34069. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34070. </method>
  34071. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  34072. abstract="false" native="false" synchronized="false"
  34073. static="false" final="false" visibility="public"
  34074. deprecated="not deprecated">
  34075. <param name="userName" type="java.lang.String"/>
  34076. <doc>
  34077. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  34078. @param userName name of the superuser
  34079. @return configuration key for superuser usergroups]]>
  34080. </doc>
  34081. </method>
  34082. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  34083. abstract="false" native="false" synchronized="false"
  34084. static="false" final="false" visibility="public"
  34085. deprecated="not deprecated">
  34086. <param name="userName" type="java.lang.String"/>
  34087. <doc>
  34088. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  34089. @param userName name of the superuser
  34090. @return configuration key for superuser groups]]>
  34091. </doc>
  34092. </method>
  34093. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  34094. abstract="false" native="false" synchronized="false"
  34095. static="false" final="false" visibility="public"
  34096. deprecated="not deprecated">
  34097. <param name="userName" type="java.lang.String"/>
  34098. <doc>
  34099. <![CDATA[Return configuration key for superuser ip addresses
  34100. @param userName name of the superuser
  34101. @return configuration key for superuser ip-addresses]]>
  34102. </doc>
  34103. </method>
  34104. <method name="getProxyGroups" return="java.util.Map"
  34105. abstract="false" native="false" synchronized="false"
  34106. static="false" final="false" visibility="public"
  34107. deprecated="not deprecated">
  34108. </method>
  34109. <method name="getProxyHosts" return="java.util.Map"
  34110. abstract="false" native="false" synchronized="false"
  34111. static="false" final="false" visibility="public"
  34112. deprecated="not deprecated">
  34113. </method>
  34114. </class>
  34115. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  34116. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  34117. <interface name="ImpersonationProvider" abstract="true"
  34118. static="false" final="false" visibility="public"
  34119. deprecated="not deprecated">
  34120. <implements name="org.apache.hadoop.conf.Configurable"/>
  34121. <method name="init"
  34122. abstract="true" native="false" synchronized="false"
  34123. static="false" final="false" visibility="public"
  34124. deprecated="not deprecated">
  34125. <param name="configurationPrefix" type="java.lang.String"/>
  34126. <doc>
  34127. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  34128. initializes the provider.
  34129. @param configurationPrefix the configuration prefix for the proxy user
  34130. properties]]>
  34131. </doc>
  34132. </method>
  34133. <method name="authorize"
  34134. abstract="false" native="false" synchronized="false"
  34135. static="false" final="false" visibility="public"
  34136. deprecated="not deprecated">
  34137. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34138. <param name="remoteAddress" type="java.lang.String"/>
  34139. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34140. <doc>
  34141. <![CDATA[Authorize the superuser which is doing doAs.
  34142. {@link #authorize(UserGroupInformation, InetAddress)} should
  34143. be preferred to avoid possibly re-resolving the ip address.
  34144. @param user ugi of the effective or proxy user which contains a real user.
  34145. @param remoteAddress the ip address of client.
  34146. @throws AuthorizationException Authorization Exception.]]>
  34147. </doc>
  34148. </method>
  34149. <method name="authorize"
  34150. abstract="true" native="false" synchronized="false"
  34151. static="false" final="false" visibility="public"
  34152. deprecated="not deprecated">
  34153. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34154. <param name="remoteAddress" type="java.net.InetAddress"/>
  34155. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34156. <doc>
  34157. <![CDATA[Authorize the superuser which is doing doAs.
  34158. @param user ugi of the effective or proxy user which contains a real user
  34159. @param remoteAddress the ip address of client
  34160. @throws AuthorizationException Authorization Exception.]]>
  34161. </doc>
  34162. </method>
  34163. </interface>
  34164. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  34165. </package>
  34166. <package name="org.apache.hadoop.security.http">
  34167. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  34168. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  34169. abstract="false"
  34170. static="false" final="false" visibility="public"
  34171. deprecated="not deprecated">
  34172. <implements name="javax.servlet.Filter"/>
  34173. <constructor name="RestCsrfPreventionFilter"
  34174. static="false" final="false" visibility="public"
  34175. deprecated="not deprecated">
  34176. </constructor>
  34177. <method name="init"
  34178. abstract="false" native="false" synchronized="false"
  34179. static="false" final="false" visibility="public"
  34180. deprecated="not deprecated">
  34181. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  34182. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34183. </method>
  34184. <method name="isBrowser" return="boolean"
  34185. abstract="false" native="false" synchronized="false"
  34186. static="false" final="false" visibility="protected"
  34187. deprecated="not deprecated">
  34188. <param name="userAgent" type="java.lang.String"/>
  34189. <doc>
  34190. <![CDATA[This method interrogates the User-Agent String and returns whether it
  34191. refers to a browser. If its not a browser, then the requirement for the
  34192. CSRF header will not be enforced; if it is a browser, the requirement will
  34193. be enforced.
  34194. <p>
  34195. A User-Agent String is considered to be a browser if it matches
  34196. any of the regex patterns from browser-useragent-regex; the default
  34197. behavior is to consider everything a browser that matches the following:
  34198. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  34199. this method to use different behavior.
  34200. @param userAgent The User-Agent String, or null if there isn't one
  34201. @return true if the User-Agent String refers to a browser, false if not]]>
  34202. </doc>
  34203. </method>
  34204. <method name="handleHttpInteraction"
  34205. abstract="false" native="false" synchronized="false"
  34206. static="false" final="false" visibility="public"
  34207. deprecated="not deprecated">
  34208. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  34209. <exception name="IOException" type="java.io.IOException"/>
  34210. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34211. <doc>
  34212. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  34213. @param httpInteraction caller's HTTP interaction
  34214. @throws IOException if there is an I/O error
  34215. @throws ServletException if the implementation relies on the servlet API
  34216. and a servlet API call has failed]]>
  34217. </doc>
  34218. </method>
  34219. <method name="doFilter"
  34220. abstract="false" native="false" synchronized="false"
  34221. static="false" final="false" visibility="public"
  34222. deprecated="not deprecated">
  34223. <param name="request" type="javax.servlet.ServletRequest"/>
  34224. <param name="response" type="javax.servlet.ServletResponse"/>
  34225. <param name="chain" type="javax.servlet.FilterChain"/>
  34226. <exception name="IOException" type="java.io.IOException"/>
  34227. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34228. </method>
  34229. <method name="destroy"
  34230. abstract="false" native="false" synchronized="false"
  34231. static="false" final="false" visibility="public"
  34232. deprecated="not deprecated">
  34233. </method>
  34234. <method name="getFilterParams" return="java.util.Map"
  34235. abstract="false" native="false" synchronized="false"
  34236. static="true" final="false" visibility="public"
  34237. deprecated="not deprecated">
  34238. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34239. <param name="confPrefix" type="java.lang.String"/>
  34240. <doc>
  34241. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  34242. initialization. The mapping includes all properties that start with the
  34243. specified configuration prefix. Property names in the mapping are trimmed
  34244. to remove the configuration prefix.
  34245. @param conf configuration to read
  34246. @param confPrefix configuration prefix
  34247. @return mapping of configuration properties to be used for filter
  34248. initialization]]>
  34249. </doc>
  34250. </method>
  34251. <field name="HEADER_USER_AGENT" type="java.lang.String"
  34252. transient="false" volatile="false"
  34253. static="true" final="true" visibility="public"
  34254. deprecated="not deprecated">
  34255. </field>
  34256. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  34257. transient="false" volatile="false"
  34258. static="true" final="true" visibility="public"
  34259. deprecated="not deprecated">
  34260. </field>
  34261. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  34262. transient="false" volatile="false"
  34263. static="true" final="true" visibility="public"
  34264. deprecated="not deprecated">
  34265. </field>
  34266. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  34267. transient="false" volatile="false"
  34268. static="true" final="true" visibility="public"
  34269. deprecated="not deprecated">
  34270. </field>
  34271. <field name="HEADER_DEFAULT" type="java.lang.String"
  34272. transient="false" volatile="false"
  34273. static="true" final="true" visibility="public"
  34274. deprecated="not deprecated">
  34275. </field>
  34276. <doc>
  34277. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  34278. attacks for REST APIs. Enabling this filter on an endpoint results in the
  34279. requirement of all client to send a particular (configurable) HTTP header
  34280. with every request. In the absense of this header the filter will reject the
  34281. attempt as a bad request.]]>
  34282. </doc>
  34283. </class>
  34284. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  34285. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  34286. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  34287. abstract="false"
  34288. static="false" final="false" visibility="public"
  34289. deprecated="not deprecated">
  34290. <implements name="javax.servlet.Filter"/>
  34291. <constructor name="XFrameOptionsFilter"
  34292. static="false" final="false" visibility="public"
  34293. deprecated="not deprecated">
  34294. </constructor>
  34295. <method name="destroy"
  34296. abstract="false" native="false" synchronized="false"
  34297. static="false" final="false" visibility="public"
  34298. deprecated="not deprecated">
  34299. </method>
  34300. <method name="doFilter"
  34301. abstract="false" native="false" synchronized="false"
  34302. static="false" final="false" visibility="public"
  34303. deprecated="not deprecated">
  34304. <param name="req" type="javax.servlet.ServletRequest"/>
  34305. <param name="res" type="javax.servlet.ServletResponse"/>
  34306. <param name="chain" type="javax.servlet.FilterChain"/>
  34307. <exception name="IOException" type="java.io.IOException"/>
  34308. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34309. </method>
  34310. <method name="init"
  34311. abstract="false" native="false" synchronized="false"
  34312. static="false" final="false" visibility="public"
  34313. deprecated="not deprecated">
  34314. <param name="config" type="javax.servlet.FilterConfig"/>
  34315. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34316. </method>
  34317. <method name="getFilterParams" return="java.util.Map"
  34318. abstract="false" native="false" synchronized="false"
  34319. static="true" final="false" visibility="public"
  34320. deprecated="not deprecated">
  34321. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34322. <param name="confPrefix" type="java.lang.String"/>
  34323. <doc>
  34324. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  34325. initialization. The mapping includes all properties that start with the
  34326. specified configuration prefix. Property names in the mapping are trimmed
  34327. to remove the configuration prefix.
  34328. @param conf configuration to read
  34329. @param confPrefix configuration prefix
  34330. @return mapping of configuration properties to be used for filter
  34331. initialization]]>
  34332. </doc>
  34333. </method>
  34334. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  34335. transient="false" volatile="false"
  34336. static="true" final="true" visibility="public"
  34337. deprecated="not deprecated">
  34338. </field>
  34339. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  34340. transient="false" volatile="false"
  34341. static="true" final="true" visibility="public"
  34342. deprecated="not deprecated">
  34343. </field>
  34344. <doc>
  34345. <![CDATA[This filter protects webapps from clickjacking attacks that
  34346. are possible through use of Frames to embed the resources in another
  34347. application and intercept clicks to accomplish nefarious things.]]>
  34348. </doc>
  34349. </class>
  34350. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  34351. </package>
  34352. <package name="org.apache.hadoop.security.protocolPB">
  34353. </package>
  34354. <package name="org.apache.hadoop.security.ssl">
  34355. </package>
  34356. <package name="org.apache.hadoop.security.token">
  34357. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  34358. <class name="SecretManager" extends="java.lang.Object"
  34359. abstract="true"
  34360. static="false" final="false" visibility="public"
  34361. deprecated="not deprecated">
  34362. <constructor name="SecretManager"
  34363. static="false" final="false" visibility="public"
  34364. deprecated="not deprecated">
  34365. </constructor>
  34366. <method name="createPassword" return="byte[]"
  34367. abstract="true" native="false" synchronized="false"
  34368. static="false" final="false" visibility="protected"
  34369. deprecated="not deprecated">
  34370. <param name="identifier" type="T"/>
  34371. <doc>
  34372. <![CDATA[Create the password for the given identifier.
  34373. identifier may be modified inside this method.
  34374. @param identifier the identifier to use
  34375. @return the new password]]>
  34376. </doc>
  34377. </method>
  34378. <method name="retrievePassword" return="byte[]"
  34379. abstract="true" native="false" synchronized="false"
  34380. static="false" final="false" visibility="public"
  34381. deprecated="not deprecated">
  34382. <param name="identifier" type="T"/>
  34383. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34384. <doc>
  34385. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  34386. or registry to make sure the token hasn't expired or been revoked. Returns
  34387. the relevant password.
  34388. @param identifier the identifier to validate
  34389. @return the password to use
  34390. @throws InvalidToken the token was invalid]]>
  34391. </doc>
  34392. </method>
  34393. <method name="retriableRetrievePassword" return="byte[]"
  34394. abstract="false" native="false" synchronized="false"
  34395. static="false" final="false" visibility="public"
  34396. deprecated="not deprecated">
  34397. <param name="identifier" type="T"/>
  34398. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34399. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  34400. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  34401. <exception name="IOException" type="java.io.IOException"/>
  34402. <doc>
  34403. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  34404. method can throw a {@link RetriableException} or a {@link StandbyException}
  34405. to indicate that client can retry/failover the same operation because of
  34406. temporary issue on the server side.
  34407. @param identifier the identifier to validate
  34408. @return the password to use
  34409. @throws InvalidToken the token was invalid
  34410. @throws StandbyException the server is in standby state, the client can
  34411. try other servers
  34412. @throws RetriableException the token was invalid, and the server thinks
  34413. this may be a temporary issue and suggests the client to retry
  34414. @throws IOException to allow future exceptions to be added without breaking
  34415. compatibility]]>
  34416. </doc>
  34417. </method>
  34418. <method name="createIdentifier" return="T"
  34419. abstract="true" native="false" synchronized="false"
  34420. static="false" final="false" visibility="public"
  34421. deprecated="not deprecated">
  34422. <doc>
  34423. <![CDATA[Create an empty token identifier.
  34424. @return the newly created empty token identifier]]>
  34425. </doc>
  34426. </method>
  34427. <method name="checkAvailableForRead"
  34428. abstract="false" native="false" synchronized="false"
  34429. static="false" final="false" visibility="public"
  34430. deprecated="not deprecated">
  34431. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  34432. <doc>
  34433. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  34434. StandbyException otherwise.
  34435. @throws StandbyException if the secret manager is not available to read
  34436. tokens]]>
  34437. </doc>
  34438. </method>
  34439. <method name="generateSecret" return="javax.crypto.SecretKey"
  34440. abstract="false" native="false" synchronized="false"
  34441. static="false" final="false" visibility="protected"
  34442. deprecated="not deprecated">
  34443. <doc>
  34444. <![CDATA[Generate a new random secret key.
  34445. @return the new key]]>
  34446. </doc>
  34447. </method>
  34448. <method name="createPassword" return="byte[]"
  34449. abstract="false" native="false" synchronized="false"
  34450. static="true" final="false" visibility="public"
  34451. deprecated="not deprecated">
  34452. <param name="identifier" type="byte[]"/>
  34453. <param name="key" type="javax.crypto.SecretKey"/>
  34454. <doc>
  34455. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  34456. output as password
  34457. @param identifier the bytes of the identifier
  34458. @param key the secret key
  34459. @return the bytes of the generated password]]>
  34460. </doc>
  34461. </method>
  34462. <method name="createSecretKey" return="javax.crypto.SecretKey"
  34463. abstract="false" native="false" synchronized="false"
  34464. static="true" final="false" visibility="protected"
  34465. deprecated="not deprecated">
  34466. <param name="key" type="byte[]"/>
  34467. <doc>
  34468. <![CDATA[Convert the byte[] to a secret key
  34469. @param key the byte[] to create a secret key from
  34470. @return the secret key]]>
  34471. </doc>
  34472. </method>
  34473. <doc>
  34474. <![CDATA[The server-side secret manager for each token type.
  34475. @param <T> The type of the token identifier]]>
  34476. </doc>
  34477. </class>
  34478. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  34479. <!-- start class org.apache.hadoop.security.token.Token -->
  34480. <class name="Token" extends="java.lang.Object"
  34481. abstract="false"
  34482. static="false" final="false" visibility="public"
  34483. deprecated="not deprecated">
  34484. <implements name="org.apache.hadoop.io.Writable"/>
  34485. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  34486. static="false" final="false" visibility="public"
  34487. deprecated="not deprecated">
  34488. <doc>
  34489. <![CDATA[Construct a token given a token identifier and a secret manager for the
  34490. type of the token identifier.
  34491. @param id the token identifier
  34492. @param mgr the secret manager]]>
  34493. </doc>
  34494. </constructor>
  34495. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  34496. static="false" final="false" visibility="public"
  34497. deprecated="not deprecated">
  34498. <doc>
  34499. <![CDATA[Construct a token from the components.
  34500. @param identifier the token identifier
  34501. @param password the token's password
  34502. @param kind the kind of token
  34503. @param service the service for this token]]>
  34504. </doc>
  34505. </constructor>
  34506. <constructor name="Token"
  34507. static="false" final="false" visibility="public"
  34508. deprecated="not deprecated">
  34509. <doc>
  34510. <![CDATA[Default constructor.]]>
  34511. </doc>
  34512. </constructor>
  34513. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  34514. static="false" final="false" visibility="public"
  34515. deprecated="not deprecated">
  34516. <doc>
  34517. <![CDATA[Clone a token.
  34518. @param other the token to clone]]>
  34519. </doc>
  34520. </constructor>
  34521. <method name="setID"
  34522. abstract="false" native="false" synchronized="false"
  34523. static="false" final="false" visibility="public"
  34524. deprecated="not deprecated">
  34525. <param name="bytes" type="byte[]"/>
  34526. </method>
  34527. <method name="setPassword"
  34528. abstract="false" native="false" synchronized="false"
  34529. static="false" final="false" visibility="public"
  34530. deprecated="not deprecated">
  34531. <param name="newPassword" type="byte[]"/>
  34532. </method>
  34533. <method name="copyToken" return="org.apache.hadoop.security.token.Token"
  34534. abstract="false" native="false" synchronized="false"
  34535. static="false" final="false" visibility="public"
  34536. deprecated="not deprecated">
  34537. </method>
  34538. <method name="getIdentifier" return="byte[]"
  34539. abstract="false" native="false" synchronized="false"
  34540. static="false" final="false" visibility="public"
  34541. deprecated="not deprecated">
  34542. <doc>
  34543. <![CDATA[Get the token identifier's byte representation.
  34544. @return the token identifier's byte representation]]>
  34545. </doc>
  34546. </method>
  34547. <method name="decodeIdentifier" return="T"
  34548. abstract="false" native="false" synchronized="false"
  34549. static="false" final="false" visibility="public"
  34550. deprecated="not deprecated">
  34551. <exception name="IOException" type="java.io.IOException"/>
  34552. <doc>
  34553. <![CDATA[Get the token identifier object, or null if it could not be constructed
  34554. (because the class could not be loaded, for example).
  34555. @return the token identifier, or null if there was no class found for it
  34556. @throws IOException failure to unmarshall the data
  34557. @throws RuntimeException if the token class could not be instantiated.]]>
  34558. </doc>
  34559. </method>
  34560. <method name="getPassword" return="byte[]"
  34561. abstract="false" native="false" synchronized="false"
  34562. static="false" final="false" visibility="public"
  34563. deprecated="not deprecated">
  34564. <doc>
  34565. <![CDATA[Get the token password/secret.
  34566. @return the token password/secret]]>
  34567. </doc>
  34568. </method>
  34569. <method name="getKind" return="org.apache.hadoop.io.Text"
  34570. abstract="false" native="false" synchronized="true"
  34571. static="false" final="false" visibility="public"
  34572. deprecated="not deprecated">
  34573. <doc>
  34574. <![CDATA[Get the token kind.
  34575. @return the kind of the token]]>
  34576. </doc>
  34577. </method>
  34578. <method name="getService" return="org.apache.hadoop.io.Text"
  34579. abstract="false" native="false" synchronized="false"
  34580. static="false" final="false" visibility="public"
  34581. deprecated="not deprecated">
  34582. <doc>
  34583. <![CDATA[Get the service on which the token is supposed to be used.
  34584. @return the service name]]>
  34585. </doc>
  34586. </method>
  34587. <method name="setService"
  34588. abstract="false" native="false" synchronized="false"
  34589. static="false" final="false" visibility="public"
  34590. deprecated="not deprecated">
  34591. <param name="newService" type="org.apache.hadoop.io.Text"/>
  34592. <doc>
  34593. <![CDATA[Set the service on which the token is supposed to be used.
  34594. @param newService the service name]]>
  34595. </doc>
  34596. </method>
  34597. <method name="isPrivate" return="boolean"
  34598. abstract="false" native="false" synchronized="false"
  34599. static="false" final="false" visibility="public"
  34600. deprecated="not deprecated">
  34601. <doc>
  34602. <![CDATA[Whether this is a private token.
  34603. @return false always for non-private tokens]]>
  34604. </doc>
  34605. </method>
  34606. <method name="isPrivateCloneOf" return="boolean"
  34607. abstract="false" native="false" synchronized="false"
  34608. static="false" final="false" visibility="public"
  34609. deprecated="not deprecated">
  34610. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  34611. <doc>
  34612. <![CDATA[Whether this is a private clone of a public token.
  34613. @param thePublicService the public service name
  34614. @return false always for non-private tokens]]>
  34615. </doc>
  34616. </method>
  34617. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  34618. abstract="false" native="false" synchronized="false"
  34619. static="false" final="false" visibility="public"
  34620. deprecated="not deprecated">
  34621. <param name="newService" type="org.apache.hadoop.io.Text"/>
  34622. <doc>
  34623. <![CDATA[Create a private clone of a public token.
  34624. @param newService the new service name
  34625. @return a private token]]>
  34626. </doc>
  34627. </method>
  34628. <method name="readFields"
  34629. abstract="false" native="false" synchronized="false"
  34630. static="false" final="false" visibility="public"
  34631. deprecated="not deprecated">
  34632. <param name="in" type="java.io.DataInput"/>
  34633. <exception name="IOException" type="java.io.IOException"/>
  34634. </method>
  34635. <method name="write"
  34636. abstract="false" native="false" synchronized="false"
  34637. static="false" final="false" visibility="public"
  34638. deprecated="not deprecated">
  34639. <param name="out" type="java.io.DataOutput"/>
  34640. <exception name="IOException" type="java.io.IOException"/>
  34641. </method>
  34642. <method name="encodeToUrlString" return="java.lang.String"
  34643. abstract="false" native="false" synchronized="false"
  34644. static="false" final="false" visibility="public"
  34645. deprecated="not deprecated">
  34646. <exception name="IOException" type="java.io.IOException"/>
  34647. <doc>
  34648. <![CDATA[Encode this token as a url safe string.
  34649. @return the encoded string
  34650. @throws IOException raised on errors performing I/O.]]>
  34651. </doc>
  34652. </method>
  34653. <method name="decodeFromUrlString"
  34654. abstract="false" native="false" synchronized="false"
  34655. static="false" final="false" visibility="public"
  34656. deprecated="not deprecated">
  34657. <param name="newValue" type="java.lang.String"/>
  34658. <exception name="IOException" type="java.io.IOException"/>
  34659. <doc>
  34660. <![CDATA[Decode the given url safe string into this token.
  34661. @param newValue the encoded string
  34662. @throws IOException raised on errors performing I/O.]]>
  34663. </doc>
  34664. </method>
  34665. <method name="equals" return="boolean"
  34666. abstract="false" native="false" synchronized="false"
  34667. static="false" final="false" visibility="public"
  34668. deprecated="not deprecated">
  34669. <param name="right" type="java.lang.Object"/>
  34670. </method>
  34671. <method name="hashCode" return="int"
  34672. abstract="false" native="false" synchronized="false"
  34673. static="false" final="false" visibility="public"
  34674. deprecated="not deprecated">
  34675. </method>
  34676. <method name="toString" return="java.lang.String"
  34677. abstract="false" native="false" synchronized="false"
  34678. static="false" final="false" visibility="public"
  34679. deprecated="not deprecated">
  34680. </method>
  34681. <method name="buildCacheKey" return="java.lang.String"
  34682. abstract="false" native="false" synchronized="false"
  34683. static="false" final="false" visibility="public"
  34684. deprecated="not deprecated">
  34685. </method>
  34686. <method name="isManaged" return="boolean"
  34687. abstract="false" native="false" synchronized="false"
  34688. static="false" final="false" visibility="public"
  34689. deprecated="not deprecated">
  34690. <exception name="IOException" type="java.io.IOException"/>
  34691. <doc>
  34692. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  34693. @return true, if it can be renewed and cancelled.
  34694. @throws IOException raised on errors performing I/O.]]>
  34695. </doc>
  34696. </method>
  34697. <method name="renew" return="long"
  34698. abstract="false" native="false" synchronized="false"
  34699. static="false" final="false" visibility="public"
  34700. deprecated="not deprecated">
  34701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34702. <exception name="IOException" type="java.io.IOException"/>
  34703. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34704. <doc>
  34705. <![CDATA[Renew this delegation token.
  34706. @param conf configuration.
  34707. @return the new expiration time
  34708. @throws IOException raised on errors performing I/O.
  34709. @throws InterruptedException if the thread is interrupted.]]>
  34710. </doc>
  34711. </method>
  34712. <method name="cancel"
  34713. abstract="false" native="false" synchronized="false"
  34714. static="false" final="false" visibility="public"
  34715. deprecated="not deprecated">
  34716. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34717. <exception name="IOException" type="java.io.IOException"/>
  34718. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34719. <doc>
  34720. <![CDATA[Cancel this delegation token.
  34721. @param conf configuration.
  34722. @throws IOException raised on errors performing I/O.
  34723. @throws InterruptedException if the thread is interrupted.]]>
  34724. </doc>
  34725. </method>
  34726. <field name="LOG" type="org.slf4j.Logger"
  34727. transient="false" volatile="false"
  34728. static="true" final="true" visibility="public"
  34729. deprecated="not deprecated">
  34730. </field>
  34731. <doc>
  34732. <![CDATA[The client-side form of the token.]]>
  34733. </doc>
  34734. </class>
  34735. <!-- end class org.apache.hadoop.security.token.Token -->
  34736. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  34737. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  34738. abstract="false"
  34739. static="true" final="false" visibility="public"
  34740. deprecated="not deprecated">
  34741. <constructor name="TrivialRenewer"
  34742. static="false" final="false" visibility="public"
  34743. deprecated="not deprecated">
  34744. </constructor>
  34745. <method name="getKind" return="org.apache.hadoop.io.Text"
  34746. abstract="false" native="false" synchronized="false"
  34747. static="false" final="false" visibility="protected"
  34748. deprecated="not deprecated">
  34749. </method>
  34750. <method name="handleKind" return="boolean"
  34751. abstract="false" native="false" synchronized="false"
  34752. static="false" final="false" visibility="public"
  34753. deprecated="not deprecated">
  34754. <param name="kind" type="org.apache.hadoop.io.Text"/>
  34755. </method>
  34756. <method name="isManaged" return="boolean"
  34757. abstract="false" native="false" synchronized="false"
  34758. static="false" final="false" visibility="public"
  34759. deprecated="not deprecated">
  34760. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34761. </method>
  34762. <method name="renew" return="long"
  34763. abstract="false" native="false" synchronized="false"
  34764. static="false" final="false" visibility="public"
  34765. deprecated="not deprecated">
  34766. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34768. </method>
  34769. <method name="cancel"
  34770. abstract="false" native="false" synchronized="false"
  34771. static="false" final="false" visibility="public"
  34772. deprecated="not deprecated">
  34773. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34775. <exception name="IOException" type="java.io.IOException"/>
  34776. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34777. </method>
  34778. <doc>
  34779. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  34780. to implement getKind for their token kind.]]>
  34781. </doc>
  34782. </class>
  34783. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  34784. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  34785. <class name="TokenIdentifier" extends="java.lang.Object"
  34786. abstract="true"
  34787. static="false" final="false" visibility="public"
  34788. deprecated="not deprecated">
  34789. <implements name="org.apache.hadoop.io.Writable"/>
  34790. <constructor name="TokenIdentifier"
  34791. static="false" final="false" visibility="public"
  34792. deprecated="not deprecated">
  34793. </constructor>
  34794. <method name="getKind" return="org.apache.hadoop.io.Text"
  34795. abstract="true" native="false" synchronized="false"
  34796. static="false" final="false" visibility="public"
  34797. deprecated="not deprecated">
  34798. <doc>
  34799. <![CDATA[Get the token kind
  34800. @return the kind of the token]]>
  34801. </doc>
  34802. </method>
  34803. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  34804. abstract="true" native="false" synchronized="false"
  34805. static="false" final="false" visibility="public"
  34806. deprecated="not deprecated">
  34807. <doc>
  34808. <![CDATA[Get the Ugi with the username encoded in the token identifier
  34809. @return the username. null is returned if username in the identifier is
  34810. empty or null.]]>
  34811. </doc>
  34812. </method>
  34813. <method name="getBytes" return="byte[]"
  34814. abstract="false" native="false" synchronized="false"
  34815. static="false" final="false" visibility="public"
  34816. deprecated="not deprecated">
  34817. <doc>
  34818. <![CDATA[Get the bytes for the token identifier
  34819. @return the bytes of the identifier]]>
  34820. </doc>
  34821. </method>
  34822. <method name="getTrackingId" return="java.lang.String"
  34823. abstract="false" native="false" synchronized="false"
  34824. static="false" final="false" visibility="public"
  34825. deprecated="not deprecated">
  34826. <doc>
  34827. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  34828. token across multiple client sessions.
  34829. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  34830. @return tracking identifier]]>
  34831. </doc>
  34832. </method>
  34833. <doc>
  34834. <![CDATA[An identifier that identifies a token, may contain public information
  34835. about a token, including its kind (or type).]]>
  34836. </doc>
  34837. </class>
  34838. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  34839. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  34840. <class name="TokenInfo" abstract="true"
  34841. static="false" final="false" visibility="public"
  34842. deprecated="not deprecated">
  34843. <implements name="java.lang.annotation.Annotation"/>
  34844. <doc>
  34845. <![CDATA[Indicates Token related information to be used]]>
  34846. </doc>
  34847. </class>
  34848. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  34849. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  34850. <class name="TokenRenewer" extends="java.lang.Object"
  34851. abstract="true"
  34852. static="false" final="false" visibility="public"
  34853. deprecated="not deprecated">
  34854. <constructor name="TokenRenewer"
  34855. static="false" final="false" visibility="public"
  34856. deprecated="not deprecated">
  34857. </constructor>
  34858. <method name="handleKind" return="boolean"
  34859. abstract="true" native="false" synchronized="false"
  34860. static="false" final="false" visibility="public"
  34861. deprecated="not deprecated">
  34862. <param name="kind" type="org.apache.hadoop.io.Text"/>
  34863. <doc>
  34864. <![CDATA[Does this renewer handle this kind of token?
  34865. @param kind the kind of the token
  34866. @return true if this renewer can renew it]]>
  34867. </doc>
  34868. </method>
  34869. <method name="isManaged" return="boolean"
  34870. abstract="true" native="false" synchronized="false"
  34871. static="false" final="false" visibility="public"
  34872. deprecated="not deprecated">
  34873. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34874. <exception name="IOException" type="java.io.IOException"/>
  34875. <doc>
  34876. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  34877. cancelled.
  34878. @param token the token being checked
  34879. @return true if the token may be renewed or cancelled
  34880. @throws IOException raised on errors performing I/O.]]>
  34881. </doc>
  34882. </method>
  34883. <method name="renew" return="long"
  34884. abstract="true" native="false" synchronized="false"
  34885. static="false" final="false" visibility="public"
  34886. deprecated="not deprecated">
  34887. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34889. <exception name="IOException" type="java.io.IOException"/>
  34890. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34891. <doc>
  34892. <![CDATA[Renew the given token.
  34893. @param token the token being checked.
  34894. @param conf configuration.
  34895. @return the new expiration time.
  34896. @throws IOException raised on errors performing I/O.
  34897. @throws InterruptedException thrown when a thread is waiting, sleeping,
  34898. or otherwise occupied, and the thread is interrupted,
  34899. either before or during the activity.]]>
  34900. </doc>
  34901. </method>
  34902. <method name="cancel"
  34903. abstract="true" native="false" synchronized="false"
  34904. static="false" final="false" visibility="public"
  34905. deprecated="not deprecated">
  34906. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34907. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34908. <exception name="IOException" type="java.io.IOException"/>
  34909. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34910. <doc>
  34911. <![CDATA[Cancel the given token.
  34912. @param token the token being checked.
  34913. @param conf configuration.
  34914. @throws IOException raised on errors performing I/O.
  34915. @throws InterruptedException thrown when a thread is waiting, sleeping,
  34916. or otherwise occupied, and the thread is interrupted,
  34917. either before or during the activity.]]>
  34918. </doc>
  34919. </method>
  34920. <doc>
  34921. <![CDATA[This is the interface for plugins that handle tokens.]]>
  34922. </doc>
  34923. </class>
  34924. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  34925. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  34926. <interface name="TokenSelector" abstract="true"
  34927. static="false" final="false" visibility="public"
  34928. deprecated="not deprecated">
  34929. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  34930. abstract="true" native="false" synchronized="false"
  34931. static="false" final="false" visibility="public"
  34932. deprecated="not deprecated">
  34933. <param name="service" type="org.apache.hadoop.io.Text"/>
  34934. <param name="tokens" type="java.util.Collection"/>
  34935. </method>
  34936. <doc>
  34937. <![CDATA[Select token of type T from tokens for use with named service
  34938. @param <T>
  34939. T extends TokenIdentifier]]>
  34940. </doc>
  34941. </interface>
  34942. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  34943. </package>
  34944. <package name="org.apache.hadoop.security.token.delegation.web">
  34945. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  34946. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  34947. abstract="false"
  34948. static="false" final="false" visibility="public"
  34949. deprecated="not deprecated">
  34950. <constructor name="DelegationTokenAuthenticatedURL"
  34951. static="false" final="false" visibility="public"
  34952. deprecated="not deprecated">
  34953. <doc>
  34954. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  34955. <p>
  34956. An instance of the default {@link DelegationTokenAuthenticator} will be
  34957. used.]]>
  34958. </doc>
  34959. </constructor>
  34960. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  34961. static="false" final="false" visibility="public"
  34962. deprecated="not deprecated">
  34963. <doc>
  34964. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  34965. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  34966. use, if <code>null</code> the default one will be used.]]>
  34967. </doc>
  34968. </constructor>
  34969. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  34970. static="false" final="false" visibility="public"
  34971. deprecated="not deprecated">
  34972. <doc>
  34973. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  34974. {@link DelegationTokenAuthenticator} class.
  34975. @param connConfigurator a connection configurator.]]>
  34976. </doc>
  34977. </constructor>
  34978. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  34979. static="false" final="false" visibility="public"
  34980. deprecated="not deprecated">
  34981. <doc>
  34982. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  34983. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  34984. use, if <code>null</code> the default one will be used.
  34985. @param connConfigurator a connection configurator.]]>
  34986. </doc>
  34987. </constructor>
  34988. <method name="setDefaultDelegationTokenAuthenticator"
  34989. abstract="false" native="false" synchronized="false"
  34990. static="true" final="false" visibility="public"
  34991. deprecated="not deprecated">
  34992. <param name="authenticator" type="java.lang.Class"/>
  34993. <doc>
  34994. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  34995. {@link DelegationTokenAuthenticatedURL} instance is created without
  34996. specifying one.
  34997. The default class is {@link KerberosDelegationTokenAuthenticator}
  34998. @param authenticator the authenticator class to use as default.]]>
  34999. </doc>
  35000. </method>
  35001. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  35002. abstract="false" native="false" synchronized="false"
  35003. static="true" final="false" visibility="public"
  35004. deprecated="not deprecated">
  35005. <doc>
  35006. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  35007. an {@link DelegationTokenAuthenticatedURL} instance is created without
  35008. specifying one.
  35009. <p>
  35010. The default class is {@link KerberosDelegationTokenAuthenticator}
  35011. @return the delegation token authenticator class to use as default.]]>
  35012. </doc>
  35013. </method>
  35014. <method name="setUseQueryStringForDelegationToken"
  35015. abstract="false" native="false" synchronized="false"
  35016. static="false" final="false" visibility="protected"
  35017. deprecated="not deprecated">
  35018. <param name="useQueryString" type="boolean"/>
  35019. <doc>
  35020. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  35021. By default it is transmitted using the
  35022. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  35023. <p>
  35024. This method is provided to enable WebHDFS backwards compatibility.
  35025. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  35026. URL query string, <code>FALSE</code> if the delegation token is transmitted
  35027. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  35028. header.]]>
  35029. </doc>
  35030. </method>
  35031. <method name="useQueryStringForDelegationToken" return="boolean"
  35032. abstract="false" native="false" synchronized="false"
  35033. static="false" final="false" visibility="public"
  35034. deprecated="not deprecated">
  35035. <doc>
  35036. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  35037. @return <code>TRUE</code> if the token is transmitted in the URL query
  35038. string, <code>FALSE</code> if the delegation token is transmitted using the
  35039. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  35040. </doc>
  35041. </method>
  35042. <method name="openConnection" return="java.net.HttpURLConnection"
  35043. abstract="false" native="false" synchronized="false"
  35044. static="false" final="false" visibility="public"
  35045. deprecated="not deprecated">
  35046. <param name="url" type="java.net.URL"/>
  35047. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35048. <exception name="IOException" type="java.io.IOException"/>
  35049. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35050. <doc>
  35051. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  35052. Token only if the given auth token is an instance of {@link Token} and
  35053. it contains a Delegation Token, otherwise use the configured
  35054. {@link DelegationTokenAuthenticator} to authenticate the connection.
  35055. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35056. @param token the authentication token being used for the user.
  35057. @return an authenticated {@link HttpURLConnection}.
  35058. @throws IOException if an IO error occurred.
  35059. @throws AuthenticationException if an authentication exception occurred.]]>
  35060. </doc>
  35061. </method>
  35062. <method name="openConnection" return="java.net.HttpURLConnection"
  35063. abstract="false" native="false" synchronized="false"
  35064. static="false" final="false" visibility="public"
  35065. deprecated="not deprecated">
  35066. <param name="url" type="java.net.URL"/>
  35067. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35068. <exception name="IOException" type="java.io.IOException"/>
  35069. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35070. <doc>
  35071. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  35072. Token is present, it will be used taking precedence over the configured
  35073. <code>Authenticator</code>.
  35074. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35075. @param token the authentication token being used for the user.
  35076. @return an authenticated {@link HttpURLConnection}.
  35077. @throws IOException if an IO error occurred.
  35078. @throws AuthenticationException if an authentication exception occurred.]]>
  35079. </doc>
  35080. </method>
  35081. <method name="openConnection" return="java.net.HttpURLConnection"
  35082. abstract="false" native="false" synchronized="false"
  35083. static="false" final="false" visibility="public"
  35084. deprecated="not deprecated">
  35085. <param name="url" type="java.net.URL"/>
  35086. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35087. <param name="doAs" type="java.lang.String"/>
  35088. <exception name="IOException" type="java.io.IOException"/>
  35089. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35090. <doc>
  35091. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  35092. Token is present, it will be used taking precedence over the configured
  35093. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  35094. the request will be done on behalf of the specified <code>doAs</code> user.
  35095. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35096. @param token the authentication token being used for the user.
  35097. @param doAs user to do the the request on behalf of, if NULL the request is
  35098. as self.
  35099. @return an authenticated {@link HttpURLConnection}.
  35100. @throws IOException if an IO error occurred.
  35101. @throws AuthenticationException if an authentication exception occurred.]]>
  35102. </doc>
  35103. </method>
  35104. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35105. abstract="false" native="false" synchronized="false"
  35106. static="false" final="false" visibility="public"
  35107. deprecated="not deprecated">
  35108. <param name="url" type="java.net.URL"/>
  35109. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35110. <param name="renewer" type="java.lang.String"/>
  35111. <exception name="IOException" type="java.io.IOException"/>
  35112. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35113. <doc>
  35114. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35115. for authentication.
  35116. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35117. supported.
  35118. @param token the authentication token being used for the user where the
  35119. Delegation token will be stored.
  35120. @param renewer the renewer user.
  35121. @return a delegation token.
  35122. @throws IOException if an IO error occurred.
  35123. @throws AuthenticationException if an authentication exception occurred.]]>
  35124. </doc>
  35125. </method>
  35126. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35127. abstract="false" native="false" synchronized="false"
  35128. static="false" final="false" visibility="public"
  35129. deprecated="not deprecated">
  35130. <param name="url" type="java.net.URL"/>
  35131. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35132. <param name="renewer" type="java.lang.String"/>
  35133. <param name="doAsUser" type="java.lang.String"/>
  35134. <exception name="IOException" type="java.io.IOException"/>
  35135. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35136. <doc>
  35137. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35138. for authentication.
  35139. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35140. supported.
  35141. @param token the authentication token being used for the user where the
  35142. Delegation token will be stored.
  35143. @param renewer the renewer user.
  35144. @param doAsUser the user to do as, which will be the token owner.
  35145. @return a delegation token.
  35146. @throws IOException if an IO error occurred.
  35147. @throws AuthenticationException if an authentication exception occurred.]]>
  35148. </doc>
  35149. </method>
  35150. <method name="renewDelegationToken" return="long"
  35151. abstract="false" native="false" synchronized="false"
  35152. static="false" final="false" visibility="public"
  35153. deprecated="not deprecated">
  35154. <param name="url" type="java.net.URL"/>
  35155. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35156. <exception name="IOException" type="java.io.IOException"/>
  35157. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35158. <doc>
  35159. <![CDATA[Renews a delegation token from the server end-point using the
  35160. configured <code>Authenticator</code> for authentication.
  35161. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35162. supported.
  35163. @param token the authentication token with the Delegation Token to renew.
  35164. @throws IOException if an IO error occurred.
  35165. @throws AuthenticationException if an authentication exception occurred.
  35166. @return delegation token long value.]]>
  35167. </doc>
  35168. </method>
  35169. <method name="renewDelegationToken" return="long"
  35170. abstract="false" native="false" synchronized="false"
  35171. static="false" final="false" visibility="public"
  35172. deprecated="not deprecated">
  35173. <param name="url" type="java.net.URL"/>
  35174. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35175. <param name="doAsUser" type="java.lang.String"/>
  35176. <exception name="IOException" type="java.io.IOException"/>
  35177. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35178. <doc>
  35179. <![CDATA[Renews a delegation token from the server end-point using the
  35180. configured <code>Authenticator</code> for authentication.
  35181. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35182. supported.
  35183. @param token the authentication token with the Delegation Token to renew.
  35184. @param doAsUser the user to do as, which will be the token owner.
  35185. @throws IOException if an IO error occurred.
  35186. @throws AuthenticationException if an authentication exception occurred.
  35187. @return delegation token long value.]]>
  35188. </doc>
  35189. </method>
  35190. <method name="cancelDelegationToken"
  35191. abstract="false" native="false" synchronized="false"
  35192. static="false" final="false" visibility="public"
  35193. deprecated="not deprecated">
  35194. <param name="url" type="java.net.URL"/>
  35195. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35196. <exception name="IOException" type="java.io.IOException"/>
  35197. <doc>
  35198. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35199. being authenticated by the configured <code>Authenticator</code>.
  35200. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35201. are supported.
  35202. @param token the authentication token with the Delegation Token to cancel.
  35203. @throws IOException if an IO error occurred.]]>
  35204. </doc>
  35205. </method>
  35206. <method name="cancelDelegationToken"
  35207. abstract="false" native="false" synchronized="false"
  35208. static="false" final="false" visibility="public"
  35209. deprecated="not deprecated">
  35210. <param name="url" type="java.net.URL"/>
  35211. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35212. <param name="doAsUser" type="java.lang.String"/>
  35213. <exception name="IOException" type="java.io.IOException"/>
  35214. <doc>
  35215. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35216. being authenticated by the configured <code>Authenticator</code>.
  35217. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35218. are supported.
  35219. @param token the authentication token with the Delegation Token to cancel.
  35220. @param doAsUser the user to do as, which will be the token owner.
  35221. @throws IOException if an IO error occurred.]]>
  35222. </doc>
  35223. </method>
  35224. <doc>
  35225. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  35226. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  35227. functionality.
  35228. <p>
  35229. The authentication mechanisms supported by default are Hadoop Simple
  35230. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  35231. authentication.
  35232. <p>
  35233. Additional authentication mechanisms can be supported via {@link
  35234. DelegationTokenAuthenticator} implementations.
  35235. <p>
  35236. The default {@link DelegationTokenAuthenticator} is the {@link
  35237. KerberosDelegationTokenAuthenticator} class which supports
  35238. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  35239. the {@link PseudoDelegationTokenAuthenticator} class.
  35240. <p>
  35241. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  35242. </doc>
  35243. </class>
  35244. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  35245. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  35246. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  35247. abstract="false"
  35248. static="true" final="false" visibility="public"
  35249. deprecated="not deprecated">
  35250. <constructor name="Token"
  35251. static="false" final="false" visibility="public"
  35252. deprecated="not deprecated">
  35253. </constructor>
  35254. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35255. abstract="false" native="false" synchronized="false"
  35256. static="false" final="false" visibility="public"
  35257. deprecated="not deprecated">
  35258. </method>
  35259. <method name="setDelegationToken"
  35260. abstract="false" native="false" synchronized="false"
  35261. static="false" final="false" visibility="public"
  35262. deprecated="not deprecated">
  35263. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  35264. </method>
  35265. <doc>
  35266. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  35267. </doc>
  35268. </class>
  35269. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  35270. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  35271. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  35272. abstract="true"
  35273. static="false" final="false" visibility="public"
  35274. deprecated="not deprecated">
  35275. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35276. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35277. static="false" final="false" visibility="public"
  35278. deprecated="not deprecated">
  35279. </constructor>
  35280. <method name="setConnectionConfigurator"
  35281. abstract="false" native="false" synchronized="false"
  35282. static="false" final="false" visibility="public"
  35283. deprecated="not deprecated">
  35284. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  35285. </method>
  35286. <method name="authenticate"
  35287. abstract="false" native="false" synchronized="false"
  35288. static="false" final="false" visibility="public"
  35289. deprecated="not deprecated">
  35290. <param name="url" type="java.net.URL"/>
  35291. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35292. <exception name="IOException" type="java.io.IOException"/>
  35293. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35294. </method>
  35295. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35296. abstract="false" native="false" synchronized="false"
  35297. static="false" final="false" visibility="public"
  35298. deprecated="not deprecated">
  35299. <param name="url" type="java.net.URL"/>
  35300. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35301. <param name="renewer" type="java.lang.String"/>
  35302. <exception name="IOException" type="java.io.IOException"/>
  35303. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35304. <doc>
  35305. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35306. for authentication.
  35307. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35308. supported.
  35309. @param token the authentication token being used for the user where the
  35310. Delegation token will be stored.
  35311. @param renewer the renewer user.
  35312. @throws IOException if an IO error occurred.
  35313. @throws AuthenticationException if an authentication exception occurred.
  35314. @return abstract delegation token identifier.]]>
  35315. </doc>
  35316. </method>
  35317. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35318. abstract="false" native="false" synchronized="false"
  35319. static="false" final="false" visibility="public"
  35320. deprecated="not deprecated">
  35321. <param name="url" type="java.net.URL"/>
  35322. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35323. <param name="renewer" type="java.lang.String"/>
  35324. <param name="doAsUser" type="java.lang.String"/>
  35325. <exception name="IOException" type="java.io.IOException"/>
  35326. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35327. <doc>
  35328. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35329. for authentication.
  35330. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35331. supported.
  35332. @param token the authentication token being used for the user where the
  35333. Delegation token will be stored.
  35334. @param renewer the renewer user.
  35335. @param doAsUser the user to do as, which will be the token owner.
  35336. @throws IOException if an IO error occurred.
  35337. @throws AuthenticationException if an authentication exception occurred.
  35338. @return abstract delegation token identifier.]]>
  35339. </doc>
  35340. </method>
  35341. <method name="renewDelegationToken" return="long"
  35342. abstract="false" native="false" synchronized="false"
  35343. static="false" final="false" visibility="public"
  35344. deprecated="not deprecated">
  35345. <param name="url" type="java.net.URL"/>
  35346. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35347. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35348. <exception name="IOException" type="java.io.IOException"/>
  35349. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35350. <doc>
  35351. <![CDATA[Renews a delegation token from the server end-point using the
  35352. configured <code>Authenticator</code> for authentication.
  35353. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35354. supported.
  35355. @param token the authentication token with the Delegation Token to renew.
  35356. @param dToken abstract delegation token identifier.
  35357. @throws IOException if an IO error occurred.
  35358. @throws AuthenticationException if an authentication exception occurred.
  35359. @return delegation token long value.]]>
  35360. </doc>
  35361. </method>
  35362. <method name="renewDelegationToken" return="long"
  35363. abstract="false" native="false" synchronized="false"
  35364. static="false" final="false" visibility="public"
  35365. deprecated="not deprecated">
  35366. <param name="url" type="java.net.URL"/>
  35367. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35368. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35369. <param name="doAsUser" type="java.lang.String"/>
  35370. <exception name="IOException" type="java.io.IOException"/>
  35371. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35372. <doc>
  35373. <![CDATA[Renews a delegation token from the server end-point using the
  35374. configured <code>Authenticator</code> for authentication.
  35375. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35376. supported.
  35377. @param token the authentication token with the Delegation Token to renew.
  35378. @param doAsUser the user to do as, which will be the token owner.
  35379. @param dToken abstract delegation token identifier.
  35380. @throws IOException if an IO error occurred.
  35381. @throws AuthenticationException if an authentication exception occurred.
  35382. @return delegation token long value.]]>
  35383. </doc>
  35384. </method>
  35385. <method name="cancelDelegationToken"
  35386. abstract="false" native="false" synchronized="false"
  35387. static="false" final="false" visibility="public"
  35388. deprecated="not deprecated">
  35389. <param name="url" type="java.net.URL"/>
  35390. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35391. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35392. <exception name="IOException" type="java.io.IOException"/>
  35393. <doc>
  35394. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35395. being authenticated by the configured <code>Authenticator</code>.
  35396. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35397. are supported.
  35398. @param token the authentication token with the Delegation Token to cancel.
  35399. @param dToken abstract delegation token identifier.
  35400. @throws IOException if an IO error occurred.]]>
  35401. </doc>
  35402. </method>
  35403. <method name="cancelDelegationToken"
  35404. abstract="false" native="false" synchronized="false"
  35405. static="false" final="false" visibility="public"
  35406. deprecated="not deprecated">
  35407. <param name="url" type="java.net.URL"/>
  35408. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35409. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35410. <param name="doAsUser" type="java.lang.String"/>
  35411. <exception name="IOException" type="java.io.IOException"/>
  35412. <doc>
  35413. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35414. being authenticated by the configured <code>Authenticator</code>.
  35415. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35416. are supported.
  35417. @param token the authentication token with the Delegation Token to cancel.
  35418. @param dToken abstract delegation token identifier.
  35419. @param doAsUser the user to do as, which will be the token owner.
  35420. @throws IOException if an IO error occurred.]]>
  35421. </doc>
  35422. </method>
  35423. <field name="OP_PARAM" type="java.lang.String"
  35424. transient="false" volatile="false"
  35425. static="true" final="true" visibility="public"
  35426. deprecated="not deprecated">
  35427. </field>
  35428. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  35429. transient="false" volatile="false"
  35430. static="true" final="true" visibility="public"
  35431. deprecated="not deprecated">
  35432. </field>
  35433. <field name="DELEGATION_PARAM" type="java.lang.String"
  35434. transient="false" volatile="false"
  35435. static="true" final="true" visibility="public"
  35436. deprecated="not deprecated">
  35437. </field>
  35438. <field name="TOKEN_PARAM" type="java.lang.String"
  35439. transient="false" volatile="false"
  35440. static="true" final="true" visibility="public"
  35441. deprecated="not deprecated">
  35442. </field>
  35443. <field name="RENEWER_PARAM" type="java.lang.String"
  35444. transient="false" volatile="false"
  35445. static="true" final="true" visibility="public"
  35446. deprecated="not deprecated">
  35447. </field>
  35448. <field name="SERVICE_PARAM" type="java.lang.String"
  35449. transient="false" volatile="false"
  35450. static="true" final="true" visibility="public"
  35451. deprecated="not deprecated">
  35452. </field>
  35453. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  35454. transient="false" volatile="false"
  35455. static="true" final="true" visibility="public"
  35456. deprecated="not deprecated">
  35457. </field>
  35458. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  35459. transient="false" volatile="false"
  35460. static="true" final="true" visibility="public"
  35461. deprecated="not deprecated">
  35462. </field>
  35463. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  35464. transient="false" volatile="false"
  35465. static="true" final="true" visibility="public"
  35466. deprecated="not deprecated">
  35467. </field>
  35468. <doc>
  35469. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  35470. Delegation Token support.]]>
  35471. </doc>
  35472. </class>
  35473. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  35474. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  35475. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35476. abstract="false"
  35477. static="false" final="false" visibility="public"
  35478. deprecated="not deprecated">
  35479. <constructor name="KerberosDelegationTokenAuthenticator"
  35480. static="false" final="false" visibility="public"
  35481. deprecated="not deprecated">
  35482. </constructor>
  35483. <doc>
  35484. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  35485. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  35486. Token operations.
  35487. <p>
  35488. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  35489. endpoint does not trigger a SPNEGO authentication]]>
  35490. </doc>
  35491. </class>
  35492. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  35493. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  35494. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35495. abstract="false"
  35496. static="false" final="false" visibility="public"
  35497. deprecated="not deprecated">
  35498. <constructor name="PseudoDelegationTokenAuthenticator"
  35499. static="false" final="false" visibility="public"
  35500. deprecated="not deprecated">
  35501. </constructor>
  35502. <doc>
  35503. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  35504. Hadoop's pseudo authentication mechanism that accepts
  35505. the user name specified as a query string parameter and support for Hadoop
  35506. Delegation Token operations.
  35507. <p>
  35508. This mimics the model of Hadoop Simple authentication trusting the
  35509. {@link UserGroupInformation#getCurrentUser()} value.]]>
  35510. </doc>
  35511. </class>
  35512. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  35513. </package>
  35514. <package name="org.apache.hadoop.service">
  35515. <!-- start class org.apache.hadoop.service.AbstractService -->
  35516. <class name="AbstractService" extends="java.lang.Object"
  35517. abstract="true"
  35518. static="false" final="false" visibility="public"
  35519. deprecated="not deprecated">
  35520. <implements name="org.apache.hadoop.service.Service"/>
  35521. <constructor name="AbstractService" type="java.lang.String"
  35522. static="false" final="false" visibility="public"
  35523. deprecated="not deprecated">
  35524. <doc>
  35525. <![CDATA[Construct the service.
  35526. @param name service name]]>
  35527. </doc>
  35528. </constructor>
  35529. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  35530. abstract="false" native="false" synchronized="false"
  35531. static="false" final="true" visibility="public"
  35532. deprecated="not deprecated">
  35533. </method>
  35534. <method name="getFailureCause" return="java.lang.Throwable"
  35535. abstract="false" native="false" synchronized="true"
  35536. static="false" final="true" visibility="public"
  35537. deprecated="not deprecated">
  35538. </method>
  35539. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  35540. abstract="false" native="false" synchronized="true"
  35541. static="false" final="false" visibility="public"
  35542. deprecated="not deprecated">
  35543. </method>
  35544. <method name="setConfig"
  35545. abstract="false" native="false" synchronized="false"
  35546. static="false" final="false" visibility="protected"
  35547. deprecated="not deprecated">
  35548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35549. <doc>
  35550. <![CDATA[Set the configuration for this service.
  35551. This method is called during {@link #init(Configuration)}
  35552. and should only be needed if for some reason a service implementation
  35553. needs to override that initial setting -for example replacing
  35554. it with a new subclass of {@link Configuration}
  35555. @param conf new configuration.]]>
  35556. </doc>
  35557. </method>
  35558. <method name="init"
  35559. abstract="false" native="false" synchronized="false"
  35560. static="false" final="false" visibility="public"
  35561. deprecated="not deprecated">
  35562. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35563. <doc>
  35564. <![CDATA[{@inheritDoc}
  35565. This invokes {@link #serviceInit}
  35566. @param conf the configuration of the service. This must not be null
  35567. @throws ServiceStateException if the configuration was null,
  35568. the state change not permitted, or something else went wrong]]>
  35569. </doc>
  35570. </method>
  35571. <method name="start"
  35572. abstract="false" native="false" synchronized="false"
  35573. static="false" final="false" visibility="public"
  35574. deprecated="not deprecated">
  35575. <doc>
  35576. <![CDATA[{@inheritDoc}
  35577. @throws ServiceStateException if the current service state does not permit
  35578. this action]]>
  35579. </doc>
  35580. </method>
  35581. <method name="stop"
  35582. abstract="false" native="false" synchronized="false"
  35583. static="false" final="false" visibility="public"
  35584. deprecated="not deprecated">
  35585. <doc>
  35586. <![CDATA[{@inheritDoc}]]>
  35587. </doc>
  35588. </method>
  35589. <method name="close"
  35590. abstract="false" native="false" synchronized="false"
  35591. static="false" final="true" visibility="public"
  35592. deprecated="not deprecated">
  35593. <exception name="IOException" type="java.io.IOException"/>
  35594. <doc>
  35595. <![CDATA[Relay to {@link #stop()}
  35596. @throws IOException raised on errors performing I/O.]]>
  35597. </doc>
  35598. </method>
  35599. <method name="noteFailure"
  35600. abstract="false" native="false" synchronized="false"
  35601. static="false" final="true" visibility="protected"
  35602. deprecated="not deprecated">
  35603. <param name="exception" type="java.lang.Exception"/>
  35604. <doc>
  35605. <![CDATA[Failure handling: record the exception
  35606. that triggered it -if there was not one already.
  35607. Services are free to call this themselves.
  35608. @param exception the exception]]>
  35609. </doc>
  35610. </method>
  35611. <method name="waitForServiceToStop" return="boolean"
  35612. abstract="false" native="false" synchronized="false"
  35613. static="false" final="true" visibility="public"
  35614. deprecated="not deprecated">
  35615. <param name="timeout" type="long"/>
  35616. </method>
  35617. <method name="serviceInit"
  35618. abstract="false" native="false" synchronized="false"
  35619. static="false" final="false" visibility="protected"
  35620. deprecated="not deprecated">
  35621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35622. <exception name="Exception" type="java.lang.Exception"/>
  35623. <doc>
  35624. <![CDATA[All initialization code needed by a service.
  35625. This method will only ever be called once during the lifecycle of
  35626. a specific service instance.
  35627. Implementations do not need to be synchronized as the logic
  35628. in {@link #init(Configuration)} prevents re-entrancy.
  35629. The base implementation checks to see if the subclass has created
  35630. a new configuration instance, and if so, updates the base class value
  35631. @param conf configuration
  35632. @throws Exception on a failure -these will be caught,
  35633. possibly wrapped, and will trigger a service stop]]>
  35634. </doc>
  35635. </method>
  35636. <method name="serviceStart"
  35637. abstract="false" native="false" synchronized="false"
  35638. static="false" final="false" visibility="protected"
  35639. deprecated="not deprecated">
  35640. <exception name="Exception" type="java.lang.Exception"/>
  35641. <doc>
  35642. <![CDATA[Actions called during the INITED to STARTED transition.
  35643. This method will only ever be called once during the lifecycle of
  35644. a specific service instance.
  35645. Implementations do not need to be synchronized as the logic
  35646. in {@link #start()} prevents re-entrancy.
  35647. @throws Exception if needed -these will be caught,
  35648. wrapped, and trigger a service stop]]>
  35649. </doc>
  35650. </method>
  35651. <method name="serviceStop"
  35652. abstract="false" native="false" synchronized="false"
  35653. static="false" final="false" visibility="protected"
  35654. deprecated="not deprecated">
  35655. <exception name="Exception" type="java.lang.Exception"/>
  35656. <doc>
  35657. <![CDATA[Actions called during the transition to the STOPPED state.
  35658. This method will only ever be called once during the lifecycle of
  35659. a specific service instance.
  35660. Implementations do not need to be synchronized as the logic
  35661. in {@link #stop()} prevents re-entrancy.
  35662. Implementations MUST write this to be robust against failures, including
  35663. checks for null references -and for the first failure to not stop other
  35664. attempts to shut down parts of the service.
  35665. @throws Exception if needed -these will be caught and logged.]]>
  35666. </doc>
  35667. </method>
  35668. <method name="registerServiceListener"
  35669. abstract="false" native="false" synchronized="false"
  35670. static="false" final="false" visibility="public"
  35671. deprecated="not deprecated">
  35672. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35673. </method>
  35674. <method name="unregisterServiceListener"
  35675. abstract="false" native="false" synchronized="false"
  35676. static="false" final="false" visibility="public"
  35677. deprecated="not deprecated">
  35678. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35679. </method>
  35680. <method name="registerGlobalListener"
  35681. abstract="false" native="false" synchronized="false"
  35682. static="true" final="false" visibility="public"
  35683. deprecated="not deprecated">
  35684. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35685. <doc>
  35686. <![CDATA[Register a global listener, which receives notifications
  35687. from the state change events of all services in the JVM
  35688. @param l listener]]>
  35689. </doc>
  35690. </method>
  35691. <method name="unregisterGlobalListener" return="boolean"
  35692. abstract="false" native="false" synchronized="false"
  35693. static="true" final="false" visibility="public"
  35694. deprecated="not deprecated">
  35695. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35696. <doc>
  35697. <![CDATA[unregister a global listener.
  35698. @param l listener to unregister
  35699. @return true if the listener was found (and then deleted)]]>
  35700. </doc>
  35701. </method>
  35702. <method name="getName" return="java.lang.String"
  35703. abstract="false" native="false" synchronized="false"
  35704. static="false" final="false" visibility="public"
  35705. deprecated="not deprecated">
  35706. </method>
  35707. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  35708. abstract="false" native="false" synchronized="false"
  35709. static="false" final="false" visibility="public"
  35710. deprecated="not deprecated">
  35711. </method>
  35712. <method name="getStartTime" return="long"
  35713. abstract="false" native="false" synchronized="false"
  35714. static="false" final="false" visibility="public"
  35715. deprecated="not deprecated">
  35716. </method>
  35717. <method name="getLifecycleHistory" return="java.util.List"
  35718. abstract="false" native="false" synchronized="true"
  35719. static="false" final="false" visibility="public"
  35720. deprecated="not deprecated">
  35721. </method>
  35722. <method name="isInState" return="boolean"
  35723. abstract="false" native="false" synchronized="false"
  35724. static="false" final="true" visibility="public"
  35725. deprecated="not deprecated">
  35726. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  35727. </method>
  35728. <method name="toString" return="java.lang.String"
  35729. abstract="false" native="false" synchronized="false"
  35730. static="false" final="false" visibility="public"
  35731. deprecated="not deprecated">
  35732. </method>
  35733. <method name="putBlocker"
  35734. abstract="false" native="false" synchronized="false"
  35735. static="false" final="false" visibility="protected"
  35736. deprecated="not deprecated">
  35737. <param name="name" type="java.lang.String"/>
  35738. <param name="details" type="java.lang.String"/>
  35739. <doc>
  35740. <![CDATA[Put a blocker to the blocker map -replacing any
  35741. with the same name.
  35742. @param name blocker name
  35743. @param details any specifics on the block. This must be non-null.]]>
  35744. </doc>
  35745. </method>
  35746. <method name="removeBlocker"
  35747. abstract="false" native="false" synchronized="false"
  35748. static="false" final="false" visibility="public"
  35749. deprecated="not deprecated">
  35750. <param name="name" type="java.lang.String"/>
  35751. <doc>
  35752. <![CDATA[Remove a blocker from the blocker map -
  35753. this is a no-op if the blocker is not present
  35754. @param name the name of the blocker]]>
  35755. </doc>
  35756. </method>
  35757. <method name="getBlockers" return="java.util.Map"
  35758. abstract="false" native="false" synchronized="false"
  35759. static="false" final="false" visibility="public"
  35760. deprecated="not deprecated">
  35761. </method>
  35762. <doc>
  35763. <![CDATA[This is the base implementation class for services.]]>
  35764. </doc>
  35765. </class>
  35766. <!-- end class org.apache.hadoop.service.AbstractService -->
  35767. <!-- start class org.apache.hadoop.service.CompositeService -->
  35768. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  35769. abstract="false"
  35770. static="false" final="false" visibility="public"
  35771. deprecated="not deprecated">
  35772. <constructor name="CompositeService" type="java.lang.String"
  35773. static="false" final="false" visibility="public"
  35774. deprecated="not deprecated">
  35775. </constructor>
  35776. <method name="getServices" return="java.util.List"
  35777. abstract="false" native="false" synchronized="false"
  35778. static="false" final="false" visibility="public"
  35779. deprecated="not deprecated">
  35780. <doc>
  35781. <![CDATA[Get a cloned list of services
  35782. @return a list of child services at the time of invocation -
  35783. added services will not be picked up.]]>
  35784. </doc>
  35785. </method>
  35786. <method name="addService"
  35787. abstract="false" native="false" synchronized="false"
  35788. static="false" final="false" visibility="protected"
  35789. deprecated="not deprecated">
  35790. <param name="service" type="org.apache.hadoop.service.Service"/>
  35791. <doc>
  35792. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  35793. {@link CompositeService}
  35794. @param service the {@link Service} to be added]]>
  35795. </doc>
  35796. </method>
  35797. <method name="addIfService" return="boolean"
  35798. abstract="false" native="false" synchronized="false"
  35799. static="false" final="false" visibility="protected"
  35800. deprecated="not deprecated">
  35801. <param name="object" type="java.lang.Object"/>
  35802. <doc>
  35803. <![CDATA[If the passed object is an instance of {@link Service},
  35804. add it to the list of services managed by this {@link CompositeService}
  35805. @param object object.
  35806. @return true if a service is added, false otherwise.]]>
  35807. </doc>
  35808. </method>
  35809. <method name="removeService" return="boolean"
  35810. abstract="false" native="false" synchronized="false"
  35811. static="false" final="false" visibility="protected"
  35812. deprecated="not deprecated">
  35813. <param name="service" type="org.apache.hadoop.service.Service"/>
  35814. </method>
  35815. <method name="serviceInit"
  35816. abstract="false" native="false" synchronized="false"
  35817. static="false" final="false" visibility="protected"
  35818. deprecated="not deprecated">
  35819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35820. <exception name="Exception" type="java.lang.Exception"/>
  35821. </method>
  35822. <method name="serviceStart"
  35823. abstract="false" native="false" synchronized="false"
  35824. static="false" final="false" visibility="protected"
  35825. deprecated="not deprecated">
  35826. <exception name="Exception" type="java.lang.Exception"/>
  35827. </method>
  35828. <method name="serviceStop"
  35829. abstract="false" native="false" synchronized="false"
  35830. static="false" final="false" visibility="protected"
  35831. deprecated="not deprecated">
  35832. <exception name="Exception" type="java.lang.Exception"/>
  35833. </method>
  35834. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  35835. transient="false" volatile="false"
  35836. static="true" final="true" visibility="protected"
  35837. deprecated="not deprecated">
  35838. <doc>
  35839. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  35840. only try to close started services (which assumes
  35841. that the service implementations may not handle the stop() operation
  35842. except when started.
  35843. Irrespective of this policy, if a child service fails during
  35844. its init() or start() operations, it will have stop() called on it.]]>
  35845. </doc>
  35846. </field>
  35847. <doc>
  35848. <![CDATA[Composition of services.]]>
  35849. </doc>
  35850. </class>
  35851. <!-- end class org.apache.hadoop.service.CompositeService -->
  35852. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  35853. <class name="LifecycleEvent" extends="java.lang.Object"
  35854. abstract="false"
  35855. static="false" final="false" visibility="public"
  35856. deprecated="not deprecated">
  35857. <implements name="java.io.Serializable"/>
  35858. <constructor name="LifecycleEvent"
  35859. static="false" final="false" visibility="public"
  35860. deprecated="not deprecated">
  35861. </constructor>
  35862. <field name="time" type="long"
  35863. transient="false" volatile="false"
  35864. static="false" final="false" visibility="public"
  35865. deprecated="not deprecated">
  35866. <doc>
  35867. <![CDATA[Local time in milliseconds when the event occurred]]>
  35868. </doc>
  35869. </field>
  35870. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  35871. transient="false" volatile="false"
  35872. static="false" final="false" visibility="public"
  35873. deprecated="not deprecated">
  35874. <doc>
  35875. <![CDATA[new state]]>
  35876. </doc>
  35877. </field>
  35878. <doc>
  35879. <![CDATA[A serializable lifecycle event: the time a state
  35880. transition occurred, and what state was entered.]]>
  35881. </doc>
  35882. </class>
  35883. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  35884. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  35885. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  35886. abstract="false"
  35887. static="false" final="false" visibility="public"
  35888. deprecated="not deprecated">
  35889. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35890. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  35891. static="false" final="false" visibility="public"
  35892. deprecated="not deprecated">
  35893. <doc>
  35894. <![CDATA[Log events to the given log
  35895. @param log destination for events]]>
  35896. </doc>
  35897. </constructor>
  35898. <constructor name="LoggingStateChangeListener"
  35899. static="false" final="false" visibility="public"
  35900. deprecated="not deprecated">
  35901. <doc>
  35902. <![CDATA[Log events to the static log for this class]]>
  35903. </doc>
  35904. </constructor>
  35905. <method name="stateChanged"
  35906. abstract="false" native="false" synchronized="false"
  35907. static="false" final="false" visibility="public"
  35908. deprecated="not deprecated">
  35909. <param name="service" type="org.apache.hadoop.service.Service"/>
  35910. <doc>
  35911. <![CDATA[Callback for a state change event: log it
  35912. @param service the service that has changed.]]>
  35913. </doc>
  35914. </method>
  35915. <doc>
  35916. <![CDATA[This is a state change listener that logs events at INFO level]]>
  35917. </doc>
  35918. </class>
  35919. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  35920. <!-- start interface org.apache.hadoop.service.Service -->
  35921. <interface name="Service" abstract="true"
  35922. static="false" final="false" visibility="public"
  35923. deprecated="not deprecated">
  35924. <implements name="java.io.Closeable"/>
  35925. <method name="init"
  35926. abstract="true" native="false" synchronized="false"
  35927. static="false" final="false" visibility="public"
  35928. deprecated="not deprecated">
  35929. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  35930. <doc>
  35931. <![CDATA[Initialize the service.
  35932. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  35933. unless the operation failed and an exception was raised, in which case
  35934. {@link #stop()} MUST be invoked and the service enter the state
  35935. {@link STATE#STOPPED}.
  35936. @param config the configuration of the service
  35937. @throws RuntimeException on any failure during the operation]]>
  35938. </doc>
  35939. </method>
  35940. <method name="start"
  35941. abstract="true" native="false" synchronized="false"
  35942. static="false" final="false" visibility="public"
  35943. deprecated="not deprecated">
  35944. <doc>
  35945. <![CDATA[Start the service.
  35946. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  35947. unless the operation failed and an exception was raised, in which case
  35948. {@link #stop()} MUST be invoked and the service enter the state
  35949. {@link STATE#STOPPED}.
  35950. @throws RuntimeException on any failure during the operation]]>
  35951. </doc>
  35952. </method>
  35953. <method name="stop"
  35954. abstract="true" native="false" synchronized="false"
  35955. static="false" final="false" visibility="public"
  35956. deprecated="not deprecated">
  35957. <doc>
  35958. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  35959. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  35960. to stop all parts of the service.
  35961. The implementation must be designed to complete regardless of the service
  35962. state, including the initialized/uninitialized state of all its internal
  35963. fields.
  35964. @throws RuntimeException on any failure during the stop operation]]>
  35965. </doc>
  35966. </method>
  35967. <method name="close"
  35968. abstract="true" native="false" synchronized="false"
  35969. static="false" final="false" visibility="public"
  35970. deprecated="not deprecated">
  35971. <exception name="IOException" type="java.io.IOException"/>
  35972. <doc>
  35973. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  35974. clauses.
  35975. Implementation classes MUST relay this directly to {@link #stop()}
  35976. @throws IOException never
  35977. @throws RuntimeException on any failure during the stop operation]]>
  35978. </doc>
  35979. </method>
  35980. <method name="registerServiceListener"
  35981. abstract="true" native="false" synchronized="false"
  35982. static="false" final="false" visibility="public"
  35983. deprecated="not deprecated">
  35984. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35985. <doc>
  35986. <![CDATA[Register a listener to the service state change events.
  35987. If the supplied listener is already listening to this service,
  35988. this method is a no-op.
  35989. @param listener a new listener]]>
  35990. </doc>
  35991. </method>
  35992. <method name="unregisterServiceListener"
  35993. abstract="true" native="false" synchronized="false"
  35994. static="false" final="false" visibility="public"
  35995. deprecated="not deprecated">
  35996. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  35997. <doc>
  35998. <![CDATA[Unregister a previously registered listener of the service state
  35999. change events. No-op if the listener is already unregistered.
  36000. @param listener the listener to unregister.]]>
  36001. </doc>
  36002. </method>
  36003. <method name="getName" return="java.lang.String"
  36004. abstract="true" native="false" synchronized="false"
  36005. static="false" final="false" visibility="public"
  36006. deprecated="not deprecated">
  36007. <doc>
  36008. <![CDATA[Get the name of this service.
  36009. @return the service name]]>
  36010. </doc>
  36011. </method>
  36012. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  36013. abstract="true" native="false" synchronized="false"
  36014. static="false" final="false" visibility="public"
  36015. deprecated="not deprecated">
  36016. <doc>
  36017. <![CDATA[Get the configuration of this service.
  36018. This is normally not a clone and may be manipulated, though there are no
  36019. guarantees as to what the consequences of such actions may be
  36020. @return the current configuration, unless a specific implentation chooses
  36021. otherwise.]]>
  36022. </doc>
  36023. </method>
  36024. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  36025. abstract="true" native="false" synchronized="false"
  36026. static="false" final="false" visibility="public"
  36027. deprecated="not deprecated">
  36028. <doc>
  36029. <![CDATA[Get the current service state
  36030. @return the state of the service]]>
  36031. </doc>
  36032. </method>
  36033. <method name="getStartTime" return="long"
  36034. abstract="true" native="false" synchronized="false"
  36035. static="false" final="false" visibility="public"
  36036. deprecated="not deprecated">
  36037. <doc>
  36038. <![CDATA[Get the service start time
  36039. @return the start time of the service. This will be zero if the service
  36040. has not yet been started.]]>
  36041. </doc>
  36042. </method>
  36043. <method name="isInState" return="boolean"
  36044. abstract="true" native="false" synchronized="false"
  36045. static="false" final="false" visibility="public"
  36046. deprecated="not deprecated">
  36047. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  36048. <doc>
  36049. <![CDATA[Query to see if the service is in a specific state.
  36050. In a multi-threaded system, the state may not hold for very long.
  36051. @param state the expected state
  36052. @return true if, at the time of invocation, the service was in that state.]]>
  36053. </doc>
  36054. </method>
  36055. <method name="getFailureCause" return="java.lang.Throwable"
  36056. abstract="true" native="false" synchronized="false"
  36057. static="false" final="false" visibility="public"
  36058. deprecated="not deprecated">
  36059. <doc>
  36060. <![CDATA[Get the first exception raised during the service failure. If null,
  36061. no exception was logged
  36062. @return the failure logged during a transition to the stopped state]]>
  36063. </doc>
  36064. </method>
  36065. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  36066. abstract="true" native="false" synchronized="false"
  36067. static="false" final="false" visibility="public"
  36068. deprecated="not deprecated">
  36069. <doc>
  36070. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  36071. @return the state or null if there was no failure]]>
  36072. </doc>
  36073. </method>
  36074. <method name="waitForServiceToStop" return="boolean"
  36075. abstract="true" native="false" synchronized="false"
  36076. static="false" final="false" visibility="public"
  36077. deprecated="not deprecated">
  36078. <param name="timeout" type="long"/>
  36079. <doc>
  36080. <![CDATA[Block waiting for the service to stop; uses the termination notification
  36081. object to do so.
  36082. This method will only return after all the service stop actions
  36083. have been executed (to success or failure), or the timeout elapsed
  36084. This method can be called before the service is inited or started; this is
  36085. to eliminate any race condition with the service stopping before
  36086. this event occurs.
  36087. @param timeout timeout in milliseconds. A value of zero means "forever"
  36088. @return true iff the service stopped in the time period]]>
  36089. </doc>
  36090. </method>
  36091. <method name="getLifecycleHistory" return="java.util.List"
  36092. abstract="true" native="false" synchronized="false"
  36093. static="false" final="false" visibility="public"
  36094. deprecated="not deprecated">
  36095. <doc>
  36096. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  36097. @return a possibly empty but never null list of lifecycle events.]]>
  36098. </doc>
  36099. </method>
  36100. <method name="getBlockers" return="java.util.Map"
  36101. abstract="true" native="false" synchronized="false"
  36102. static="false" final="false" visibility="public"
  36103. deprecated="not deprecated">
  36104. <doc>
  36105. <![CDATA[Get the blockers on a service -remote dependencies
  36106. that are stopping the service from being <i>live</i>.
  36107. @return a (snapshotted) map of blocker name-&gt;description values]]>
  36108. </doc>
  36109. </method>
  36110. <doc>
  36111. <![CDATA[Service LifeCycle.]]>
  36112. </doc>
  36113. </interface>
  36114. <!-- end interface org.apache.hadoop.service.Service -->
  36115. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  36116. <class name="ServiceOperations" extends="java.lang.Object"
  36117. abstract="false"
  36118. static="false" final="true" visibility="public"
  36119. deprecated="not deprecated">
  36120. <method name="stop"
  36121. abstract="false" native="false" synchronized="false"
  36122. static="true" final="false" visibility="public"
  36123. deprecated="not deprecated">
  36124. <param name="service" type="org.apache.hadoop.service.Service"/>
  36125. <doc>
  36126. <![CDATA[Stop a service.
  36127. <p>Do nothing if the service is null or not
  36128. in a state in which it can be/needs to be stopped.
  36129. <p>
  36130. The service state is checked <i>before</i> the operation begins.
  36131. This process is <i>not</i> thread safe.
  36132. @param service a service or null]]>
  36133. </doc>
  36134. </method>
  36135. <method name="stopQuietly" return="java.lang.Exception"
  36136. abstract="false" native="false" synchronized="false"
  36137. static="true" final="false" visibility="public"
  36138. deprecated="not deprecated">
  36139. <param name="service" type="org.apache.hadoop.service.Service"/>
  36140. <doc>
  36141. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36142. logged at warn level. (but not Throwables). This operation is intended to
  36143. be used in cleanup operations
  36144. @param service a service; may be null
  36145. @return any exception that was caught; null if none was.]]>
  36146. </doc>
  36147. </method>
  36148. <method name="stopQuietly" return="java.lang.Exception"
  36149. abstract="false" native="false" synchronized="false"
  36150. static="true" final="false" visibility="public"
  36151. deprecated="not deprecated">
  36152. <param name="log" type="org.apache.commons.logging.Log"/>
  36153. <param name="service" type="org.apache.hadoop.service.Service"/>
  36154. <doc>
  36155. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36156. logged at warn level. (but not Throwables). This operation is intended to
  36157. be used in cleanup operations
  36158. @param log the log to warn at
  36159. @param service a service; may be null
  36160. @return any exception that was caught; null if none was.
  36161. @see ServiceOperations#stopQuietly(Service)]]>
  36162. </doc>
  36163. </method>
  36164. <method name="stopQuietly" return="java.lang.Exception"
  36165. abstract="false" native="false" synchronized="false"
  36166. static="true" final="false" visibility="public"
  36167. deprecated="not deprecated">
  36168. <param name="log" type="org.slf4j.Logger"/>
  36169. <param name="service" type="org.apache.hadoop.service.Service"/>
  36170. <doc>
  36171. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36172. logged at warn level. (but not Throwables). This operation is intended to
  36173. be used in cleanup operations
  36174. @param log the log to warn at
  36175. @param service a service; may be null
  36176. @return any exception that was caught; null if none was.
  36177. @see ServiceOperations#stopQuietly(Service)]]>
  36178. </doc>
  36179. </method>
  36180. <doc>
  36181. <![CDATA[This class contains a set of methods to work with services, especially
  36182. to walk them through their lifecycle.]]>
  36183. </doc>
  36184. </class>
  36185. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  36186. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  36187. <interface name="ServiceStateChangeListener" abstract="true"
  36188. static="false" final="false" visibility="public"
  36189. deprecated="not deprecated">
  36190. <method name="stateChanged"
  36191. abstract="true" native="false" synchronized="false"
  36192. static="false" final="false" visibility="public"
  36193. deprecated="not deprecated">
  36194. <param name="service" type="org.apache.hadoop.service.Service"/>
  36195. <doc>
  36196. <![CDATA[Callback to notify of a state change. The service will already
  36197. have changed state before this callback is invoked.
  36198. This operation is invoked on the thread that initiated the state change,
  36199. while the service itself in in a sychronized section.
  36200. <ol>
  36201. <li>Any long-lived operation here will prevent the service state
  36202. change from completing in a timely manner.</li>
  36203. <li>If another thread is somehow invoked from the listener, and
  36204. that thread invokes the methods of the service (including
  36205. subclass-specific methods), there is a risk of a deadlock.</li>
  36206. </ol>
  36207. @param service the service that has changed.]]>
  36208. </doc>
  36209. </method>
  36210. <doc>
  36211. <![CDATA[Interface to notify state changes of a service.]]>
  36212. </doc>
  36213. </interface>
  36214. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  36215. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  36216. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  36217. abstract="false"
  36218. static="false" final="false" visibility="public"
  36219. deprecated="not deprecated">
  36220. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  36221. <constructor name="ServiceStateException" type="java.lang.String"
  36222. static="false" final="false" visibility="public"
  36223. deprecated="not deprecated">
  36224. <doc>
  36225. <![CDATA[Instantiate
  36226. @param message error message]]>
  36227. </doc>
  36228. </constructor>
  36229. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  36230. static="false" final="false" visibility="public"
  36231. deprecated="not deprecated">
  36232. <doc>
  36233. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  36234. then it is used, otherwise the generic
  36235. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  36236. is used.
  36237. @param message exception message
  36238. @param cause optional inner cause]]>
  36239. </doc>
  36240. </constructor>
  36241. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  36242. static="false" final="false" visibility="public"
  36243. deprecated="not deprecated">
  36244. <doc>
  36245. <![CDATA[Instantiate, using the specified exit code as the exit code
  36246. of the exception, irrespetive of any exit code supplied by any inner
  36247. cause.
  36248. @param exitCode exit code to declare
  36249. @param message exception message
  36250. @param cause inner cause]]>
  36251. </doc>
  36252. </constructor>
  36253. <constructor name="ServiceStateException" type="java.lang.Throwable"
  36254. static="false" final="false" visibility="public"
  36255. deprecated="not deprecated">
  36256. </constructor>
  36257. <method name="getExitCode" return="int"
  36258. abstract="false" native="false" synchronized="false"
  36259. static="false" final="false" visibility="public"
  36260. deprecated="not deprecated">
  36261. </method>
  36262. <method name="convert" return="java.lang.RuntimeException"
  36263. abstract="false" native="false" synchronized="false"
  36264. static="true" final="false" visibility="public"
  36265. deprecated="not deprecated">
  36266. <param name="fault" type="java.lang.Throwable"/>
  36267. <doc>
  36268. <![CDATA[Convert any exception into a {@link RuntimeException}.
  36269. All other exception types are wrapped in a new instance of
  36270. {@code ServiceStateException}.
  36271. @param fault exception or throwable
  36272. @return a {@link RuntimeException} to rethrow]]>
  36273. </doc>
  36274. </method>
  36275. <method name="convert" return="java.lang.RuntimeException"
  36276. abstract="false" native="false" synchronized="false"
  36277. static="true" final="false" visibility="public"
  36278. deprecated="not deprecated">
  36279. <param name="text" type="java.lang.String"/>
  36280. <param name="fault" type="java.lang.Throwable"/>
  36281. <doc>
  36282. <![CDATA[Convert any exception into a {@link RuntimeException}.
  36283. If the caught exception is already of that type, it is typecast to a
  36284. {@link RuntimeException} and returned.
  36285. All other exception types are wrapped in a new instance of
  36286. {@code ServiceStateException}.
  36287. @param text text to use if a new exception is created
  36288. @param fault exception or throwable
  36289. @return a {@link RuntimeException} to rethrow]]>
  36290. </doc>
  36291. </method>
  36292. <doc>
  36293. <![CDATA[Exception that can be raised on state change operations, whose
  36294. exit code can be explicitly set, determined from that of any nested
  36295. cause, or a default value of
  36296. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  36297. </doc>
  36298. </class>
  36299. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  36300. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  36301. <class name="ServiceStateModel" extends="java.lang.Object"
  36302. abstract="false"
  36303. static="false" final="false" visibility="public"
  36304. deprecated="not deprecated">
  36305. <constructor name="ServiceStateModel" type="java.lang.String"
  36306. static="false" final="false" visibility="public"
  36307. deprecated="not deprecated">
  36308. <doc>
  36309. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  36310. state.
  36311. @param name input name.]]>
  36312. </doc>
  36313. </constructor>
  36314. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  36315. static="false" final="false" visibility="public"
  36316. deprecated="not deprecated">
  36317. <doc>
  36318. <![CDATA[Create a service state model instance in the chosen state
  36319. @param state the starting state
  36320. @param name input name.]]>
  36321. </doc>
  36322. </constructor>
  36323. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  36324. abstract="false" native="false" synchronized="false"
  36325. static="false" final="false" visibility="public"
  36326. deprecated="not deprecated">
  36327. <doc>
  36328. <![CDATA[Query the service state. This is a non-blocking operation.
  36329. @return the state]]>
  36330. </doc>
  36331. </method>
  36332. <method name="isInState" return="boolean"
  36333. abstract="false" native="false" synchronized="false"
  36334. static="false" final="false" visibility="public"
  36335. deprecated="not deprecated">
  36336. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36337. <doc>
  36338. <![CDATA[Query that the state is in a specific state
  36339. @param proposed proposed new state
  36340. @return the state]]>
  36341. </doc>
  36342. </method>
  36343. <method name="ensureCurrentState"
  36344. abstract="false" native="false" synchronized="false"
  36345. static="false" final="false" visibility="public"
  36346. deprecated="not deprecated">
  36347. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  36348. <doc>
  36349. <![CDATA[Verify that that a service is in a given state.
  36350. @param expectedState the desired state
  36351. @throws ServiceStateException if the service state is different from
  36352. the desired state]]>
  36353. </doc>
  36354. </method>
  36355. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  36356. abstract="false" native="false" synchronized="true"
  36357. static="false" final="false" visibility="public"
  36358. deprecated="not deprecated">
  36359. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36360. <doc>
  36361. <![CDATA[Enter a state -thread safe.
  36362. @param proposed proposed new state
  36363. @return the original state
  36364. @throws ServiceStateException if the transition is not permitted]]>
  36365. </doc>
  36366. </method>
  36367. <method name="checkStateTransition"
  36368. abstract="false" native="false" synchronized="false"
  36369. static="true" final="false" visibility="public"
  36370. deprecated="not deprecated">
  36371. <param name="name" type="java.lang.String"/>
  36372. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  36373. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36374. <doc>
  36375. <![CDATA[Check that a state tansition is valid and
  36376. throw an exception if not
  36377. @param name name of the service (can be null)
  36378. @param state current state
  36379. @param proposed proposed new state]]>
  36380. </doc>
  36381. </method>
  36382. <method name="isValidStateTransition" return="boolean"
  36383. abstract="false" native="false" synchronized="false"
  36384. static="true" final="false" visibility="public"
  36385. deprecated="not deprecated">
  36386. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  36387. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36388. <doc>
  36389. <![CDATA[Is a state transition valid?
  36390. There are no checks for current==proposed
  36391. as that is considered a non-transition.
  36392. using an array kills off all branch misprediction costs, at the expense
  36393. of cache line misses.
  36394. @param current current state
  36395. @param proposed proposed new state
  36396. @return true if the transition to a new state is valid]]>
  36397. </doc>
  36398. </method>
  36399. <method name="toString" return="java.lang.String"
  36400. abstract="false" native="false" synchronized="false"
  36401. static="false" final="false" visibility="public"
  36402. deprecated="not deprecated">
  36403. <doc>
  36404. <![CDATA[return the state text as the toString() value
  36405. @return the current state's description]]>
  36406. </doc>
  36407. </method>
  36408. <doc>
  36409. <![CDATA[Implements the service state model.]]>
  36410. </doc>
  36411. </class>
  36412. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  36413. </package>
  36414. <package name="org.apache.hadoop.service.launcher">
  36415. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  36416. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  36417. abstract="true"
  36418. static="false" final="false" visibility="public"
  36419. deprecated="not deprecated">
  36420. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  36421. <constructor name="AbstractLaunchableService" type="java.lang.String"
  36422. static="false" final="false" visibility="protected"
  36423. deprecated="not deprecated">
  36424. <doc>
  36425. <![CDATA[Construct an instance with the given name.
  36426. @param name input name.]]>
  36427. </doc>
  36428. </constructor>
  36429. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  36430. abstract="false" native="false" synchronized="false"
  36431. static="false" final="false" visibility="public"
  36432. deprecated="not deprecated">
  36433. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36434. <param name="args" type="java.util.List"/>
  36435. <exception name="Exception" type="java.lang.Exception"/>
  36436. <doc>
  36437. <![CDATA[{@inheritDoc}
  36438. <p>
  36439. The base implementation logs all arguments at the debug level,
  36440. then returns the passed in config unchanged.]]>
  36441. </doc>
  36442. </method>
  36443. <method name="execute" return="int"
  36444. abstract="false" native="false" synchronized="false"
  36445. static="false" final="false" visibility="public"
  36446. deprecated="not deprecated">
  36447. <exception name="Exception" type="java.lang.Exception"/>
  36448. <doc>
  36449. <![CDATA[{@inheritDoc}
  36450. <p>
  36451. The action is to signal success by returning the exit code 0.]]>
  36452. </doc>
  36453. </method>
  36454. <doc>
  36455. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  36456. of the {@link LaunchableService} methods.]]>
  36457. </doc>
  36458. </class>
  36459. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  36460. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  36461. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  36462. abstract="false"
  36463. static="false" final="false" visibility="public"
  36464. deprecated="not deprecated">
  36465. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  36466. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  36467. static="false" final="false" visibility="public"
  36468. deprecated="not deprecated">
  36469. <doc>
  36470. <![CDATA[Create an instance delegating to the supplied handler if
  36471. the exception is considered "simple".
  36472. @param delegate a delegate exception handler.]]>
  36473. </doc>
  36474. </constructor>
  36475. <constructor name="HadoopUncaughtExceptionHandler"
  36476. static="false" final="false" visibility="public"
  36477. deprecated="not deprecated">
  36478. <doc>
  36479. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  36480. </doc>
  36481. </constructor>
  36482. <method name="uncaughtException"
  36483. abstract="false" native="false" synchronized="false"
  36484. static="false" final="false" visibility="public"
  36485. deprecated="not deprecated">
  36486. <param name="thread" type="java.lang.Thread"/>
  36487. <param name="exception" type="java.lang.Throwable"/>
  36488. <doc>
  36489. <![CDATA[Uncaught exception handler.
  36490. If an error is raised: shutdown
  36491. The state of the system is unknown at this point -attempting
  36492. a clean shutdown is dangerous. Instead: exit
  36493. @param thread thread that failed
  36494. @param exception the raised exception]]>
  36495. </doc>
  36496. </method>
  36497. <doc>
  36498. <![CDATA[This class is intended to be installed by calling
  36499. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  36500. in the main entry point.
  36501. The base class will always attempt to shut down the process if an Error
  36502. was raised; the behavior on a standard Exception, raised outside
  36503. process shutdown, is simply to log it.
  36504. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  36505. </doc>
  36506. </class>
  36507. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  36508. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  36509. <interface name="LaunchableService" abstract="true"
  36510. static="false" final="false" visibility="public"
  36511. deprecated="not deprecated">
  36512. <implements name="org.apache.hadoop.service.Service"/>
  36513. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  36514. abstract="true" native="false" synchronized="false"
  36515. static="false" final="false" visibility="public"
  36516. deprecated="not deprecated">
  36517. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36518. <param name="args" type="java.util.List"/>
  36519. <exception name="Exception" type="java.lang.Exception"/>
  36520. <doc>
  36521. <![CDATA[Propagate the command line arguments.
  36522. <p>
  36523. This method is called before {@link #init(Configuration)};
  36524. Any non-null configuration that is returned from this operation
  36525. becomes the one that is passed on to that {@link #init(Configuration)}
  36526. operation.
  36527. <p>
  36528. This permits implementations to change the configuration before
  36529. the init operation. As the ServiceLauncher only creates
  36530. an instance of the base {@link Configuration} class, it is
  36531. recommended to instantiate any subclass (such as YarnConfiguration)
  36532. that injects new resources.
  36533. <p>
  36534. @param config the initial configuration build up by the
  36535. service launcher.
  36536. @param args list of arguments passed to the command line
  36537. after any launcher-specific commands have been stripped.
  36538. @return the configuration to init the service with.
  36539. Recommended: pass down the config parameter with any changes
  36540. @throws Exception any problem]]>
  36541. </doc>
  36542. </method>
  36543. <method name="execute" return="int"
  36544. abstract="true" native="false" synchronized="false"
  36545. static="false" final="false" visibility="public"
  36546. deprecated="not deprecated">
  36547. <exception name="Exception" type="java.lang.Exception"/>
  36548. <doc>
  36549. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  36550. <p>
  36551. The return value becomes the exit code of the launched process.
  36552. <p>
  36553. If an exception is raised, the policy is:
  36554. <ol>
  36555. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  36556. the exception is passed up unmodified.
  36557. </li>
  36558. <li>Any exception which implements
  36559. {@link org.apache.hadoop.util.ExitCodeProvider}:
  36560. A new {@link ServiceLaunchException} is created with the exit code
  36561. and message of the thrown exception; the thrown exception becomes the
  36562. cause.</li>
  36563. <li>Any other exception: a new {@link ServiceLaunchException} is created
  36564. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  36565. the message of the original exception (which becomes the cause).</li>
  36566. </ol>
  36567. @return the exit code
  36568. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  36569. up as the exit code and error text.
  36570. @throws Exception any exception to report. If it provides an exit code
  36571. this is used in a wrapping exception.]]>
  36572. </doc>
  36573. </method>
  36574. <doc>
  36575. <![CDATA[An interface which services can implement to have their
  36576. execution managed by the ServiceLauncher.
  36577. <p>
  36578. The command line options will be passed down before the
  36579. {@link Service#init(Configuration)} operation is invoked via an
  36580. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  36581. After the service has been successfully started via {@link Service#start()}
  36582. the {@link LaunchableService#execute()} method is called to execute the
  36583. service. When this method returns, the service launcher will exit, using
  36584. the return code from the method as its exit option.]]>
  36585. </doc>
  36586. </interface>
  36587. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  36588. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  36589. <interface name="LauncherExitCodes" abstract="true"
  36590. static="false" final="false" visibility="public"
  36591. deprecated="not deprecated">
  36592. <field name="EXIT_SUCCESS" type="int"
  36593. transient="false" volatile="false"
  36594. static="true" final="true" visibility="public"
  36595. deprecated="not deprecated">
  36596. <doc>
  36597. <![CDATA[Success: {@value}.]]>
  36598. </doc>
  36599. </field>
  36600. <field name="EXIT_FAIL" type="int"
  36601. transient="false" volatile="false"
  36602. static="true" final="true" visibility="public"
  36603. deprecated="not deprecated">
  36604. <doc>
  36605. <![CDATA[Generic "false/fail" response: {@value}.
  36606. The operation worked but the result was not "true" from the viewpoint
  36607. of the executed code.]]>
  36608. </doc>
  36609. </field>
  36610. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  36611. transient="false" volatile="false"
  36612. static="true" final="true" visibility="public"
  36613. deprecated="not deprecated">
  36614. <doc>
  36615. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  36616. </doc>
  36617. </field>
  36618. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  36619. transient="false" volatile="false"
  36620. static="true" final="true" visibility="public"
  36621. deprecated="not deprecated">
  36622. <doc>
  36623. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  36624. </doc>
  36625. </field>
  36626. <field name="EXIT_INTERRUPTED" type="int"
  36627. transient="false" volatile="false"
  36628. static="true" final="true" visibility="public"
  36629. deprecated="not deprecated">
  36630. <doc>
  36631. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  36632. </doc>
  36633. </field>
  36634. <field name="EXIT_OTHER_FAILURE" type="int"
  36635. transient="false" volatile="false"
  36636. static="true" final="true" visibility="public"
  36637. deprecated="not deprecated">
  36638. <doc>
  36639. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  36640. </doc>
  36641. </field>
  36642. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  36643. transient="false" volatile="false"
  36644. static="true" final="true" visibility="public"
  36645. deprecated="not deprecated">
  36646. <doc>
  36647. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  36648. when it is otherwise invalid.
  36649. <p>
  36650. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  36651. </doc>
  36652. </field>
  36653. <field name="EXIT_UNAUTHORIZED" type="int"
  36654. transient="false" volatile="false"
  36655. static="true" final="true" visibility="public"
  36656. deprecated="not deprecated">
  36657. <doc>
  36658. <![CDATA[The request requires user authentication: {@value}.
  36659. <p>
  36660. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  36661. </doc>
  36662. </field>
  36663. <field name="EXIT_USAGE" type="int"
  36664. transient="false" volatile="false"
  36665. static="true" final="true" visibility="public"
  36666. deprecated="not deprecated">
  36667. <doc>
  36668. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  36669. </doc>
  36670. </field>
  36671. <field name="EXIT_FORBIDDEN" type="int"
  36672. transient="false" volatile="false"
  36673. static="true" final="true" visibility="public"
  36674. deprecated="not deprecated">
  36675. <doc>
  36676. <![CDATA[Forbidden action: {@value}.
  36677. <p>
  36678. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  36679. </doc>
  36680. </field>
  36681. <field name="EXIT_NOT_FOUND" type="int"
  36682. transient="false" volatile="false"
  36683. static="true" final="true" visibility="public"
  36684. deprecated="not deprecated">
  36685. <doc>
  36686. <![CDATA[Something was not found: {@value}.
  36687. <p>
  36688. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  36689. </doc>
  36690. </field>
  36691. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  36692. transient="false" volatile="false"
  36693. static="true" final="true" visibility="public"
  36694. deprecated="not deprecated">
  36695. <doc>
  36696. <![CDATA[The operation is not allowed: {@value}.
  36697. <p>
  36698. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  36699. </doc>
  36700. </field>
  36701. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  36702. transient="false" volatile="false"
  36703. static="true" final="true" visibility="public"
  36704. deprecated="not deprecated">
  36705. <doc>
  36706. <![CDATA[The command is somehow not acceptable: {@value}.
  36707. <p>
  36708. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  36709. </doc>
  36710. </field>
  36711. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  36712. transient="false" volatile="false"
  36713. static="true" final="true" visibility="public"
  36714. deprecated="not deprecated">
  36715. <doc>
  36716. <![CDATA[Exit code on connectivity problems: {@value}.
  36717. <p>
  36718. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  36719. </doc>
  36720. </field>
  36721. <field name="EXIT_BAD_CONFIGURATION" type="int"
  36722. transient="false" volatile="false"
  36723. static="true" final="true" visibility="public"
  36724. deprecated="not deprecated">
  36725. <doc>
  36726. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  36727. <p>
  36728. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  36729. </doc>
  36730. </field>
  36731. <field name="EXIT_EXCEPTION_THROWN" type="int"
  36732. transient="false" volatile="false"
  36733. static="true" final="true" visibility="public"
  36734. deprecated="not deprecated">
  36735. <doc>
  36736. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  36737. <p>
  36738. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  36739. </doc>
  36740. </field>
  36741. <field name="EXIT_UNIMPLEMENTED" type="int"
  36742. transient="false" volatile="false"
  36743. static="true" final="true" visibility="public"
  36744. deprecated="not deprecated">
  36745. <doc>
  36746. <![CDATA[Unimplemented feature: {@value}.
  36747. <p>
  36748. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  36749. </doc>
  36750. </field>
  36751. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  36752. transient="false" volatile="false"
  36753. static="true" final="true" visibility="public"
  36754. deprecated="not deprecated">
  36755. <doc>
  36756. <![CDATA[Service Unavailable; it may be available later: {@value}.
  36757. <p>
  36758. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  36759. </doc>
  36760. </field>
  36761. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  36762. transient="false" volatile="false"
  36763. static="true" final="true" visibility="public"
  36764. deprecated="not deprecated">
  36765. <doc>
  36766. <![CDATA[The application does not support, or refuses to support this
  36767. version: {@value}.
  36768. <p>
  36769. If raised, this is expected to be raised server-side and likely due
  36770. to client/server version incompatibilities.
  36771. <p>
  36772. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  36773. </doc>
  36774. </field>
  36775. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  36776. transient="false" volatile="false"
  36777. static="true" final="true" visibility="public"
  36778. deprecated="not deprecated">
  36779. <doc>
  36780. <![CDATA[The service instance could not be created: {@value}.]]>
  36781. </doc>
  36782. </field>
  36783. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  36784. transient="false" volatile="false"
  36785. static="true" final="true" visibility="public"
  36786. deprecated="not deprecated">
  36787. <doc>
  36788. <![CDATA[The service instance could not be created: {@value}.]]>
  36789. </doc>
  36790. </field>
  36791. <doc>
  36792. <![CDATA[Common Exit codes.
  36793. <p>
  36794. Codes with a YARN prefix are YARN-related.
  36795. <p>
  36796. Many of the exit codes are designed to resemble HTTP error codes,
  36797. squashed into a single byte. e.g 44 , "not found" is the equivalent
  36798. of 404. The various 2XX HTTP error codes aren't followed;
  36799. the Unix standard of "0" for success is used.
  36800. <pre>
  36801. 0-10: general command issues
  36802. 30-39: equivalent to the 3XX responses, where those responses are
  36803. considered errors by the application.
  36804. 40-49: client-side/CLI/config problems
  36805. 50-59: service-side problems.
  36806. 60+ : application specific error codes
  36807. </pre>]]>
  36808. </doc>
  36809. </interface>
  36810. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  36811. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  36812. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  36813. abstract="false"
  36814. static="false" final="false" visibility="public"
  36815. deprecated="not deprecated">
  36816. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  36817. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  36818. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  36819. static="false" final="false" visibility="public"
  36820. deprecated="not deprecated">
  36821. <doc>
  36822. <![CDATA[Create an exception with the specific exit code.
  36823. @param exitCode exit code
  36824. @param cause cause of the exception]]>
  36825. </doc>
  36826. </constructor>
  36827. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  36828. static="false" final="false" visibility="public"
  36829. deprecated="not deprecated">
  36830. <doc>
  36831. <![CDATA[Create an exception with the specific exit code and text.
  36832. @param exitCode exit code
  36833. @param message message to use in exception]]>
  36834. </doc>
  36835. </constructor>
  36836. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  36837. static="false" final="false" visibility="public"
  36838. deprecated="not deprecated">
  36839. <doc>
  36840. <![CDATA[Create a formatted exception.
  36841. <p>
  36842. This uses {@link String#format(String, Object...)}
  36843. to build the formatted exception in the ENGLISH locale.
  36844. <p>
  36845. If the last argument is a throwable, it becomes the cause of the exception.
  36846. It will also be used as a parameter for the format.
  36847. @param exitCode exit code
  36848. @param format format for message to use in exception
  36849. @param args list of arguments]]>
  36850. </doc>
  36851. </constructor>
  36852. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable, java.lang.String, java.lang.Object[]"
  36853. static="false" final="false" visibility="public"
  36854. deprecated="not deprecated">
  36855. <doc>
  36856. <![CDATA[Create a formatted exception.
  36857. <p>
  36858. This uses {@link String#format(String, Object...)}
  36859. to build the formatted exception in the ENGLISH locale.
  36860. @param exitCode exit code
  36861. @param cause inner cause
  36862. @param format format for message to use in exception
  36863. @param args list of arguments]]>
  36864. </doc>
  36865. </constructor>
  36866. <doc>
  36867. <![CDATA[A service launch exception that includes an exit code.
  36868. <p>
  36869. When caught by the ServiceLauncher, it will convert that
  36870. into a process exit code.
  36871. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  36872. generates formatted exceptions.]]>
  36873. </doc>
  36874. </class>
  36875. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  36876. </package>
  36877. <package name="org.apache.hadoop.tools">
  36878. </package>
  36879. <package name="org.apache.hadoop.tools.protocolPB">
  36880. </package>
  36881. <package name="org.apache.hadoop.tracing">
  36882. </package>
  36883. <package name="org.apache.hadoop.util">
  36884. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  36885. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  36886. abstract="false"
  36887. static="false" final="false" visibility="public"
  36888. deprecated="not deprecated">
  36889. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  36890. static="false" final="false" visibility="public"
  36891. deprecated="not deprecated">
  36892. </constructor>
  36893. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  36894. static="false" final="false" visibility="public"
  36895. deprecated="not deprecated">
  36896. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  36897. </constructor>
  36898. <method name="getResource" return="java.net.URL"
  36899. abstract="false" native="false" synchronized="false"
  36900. static="false" final="false" visibility="public"
  36901. deprecated="not deprecated">
  36902. <param name="name" type="java.lang.String"/>
  36903. </method>
  36904. <method name="loadClass" return="java.lang.Class"
  36905. abstract="false" native="false" synchronized="false"
  36906. static="false" final="false" visibility="public"
  36907. deprecated="not deprecated">
  36908. <param name="name" type="java.lang.String"/>
  36909. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  36910. </method>
  36911. <method name="loadClass" return="java.lang.Class"
  36912. abstract="false" native="false" synchronized="true"
  36913. static="false" final="false" visibility="protected"
  36914. deprecated="not deprecated">
  36915. <param name="name" type="java.lang.String"/>
  36916. <param name="resolve" type="boolean"/>
  36917. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  36918. </method>
  36919. <method name="isSystemClass" return="boolean"
  36920. abstract="false" native="false" synchronized="false"
  36921. static="true" final="false" visibility="public"
  36922. deprecated="not deprecated">
  36923. <param name="name" type="java.lang.String"/>
  36924. <param name="systemClasses" type="java.util.List"/>
  36925. <doc>
  36926. <![CDATA[Checks if a class should be included as a system class.
  36927. A class is a system class if and only if it matches one of the positive
  36928. patterns and none of the negative ones.
  36929. @param name the class name to check
  36930. @param systemClasses a list of system class configurations.
  36931. @return true if the class is a system class]]>
  36932. </doc>
  36933. </method>
  36934. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  36935. transient="false" volatile="false"
  36936. static="true" final="true" visibility="public"
  36937. deprecated="not deprecated">
  36938. <doc>
  36939. <![CDATA[Default value of the system classes if the user did not override them.
  36940. JDK classes, hadoop classes and resources, and some select third-party
  36941. classes are considered system classes, and are not loaded by the
  36942. application classloader.]]>
  36943. </doc>
  36944. </field>
  36945. <doc>
  36946. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  36947. application JARs are loaded in preference to the parent loader.]]>
  36948. </doc>
  36949. </class>
  36950. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  36951. <!-- start class org.apache.hadoop.util.DurationInfo -->
  36952. <class name="DurationInfo" extends="org.apache.hadoop.util.OperationDuration"
  36953. abstract="false"
  36954. static="false" final="false" visibility="public"
  36955. deprecated="not deprecated">
  36956. <implements name="java.lang.AutoCloseable"/>
  36957. <constructor name="DurationInfo" type="org.slf4j.Logger, java.lang.String, java.lang.Object[]"
  36958. static="false" final="false" visibility="public"
  36959. deprecated="not deprecated">
  36960. <doc>
  36961. <![CDATA[Create the duration text from a {@code String.format()} code call;
  36962. log output at info level.
  36963. @param log log to write to
  36964. @param format format string
  36965. @param args list of arguments]]>
  36966. </doc>
  36967. </constructor>
  36968. <constructor name="DurationInfo" type="org.slf4j.Logger, boolean, java.lang.String, java.lang.Object[]"
  36969. static="false" final="false" visibility="public"
  36970. deprecated="not deprecated">
  36971. <doc>
  36972. <![CDATA[Create the duration text from a {@code String.format()} code call
  36973. and log either at info or debug.
  36974. @param log log to write to
  36975. @param logAtInfo should the log be at info, rather than debug
  36976. @param format format string
  36977. @param args list of arguments]]>
  36978. </doc>
  36979. </constructor>
  36980. <method name="toString" return="java.lang.String"
  36981. abstract="false" native="false" synchronized="false"
  36982. static="false" final="false" visibility="public"
  36983. deprecated="not deprecated">
  36984. </method>
  36985. <method name="close"
  36986. abstract="false" native="false" synchronized="false"
  36987. static="false" final="false" visibility="public"
  36988. deprecated="not deprecated">
  36989. </method>
  36990. <doc>
  36991. <![CDATA[A duration with logging of final state at info or debug
  36992. in the {@code close()} call.
  36993. This allows it to be used in a try-with-resources clause, and have the
  36994. duration automatically logged.]]>
  36995. </doc>
  36996. </class>
  36997. <!-- end class org.apache.hadoop.util.DurationInfo -->
  36998. <!-- start interface org.apache.hadoop.util.IPList -->
  36999. <interface name="IPList" abstract="true"
  37000. static="false" final="false" visibility="public"
  37001. deprecated="not deprecated">
  37002. <method name="isIn" return="boolean"
  37003. abstract="true" native="false" synchronized="false"
  37004. static="false" final="false" visibility="public"
  37005. deprecated="not deprecated">
  37006. <param name="ipAddress" type="java.lang.String"/>
  37007. <doc>
  37008. <![CDATA[returns true if the ipAddress is in the IPList.
  37009. @param ipAddress ipAddress.
  37010. @return boolean value indicating whether the ipAddress is in the IPList]]>
  37011. </doc>
  37012. </method>
  37013. </interface>
  37014. <!-- end interface org.apache.hadoop.util.IPList -->
  37015. <!-- start class org.apache.hadoop.util.OperationDuration -->
  37016. <class name="OperationDuration" extends="java.lang.Object"
  37017. abstract="false"
  37018. static="false" final="false" visibility="public"
  37019. deprecated="not deprecated">
  37020. <constructor name="OperationDuration"
  37021. static="false" final="false" visibility="public"
  37022. deprecated="not deprecated">
  37023. <doc>
  37024. <![CDATA[Instantiate.
  37025. The start time and finished time are both set
  37026. to the current clock time.]]>
  37027. </doc>
  37028. </constructor>
  37029. <method name="time" return="long"
  37030. abstract="false" native="false" synchronized="false"
  37031. static="false" final="false" visibility="protected"
  37032. deprecated="not deprecated">
  37033. <doc>
  37034. <![CDATA[Evaluate the system time.
  37035. @return the current clock time.]]>
  37036. </doc>
  37037. </method>
  37038. <method name="finished"
  37039. abstract="false" native="false" synchronized="false"
  37040. static="false" final="false" visibility="public"
  37041. deprecated="not deprecated">
  37042. <doc>
  37043. <![CDATA[Update the finished time with the current system time.]]>
  37044. </doc>
  37045. </method>
  37046. <method name="getDurationString" return="java.lang.String"
  37047. abstract="false" native="false" synchronized="false"
  37048. static="false" final="false" visibility="public"
  37049. deprecated="not deprecated">
  37050. <doc>
  37051. <![CDATA[Return the duration as {@link #humanTime(long)}.
  37052. @return a printable duration.]]>
  37053. </doc>
  37054. </method>
  37055. <method name="humanTime" return="java.lang.String"
  37056. abstract="false" native="false" synchronized="false"
  37057. static="true" final="false" visibility="public"
  37058. deprecated="not deprecated">
  37059. <param name="time" type="long"/>
  37060. <doc>
  37061. <![CDATA[Convert to a human time of minutes:seconds.millis.
  37062. @param time time to humanize.
  37063. @return a printable value.]]>
  37064. </doc>
  37065. </method>
  37066. <method name="toString" return="java.lang.String"
  37067. abstract="false" native="false" synchronized="false"
  37068. static="false" final="false" visibility="public"
  37069. deprecated="not deprecated">
  37070. <doc>
  37071. <![CDATA[Return the duration as {@link #humanTime(long)}.
  37072. @return a printable duration.]]>
  37073. </doc>
  37074. </method>
  37075. <method name="value" return="long"
  37076. abstract="false" native="false" synchronized="false"
  37077. static="false" final="false" visibility="public"
  37078. deprecated="not deprecated">
  37079. <doc>
  37080. <![CDATA[Get the duration in milliseconds.
  37081. <p>
  37082. This will be 0 until a call
  37083. to {@link #finished()} has been made.
  37084. </p>
  37085. @return the currently recorded duration.]]>
  37086. </doc>
  37087. </method>
  37088. <method name="asDuration" return="java.time.Duration"
  37089. abstract="false" native="false" synchronized="false"
  37090. static="false" final="false" visibility="public"
  37091. deprecated="not deprecated">
  37092. <doc>
  37093. <![CDATA[Get the duration of an operation as a java Duration
  37094. instance.
  37095. @return a duration.]]>
  37096. </doc>
  37097. </method>
  37098. <doc>
  37099. <![CDATA[Little duration counter.]]>
  37100. </doc>
  37101. </class>
  37102. <!-- end class org.apache.hadoop.util.OperationDuration -->
  37103. <!-- start interface org.apache.hadoop.util.Progressable -->
  37104. <interface name="Progressable" abstract="true"
  37105. static="false" final="false" visibility="public"
  37106. deprecated="not deprecated">
  37107. <method name="progress"
  37108. abstract="true" native="false" synchronized="false"
  37109. static="false" final="false" visibility="public"
  37110. deprecated="not deprecated">
  37111. <doc>
  37112. <![CDATA[Report progress to the Hadoop framework.]]>
  37113. </doc>
  37114. </method>
  37115. <doc>
  37116. <![CDATA[A facility for reporting progress.
  37117. <p>Clients and/or applications can use the provided <code>Progressable</code>
  37118. to explicitly report progress to the Hadoop framework. This is especially
  37119. important for operations which take significant amount of time since,
  37120. in-lieu of the reported progress, the framework has to assume that an error
  37121. has occurred and time-out the operation.</p>]]>
  37122. </doc>
  37123. </interface>
  37124. <!-- end interface org.apache.hadoop.util.Progressable -->
  37125. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  37126. <class name="PureJavaCrc32" extends="java.lang.Object"
  37127. abstract="false"
  37128. static="false" final="false" visibility="public"
  37129. deprecated="not deprecated">
  37130. <implements name="java.util.zip.Checksum"/>
  37131. <constructor name="PureJavaCrc32"
  37132. static="false" final="false" visibility="public"
  37133. deprecated="not deprecated">
  37134. <doc>
  37135. <![CDATA[Create a new PureJavaCrc32 object.]]>
  37136. </doc>
  37137. </constructor>
  37138. <method name="getValue" return="long"
  37139. abstract="false" native="false" synchronized="false"
  37140. static="false" final="false" visibility="public"
  37141. deprecated="not deprecated">
  37142. </method>
  37143. <method name="reset"
  37144. abstract="false" native="false" synchronized="false"
  37145. static="false" final="false" visibility="public"
  37146. deprecated="not deprecated">
  37147. </method>
  37148. <method name="update"
  37149. abstract="false" native="false" synchronized="false"
  37150. static="false" final="false" visibility="public"
  37151. deprecated="not deprecated">
  37152. <param name="b" type="byte[]"/>
  37153. <param name="offset" type="int"/>
  37154. <param name="len" type="int"/>
  37155. </method>
  37156. <method name="update"
  37157. abstract="false" native="false" synchronized="false"
  37158. static="false" final="true" visibility="public"
  37159. deprecated="not deprecated">
  37160. <param name="b" type="int"/>
  37161. </method>
  37162. <doc>
  37163. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  37164. the same polynomial as the built-in native CRC32.
  37165. This is to avoid the JNI overhead for certain uses of Checksumming
  37166. where many small pieces of data are checksummed in succession.
  37167. The current version is ~10x to 1.8x as fast as Sun's native
  37168. java.util.zip.CRC32 in Java 1.6
  37169. @see java.util.zip.CRC32]]>
  37170. </doc>
  37171. </class>
  37172. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  37173. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  37174. <class name="PureJavaCrc32C" extends="java.lang.Object"
  37175. abstract="false"
  37176. static="false" final="false" visibility="public"
  37177. deprecated="not deprecated">
  37178. <implements name="java.util.zip.Checksum"/>
  37179. <constructor name="PureJavaCrc32C"
  37180. static="false" final="false" visibility="public"
  37181. deprecated="not deprecated">
  37182. <doc>
  37183. <![CDATA[Create a new PureJavaCrc32 object.]]>
  37184. </doc>
  37185. </constructor>
  37186. <method name="getValue" return="long"
  37187. abstract="false" native="false" synchronized="false"
  37188. static="false" final="false" visibility="public"
  37189. deprecated="not deprecated">
  37190. </method>
  37191. <method name="reset"
  37192. abstract="false" native="false" synchronized="false"
  37193. static="false" final="false" visibility="public"
  37194. deprecated="not deprecated">
  37195. </method>
  37196. <method name="update"
  37197. abstract="false" native="false" synchronized="false"
  37198. static="false" final="false" visibility="public"
  37199. deprecated="not deprecated">
  37200. <param name="b" type="byte[]"/>
  37201. <param name="off" type="int"/>
  37202. <param name="len" type="int"/>
  37203. </method>
  37204. <method name="update"
  37205. abstract="false" native="false" synchronized="false"
  37206. static="false" final="true" visibility="public"
  37207. deprecated="not deprecated">
  37208. <param name="b" type="int"/>
  37209. </method>
  37210. <doc>
  37211. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  37212. the CRC32-C polynomial, the same polynomial used by iSCSI
  37213. and implemented on many Intel chipsets supporting SSE4.2.]]>
  37214. </doc>
  37215. </class>
  37216. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  37217. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  37218. <class name="ReflectionUtils" extends="java.lang.Object"
  37219. abstract="false"
  37220. static="false" final="false" visibility="public"
  37221. deprecated="not deprecated">
  37222. <constructor name="ReflectionUtils"
  37223. static="false" final="false" visibility="public"
  37224. deprecated="not deprecated">
  37225. </constructor>
  37226. <method name="setConf"
  37227. abstract="false" native="false" synchronized="false"
  37228. static="true" final="false" visibility="public"
  37229. deprecated="not deprecated">
  37230. <param name="theObject" type="java.lang.Object"/>
  37231. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37232. <doc>
  37233. <![CDATA[Check and set 'configuration' if necessary.
  37234. @param theObject object for which to set configuration
  37235. @param conf Configuration]]>
  37236. </doc>
  37237. </method>
  37238. <method name="newInstance" return="T"
  37239. abstract="false" native="false" synchronized="false"
  37240. static="true" final="false" visibility="public"
  37241. deprecated="not deprecated">
  37242. <param name="theClass" type="java.lang.Class"/>
  37243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37244. <doc>
  37245. <![CDATA[Create an object for the given class and initialize it from conf.
  37246. @param <T> Generics Type.
  37247. @param theClass class of which an object is created
  37248. @param conf Configuration
  37249. @return a new object]]>
  37250. </doc>
  37251. </method>
  37252. <method name="setContentionTracing"
  37253. abstract="false" native="false" synchronized="false"
  37254. static="true" final="false" visibility="public"
  37255. deprecated="not deprecated">
  37256. <param name="val" type="boolean"/>
  37257. </method>
  37258. <method name="printThreadInfo"
  37259. abstract="false" native="false" synchronized="true"
  37260. static="true" final="false" visibility="public"
  37261. deprecated="not deprecated">
  37262. <param name="stream" type="java.io.PrintStream"/>
  37263. <param name="title" type="java.lang.String"/>
  37264. <doc>
  37265. <![CDATA[Print all of the thread's information and stack traces.
  37266. @param stream the stream to
  37267. @param title a string title for the stack trace]]>
  37268. </doc>
  37269. </method>
  37270. <method name="logThreadInfo"
  37271. abstract="false" native="false" synchronized="false"
  37272. static="true" final="false" visibility="public"
  37273. deprecated="not deprecated">
  37274. <param name="log" type="org.apache.commons.logging.Log"/>
  37275. <param name="title" type="java.lang.String"/>
  37276. <param name="minInterval" type="long"/>
  37277. <doc>
  37278. <![CDATA[Log the current thread stacks at INFO level.
  37279. @param log the logger that logs the stack trace
  37280. @param title a descriptive title for the call stacks
  37281. @param minInterval the minimum time from the last]]>
  37282. </doc>
  37283. </method>
  37284. <method name="logThreadInfo"
  37285. abstract="false" native="false" synchronized="false"
  37286. static="true" final="false" visibility="public"
  37287. deprecated="not deprecated">
  37288. <param name="log" type="org.slf4j.Logger"/>
  37289. <param name="title" type="java.lang.String"/>
  37290. <param name="minInterval" type="long"/>
  37291. <doc>
  37292. <![CDATA[Log the current thread stacks at INFO level.
  37293. @param log the logger that logs the stack trace
  37294. @param title a descriptive title for the call stacks
  37295. @param minInterval the minimum time from the last]]>
  37296. </doc>
  37297. </method>
  37298. <method name="getClass" return="java.lang.Class"
  37299. abstract="false" native="false" synchronized="false"
  37300. static="true" final="false" visibility="public"
  37301. deprecated="not deprecated">
  37302. <param name="o" type="T"/>
  37303. <doc>
  37304. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  37305. @param <T> Generics Type T
  37306. @param o object whose correctly-typed <code>Class</code> is to be obtained
  37307. @return the correctly typed <code>Class</code> of the given object.]]>
  37308. </doc>
  37309. </method>
  37310. <method name="copy" return="T"
  37311. abstract="false" native="false" synchronized="false"
  37312. static="true" final="false" visibility="public"
  37313. deprecated="not deprecated">
  37314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37315. <param name="src" type="T"/>
  37316. <param name="dst" type="T"/>
  37317. <exception name="IOException" type="java.io.IOException"/>
  37318. <doc>
  37319. <![CDATA[Make a copy of the writable object using serialization to a buffer.
  37320. @param <T> Generics Type.
  37321. @param conf input Configuration.
  37322. @param src the object to copy from
  37323. @param dst the object to copy into, which is destroyed
  37324. @return dst param (the copy)
  37325. @throws IOException raised on errors performing I/O.]]>
  37326. </doc>
  37327. </method>
  37328. <method name="cloneWritableInto"
  37329. abstract="false" native="false" synchronized="false"
  37330. static="true" final="false" visibility="public"
  37331. deprecated="not deprecated">
  37332. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  37333. <param name="src" type="org.apache.hadoop.io.Writable"/>
  37334. <exception name="IOException" type="java.io.IOException"/>
  37335. </method>
  37336. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  37337. abstract="false" native="false" synchronized="false"
  37338. static="true" final="false" visibility="public"
  37339. deprecated="not deprecated">
  37340. <param name="clazz" type="java.lang.Class"/>
  37341. <doc>
  37342. <![CDATA[@return Gets all the declared fields of a class including fields declared in
  37343. superclasses.
  37344. @param clazz input clazz.]]>
  37345. </doc>
  37346. </method>
  37347. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  37348. abstract="false" native="false" synchronized="false"
  37349. static="true" final="false" visibility="public"
  37350. deprecated="not deprecated">
  37351. <param name="clazz" type="java.lang.Class"/>
  37352. <doc>
  37353. <![CDATA[@return Gets all the declared methods of a class including methods declared in
  37354. superclasses.
  37355. @param clazz input clazz.]]>
  37356. </doc>
  37357. </method>
  37358. <doc>
  37359. <![CDATA[General reflection utils]]>
  37360. </doc>
  37361. </class>
  37362. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  37363. <!-- start class org.apache.hadoop.util.Shell -->
  37364. <class name="Shell" extends="java.lang.Object"
  37365. abstract="true"
  37366. static="false" final="false" visibility="public"
  37367. deprecated="not deprecated">
  37368. <constructor name="Shell"
  37369. static="false" final="false" visibility="protected"
  37370. deprecated="not deprecated">
  37371. <doc>
  37372. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  37373. not merged with stdout.]]>
  37374. </doc>
  37375. </constructor>
  37376. <constructor name="Shell" type="long"
  37377. static="false" final="false" visibility="protected"
  37378. deprecated="not deprecated">
  37379. <doc>
  37380. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  37381. not merged with stdout.
  37382. @param interval interval in milliseconds between command executions.]]>
  37383. </doc>
  37384. </constructor>
  37385. <constructor name="Shell" type="long, boolean"
  37386. static="false" final="false" visibility="protected"
  37387. deprecated="not deprecated">
  37388. <doc>
  37389. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  37390. method is invoked with a given elapsed time between calls.
  37391. @param interval the minimum duration in milliseconds to wait before
  37392. re-executing the command. If set to 0, there is no minimum.
  37393. @param redirectErrorStream should the error stream be merged with
  37394. the normal output stream?]]>
  37395. </doc>
  37396. </constructor>
  37397. <method name="isJava7OrAbove" return="boolean"
  37398. abstract="false" native="false" synchronized="false"
  37399. static="true" final="false" visibility="public"
  37400. deprecated="This call isn't needed any more: please remove uses of it.">
  37401. <doc>
  37402. <![CDATA[query to see if system is Java 7 or later.
  37403. Now that Hadoop requires Java 7 or later, this always returns true.
  37404. @deprecated This call isn't needed any more: please remove uses of it.
  37405. @return true, always.]]>
  37406. </doc>
  37407. </method>
  37408. <method name="isJavaVersionAtLeast" return="boolean"
  37409. abstract="false" native="false" synchronized="false"
  37410. static="true" final="false" visibility="public"
  37411. deprecated="not deprecated">
  37412. <param name="version" type="int"/>
  37413. <doc>
  37414. <![CDATA[Query to see if major version of Java specification of the system
  37415. is equal or greater than the parameter.
  37416. @param version 8, 9, 10 etc.
  37417. @return comparison with system property, always true for 8]]>
  37418. </doc>
  37419. </method>
  37420. <method name="checkWindowsCommandLineLength"
  37421. abstract="false" native="false" synchronized="false"
  37422. static="true" final="false" visibility="public"
  37423. deprecated="not deprecated">
  37424. <param name="commands" type="java.lang.String[]"/>
  37425. <exception name="IOException" type="java.io.IOException"/>
  37426. <doc>
  37427. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  37428. line length Note that the input is expected to already include space
  37429. delimiters, no extra count will be added for delimiters.
  37430. @param commands command parts, including any space delimiters
  37431. @throws IOException raised on errors performing I/O.]]>
  37432. </doc>
  37433. </method>
  37434. <method name="getGroupsCommand" return="java.lang.String[]"
  37435. abstract="false" native="false" synchronized="false"
  37436. static="true" final="false" visibility="public"
  37437. deprecated="not deprecated">
  37438. <doc>
  37439. <![CDATA[a Unix command to get the current user's groups list.
  37440. @return group command array.]]>
  37441. </doc>
  37442. </method>
  37443. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  37444. abstract="false" native="false" synchronized="false"
  37445. static="true" final="false" visibility="public"
  37446. deprecated="not deprecated">
  37447. <param name="user" type="java.lang.String"/>
  37448. <doc>
  37449. <![CDATA[A command to get a given user's groups list.
  37450. If the OS is not WINDOWS, the command will get the user's primary group
  37451. first and finally get the groups list which includes the primary group.
  37452. i.e. the user's primary group will be included twice.
  37453. @param user user.
  37454. @return groups for user command.]]>
  37455. </doc>
  37456. </method>
  37457. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  37458. abstract="false" native="false" synchronized="false"
  37459. static="true" final="false" visibility="public"
  37460. deprecated="not deprecated">
  37461. <param name="user" type="java.lang.String"/>
  37462. <doc>
  37463. <![CDATA[A command to get a given user's group id list.
  37464. The command will get the user's primary group
  37465. first and finally get the groups list which includes the primary group.
  37466. i.e. the user's primary group will be included twice.
  37467. This command does not support Windows and will only return group names.
  37468. @param user user.
  37469. @return groups id for user command.]]>
  37470. </doc>
  37471. </method>
  37472. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  37473. abstract="false" native="false" synchronized="false"
  37474. static="true" final="false" visibility="public"
  37475. deprecated="not deprecated">
  37476. <param name="netgroup" type="java.lang.String"/>
  37477. <doc>
  37478. <![CDATA[A command to get a given netgroup's user list.
  37479. @param netgroup net group.
  37480. @return users for net group command.]]>
  37481. </doc>
  37482. </method>
  37483. <method name="getGetPermissionCommand" return="java.lang.String[]"
  37484. abstract="false" native="false" synchronized="false"
  37485. static="true" final="false" visibility="public"
  37486. deprecated="not deprecated">
  37487. <doc>
  37488. <![CDATA[Return a command to get permission information.
  37489. @return permission command.]]>
  37490. </doc>
  37491. </method>
  37492. <method name="getSetPermissionCommand" return="java.lang.String[]"
  37493. abstract="false" native="false" synchronized="false"
  37494. static="true" final="false" visibility="public"
  37495. deprecated="not deprecated">
  37496. <param name="perm" type="java.lang.String"/>
  37497. <param name="recursive" type="boolean"/>
  37498. <doc>
  37499. <![CDATA[Return a command to set permission.
  37500. @param perm permission.
  37501. @param recursive recursive.
  37502. @return set permission command.]]>
  37503. </doc>
  37504. </method>
  37505. <method name="getSetPermissionCommand" return="java.lang.String[]"
  37506. abstract="false" native="false" synchronized="false"
  37507. static="true" final="false" visibility="public"
  37508. deprecated="not deprecated">
  37509. <param name="perm" type="java.lang.String"/>
  37510. <param name="recursive" type="boolean"/>
  37511. <param name="file" type="java.lang.String"/>
  37512. <doc>
  37513. <![CDATA[Return a command to set permission for specific file.
  37514. @param perm String permission to set
  37515. @param recursive boolean true to apply to all sub-directories recursively
  37516. @param file String file to set
  37517. @return String[] containing command and arguments]]>
  37518. </doc>
  37519. </method>
  37520. <method name="getSetOwnerCommand" return="java.lang.String[]"
  37521. abstract="false" native="false" synchronized="false"
  37522. static="true" final="false" visibility="public"
  37523. deprecated="not deprecated">
  37524. <param name="owner" type="java.lang.String"/>
  37525. <doc>
  37526. <![CDATA[Return a command to set owner.
  37527. @param owner owner.
  37528. @return set owner command.]]>
  37529. </doc>
  37530. </method>
  37531. <method name="getSymlinkCommand" return="java.lang.String[]"
  37532. abstract="false" native="false" synchronized="false"
  37533. static="true" final="false" visibility="public"
  37534. deprecated="not deprecated">
  37535. <param name="target" type="java.lang.String"/>
  37536. <param name="link" type="java.lang.String"/>
  37537. <doc>
  37538. <![CDATA[Return a command to create symbolic links.
  37539. @param target target.
  37540. @param link link.
  37541. @return symlink command.]]>
  37542. </doc>
  37543. </method>
  37544. <method name="getReadlinkCommand" return="java.lang.String[]"
  37545. abstract="false" native="false" synchronized="false"
  37546. static="true" final="false" visibility="public"
  37547. deprecated="not deprecated">
  37548. <param name="link" type="java.lang.String"/>
  37549. <doc>
  37550. <![CDATA[Return a command to read the target of the a symbolic link.
  37551. @param link link.
  37552. @return read link command.]]>
  37553. </doc>
  37554. </method>
  37555. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  37556. abstract="false" native="false" synchronized="false"
  37557. static="true" final="false" visibility="public"
  37558. deprecated="not deprecated">
  37559. <param name="pid" type="java.lang.String"/>
  37560. <doc>
  37561. <![CDATA[Return a command for determining if process with specified pid is alive.
  37562. @param pid process ID
  37563. @return a <code>kill -0</code> command or equivalent]]>
  37564. </doc>
  37565. </method>
  37566. <method name="getSignalKillCommand" return="java.lang.String[]"
  37567. abstract="false" native="false" synchronized="false"
  37568. static="true" final="false" visibility="public"
  37569. deprecated="not deprecated">
  37570. <param name="code" type="int"/>
  37571. <param name="pid" type="java.lang.String"/>
  37572. <doc>
  37573. <![CDATA[Return a command to send a signal to a given pid.
  37574. @param code code.
  37575. @param pid pid.
  37576. @return signal kill command.]]>
  37577. </doc>
  37578. </method>
  37579. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  37580. abstract="false" native="false" synchronized="false"
  37581. static="true" final="false" visibility="public"
  37582. deprecated="not deprecated">
  37583. <doc>
  37584. <![CDATA[Return a regular expression string that match environment variables.
  37585. @return environment variable regex.]]>
  37586. </doc>
  37587. </method>
  37588. <method name="appendScriptExtension" return="java.io.File"
  37589. abstract="false" native="false" synchronized="false"
  37590. static="true" final="false" visibility="public"
  37591. deprecated="not deprecated">
  37592. <param name="parent" type="java.io.File"/>
  37593. <param name="basename" type="java.lang.String"/>
  37594. <doc>
  37595. <![CDATA[Returns a File referencing a script with the given basename, inside the
  37596. given parent directory. The file extension is inferred by platform:
  37597. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  37598. @param parent File parent directory
  37599. @param basename String script file basename
  37600. @return File referencing the script in the directory]]>
  37601. </doc>
  37602. </method>
  37603. <method name="appendScriptExtension" return="java.lang.String"
  37604. abstract="false" native="false" synchronized="false"
  37605. static="true" final="false" visibility="public"
  37606. deprecated="not deprecated">
  37607. <param name="basename" type="java.lang.String"/>
  37608. <doc>
  37609. <![CDATA[Returns a script file name with the given basename.
  37610. The file extension is inferred by platform:
  37611. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  37612. @param basename String script file basename
  37613. @return String script file name]]>
  37614. </doc>
  37615. </method>
  37616. <method name="getRunScriptCommand" return="java.lang.String[]"
  37617. abstract="false" native="false" synchronized="false"
  37618. static="true" final="false" visibility="public"
  37619. deprecated="not deprecated">
  37620. <param name="script" type="java.io.File"/>
  37621. <doc>
  37622. <![CDATA[Returns a command to run the given script. The script interpreter is
  37623. inferred by platform: cmd on Windows or bash otherwise.
  37624. @param script File script to run
  37625. @return String[] command to run the script]]>
  37626. </doc>
  37627. </method>
  37628. <method name="getHadoopHome" return="java.lang.String"
  37629. abstract="false" native="false" synchronized="false"
  37630. static="true" final="false" visibility="public"
  37631. deprecated="not deprecated">
  37632. <exception name="IOException" type="java.io.IOException"/>
  37633. <doc>
  37634. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  37635. @return the home dir
  37636. @throws IOException if the home directory cannot be located.]]>
  37637. </doc>
  37638. </method>
  37639. <method name="getQualifiedBin" return="java.io.File"
  37640. abstract="false" native="false" synchronized="false"
  37641. static="true" final="false" visibility="public"
  37642. deprecated="not deprecated">
  37643. <param name="executable" type="java.lang.String"/>
  37644. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  37645. <doc>
  37646. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  37647. bin location. This is primarily useful for disambiguating call-outs
  37648. to executable sub-components of Hadoop to avoid clashes with other
  37649. executables that may be in the path. Caveat: this call doesn't
  37650. just format the path to the bin directory. It also checks for file
  37651. existence of the composed path. The output of this call should be
  37652. cached by callers.
  37653. @param executable executable
  37654. @return executable file reference
  37655. @throws FileNotFoundException if the path does not exist]]>
  37656. </doc>
  37657. </method>
  37658. <method name="getQualifiedBinPath" return="java.lang.String"
  37659. abstract="false" native="false" synchronized="false"
  37660. static="true" final="false" visibility="public"
  37661. deprecated="not deprecated">
  37662. <param name="executable" type="java.lang.String"/>
  37663. <exception name="IOException" type="java.io.IOException"/>
  37664. <doc>
  37665. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  37666. bin location. This is primarily useful for disambiguating call-outs
  37667. to executable sub-components of Hadoop to avoid clashes with other
  37668. executables that may be in the path. Caveat: this call doesn't
  37669. just format the path to the bin directory. It also checks for file
  37670. existence of the composed path. The output of this call should be
  37671. cached by callers.
  37672. @param executable executable
  37673. @return executable file reference
  37674. @throws FileNotFoundException if the path does not exist
  37675. @throws IOException on path canonicalization failures]]>
  37676. </doc>
  37677. </method>
  37678. <method name="hasWinutilsPath" return="boolean"
  37679. abstract="false" native="false" synchronized="false"
  37680. static="true" final="false" visibility="public"
  37681. deprecated="not deprecated">
  37682. <doc>
  37683. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  37684. If true, then {@link #WINUTILS} is non-null, and both
  37685. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  37686. will successfully return this value. Always false on non-windows systems.
  37687. @return true if there is a valid path to the binary]]>
  37688. </doc>
  37689. </method>
  37690. <method name="getWinUtilsPath" return="java.lang.String"
  37691. abstract="false" native="false" synchronized="false"
  37692. static="true" final="false" visibility="public"
  37693. deprecated="not deprecated">
  37694. <doc>
  37695. <![CDATA[Locate the winutils binary, or fail with a meaningful
  37696. exception and stack trace as an RTE.
  37697. This method is for use in methods which don't explicitly throw
  37698. an <code>IOException</code>.
  37699. @return the path to {@link #WINUTILS_EXE}
  37700. @throws RuntimeException if the path is not resolvable]]>
  37701. </doc>
  37702. </method>
  37703. <method name="getWinUtilsFile" return="java.io.File"
  37704. abstract="false" native="false" synchronized="false"
  37705. static="true" final="false" visibility="public"
  37706. deprecated="not deprecated">
  37707. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  37708. <doc>
  37709. <![CDATA[Get a file reference to winutils.
  37710. Always raises an exception if there isn't one
  37711. @return the file instance referring to the winutils bin.
  37712. @throws FileNotFoundException on any failure to locate that file.]]>
  37713. </doc>
  37714. </method>
  37715. <method name="checkIsBashSupported" return="boolean"
  37716. abstract="false" native="false" synchronized="false"
  37717. static="true" final="false" visibility="public"
  37718. deprecated="not deprecated">
  37719. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  37720. </method>
  37721. <method name="setEnvironment"
  37722. abstract="false" native="false" synchronized="false"
  37723. static="false" final="false" visibility="protected"
  37724. deprecated="not deprecated">
  37725. <param name="env" type="java.util.Map"/>
  37726. <doc>
  37727. <![CDATA[Set the environment for the command.
  37728. @param env Mapping of environment variables]]>
  37729. </doc>
  37730. </method>
  37731. <method name="setWorkingDirectory"
  37732. abstract="false" native="false" synchronized="false"
  37733. static="false" final="false" visibility="protected"
  37734. deprecated="not deprecated">
  37735. <param name="dir" type="java.io.File"/>
  37736. <doc>
  37737. <![CDATA[Set the working directory.
  37738. @param dir The directory where the command will be executed]]>
  37739. </doc>
  37740. </method>
  37741. <method name="run"
  37742. abstract="false" native="false" synchronized="false"
  37743. static="false" final="false" visibility="protected"
  37744. deprecated="not deprecated">
  37745. <exception name="IOException" type="java.io.IOException"/>
  37746. <doc>
  37747. <![CDATA[Check to see if a command needs to be executed and execute if needed.
  37748. @throws IOException raised on errors performing I/O.]]>
  37749. </doc>
  37750. </method>
  37751. <method name="getExecString" return="java.lang.String[]"
  37752. abstract="true" native="false" synchronized="false"
  37753. static="false" final="false" visibility="protected"
  37754. deprecated="not deprecated">
  37755. <doc>
  37756. <![CDATA[return an array containing the command name and its parameters.
  37757. @return exec string array.]]>
  37758. </doc>
  37759. </method>
  37760. <method name="parseExecResult"
  37761. abstract="true" native="false" synchronized="false"
  37762. static="false" final="false" visibility="protected"
  37763. deprecated="not deprecated">
  37764. <param name="lines" type="java.io.BufferedReader"/>
  37765. <exception name="IOException" type="java.io.IOException"/>
  37766. <doc>
  37767. <![CDATA[Parse the execution result.
  37768. @param lines lines.
  37769. @throws IOException raised on errors performing I/O.]]>
  37770. </doc>
  37771. </method>
  37772. <method name="getEnvironment" return="java.lang.String"
  37773. abstract="false" native="false" synchronized="false"
  37774. static="false" final="false" visibility="public"
  37775. deprecated="not deprecated">
  37776. <param name="env" type="java.lang.String"/>
  37777. <doc>
  37778. <![CDATA[Get an environment variable.
  37779. @param env the environment var
  37780. @return the value or null if it was unset.]]>
  37781. </doc>
  37782. </method>
  37783. <method name="getProcess" return="java.lang.Process"
  37784. abstract="false" native="false" synchronized="false"
  37785. static="false" final="false" visibility="public"
  37786. deprecated="not deprecated">
  37787. <doc>
  37788. <![CDATA[get the current sub-process executing the given command.
  37789. @return process executing the command]]>
  37790. </doc>
  37791. </method>
  37792. <method name="getExitCode" return="int"
  37793. abstract="false" native="false" synchronized="false"
  37794. static="false" final="false" visibility="public"
  37795. deprecated="not deprecated">
  37796. <doc>
  37797. <![CDATA[get the exit code.
  37798. @return the exit code of the process]]>
  37799. </doc>
  37800. </method>
  37801. <method name="getWaitingThread" return="java.lang.Thread"
  37802. abstract="false" native="false" synchronized="false"
  37803. static="false" final="false" visibility="public"
  37804. deprecated="not deprecated">
  37805. <doc>
  37806. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  37807. @return the thread that ran runCommand() that spawned this shell
  37808. or null if no thread is waiting for this shell to complete]]>
  37809. </doc>
  37810. </method>
  37811. <method name="isTimedOut" return="boolean"
  37812. abstract="false" native="false" synchronized="false"
  37813. static="false" final="false" visibility="public"
  37814. deprecated="not deprecated">
  37815. <doc>
  37816. <![CDATA[To check if the passed script to shell command executor timed out or
  37817. not.
  37818. @return if the script timed out.]]>
  37819. </doc>
  37820. </method>
  37821. <method name="execCommand" return="java.lang.String"
  37822. abstract="false" native="false" synchronized="false"
  37823. static="true" final="false" visibility="public"
  37824. deprecated="not deprecated">
  37825. <param name="cmd" type="java.lang.String[]"/>
  37826. <exception name="IOException" type="java.io.IOException"/>
  37827. <doc>
  37828. <![CDATA[Static method to execute a shell command.
  37829. Covers most of the simple cases without requiring the user to implement
  37830. the <code>Shell</code> interface.
  37831. @param cmd shell command to execute.
  37832. @return the output of the executed command.
  37833. @throws IOException raised on errors performing I/O.]]>
  37834. </doc>
  37835. </method>
  37836. <method name="execCommand" return="java.lang.String"
  37837. abstract="false" native="false" synchronized="false"
  37838. static="true" final="false" visibility="public"
  37839. deprecated="not deprecated">
  37840. <param name="env" type="java.util.Map"/>
  37841. <param name="cmd" type="java.lang.String[]"/>
  37842. <param name="timeout" type="long"/>
  37843. <exception name="IOException" type="java.io.IOException"/>
  37844. <doc>
  37845. <![CDATA[Static method to execute a shell command.
  37846. Covers most of the simple cases without requiring the user to implement
  37847. the <code>Shell</code> interface.
  37848. @param env the map of environment key=value
  37849. @param cmd shell command to execute.
  37850. @param timeout time in milliseconds after which script should be marked timeout
  37851. @return the output of the executed command.
  37852. @throws IOException on any problem.]]>
  37853. </doc>
  37854. </method>
  37855. <method name="execCommand" return="java.lang.String"
  37856. abstract="false" native="false" synchronized="false"
  37857. static="true" final="false" visibility="public"
  37858. deprecated="not deprecated">
  37859. <param name="env" type="java.util.Map"/>
  37860. <param name="cmd" type="java.lang.String[]"/>
  37861. <exception name="IOException" type="java.io.IOException"/>
  37862. <doc>
  37863. <![CDATA[Static method to execute a shell command.
  37864. Covers most of the simple cases without requiring the user to implement
  37865. the <code>Shell</code> interface.
  37866. @param env the map of environment key=value
  37867. @param cmd shell command to execute.
  37868. @return the output of the executed command.
  37869. @throws IOException on any problem.]]>
  37870. </doc>
  37871. </method>
  37872. <method name="destroyAllShellProcesses"
  37873. abstract="false" native="false" synchronized="false"
  37874. static="true" final="false" visibility="public"
  37875. deprecated="not deprecated">
  37876. <doc>
  37877. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  37878. Iterates through a map of all currently running <code>Shell</code>
  37879. processes and destroys them one by one. This method is thread safe]]>
  37880. </doc>
  37881. </method>
  37882. <method name="getAllShells" return="java.util.Set"
  37883. abstract="false" native="false" synchronized="false"
  37884. static="true" final="false" visibility="public"
  37885. deprecated="not deprecated">
  37886. <doc>
  37887. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.
  37888. @return all shells set.]]>
  37889. </doc>
  37890. </method>
  37891. <method name="getMemlockLimit" return="java.lang.Long"
  37892. abstract="false" native="false" synchronized="false"
  37893. static="true" final="false" visibility="public"
  37894. deprecated="not deprecated">
  37895. <param name="ulimit" type="java.lang.Long"/>
  37896. <doc>
  37897. <![CDATA[Static method to return the memory lock limit for datanode.
  37898. @param ulimit max value at which memory locked should be capped.
  37899. @return long value specifying the memory lock limit.]]>
  37900. </doc>
  37901. </method>
  37902. <field name="LOG" type="org.slf4j.Logger"
  37903. transient="false" volatile="false"
  37904. static="true" final="true" visibility="public"
  37905. deprecated="not deprecated">
  37906. </field>
  37907. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  37908. transient="false" volatile="false"
  37909. static="true" final="true" visibility="public"
  37910. deprecated="not deprecated">
  37911. <doc>
  37912. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  37913. </doc>
  37914. </field>
  37915. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  37916. transient="false" volatile="false"
  37917. static="true" final="true" visibility="public"
  37918. deprecated="not deprecated">
  37919. <doc>
  37920. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  37921. </doc>
  37922. </field>
  37923. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  37924. transient="false" volatile="false"
  37925. static="true" final="true" visibility="public"
  37926. deprecated="not deprecated">
  37927. <doc>
  37928. <![CDATA[Maximum command line length in Windows
  37929. KB830473 documents this as 8191]]>
  37930. </doc>
  37931. </field>
  37932. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  37933. transient="false" volatile="false"
  37934. static="true" final="true" visibility="public"
  37935. deprecated="use the correctly spelled constant.">
  37936. <doc>
  37937. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  37938. @deprecated use the correctly spelled constant.]]>
  37939. </doc>
  37940. </field>
  37941. <field name="USER_NAME_COMMAND" type="java.lang.String"
  37942. transient="false" volatile="false"
  37943. static="true" final="true" visibility="public"
  37944. deprecated="not deprecated">
  37945. <doc>
  37946. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  37947. </doc>
  37948. </field>
  37949. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  37950. transient="false" volatile="false"
  37951. static="true" final="true" visibility="public"
  37952. deprecated="not deprecated">
  37953. <doc>
  37954. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  37955. </doc>
  37956. </field>
  37957. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  37958. transient="false" volatile="false"
  37959. static="true" final="true" visibility="public"
  37960. deprecated="not deprecated">
  37961. <doc>
  37962. <![CDATA[Get the type of the operating system, as determined from parsing
  37963. the <code>os.name</code> property.]]>
  37964. </doc>
  37965. </field>
  37966. <field name="WINDOWS" type="boolean"
  37967. transient="false" volatile="false"
  37968. static="true" final="true" visibility="public"
  37969. deprecated="not deprecated">
  37970. </field>
  37971. <field name="SOLARIS" type="boolean"
  37972. transient="false" volatile="false"
  37973. static="true" final="true" visibility="public"
  37974. deprecated="not deprecated">
  37975. </field>
  37976. <field name="MAC" type="boolean"
  37977. transient="false" volatile="false"
  37978. static="true" final="true" visibility="public"
  37979. deprecated="not deprecated">
  37980. </field>
  37981. <field name="FREEBSD" type="boolean"
  37982. transient="false" volatile="false"
  37983. static="true" final="true" visibility="public"
  37984. deprecated="not deprecated">
  37985. </field>
  37986. <field name="LINUX" type="boolean"
  37987. transient="false" volatile="false"
  37988. static="true" final="true" visibility="public"
  37989. deprecated="not deprecated">
  37990. </field>
  37991. <field name="OTHER" type="boolean"
  37992. transient="false" volatile="false"
  37993. static="true" final="true" visibility="public"
  37994. deprecated="not deprecated">
  37995. </field>
  37996. <field name="PPC_64" type="boolean"
  37997. transient="false" volatile="false"
  37998. static="true" final="true" visibility="public"
  37999. deprecated="not deprecated">
  38000. </field>
  38001. <field name="ENV_NAME_REGEX" type="java.lang.String"
  38002. transient="false" volatile="false"
  38003. static="true" final="true" visibility="public"
  38004. deprecated="not deprecated">
  38005. <doc>
  38006. <![CDATA[Regular expression for environment variables: {@value}.]]>
  38007. </doc>
  38008. </field>
  38009. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  38010. transient="false" volatile="false"
  38011. static="true" final="true" visibility="public"
  38012. deprecated="not deprecated">
  38013. <doc>
  38014. <![CDATA[a Unix command to set permission: {@value}.]]>
  38015. </doc>
  38016. </field>
  38017. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  38018. transient="false" volatile="false"
  38019. static="true" final="true" visibility="public"
  38020. deprecated="not deprecated">
  38021. <doc>
  38022. <![CDATA[a Unix command to set owner: {@value}.]]>
  38023. </doc>
  38024. </field>
  38025. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  38026. transient="false" volatile="false"
  38027. static="true" final="true" visibility="public"
  38028. deprecated="not deprecated">
  38029. <doc>
  38030. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  38031. </doc>
  38032. </field>
  38033. <field name="LINK_COMMAND" type="java.lang.String"
  38034. transient="false" volatile="false"
  38035. static="true" final="true" visibility="public"
  38036. deprecated="not deprecated">
  38037. <doc>
  38038. <![CDATA[a Unix command to create a link: {@value}.]]>
  38039. </doc>
  38040. </field>
  38041. <field name="READ_LINK_COMMAND" type="java.lang.String"
  38042. transient="false" volatile="false"
  38043. static="true" final="true" visibility="public"
  38044. deprecated="not deprecated">
  38045. <doc>
  38046. <![CDATA[a Unix command to get a link target: {@value}.]]>
  38047. </doc>
  38048. </field>
  38049. <field name="timeOutInterval" type="long"
  38050. transient="false" volatile="false"
  38051. static="false" final="false" visibility="protected"
  38052. deprecated="not deprecated">
  38053. <doc>
  38054. <![CDATA[Time after which the executing script would be timedout.]]>
  38055. </doc>
  38056. </field>
  38057. <field name="inheritParentEnv" type="boolean"
  38058. transient="false" volatile="false"
  38059. static="false" final="false" visibility="protected"
  38060. deprecated="not deprecated">
  38061. <doc>
  38062. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  38063. </doc>
  38064. </field>
  38065. <field name="WINUTILS" type="java.lang.String"
  38066. transient="false" volatile="false"
  38067. static="true" final="true" visibility="public"
  38068. deprecated="use one of the exception-raising getter methods,
  38069. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  38070. <doc>
  38071. <![CDATA[Location of winutils as a string; null if not found.
  38072. <p>
  38073. <i>Important: caller must check for this value being null</i>.
  38074. The lack of such checks has led to many support issues being raised.
  38075. <p>
  38076. @deprecated use one of the exception-raising getter methods,
  38077. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  38078. </doc>
  38079. </field>
  38080. <field name="isSetsidAvailable" type="boolean"
  38081. transient="false" volatile="false"
  38082. static="true" final="true" visibility="public"
  38083. deprecated="not deprecated">
  38084. <doc>
  38085. <![CDATA[Flag which is true if setsid exists.]]>
  38086. </doc>
  38087. </field>
  38088. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  38089. transient="false" volatile="false"
  38090. static="true" final="true" visibility="public"
  38091. deprecated="not deprecated">
  38092. <doc>
  38093. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  38094. </doc>
  38095. </field>
  38096. <doc>
  38097. <![CDATA[A base class for running a Shell command.
  38098. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  38099. <code>df</code>. It also offers facilities to gate commands by
  38100. time-intervals.]]>
  38101. </doc>
  38102. </class>
  38103. <!-- end class org.apache.hadoop.util.Shell -->
  38104. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  38105. <class name="ShutdownHookManager" extends="java.lang.Object"
  38106. abstract="false"
  38107. static="false" final="true" visibility="public"
  38108. deprecated="not deprecated">
  38109. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  38110. abstract="false" native="false" synchronized="false"
  38111. static="true" final="false" visibility="public"
  38112. deprecated="not deprecated">
  38113. <doc>
  38114. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  38115. @return <code>ShutdownHookManager</code> singleton.]]>
  38116. </doc>
  38117. </method>
  38118. <method name="addShutdownHook"
  38119. abstract="false" native="false" synchronized="false"
  38120. static="false" final="false" visibility="public"
  38121. deprecated="not deprecated">
  38122. <param name="shutdownHook" type="java.lang.Runnable"/>
  38123. <param name="priority" type="int"/>
  38124. <doc>
  38125. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  38126. the earlier will run. ShutdownHooks with same priority run
  38127. in a non-deterministic order.
  38128. @param shutdownHook shutdownHook <code>Runnable</code>
  38129. @param priority priority of the shutdownHook.]]>
  38130. </doc>
  38131. </method>
  38132. <method name="addShutdownHook"
  38133. abstract="false" native="false" synchronized="false"
  38134. static="false" final="false" visibility="public"
  38135. deprecated="not deprecated">
  38136. <param name="shutdownHook" type="java.lang.Runnable"/>
  38137. <param name="priority" type="int"/>
  38138. <param name="timeout" type="long"/>
  38139. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  38140. <doc>
  38141. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  38142. the earlier will run. ShutdownHooks with same priority run
  38143. in a non-deterministic order. The shutdown hook will be terminated if it
  38144. has not been finished in the specified period of time.
  38145. @param shutdownHook shutdownHook <code>Runnable</code>
  38146. @param priority priority of the shutdownHook
  38147. @param timeout timeout of the shutdownHook
  38148. @param unit unit of the timeout <code>TimeUnit</code>]]>
  38149. </doc>
  38150. </method>
  38151. <method name="removeShutdownHook" return="boolean"
  38152. abstract="false" native="false" synchronized="false"
  38153. static="false" final="false" visibility="public"
  38154. deprecated="not deprecated">
  38155. <param name="shutdownHook" type="java.lang.Runnable"/>
  38156. <doc>
  38157. <![CDATA[Removes a shutdownHook.
  38158. @param shutdownHook shutdownHook to remove.
  38159. @return TRUE if the shutdownHook was registered and removed,
  38160. FALSE otherwise.]]>
  38161. </doc>
  38162. </method>
  38163. <method name="hasShutdownHook" return="boolean"
  38164. abstract="false" native="false" synchronized="false"
  38165. static="false" final="false" visibility="public"
  38166. deprecated="not deprecated">
  38167. <param name="shutdownHook" type="java.lang.Runnable"/>
  38168. <doc>
  38169. <![CDATA[Indicates if a shutdownHook is registered or not.
  38170. @param shutdownHook shutdownHook to check if registered.
  38171. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  38172. </doc>
  38173. </method>
  38174. <method name="isShutdownInProgress" return="boolean"
  38175. abstract="false" native="false" synchronized="false"
  38176. static="false" final="false" visibility="public"
  38177. deprecated="not deprecated">
  38178. <doc>
  38179. <![CDATA[Indicates if shutdown is in progress or not.
  38180. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  38181. </doc>
  38182. </method>
  38183. <method name="clearShutdownHooks"
  38184. abstract="false" native="false" synchronized="false"
  38185. static="false" final="false" visibility="public"
  38186. deprecated="not deprecated">
  38187. <doc>
  38188. <![CDATA[clear all registered shutdownHooks.]]>
  38189. </doc>
  38190. </method>
  38191. <field name="TIMEOUT_MINIMUM" type="long"
  38192. transient="false" volatile="false"
  38193. static="true" final="true" visibility="public"
  38194. deprecated="not deprecated">
  38195. <doc>
  38196. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  38197. </doc>
  38198. </field>
  38199. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  38200. transient="false" volatile="false"
  38201. static="true" final="true" visibility="public"
  38202. deprecated="not deprecated">
  38203. <doc>
  38204. <![CDATA[The default time unit used: seconds.]]>
  38205. </doc>
  38206. </field>
  38207. <doc>
  38208. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  38209. in a deterministic order, higher priority first.
  38210. <p>
  38211. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  38212. This class registers a single JVM shutdownHook and run all the
  38213. shutdownHooks registered to it (to this class) in order based on their
  38214. priority.
  38215. Unless a hook was registered with a shutdown explicitly set through
  38216. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  38217. the shutdown time allocated to it is set by the configuration option
  38218. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  38219. {@code core-site.xml}, with a default value of
  38220. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  38221. seconds.]]>
  38222. </doc>
  38223. </class>
  38224. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  38225. <!-- start class org.apache.hadoop.util.StringInterner -->
  38226. <class name="StringInterner" extends="java.lang.Object"
  38227. abstract="false"
  38228. static="false" final="false" visibility="public"
  38229. deprecated="not deprecated">
  38230. <constructor name="StringInterner"
  38231. static="false" final="false" visibility="public"
  38232. deprecated="not deprecated">
  38233. </constructor>
  38234. <method name="strongIntern" return="java.lang.String"
  38235. abstract="false" native="false" synchronized="false"
  38236. static="true" final="false" visibility="public"
  38237. deprecated="not deprecated">
  38238. <param name="sample" type="java.lang.String"/>
  38239. <doc>
  38240. <![CDATA[Interns and returns a reference to the representative instance
  38241. for any of a collection of string instances that are equal to each other.
  38242. Retains strong reference to the instance,
  38243. thus preventing it from being garbage-collected.
  38244. @param sample string instance to be interned
  38245. @return strong reference to interned string instance]]>
  38246. </doc>
  38247. </method>
  38248. <method name="weakIntern" return="java.lang.String"
  38249. abstract="false" native="false" synchronized="false"
  38250. static="true" final="false" visibility="public"
  38251. deprecated="not deprecated">
  38252. <param name="sample" type="java.lang.String"/>
  38253. <doc>
  38254. <![CDATA[Interns and returns a reference to the representative instance
  38255. for any of a collection of string instances that are equal to each other.
  38256. Retains weak reference to the instance,
  38257. and so does not prevent it from being garbage-collected.
  38258. @param sample string instance to be interned
  38259. @return weak reference to interned string instance]]>
  38260. </doc>
  38261. </method>
  38262. <method name="internStringsInArray" return="java.lang.String[]"
  38263. abstract="false" native="false" synchronized="false"
  38264. static="true" final="false" visibility="public"
  38265. deprecated="not deprecated">
  38266. <param name="strings" type="java.lang.String[]"/>
  38267. <doc>
  38268. <![CDATA[Interns all the strings in the given array in place,
  38269. returning the same array.
  38270. @param strings strings.
  38271. @return internStringsInArray.]]>
  38272. </doc>
  38273. </method>
  38274. <doc>
  38275. <![CDATA[Provides string interning utility methods. For weak interning,
  38276. we use the standard String.intern() call, that performs very well
  38277. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  38278. </doc>
  38279. </class>
  38280. <!-- end class org.apache.hadoop.util.StringInterner -->
  38281. <!-- start class org.apache.hadoop.util.SysInfo -->
  38282. <class name="SysInfo" extends="java.lang.Object"
  38283. abstract="true"
  38284. static="false" final="false" visibility="public"
  38285. deprecated="not deprecated">
  38286. <constructor name="SysInfo"
  38287. static="false" final="false" visibility="public"
  38288. deprecated="not deprecated">
  38289. </constructor>
  38290. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  38291. abstract="false" native="false" synchronized="false"
  38292. static="true" final="false" visibility="public"
  38293. deprecated="not deprecated">
  38294. <doc>
  38295. <![CDATA[Return default OS instance.
  38296. @throws UnsupportedOperationException If cannot determine OS.
  38297. @return Default instance for the detected OS.]]>
  38298. </doc>
  38299. </method>
  38300. <method name="getVirtualMemorySize" return="long"
  38301. abstract="true" native="false" synchronized="false"
  38302. static="false" final="false" visibility="public"
  38303. deprecated="not deprecated">
  38304. <doc>
  38305. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38306. @return virtual memory size in bytes.]]>
  38307. </doc>
  38308. </method>
  38309. <method name="getPhysicalMemorySize" return="long"
  38310. abstract="true" native="false" synchronized="false"
  38311. static="false" final="false" visibility="public"
  38312. deprecated="not deprecated">
  38313. <doc>
  38314. <![CDATA[Obtain the total size of the physical memory present in the system.
  38315. @return physical memory size bytes.]]>
  38316. </doc>
  38317. </method>
  38318. <method name="getAvailableVirtualMemorySize" return="long"
  38319. abstract="true" native="false" synchronized="false"
  38320. static="false" final="false" visibility="public"
  38321. deprecated="not deprecated">
  38322. <doc>
  38323. <![CDATA[Obtain the total size of the available virtual memory present
  38324. in the system.
  38325. @return available virtual memory size in bytes.]]>
  38326. </doc>
  38327. </method>
  38328. <method name="getAvailablePhysicalMemorySize" return="long"
  38329. abstract="true" native="false" synchronized="false"
  38330. static="false" final="false" visibility="public"
  38331. deprecated="not deprecated">
  38332. <doc>
  38333. <![CDATA[Obtain the total size of the available physical memory present
  38334. in the system.
  38335. @return available physical memory size bytes.]]>
  38336. </doc>
  38337. </method>
  38338. <method name="getNumProcessors" return="int"
  38339. abstract="true" native="false" synchronized="false"
  38340. static="false" final="false" visibility="public"
  38341. deprecated="not deprecated">
  38342. <doc>
  38343. <![CDATA[Obtain the total number of logical processors present on the system.
  38344. @return number of logical processors]]>
  38345. </doc>
  38346. </method>
  38347. <method name="getNumCores" return="int"
  38348. abstract="true" native="false" synchronized="false"
  38349. static="false" final="false" visibility="public"
  38350. deprecated="not deprecated">
  38351. <doc>
  38352. <![CDATA[Obtain total number of physical cores present on the system.
  38353. @return number of physical cores]]>
  38354. </doc>
  38355. </method>
  38356. <method name="getCpuFrequency" return="long"
  38357. abstract="true" native="false" synchronized="false"
  38358. static="false" final="false" visibility="public"
  38359. deprecated="not deprecated">
  38360. <doc>
  38361. <![CDATA[Obtain the CPU frequency of on the system.
  38362. @return CPU frequency in kHz]]>
  38363. </doc>
  38364. </method>
  38365. <method name="getCumulativeCpuTime" return="long"
  38366. abstract="true" native="false" synchronized="false"
  38367. static="false" final="false" visibility="public"
  38368. deprecated="not deprecated">
  38369. <doc>
  38370. <![CDATA[Obtain the cumulative CPU time since the system is on.
  38371. @return cumulative CPU time in milliseconds]]>
  38372. </doc>
  38373. </method>
  38374. <method name="getCpuUsagePercentage" return="float"
  38375. abstract="true" native="false" synchronized="false"
  38376. static="false" final="false" visibility="public"
  38377. deprecated="not deprecated">
  38378. <doc>
  38379. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  38380. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  38381. </doc>
  38382. </method>
  38383. <method name="getNumVCoresUsed" return="float"
  38384. abstract="true" native="false" synchronized="false"
  38385. static="false" final="false" visibility="public"
  38386. deprecated="not deprecated">
  38387. <doc>
  38388. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  38389. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  38390. </doc>
  38391. </method>
  38392. <method name="getNetworkBytesRead" return="long"
  38393. abstract="true" native="false" synchronized="false"
  38394. static="false" final="false" visibility="public"
  38395. deprecated="not deprecated">
  38396. <doc>
  38397. <![CDATA[Obtain the aggregated number of bytes read over the network.
  38398. @return total number of bytes read.]]>
  38399. </doc>
  38400. </method>
  38401. <method name="getNetworkBytesWritten" return="long"
  38402. abstract="true" native="false" synchronized="false"
  38403. static="false" final="false" visibility="public"
  38404. deprecated="not deprecated">
  38405. <doc>
  38406. <![CDATA[Obtain the aggregated number of bytes written to the network.
  38407. @return total number of bytes written.]]>
  38408. </doc>
  38409. </method>
  38410. <method name="getStorageBytesRead" return="long"
  38411. abstract="true" native="false" synchronized="false"
  38412. static="false" final="false" visibility="public"
  38413. deprecated="not deprecated">
  38414. <doc>
  38415. <![CDATA[Obtain the aggregated number of bytes read from disks.
  38416. @return total number of bytes read.]]>
  38417. </doc>
  38418. </method>
  38419. <method name="getStorageBytesWritten" return="long"
  38420. abstract="true" native="false" synchronized="false"
  38421. static="false" final="false" visibility="public"
  38422. deprecated="not deprecated">
  38423. <doc>
  38424. <![CDATA[Obtain the aggregated number of bytes written to disks.
  38425. @return total number of bytes written.]]>
  38426. </doc>
  38427. </method>
  38428. <doc>
  38429. <![CDATA[Plugin to calculate resource information on the system.]]>
  38430. </doc>
  38431. </class>
  38432. <!-- end class org.apache.hadoop.util.SysInfo -->
  38433. <!-- start interface org.apache.hadoop.util.Tool -->
  38434. <interface name="Tool" abstract="true"
  38435. static="false" final="false" visibility="public"
  38436. deprecated="not deprecated">
  38437. <implements name="org.apache.hadoop.conf.Configurable"/>
  38438. <method name="run" return="int"
  38439. abstract="true" native="false" synchronized="false"
  38440. static="false" final="false" visibility="public"
  38441. deprecated="not deprecated">
  38442. <param name="args" type="java.lang.String[]"/>
  38443. <exception name="Exception" type="java.lang.Exception"/>
  38444. <doc>
  38445. <![CDATA[Execute the command with the given arguments.
  38446. @param args command specific arguments.
  38447. @return exit code.
  38448. @throws Exception command exception.]]>
  38449. </doc>
  38450. </method>
  38451. <doc>
  38452. <![CDATA[A tool interface that supports handling of generic command-line options.
  38453. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  38454. The tool/application should delegate the handling of
  38455. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  38456. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  38457. and only handle its custom arguments.</p>
  38458. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  38459. <blockquote><pre>
  38460. public class MyApp extends Configured implements Tool {
  38461. public int run(String[] args) throws Exception {
  38462. // <code>Configuration</code> processed by <code>ToolRunner</code>
  38463. Configuration conf = getConf();
  38464. // Create a JobConf using the processed <code>conf</code>
  38465. JobConf job = new JobConf(conf, MyApp.class);
  38466. // Process custom command-line options
  38467. Path in = new Path(args[1]);
  38468. Path out = new Path(args[2]);
  38469. // Specify various job-specific parameters
  38470. job.setJobName("my-app");
  38471. job.setInputPath(in);
  38472. job.setOutputPath(out);
  38473. job.setMapperClass(MyMapper.class);
  38474. job.setReducerClass(MyReducer.class);
  38475. // Submit the job, then poll for progress until the job is complete
  38476. RunningJob runningJob = JobClient.runJob(job);
  38477. if (runningJob.isSuccessful()) {
  38478. return 0;
  38479. } else {
  38480. return 1;
  38481. }
  38482. }
  38483. public static void main(String[] args) throws Exception {
  38484. // Let <code>ToolRunner</code> handle generic command-line options
  38485. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  38486. System.exit(res);
  38487. }
  38488. }
  38489. </pre></blockquote>
  38490. @see GenericOptionsParser
  38491. @see ToolRunner]]>
  38492. </doc>
  38493. </interface>
  38494. <!-- end interface org.apache.hadoop.util.Tool -->
  38495. <!-- start class org.apache.hadoop.util.ToolRunner -->
  38496. <class name="ToolRunner" extends="java.lang.Object"
  38497. abstract="false"
  38498. static="false" final="false" visibility="public"
  38499. deprecated="not deprecated">
  38500. <constructor name="ToolRunner"
  38501. static="false" final="false" visibility="public"
  38502. deprecated="not deprecated">
  38503. </constructor>
  38504. <method name="run" return="int"
  38505. abstract="false" native="false" synchronized="false"
  38506. static="true" final="false" visibility="public"
  38507. deprecated="not deprecated">
  38508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38509. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  38510. <param name="args" type="java.lang.String[]"/>
  38511. <exception name="Exception" type="java.lang.Exception"/>
  38512. <doc>
  38513. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  38514. parsing with the given generic arguments. Uses the given
  38515. <code>Configuration</code>, or builds one if null.
  38516. Sets the <code>Tool</code>'s configuration with the possibly modified
  38517. version of the <code>conf</code>.
  38518. @param conf <code>Configuration</code> for the <code>Tool</code>.
  38519. @param tool <code>Tool</code> to run.
  38520. @param args command-line arguments to the tool.
  38521. @return exit code of the {@link Tool#run(String[])} method.
  38522. @throws Exception Exception.]]>
  38523. </doc>
  38524. </method>
  38525. <method name="run" return="int"
  38526. abstract="false" native="false" synchronized="false"
  38527. static="true" final="false" visibility="public"
  38528. deprecated="not deprecated">
  38529. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  38530. <param name="args" type="java.lang.String[]"/>
  38531. <exception name="Exception" type="java.lang.Exception"/>
  38532. <doc>
  38533. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  38534. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  38535. @param tool <code>Tool</code> to run.
  38536. @param args command-line arguments to the tool.
  38537. @return exit code of the {@link Tool#run(String[])} method.
  38538. @throws Exception exception.]]>
  38539. </doc>
  38540. </method>
  38541. <method name="printGenericCommandUsage"
  38542. abstract="false" native="false" synchronized="false"
  38543. static="true" final="false" visibility="public"
  38544. deprecated="not deprecated">
  38545. <param name="out" type="java.io.PrintStream"/>
  38546. <doc>
  38547. <![CDATA[Prints generic command-line argurments and usage information.
  38548. @param out stream to write usage information to.]]>
  38549. </doc>
  38550. </method>
  38551. <method name="confirmPrompt" return="boolean"
  38552. abstract="false" native="false" synchronized="false"
  38553. static="true" final="false" visibility="public"
  38554. deprecated="not deprecated">
  38555. <param name="prompt" type="java.lang.String"/>
  38556. <exception name="IOException" type="java.io.IOException"/>
  38557. <doc>
  38558. <![CDATA[Print out a prompt to the user, and return true if the user
  38559. responds with "y" or "yes". (case insensitive).
  38560. @param prompt prompt.
  38561. @throws IOException raised on errors performing I/O.
  38562. @return if the user
  38563. responds with "y" or "yes". (case insensitive) true,
  38564. not false.]]>
  38565. </doc>
  38566. </method>
  38567. <doc>
  38568. <![CDATA[A utility to help run {@link Tool}s.
  38569. <p><code>ToolRunner</code> can be used to run classes implementing
  38570. <code>Tool</code> interface. It works in conjunction with
  38571. {@link GenericOptionsParser} to parse the
  38572. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  38573. generic hadoop command line arguments</a> and modifies the
  38574. <code>Configuration</code> of the <code>Tool</code>. The
  38575. application-specific options are passed along without being modified.
  38576. </p>
  38577. @see Tool
  38578. @see GenericOptionsParser]]>
  38579. </doc>
  38580. </class>
  38581. <!-- end class org.apache.hadoop.util.ToolRunner -->
  38582. <!-- start class org.apache.hadoop.util.VersionInfo -->
  38583. <class name="VersionInfo" extends="java.lang.Object"
  38584. abstract="false"
  38585. static="false" final="false" visibility="public"
  38586. deprecated="not deprecated">
  38587. <constructor name="VersionInfo" type="java.lang.String"
  38588. static="false" final="false" visibility="protected"
  38589. deprecated="not deprecated">
  38590. </constructor>
  38591. <method name="_getVersion" return="java.lang.String"
  38592. abstract="false" native="false" synchronized="false"
  38593. static="false" final="false" visibility="protected"
  38594. deprecated="not deprecated">
  38595. </method>
  38596. <method name="_getRevision" return="java.lang.String"
  38597. abstract="false" native="false" synchronized="false"
  38598. static="false" final="false" visibility="protected"
  38599. deprecated="not deprecated">
  38600. </method>
  38601. <method name="_getBranch" return="java.lang.String"
  38602. abstract="false" native="false" synchronized="false"
  38603. static="false" final="false" visibility="protected"
  38604. deprecated="not deprecated">
  38605. </method>
  38606. <method name="_getDate" return="java.lang.String"
  38607. abstract="false" native="false" synchronized="false"
  38608. static="false" final="false" visibility="protected"
  38609. deprecated="not deprecated">
  38610. </method>
  38611. <method name="_getUser" return="java.lang.String"
  38612. abstract="false" native="false" synchronized="false"
  38613. static="false" final="false" visibility="protected"
  38614. deprecated="not deprecated">
  38615. </method>
  38616. <method name="_getUrl" return="java.lang.String"
  38617. abstract="false" native="false" synchronized="false"
  38618. static="false" final="false" visibility="protected"
  38619. deprecated="not deprecated">
  38620. </method>
  38621. <method name="_getSrcChecksum" return="java.lang.String"
  38622. abstract="false" native="false" synchronized="false"
  38623. static="false" final="false" visibility="protected"
  38624. deprecated="not deprecated">
  38625. </method>
  38626. <method name="_getBuildVersion" return="java.lang.String"
  38627. abstract="false" native="false" synchronized="false"
  38628. static="false" final="false" visibility="protected"
  38629. deprecated="not deprecated">
  38630. </method>
  38631. <method name="_getProtocVersion" return="java.lang.String"
  38632. abstract="false" native="false" synchronized="false"
  38633. static="false" final="false" visibility="protected"
  38634. deprecated="not deprecated">
  38635. </method>
  38636. <method name="_getCompilePlatform" return="java.lang.String"
  38637. abstract="false" native="false" synchronized="false"
  38638. static="false" final="false" visibility="protected"
  38639. deprecated="not deprecated">
  38640. </method>
  38641. <method name="getVersion" return="java.lang.String"
  38642. abstract="false" native="false" synchronized="false"
  38643. static="true" final="false" visibility="public"
  38644. deprecated="not deprecated">
  38645. <doc>
  38646. <![CDATA[Get the Hadoop version.
  38647. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  38648. </doc>
  38649. </method>
  38650. <method name="getRevision" return="java.lang.String"
  38651. abstract="false" native="false" synchronized="false"
  38652. static="true" final="false" visibility="public"
  38653. deprecated="not deprecated">
  38654. <doc>
  38655. <![CDATA[Get the Git commit hash of the repository when compiled.
  38656. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  38657. </doc>
  38658. </method>
  38659. <method name="getBranch" return="java.lang.String"
  38660. abstract="false" native="false" synchronized="false"
  38661. static="true" final="false" visibility="public"
  38662. deprecated="not deprecated">
  38663. <doc>
  38664. <![CDATA[Get the branch on which this originated.
  38665. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  38666. </doc>
  38667. </method>
  38668. <method name="getDate" return="java.lang.String"
  38669. abstract="false" native="false" synchronized="false"
  38670. static="true" final="false" visibility="public"
  38671. deprecated="not deprecated">
  38672. <doc>
  38673. <![CDATA[The date that Hadoop was compiled.
  38674. @return the compilation date in unix date format]]>
  38675. </doc>
  38676. </method>
  38677. <method name="getUser" return="java.lang.String"
  38678. abstract="false" native="false" synchronized="false"
  38679. static="true" final="false" visibility="public"
  38680. deprecated="not deprecated">
  38681. <doc>
  38682. <![CDATA[The user that compiled Hadoop.
  38683. @return the username of the user]]>
  38684. </doc>
  38685. </method>
  38686. <method name="getUrl" return="java.lang.String"
  38687. abstract="false" native="false" synchronized="false"
  38688. static="true" final="false" visibility="public"
  38689. deprecated="not deprecated">
  38690. <doc>
  38691. <![CDATA[Get the URL for the Hadoop repository.
  38692. @return the URL of the Hadoop repository]]>
  38693. </doc>
  38694. </method>
  38695. <method name="getSrcChecksum" return="java.lang.String"
  38696. abstract="false" native="false" synchronized="false"
  38697. static="true" final="false" visibility="public"
  38698. deprecated="not deprecated">
  38699. <doc>
  38700. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  38701. @return the checksum of the source files]]>
  38702. </doc>
  38703. </method>
  38704. <method name="getBuildVersion" return="java.lang.String"
  38705. abstract="false" native="false" synchronized="false"
  38706. static="true" final="false" visibility="public"
  38707. deprecated="not deprecated">
  38708. <doc>
  38709. <![CDATA[Returns the buildVersion which includes version,
  38710. revision, user and date.
  38711. @return the buildVersion]]>
  38712. </doc>
  38713. </method>
  38714. <method name="getProtocVersion" return="java.lang.String"
  38715. abstract="false" native="false" synchronized="false"
  38716. static="true" final="false" visibility="public"
  38717. deprecated="not deprecated">
  38718. <doc>
  38719. <![CDATA[Returns the protoc version used for the build.
  38720. @return the protoc version]]>
  38721. </doc>
  38722. </method>
  38723. <method name="getCompilePlatform" return="java.lang.String"
  38724. abstract="false" native="false" synchronized="false"
  38725. static="true" final="false" visibility="public"
  38726. deprecated="not deprecated">
  38727. <doc>
  38728. <![CDATA[Returns the OS platform used for the build.
  38729. @return the OS platform]]>
  38730. </doc>
  38731. </method>
  38732. <method name="main"
  38733. abstract="false" native="false" synchronized="false"
  38734. static="true" final="false" visibility="public"
  38735. deprecated="not deprecated">
  38736. <param name="args" type="java.lang.String[]"/>
  38737. </method>
  38738. <doc>
  38739. <![CDATA[This class returns build information about Hadoop components.]]>
  38740. </doc>
  38741. </class>
  38742. <!-- end class org.apache.hadoop.util.VersionInfo -->
  38743. <doc>
  38744. <![CDATA[Common utilities.]]>
  38745. </doc>
  38746. </package>
  38747. <package name="org.apache.hadoop.util.bloom">
  38748. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  38749. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  38750. abstract="false"
  38751. static="false" final="false" visibility="public"
  38752. deprecated="not deprecated">
  38753. <constructor name="BloomFilter"
  38754. static="false" final="false" visibility="public"
  38755. deprecated="not deprecated">
  38756. <doc>
  38757. <![CDATA[Default constructor - use with readFields]]>
  38758. </doc>
  38759. </constructor>
  38760. <constructor name="BloomFilter" type="int, int, int"
  38761. static="false" final="false" visibility="public"
  38762. deprecated="not deprecated">
  38763. <doc>
  38764. <![CDATA[Constructor
  38765. @param vectorSize The vector size of <i>this</i> filter.
  38766. @param nbHash The number of hash function to consider.
  38767. @param hashType type of the hashing function (see
  38768. {@link org.apache.hadoop.util.hash.Hash}).]]>
  38769. </doc>
  38770. </constructor>
  38771. <method name="add"
  38772. abstract="false" native="false" synchronized="false"
  38773. static="false" final="false" visibility="public"
  38774. deprecated="not deprecated">
  38775. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38776. </method>
  38777. <method name="and"
  38778. abstract="false" native="false" synchronized="false"
  38779. static="false" final="false" visibility="public"
  38780. deprecated="not deprecated">
  38781. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38782. </method>
  38783. <method name="membershipTest" return="boolean"
  38784. abstract="false" native="false" synchronized="false"
  38785. static="false" final="false" visibility="public"
  38786. deprecated="not deprecated">
  38787. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38788. </method>
  38789. <method name="not"
  38790. abstract="false" native="false" synchronized="false"
  38791. static="false" final="false" visibility="public"
  38792. deprecated="not deprecated">
  38793. </method>
  38794. <method name="or"
  38795. abstract="false" native="false" synchronized="false"
  38796. static="false" final="false" visibility="public"
  38797. deprecated="not deprecated">
  38798. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38799. </method>
  38800. <method name="xor"
  38801. abstract="false" native="false" synchronized="false"
  38802. static="false" final="false" visibility="public"
  38803. deprecated="not deprecated">
  38804. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38805. </method>
  38806. <method name="toString" return="java.lang.String"
  38807. abstract="false" native="false" synchronized="false"
  38808. static="false" final="false" visibility="public"
  38809. deprecated="not deprecated">
  38810. </method>
  38811. <method name="getVectorSize" return="int"
  38812. abstract="false" native="false" synchronized="false"
  38813. static="false" final="false" visibility="public"
  38814. deprecated="not deprecated">
  38815. <doc>
  38816. <![CDATA[@return size of the the bloomfilter]]>
  38817. </doc>
  38818. </method>
  38819. <method name="write"
  38820. abstract="false" native="false" synchronized="false"
  38821. static="false" final="false" visibility="public"
  38822. deprecated="not deprecated">
  38823. <param name="out" type="java.io.DataOutput"/>
  38824. <exception name="IOException" type="java.io.IOException"/>
  38825. </method>
  38826. <method name="readFields"
  38827. abstract="false" native="false" synchronized="false"
  38828. static="false" final="false" visibility="public"
  38829. deprecated="not deprecated">
  38830. <param name="in" type="java.io.DataInput"/>
  38831. <exception name="IOException" type="java.io.IOException"/>
  38832. </method>
  38833. <doc>
  38834. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  38835. <p>
  38836. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  38837. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  38838. offers for the transmission of set membership information between networked hosts. A sender encodes
  38839. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  38840. representation. Computation and space costs for construction are linear in the number of elements.
  38841. The receiver uses the filter to test whether various elements are members of the set. Though the
  38842. filter will occasionally return a false positive, it will never return a false negative. When creating
  38843. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  38844. <p>
  38845. Originally created by
  38846. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  38847. @see Filter The general behavior of a filter
  38848. @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>]]>
  38849. </doc>
  38850. </class>
  38851. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  38852. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  38853. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  38854. abstract="false"
  38855. static="false" final="true" visibility="public"
  38856. deprecated="not deprecated">
  38857. <constructor name="CountingBloomFilter"
  38858. static="false" final="false" visibility="public"
  38859. deprecated="not deprecated">
  38860. <doc>
  38861. <![CDATA[Default constructor - use with readFields]]>
  38862. </doc>
  38863. </constructor>
  38864. <constructor name="CountingBloomFilter" type="int, int, int"
  38865. static="false" final="false" visibility="public"
  38866. deprecated="not deprecated">
  38867. <doc>
  38868. <![CDATA[Constructor
  38869. @param vectorSize The vector size of <i>this</i> filter.
  38870. @param nbHash The number of hash function to consider.
  38871. @param hashType type of the hashing function (see
  38872. {@link org.apache.hadoop.util.hash.Hash}).]]>
  38873. </doc>
  38874. </constructor>
  38875. <method name="add"
  38876. abstract="false" native="false" synchronized="false"
  38877. static="false" final="false" visibility="public"
  38878. deprecated="not deprecated">
  38879. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38880. </method>
  38881. <method name="delete"
  38882. abstract="false" native="false" synchronized="false"
  38883. static="false" final="false" visibility="public"
  38884. deprecated="not deprecated">
  38885. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38886. <doc>
  38887. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  38888. <p>
  38889. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  38890. @param key The key to remove.]]>
  38891. </doc>
  38892. </method>
  38893. <method name="and"
  38894. abstract="false" native="false" synchronized="false"
  38895. static="false" final="false" visibility="public"
  38896. deprecated="not deprecated">
  38897. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38898. </method>
  38899. <method name="membershipTest" return="boolean"
  38900. abstract="false" native="false" synchronized="false"
  38901. static="false" final="false" visibility="public"
  38902. deprecated="not deprecated">
  38903. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  38904. </method>
  38905. <method name="approximateCount" return="int"
  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. <doc>
  38911. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  38912. times the key was added to the filter. This allows the filter to be
  38913. used as an approximate <code>key -&gt; count</code> map.
  38914. <p>NOTE: due to the bucket size of this filter, inserting the same
  38915. key more than 15 times will cause an overflow at all filter positions
  38916. associated with this key, and it will significantly increase the error
  38917. rate for this and other keys. For this reason the filter can only be
  38918. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  38919. @param key key to be tested
  38920. @return 0 if the key is not present. Otherwise, a positive value v will
  38921. be returned such that <code>v == count</code> with probability equal to the
  38922. error rate of this filter, and <code>v &gt; count</code> otherwise.
  38923. Additionally, if the filter experienced an underflow as a result of
  38924. {@link #delete(Key)} operation, the return value may be lower than the
  38925. <code>count</code> with the probability of the false negative rate of such
  38926. filter.]]>
  38927. </doc>
  38928. </method>
  38929. <method name="not"
  38930. abstract="false" native="false" synchronized="false"
  38931. static="false" final="false" visibility="public"
  38932. deprecated="not deprecated">
  38933. </method>
  38934. <method name="or"
  38935. abstract="false" native="false" synchronized="false"
  38936. static="false" final="false" visibility="public"
  38937. deprecated="not deprecated">
  38938. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38939. </method>
  38940. <method name="xor"
  38941. abstract="false" native="false" synchronized="false"
  38942. static="false" final="false" visibility="public"
  38943. deprecated="not deprecated">
  38944. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  38945. </method>
  38946. <method name="toString" return="java.lang.String"
  38947. abstract="false" native="false" synchronized="false"
  38948. static="false" final="false" visibility="public"
  38949. deprecated="not deprecated">
  38950. </method>
  38951. <method name="write"
  38952. abstract="false" native="false" synchronized="false"
  38953. static="false" final="false" visibility="public"
  38954. deprecated="not deprecated">
  38955. <param name="out" type="java.io.DataOutput"/>
  38956. <exception name="IOException" type="java.io.IOException"/>
  38957. </method>
  38958. <method name="readFields"
  38959. abstract="false" native="false" synchronized="false"
  38960. static="false" final="false" visibility="public"
  38961. deprecated="not deprecated">
  38962. <param name="in" type="java.io.DataInput"/>
  38963. <exception name="IOException" type="java.io.IOException"/>
  38964. </method>
  38965. <doc>
  38966. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  38967. 2000 paper.
  38968. <p>
  38969. A counting Bloom filter is an improvement to standard a Bloom filter as it
  38970. allows dynamic additions and deletions of set membership information. This
  38971. is achieved through the use of a counting vector instead of a bit vector.
  38972. <p>
  38973. Originally created by
  38974. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  38975. @see Filter The general behavior of a filter
  38976. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  38977. </doc>
  38978. </class>
  38979. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  38980. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  38981. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  38982. abstract="false"
  38983. static="false" final="false" visibility="public"
  38984. deprecated="not deprecated">
  38985. <constructor name="DynamicBloomFilter"
  38986. static="false" final="false" visibility="public"
  38987. deprecated="not deprecated">
  38988. <doc>
  38989. <![CDATA[Zero-args constructor for the serialization.]]>
  38990. </doc>
  38991. </constructor>
  38992. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  38993. static="false" final="false" visibility="public"
  38994. deprecated="not deprecated">
  38995. <doc>
  38996. <![CDATA[Constructor.
  38997. <p>
  38998. Builds an empty Dynamic Bloom filter.
  38999. @param vectorSize The number of bits in the vector.
  39000. @param nbHash The number of hash function to consider.
  39001. @param hashType type of the hashing function (see
  39002. {@link org.apache.hadoop.util.hash.Hash}).
  39003. @param nr The threshold for the maximum number of keys to record in a
  39004. dynamic Bloom filter row.]]>
  39005. </doc>
  39006. </constructor>
  39007. <method name="add"
  39008. abstract="false" native="false" synchronized="false"
  39009. static="false" final="false" visibility="public"
  39010. deprecated="not deprecated">
  39011. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39012. </method>
  39013. <method name="and"
  39014. abstract="false" native="false" synchronized="false"
  39015. static="false" final="false" visibility="public"
  39016. deprecated="not deprecated">
  39017. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39018. </method>
  39019. <method name="membershipTest" return="boolean"
  39020. abstract="false" native="false" synchronized="false"
  39021. static="false" final="false" visibility="public"
  39022. deprecated="not deprecated">
  39023. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39024. </method>
  39025. <method name="not"
  39026. abstract="false" native="false" synchronized="false"
  39027. static="false" final="false" visibility="public"
  39028. deprecated="not deprecated">
  39029. </method>
  39030. <method name="or"
  39031. abstract="false" native="false" synchronized="false"
  39032. static="false" final="false" visibility="public"
  39033. deprecated="not deprecated">
  39034. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39035. </method>
  39036. <method name="xor"
  39037. abstract="false" native="false" synchronized="false"
  39038. static="false" final="false" visibility="public"
  39039. deprecated="not deprecated">
  39040. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39041. </method>
  39042. <method name="toString" return="java.lang.String"
  39043. abstract="false" native="false" synchronized="false"
  39044. static="false" final="false" visibility="public"
  39045. deprecated="not deprecated">
  39046. </method>
  39047. <method name="write"
  39048. abstract="false" native="false" synchronized="false"
  39049. static="false" final="false" visibility="public"
  39050. deprecated="not deprecated">
  39051. <param name="out" type="java.io.DataOutput"/>
  39052. <exception name="IOException" type="java.io.IOException"/>
  39053. </method>
  39054. <method name="readFields"
  39055. abstract="false" native="false" synchronized="false"
  39056. static="false" final="false" visibility="public"
  39057. deprecated="not deprecated">
  39058. <param name="in" type="java.io.DataInput"/>
  39059. <exception name="IOException" type="java.io.IOException"/>
  39060. </method>
  39061. <doc>
  39062. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  39063. <p>
  39064. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  39065. each of the <code>s</code> rows is a standard Bloom filter. The creation
  39066. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  39067. bit matrix, i.e., it is composed of a single standard Bloom filter.
  39068. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  39069. initial bit vector, where <code>n<sub>r</sub> {@literal <=} n</code>
  39070. (<code>n</code> is the cardinality of the set <code>A</code> to record in
  39071. the filter).
  39072. <p>
  39073. As the size of <code>A</code> grows during the execution of the application,
  39074. several keys must be inserted in the DBF. When inserting a key into the DBF,
  39075. one must first get an active Bloom filter in the matrix. A Bloom filter is
  39076. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  39077. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  39078. If an active Bloom filter is found, the key is inserted and
  39079. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  39080. is no active Bloom filter, a new one is created (i.e., a new row is added to
  39081. the matrix) according to the current size of <code>A</code> and the element
  39082. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  39083. this new Bloom filter is set to one. A given key is said to belong to the
  39084. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  39085. <p>
  39086. Originally created by
  39087. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39088. @see Filter The general behavior of a filter
  39089. @see BloomFilter A Bloom filter
  39090. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  39091. </doc>
  39092. </class>
  39093. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  39094. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  39095. <class name="HashFunction" extends="java.lang.Object"
  39096. abstract="false"
  39097. static="false" final="true" visibility="public"
  39098. deprecated="not deprecated">
  39099. <constructor name="HashFunction" type="int, int, int"
  39100. static="false" final="false" visibility="public"
  39101. deprecated="not deprecated">
  39102. <doc>
  39103. <![CDATA[Constructor.
  39104. <p>
  39105. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  39106. @param maxValue The maximum highest returned value.
  39107. @param nbHash The number of resulting hashed values.
  39108. @param hashType type of the hashing function (see {@link Hash}).]]>
  39109. </doc>
  39110. </constructor>
  39111. <method name="clear"
  39112. abstract="false" native="false" synchronized="false"
  39113. static="false" final="false" visibility="public"
  39114. deprecated="not deprecated">
  39115. <doc>
  39116. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  39117. </doc>
  39118. </method>
  39119. <method name="hash" return="int[]"
  39120. abstract="false" native="false" synchronized="false"
  39121. static="false" final="false" visibility="public"
  39122. deprecated="not deprecated">
  39123. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  39124. <doc>
  39125. <![CDATA[Hashes a specified key into several integers.
  39126. @param k The specified key.
  39127. @return The array of hashed values.]]>
  39128. </doc>
  39129. </method>
  39130. <doc>
  39131. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  39132. @see Key The general behavior of a key being stored in a filter
  39133. @see Filter The general behavior of a filter]]>
  39134. </doc>
  39135. </class>
  39136. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  39137. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  39138. <interface name="RemoveScheme" abstract="true"
  39139. static="false" final="false" visibility="public"
  39140. deprecated="not deprecated">
  39141. <field name="RANDOM" type="short"
  39142. transient="false" volatile="false"
  39143. static="true" final="true" visibility="public"
  39144. deprecated="not deprecated">
  39145. <doc>
  39146. <![CDATA[Random selection.
  39147. <p>
  39148. The idea is to randomly select a bit to reset.]]>
  39149. </doc>
  39150. </field>
  39151. <field name="MINIMUM_FN" type="short"
  39152. transient="false" volatile="false"
  39153. static="true" final="true" visibility="public"
  39154. deprecated="not deprecated">
  39155. <doc>
  39156. <![CDATA[MinimumFN Selection.
  39157. <p>
  39158. The idea is to select the bit to reset that will generate the minimum
  39159. number of false negative.]]>
  39160. </doc>
  39161. </field>
  39162. <field name="MAXIMUM_FP" type="short"
  39163. transient="false" volatile="false"
  39164. static="true" final="true" visibility="public"
  39165. deprecated="not deprecated">
  39166. <doc>
  39167. <![CDATA[MaximumFP Selection.
  39168. <p>
  39169. The idea is to select the bit to reset that will remove the maximum number
  39170. of false positive.]]>
  39171. </doc>
  39172. </field>
  39173. <field name="RATIO" type="short"
  39174. transient="false" volatile="false"
  39175. static="true" final="true" visibility="public"
  39176. deprecated="not deprecated">
  39177. <doc>
  39178. <![CDATA[Ratio Selection.
  39179. <p>
  39180. The idea is to select the bit to reset that will, at the same time, remove
  39181. the maximum number of false positve while minimizing the amount of false
  39182. negative generated.]]>
  39183. </doc>
  39184. </field>
  39185. <doc>
  39186. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  39187. <p>
  39188. Originally created by
  39189. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  39190. </doc>
  39191. </interface>
  39192. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  39193. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  39194. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  39195. abstract="false"
  39196. static="false" final="true" visibility="public"
  39197. deprecated="not deprecated">
  39198. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  39199. <constructor name="RetouchedBloomFilter"
  39200. static="false" final="false" visibility="public"
  39201. deprecated="not deprecated">
  39202. <doc>
  39203. <![CDATA[Default constructor - use with readFields]]>
  39204. </doc>
  39205. </constructor>
  39206. <constructor name="RetouchedBloomFilter" type="int, int, int"
  39207. static="false" final="false" visibility="public"
  39208. deprecated="not deprecated">
  39209. <doc>
  39210. <![CDATA[Constructor
  39211. @param vectorSize The vector size of <i>this</i> filter.
  39212. @param nbHash The number of hash function to consider.
  39213. @param hashType type of the hashing function (see
  39214. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39215. </doc>
  39216. </constructor>
  39217. <method name="add"
  39218. abstract="false" native="false" synchronized="false"
  39219. static="false" final="false" visibility="public"
  39220. deprecated="not deprecated">
  39221. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39222. </method>
  39223. <method name="addFalsePositive"
  39224. abstract="false" native="false" synchronized="false"
  39225. static="false" final="false" visibility="public"
  39226. deprecated="not deprecated">
  39227. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39228. <doc>
  39229. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  39230. <p>
  39231. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  39232. @param key The false positive key to add.]]>
  39233. </doc>
  39234. </method>
  39235. <method name="addFalsePositive"
  39236. abstract="false" native="false" synchronized="false"
  39237. static="false" final="false" visibility="public"
  39238. deprecated="not deprecated">
  39239. <param name="coll" type="java.util.Collection"/>
  39240. <doc>
  39241. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  39242. @param coll The collection of false positive.]]>
  39243. </doc>
  39244. </method>
  39245. <method name="addFalsePositive"
  39246. abstract="false" native="false" synchronized="false"
  39247. static="false" final="false" visibility="public"
  39248. deprecated="not deprecated">
  39249. <param name="keys" type="java.util.List"/>
  39250. <doc>
  39251. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  39252. @param keys The list of false positive.]]>
  39253. </doc>
  39254. </method>
  39255. <method name="addFalsePositive"
  39256. abstract="false" native="false" synchronized="false"
  39257. static="false" final="false" visibility="public"
  39258. deprecated="not deprecated">
  39259. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  39260. <doc>
  39261. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  39262. @param keys The array of false positive.]]>
  39263. </doc>
  39264. </method>
  39265. <method name="selectiveClearing"
  39266. abstract="false" native="false" synchronized="false"
  39267. static="false" final="false" visibility="public"
  39268. deprecated="not deprecated">
  39269. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  39270. <param name="scheme" type="short"/>
  39271. <doc>
  39272. <![CDATA[Performs the selective clearing for a given key.
  39273. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  39274. @param scheme The selective clearing scheme to apply.]]>
  39275. </doc>
  39276. </method>
  39277. <method name="write"
  39278. abstract="false" native="false" synchronized="false"
  39279. static="false" final="false" visibility="public"
  39280. deprecated="not deprecated">
  39281. <param name="out" type="java.io.DataOutput"/>
  39282. <exception name="IOException" type="java.io.IOException"/>
  39283. </method>
  39284. <method name="readFields"
  39285. abstract="false" native="false" synchronized="false"
  39286. static="false" final="false" visibility="public"
  39287. deprecated="not deprecated">
  39288. <param name="in" type="java.io.DataInput"/>
  39289. <exception name="IOException" type="java.io.IOException"/>
  39290. </method>
  39291. <doc>
  39292. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  39293. <p>
  39294. It allows the removal of selected false positives at the cost of introducing
  39295. random false negatives, and with the benefit of eliminating some random false
  39296. positives at the same time.
  39297. <p>
  39298. Originally created by
  39299. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39300. @see Filter The general behavior of a filter
  39301. @see BloomFilter A Bloom filter
  39302. @see RemoveScheme The different selective clearing algorithms
  39303. @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>]]>
  39304. </doc>
  39305. </class>
  39306. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  39307. </package>
  39308. <package name="org.apache.hadoop.util.curator">
  39309. </package>
  39310. <package name="org.apache.hadoop.util.functional">
  39311. <!-- start class org.apache.hadoop.util.functional.CloseableTaskPoolSubmitter -->
  39312. <class name="CloseableTaskPoolSubmitter" extends="java.lang.Object"
  39313. abstract="false"
  39314. static="false" final="false" visibility="public"
  39315. deprecated="not deprecated">
  39316. <implements name="org.apache.hadoop.util.functional.TaskPool.Submitter"/>
  39317. <implements name="java.io.Closeable"/>
  39318. <constructor name="CloseableTaskPoolSubmitter" type="java.util.concurrent.ExecutorService"
  39319. static="false" final="false" visibility="public"
  39320. deprecated="not deprecated">
  39321. <doc>
  39322. <![CDATA[Constructor.
  39323. @param pool non-null executor.]]>
  39324. </doc>
  39325. </constructor>
  39326. <method name="getPool" return="java.util.concurrent.ExecutorService"
  39327. abstract="false" native="false" synchronized="false"
  39328. static="false" final="false" visibility="public"
  39329. deprecated="not deprecated">
  39330. <doc>
  39331. <![CDATA[Get the pool.
  39332. @return the pool.]]>
  39333. </doc>
  39334. </method>
  39335. <method name="close"
  39336. abstract="false" native="false" synchronized="false"
  39337. static="false" final="false" visibility="public"
  39338. deprecated="not deprecated">
  39339. <doc>
  39340. <![CDATA[Shut down the pool.]]>
  39341. </doc>
  39342. </method>
  39343. <method name="submit" return="java.util.concurrent.Future"
  39344. abstract="false" native="false" synchronized="false"
  39345. static="false" final="false" visibility="public"
  39346. deprecated="not deprecated">
  39347. <param name="task" type="java.lang.Runnable"/>
  39348. </method>
  39349. <doc>
  39350. <![CDATA[A task submitter which is closeable, and whose close() call
  39351. shuts down the pool. This can help manage
  39352. thread pool lifecycles.]]>
  39353. </doc>
  39354. </class>
  39355. <!-- end class org.apache.hadoop.util.functional.CloseableTaskPoolSubmitter -->
  39356. <!-- start class org.apache.hadoop.util.functional.FutureIO -->
  39357. <class name="FutureIO" extends="java.lang.Object"
  39358. abstract="false"
  39359. static="false" final="true" visibility="public"
  39360. deprecated="not deprecated">
  39361. <method name="awaitFuture" return="T"
  39362. abstract="false" native="false" synchronized="false"
  39363. static="true" final="false" visibility="public"
  39364. deprecated="not deprecated">
  39365. <param name="future" type="java.util.concurrent.Future"/>
  39366. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  39367. <exception name="IOException" type="java.io.IOException"/>
  39368. <exception name="RuntimeException" type="java.lang.RuntimeException"/>
  39369. <doc>
  39370. <![CDATA[Given a future, evaluate it.
  39371. <p>
  39372. Any exception generated in the future is
  39373. extracted and rethrown.
  39374. </p>
  39375. @param future future to evaluate
  39376. @param <T> type of the result.
  39377. @return the result, if all went well.
  39378. @throws InterruptedIOException future was interrupted
  39379. @throws IOException if something went wrong
  39380. @throws RuntimeException any nested RTE thrown]]>
  39381. </doc>
  39382. </method>
  39383. <method name="awaitFuture" return="T"
  39384. abstract="false" native="false" synchronized="false"
  39385. static="true" final="false" visibility="public"
  39386. deprecated="not deprecated">
  39387. <param name="future" type="java.util.concurrent.Future"/>
  39388. <param name="timeout" type="long"/>
  39389. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  39390. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  39391. <exception name="IOException" type="java.io.IOException"/>
  39392. <exception name="RuntimeException" type="java.lang.RuntimeException"/>
  39393. <exception name="TimeoutException" type="java.util.concurrent.TimeoutException"/>
  39394. <doc>
  39395. <![CDATA[Given a future, evaluate it.
  39396. <p>
  39397. Any exception generated in the future is
  39398. extracted and rethrown.
  39399. </p>
  39400. @param future future to evaluate
  39401. @param timeout timeout to wait
  39402. @param unit time unit.
  39403. @param <T> type of the result.
  39404. @return the result, if all went well.
  39405. @throws InterruptedIOException future was interrupted
  39406. @throws IOException if something went wrong
  39407. @throws RuntimeException any nested RTE thrown
  39408. @throws TimeoutException the future timed out.]]>
  39409. </doc>
  39410. </method>
  39411. <method name="raiseInnerCause" return="T"
  39412. abstract="false" native="false" synchronized="false"
  39413. static="true" final="false" visibility="public"
  39414. deprecated="not deprecated">
  39415. <param name="e" type="java.util.concurrent.ExecutionException"/>
  39416. <exception name="IOException" type="java.io.IOException"/>
  39417. <doc>
  39418. <![CDATA[From the inner cause of an execution exception, extract the inner cause
  39419. if it is an IOE or RTE.
  39420. This will always raise an exception, either the inner IOException,
  39421. an inner RuntimeException, or a new IOException wrapping the raised
  39422. exception.
  39423. @param e exception.
  39424. @param <T> type of return value.
  39425. @return nothing, ever.
  39426. @throws IOException either the inner IOException, or a wrapper around
  39427. any non-Runtime-Exception
  39428. @throws RuntimeException if that is the inner cause.]]>
  39429. </doc>
  39430. </method>
  39431. <method name="raiseInnerCause" return="T"
  39432. abstract="false" native="false" synchronized="false"
  39433. static="true" final="false" visibility="public"
  39434. deprecated="not deprecated">
  39435. <param name="e" type="java.util.concurrent.CompletionException"/>
  39436. <exception name="IOException" type="java.io.IOException"/>
  39437. <doc>
  39438. <![CDATA[Extract the cause of a completion failure and rethrow it if an IOE
  39439. or RTE.
  39440. @param e exception.
  39441. @param <T> type of return value.
  39442. @return nothing, ever.
  39443. @throws IOException either the inner IOException, or a wrapper around
  39444. any non-Runtime-Exception
  39445. @throws RuntimeException if that is the inner cause.]]>
  39446. </doc>
  39447. </method>
  39448. <method name="unwrapInnerException" return="java.io.IOException"
  39449. abstract="false" native="false" synchronized="false"
  39450. static="true" final="false" visibility="public"
  39451. deprecated="not deprecated">
  39452. <param name="e" type="java.lang.Throwable"/>
  39453. <doc>
  39454. <![CDATA[From the inner cause of an execution exception, extract the inner cause
  39455. to an IOException, raising RuntimeExceptions and Errors immediately.
  39456. <ol>
  39457. <li> If it is an IOE: Return.</li>
  39458. <li> If it is a {@link UncheckedIOException}: return the cause</li>
  39459. <li> Completion/Execution Exceptions: extract and repeat</li>
  39460. <li> If it is an RTE or Error: throw.</li>
  39461. <li> Any other type: wrap in an IOE</li>
  39462. </ol>
  39463. Recursively handles wrapped Execution and Completion Exceptions in
  39464. case something very complicated has happened.
  39465. @param e exception.
  39466. @return an IOException extracted or built from the cause.
  39467. @throws RuntimeException if that is the inner cause.
  39468. @throws Error if that is the inner cause.]]>
  39469. </doc>
  39470. </method>
  39471. <method name="propagateOptions" return="org.apache.hadoop.fs.FSBuilder"
  39472. abstract="false" native="false" synchronized="false"
  39473. static="true" final="false" visibility="public"
  39474. deprecated="not deprecated">
  39475. <param name="builder" type="org.apache.hadoop.fs.FSBuilder"/>
  39476. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39477. <param name="optionalPrefix" type="java.lang.String"/>
  39478. <param name="mandatoryPrefix" type="java.lang.String"/>
  39479. <doc>
  39480. <![CDATA[Propagate options to any builder, converting everything with the
  39481. prefix to an option where, if there were 2+ dot-separated elements,
  39482. it is converted to a schema.
  39483. See {@link #propagateOptions(FSBuilder, Configuration, String, boolean)}.
  39484. @param builder builder to modify
  39485. @param conf configuration to read
  39486. @param optionalPrefix prefix for optional settings
  39487. @param mandatoryPrefix prefix for mandatory settings
  39488. @param <T> type of result
  39489. @param <U> type of builder
  39490. @return the builder passed in.]]>
  39491. </doc>
  39492. </method>
  39493. <method name="propagateOptions"
  39494. abstract="false" native="false" synchronized="false"
  39495. static="true" final="false" visibility="public"
  39496. deprecated="not deprecated">
  39497. <param name="builder" type="org.apache.hadoop.fs.FSBuilder"/>
  39498. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39499. <param name="prefix" type="java.lang.String"/>
  39500. <param name="mandatory" type="boolean"/>
  39501. <doc>
  39502. <![CDATA[Propagate options to any builder, converting everything with the
  39503. prefix to an option where, if there were 2+ dot-separated elements,
  39504. it is converted to a schema.
  39505. <pre>
  39506. fs.example.s3a.option becomes "s3a.option"
  39507. fs.example.fs.io.policy becomes "fs.io.policy"
  39508. fs.example.something becomes "something"
  39509. </pre>
  39510. @param builder builder to modify
  39511. @param conf configuration to read
  39512. @param prefix prefix to scan/strip
  39513. @param mandatory are the options to be mandatory or optional?]]>
  39514. </doc>
  39515. </method>
  39516. <method name="eval" return="java.util.concurrent.CompletableFuture"
  39517. abstract="false" native="false" synchronized="false"
  39518. static="true" final="false" visibility="public"
  39519. deprecated="not deprecated">
  39520. <param name="callable" type="org.apache.hadoop.util.functional.CallableRaisingIOE"/>
  39521. <doc>
  39522. <![CDATA[Evaluate a CallableRaisingIOE in the current thread,
  39523. converting IOEs to RTEs and propagating.
  39524. @param callable callable to invoke
  39525. @param <T> Return type.
  39526. @return the evaluated result.
  39527. @throws UnsupportedOperationException fail fast if unsupported
  39528. @throws IllegalArgumentException invalid argument]]>
  39529. </doc>
  39530. </method>
  39531. <doc>
  39532. <![CDATA[Future IO Helper methods.
  39533. <p>
  39534. Contains methods promoted from
  39535. {@link org.apache.hadoop.fs.impl.FutureIOSupport} because they
  39536. are a key part of integrating async IO in application code.
  39537. </p>
  39538. <p>
  39539. One key feature is that the {@link #awaitFuture(Future)} and
  39540. {@link #awaitFuture(Future, long, TimeUnit)} calls will
  39541. extract and rethrow exceptions raised in the future's execution,
  39542. including extracting the inner IOException of any
  39543. {@code UncheckedIOException} raised in the future.
  39544. This makes it somewhat easier to execute IOException-raising
  39545. code inside futures.
  39546. </p>]]>
  39547. </doc>
  39548. </class>
  39549. <!-- end class org.apache.hadoop.util.functional.FutureIO -->
  39550. <!-- start class org.apache.hadoop.util.functional.RemoteIterators -->
  39551. <class name="RemoteIterators" extends="java.lang.Object"
  39552. abstract="false"
  39553. static="false" final="true" visibility="public"
  39554. deprecated="not deprecated">
  39555. <method name="remoteIteratorFromSingleton" return="org.apache.hadoop.fs.RemoteIterator"
  39556. abstract="false" native="false" synchronized="false"
  39557. static="true" final="false" visibility="public"
  39558. deprecated="not deprecated">
  39559. <param name="singleton" type="T"/>
  39560. <doc>
  39561. <![CDATA[Create an iterator from a singleton.
  39562. @param singleton instance
  39563. @param <T> type
  39564. @return a remote iterator]]>
  39565. </doc>
  39566. </method>
  39567. <method name="remoteIteratorFromIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39568. abstract="false" native="false" synchronized="false"
  39569. static="true" final="false" visibility="public"
  39570. deprecated="not deprecated">
  39571. <param name="iterator" type="java.util.Iterator"/>
  39572. <doc>
  39573. <![CDATA[Create a remote iterator from a java.util.Iterator.
  39574. @param <T> type
  39575. @param iterator iterator.
  39576. @return a remote iterator]]>
  39577. </doc>
  39578. </method>
  39579. <method name="remoteIteratorFromIterable" return="org.apache.hadoop.fs.RemoteIterator"
  39580. abstract="false" native="false" synchronized="false"
  39581. static="true" final="false" visibility="public"
  39582. deprecated="not deprecated">
  39583. <param name="iterable" type="java.lang.Iterable"/>
  39584. <doc>
  39585. <![CDATA[Create a remote iterator from a java.util.Iterable -e.g. a list
  39586. or other collection.
  39587. @param <T> type
  39588. @param iterable iterable.
  39589. @return a remote iterator]]>
  39590. </doc>
  39591. </method>
  39592. <method name="remoteIteratorFromArray" return="org.apache.hadoop.fs.RemoteIterator"
  39593. abstract="false" native="false" synchronized="false"
  39594. static="true" final="false" visibility="public"
  39595. deprecated="not deprecated">
  39596. <param name="array" type="T[]"/>
  39597. <doc>
  39598. <![CDATA[Create a remote iterator from an array.
  39599. @param <T> type
  39600. @param array array.
  39601. @return a remote iterator]]>
  39602. </doc>
  39603. </method>
  39604. <method name="mappingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39605. abstract="false" native="false" synchronized="false"
  39606. static="true" final="false" visibility="public"
  39607. deprecated="not deprecated">
  39608. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39609. <param name="mapper" type="org.apache.hadoop.util.functional.FunctionRaisingIOE"/>
  39610. <doc>
  39611. <![CDATA[Create an iterator from an iterator and a transformation function.
  39612. @param <S> source type
  39613. @param <T> result type
  39614. @param iterator source
  39615. @param mapper transformation
  39616. @return a remote iterator]]>
  39617. </doc>
  39618. </method>
  39619. <method name="typeCastingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39620. abstract="false" native="false" synchronized="false"
  39621. static="true" final="false" visibility="public"
  39622. deprecated="not deprecated">
  39623. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39624. <doc>
  39625. <![CDATA[Create a RemoteIterator from a RemoteIterator, casting the
  39626. type in the process. This is to help with filesystem API
  39627. calls where overloading causes confusion (e.g. listStatusIterator())
  39628. @param <S> source type
  39629. @param <T> result type
  39630. @param iterator source
  39631. @return a remote iterator]]>
  39632. </doc>
  39633. </method>
  39634. <method name="filteringRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39635. abstract="false" native="false" synchronized="false"
  39636. static="true" final="false" visibility="public"
  39637. deprecated="not deprecated">
  39638. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39639. <param name="filter" type="org.apache.hadoop.util.functional.FunctionRaisingIOE"/>
  39640. <doc>
  39641. <![CDATA[Create a RemoteIterator from a RemoteIterator and a filter
  39642. function which returns true for every element to be passed
  39643. through.
  39644. <p>
  39645. Elements are filtered in the hasNext() method; if not used
  39646. the filtering will be done on demand in the {@code next()}
  39647. call.
  39648. </p>
  39649. @param <S> type
  39650. @param iterator source
  39651. @param filter filter
  39652. @return a remote iterator]]>
  39653. </doc>
  39654. </method>
  39655. <method name="closingRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39656. abstract="false" native="false" synchronized="false"
  39657. static="true" final="false" visibility="public"
  39658. deprecated="not deprecated">
  39659. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39660. <param name="toClose" type="java.io.Closeable"/>
  39661. <doc>
  39662. <![CDATA[This adds an extra close operation alongside the passthrough
  39663. to any Closeable.close() method supported by the source iterator.
  39664. @param iterator source
  39665. @param toClose extra object to close.
  39666. @param <S> source type.
  39667. @return a new iterator]]>
  39668. </doc>
  39669. </method>
  39670. <method name="haltableRemoteIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39671. abstract="false" native="false" synchronized="false"
  39672. static="true" final="false" visibility="public"
  39673. deprecated="not deprecated">
  39674. <param name="iterator" type="org.apache.hadoop.fs.RemoteIterator"/>
  39675. <param name="continueWork" type="org.apache.hadoop.util.functional.CallableRaisingIOE"/>
  39676. <doc>
  39677. <![CDATA[Wrap an iterator with one which adds a continuation probe.
  39678. This allows work to exit fast without complicated breakout logic
  39679. @param iterator source
  39680. @param continueWork predicate which will trigger a fast halt if it returns false.
  39681. @param <S> source type.
  39682. @return a new iterator]]>
  39683. </doc>
  39684. </method>
  39685. <method name="rangeExcludingIterator" return="org.apache.hadoop.fs.RemoteIterator"
  39686. abstract="false" native="false" synchronized="false"
  39687. static="true" final="false" visibility="public"
  39688. deprecated="not deprecated">
  39689. <param name="start" type="long"/>
  39690. <param name="excludedFinish" type="long"/>
  39691. <doc>
  39692. <![CDATA[A remote iterator which simply counts up, stopping once the
  39693. value is greater than the value of {@code excludedFinish}.
  39694. This is primarily for tests or when submitting work into a TaskPool.
  39695. equivalent to
  39696. <pre>
  39697. for(long l = start, l &lt; excludedFinish; l++) yield l;
  39698. </pre>
  39699. @param start start value
  39700. @param excludedFinish excluded finish
  39701. @return an iterator which returns longs from [start, finish)]]>
  39702. </doc>
  39703. </method>
  39704. <method name="toList" return="java.util.List"
  39705. abstract="false" native="false" synchronized="false"
  39706. static="true" final="false" visibility="public"
  39707. deprecated="not deprecated">
  39708. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39709. <exception name="IOException" type="java.io.IOException"/>
  39710. <doc>
  39711. <![CDATA[Build a list from a RemoteIterator.
  39712. @param source source iterator
  39713. @param <T> type
  39714. @return a list of the values.
  39715. @throws IOException if the source RemoteIterator raises it.]]>
  39716. </doc>
  39717. </method>
  39718. <method name="toArray" return="T[]"
  39719. abstract="false" native="false" synchronized="false"
  39720. static="true" final="false" visibility="public"
  39721. deprecated="not deprecated">
  39722. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39723. <param name="a" type="T[]"/>
  39724. <exception name="IOException" type="java.io.IOException"/>
  39725. <doc>
  39726. <![CDATA[Build an array from a RemoteIterator.
  39727. @param source source iterator
  39728. @param a destination array; if too small a new array
  39729. of the same type is created
  39730. @param <T> type
  39731. @return an array of the values.
  39732. @throws IOException if the source RemoteIterator raises it.]]>
  39733. </doc>
  39734. </method>
  39735. <method name="foreach" return="long"
  39736. abstract="false" native="false" synchronized="false"
  39737. static="true" final="false" visibility="public"
  39738. deprecated="not deprecated">
  39739. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39740. <param name="consumer" type="org.apache.hadoop.util.functional.ConsumerRaisingIOE"/>
  39741. <exception name="IOException" type="java.io.IOException"/>
  39742. <doc>
  39743. <![CDATA[Apply an operation to all values of a RemoteIterator.
  39744. If the iterator is an IOStatisticsSource returning a non-null
  39745. set of statistics, <i>and</i> this classes log is set to DEBUG,
  39746. then the statistics of the operation are evaluated and logged at
  39747. debug.
  39748. <p>
  39749. The number of entries processed is returned, as it is useful to
  39750. know this, especially during tests or when reporting values
  39751. to users.
  39752. </p>
  39753. This does not close the iterator afterwards.
  39754. @param source iterator source
  39755. @param consumer consumer of the values.
  39756. @return the number of elements processed
  39757. @param <T> type of source
  39758. @throws IOException if the source RemoteIterator or the consumer raise one.]]>
  39759. </doc>
  39760. </method>
  39761. <method name="cleanupRemoteIterator"
  39762. abstract="false" native="false" synchronized="false"
  39763. static="true" final="false" visibility="public"
  39764. deprecated="not deprecated">
  39765. <param name="source" type="org.apache.hadoop.fs.RemoteIterator"/>
  39766. <doc>
  39767. <![CDATA[Clean up after an iteration.
  39768. If the log is at debug, calculate and log the IOStatistics.
  39769. If the iterator is closeable, cast and then cleanup the iterator
  39770. @param source iterator source
  39771. @param <T> type of source]]>
  39772. </doc>
  39773. </method>
  39774. <doc>
  39775. <![CDATA[A set of remote iterators supporting transformation and filtering,
  39776. with IOStatisticsSource passthrough, and of conversions of
  39777. the iterators to lists/arrays and of performing actions
  39778. on the values.
  39779. <p>
  39780. This aims to make it straightforward to use lambda-expressions to
  39781. transform the results of an iterator, without losing the statistics
  39782. in the process, and to chain the operations together.
  39783. </p>
  39784. The closeable operation will be passed through RemoteIterators which
  39785. wrap other RemoteIterators. This is to support any iterator which
  39786. can be closed to release held connections, file handles etc.
  39787. Unless client code is written to assume that RemoteIterator instances
  39788. may be closed, this is not likely to be broadly used. It is added
  39789. to make it possible to adopt this feature in a managed way.
  39790. <p>
  39791. One notable feature is that the
  39792. {@link #foreach(RemoteIterator, ConsumerRaisingIOE)} method will
  39793. LOG at debug any IOStatistics provided by the iterator, if such
  39794. statistics are provided. There's no attempt at retrieval and logging
  39795. if the LOG is not set to debug, so it is a zero cost feature unless
  39796. the logger {@code org.apache.hadoop.fs.functional.RemoteIterators}
  39797. is at DEBUG.
  39798. </p>
  39799. Based on the S3A Listing code, and some some work on moving other code
  39800. to using iterative listings so as to pick up the statistics.]]>
  39801. </doc>
  39802. </class>
  39803. <!-- end class org.apache.hadoop.util.functional.RemoteIterators -->
  39804. </package>
  39805. <package name="org.apache.hadoop.util.hash">
  39806. </package>
  39807. </api>