Apache_Hadoop_Common_2.8.2.xml 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218
  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 Thu Oct 19 21:37:27 UTC 2017 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 2.8.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/build/source/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /build/source/hadoop-common-project/hadoop-common/target/classes:/build/source/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-2.8.2.jar:/usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar:/maven/com/google/guava/guava/11.0.2/guava-11.0.2.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/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/maven/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/maven/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar:/maven/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/maven/commons-io/commons-io/2.4/commons-io-2.4.jar:/maven/commons-net/commons-net/3.1/commons-net-3.1.jar:/maven/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/maven/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/maven/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/maven/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/maven/org/mortbay/jetty/jetty-sslengine/6.1.26/jetty-sslengine-6.1.26.jar:/maven/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/maven/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/maven/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/maven/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/maven/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/maven/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/maven/javax/activation/activation/1.1/activation-1.1.jar:/maven/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/maven/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/maven/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/maven/asm/asm/3.2/asm-3.2.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/log4j/log4j/1.2.17/log4j-1.2.17.jar:/maven/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/maven/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/maven/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/maven/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/maven/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/maven/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/maven/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/maven/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar:/maven/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/maven/org/apache/avro/avro/1.7.4/avro-1.7.4.jar:/maven/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/maven/org/xerial/snappy/snappy-java/1.0.4.1/snappy-java-1.0.4.1.jar:/maven/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/maven/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/maven/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/maven/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-2.8.2.jar:/maven/com/nimbusds/nimbus-jose-jwt/3.9/nimbus-jose-jwt-3.9.jar:/maven/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar:/maven/net/minidev/json-smart/1.1.1/json-smart-1.1.1.jar:/maven/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/maven/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/maven/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/maven/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/maven/org/apache/curator/curator-framework/2.7.1/curator-framework-2.7.1.jar:/maven/org/apache/directory/api/api-i18n/1.0.0-M20/api-i18n-1.0.0-M20.jar:/maven/org/apache/directory/api/api-ldap-model/1.0.0-M20/api-ldap-model-1.0.0-M20.jar:/maven/org/apache/mina/mina-core/2.0.0-M5/mina-core-2.0.0-M5.jar:/maven/net/sf/ehcache/ehcache-core/2.4.4/ehcache-core-2.4.4.jar:/maven/antlr/antlr/2.7.7/antlr-2.7.7.jar:/maven/org/apache/directory/api/api-asn1-ber/1.0.0-M20/api-asn1-ber-1.0.0-M20.jar:/maven/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar:/maven/org/apache/curator/curator-client/2.7.1/curator-client-2.7.1.jar:/maven/org/apache/curator/curator-recipes/2.7.1/curator-recipes-2.7.1.jar:/maven/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/maven/org/apache/htrace/htrace-core4/4.0.1-incubating/htrace-core4-4.0.1-incubating.jar:/maven/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/maven/io/netty/netty/3.6.2.Final/netty-3.6.2.Final.jar:/maven/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/maven/org/tukaani/xz/1.0/xz-1.0.jar -sourcepath /build/source/hadoop-common-project/hadoop-common/src/main/java -apidir /build/source/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname Apache Hadoop Common 2.8.2 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopIllegalArgumentException -->
  13. <class name="HadoopIllegalArgumentException" extends="java.lang.IllegalArgumentException"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="HadoopIllegalArgumentException" type="java.lang.String"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. <doc>
  21. <![CDATA[Constructs exception with the specified detail message.
  22. @param message detailed message.]]>
  23. </doc>
  24. </constructor>
  25. <doc>
  26. <![CDATA[Indicates that a method has been passed illegal or invalid argument. This
  27. exception is thrown instead of IllegalArgumentException to differentiate the
  28. exception thrown in Hadoop implementation from the one thrown in JDK.]]>
  29. </doc>
  30. </class>
  31. <!-- end class org.apache.hadoop.HadoopIllegalArgumentException -->
  32. </package>
  33. <package name="org.apache.hadoop.conf">
  34. <!-- start interface org.apache.hadoop.conf.Configurable -->
  35. <interface name="Configurable" abstract="true"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <method name="setConf"
  39. abstract="false" native="false" synchronized="false"
  40. static="false" final="false" visibility="public"
  41. deprecated="not deprecated">
  42. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43. <doc>
  44. <![CDATA[Set the configuration to be used by this object.]]>
  45. </doc>
  46. </method>
  47. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  48. abstract="false" native="false" synchronized="false"
  49. static="false" final="false" visibility="public"
  50. deprecated="not deprecated">
  51. <doc>
  52. <![CDATA[Return the configuration used by this object.]]>
  53. </doc>
  54. </method>
  55. <doc>
  56. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  57. </doc>
  58. </interface>
  59. <!-- end interface org.apache.hadoop.conf.Configurable -->
  60. <!-- start class org.apache.hadoop.conf.Configuration -->
  61. <class name="Configuration" extends="java.lang.Object"
  62. abstract="false"
  63. static="false" final="false" visibility="public"
  64. deprecated="not deprecated">
  65. <implements name="java.lang.Iterable"/>
  66. <implements name="org.apache.hadoop.io.Writable"/>
  67. <constructor name="Configuration"
  68. static="false" final="false" visibility="public"
  69. deprecated="not deprecated">
  70. <doc>
  71. <![CDATA[A new configuration.]]>
  72. </doc>
  73. </constructor>
  74. <constructor name="Configuration" type="boolean"
  75. static="false" final="false" visibility="public"
  76. deprecated="not deprecated">
  77. <doc>
  78. <![CDATA[A new configuration where the behavior of reading from the default
  79. resources can be turned off.
  80. If the parameter {@code loadDefaults} is false, the new instance
  81. will not load resources from the default files.
  82. @param loadDefaults specifies whether to load from the default files]]>
  83. </doc>
  84. </constructor>
  85. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <doc>
  89. <![CDATA[A new configuration with the same settings cloned from another.
  90. @param other the configuration from which to clone settings.]]>
  91. </doc>
  92. </constructor>
  93. <method name="addDeprecations"
  94. abstract="false" native="false" synchronized="false"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <param name="deltas" type="org.apache.hadoop.conf.Configuration.DeprecationDelta[]"/>
  98. <doc>
  99. <![CDATA[Adds a set of deprecated keys to the global deprecations.
  100. This method is lockless. It works by means of creating a new
  101. DeprecationContext based on the old one, and then atomically swapping in
  102. the new context. If someone else updated the context in between us reading
  103. the old context and swapping in the new one, we try again until we win the
  104. race.
  105. @param deltas The deprecations to add.]]>
  106. </doc>
  107. </method>
  108. <method name="addDeprecation"
  109. abstract="false" native="false" synchronized="false"
  110. static="true" final="false" visibility="public"
  111. deprecated="use {@link #addDeprecation(String key, String newKey,
  112. String customMessage)} instead">
  113. <param name="key" type="java.lang.String"/>
  114. <param name="newKeys" type="java.lang.String[]"/>
  115. <param name="customMessage" type="java.lang.String"/>
  116. <doc>
  117. <![CDATA[Adds the deprecated key to the global deprecation map.
  118. It does not override any existing entries in the deprecation map.
  119. This is to be used only by the developers in order to add deprecation of
  120. keys, and attempts to call this method after loading resources once,
  121. would lead to <tt>UnsupportedOperationException</tt>
  122. If a key is deprecated in favor of multiple keys, they are all treated as
  123. aliases of each other, and setting any one of them resets all the others
  124. to the new value.
  125. If you have multiple deprecation entries to add, it is more efficient to
  126. use #addDeprecations(DeprecationDelta[] deltas) instead.
  127. @param key
  128. @param newKeys
  129. @param customMessage
  130. @deprecated use {@link #addDeprecation(String key, String newKey,
  131. String customMessage)} instead]]>
  132. </doc>
  133. </method>
  134. <method name="addDeprecation"
  135. abstract="false" native="false" synchronized="false"
  136. static="true" final="false" visibility="public"
  137. deprecated="not deprecated">
  138. <param name="key" type="java.lang.String"/>
  139. <param name="newKey" type="java.lang.String"/>
  140. <param name="customMessage" type="java.lang.String"/>
  141. <doc>
  142. <![CDATA[Adds the deprecated key to the global deprecation map.
  143. It does not override any existing entries in the deprecation map.
  144. This is to be used only by the developers in order to add deprecation of
  145. keys, and attempts to call this method after loading resources once,
  146. would lead to <tt>UnsupportedOperationException</tt>
  147. If you have multiple deprecation entries to add, it is more efficient to
  148. use #addDeprecations(DeprecationDelta[] deltas) instead.
  149. @param key
  150. @param newKey
  151. @param customMessage]]>
  152. </doc>
  153. </method>
  154. <method name="addDeprecation"
  155. abstract="false" native="false" synchronized="false"
  156. static="true" final="false" visibility="public"
  157. deprecated="use {@link #addDeprecation(String key, String newKey)} instead">
  158. <param name="key" type="java.lang.String"/>
  159. <param name="newKeys" type="java.lang.String[]"/>
  160. <doc>
  161. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  162. message is provided.
  163. It does not override any existing entries in the deprecation map.
  164. This is to be used only by the developers in order to add deprecation of
  165. keys, and attempts to call this method after loading resources once,
  166. would lead to <tt>UnsupportedOperationException</tt>
  167. If a key is deprecated in favor of multiple keys, they are all treated as
  168. aliases of each other, and setting any one of them resets all the others
  169. to the new value.
  170. If you have multiple deprecation entries to add, it is more efficient to
  171. use #addDeprecations(DeprecationDelta[] deltas) instead.
  172. @param key Key that is to be deprecated
  173. @param newKeys list of keys that take up the values of deprecated key
  174. @deprecated use {@link #addDeprecation(String key, String newKey)} instead]]>
  175. </doc>
  176. </method>
  177. <method name="addDeprecation"
  178. abstract="false" native="false" synchronized="false"
  179. static="true" final="false" visibility="public"
  180. deprecated="not deprecated">
  181. <param name="key" type="java.lang.String"/>
  182. <param name="newKey" type="java.lang.String"/>
  183. <doc>
  184. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  185. message is provided.
  186. It does not override any existing entries in the deprecation map.
  187. This is to be used only by the developers in order to add deprecation of
  188. keys, and attempts to call this method after loading resources once,
  189. would lead to <tt>UnsupportedOperationException</tt>
  190. If you have multiple deprecation entries to add, it is more efficient to
  191. use #addDeprecations(DeprecationDelta[] deltas) instead.
  192. @param key Key that is to be deprecated
  193. @param newKey key that takes up the value of deprecated key]]>
  194. </doc>
  195. </method>
  196. <method name="isDeprecated" return="boolean"
  197. abstract="false" native="false" synchronized="false"
  198. static="true" final="false" visibility="public"
  199. deprecated="not deprecated">
  200. <param name="key" type="java.lang.String"/>
  201. <doc>
  202. <![CDATA[checks whether the given <code>key</code> is deprecated.
  203. @param key the parameter which is to be checked for deprecation
  204. @return <code>true</code> if the key is deprecated and
  205. <code>false</code> otherwise.]]>
  206. </doc>
  207. </method>
  208. <method name="setDeprecatedProperties"
  209. abstract="false" native="false" synchronized="false"
  210. static="false" final="false" visibility="public"
  211. deprecated="not deprecated">
  212. <doc>
  213. <![CDATA[Sets all deprecated properties that are not currently set but have a
  214. corresponding new property that is set. Useful for iterating the
  215. properties when all deprecated properties for currently set properties
  216. need to be present.]]>
  217. </doc>
  218. </method>
  219. <method name="reloadExistingConfigurations"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <doc>
  224. <![CDATA[Reload existing configuration instances.]]>
  225. </doc>
  226. </method>
  227. <method name="addDefaultResource"
  228. abstract="false" native="false" synchronized="true"
  229. static="true" final="false" visibility="public"
  230. deprecated="not deprecated">
  231. <param name="name" type="java.lang.String"/>
  232. <doc>
  233. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  234. added.
  235. @param name file name. File should be present in the classpath.]]>
  236. </doc>
  237. </method>
  238. <method name="addResource"
  239. abstract="false" native="false" synchronized="false"
  240. static="false" final="false" visibility="public"
  241. deprecated="not deprecated">
  242. <param name="name" type="java.lang.String"/>
  243. <doc>
  244. <![CDATA[Add a configuration resource.
  245. The properties of this resource will override properties of previously
  246. added resources, unless they were marked <a href="#Final">final</a>.
  247. @param name resource to be added, the classpath is examined for a file
  248. with that name.]]>
  249. </doc>
  250. </method>
  251. <method name="addResource"
  252. abstract="false" native="false" synchronized="false"
  253. static="false" final="false" visibility="public"
  254. deprecated="not deprecated">
  255. <param name="url" type="java.net.URL"/>
  256. <doc>
  257. <![CDATA[Add a configuration resource.
  258. The properties of this resource will override properties of previously
  259. added resources, unless they were marked <a href="#Final">final</a>.
  260. @param url url of the resource to be added, the local filesystem is
  261. examined directly to find the resource, without referring to
  262. the classpath.]]>
  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="file" type="org.apache.hadoop.fs.Path"/>
  270. <doc>
  271. <![CDATA[Add a configuration resource.
  272. The properties of this resource will override properties of previously
  273. added resources, unless they were marked <a href="#Final">final</a>.
  274. @param file file-path of resource to be added, the local filesystem is
  275. examined directly to find the resource, without referring to
  276. the classpath.]]>
  277. </doc>
  278. </method>
  279. <method name="addResource"
  280. abstract="false" native="false" synchronized="false"
  281. static="false" final="false" visibility="public"
  282. deprecated="not deprecated">
  283. <param name="in" type="java.io.InputStream"/>
  284. <doc>
  285. <![CDATA[Add a configuration resource.
  286. The properties of this resource will override properties of previously
  287. added resources, unless they were marked <a href="#Final">final</a>.
  288. WARNING: The contents of the InputStream will be cached, by this method.
  289. So use this sparingly because it does increase the memory consumption.
  290. @param in InputStream to deserialize the object from. In will be read from
  291. when a get or set is called next. After it is read the stream will be
  292. closed.]]>
  293. </doc>
  294. </method>
  295. <method name="addResource"
  296. abstract="false" native="false" synchronized="false"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <param name="in" type="java.io.InputStream"/>
  300. <param name="name" type="java.lang.String"/>
  301. <doc>
  302. <![CDATA[Add a configuration resource.
  303. The properties of this resource will override properties of previously
  304. added resources, unless they were marked <a href="#Final">final</a>.
  305. @param in InputStream to deserialize the object from.
  306. @param name the name of the resource because InputStream.toString is not
  307. very descriptive some times.]]>
  308. </doc>
  309. </method>
  310. <method name="addResource"
  311. abstract="false" native="false" synchronized="false"
  312. static="false" final="false" visibility="public"
  313. deprecated="not deprecated">
  314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  315. <doc>
  316. <![CDATA[Add a configuration resource.
  317. The properties of this resource will override properties of previously
  318. added resources, unless they were marked <a href="#Final">final</a>.
  319. @param conf Configuration object from which to load properties]]>
  320. </doc>
  321. </method>
  322. <method name="reloadConfiguration"
  323. abstract="false" native="false" synchronized="true"
  324. static="false" final="false" visibility="public"
  325. deprecated="not deprecated">
  326. <doc>
  327. <![CDATA[Reload configuration from previously added resources.
  328. This method will clear all the configuration read from the added
  329. resources, and final parameters. This will make the resources to
  330. be read again before accessing the values. Values that are added
  331. via set methods will overlay values read from the resources.]]>
  332. </doc>
  333. </method>
  334. <method name="get" return="java.lang.String"
  335. abstract="false" native="false" synchronized="false"
  336. static="false" final="false" visibility="public"
  337. deprecated="not deprecated">
  338. <param name="name" type="java.lang.String"/>
  339. <doc>
  340. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  341. no such property exists. If the key is deprecated, it returns the value of
  342. the first key which replaces the deprecated key and is not null.
  343. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  344. before being returned.
  345. @param name the property name, will be trimmed before get value.
  346. @return the value of the <code>name</code> or its replacing property,
  347. or null if no such property exists.]]>
  348. </doc>
  349. </method>
  350. <method name="setAllowNullValueProperties"
  351. abstract="false" native="false" synchronized="false"
  352. static="false" final="false" visibility="public"
  353. deprecated="not deprecated">
  354. <param name="val" type="boolean"/>
  355. <doc>
  356. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  357. for use during testing.
  358. @param val If true, will allow Configuration to store keys without values]]>
  359. </doc>
  360. </method>
  361. <method name="onlyKeyExists" return="boolean"
  362. abstract="false" native="false" synchronized="false"
  363. static="false" final="false" visibility="public"
  364. deprecated="not deprecated">
  365. <param name="name" type="java.lang.String"/>
  366. <doc>
  367. <![CDATA[Return existence of the <code>name</code> property, but only for
  368. names which have no valid value, usually non-existent or commented
  369. out in XML.
  370. @param name the property name
  371. @return true if the property <code>name</code> exists without value]]>
  372. </doc>
  373. </method>
  374. <method name="getTrimmed" return="java.lang.String"
  375. abstract="false" native="false" synchronized="false"
  376. static="false" final="false" visibility="public"
  377. deprecated="not deprecated">
  378. <param name="name" type="java.lang.String"/>
  379. <doc>
  380. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  381. <code>null</code> if no such property exists.
  382. If the key is deprecated, it returns the value of
  383. the first key which replaces the deprecated key and is not null
  384. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  385. before being returned.
  386. @param name the property name.
  387. @return the value of the <code>name</code> or its replacing property,
  388. or null if no such property exists.]]>
  389. </doc>
  390. </method>
  391. <method name="getTrimmed" return="java.lang.String"
  392. abstract="false" native="false" synchronized="false"
  393. static="false" final="false" visibility="public"
  394. deprecated="not deprecated">
  395. <param name="name" type="java.lang.String"/>
  396. <param name="defaultValue" type="java.lang.String"/>
  397. <doc>
  398. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  399. <code>defaultValue</code> if no such property exists.
  400. See @{Configuration#getTrimmed} for more details.
  401. @param name the property name.
  402. @param defaultValue the property default value.
  403. @return the value of the <code>name</code> or defaultValue
  404. if it is not set.]]>
  405. </doc>
  406. </method>
  407. <method name="getRaw" return="java.lang.String"
  408. abstract="false" native="false" synchronized="false"
  409. static="false" final="false" visibility="public"
  410. deprecated="not deprecated">
  411. <param name="name" type="java.lang.String"/>
  412. <doc>
  413. <![CDATA[Get the value of the <code>name</code> property, without doing
  414. <a href="#VariableExpansion">variable expansion</a>.If the key is
  415. deprecated, it returns the value of the first key which replaces
  416. the deprecated key and is not null.
  417. @param name the property name.
  418. @return the value of the <code>name</code> property or
  419. its replacing property and null if no such property exists.]]>
  420. </doc>
  421. </method>
  422. <method name="set"
  423. abstract="false" native="false" synchronized="false"
  424. static="false" final="false" visibility="public"
  425. deprecated="not deprecated">
  426. <param name="name" type="java.lang.String"/>
  427. <param name="value" type="java.lang.String"/>
  428. <doc>
  429. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  430. <code>name</code> is deprecated or there is a deprecated name associated to it,
  431. it sets the value to both names. Name will be trimmed before put into
  432. configuration.
  433. @param name property name.
  434. @param value property value.]]>
  435. </doc>
  436. </method>
  437. <method name="set"
  438. abstract="false" native="false" synchronized="false"
  439. static="false" final="false" visibility="public"
  440. deprecated="not deprecated">
  441. <param name="name" type="java.lang.String"/>
  442. <param name="value" type="java.lang.String"/>
  443. <param name="source" type="java.lang.String"/>
  444. <doc>
  445. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  446. <code>name</code> is deprecated, it also sets the <code>value</code> to
  447. the keys that replace the deprecated key. Name will be trimmed before put
  448. into configuration.
  449. @param name property name.
  450. @param value property value.
  451. @param source the place that this configuration value came from
  452. (For debugging).
  453. @throws IllegalArgumentException when the value or name is null.]]>
  454. </doc>
  455. </method>
  456. <method name="unset"
  457. abstract="false" native="false" synchronized="true"
  458. static="false" final="false" visibility="public"
  459. deprecated="not deprecated">
  460. <param name="name" type="java.lang.String"/>
  461. <doc>
  462. <![CDATA[Unset a previously set property.]]>
  463. </doc>
  464. </method>
  465. <method name="setIfUnset"
  466. abstract="false" native="false" synchronized="true"
  467. static="false" final="false" visibility="public"
  468. deprecated="not deprecated">
  469. <param name="name" type="java.lang.String"/>
  470. <param name="value" type="java.lang.String"/>
  471. <doc>
  472. <![CDATA[Sets a property if it is currently unset.
  473. @param name the property name
  474. @param value the new value]]>
  475. </doc>
  476. </method>
  477. <method name="get" return="java.lang.String"
  478. abstract="false" native="false" synchronized="false"
  479. static="false" final="false" visibility="public"
  480. deprecated="not deprecated">
  481. <param name="name" type="java.lang.String"/>
  482. <param name="defaultValue" type="java.lang.String"/>
  483. <doc>
  484. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  485. it returns the value of the first key which replaces the deprecated key
  486. and is not null.
  487. If no such property exists,
  488. then <code>defaultValue</code> is returned.
  489. @param name property name, will be trimmed before get value.
  490. @param defaultValue default value.
  491. @return property value, or <code>defaultValue</code> if the property
  492. doesn't exist.]]>
  493. </doc>
  494. </method>
  495. <method name="getInt" return="int"
  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="defaultValue" type="int"/>
  501. <doc>
  502. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  503. If no such property exists, the provided default value is returned,
  504. or if the specified value is not a valid <code>int</code>,
  505. then an error is thrown.
  506. @param name property name.
  507. @param defaultValue default value.
  508. @throws NumberFormatException when the value is invalid
  509. @return property value as an <code>int</code>,
  510. or <code>defaultValue</code>.]]>
  511. </doc>
  512. </method>
  513. <method name="getInts" return="int[]"
  514. abstract="false" native="false" synchronized="false"
  515. static="false" final="false" visibility="public"
  516. deprecated="not deprecated">
  517. <param name="name" type="java.lang.String"/>
  518. <doc>
  519. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  520. <code>int</code> values.
  521. If no such property exists, an empty array is returned.
  522. @param name property name
  523. @return property value interpreted as an array of comma-delimited
  524. <code>int</code> values]]>
  525. </doc>
  526. </method>
  527. <method name="setInt"
  528. abstract="false" native="false" synchronized="false"
  529. static="false" final="false" visibility="public"
  530. deprecated="not deprecated">
  531. <param name="name" type="java.lang.String"/>
  532. <param name="value" type="int"/>
  533. <doc>
  534. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  535. @param name property name.
  536. @param value <code>int</code> value of the property.]]>
  537. </doc>
  538. </method>
  539. <method name="getLong" return="long"
  540. abstract="false" native="false" synchronized="false"
  541. static="false" final="false" visibility="public"
  542. deprecated="not deprecated">
  543. <param name="name" type="java.lang.String"/>
  544. <param name="defaultValue" type="long"/>
  545. <doc>
  546. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  547. If no such property exists, the provided default value is returned,
  548. or if the specified value is not a valid <code>long</code>,
  549. then an error is thrown.
  550. @param name property name.
  551. @param defaultValue default value.
  552. @throws NumberFormatException when the value is invalid
  553. @return property value as a <code>long</code>,
  554. or <code>defaultValue</code>.]]>
  555. </doc>
  556. </method>
  557. <method name="getLongBytes" return="long"
  558. abstract="false" native="false" synchronized="false"
  559. static="false" final="false" visibility="public"
  560. deprecated="not deprecated">
  561. <param name="name" type="java.lang.String"/>
  562. <param name="defaultValue" type="long"/>
  563. <doc>
  564. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  565. human readable format. If no such property exists, the provided default
  566. value is returned, or if the specified value is not a valid
  567. <code>long</code> or human readable format, then an error is thrown. You
  568. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  569. t(tera), p(peta), e(exa)
  570. @param name property name.
  571. @param defaultValue default value.
  572. @throws NumberFormatException when the value is invalid
  573. @return property value as a <code>long</code>,
  574. or <code>defaultValue</code>.]]>
  575. </doc>
  576. </method>
  577. <method name="setLong"
  578. abstract="false" native="false" synchronized="false"
  579. static="false" final="false" visibility="public"
  580. deprecated="not deprecated">
  581. <param name="name" type="java.lang.String"/>
  582. <param name="value" type="long"/>
  583. <doc>
  584. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  585. @param name property name.
  586. @param value <code>long</code> value of the property.]]>
  587. </doc>
  588. </method>
  589. <method name="getFloat" return="float"
  590. abstract="false" native="false" synchronized="false"
  591. static="false" final="false" visibility="public"
  592. deprecated="not deprecated">
  593. <param name="name" type="java.lang.String"/>
  594. <param name="defaultValue" type="float"/>
  595. <doc>
  596. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  597. If no such property exists, the provided default value is returned,
  598. or if the specified value is not a valid <code>float</code>,
  599. then an error is thrown.
  600. @param name property name.
  601. @param defaultValue default value.
  602. @throws NumberFormatException when the value is invalid
  603. @return property value as a <code>float</code>,
  604. or <code>defaultValue</code>.]]>
  605. </doc>
  606. </method>
  607. <method name="setFloat"
  608. abstract="false" native="false" synchronized="false"
  609. static="false" final="false" visibility="public"
  610. deprecated="not deprecated">
  611. <param name="name" type="java.lang.String"/>
  612. <param name="value" type="float"/>
  613. <doc>
  614. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  615. @param name property name.
  616. @param value property value.]]>
  617. </doc>
  618. </method>
  619. <method name="getDouble" return="double"
  620. abstract="false" native="false" synchronized="false"
  621. static="false" final="false" visibility="public"
  622. deprecated="not deprecated">
  623. <param name="name" type="java.lang.String"/>
  624. <param name="defaultValue" type="double"/>
  625. <doc>
  626. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  627. If no such property exists, the provided default value is returned,
  628. or if the specified value is not a valid <code>double</code>,
  629. then an error is thrown.
  630. @param name property name.
  631. @param defaultValue default value.
  632. @throws NumberFormatException when the value is invalid
  633. @return property value as a <code>double</code>,
  634. or <code>defaultValue</code>.]]>
  635. </doc>
  636. </method>
  637. <method name="setDouble"
  638. abstract="false" native="false" synchronized="false"
  639. static="false" final="false" visibility="public"
  640. deprecated="not deprecated">
  641. <param name="name" type="java.lang.String"/>
  642. <param name="value" type="double"/>
  643. <doc>
  644. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  645. @param name property name.
  646. @param value property value.]]>
  647. </doc>
  648. </method>
  649. <method name="getBoolean" return="boolean"
  650. abstract="false" native="false" synchronized="false"
  651. static="false" final="false" visibility="public"
  652. deprecated="not deprecated">
  653. <param name="name" type="java.lang.String"/>
  654. <param name="defaultValue" type="boolean"/>
  655. <doc>
  656. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  657. If no such property is specified, or if the specified value is not a valid
  658. <code>boolean</code>, then <code>defaultValue</code> is returned.
  659. @param name property name.
  660. @param defaultValue default value.
  661. @return property value as a <code>boolean</code>,
  662. or <code>defaultValue</code>.]]>
  663. </doc>
  664. </method>
  665. <method name="setBoolean"
  666. abstract="false" native="false" synchronized="false"
  667. static="false" final="false" visibility="public"
  668. deprecated="not deprecated">
  669. <param name="name" type="java.lang.String"/>
  670. <param name="value" type="boolean"/>
  671. <doc>
  672. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  673. @param name property name.
  674. @param value <code>boolean</code> value of the property.]]>
  675. </doc>
  676. </method>
  677. <method name="setBooleanIfUnset"
  678. abstract="false" native="false" synchronized="false"
  679. static="false" final="false" visibility="public"
  680. deprecated="not deprecated">
  681. <param name="name" type="java.lang.String"/>
  682. <param name="value" type="boolean"/>
  683. <doc>
  684. <![CDATA[Set the given property, if it is currently unset.
  685. @param name property name
  686. @param value new value]]>
  687. </doc>
  688. </method>
  689. <method name="setEnum"
  690. abstract="false" native="false" synchronized="false"
  691. static="false" final="false" visibility="public"
  692. deprecated="not deprecated">
  693. <param name="name" type="java.lang.String"/>
  694. <param name="value" type="T"/>
  695. <doc>
  696. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  697. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  698. @param name property name
  699. @param value new value]]>
  700. </doc>
  701. </method>
  702. <method name="getEnum" return="T"
  703. abstract="false" native="false" synchronized="false"
  704. static="false" final="false" visibility="public"
  705. deprecated="not deprecated">
  706. <param name="name" type="java.lang.String"/>
  707. <param name="defaultValue" type="T"/>
  708. <doc>
  709. <![CDATA[Return value matching this enumerated type.
  710. Note that the returned value is trimmed by this method.
  711. @param name Property name
  712. @param defaultValue Value returned if no mapping exists
  713. @throws IllegalArgumentException If mapping is illegal for the type
  714. provided]]>
  715. </doc>
  716. </method>
  717. <method name="setTimeDuration"
  718. abstract="false" native="false" synchronized="false"
  719. static="false" final="false" visibility="public"
  720. deprecated="not deprecated">
  721. <param name="name" type="java.lang.String"/>
  722. <param name="value" type="long"/>
  723. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  724. <doc>
  725. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  726. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  727. @param name Property name
  728. @param value Time duration
  729. @param unit Unit of time]]>
  730. </doc>
  731. </method>
  732. <method name="getTimeDuration" return="long"
  733. abstract="false" native="false" synchronized="false"
  734. static="false" final="false" visibility="public"
  735. deprecated="not deprecated">
  736. <param name="name" type="java.lang.String"/>
  737. <param name="defaultValue" type="long"/>
  738. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  739. <doc>
  740. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  741. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  742. (ms), seconds (s), minutes (m), hours (h), and days (d).
  743. @param name Property name
  744. @param defaultValue Value returned if no mapping exists.
  745. @param unit Unit to convert the stored property, if it exists.
  746. @throws NumberFormatException If the property stripped of its unit is not
  747. a number]]>
  748. </doc>
  749. </method>
  750. <method name="getTimeDurations" return="long[]"
  751. abstract="false" native="false" synchronized="false"
  752. static="false" final="false" visibility="public"
  753. deprecated="not deprecated">
  754. <param name="name" type="java.lang.String"/>
  755. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  756. </method>
  757. <method name="getPattern" return="java.util.regex.Pattern"
  758. abstract="false" native="false" synchronized="false"
  759. static="false" final="false" visibility="public"
  760. deprecated="not deprecated">
  761. <param name="name" type="java.lang.String"/>
  762. <param name="defaultValue" type="java.util.regex.Pattern"/>
  763. <doc>
  764. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  765. If no such property is specified, or if the specified value is not a valid
  766. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  767. Note that the returned value is NOT trimmed by this method.
  768. @param name property name
  769. @param defaultValue default value
  770. @return property value as a compiled Pattern, or defaultValue]]>
  771. </doc>
  772. </method>
  773. <method name="setPattern"
  774. abstract="false" native="false" synchronized="false"
  775. static="false" final="false" visibility="public"
  776. deprecated="not deprecated">
  777. <param name="name" type="java.lang.String"/>
  778. <param name="pattern" type="java.util.regex.Pattern"/>
  779. <doc>
  780. <![CDATA[Set the given property to <code>Pattern</code>.
  781. If the pattern is passed as null, sets the empty pattern which results in
  782. further calls to getPattern(...) returning the default value.
  783. @param name property name
  784. @param pattern new value]]>
  785. </doc>
  786. </method>
  787. <method name="getPropertySources" return="java.lang.String[]"
  788. abstract="false" native="false" synchronized="true"
  789. static="false" final="false" visibility="public"
  790. deprecated="not deprecated">
  791. <param name="name" type="java.lang.String"/>
  792. <doc>
  793. <![CDATA[Gets information about why a property was set. Typically this is the
  794. path to the resource objects (file, URL, etc.) the property came from, but
  795. it can also indicate that it was set programatically, or because of the
  796. command line.
  797. @param name - The property name to get the source of.
  798. @return null - If the property or its source wasn't found. Otherwise,
  799. returns a list of the sources of the resource. The older sources are
  800. the first ones in the list. So for example if a configuration is set from
  801. the command line, and then written out to a file that is read back in the
  802. first entry would indicate that it was set from the command line, while
  803. the second one would indicate the file that the new configuration was read
  804. in from.]]>
  805. </doc>
  806. </method>
  807. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  808. abstract="false" native="false" synchronized="false"
  809. static="false" final="false" visibility="public"
  810. deprecated="not deprecated">
  811. <param name="name" type="java.lang.String"/>
  812. <param name="defaultValue" type="java.lang.String"/>
  813. <doc>
  814. <![CDATA[Parse the given attribute as a set of integer ranges
  815. @param name the attribute name
  816. @param defaultValue the default value if it is not set
  817. @return a new set of ranges from the configured value]]>
  818. </doc>
  819. </method>
  820. <method name="getStringCollection" return="java.util.Collection"
  821. abstract="false" native="false" synchronized="false"
  822. static="false" final="false" visibility="public"
  823. deprecated="not deprecated">
  824. <param name="name" type="java.lang.String"/>
  825. <doc>
  826. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  827. a collection of <code>String</code>s.
  828. If no such property is specified then empty collection is returned.
  829. <p>
  830. This is an optimized version of {@link #getStrings(String)}
  831. @param name property name.
  832. @return property value as a collection of <code>String</code>s.]]>
  833. </doc>
  834. </method>
  835. <method name="getStrings" return="java.lang.String[]"
  836. abstract="false" native="false" synchronized="false"
  837. static="false" final="false" visibility="public"
  838. deprecated="not deprecated">
  839. <param name="name" type="java.lang.String"/>
  840. <doc>
  841. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  842. an array of <code>String</code>s.
  843. If no such property is specified then <code>null</code> is returned.
  844. @param name property name.
  845. @return property value as an array of <code>String</code>s,
  846. or <code>null</code>.]]>
  847. </doc>
  848. </method>
  849. <method name="getStrings" return="java.lang.String[]"
  850. abstract="false" native="false" synchronized="false"
  851. static="false" final="false" visibility="public"
  852. deprecated="not deprecated">
  853. <param name="name" type="java.lang.String"/>
  854. <param name="defaultValue" type="java.lang.String[]"/>
  855. <doc>
  856. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  857. an array of <code>String</code>s.
  858. If no such property is specified then default value is returned.
  859. @param name property name.
  860. @param defaultValue The default value
  861. @return property value as an array of <code>String</code>s,
  862. or default value.]]>
  863. </doc>
  864. </method>
  865. <method name="getTrimmedStringCollection" return="java.util.Collection"
  866. abstract="false" native="false" synchronized="false"
  867. static="false" final="false" visibility="public"
  868. deprecated="not deprecated">
  869. <param name="name" type="java.lang.String"/>
  870. <doc>
  871. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  872. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  873. If no such property is specified then empty <code>Collection</code> is returned.
  874. @param name property name.
  875. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  876. </doc>
  877. </method>
  878. <method name="getTrimmedStrings" return="java.lang.String[]"
  879. abstract="false" native="false" synchronized="false"
  880. static="false" final="false" visibility="public"
  881. deprecated="not deprecated">
  882. <param name="name" type="java.lang.String"/>
  883. <doc>
  884. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  885. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  886. If no such property is specified then an empty array is returned.
  887. @param name property name.
  888. @return property value as an array of trimmed <code>String</code>s,
  889. or empty array.]]>
  890. </doc>
  891. </method>
  892. <method name="getTrimmedStrings" return="java.lang.String[]"
  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="java.lang.String[]"/>
  898. <doc>
  899. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  900. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  901. If no such property is specified then default value is returned.
  902. @param name property name.
  903. @param defaultValue The default value
  904. @return property value as an array of trimmed <code>String</code>s,
  905. or default value.]]>
  906. </doc>
  907. </method>
  908. <method name="setStrings"
  909. abstract="false" native="false" synchronized="false"
  910. static="false" final="false" visibility="public"
  911. deprecated="not deprecated">
  912. <param name="name" type="java.lang.String"/>
  913. <param name="values" type="java.lang.String[]"/>
  914. <doc>
  915. <![CDATA[Set the array of string values for the <code>name</code> property as
  916. as comma delimited values.
  917. @param name property name.
  918. @param values The values]]>
  919. </doc>
  920. </method>
  921. <method name="getPassword" return="char[]"
  922. abstract="false" native="false" synchronized="false"
  923. static="false" final="false" visibility="public"
  924. deprecated="not deprecated">
  925. <param name="name" type="java.lang.String"/>
  926. <exception name="IOException" type="java.io.IOException"/>
  927. <doc>
  928. <![CDATA[Get the value for a known password configuration element.
  929. In order to enable the elimination of clear text passwords in config,
  930. this method attempts to resolve the property name as an alias through
  931. the CredentialProvider API and conditionally fallsback to config.
  932. @param name property name
  933. @return password]]>
  934. </doc>
  935. </method>
  936. <method name="getPasswordFromCredentialProviders" return="char[]"
  937. abstract="false" native="false" synchronized="false"
  938. static="false" final="false" visibility="protected"
  939. deprecated="not deprecated">
  940. <param name="name" type="java.lang.String"/>
  941. <exception name="IOException" type="java.io.IOException"/>
  942. <doc>
  943. <![CDATA[Try and resolve the provided element name as a credential provider
  944. alias.
  945. @param name alias of the provisioned credential
  946. @return password or null if not found
  947. @throws IOException]]>
  948. </doc>
  949. </method>
  950. <method name="getPasswordFromConfig" return="char[]"
  951. abstract="false" native="false" synchronized="false"
  952. static="false" final="false" visibility="protected"
  953. deprecated="not deprecated">
  954. <param name="name" type="java.lang.String"/>
  955. <doc>
  956. <![CDATA[Fallback to clear text passwords in configuration.
  957. @param name
  958. @return clear text password or null]]>
  959. </doc>
  960. </method>
  961. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  962. abstract="false" native="false" synchronized="false"
  963. static="false" final="false" visibility="public"
  964. deprecated="not deprecated">
  965. <param name="hostProperty" type="java.lang.String"/>
  966. <param name="addressProperty" type="java.lang.String"/>
  967. <param name="defaultAddressValue" type="java.lang.String"/>
  968. <param name="defaultPort" type="int"/>
  969. <doc>
  970. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  971. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  972. <code>null</code>, <code>addressProperty</code> will be used. This
  973. is useful for cases where we want to differentiate between host
  974. bind address and address clients should use to establish connection.
  975. @param hostProperty bind host property name.
  976. @param addressProperty address property name.
  977. @param defaultAddressValue the default value
  978. @param defaultPort the default port
  979. @return InetSocketAddress]]>
  980. </doc>
  981. </method>
  982. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  983. abstract="false" native="false" synchronized="false"
  984. static="false" final="false" visibility="public"
  985. deprecated="not deprecated">
  986. <param name="name" type="java.lang.String"/>
  987. <param name="defaultAddress" type="java.lang.String"/>
  988. <param name="defaultPort" type="int"/>
  989. <doc>
  990. <![CDATA[Get the socket address for <code>name</code> property as a
  991. <code>InetSocketAddress</code>.
  992. @param name property name.
  993. @param defaultAddress the default value
  994. @param defaultPort the default port
  995. @return InetSocketAddress]]>
  996. </doc>
  997. </method>
  998. <method name="setSocketAddr"
  999. abstract="false" native="false" synchronized="false"
  1000. static="false" final="false" visibility="public"
  1001. deprecated="not deprecated">
  1002. <param name="name" type="java.lang.String"/>
  1003. <param name="addr" type="java.net.InetSocketAddress"/>
  1004. <doc>
  1005. <![CDATA[Set the socket address for the <code>name</code> property as
  1006. a <code>host:port</code>.]]>
  1007. </doc>
  1008. </method>
  1009. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1010. abstract="false" native="false" synchronized="false"
  1011. static="false" final="false" visibility="public"
  1012. deprecated="not deprecated">
  1013. <param name="hostProperty" type="java.lang.String"/>
  1014. <param name="addressProperty" type="java.lang.String"/>
  1015. <param name="defaultAddressValue" type="java.lang.String"/>
  1016. <param name="addr" type="java.net.InetSocketAddress"/>
  1017. <doc>
  1018. <![CDATA[Set the socket address a client can use to connect for the
  1019. <code>name</code> property as a <code>host:port</code>. The wildcard
  1020. address is replaced with the local host's address. If the host and address
  1021. properties are configured the host component of the address will be combined
  1022. with the port component of the addr to generate the address. This is to allow
  1023. optional control over which host name is used in multi-home bind-host
  1024. cases where a host can have multiple names
  1025. @param hostProperty the bind-host configuration name
  1026. @param addressProperty the service address configuration name
  1027. @param defaultAddressValue the service default address configuration value
  1028. @param addr InetSocketAddress of the service listener
  1029. @return InetSocketAddress for clients to connect]]>
  1030. </doc>
  1031. </method>
  1032. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1033. abstract="false" native="false" synchronized="false"
  1034. static="false" final="false" visibility="public"
  1035. deprecated="not deprecated">
  1036. <param name="name" type="java.lang.String"/>
  1037. <param name="addr" type="java.net.InetSocketAddress"/>
  1038. <doc>
  1039. <![CDATA[Set the socket address a client can use to connect for the
  1040. <code>name</code> property as a <code>host:port</code>. The wildcard
  1041. address is replaced with the local host's address.
  1042. @param name property name.
  1043. @param addr InetSocketAddress of a listener to store in the given property
  1044. @return InetSocketAddress for clients to connect]]>
  1045. </doc>
  1046. </method>
  1047. <method name="getClassByName" return="java.lang.Class"
  1048. abstract="false" native="false" synchronized="false"
  1049. static="false" final="false" visibility="public"
  1050. deprecated="not deprecated">
  1051. <param name="name" type="java.lang.String"/>
  1052. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1053. <doc>
  1054. <![CDATA[Load a class by name.
  1055. @param name the class name.
  1056. @return the class object.
  1057. @throws ClassNotFoundException if the class is not found.]]>
  1058. </doc>
  1059. </method>
  1060. <method name="getClassByNameOrNull" return="java.lang.Class"
  1061. abstract="false" native="false" synchronized="false"
  1062. static="false" final="false" visibility="public"
  1063. deprecated="not deprecated">
  1064. <param name="name" type="java.lang.String"/>
  1065. <doc>
  1066. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1067. if it couldn't be loaded. This is to avoid the overhead of creating
  1068. an exception.
  1069. @param name the class name
  1070. @return the class object, or null if it could not be found.]]>
  1071. </doc>
  1072. </method>
  1073. <method name="getClasses" return="java.lang.Class[]"
  1074. abstract="false" native="false" synchronized="false"
  1075. static="false" final="false" visibility="public"
  1076. deprecated="not deprecated">
  1077. <param name="name" type="java.lang.String"/>
  1078. <param name="defaultValue" type="java.lang.Class[]"/>
  1079. <doc>
  1080. <![CDATA[Get the value of the <code>name</code> property
  1081. as an array of <code>Class</code>.
  1082. The value of the property specifies a list of comma separated class names.
  1083. If no such property is specified, then <code>defaultValue</code> is
  1084. returned.
  1085. @param name the property name.
  1086. @param defaultValue default value.
  1087. @return property value as a <code>Class[]</code>,
  1088. or <code>defaultValue</code>.]]>
  1089. </doc>
  1090. </method>
  1091. <method name="getClass" return="java.lang.Class"
  1092. abstract="false" native="false" synchronized="false"
  1093. static="false" final="false" visibility="public"
  1094. deprecated="not deprecated">
  1095. <param name="name" type="java.lang.String"/>
  1096. <param name="defaultValue" type="java.lang.Class"/>
  1097. <doc>
  1098. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1099. If no such property is specified, then <code>defaultValue</code> is
  1100. returned.
  1101. @param name the class name.
  1102. @param defaultValue default value.
  1103. @return property value as a <code>Class</code>,
  1104. or <code>defaultValue</code>.]]>
  1105. </doc>
  1106. </method>
  1107. <method name="getClass" return="java.lang.Class"
  1108. abstract="false" native="false" synchronized="false"
  1109. static="false" final="false" visibility="public"
  1110. deprecated="not deprecated">
  1111. <param name="name" type="java.lang.String"/>
  1112. <param name="defaultValue" type="java.lang.Class"/>
  1113. <param name="xface" type="java.lang.Class"/>
  1114. <doc>
  1115. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1116. implementing the interface specified by <code>xface</code>.
  1117. If no such property is specified, then <code>defaultValue</code> is
  1118. returned.
  1119. An exception is thrown if the returned class does not implement the named
  1120. interface.
  1121. @param name the class name.
  1122. @param defaultValue default value.
  1123. @param xface the interface implemented by the named class.
  1124. @return property value as a <code>Class</code>,
  1125. or <code>defaultValue</code>.]]>
  1126. </doc>
  1127. </method>
  1128. <method name="getInstances" return="java.util.List"
  1129. abstract="false" native="false" synchronized="false"
  1130. static="false" final="false" visibility="public"
  1131. deprecated="not deprecated">
  1132. <param name="name" type="java.lang.String"/>
  1133. <param name="xface" type="java.lang.Class"/>
  1134. <doc>
  1135. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1136. of objects implementing the interface specified by <code>xface</code>.
  1137. An exception is thrown if any of the classes does not exist, or if it does
  1138. not implement the named interface.
  1139. @param name the property name.
  1140. @param xface the interface implemented by the classes named by
  1141. <code>name</code>.
  1142. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1143. </doc>
  1144. </method>
  1145. <method name="setClass"
  1146. abstract="false" native="false" synchronized="false"
  1147. static="false" final="false" visibility="public"
  1148. deprecated="not deprecated">
  1149. <param name="name" type="java.lang.String"/>
  1150. <param name="theClass" type="java.lang.Class"/>
  1151. <param name="xface" type="java.lang.Class"/>
  1152. <doc>
  1153. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1154. <code>theClass</code> implementing the given interface <code>xface</code>.
  1155. An exception is thrown if <code>theClass</code> does not implement the
  1156. interface <code>xface</code>.
  1157. @param name property name.
  1158. @param theClass property value.
  1159. @param xface the interface implemented by the named class.]]>
  1160. </doc>
  1161. </method>
  1162. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1163. abstract="false" native="false" synchronized="false"
  1164. static="false" final="false" visibility="public"
  1165. deprecated="not deprecated">
  1166. <param name="dirsProp" type="java.lang.String"/>
  1167. <param name="path" type="java.lang.String"/>
  1168. <exception name="IOException" type="java.io.IOException"/>
  1169. <doc>
  1170. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1171. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1172. then one is chosen based on <i>path</i>'s hash code. If the selected
  1173. directory does not exist, an attempt is made to create it.
  1174. @param dirsProp directory in which to locate the file.
  1175. @param path file-path.
  1176. @return local file under the directory with the given path.]]>
  1177. </doc>
  1178. </method>
  1179. <method name="getFile" return="java.io.File"
  1180. abstract="false" native="false" synchronized="false"
  1181. static="false" final="false" visibility="public"
  1182. deprecated="not deprecated">
  1183. <param name="dirsProp" type="java.lang.String"/>
  1184. <param name="path" type="java.lang.String"/>
  1185. <exception name="IOException" type="java.io.IOException"/>
  1186. <doc>
  1187. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1188. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1189. then one is chosen based on <i>path</i>'s hash code. If the selected
  1190. directory does not exist, an attempt is made to create it.
  1191. @param dirsProp directory in which to locate the file.
  1192. @param path file-path.
  1193. @return local file under the directory with the given path.]]>
  1194. </doc>
  1195. </method>
  1196. <method name="getResource" return="java.net.URL"
  1197. abstract="false" native="false" synchronized="false"
  1198. static="false" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. <param name="name" type="java.lang.String"/>
  1201. <doc>
  1202. <![CDATA[Get the {@link URL} for the named resource.
  1203. @param name resource name.
  1204. @return the url for the named resource.]]>
  1205. </doc>
  1206. </method>
  1207. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1208. abstract="false" native="false" synchronized="false"
  1209. static="false" final="false" visibility="public"
  1210. deprecated="not deprecated">
  1211. <param name="name" type="java.lang.String"/>
  1212. <doc>
  1213. <![CDATA[Get an input stream attached to the configuration resource with the
  1214. given <code>name</code>.
  1215. @param name configuration resource name.
  1216. @return an input stream attached to the resource.]]>
  1217. </doc>
  1218. </method>
  1219. <method name="getConfResourceAsReader" return="java.io.Reader"
  1220. abstract="false" native="false" synchronized="false"
  1221. static="false" final="false" visibility="public"
  1222. deprecated="not deprecated">
  1223. <param name="name" type="java.lang.String"/>
  1224. <doc>
  1225. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1226. given <code>name</code>.
  1227. @param name configuration resource name.
  1228. @return a reader attached to the resource.]]>
  1229. </doc>
  1230. </method>
  1231. <method name="getFinalParameters" return="java.util.Set"
  1232. abstract="false" native="false" synchronized="false"
  1233. static="false" final="false" visibility="public"
  1234. deprecated="not deprecated">
  1235. <doc>
  1236. <![CDATA[Get the set of parameters marked final.
  1237. @return final parameter set.]]>
  1238. </doc>
  1239. </method>
  1240. <method name="getProps" return="java.util.Properties"
  1241. abstract="false" native="false" synchronized="true"
  1242. static="false" final="false" visibility="protected"
  1243. deprecated="not deprecated">
  1244. </method>
  1245. <method name="size" return="int"
  1246. abstract="false" native="false" synchronized="false"
  1247. static="false" final="false" visibility="public"
  1248. deprecated="not deprecated">
  1249. <doc>
  1250. <![CDATA[Return the number of keys in the configuration.
  1251. @return number of keys in the configuration.]]>
  1252. </doc>
  1253. </method>
  1254. <method name="clear"
  1255. abstract="false" native="false" synchronized="false"
  1256. static="false" final="false" visibility="public"
  1257. deprecated="not deprecated">
  1258. <doc>
  1259. <![CDATA[Clears all keys from the configuration.]]>
  1260. </doc>
  1261. </method>
  1262. <method name="iterator" return="java.util.Iterator"
  1263. abstract="false" native="false" synchronized="false"
  1264. static="false" final="false" visibility="public"
  1265. deprecated="not deprecated">
  1266. <doc>
  1267. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1268. key-value pairs in the configuration.
  1269. @return an iterator over the entries.]]>
  1270. </doc>
  1271. </method>
  1272. <method name="getPropsWithPrefix" return="java.util.Map"
  1273. abstract="false" native="false" synchronized="false"
  1274. static="false" final="false" visibility="public"
  1275. deprecated="not deprecated">
  1276. <param name="confPrefix" type="java.lang.String"/>
  1277. <doc>
  1278. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1279. start with the specified configuration prefix. Property names in the
  1280. mapping are trimmed to remove the configuration prefix.
  1281. @param confPrefix configuration prefix
  1282. @return mapping of configuration properties with prefix stripped]]>
  1283. </doc>
  1284. </method>
  1285. <method name="writeXml"
  1286. abstract="false" native="false" synchronized="false"
  1287. static="false" final="false" visibility="public"
  1288. deprecated="not deprecated">
  1289. <param name="out" type="java.io.OutputStream"/>
  1290. <exception name="IOException" type="java.io.IOException"/>
  1291. <doc>
  1292. <![CDATA[Write out the non-default properties in this configuration to the given
  1293. {@link OutputStream} using UTF-8 encoding.
  1294. @param out the output stream to write to.]]>
  1295. </doc>
  1296. </method>
  1297. <method name="writeXml"
  1298. abstract="false" native="false" synchronized="false"
  1299. static="false" final="false" visibility="public"
  1300. deprecated="not deprecated">
  1301. <param name="out" type="java.io.Writer"/>
  1302. <exception name="IOException" type="java.io.IOException"/>
  1303. <doc>
  1304. <![CDATA[Write out the non-default properties in this configuration to the given
  1305. {@link Writer}.
  1306. @param out the writer to write to.]]>
  1307. </doc>
  1308. </method>
  1309. <method name="dumpConfiguration"
  1310. abstract="false" native="false" synchronized="false"
  1311. static="true" final="false" visibility="public"
  1312. deprecated="not deprecated">
  1313. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1314. <param name="out" type="java.io.Writer"/>
  1315. <exception name="IOException" type="java.io.IOException"/>
  1316. <doc>
  1317. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  1318. the given {@link Writer}
  1319. The format of the output would be
  1320. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  1321. key2.isFinal,key2.resource}... ] }
  1322. It does not output the parameters of the configuration object which is
  1323. loaded from an input stream.
  1324. @param out the Writer to write to
  1325. @throws IOException]]>
  1326. </doc>
  1327. </method>
  1328. <method name="getClassLoader" return="java.lang.ClassLoader"
  1329. abstract="false" native="false" synchronized="false"
  1330. static="false" final="false" visibility="public"
  1331. deprecated="not deprecated">
  1332. <doc>
  1333. <![CDATA[Get the {@link ClassLoader} for this job.
  1334. @return the correct class loader.]]>
  1335. </doc>
  1336. </method>
  1337. <method name="setClassLoader"
  1338. abstract="false" native="false" synchronized="false"
  1339. static="false" final="false" visibility="public"
  1340. deprecated="not deprecated">
  1341. <param name="classLoader" type="java.lang.ClassLoader"/>
  1342. <doc>
  1343. <![CDATA[Set the class loader that will be used to load the various objects.
  1344. @param classLoader the new class loader.]]>
  1345. </doc>
  1346. </method>
  1347. <method name="toString" return="java.lang.String"
  1348. abstract="false" native="false" synchronized="false"
  1349. static="false" final="false" visibility="public"
  1350. deprecated="not deprecated">
  1351. </method>
  1352. <method name="setQuietMode"
  1353. abstract="false" native="false" synchronized="true"
  1354. static="false" final="false" visibility="public"
  1355. deprecated="not deprecated">
  1356. <param name="quietmode" type="boolean"/>
  1357. <doc>
  1358. <![CDATA[Set the quietness-mode.
  1359. In the quiet-mode, error and informational messages might not be logged.
  1360. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1361. to turn it off.]]>
  1362. </doc>
  1363. </method>
  1364. <method name="main"
  1365. abstract="false" native="false" synchronized="false"
  1366. static="true" final="false" visibility="public"
  1367. deprecated="not deprecated">
  1368. <param name="args" type="java.lang.String[]"/>
  1369. <exception name="Exception" type="java.lang.Exception"/>
  1370. <doc>
  1371. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1372. </doc>
  1373. </method>
  1374. <method name="readFields"
  1375. abstract="false" native="false" synchronized="false"
  1376. static="false" final="false" visibility="public"
  1377. deprecated="not deprecated">
  1378. <param name="in" type="java.io.DataInput"/>
  1379. <exception name="IOException" type="java.io.IOException"/>
  1380. </method>
  1381. <method name="write"
  1382. abstract="false" native="false" synchronized="false"
  1383. static="false" final="false" visibility="public"
  1384. deprecated="not deprecated">
  1385. <param name="out" type="java.io.DataOutput"/>
  1386. <exception name="IOException" type="java.io.IOException"/>
  1387. </method>
  1388. <method name="getValByRegex" return="java.util.Map"
  1389. abstract="false" native="false" synchronized="false"
  1390. static="false" final="false" visibility="public"
  1391. deprecated="not deprecated">
  1392. <param name="regex" type="java.lang.String"/>
  1393. <doc>
  1394. <![CDATA[get keys matching the the regex
  1395. @param regex
  1396. @return Map<String,String> with matching keys]]>
  1397. </doc>
  1398. </method>
  1399. <method name="dumpDeprecatedKeys"
  1400. abstract="false" native="false" synchronized="false"
  1401. static="true" final="false" visibility="public"
  1402. deprecated="not deprecated">
  1403. </method>
  1404. <method name="hasWarnedDeprecation" return="boolean"
  1405. abstract="false" native="false" synchronized="false"
  1406. static="true" final="false" visibility="public"
  1407. deprecated="not deprecated">
  1408. <param name="name" type="java.lang.String"/>
  1409. <doc>
  1410. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1411. deprecated then always return false]]>
  1412. </doc>
  1413. </method>
  1414. <doc>
  1415. <![CDATA[Provides access to configuration parameters.
  1416. <h4 id="Resources">Resources</h4>
  1417. <p>Configurations are specified by resources. A resource contains a set of
  1418. name/value pairs as XML data. Each resource is named by either a
  1419. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1420. then the classpath is examined for a file with that name. If named by a
  1421. <code>Path</code>, then the local filesystem is examined directly, without
  1422. referring to the classpath.
  1423. <p>Unless explicitly turned off, Hadoop by default specifies two
  1424. resources, loaded in-order from the classpath: <ol>
  1425. <li><tt>
  1426. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1427. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1428. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1429. installation.</li>
  1430. </ol>
  1431. Applications may add additional resources, which are loaded
  1432. subsequent to these resources in the order they are added.
  1433. <h4 id="FinalParams">Final Parameters</h4>
  1434. <p>Configuration parameters may be declared <i>final</i>.
  1435. Once a resource declares a value final, no subsequently-loaded
  1436. resource can alter that value.
  1437. For example, one might define a final parameter with:
  1438. <tt><pre>
  1439. &lt;property&gt;
  1440. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1441. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1442. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1443. &lt;/property&gt;</pre></tt>
  1444. Administrators typically define parameters as final in
  1445. <tt>core-site.xml</tt> for values that user applications may not alter.
  1446. <h4 id="VariableExpansion">Variable Expansion</h4>
  1447. <p>Value strings are first processed for <i>variable expansion</i>. The
  1448. available properties are:<ol>
  1449. <li>Other properties defined in this Configuration; and, if a name is
  1450. undefined here,</li>
  1451. <li>Properties in {@link System#getProperties()}.</li>
  1452. </ol>
  1453. <p>For example, if a configuration resource contains the following property
  1454. definitions:
  1455. <tt><pre>
  1456. &lt;property&gt;
  1457. &lt;name&gt;basedir&lt;/name&gt;
  1458. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1459. &lt;/property&gt;
  1460. &lt;property&gt;
  1461. &lt;name&gt;tempdir&lt;/name&gt;
  1462. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1463. &lt;/property&gt;</pre></tt>
  1464. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1465. will be resolved to another property in this Configuration, while
  1466. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1467. of the System property with that name.
  1468. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1469. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1470. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1471. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1472. or its value is empty.
  1473. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1474. <p>By default, warnings will be given to any deprecated configuration
  1475. parameters and these are suppressible by configuring
  1476. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1477. log4j.properties file.]]>
  1478. </doc>
  1479. </class>
  1480. <!-- end class org.apache.hadoop.conf.Configuration -->
  1481. <!-- start class org.apache.hadoop.conf.Configured -->
  1482. <class name="Configured" extends="java.lang.Object"
  1483. abstract="false"
  1484. static="false" final="false" visibility="public"
  1485. deprecated="not deprecated">
  1486. <implements name="org.apache.hadoop.conf.Configurable"/>
  1487. <constructor name="Configured"
  1488. static="false" final="false" visibility="public"
  1489. deprecated="not deprecated">
  1490. <doc>
  1491. <![CDATA[Construct a Configured.]]>
  1492. </doc>
  1493. </constructor>
  1494. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1495. static="false" final="false" visibility="public"
  1496. deprecated="not deprecated">
  1497. <doc>
  1498. <![CDATA[Construct a Configured.]]>
  1499. </doc>
  1500. </constructor>
  1501. <method name="setConf"
  1502. abstract="false" native="false" synchronized="false"
  1503. static="false" final="false" visibility="public"
  1504. deprecated="not deprecated">
  1505. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1506. </method>
  1507. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1508. abstract="false" native="false" synchronized="false"
  1509. static="false" final="false" visibility="public"
  1510. deprecated="not deprecated">
  1511. </method>
  1512. <doc>
  1513. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1514. </doc>
  1515. </class>
  1516. <!-- end class org.apache.hadoop.conf.Configured -->
  1517. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1518. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1519. abstract="false"
  1520. static="false" final="false" visibility="public"
  1521. deprecated="not deprecated">
  1522. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1523. static="false" final="false" visibility="public"
  1524. deprecated="not deprecated">
  1525. </constructor>
  1526. <method name="hasTask" return="boolean"
  1527. abstract="false" native="false" synchronized="false"
  1528. static="false" final="false" visibility="public"
  1529. deprecated="not deprecated">
  1530. <doc>
  1531. <![CDATA[Return true if
  1532. - A reconfiguration task has finished or
  1533. - an active reconfiguration task is running]]>
  1534. </doc>
  1535. </method>
  1536. <method name="stopped" return="boolean"
  1537. abstract="false" native="false" synchronized="false"
  1538. static="false" final="false" visibility="public"
  1539. deprecated="not deprecated">
  1540. <doc>
  1541. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1542. no another active task running.]]>
  1543. </doc>
  1544. </method>
  1545. <method name="getStartTime" return="long"
  1546. abstract="false" native="false" synchronized="false"
  1547. static="false" final="false" visibility="public"
  1548. deprecated="not deprecated">
  1549. </method>
  1550. <method name="getEndTime" return="long"
  1551. abstract="false" native="false" synchronized="false"
  1552. static="false" final="false" visibility="public"
  1553. deprecated="not deprecated">
  1554. </method>
  1555. <method name="getStatus" return="java.util.Map"
  1556. abstract="false" native="false" synchronized="false"
  1557. static="false" final="true" visibility="public"
  1558. deprecated="not deprecated">
  1559. </method>
  1560. </class>
  1561. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1562. <doc>
  1563. <![CDATA[Configuration of system parameters.]]>
  1564. </doc>
  1565. </package>
  1566. <package name="org.apache.hadoop.crypto">
  1567. </package>
  1568. <package name="org.apache.hadoop.crypto.key">
  1569. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1570. <class name="KeyProvider" extends="java.lang.Object"
  1571. abstract="true"
  1572. static="false" final="false" visibility="public"
  1573. deprecated="not deprecated">
  1574. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1575. static="false" final="false" visibility="public"
  1576. deprecated="not deprecated">
  1577. <doc>
  1578. <![CDATA[Constructor.
  1579. @param conf configuration for the provider]]>
  1580. </doc>
  1581. </constructor>
  1582. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1583. abstract="false" native="false" synchronized="false"
  1584. static="false" final="false" visibility="public"
  1585. deprecated="not deprecated">
  1586. <doc>
  1587. <![CDATA[Return the provider configuration.
  1588. @return the provider configuration]]>
  1589. </doc>
  1590. </method>
  1591. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1592. abstract="false" native="false" synchronized="false"
  1593. static="true" final="false" visibility="public"
  1594. deprecated="not deprecated">
  1595. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1596. <doc>
  1597. <![CDATA[A helper function to create an options object.
  1598. @param conf the configuration to use
  1599. @return a new options object]]>
  1600. </doc>
  1601. </method>
  1602. <method name="isTransient" return="boolean"
  1603. abstract="false" native="false" synchronized="false"
  1604. static="false" final="false" visibility="public"
  1605. deprecated="not deprecated">
  1606. <doc>
  1607. <![CDATA[Indicates whether this provider represents a store
  1608. that is intended for transient use - such as the UserProvider
  1609. is. These providers are generally used to provide access to
  1610. keying material rather than for long term storage.
  1611. @return true if transient, false otherwise]]>
  1612. </doc>
  1613. </method>
  1614. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1615. abstract="true" native="false" synchronized="false"
  1616. static="false" final="false" visibility="public"
  1617. deprecated="not deprecated">
  1618. <param name="versionName" type="java.lang.String"/>
  1619. <exception name="IOException" type="java.io.IOException"/>
  1620. <doc>
  1621. <![CDATA[Get the key material for a specific version of the key. This method is used
  1622. when decrypting data.
  1623. @param versionName the name of a specific version of the key
  1624. @return the key material
  1625. @throws IOException]]>
  1626. </doc>
  1627. </method>
  1628. <method name="getKeys" return="java.util.List"
  1629. abstract="true" native="false" synchronized="false"
  1630. static="false" final="false" visibility="public"
  1631. deprecated="not deprecated">
  1632. <exception name="IOException" type="java.io.IOException"/>
  1633. <doc>
  1634. <![CDATA[Get the key names for all keys.
  1635. @return the list of key names
  1636. @throws IOException]]>
  1637. </doc>
  1638. </method>
  1639. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1640. abstract="false" native="false" synchronized="false"
  1641. static="false" final="false" visibility="public"
  1642. deprecated="not deprecated">
  1643. <param name="names" type="java.lang.String[]"/>
  1644. <exception name="IOException" type="java.io.IOException"/>
  1645. <doc>
  1646. <![CDATA[Get key metadata in bulk.
  1647. @param names the names of the keys to get
  1648. @throws IOException]]>
  1649. </doc>
  1650. </method>
  1651. <method name="getKeyVersions" return="java.util.List"
  1652. abstract="true" native="false" synchronized="false"
  1653. static="false" final="false" visibility="public"
  1654. deprecated="not deprecated">
  1655. <param name="name" type="java.lang.String"/>
  1656. <exception name="IOException" type="java.io.IOException"/>
  1657. <doc>
  1658. <![CDATA[Get the key material for all versions of a specific key name.
  1659. @return the list of key material
  1660. @throws IOException]]>
  1661. </doc>
  1662. </method>
  1663. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1664. abstract="false" native="false" synchronized="false"
  1665. static="false" final="false" visibility="public"
  1666. deprecated="not deprecated">
  1667. <param name="name" type="java.lang.String"/>
  1668. <exception name="IOException" type="java.io.IOException"/>
  1669. <doc>
  1670. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1671. data.
  1672. @param name the base name of the key
  1673. @return the version name of the current version of the key or null if the
  1674. key version doesn't exist
  1675. @throws IOException]]>
  1676. </doc>
  1677. </method>
  1678. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1679. abstract="true" native="false" synchronized="false"
  1680. static="false" final="false" visibility="public"
  1681. deprecated="not deprecated">
  1682. <param name="name" type="java.lang.String"/>
  1683. <exception name="IOException" type="java.io.IOException"/>
  1684. <doc>
  1685. <![CDATA[Get metadata about the key.
  1686. @param name the basename of the key
  1687. @return the key's metadata or null if the key doesn't exist
  1688. @throws IOException]]>
  1689. </doc>
  1690. </method>
  1691. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1692. abstract="true" native="false" synchronized="false"
  1693. static="false" final="false" visibility="public"
  1694. deprecated="not deprecated">
  1695. <param name="name" type="java.lang.String"/>
  1696. <param name="material" type="byte[]"/>
  1697. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1698. <exception name="IOException" type="java.io.IOException"/>
  1699. <doc>
  1700. <![CDATA[Create a new key. The given key must not already exist.
  1701. @param name the base name of the key
  1702. @param material the key material for the first version of the key.
  1703. @param options the options for the new key.
  1704. @return the version name of the first version of the key.
  1705. @throws IOException]]>
  1706. </doc>
  1707. </method>
  1708. <method name="generateKey" return="byte[]"
  1709. abstract="false" native="false" synchronized="false"
  1710. static="false" final="false" visibility="protected"
  1711. deprecated="not deprecated">
  1712. <param name="size" type="int"/>
  1713. <param name="algorithm" type="java.lang.String"/>
  1714. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1715. <doc>
  1716. <![CDATA[Generates a key material.
  1717. @param size length of the key.
  1718. @param algorithm algorithm to use for generating the key.
  1719. @return the generated key.
  1720. @throws NoSuchAlgorithmException]]>
  1721. </doc>
  1722. </method>
  1723. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1724. abstract="false" native="false" synchronized="false"
  1725. static="false" final="false" visibility="public"
  1726. deprecated="not deprecated">
  1727. <param name="name" type="java.lang.String"/>
  1728. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1729. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1730. <exception name="IOException" type="java.io.IOException"/>
  1731. <doc>
  1732. <![CDATA[Create a new key generating the material for it.
  1733. The given key must not already exist.
  1734. <p/>
  1735. This implementation generates the key material and calls the
  1736. {@link #createKey(String, byte[], Options)} method.
  1737. @param name the base name of the key
  1738. @param options the options for the new key.
  1739. @return the version name of the first version of the key.
  1740. @throws IOException
  1741. @throws NoSuchAlgorithmException]]>
  1742. </doc>
  1743. </method>
  1744. <method name="deleteKey"
  1745. abstract="true" native="false" synchronized="false"
  1746. static="false" final="false" visibility="public"
  1747. deprecated="not deprecated">
  1748. <param name="name" type="java.lang.String"/>
  1749. <exception name="IOException" type="java.io.IOException"/>
  1750. <doc>
  1751. <![CDATA[Delete the given key.
  1752. @param name the name of the key to delete
  1753. @throws IOException]]>
  1754. </doc>
  1755. </method>
  1756. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1757. abstract="true" native="false" synchronized="false"
  1758. static="false" final="false" visibility="public"
  1759. deprecated="not deprecated">
  1760. <param name="name" type="java.lang.String"/>
  1761. <param name="material" type="byte[]"/>
  1762. <exception name="IOException" type="java.io.IOException"/>
  1763. <doc>
  1764. <![CDATA[Roll a new version of the given key.
  1765. @param name the basename of the key
  1766. @param material the new key material
  1767. @return the name of the new version of the key
  1768. @throws IOException]]>
  1769. </doc>
  1770. </method>
  1771. <method name="close"
  1772. abstract="false" native="false" synchronized="false"
  1773. static="false" final="false" visibility="public"
  1774. deprecated="not deprecated">
  1775. <exception name="IOException" type="java.io.IOException"/>
  1776. <doc>
  1777. <![CDATA[Can be used by implementing classes to close any resources
  1778. that require closing]]>
  1779. </doc>
  1780. </method>
  1781. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1782. abstract="false" native="false" synchronized="false"
  1783. static="false" final="false" visibility="public"
  1784. deprecated="not deprecated">
  1785. <param name="name" type="java.lang.String"/>
  1786. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1787. <exception name="IOException" type="java.io.IOException"/>
  1788. <doc>
  1789. <![CDATA[Roll a new version of the given key generating the material for it.
  1790. <p/>
  1791. This implementation generates the key material and calls the
  1792. {@link #rollNewVersion(String, byte[])} method.
  1793. @param name the basename of the key
  1794. @return the name of the new version of the key
  1795. @throws IOException]]>
  1796. </doc>
  1797. </method>
  1798. <method name="flush"
  1799. abstract="true" native="false" synchronized="false"
  1800. static="false" final="false" visibility="public"
  1801. deprecated="not deprecated">
  1802. <exception name="IOException" type="java.io.IOException"/>
  1803. <doc>
  1804. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  1805. @throws IOException]]>
  1806. </doc>
  1807. </method>
  1808. <method name="getBaseName" return="java.lang.String"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="true" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <param name="versionName" type="java.lang.String"/>
  1813. <exception name="IOException" type="java.io.IOException"/>
  1814. <doc>
  1815. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  1816. "/aaa/bbb".
  1817. @param versionName the version name to split
  1818. @return the base name of the key
  1819. @throws IOException]]>
  1820. </doc>
  1821. </method>
  1822. <method name="buildVersionName" return="java.lang.String"
  1823. abstract="false" native="false" synchronized="false"
  1824. static="true" final="false" visibility="protected"
  1825. deprecated="not deprecated">
  1826. <param name="name" type="java.lang.String"/>
  1827. <param name="version" type="int"/>
  1828. <doc>
  1829. <![CDATA[Build a version string from a basename and version number. Converts
  1830. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  1831. @param name the basename of the key
  1832. @param version the version of the key
  1833. @return the versionName of the key.]]>
  1834. </doc>
  1835. </method>
  1836. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1837. abstract="false" native="false" synchronized="false"
  1838. static="true" final="false" visibility="public"
  1839. deprecated="not deprecated">
  1840. <param name="providerList" type="java.util.List"/>
  1841. <param name="keyName" type="java.lang.String"/>
  1842. <exception name="IOException" type="java.io.IOException"/>
  1843. <doc>
  1844. <![CDATA[Find the provider with the given key.
  1845. @param providerList the list of providers
  1846. @param keyName the key name we are looking for
  1847. @return the KeyProvider that has the key]]>
  1848. </doc>
  1849. </method>
  1850. <method name="needsPassword" return="boolean"
  1851. abstract="false" native="false" synchronized="false"
  1852. static="false" final="false" visibility="public"
  1853. deprecated="not deprecated">
  1854. <exception name="IOException" type="java.io.IOException"/>
  1855. <doc>
  1856. <![CDATA[Does this provider require a password? This means that a password is
  1857. required for normal operation, and it has not been found through normal
  1858. means. If true, the password should be provided by the caller using
  1859. setPassword().
  1860. @return Whether or not the provider requires a password
  1861. @throws IOException]]>
  1862. </doc>
  1863. </method>
  1864. <method name="noPasswordWarning" return="java.lang.String"
  1865. abstract="false" native="false" synchronized="false"
  1866. static="false" final="false" visibility="public"
  1867. deprecated="not deprecated">
  1868. <doc>
  1869. <![CDATA[If a password for the provider is needed, but is not provided, this will
  1870. return a warning and instructions for supplying said password to the
  1871. provider.
  1872. @return A warning and instructions for supplying the password]]>
  1873. </doc>
  1874. </method>
  1875. <method name="noPasswordError" return="java.lang.String"
  1876. abstract="false" native="false" synchronized="false"
  1877. static="false" final="false" visibility="public"
  1878. deprecated="not deprecated">
  1879. <doc>
  1880. <![CDATA[If a password for the provider is needed, but is not provided, this will
  1881. return an error message and instructions for supplying said password to
  1882. the provider.
  1883. @return An error message and instructions for supplying the password]]>
  1884. </doc>
  1885. </method>
  1886. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  1887. transient="false" volatile="false"
  1888. static="true" final="true" visibility="public"
  1889. deprecated="not deprecated">
  1890. </field>
  1891. <field name="DEFAULT_CIPHER" type="java.lang.String"
  1892. transient="false" volatile="false"
  1893. static="true" final="true" visibility="public"
  1894. deprecated="not deprecated">
  1895. </field>
  1896. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  1897. transient="false" volatile="false"
  1898. static="true" final="true" visibility="public"
  1899. deprecated="not deprecated">
  1900. </field>
  1901. <field name="DEFAULT_BITLENGTH" type="int"
  1902. transient="false" volatile="false"
  1903. static="true" final="true" visibility="public"
  1904. deprecated="not deprecated">
  1905. </field>
  1906. <doc>
  1907. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  1908. abstraction to separate key storage from users of encryption. It
  1909. is intended to support getting or storing keys in a variety of ways,
  1910. including third party bindings.
  1911. <P/>
  1912. <code>KeyProvider</code> implementations must be thread safe.]]>
  1913. </doc>
  1914. </class>
  1915. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  1916. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  1917. <class name="KeyProviderFactory" extends="java.lang.Object"
  1918. abstract="true"
  1919. static="false" final="false" visibility="public"
  1920. deprecated="not deprecated">
  1921. <constructor name="KeyProviderFactory"
  1922. static="false" final="false" visibility="public"
  1923. deprecated="not deprecated">
  1924. </constructor>
  1925. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1926. abstract="true" native="false" synchronized="false"
  1927. static="false" final="false" visibility="public"
  1928. deprecated="not deprecated">
  1929. <param name="providerName" type="java.net.URI"/>
  1930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1931. <exception name="IOException" type="java.io.IOException"/>
  1932. </method>
  1933. <method name="getProviders" return="java.util.List"
  1934. abstract="false" native="false" synchronized="false"
  1935. static="true" final="false" visibility="public"
  1936. deprecated="not deprecated">
  1937. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1938. <exception name="IOException" type="java.io.IOException"/>
  1939. </method>
  1940. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  1941. abstract="false" native="false" synchronized="false"
  1942. static="true" final="false" visibility="public"
  1943. deprecated="not deprecated">
  1944. <param name="uri" type="java.net.URI"/>
  1945. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1946. <exception name="IOException" type="java.io.IOException"/>
  1947. <doc>
  1948. <![CDATA[Create a KeyProvider based on a provided URI.
  1949. @param uri key provider URI
  1950. @param conf configuration to initialize the key provider
  1951. @return the key provider for the specified URI, or <code>NULL</code> if
  1952. a provider for the specified URI scheme could not be found.
  1953. @throws IOException thrown if the provider failed to initialize.]]>
  1954. </doc>
  1955. </method>
  1956. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  1957. transient="false" volatile="false"
  1958. static="true" final="true" visibility="public"
  1959. deprecated="not deprecated">
  1960. </field>
  1961. <doc>
  1962. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  1963. Configuration. It uses a service loader interface to find the available
  1964. KeyProviders and create them based on the list of URIs.]]>
  1965. </doc>
  1966. </class>
  1967. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  1968. </package>
  1969. <package name="org.apache.hadoop.crypto.key.kms">
  1970. </package>
  1971. <package name="org.apache.hadoop.crypto.random">
  1972. </package>
  1973. <package name="org.apache.hadoop.fs">
  1974. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  1975. <class name="AbstractFileSystem" extends="java.lang.Object"
  1976. abstract="true"
  1977. static="false" final="false" visibility="public"
  1978. deprecated="not deprecated">
  1979. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  1980. static="false" final="false" visibility="public"
  1981. deprecated="not deprecated">
  1982. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  1983. <doc>
  1984. <![CDATA[Constructor to be called by subclasses.
  1985. @param uri for this file system.
  1986. @param supportedScheme the scheme supported by the implementor
  1987. @param authorityNeeded if true then theURI must have authority, if false
  1988. then the URI must have null authority.
  1989. @throws URISyntaxException <code>uri</code> has syntax error]]>
  1990. </doc>
  1991. </constructor>
  1992. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1993. abstract="false" native="false" synchronized="false"
  1994. static="false" final="false" visibility="public"
  1995. deprecated="not deprecated">
  1996. </method>
  1997. <method name="isValidName" return="boolean"
  1998. abstract="false" native="false" synchronized="false"
  1999. static="false" final="false" visibility="public"
  2000. deprecated="not deprecated">
  2001. <param name="src" type="java.lang.String"/>
  2002. <doc>
  2003. <![CDATA[Returns true if the specified string is considered valid in the path part
  2004. of a URI by this file system. The default implementation enforces the rules
  2005. of HDFS, but subclasses may override this method to implement specific
  2006. validation rules for specific file systems.
  2007. @param src String source filename to check, path part of the URI
  2008. @return boolean true if the specified string is considered valid]]>
  2009. </doc>
  2010. </method>
  2011. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2012. abstract="false" native="false" synchronized="false"
  2013. static="true" final="false" visibility="public"
  2014. deprecated="not deprecated">
  2015. <param name="uri" type="java.net.URI"/>
  2016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2017. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2018. <doc>
  2019. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2020. conf is used to find the class name that implements the file system. The
  2021. conf is also passed to the file system for its configuration.
  2022. @param uri URI of the file system
  2023. @param conf Configuration for the file system
  2024. @return Returns the file system for the given URI
  2025. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2026. not found]]>
  2027. </doc>
  2028. </method>
  2029. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2030. abstract="false" native="false" synchronized="true"
  2031. static="true" final="false" visibility="protected"
  2032. deprecated="not deprecated">
  2033. <param name="uri" type="java.net.URI"/>
  2034. <doc>
  2035. <![CDATA[Get the statistics for a particular file system.
  2036. @param uri
  2037. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2038. part of the uri are used.
  2039. @return a statistics object]]>
  2040. </doc>
  2041. </method>
  2042. <method name="clearStatistics"
  2043. abstract="false" native="false" synchronized="true"
  2044. static="true" final="false" visibility="public"
  2045. deprecated="not deprecated">
  2046. </method>
  2047. <method name="printStatistics"
  2048. abstract="false" native="false" synchronized="true"
  2049. static="true" final="false" visibility="public"
  2050. deprecated="not deprecated">
  2051. <doc>
  2052. <![CDATA[Prints statistics for all file systems.]]>
  2053. </doc>
  2054. </method>
  2055. <method name="getAllStatistics" return="java.util.Map"
  2056. abstract="false" native="false" synchronized="true"
  2057. static="true" final="false" visibility="protected"
  2058. deprecated="not deprecated">
  2059. </method>
  2060. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2061. abstract="false" native="false" synchronized="false"
  2062. static="true" final="false" visibility="public"
  2063. deprecated="not deprecated">
  2064. <param name="uri" type="java.net.URI"/>
  2065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2066. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2067. <doc>
  2068. <![CDATA[The main factory method for creating a file system. Get a file system for
  2069. the URI's scheme and authority. The scheme of the <code>uri</code>
  2070. determines a configuration property name,
  2071. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2072. AbstractFileSystem class.
  2073. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2074. @param uri for the file system to be created.
  2075. @param conf which is passed to the file system impl.
  2076. @return file system for the given URI.
  2077. @throws UnsupportedFileSystemException if the file system for
  2078. <code>uri</code> is not supported.]]>
  2079. </doc>
  2080. </method>
  2081. <method name="checkScheme"
  2082. abstract="false" native="false" synchronized="false"
  2083. static="false" final="false" visibility="public"
  2084. deprecated="not deprecated">
  2085. <param name="uri" type="java.net.URI"/>
  2086. <param name="supportedScheme" type="java.lang.String"/>
  2087. <doc>
  2088. <![CDATA[Check that the Uri's scheme matches
  2089. @param uri
  2090. @param supportedScheme]]>
  2091. </doc>
  2092. </method>
  2093. <method name="getUriDefaultPort" return="int"
  2094. abstract="true" native="false" synchronized="false"
  2095. static="false" final="false" visibility="public"
  2096. deprecated="not deprecated">
  2097. <doc>
  2098. <![CDATA[The default port of this file system.
  2099. @return default port of this file system's Uri scheme
  2100. A uri with a port of -1 => default port;]]>
  2101. </doc>
  2102. </method>
  2103. <method name="getUri" return="java.net.URI"
  2104. abstract="false" native="false" synchronized="false"
  2105. static="false" final="false" visibility="public"
  2106. deprecated="not deprecated">
  2107. <doc>
  2108. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2109. @return the uri of this file system.]]>
  2110. </doc>
  2111. </method>
  2112. <method name="checkPath"
  2113. abstract="false" native="false" synchronized="false"
  2114. static="false" final="false" visibility="public"
  2115. deprecated="not deprecated">
  2116. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2117. <doc>
  2118. <![CDATA[Check that a Path belongs to this FileSystem.
  2119. If the path is fully qualified URI, then its scheme and authority
  2120. matches that of this file system. Otherwise the path must be
  2121. slash-relative name.
  2122. @throws InvalidPathException if the path is invalid]]>
  2123. </doc>
  2124. </method>
  2125. <method name="getUriPath" return="java.lang.String"
  2126. abstract="false" native="false" synchronized="false"
  2127. static="false" final="false" visibility="public"
  2128. deprecated="not deprecated">
  2129. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2130. <doc>
  2131. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2132. and that the path-part is a valid name.
  2133. @param p path
  2134. @return path-part of the Path p]]>
  2135. </doc>
  2136. </method>
  2137. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2138. abstract="false" native="false" synchronized="false"
  2139. static="false" final="false" visibility="public"
  2140. deprecated="not deprecated">
  2141. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2142. <doc>
  2143. <![CDATA[Make the path fully qualified to this file system
  2144. @param path
  2145. @return the qualified path]]>
  2146. </doc>
  2147. </method>
  2148. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2149. abstract="false" native="false" synchronized="false"
  2150. static="false" final="false" visibility="public"
  2151. deprecated="not deprecated">
  2152. <doc>
  2153. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2154. that is used as the starting workingDir. For other file systems
  2155. like HDFS there is no built in notion of an initial workingDir.
  2156. @return the initial workingDir if the file system has such a notion
  2157. otherwise return a null.]]>
  2158. </doc>
  2159. </method>
  2160. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2161. abstract="false" native="false" synchronized="false"
  2162. static="false" final="false" visibility="public"
  2163. deprecated="not deprecated">
  2164. <doc>
  2165. <![CDATA[Return the current user's home directory in this file system.
  2166. The default implementation returns "/user/$USER/".
  2167. @return current user's home directory.]]>
  2168. </doc>
  2169. </method>
  2170. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2171. abstract="true" native="false" synchronized="false"
  2172. static="false" final="false" visibility="public"
  2173. deprecated="use {@link #getServerDefaults(Path)} instead">
  2174. <exception name="IOException" type="java.io.IOException"/>
  2175. <doc>
  2176. <![CDATA[Return a set of server default configuration values.
  2177. @return server default configuration values
  2178. @throws IOException an I/O error occurred
  2179. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2180. </doc>
  2181. </method>
  2182. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2183. abstract="false" native="false" synchronized="false"
  2184. static="false" final="false" visibility="public"
  2185. deprecated="not deprecated">
  2186. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2187. <exception name="IOException" type="java.io.IOException"/>
  2188. <doc>
  2189. <![CDATA[Return a set of server default configuration values based on path.
  2190. @param f path to fetch server defaults
  2191. @return server default configuration values for path
  2192. @throws IOException an I/O error occurred]]>
  2193. </doc>
  2194. </method>
  2195. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2196. abstract="false" native="false" synchronized="false"
  2197. static="false" final="false" visibility="public"
  2198. deprecated="not deprecated">
  2199. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2200. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2201. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2202. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2203. <exception name="IOException" type="java.io.IOException"/>
  2204. <doc>
  2205. <![CDATA[Return the fully-qualified path of path f resolving the path
  2206. through any internal symlinks or mount point
  2207. @param p path to be resolved
  2208. @return fully qualified path
  2209. @throws FileNotFoundException, AccessControlException, IOException
  2210. UnresolvedLinkException if symbolic link on path cannot be resolved
  2211. internally]]>
  2212. </doc>
  2213. </method>
  2214. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2215. abstract="false" native="false" synchronized="false"
  2216. static="false" final="true" visibility="public"
  2217. deprecated="not deprecated">
  2218. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2219. <param name="createFlag" type="java.util.EnumSet"/>
  2220. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2221. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2222. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2223. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2224. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2225. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2226. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2227. <exception name="IOException" type="java.io.IOException"/>
  2228. <doc>
  2229. <![CDATA[The specification of this method matches that of
  2230. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2231. that the Path f must be fully qualified and the permission is absolute
  2232. (i.e. umask has been applied).]]>
  2233. </doc>
  2234. </method>
  2235. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2236. abstract="true" native="false" synchronized="false"
  2237. static="false" final="false" visibility="public"
  2238. deprecated="not deprecated">
  2239. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2240. <param name="flag" type="java.util.EnumSet"/>
  2241. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2242. <param name="bufferSize" type="int"/>
  2243. <param name="replication" type="short"/>
  2244. <param name="blockSize" type="long"/>
  2245. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2246. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2247. <param name="createParent" type="boolean"/>
  2248. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2249. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2250. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2251. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2252. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2253. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2254. <exception name="IOException" type="java.io.IOException"/>
  2255. <doc>
  2256. <![CDATA[The specification of this method matches that of
  2257. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2258. have been declared explicitly.]]>
  2259. </doc>
  2260. </method>
  2261. <method name="mkdir"
  2262. abstract="true" native="false" synchronized="false"
  2263. static="false" final="false" visibility="public"
  2264. deprecated="not deprecated">
  2265. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2266. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2267. <param name="createParent" type="boolean"/>
  2268. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2269. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2270. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2271. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2272. <exception name="IOException" type="java.io.IOException"/>
  2273. <doc>
  2274. <![CDATA[The specification of this method matches that of
  2275. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2276. f must be fully qualified and the permission is absolute (i.e.
  2277. umask has been applied).]]>
  2278. </doc>
  2279. </method>
  2280. <method name="delete" return="boolean"
  2281. abstract="true" native="false" synchronized="false"
  2282. static="false" final="false" visibility="public"
  2283. deprecated="not deprecated">
  2284. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2285. <param name="recursive" type="boolean"/>
  2286. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2287. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2288. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2289. <exception name="IOException" type="java.io.IOException"/>
  2290. <doc>
  2291. <![CDATA[The specification of this method matches that of
  2292. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2293. this file system.]]>
  2294. </doc>
  2295. </method>
  2296. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2297. abstract="false" native="false" synchronized="false"
  2298. static="false" final="false" visibility="public"
  2299. deprecated="not deprecated">
  2300. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2301. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2302. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2303. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2304. <exception name="IOException" type="java.io.IOException"/>
  2305. <doc>
  2306. <![CDATA[The specification of this method matches that of
  2307. {@link FileContext#open(Path)} except that Path f must be for this
  2308. file system.]]>
  2309. </doc>
  2310. </method>
  2311. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2312. abstract="true" native="false" synchronized="false"
  2313. static="false" final="false" visibility="public"
  2314. deprecated="not deprecated">
  2315. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2316. <param name="bufferSize" type="int"/>
  2317. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2318. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2319. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2320. <exception name="IOException" type="java.io.IOException"/>
  2321. <doc>
  2322. <![CDATA[The specification of this method matches that of
  2323. {@link FileContext#open(Path, int)} except that Path f must be for this
  2324. file system.]]>
  2325. </doc>
  2326. </method>
  2327. <method name="truncate" return="boolean"
  2328. abstract="false" native="false" synchronized="false"
  2329. static="false" final="false" visibility="public"
  2330. deprecated="not deprecated">
  2331. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2332. <param name="newLength" type="long"/>
  2333. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2334. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2335. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2336. <exception name="IOException" type="java.io.IOException"/>
  2337. <doc>
  2338. <![CDATA[The specification of this method matches that of
  2339. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2340. this file system.]]>
  2341. </doc>
  2342. </method>
  2343. <method name="setReplication" return="boolean"
  2344. abstract="true" native="false" synchronized="false"
  2345. static="false" final="false" visibility="public"
  2346. deprecated="not deprecated">
  2347. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2348. <param name="replication" type="short"/>
  2349. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2350. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2351. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2352. <exception name="IOException" type="java.io.IOException"/>
  2353. <doc>
  2354. <![CDATA[The specification of this method matches that of
  2355. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2356. for this file system.]]>
  2357. </doc>
  2358. </method>
  2359. <method name="rename"
  2360. abstract="false" native="false" synchronized="false"
  2361. static="false" final="true" visibility="public"
  2362. deprecated="not deprecated">
  2363. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2364. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2365. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2366. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2367. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2368. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2369. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2370. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2371. <exception name="IOException" type="java.io.IOException"/>
  2372. <doc>
  2373. <![CDATA[The specification of this method matches that of
  2374. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2375. f must be for this file system.]]>
  2376. </doc>
  2377. </method>
  2378. <method name="renameInternal"
  2379. abstract="true" native="false" synchronized="false"
  2380. static="false" final="false" visibility="public"
  2381. deprecated="not deprecated">
  2382. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2383. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2384. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2385. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2386. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2387. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2388. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2389. <exception name="IOException" type="java.io.IOException"/>
  2390. <doc>
  2391. <![CDATA[The specification of this method matches that of
  2392. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2393. f must be for this file system and NO OVERWRITE is performed.
  2394. File systems that do not have a built in overwrite need implement only this
  2395. method and can take advantage of the default impl of the other
  2396. {@link #renameInternal(Path, Path, boolean)}]]>
  2397. </doc>
  2398. </method>
  2399. <method name="renameInternal"
  2400. abstract="false" native="false" synchronized="false"
  2401. static="false" final="false" visibility="public"
  2402. deprecated="not deprecated">
  2403. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2404. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2405. <param name="overwrite" type="boolean"/>
  2406. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2407. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2408. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2409. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2410. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2411. <exception name="IOException" type="java.io.IOException"/>
  2412. <doc>
  2413. <![CDATA[The specification of this method matches that of
  2414. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2415. f must be for this file system.]]>
  2416. </doc>
  2417. </method>
  2418. <method name="supportsSymlinks" return="boolean"
  2419. abstract="false" native="false" synchronized="false"
  2420. static="false" final="false" visibility="public"
  2421. deprecated="not deprecated">
  2422. <doc>
  2423. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2424. @return true if filesystem supports symlinks]]>
  2425. </doc>
  2426. </method>
  2427. <method name="createSymlink"
  2428. abstract="false" native="false" synchronized="false"
  2429. static="false" final="false" visibility="public"
  2430. deprecated="not deprecated">
  2431. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2432. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2433. <param name="createParent" type="boolean"/>
  2434. <exception name="IOException" type="java.io.IOException"/>
  2435. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2436. <doc>
  2437. <![CDATA[The specification of this method matches that of
  2438. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2439. </doc>
  2440. </method>
  2441. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2442. abstract="false" native="false" synchronized="false"
  2443. static="false" final="false" visibility="public"
  2444. deprecated="not deprecated">
  2445. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2446. <exception name="IOException" type="java.io.IOException"/>
  2447. <doc>
  2448. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2449. {@link FSLinkResolver}, and differs from the similarly named method
  2450. {@link FileContext#getLinkTarget(Path)}.
  2451. @throws IOException subclass implementations may throw IOException]]>
  2452. </doc>
  2453. </method>
  2454. <method name="setPermission"
  2455. abstract="true" native="false" synchronized="false"
  2456. static="false" final="false" visibility="public"
  2457. deprecated="not deprecated">
  2458. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2459. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2460. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2461. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2462. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2463. <exception name="IOException" type="java.io.IOException"/>
  2464. <doc>
  2465. <![CDATA[The specification of this method matches that of
  2466. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2467. must be for this file system.]]>
  2468. </doc>
  2469. </method>
  2470. <method name="setOwner"
  2471. abstract="true" native="false" synchronized="false"
  2472. static="false" final="false" visibility="public"
  2473. deprecated="not deprecated">
  2474. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2475. <param name="username" type="java.lang.String"/>
  2476. <param name="groupname" type="java.lang.String"/>
  2477. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2478. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2479. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2480. <exception name="IOException" type="java.io.IOException"/>
  2481. <doc>
  2482. <![CDATA[The specification of this method matches that of
  2483. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2484. be for this file system.]]>
  2485. </doc>
  2486. </method>
  2487. <method name="setTimes"
  2488. abstract="true" native="false" synchronized="false"
  2489. static="false" final="false" visibility="public"
  2490. deprecated="not deprecated">
  2491. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2492. <param name="mtime" type="long"/>
  2493. <param name="atime" type="long"/>
  2494. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2495. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2496. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2497. <exception name="IOException" type="java.io.IOException"/>
  2498. <doc>
  2499. <![CDATA[The specification of this method matches that of
  2500. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2501. for this file system.]]>
  2502. </doc>
  2503. </method>
  2504. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2505. abstract="true" native="false" synchronized="false"
  2506. static="false" final="false" visibility="public"
  2507. deprecated="not deprecated">
  2508. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2509. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2510. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2511. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2512. <exception name="IOException" type="java.io.IOException"/>
  2513. <doc>
  2514. <![CDATA[The specification of this method matches that of
  2515. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2516. this file system.]]>
  2517. </doc>
  2518. </method>
  2519. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2520. abstract="true" native="false" synchronized="false"
  2521. static="false" final="false" visibility="public"
  2522. deprecated="not deprecated">
  2523. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2524. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2525. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2526. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2527. <exception name="IOException" type="java.io.IOException"/>
  2528. <doc>
  2529. <![CDATA[The specification of this method matches that of
  2530. {@link FileContext#getFileStatus(Path)}
  2531. except that an UnresolvedLinkException may be thrown if a symlink is
  2532. encountered in the path.]]>
  2533. </doc>
  2534. </method>
  2535. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2536. abstract="false" native="false" synchronized="false"
  2537. static="false" final="false" visibility="public"
  2538. deprecated="not deprecated">
  2539. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2540. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2541. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2542. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2543. <exception name="IOException" type="java.io.IOException"/>
  2544. <doc>
  2545. <![CDATA[The specification of this method matches that of
  2546. {@link FileContext#getFileLinkStatus(Path)}
  2547. except that an UnresolvedLinkException may be thrown if a symlink is
  2548. encountered in the path leading up to the final path component.
  2549. If the file system does not support symlinks then the behavior is
  2550. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2551. </doc>
  2552. </method>
  2553. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2554. abstract="true" native="false" synchronized="false"
  2555. static="false" final="false" visibility="public"
  2556. deprecated="not deprecated">
  2557. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2558. <param name="start" type="long"/>
  2559. <param name="len" type="long"/>
  2560. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2561. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2562. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[The specification of this method matches that of
  2566. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2567. Path f must be for this file system.]]>
  2568. </doc>
  2569. </method>
  2570. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2571. abstract="false" native="false" synchronized="false"
  2572. static="false" final="false" visibility="public"
  2573. deprecated="not deprecated">
  2574. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2575. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2576. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2577. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2578. <exception name="IOException" type="java.io.IOException"/>
  2579. <doc>
  2580. <![CDATA[The specification of this method matches that of
  2581. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2582. file system.]]>
  2583. </doc>
  2584. </method>
  2585. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2586. abstract="true" native="false" synchronized="false"
  2587. static="false" final="false" visibility="public"
  2588. deprecated="not deprecated">
  2589. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2590. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2591. <exception name="IOException" type="java.io.IOException"/>
  2592. <doc>
  2593. <![CDATA[The specification of this method matches that of
  2594. {@link FileContext#getFsStatus(Path)}.]]>
  2595. </doc>
  2596. </method>
  2597. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2598. abstract="false" native="false" synchronized="false"
  2599. static="false" final="false" visibility="public"
  2600. deprecated="not deprecated">
  2601. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2602. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2603. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2604. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2605. <exception name="IOException" type="java.io.IOException"/>
  2606. <doc>
  2607. <![CDATA[The specification of this method matches that of
  2608. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2609. file system.]]>
  2610. </doc>
  2611. </method>
  2612. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2613. abstract="false" native="false" synchronized="false"
  2614. static="false" final="false" visibility="public"
  2615. deprecated="not deprecated">
  2616. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2617. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2618. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2619. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2620. <exception name="IOException" type="java.io.IOException"/>
  2621. <doc>
  2622. <![CDATA[The specification of this method matches that of
  2623. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2624. must be for this file system.]]>
  2625. </doc>
  2626. </method>
  2627. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2628. abstract="true" native="false" synchronized="false"
  2629. static="false" final="false" visibility="public"
  2630. deprecated="not deprecated">
  2631. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2632. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2633. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2634. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2635. <exception name="IOException" type="java.io.IOException"/>
  2636. <doc>
  2637. <![CDATA[The specification of this method matches that of
  2638. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2639. for this file system.]]>
  2640. </doc>
  2641. </method>
  2642. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2643. abstract="false" native="false" synchronized="false"
  2644. static="false" final="false" visibility="public"
  2645. deprecated="not deprecated">
  2646. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2647. <exception name="IOException" type="java.io.IOException"/>
  2648. <doc>
  2649. <![CDATA[@return an iterator over the corrupt files under the given path
  2650. (may contain duplicates if a file has more than one corrupt block)
  2651. @throws IOException]]>
  2652. </doc>
  2653. </method>
  2654. <method name="setVerifyChecksum"
  2655. abstract="true" native="false" synchronized="false"
  2656. static="false" final="false" visibility="public"
  2657. deprecated="not deprecated">
  2658. <param name="verifyChecksum" type="boolean"/>
  2659. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2660. <exception name="IOException" type="java.io.IOException"/>
  2661. <doc>
  2662. <![CDATA[The specification of this method matches that of
  2663. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2664. must be for this file system.]]>
  2665. </doc>
  2666. </method>
  2667. <method name="getCanonicalServiceName" return="java.lang.String"
  2668. abstract="false" native="false" synchronized="false"
  2669. static="false" final="false" visibility="public"
  2670. deprecated="not deprecated">
  2671. <doc>
  2672. <![CDATA[Get a canonical name for this file system.
  2673. @return a URI string that uniquely identifies this file system]]>
  2674. </doc>
  2675. </method>
  2676. <method name="modifyAclEntries"
  2677. abstract="false" native="false" synchronized="false"
  2678. static="false" final="false" visibility="public"
  2679. deprecated="not deprecated">
  2680. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2681. <param name="aclSpec" type="java.util.List"/>
  2682. <exception name="IOException" type="java.io.IOException"/>
  2683. <doc>
  2684. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  2685. entries or modify the permissions on existing ACL entries. All existing
  2686. ACL entries that are not specified in this call are retained without
  2687. changes. (Modifications are merged into the current ACL.)
  2688. @param path Path to modify
  2689. @param aclSpec List<AclEntry> describing modifications
  2690. @throws IOException if an ACL could not be modified]]>
  2691. </doc>
  2692. </method>
  2693. <method name="removeAclEntries"
  2694. abstract="false" native="false" synchronized="false"
  2695. static="false" final="false" visibility="public"
  2696. deprecated="not deprecated">
  2697. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2698. <param name="aclSpec" type="java.util.List"/>
  2699. <exception name="IOException" type="java.io.IOException"/>
  2700. <doc>
  2701. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  2702. retained.
  2703. @param path Path to modify
  2704. @param aclSpec List<AclEntry> describing entries to remove
  2705. @throws IOException if an ACL could not be modified]]>
  2706. </doc>
  2707. </method>
  2708. <method name="removeDefaultAcl"
  2709. abstract="false" native="false" synchronized="false"
  2710. static="false" final="false" visibility="public"
  2711. deprecated="not deprecated">
  2712. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2713. <exception name="IOException" type="java.io.IOException"/>
  2714. <doc>
  2715. <![CDATA[Removes all default ACL entries from files and directories.
  2716. @param path Path to modify
  2717. @throws IOException if an ACL could not be modified]]>
  2718. </doc>
  2719. </method>
  2720. <method name="removeAcl"
  2721. abstract="false" native="false" synchronized="false"
  2722. static="false" final="false" visibility="public"
  2723. deprecated="not deprecated">
  2724. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2725. <exception name="IOException" type="java.io.IOException"/>
  2726. <doc>
  2727. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  2728. for user, group, and others are retained for compatibility with permission
  2729. bits.
  2730. @param path Path to modify
  2731. @throws IOException if an ACL could not be removed]]>
  2732. </doc>
  2733. </method>
  2734. <method name="setAcl"
  2735. abstract="false" native="false" synchronized="false"
  2736. static="false" final="false" visibility="public"
  2737. deprecated="not deprecated">
  2738. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2739. <param name="aclSpec" type="java.util.List"/>
  2740. <exception name="IOException" type="java.io.IOException"/>
  2741. <doc>
  2742. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  2743. entries.
  2744. @param path Path to modify
  2745. @param aclSpec List<AclEntry> describing modifications, must include entries
  2746. for user, group, and others for compatibility with permission bits.
  2747. @throws IOException if an ACL could not be modified]]>
  2748. </doc>
  2749. </method>
  2750. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  2751. abstract="false" native="false" synchronized="false"
  2752. static="false" final="false" visibility="public"
  2753. deprecated="not deprecated">
  2754. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2755. <exception name="IOException" type="java.io.IOException"/>
  2756. <doc>
  2757. <![CDATA[Gets the ACLs of files and directories.
  2758. @param path Path to get
  2759. @return RemoteIterator<AclStatus> which returns each AclStatus
  2760. @throws IOException if an ACL could not be read]]>
  2761. </doc>
  2762. </method>
  2763. <method name="setXAttr"
  2764. abstract="false" native="false" synchronized="false"
  2765. static="false" final="false" visibility="public"
  2766. deprecated="not deprecated">
  2767. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2768. <param name="name" type="java.lang.String"/>
  2769. <param name="value" type="byte[]"/>
  2770. <exception name="IOException" type="java.io.IOException"/>
  2771. <doc>
  2772. <![CDATA[Set an xattr of a file or directory.
  2773. The name must be prefixed with the namespace followed by ".". For example,
  2774. "user.attr".
  2775. <p/>
  2776. Refer to the HDFS extended attributes user documentation for details.
  2777. @param path Path to modify
  2778. @param name xattr name.
  2779. @param value xattr value.
  2780. @throws IOException]]>
  2781. </doc>
  2782. </method>
  2783. <method name="setXAttr"
  2784. abstract="false" native="false" synchronized="false"
  2785. static="false" final="false" visibility="public"
  2786. deprecated="not deprecated">
  2787. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2788. <param name="name" type="java.lang.String"/>
  2789. <param name="value" type="byte[]"/>
  2790. <param name="flag" type="java.util.EnumSet"/>
  2791. <exception name="IOException" type="java.io.IOException"/>
  2792. <doc>
  2793. <![CDATA[Set an xattr of a file or directory.
  2794. The name must be prefixed with the namespace followed by ".". For example,
  2795. "user.attr".
  2796. <p/>
  2797. Refer to the HDFS extended attributes user documentation for details.
  2798. @param path Path to modify
  2799. @param name xattr name.
  2800. @param value xattr value.
  2801. @param flag xattr set flag
  2802. @throws IOException]]>
  2803. </doc>
  2804. </method>
  2805. <method name="getXAttr" return="byte[]"
  2806. abstract="false" native="false" synchronized="false"
  2807. static="false" final="false" visibility="public"
  2808. deprecated="not deprecated">
  2809. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2810. <param name="name" type="java.lang.String"/>
  2811. <exception name="IOException" type="java.io.IOException"/>
  2812. <doc>
  2813. <![CDATA[Get an xattr for a file or directory.
  2814. The name must be prefixed with the namespace followed by ".". For example,
  2815. "user.attr".
  2816. <p/>
  2817. Refer to the HDFS extended attributes user documentation for details.
  2818. @param path Path to get extended attribute
  2819. @param name xattr name.
  2820. @return byte[] xattr value.
  2821. @throws IOException]]>
  2822. </doc>
  2823. </method>
  2824. <method name="getXAttrs" return="java.util.Map"
  2825. abstract="false" native="false" synchronized="false"
  2826. static="false" final="false" visibility="public"
  2827. deprecated="not deprecated">
  2828. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2829. <exception name="IOException" type="java.io.IOException"/>
  2830. <doc>
  2831. <![CDATA[Get all of the xattrs for a file or directory.
  2832. Only those xattrs for which the logged-in user has permissions to view
  2833. are returned.
  2834. <p/>
  2835. Refer to the HDFS extended attributes user documentation for details.
  2836. @param path Path to get extended attributes
  2837. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2838. @throws IOException]]>
  2839. </doc>
  2840. </method>
  2841. <method name="getXAttrs" return="java.util.Map"
  2842. abstract="false" native="false" synchronized="false"
  2843. static="false" final="false" visibility="public"
  2844. deprecated="not deprecated">
  2845. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2846. <param name="names" type="java.util.List"/>
  2847. <exception name="IOException" type="java.io.IOException"/>
  2848. <doc>
  2849. <![CDATA[Get all of the xattrs for a file or directory.
  2850. Only those xattrs for which the logged-in user has permissions to view
  2851. are returned.
  2852. <p/>
  2853. Refer to the HDFS extended attributes user documentation for details.
  2854. @param path Path to get extended attributes
  2855. @param names XAttr names.
  2856. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2857. @throws IOException]]>
  2858. </doc>
  2859. </method>
  2860. <method name="listXAttrs" return="java.util.List"
  2861. abstract="false" native="false" synchronized="false"
  2862. static="false" final="false" visibility="public"
  2863. deprecated="not deprecated">
  2864. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2865. <exception name="IOException" type="java.io.IOException"/>
  2866. <doc>
  2867. <![CDATA[Get all of the xattr names for a file or directory.
  2868. Only the xattr names for which the logged-in user has permissions to view
  2869. are returned.
  2870. <p/>
  2871. Refer to the HDFS extended attributes user documentation for details.
  2872. @param path Path to get extended attributes
  2873. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2874. @throws IOException]]>
  2875. </doc>
  2876. </method>
  2877. <method name="removeXAttr"
  2878. abstract="false" native="false" synchronized="false"
  2879. static="false" final="false" visibility="public"
  2880. deprecated="not deprecated">
  2881. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2882. <param name="name" type="java.lang.String"/>
  2883. <exception name="IOException" type="java.io.IOException"/>
  2884. <doc>
  2885. <![CDATA[Remove an xattr of a file or directory.
  2886. The name must be prefixed with the namespace followed by ".". For example,
  2887. "user.attr".
  2888. <p/>
  2889. Refer to the HDFS extended attributes user documentation for details.
  2890. @param path Path to remove extended attribute
  2891. @param name xattr name
  2892. @throws IOException]]>
  2893. </doc>
  2894. </method>
  2895. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  2896. abstract="false" native="false" synchronized="false"
  2897. static="false" final="false" visibility="public"
  2898. deprecated="not deprecated">
  2899. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2900. <param name="snapshotName" type="java.lang.String"/>
  2901. <exception name="IOException" type="java.io.IOException"/>
  2902. <doc>
  2903. <![CDATA[The specification of this method matches that of
  2904. {@link FileContext#createSnapshot(Path, String)}.]]>
  2905. </doc>
  2906. </method>
  2907. <method name="renameSnapshot"
  2908. abstract="false" native="false" synchronized="false"
  2909. static="false" final="false" visibility="public"
  2910. deprecated="not deprecated">
  2911. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2912. <param name="snapshotOldName" type="java.lang.String"/>
  2913. <param name="snapshotNewName" type="java.lang.String"/>
  2914. <exception name="IOException" type="java.io.IOException"/>
  2915. <doc>
  2916. <![CDATA[The specification of this method matches that of
  2917. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  2918. </doc>
  2919. </method>
  2920. <method name="deleteSnapshot"
  2921. abstract="false" native="false" synchronized="false"
  2922. static="false" final="false" visibility="public"
  2923. deprecated="not deprecated">
  2924. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  2925. <param name="snapshotName" type="java.lang.String"/>
  2926. <exception name="IOException" type="java.io.IOException"/>
  2927. <doc>
  2928. <![CDATA[The specification of this method matches that of
  2929. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  2930. </doc>
  2931. </method>
  2932. <method name="setStoragePolicy"
  2933. abstract="false" native="false" synchronized="false"
  2934. static="false" final="false" visibility="public"
  2935. deprecated="not deprecated">
  2936. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2937. <param name="policyName" type="java.lang.String"/>
  2938. <exception name="IOException" type="java.io.IOException"/>
  2939. <doc>
  2940. <![CDATA[Set the storage policy for a given file or directory.
  2941. @param path file or directory path.
  2942. @param policyName the name of the target storage policy. The list
  2943. of supported Storage policies can be retrieved
  2944. via {@link #getAllStoragePolicies}.]]>
  2945. </doc>
  2946. </method>
  2947. <method name="unsetStoragePolicy"
  2948. abstract="false" native="false" synchronized="false"
  2949. static="false" final="false" visibility="public"
  2950. deprecated="not deprecated">
  2951. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2952. <exception name="IOException" type="java.io.IOException"/>
  2953. <doc>
  2954. <![CDATA[Unset the storage policy set for a given file or directory.
  2955. @param src file or directory path.
  2956. @throws IOException]]>
  2957. </doc>
  2958. </method>
  2959. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  2960. abstract="false" native="false" synchronized="false"
  2961. static="false" final="false" visibility="public"
  2962. deprecated="not deprecated">
  2963. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2964. <exception name="IOException" type="java.io.IOException"/>
  2965. <doc>
  2966. <![CDATA[Retrieve the storage policy for a given file or directory.
  2967. @param src file or directory path.
  2968. @return storage policy for give file.
  2969. @throws IOException]]>
  2970. </doc>
  2971. </method>
  2972. <method name="getAllStoragePolicies" return="java.util.Collection"
  2973. abstract="false" native="false" synchronized="false"
  2974. static="false" final="false" visibility="public"
  2975. deprecated="not deprecated">
  2976. <exception name="IOException" type="java.io.IOException"/>
  2977. <doc>
  2978. <![CDATA[Retrieve all the storage policies supported by this file system.
  2979. @return all storage policies supported by this filesystem.
  2980. @throws IOException]]>
  2981. </doc>
  2982. </method>
  2983. <method name="hashCode" return="int"
  2984. abstract="false" native="false" synchronized="false"
  2985. static="false" final="false" visibility="public"
  2986. deprecated="not deprecated">
  2987. </method>
  2988. <method name="equals" return="boolean"
  2989. abstract="false" native="false" synchronized="false"
  2990. static="false" final="false" visibility="public"
  2991. deprecated="not deprecated">
  2992. <param name="other" type="java.lang.Object"/>
  2993. </method>
  2994. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  2995. transient="false" volatile="false"
  2996. static="false" final="false" visibility="protected"
  2997. deprecated="not deprecated">
  2998. <doc>
  2999. <![CDATA[The statistics for this file system.]]>
  3000. </doc>
  3001. </field>
  3002. <doc>
  3003. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3004. (analogous to the VFS of Unix). Applications do not access this class;
  3005. instead they access files across all file systems using {@link FileContext}.
  3006. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3007. matches the "this" file system (ie same scheme and authority)
  3008. or a Slash-relative name that is assumed to be relative
  3009. to the root of the "this" file system .]]>
  3010. </doc>
  3011. </class>
  3012. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3013. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3014. <class name="AvroFSInput" extends="java.lang.Object"
  3015. abstract="false"
  3016. static="false" final="false" visibility="public"
  3017. deprecated="not deprecated">
  3018. <implements name="java.io.Closeable"/>
  3019. <implements name="org.apache.avro.file.SeekableInput"/>
  3020. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3021. static="false" final="false" visibility="public"
  3022. deprecated="not deprecated">
  3023. <doc>
  3024. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3025. </doc>
  3026. </constructor>
  3027. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3028. static="false" final="false" visibility="public"
  3029. deprecated="not deprecated">
  3030. <exception name="IOException" type="java.io.IOException"/>
  3031. <doc>
  3032. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3033. </doc>
  3034. </constructor>
  3035. <method name="length" return="long"
  3036. abstract="false" native="false" synchronized="false"
  3037. static="false" final="false" visibility="public"
  3038. deprecated="not deprecated">
  3039. </method>
  3040. <method name="read" return="int"
  3041. abstract="false" native="false" synchronized="false"
  3042. static="false" final="false" visibility="public"
  3043. deprecated="not deprecated">
  3044. <param name="b" type="byte[]"/>
  3045. <param name="off" type="int"/>
  3046. <param name="len" type="int"/>
  3047. <exception name="IOException" type="java.io.IOException"/>
  3048. </method>
  3049. <method name="seek"
  3050. abstract="false" native="false" synchronized="false"
  3051. static="false" final="false" visibility="public"
  3052. deprecated="not deprecated">
  3053. <param name="p" type="long"/>
  3054. <exception name="IOException" type="java.io.IOException"/>
  3055. </method>
  3056. <method name="tell" return="long"
  3057. abstract="false" native="false" synchronized="false"
  3058. static="false" final="false" visibility="public"
  3059. deprecated="not deprecated">
  3060. <exception name="IOException" type="java.io.IOException"/>
  3061. </method>
  3062. <method name="close"
  3063. abstract="false" native="false" synchronized="false"
  3064. static="false" final="false" visibility="public"
  3065. deprecated="not deprecated">
  3066. <exception name="IOException" type="java.io.IOException"/>
  3067. </method>
  3068. <doc>
  3069. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3070. </doc>
  3071. </class>
  3072. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3073. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3074. <class name="BlockLocation" extends="java.lang.Object"
  3075. abstract="false"
  3076. static="false" final="false" visibility="public"
  3077. deprecated="not deprecated">
  3078. <constructor name="BlockLocation"
  3079. static="false" final="false" visibility="public"
  3080. deprecated="not deprecated">
  3081. <doc>
  3082. <![CDATA[Default Constructor]]>
  3083. </doc>
  3084. </constructor>
  3085. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3086. static="false" final="false" visibility="public"
  3087. deprecated="not deprecated">
  3088. <doc>
  3089. <![CDATA[Copy constructor]]>
  3090. </doc>
  3091. </constructor>
  3092. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3093. static="false" final="false" visibility="public"
  3094. deprecated="not deprecated">
  3095. <doc>
  3096. <![CDATA[Constructor with host, name, offset and length]]>
  3097. </doc>
  3098. </constructor>
  3099. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3100. static="false" final="false" visibility="public"
  3101. deprecated="not deprecated">
  3102. <doc>
  3103. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  3104. </doc>
  3105. </constructor>
  3106. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3107. static="false" final="false" visibility="public"
  3108. deprecated="not deprecated">
  3109. <doc>
  3110. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  3111. </doc>
  3112. </constructor>
  3113. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3114. static="false" final="false" visibility="public"
  3115. deprecated="not deprecated">
  3116. <doc>
  3117. <![CDATA[Constructor with host, name, network topology, offset, length
  3118. and corrupt flag]]>
  3119. </doc>
  3120. </constructor>
  3121. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3122. static="false" final="false" visibility="public"
  3123. deprecated="not deprecated">
  3124. </constructor>
  3125. <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"
  3126. static="false" final="false" visibility="public"
  3127. deprecated="not deprecated">
  3128. </constructor>
  3129. <method name="getHosts" return="java.lang.String[]"
  3130. abstract="false" native="false" synchronized="false"
  3131. static="false" final="false" visibility="public"
  3132. deprecated="not deprecated">
  3133. <exception name="IOException" type="java.io.IOException"/>
  3134. <doc>
  3135. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  3136. </doc>
  3137. </method>
  3138. <method name="getCachedHosts" return="java.lang.String[]"
  3139. abstract="false" native="false" synchronized="false"
  3140. static="false" final="false" visibility="public"
  3141. deprecated="not deprecated">
  3142. <doc>
  3143. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  3144. </doc>
  3145. </method>
  3146. <method name="getNames" return="java.lang.String[]"
  3147. abstract="false" native="false" synchronized="false"
  3148. static="false" final="false" visibility="public"
  3149. deprecated="not deprecated">
  3150. <exception name="IOException" type="java.io.IOException"/>
  3151. <doc>
  3152. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  3153. </doc>
  3154. </method>
  3155. <method name="getTopologyPaths" return="java.lang.String[]"
  3156. abstract="false" native="false" synchronized="false"
  3157. static="false" final="false" visibility="public"
  3158. deprecated="not deprecated">
  3159. <exception name="IOException" type="java.io.IOException"/>
  3160. <doc>
  3161. <![CDATA[Get the list of network topology paths for each of the hosts.
  3162. The last component of the path is the "name" (IP:xferPort).]]>
  3163. </doc>
  3164. </method>
  3165. <method name="getStorageIds" return="java.lang.String[]"
  3166. abstract="false" native="false" synchronized="false"
  3167. static="false" final="false" visibility="public"
  3168. deprecated="not deprecated">
  3169. <doc>
  3170. <![CDATA[Get the storageID of each replica of the block.]]>
  3171. </doc>
  3172. </method>
  3173. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3174. abstract="false" native="false" synchronized="false"
  3175. static="false" final="false" visibility="public"
  3176. deprecated="not deprecated">
  3177. <doc>
  3178. <![CDATA[Get the storage type of each replica of the block.]]>
  3179. </doc>
  3180. </method>
  3181. <method name="getOffset" return="long"
  3182. abstract="false" native="false" synchronized="false"
  3183. static="false" final="false" visibility="public"
  3184. deprecated="not deprecated">
  3185. <doc>
  3186. <![CDATA[Get the start offset of file associated with this block]]>
  3187. </doc>
  3188. </method>
  3189. <method name="getLength" return="long"
  3190. abstract="false" native="false" synchronized="false"
  3191. static="false" final="false" visibility="public"
  3192. deprecated="not deprecated">
  3193. <doc>
  3194. <![CDATA[Get the length of the block]]>
  3195. </doc>
  3196. </method>
  3197. <method name="isCorrupt" return="boolean"
  3198. abstract="false" native="false" synchronized="false"
  3199. static="false" final="false" visibility="public"
  3200. deprecated="not deprecated">
  3201. <doc>
  3202. <![CDATA[Get the corrupt flag.]]>
  3203. </doc>
  3204. </method>
  3205. <method name="setOffset"
  3206. abstract="false" native="false" synchronized="false"
  3207. static="false" final="false" visibility="public"
  3208. deprecated="not deprecated">
  3209. <param name="offset" type="long"/>
  3210. <doc>
  3211. <![CDATA[Set the start offset of file associated with this block]]>
  3212. </doc>
  3213. </method>
  3214. <method name="setLength"
  3215. abstract="false" native="false" synchronized="false"
  3216. static="false" final="false" visibility="public"
  3217. deprecated="not deprecated">
  3218. <param name="length" type="long"/>
  3219. <doc>
  3220. <![CDATA[Set the length of block]]>
  3221. </doc>
  3222. </method>
  3223. <method name="setCorrupt"
  3224. abstract="false" native="false" synchronized="false"
  3225. static="false" final="false" visibility="public"
  3226. deprecated="not deprecated">
  3227. <param name="corrupt" type="boolean"/>
  3228. <doc>
  3229. <![CDATA[Set the corrupt flag.]]>
  3230. </doc>
  3231. </method>
  3232. <method name="setHosts"
  3233. abstract="false" native="false" synchronized="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <param name="hosts" type="java.lang.String[]"/>
  3237. <exception name="IOException" type="java.io.IOException"/>
  3238. <doc>
  3239. <![CDATA[Set the hosts hosting this block]]>
  3240. </doc>
  3241. </method>
  3242. <method name="setCachedHosts"
  3243. abstract="false" native="false" synchronized="false"
  3244. static="false" final="false" visibility="public"
  3245. deprecated="not deprecated">
  3246. <param name="cachedHosts" type="java.lang.String[]"/>
  3247. <doc>
  3248. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3249. </doc>
  3250. </method>
  3251. <method name="setNames"
  3252. abstract="false" native="false" synchronized="false"
  3253. static="false" final="false" visibility="public"
  3254. deprecated="not deprecated">
  3255. <param name="names" type="java.lang.String[]"/>
  3256. <exception name="IOException" type="java.io.IOException"/>
  3257. <doc>
  3258. <![CDATA[Set the names (host:port) hosting this block]]>
  3259. </doc>
  3260. </method>
  3261. <method name="setTopologyPaths"
  3262. abstract="false" native="false" synchronized="false"
  3263. static="false" final="false" visibility="public"
  3264. deprecated="not deprecated">
  3265. <param name="topologyPaths" type="java.lang.String[]"/>
  3266. <exception name="IOException" type="java.io.IOException"/>
  3267. <doc>
  3268. <![CDATA[Set the network topology paths of the hosts]]>
  3269. </doc>
  3270. </method>
  3271. <method name="setStorageIds"
  3272. abstract="false" native="false" synchronized="false"
  3273. static="false" final="false" visibility="public"
  3274. deprecated="not deprecated">
  3275. <param name="storageIds" type="java.lang.String[]"/>
  3276. </method>
  3277. <method name="setStorageTypes"
  3278. abstract="false" native="false" synchronized="false"
  3279. static="false" final="false" visibility="public"
  3280. deprecated="not deprecated">
  3281. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3282. </method>
  3283. <method name="toString" return="java.lang.String"
  3284. abstract="false" native="false" synchronized="false"
  3285. static="false" final="false" visibility="public"
  3286. deprecated="not deprecated">
  3287. </method>
  3288. <doc>
  3289. <![CDATA[Represents the network location of a block, information about the hosts
  3290. that contain block replicas, and other block metadata (E.g. the file
  3291. offset associated with the block, length, whether it is corrupt, etc).]]>
  3292. </doc>
  3293. </class>
  3294. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3295. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3296. <interface name="BlockStoragePolicySpi" abstract="true"
  3297. static="false" final="false" visibility="public"
  3298. deprecated="not deprecated">
  3299. <method name="getName" return="java.lang.String"
  3300. abstract="false" native="false" synchronized="false"
  3301. static="false" final="false" visibility="public"
  3302. deprecated="not deprecated">
  3303. <doc>
  3304. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3305. identified by name.
  3306. @return the name of the storage policy.]]>
  3307. </doc>
  3308. </method>
  3309. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3310. abstract="false" native="false" synchronized="false"
  3311. static="false" final="false" visibility="public"
  3312. deprecated="not deprecated">
  3313. <doc>
  3314. <![CDATA[Return the preferred storage types associated with this policy. These
  3315. storage types are used sequentially for successive block replicas.
  3316. @return preferred storage types used for placing block replicas.]]>
  3317. </doc>
  3318. </method>
  3319. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3320. abstract="false" native="false" synchronized="false"
  3321. static="false" final="false" visibility="public"
  3322. deprecated="not deprecated">
  3323. <doc>
  3324. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3325. storage types are used if the preferred storage types are not available.
  3326. @return fallback storage types for new block replicas..]]>
  3327. </doc>
  3328. </method>
  3329. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3330. abstract="false" native="false" synchronized="false"
  3331. static="false" final="false" visibility="public"
  3332. deprecated="not deprecated">
  3333. <doc>
  3334. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3335. Fallback storage types are used if the preferred storage types are not
  3336. available.
  3337. @return fallback storage types for replicating existing block replicas.]]>
  3338. </doc>
  3339. </method>
  3340. <method name="isCopyOnCreateFile" return="boolean"
  3341. abstract="false" native="false" synchronized="false"
  3342. static="false" final="false" visibility="public"
  3343. deprecated="not deprecated">
  3344. <doc>
  3345. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3346. an existing file.
  3347. @return true if the policy is inherit-only.]]>
  3348. </doc>
  3349. </method>
  3350. <doc>
  3351. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3352. storage types.]]>
  3353. </doc>
  3354. </interface>
  3355. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3356. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3357. <interface name="ByteBufferReadable" abstract="true"
  3358. static="false" final="false" visibility="public"
  3359. deprecated="not deprecated">
  3360. <method name="read" return="int"
  3361. abstract="false" native="false" synchronized="false"
  3362. static="false" final="false" visibility="public"
  3363. deprecated="not deprecated">
  3364. <param name="buf" type="java.nio.ByteBuffer"/>
  3365. <exception name="IOException" type="java.io.IOException"/>
  3366. <doc>
  3367. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3368. buf.limit(..) to control the size of the desired read.
  3369. <p/>
  3370. After a successful call, buf.position() will be advanced by the number
  3371. of bytes read and buf.limit() should be unchanged.
  3372. <p/>
  3373. In the case of an exception, the values of buf.position() and buf.limit()
  3374. are undefined, and callers should be prepared to recover from this
  3375. eventuality.
  3376. <p/>
  3377. Many implementations will throw {@link UnsupportedOperationException}, so
  3378. callers that are not confident in support for this method from the
  3379. underlying filesystem should be prepared to handle that exception.
  3380. <p/>
  3381. Implementations should treat 0-length requests as legitimate, and must not
  3382. signal an error upon their receipt.
  3383. @param buf
  3384. the ByteBuffer to receive the results of the read operation.
  3385. @return the number of bytes read, possibly zero, or -1 if
  3386. reach end-of-stream
  3387. @throws IOException
  3388. if there is some error performing the read]]>
  3389. </doc>
  3390. </method>
  3391. <doc>
  3392. <![CDATA[Implementers of this interface provide a read API that writes to a
  3393. ByteBuffer, not a byte[].]]>
  3394. </doc>
  3395. </interface>
  3396. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3397. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3398. <interface name="CanSetDropBehind" abstract="true"
  3399. static="false" final="false" visibility="public"
  3400. deprecated="not deprecated">
  3401. <method name="setDropBehind"
  3402. abstract="false" native="false" synchronized="false"
  3403. static="false" final="false" visibility="public"
  3404. deprecated="not deprecated">
  3405. <param name="dropCache" type="java.lang.Boolean"/>
  3406. <exception name="IOException" type="java.io.IOException"/>
  3407. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3408. <doc>
  3409. <![CDATA[Configure whether the stream should drop the cache.
  3410. @param dropCache Whether to drop the cache. null means to use the
  3411. default value.
  3412. @throws IOException If there was an error changing the dropBehind
  3413. setting.
  3414. UnsupportedOperationException If this stream doesn't support
  3415. setting the drop-behind.]]>
  3416. </doc>
  3417. </method>
  3418. </interface>
  3419. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3420. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3421. <interface name="CanSetReadahead" abstract="true"
  3422. static="false" final="false" visibility="public"
  3423. deprecated="not deprecated">
  3424. <method name="setReadahead"
  3425. abstract="false" native="false" synchronized="false"
  3426. static="false" final="false" visibility="public"
  3427. deprecated="not deprecated">
  3428. <param name="readahead" type="java.lang.Long"/>
  3429. <exception name="IOException" type="java.io.IOException"/>
  3430. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3431. <doc>
  3432. <![CDATA[Set the readahead on this stream.
  3433. @param readahead The readahead to use. null means to use the default.
  3434. @throws IOException If there was an error changing the dropBehind
  3435. setting.
  3436. UnsupportedOperationException If this stream doesn't support
  3437. setting readahead.]]>
  3438. </doc>
  3439. </method>
  3440. </interface>
  3441. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3442. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  3443. <interface name="CanUnbuffer" abstract="true"
  3444. static="false" final="false" visibility="public"
  3445. deprecated="not deprecated">
  3446. <method name="unbuffer"
  3447. abstract="false" native="false" synchronized="false"
  3448. static="false" final="false" visibility="public"
  3449. deprecated="not deprecated">
  3450. <doc>
  3451. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  3452. held by the stream, if possible.]]>
  3453. </doc>
  3454. </method>
  3455. <doc>
  3456. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  3457. their buffers on request.]]>
  3458. </doc>
  3459. </interface>
  3460. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  3461. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3462. <class name="ChecksumException" extends="java.io.IOException"
  3463. abstract="false"
  3464. static="false" final="false" visibility="public"
  3465. deprecated="not deprecated">
  3466. <constructor name="ChecksumException" type="java.lang.String, long"
  3467. static="false" final="false" visibility="public"
  3468. deprecated="not deprecated">
  3469. </constructor>
  3470. <method name="getPos" return="long"
  3471. abstract="false" native="false" synchronized="false"
  3472. static="false" final="false" visibility="public"
  3473. deprecated="not deprecated">
  3474. </method>
  3475. <doc>
  3476. <![CDATA[Thrown for checksum errors.]]>
  3477. </doc>
  3478. </class>
  3479. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3480. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3481. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3482. abstract="true"
  3483. static="false" final="false" visibility="public"
  3484. deprecated="not deprecated">
  3485. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3486. static="false" final="false" visibility="public"
  3487. deprecated="not deprecated">
  3488. </constructor>
  3489. <method name="getApproxChkSumLength" return="double"
  3490. abstract="false" native="false" synchronized="false"
  3491. static="true" final="false" visibility="public"
  3492. deprecated="not deprecated">
  3493. <param name="size" type="long"/>
  3494. </method>
  3495. <method name="setConf"
  3496. abstract="false" native="false" synchronized="false"
  3497. static="false" final="false" visibility="public"
  3498. deprecated="not deprecated">
  3499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3500. </method>
  3501. <method name="setVerifyChecksum"
  3502. abstract="false" native="false" synchronized="false"
  3503. static="false" final="false" visibility="public"
  3504. deprecated="not deprecated">
  3505. <param name="verifyChecksum" type="boolean"/>
  3506. <doc>
  3507. <![CDATA[Set whether to verify checksum.]]>
  3508. </doc>
  3509. </method>
  3510. <method name="setWriteChecksum"
  3511. abstract="false" native="false" synchronized="false"
  3512. static="false" final="false" visibility="public"
  3513. deprecated="not deprecated">
  3514. <param name="writeChecksum" type="boolean"/>
  3515. </method>
  3516. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3517. abstract="false" native="false" synchronized="false"
  3518. static="false" final="false" visibility="public"
  3519. deprecated="not deprecated">
  3520. <doc>
  3521. <![CDATA[get the raw file system]]>
  3522. </doc>
  3523. </method>
  3524. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3525. abstract="false" native="false" synchronized="false"
  3526. static="false" final="false" visibility="public"
  3527. deprecated="not deprecated">
  3528. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3529. <doc>
  3530. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3531. </doc>
  3532. </method>
  3533. <method name="isChecksumFile" return="boolean"
  3534. abstract="false" native="false" synchronized="false"
  3535. static="true" final="false" visibility="public"
  3536. deprecated="not deprecated">
  3537. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3538. <doc>
  3539. <![CDATA[Return true iff file is a checksum file name.]]>
  3540. </doc>
  3541. </method>
  3542. <method name="getChecksumFileLength" return="long"
  3543. abstract="false" native="false" synchronized="false"
  3544. static="false" final="false" visibility="public"
  3545. deprecated="not deprecated">
  3546. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3547. <param name="fileSize" type="long"/>
  3548. <doc>
  3549. <![CDATA[Return the length of the checksum file given the size of the
  3550. actual file.]]>
  3551. </doc>
  3552. </method>
  3553. <method name="getBytesPerSum" return="int"
  3554. abstract="false" native="false" synchronized="false"
  3555. static="false" final="false" visibility="public"
  3556. deprecated="not deprecated">
  3557. <doc>
  3558. <![CDATA[Return the bytes Per Checksum]]>
  3559. </doc>
  3560. </method>
  3561. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3562. abstract="false" native="false" synchronized="false"
  3563. static="false" final="false" visibility="public"
  3564. deprecated="not deprecated">
  3565. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3566. <param name="bufferSize" type="int"/>
  3567. <exception name="IOException" type="java.io.IOException"/>
  3568. <doc>
  3569. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3570. @param f the file name to open
  3571. @param bufferSize the size of the buffer to be used.]]>
  3572. </doc>
  3573. </method>
  3574. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3575. abstract="false" native="false" synchronized="false"
  3576. static="false" final="false" visibility="public"
  3577. deprecated="not deprecated">
  3578. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3579. <param name="bufferSize" type="int"/>
  3580. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3581. <exception name="IOException" type="java.io.IOException"/>
  3582. </method>
  3583. <method name="truncate" return="boolean"
  3584. abstract="false" native="false" synchronized="false"
  3585. static="false" final="false" visibility="public"
  3586. deprecated="not deprecated">
  3587. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3588. <param name="newLength" type="long"/>
  3589. <exception name="IOException" type="java.io.IOException"/>
  3590. </method>
  3591. <method name="getChecksumLength" return="long"
  3592. abstract="false" native="false" synchronized="false"
  3593. static="true" final="false" visibility="public"
  3594. deprecated="not deprecated">
  3595. <param name="size" type="long"/>
  3596. <param name="bytesPerSum" type="int"/>
  3597. <doc>
  3598. <![CDATA[Calculated the length of the checksum file in bytes.
  3599. @param size the length of the data file in bytes
  3600. @param bytesPerSum the number of bytes in a checksum block
  3601. @return the number of bytes in the checksum file]]>
  3602. </doc>
  3603. </method>
  3604. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3605. abstract="false" native="false" synchronized="false"
  3606. static="false" final="false" visibility="public"
  3607. deprecated="not deprecated">
  3608. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3609. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3610. <param name="overwrite" type="boolean"/>
  3611. <param name="bufferSize" type="int"/>
  3612. <param name="replication" type="short"/>
  3613. <param name="blockSize" type="long"/>
  3614. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3615. <exception name="IOException" type="java.io.IOException"/>
  3616. </method>
  3617. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3618. abstract="false" native="false" synchronized="false"
  3619. static="false" final="false" visibility="public"
  3620. deprecated="not deprecated">
  3621. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3622. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3623. <param name="overwrite" type="boolean"/>
  3624. <param name="bufferSize" type="int"/>
  3625. <param name="replication" type="short"/>
  3626. <param name="blockSize" type="long"/>
  3627. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3628. <exception name="IOException" type="java.io.IOException"/>
  3629. </method>
  3630. <method name="setPermission"
  3631. abstract="false" native="false" synchronized="false"
  3632. static="false" final="false" visibility="public"
  3633. deprecated="not deprecated">
  3634. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3635. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3636. <exception name="IOException" type="java.io.IOException"/>
  3637. </method>
  3638. <method name="setOwner"
  3639. abstract="false" native="false" synchronized="false"
  3640. static="false" final="false" visibility="public"
  3641. deprecated="not deprecated">
  3642. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3643. <param name="username" type="java.lang.String"/>
  3644. <param name="groupname" type="java.lang.String"/>
  3645. <exception name="IOException" type="java.io.IOException"/>
  3646. </method>
  3647. <method name="setAcl"
  3648. abstract="false" native="false" synchronized="false"
  3649. static="false" final="false" visibility="public"
  3650. deprecated="not deprecated">
  3651. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3652. <param name="aclSpec" type="java.util.List"/>
  3653. <exception name="IOException" type="java.io.IOException"/>
  3654. </method>
  3655. <method name="modifyAclEntries"
  3656. abstract="false" native="false" synchronized="false"
  3657. static="false" final="false" visibility="public"
  3658. deprecated="not deprecated">
  3659. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3660. <param name="aclSpec" type="java.util.List"/>
  3661. <exception name="IOException" type="java.io.IOException"/>
  3662. </method>
  3663. <method name="removeAcl"
  3664. abstract="false" native="false" synchronized="false"
  3665. static="false" final="false" visibility="public"
  3666. deprecated="not deprecated">
  3667. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3668. <exception name="IOException" type="java.io.IOException"/>
  3669. </method>
  3670. <method name="removeAclEntries"
  3671. abstract="false" native="false" synchronized="false"
  3672. static="false" final="false" visibility="public"
  3673. deprecated="not deprecated">
  3674. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3675. <param name="aclSpec" type="java.util.List"/>
  3676. <exception name="IOException" type="java.io.IOException"/>
  3677. </method>
  3678. <method name="removeDefaultAcl"
  3679. abstract="false" native="false" synchronized="false"
  3680. static="false" final="false" visibility="public"
  3681. deprecated="not deprecated">
  3682. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3683. <exception name="IOException" type="java.io.IOException"/>
  3684. </method>
  3685. <method name="setReplication" return="boolean"
  3686. abstract="false" native="false" synchronized="false"
  3687. static="false" final="false" visibility="public"
  3688. deprecated="not deprecated">
  3689. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3690. <param name="replication" type="short"/>
  3691. <exception name="IOException" type="java.io.IOException"/>
  3692. <doc>
  3693. <![CDATA[Set replication for an existing file.
  3694. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  3695. @param src file name
  3696. @param replication new replication
  3697. @throws IOException
  3698. @return true if successful;
  3699. false if file does not exist or is a directory]]>
  3700. </doc>
  3701. </method>
  3702. <method name="rename" return="boolean"
  3703. abstract="false" native="false" synchronized="false"
  3704. static="false" final="false" visibility="public"
  3705. deprecated="not deprecated">
  3706. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3707. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3708. <exception name="IOException" type="java.io.IOException"/>
  3709. <doc>
  3710. <![CDATA[Rename files/dirs]]>
  3711. </doc>
  3712. </method>
  3713. <method name="delete" return="boolean"
  3714. abstract="false" native="false" synchronized="false"
  3715. static="false" final="false" visibility="public"
  3716. deprecated="not deprecated">
  3717. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3718. <param name="recursive" type="boolean"/>
  3719. <exception name="IOException" type="java.io.IOException"/>
  3720. <doc>
  3721. <![CDATA[Implement the delete(Path, boolean) in checksum
  3722. file system.]]>
  3723. </doc>
  3724. </method>
  3725. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3726. abstract="false" native="false" synchronized="false"
  3727. static="false" final="false" visibility="public"
  3728. deprecated="not deprecated">
  3729. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3730. <exception name="IOException" type="java.io.IOException"/>
  3731. <doc>
  3732. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3733. a directory.
  3734. @param f
  3735. given path
  3736. @return the statuses of the files/directories in the given path
  3737. @throws IOException]]>
  3738. </doc>
  3739. </method>
  3740. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3741. abstract="false" native="false" synchronized="false"
  3742. static="false" final="false" visibility="public"
  3743. deprecated="not deprecated">
  3744. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3745. <exception name="IOException" type="java.io.IOException"/>
  3746. <doc>
  3747. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3748. a directory.
  3749. @param f
  3750. given path
  3751. @return the statuses of the files/directories in the given patch
  3752. @throws IOException]]>
  3753. </doc>
  3754. </method>
  3755. <method name="mkdirs" return="boolean"
  3756. abstract="false" native="false" synchronized="false"
  3757. static="false" final="false" visibility="public"
  3758. deprecated="not deprecated">
  3759. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3760. <exception name="IOException" type="java.io.IOException"/>
  3761. </method>
  3762. <method name="copyFromLocalFile"
  3763. abstract="false" native="false" synchronized="false"
  3764. static="false" final="false" visibility="public"
  3765. deprecated="not deprecated">
  3766. <param name="delSrc" type="boolean"/>
  3767. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3768. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3769. <exception name="IOException" type="java.io.IOException"/>
  3770. </method>
  3771. <method name="copyToLocalFile"
  3772. abstract="false" native="false" synchronized="false"
  3773. static="false" final="false" visibility="public"
  3774. deprecated="not deprecated">
  3775. <param name="delSrc" type="boolean"/>
  3776. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3777. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3778. <exception name="IOException" type="java.io.IOException"/>
  3779. <doc>
  3780. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3781. Copy it from FS control to the local dst name.]]>
  3782. </doc>
  3783. </method>
  3784. <method name="copyToLocalFile"
  3785. abstract="false" native="false" synchronized="false"
  3786. static="false" final="false" visibility="public"
  3787. deprecated="not deprecated">
  3788. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3789. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3790. <param name="copyCrc" type="boolean"/>
  3791. <exception name="IOException" type="java.io.IOException"/>
  3792. <doc>
  3793. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3794. Copy it from FS control to the local dst name.
  3795. If src and dst are directories, the copyCrc parameter
  3796. determines whether to copy CRC files.]]>
  3797. </doc>
  3798. </method>
  3799. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3800. abstract="false" native="false" synchronized="false"
  3801. static="false" final="false" visibility="public"
  3802. deprecated="not deprecated">
  3803. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3804. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3805. <exception name="IOException" type="java.io.IOException"/>
  3806. </method>
  3807. <method name="completeLocalOutput"
  3808. abstract="false" native="false" synchronized="false"
  3809. static="false" final="false" visibility="public"
  3810. deprecated="not deprecated">
  3811. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3812. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3813. <exception name="IOException" type="java.io.IOException"/>
  3814. </method>
  3815. <method name="reportChecksumFailure" return="boolean"
  3816. abstract="false" native="false" synchronized="false"
  3817. static="false" final="false" visibility="public"
  3818. deprecated="not deprecated">
  3819. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3820. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  3821. <param name="inPos" type="long"/>
  3822. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  3823. <param name="sumsPos" type="long"/>
  3824. <doc>
  3825. <![CDATA[Report a checksum error to the file system.
  3826. @param f the file name containing the error
  3827. @param in the stream open on the file
  3828. @param inPos the position of the beginning of the bad data in the file
  3829. @param sums the stream open on the checksum file
  3830. @param sumsPos the position of the beginning of the bad data in the checksum file
  3831. @return if retry is neccessary]]>
  3832. </doc>
  3833. </method>
  3834. <doc>
  3835. <![CDATA[Abstract Checksumed FileSystem.
  3836. It provide a basic implementation of a Checksumed FileSystem,
  3837. which creates a checksum file for each raw file.
  3838. It generates & verifies checksums at the client side.]]>
  3839. </doc>
  3840. </class>
  3841. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  3842. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  3843. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  3844. abstract="false"
  3845. static="false" final="false" visibility="public"
  3846. deprecated="not deprecated">
  3847. <constructor name="CommonConfigurationKeysPublic"
  3848. static="false" final="false" visibility="public"
  3849. deprecated="not deprecated">
  3850. </constructor>
  3851. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  3852. transient="false" volatile="false"
  3853. static="true" final="true" visibility="public"
  3854. deprecated="not deprecated">
  3855. <doc>
  3856. <![CDATA[@see
  3857. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3858. core-default.xml</a>]]>
  3859. </doc>
  3860. </field>
  3861. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  3862. transient="false" volatile="false"
  3863. static="true" final="true" visibility="public"
  3864. deprecated="not deprecated">
  3865. <doc>
  3866. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  3867. </doc>
  3868. </field>
  3869. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  3870. transient="false" volatile="false"
  3871. static="true" final="true" visibility="public"
  3872. deprecated="not deprecated">
  3873. <doc>
  3874. <![CDATA[@see
  3875. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3876. core-default.xml</a>]]>
  3877. </doc>
  3878. </field>
  3879. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  3880. transient="false" volatile="false"
  3881. static="true" final="true" visibility="public"
  3882. deprecated="not deprecated">
  3883. <doc>
  3884. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  3885. </doc>
  3886. </field>
  3887. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3888. transient="false" volatile="false"
  3889. static="true" final="true" visibility="public"
  3890. deprecated="not deprecated">
  3891. <doc>
  3892. <![CDATA[@see
  3893. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3894. core-default.xml</a>]]>
  3895. </doc>
  3896. </field>
  3897. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  3898. transient="false" volatile="false"
  3899. static="true" final="true" visibility="public"
  3900. deprecated="not deprecated">
  3901. <doc>
  3902. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  3903. </doc>
  3904. </field>
  3905. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  3906. transient="false" volatile="false"
  3907. static="true" final="true" visibility="public"
  3908. deprecated="not deprecated">
  3909. <doc>
  3910. <![CDATA[@see
  3911. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3912. core-default.xml</a>]]>
  3913. </doc>
  3914. </field>
  3915. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  3916. transient="false" volatile="false"
  3917. static="true" final="true" visibility="public"
  3918. deprecated="not deprecated">
  3919. <doc>
  3920. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  3921. </doc>
  3922. </field>
  3923. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  3924. transient="false" volatile="false"
  3925. static="true" final="true" visibility="public"
  3926. deprecated="not deprecated">
  3927. <doc>
  3928. <![CDATA[@see
  3929. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3930. core-default.xml</a>]]>
  3931. </doc>
  3932. </field>
  3933. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  3934. transient="false" volatile="false"
  3935. static="true" final="true" visibility="public"
  3936. deprecated="not deprecated">
  3937. <doc>
  3938. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  3939. </doc>
  3940. </field>
  3941. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  3942. transient="false" volatile="false"
  3943. static="true" final="true" visibility="public"
  3944. deprecated="not deprecated">
  3945. <doc>
  3946. <![CDATA[@see
  3947. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3948. core-default.xml</a>]]>
  3949. </doc>
  3950. </field>
  3951. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  3952. transient="false" volatile="false"
  3953. static="true" final="true" visibility="public"
  3954. deprecated="not deprecated">
  3955. <doc>
  3956. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  3957. </doc>
  3958. </field>
  3959. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  3960. transient="false" volatile="false"
  3961. static="true" final="true" visibility="public"
  3962. deprecated="not deprecated">
  3963. <doc>
  3964. <![CDATA[@see
  3965. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3966. core-default.xml</a>]]>
  3967. </doc>
  3968. </field>
  3969. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  3970. transient="false" volatile="false"
  3971. static="true" final="true" visibility="public"
  3972. deprecated="not deprecated">
  3973. <doc>
  3974. <![CDATA[@see
  3975. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3976. core-default.xml</a>]]>
  3977. </doc>
  3978. </field>
  3979. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  3980. transient="false" volatile="false"
  3981. static="true" final="true" visibility="public"
  3982. deprecated="not deprecated">
  3983. <doc>
  3984. <![CDATA[@see
  3985. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3986. core-default.xml</a>]]>
  3987. </doc>
  3988. </field>
  3989. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  3990. transient="false" volatile="false"
  3991. static="true" final="true" visibility="public"
  3992. deprecated="not deprecated">
  3993. <doc>
  3994. <![CDATA[@see
  3995. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3996. core-default.xml</a>]]>
  3997. </doc>
  3998. </field>
  3999. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4000. transient="false" volatile="false"
  4001. static="true" final="true" visibility="public"
  4002. deprecated="not deprecated">
  4003. </field>
  4004. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4005. transient="false" volatile="false"
  4006. static="true" final="true" visibility="public"
  4007. deprecated="not deprecated">
  4008. <doc>
  4009. <![CDATA[@see
  4010. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4011. core-default.xml</a>]]>
  4012. </doc>
  4013. </field>
  4014. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4015. transient="false" volatile="false"
  4016. static="true" final="true" visibility="public"
  4017. deprecated="not deprecated">
  4018. <doc>
  4019. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4020. </doc>
  4021. </field>
  4022. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4023. transient="false" volatile="false"
  4024. static="true" final="true" visibility="public"
  4025. deprecated="not deprecated">
  4026. <doc>
  4027. <![CDATA[Directories that cannot be removed unless empty, even by an
  4028. administrator.]]>
  4029. </doc>
  4030. </field>
  4031. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4032. transient="false" volatile="false"
  4033. static="true" final="true" visibility="public"
  4034. deprecated="not deprecated">
  4035. <doc>
  4036. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4037. </doc>
  4038. </field>
  4039. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4040. transient="false" volatile="false"
  4041. static="true" final="true" visibility="public"
  4042. deprecated="not deprecated">
  4043. <doc>
  4044. <![CDATA[@see
  4045. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4046. core-default.xml</a>]]>
  4047. </doc>
  4048. </field>
  4049. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4050. transient="false" volatile="false"
  4051. static="true" final="true" visibility="public"
  4052. deprecated="not deprecated">
  4053. <doc>
  4054. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4055. </doc>
  4056. </field>
  4057. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4058. transient="false" volatile="false"
  4059. static="true" final="true" visibility="public"
  4060. deprecated="not deprecated">
  4061. <doc>
  4062. <![CDATA[@see
  4063. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4064. core-default.xml</a>]]>
  4065. </doc>
  4066. </field>
  4067. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4068. transient="false" volatile="false"
  4069. static="true" final="true" visibility="public"
  4070. deprecated="not deprecated">
  4071. <doc>
  4072. <![CDATA[@see
  4073. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4074. core-default.xml</a>]]>
  4075. </doc>
  4076. </field>
  4077. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  4078. transient="false" volatile="false"
  4079. static="true" final="true" visibility="public"
  4080. deprecated="not deprecated">
  4081. <doc>
  4082. <![CDATA[@see
  4083. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4084. core-default.xml</a>]]>
  4085. </doc>
  4086. </field>
  4087. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4088. transient="false" volatile="false"
  4089. static="true" final="true" visibility="public"
  4090. deprecated="not deprecated">
  4091. <doc>
  4092. <![CDATA[@see
  4093. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4094. core-default.xml</a>]]>
  4095. </doc>
  4096. </field>
  4097. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4098. transient="false" volatile="false"
  4099. static="true" final="true" visibility="public"
  4100. deprecated="not deprecated">
  4101. <doc>
  4102. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4103. </doc>
  4104. </field>
  4105. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4106. transient="false" volatile="false"
  4107. static="true" final="true" visibility="public"
  4108. deprecated="not deprecated">
  4109. <doc>
  4110. <![CDATA[@see
  4111. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4112. core-default.xml</a>]]>
  4113. </doc>
  4114. </field>
  4115. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4116. transient="false" volatile="false"
  4117. static="true" final="true" visibility="public"
  4118. deprecated="not deprecated">
  4119. <doc>
  4120. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4121. </doc>
  4122. </field>
  4123. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4124. transient="false" volatile="false"
  4125. static="true" final="true" visibility="public"
  4126. deprecated="not deprecated">
  4127. <doc>
  4128. <![CDATA[@see
  4129. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4130. core-default.xml</a>]]>
  4131. </doc>
  4132. </field>
  4133. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4134. transient="false" volatile="false"
  4135. static="true" final="true" visibility="public"
  4136. deprecated="not deprecated">
  4137. <doc>
  4138. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4139. </doc>
  4140. </field>
  4141. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4142. transient="false" volatile="false"
  4143. static="true" final="true" visibility="public"
  4144. deprecated="not deprecated">
  4145. <doc>
  4146. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4147. </doc>
  4148. </field>
  4149. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4150. transient="false" volatile="false"
  4151. static="true" final="true" visibility="public"
  4152. deprecated="not deprecated">
  4153. <doc>
  4154. <![CDATA[@see
  4155. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4156. core-default.xml</a>]]>
  4157. </doc>
  4158. </field>
  4159. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4160. transient="false" volatile="false"
  4161. static="true" final="true" visibility="public"
  4162. deprecated="not deprecated">
  4163. <doc>
  4164. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4165. </doc>
  4166. </field>
  4167. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4168. transient="false" volatile="false"
  4169. static="true" final="true" visibility="public"
  4170. deprecated="not deprecated">
  4171. <doc>
  4172. <![CDATA[@see
  4173. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4174. core-default.xml</a>]]>
  4175. </doc>
  4176. </field>
  4177. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4178. transient="false" volatile="false"
  4179. static="true" final="true" visibility="public"
  4180. deprecated="not deprecated">
  4181. <doc>
  4182. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4183. </doc>
  4184. </field>
  4185. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4186. transient="false" volatile="false"
  4187. static="true" final="true" visibility="public"
  4188. deprecated="not deprecated">
  4189. <doc>
  4190. <![CDATA[@see
  4191. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4192. core-default.xml</a>]]>
  4193. </doc>
  4194. </field>
  4195. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4196. transient="false" volatile="false"
  4197. static="true" final="true" visibility="public"
  4198. deprecated="not deprecated">
  4199. <doc>
  4200. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4201. </doc>
  4202. </field>
  4203. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4204. transient="false" volatile="false"
  4205. static="true" final="true" visibility="public"
  4206. deprecated="not deprecated">
  4207. <doc>
  4208. <![CDATA[@see
  4209. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4210. core-default.xml</a>]]>
  4211. </doc>
  4212. </field>
  4213. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4214. transient="false" volatile="false"
  4215. static="true" final="true" visibility="public"
  4216. deprecated="not deprecated">
  4217. <doc>
  4218. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4219. </doc>
  4220. </field>
  4221. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4222. transient="false" volatile="false"
  4223. static="true" final="true" visibility="public"
  4224. deprecated="not deprecated">
  4225. <doc>
  4226. <![CDATA[@see
  4227. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4228. core-default.xml</a>]]>
  4229. </doc>
  4230. </field>
  4231. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4232. transient="false" volatile="false"
  4233. static="true" final="true" visibility="public"
  4234. deprecated="not deprecated">
  4235. <doc>
  4236. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4237. </doc>
  4238. </field>
  4239. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4240. transient="false" volatile="false"
  4241. static="true" final="true" visibility="public"
  4242. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4243. in mapred-default.xml
  4244. See https://issues.apache.org/jira/browse/HADOOP-6801">
  4245. <doc>
  4246. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4247. in mapred-default.xml
  4248. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  4249. </doc>
  4250. </field>
  4251. <field name="IO_SORT_MB_DEFAULT" type="int"
  4252. transient="false" volatile="false"
  4253. static="true" final="true" visibility="public"
  4254. deprecated="not deprecated">
  4255. <doc>
  4256. <![CDATA[Default value for IO_SORT_MB_DEFAULT]]>
  4257. </doc>
  4258. </field>
  4259. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4260. transient="false" volatile="false"
  4261. static="true" final="true" visibility="public"
  4262. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  4263. in mapred-default.xml
  4264. See https://issues.apache.org/jira/browse/HADOOP-6801">
  4265. <doc>
  4266. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  4267. in mapred-default.xml
  4268. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  4269. </doc>
  4270. </field>
  4271. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  4272. transient="false" volatile="false"
  4273. static="true" final="true" visibility="public"
  4274. deprecated="not deprecated">
  4275. <doc>
  4276. <![CDATA[Default value for IO_SORT_FACTOR_DEFAULT]]>
  4277. </doc>
  4278. </field>
  4279. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  4280. transient="false" volatile="false"
  4281. static="true" final="true" visibility="public"
  4282. deprecated="not deprecated">
  4283. <doc>
  4284. <![CDATA[@see
  4285. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4286. core-default.xml</a>]]>
  4287. </doc>
  4288. </field>
  4289. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  4290. transient="false" volatile="false"
  4291. static="true" final="true" visibility="public"
  4292. deprecated="not deprecated">
  4293. <doc>
  4294. <![CDATA[@see
  4295. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4296. core-default.xml</a>]]>
  4297. </doc>
  4298. </field>
  4299. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  4300. transient="false" volatile="false"
  4301. static="true" final="true" visibility="public"
  4302. deprecated="not deprecated">
  4303. <doc>
  4304. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  4305. </doc>
  4306. </field>
  4307. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4308. transient="false" volatile="false"
  4309. static="true" final="true" visibility="public"
  4310. deprecated="not deprecated">
  4311. <doc>
  4312. <![CDATA[@see
  4313. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4314. core-default.xml</a>]]>
  4315. </doc>
  4316. </field>
  4317. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  4318. transient="false" volatile="false"
  4319. static="true" final="true" visibility="public"
  4320. deprecated="not deprecated">
  4321. <doc>
  4322. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  4323. </doc>
  4324. </field>
  4325. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4326. transient="false" volatile="false"
  4327. static="true" final="true" visibility="public"
  4328. deprecated="not deprecated">
  4329. <doc>
  4330. <![CDATA[@see
  4331. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4332. core-default.xml</a>]]>
  4333. </doc>
  4334. </field>
  4335. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  4336. transient="false" volatile="false"
  4337. static="true" final="true" visibility="public"
  4338. deprecated="not deprecated">
  4339. <doc>
  4340. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  4341. </doc>
  4342. </field>
  4343. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  4344. transient="false" volatile="false"
  4345. static="true" final="true" visibility="public"
  4346. deprecated="not deprecated">
  4347. </field>
  4348. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  4349. transient="false" volatile="false"
  4350. static="true" final="true" visibility="public"
  4351. deprecated="not deprecated">
  4352. </field>
  4353. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  4354. transient="false" volatile="false"
  4355. static="true" final="true" visibility="public"
  4356. deprecated="not deprecated">
  4357. </field>
  4358. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  4359. transient="false" volatile="false"
  4360. static="true" final="true" visibility="public"
  4361. deprecated="not deprecated">
  4362. </field>
  4363. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  4364. transient="false" volatile="false"
  4365. static="true" final="true" visibility="public"
  4366. deprecated="not deprecated">
  4367. </field>
  4368. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  4369. transient="false" volatile="false"
  4370. static="true" final="true" visibility="public"
  4371. deprecated="not deprecated">
  4372. </field>
  4373. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  4374. transient="false" volatile="false"
  4375. static="true" final="true" visibility="public"
  4376. deprecated="not deprecated">
  4377. <doc>
  4378. <![CDATA[@see
  4379. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4380. core-default.xml</a>]]>
  4381. </doc>
  4382. </field>
  4383. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  4384. transient="false" volatile="false"
  4385. static="true" final="true" visibility="public"
  4386. deprecated="not deprecated">
  4387. <doc>
  4388. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  4389. </doc>
  4390. </field>
  4391. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  4392. transient="false" volatile="false"
  4393. static="true" final="true" visibility="public"
  4394. deprecated="not deprecated">
  4395. <doc>
  4396. <![CDATA[@see
  4397. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4398. core-default.xml</a>]]>
  4399. </doc>
  4400. </field>
  4401. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  4402. transient="false" volatile="false"
  4403. static="true" final="true" visibility="public"
  4404. deprecated="not deprecated">
  4405. <doc>
  4406. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  4407. </doc>
  4408. </field>
  4409. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  4410. transient="false" volatile="false"
  4411. static="true" final="true" visibility="public"
  4412. deprecated="not deprecated">
  4413. <doc>
  4414. <![CDATA[@see
  4415. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4416. core-default.xml</a>]]>
  4417. </doc>
  4418. </field>
  4419. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  4420. transient="false" volatile="false"
  4421. static="true" final="true" visibility="public"
  4422. deprecated="not deprecated">
  4423. <doc>
  4424. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  4425. </doc>
  4426. </field>
  4427. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  4428. transient="false" volatile="false"
  4429. static="true" final="true" visibility="public"
  4430. deprecated="not deprecated">
  4431. <doc>
  4432. <![CDATA[@see
  4433. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4434. core-default.xml</a>]]>
  4435. </doc>
  4436. </field>
  4437. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  4438. transient="false" volatile="false"
  4439. static="true" final="true" visibility="public"
  4440. deprecated="not deprecated">
  4441. <doc>
  4442. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  4443. </doc>
  4444. </field>
  4445. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  4446. transient="false" volatile="false"
  4447. static="true" final="true" visibility="public"
  4448. deprecated="not deprecated">
  4449. <doc>
  4450. <![CDATA[@see
  4451. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4452. core-default.xml</a>]]>
  4453. </doc>
  4454. </field>
  4455. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  4456. transient="false" volatile="false"
  4457. static="true" final="true" visibility="public"
  4458. deprecated="not deprecated">
  4459. <doc>
  4460. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  4461. </doc>
  4462. </field>
  4463. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  4464. transient="false" volatile="false"
  4465. static="true" final="true" visibility="public"
  4466. deprecated="not deprecated">
  4467. <doc>
  4468. <![CDATA[@see
  4469. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4470. core-default.xml</a>]]>
  4471. </doc>
  4472. </field>
  4473. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  4474. transient="false" volatile="false"
  4475. static="true" final="true" visibility="public"
  4476. deprecated="not deprecated">
  4477. <doc>
  4478. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  4479. </doc>
  4480. </field>
  4481. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  4482. transient="false" volatile="false"
  4483. static="true" final="true" visibility="public"
  4484. deprecated="not deprecated">
  4485. <doc>
  4486. <![CDATA[Enable low-latency connections from the client]]>
  4487. </doc>
  4488. </field>
  4489. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  4490. transient="false" volatile="false"
  4491. static="true" final="true" visibility="public"
  4492. deprecated="not deprecated">
  4493. <doc>
  4494. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  4495. </doc>
  4496. </field>
  4497. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  4498. transient="false" volatile="false"
  4499. static="true" final="true" visibility="public"
  4500. deprecated="not deprecated">
  4501. <doc>
  4502. <![CDATA[@see
  4503. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4504. core-default.xml</a>]]>
  4505. </doc>
  4506. </field>
  4507. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4508. transient="false" volatile="false"
  4509. static="true" final="true" visibility="public"
  4510. deprecated="not deprecated">
  4511. <doc>
  4512. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4513. </doc>
  4514. </field>
  4515. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4516. transient="false" volatile="false"
  4517. static="true" final="true" visibility="public"
  4518. deprecated="not deprecated">
  4519. <doc>
  4520. <![CDATA[@see
  4521. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4522. core-default.xml</a>]]>
  4523. </doc>
  4524. </field>
  4525. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4526. transient="false" volatile="false"
  4527. static="true" final="true" visibility="public"
  4528. deprecated="not deprecated">
  4529. <doc>
  4530. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4531. </doc>
  4532. </field>
  4533. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4534. transient="false" volatile="false"
  4535. static="true" final="true" visibility="public"
  4536. deprecated="not deprecated">
  4537. <doc>
  4538. <![CDATA[@see
  4539. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4540. core-default.xml</a>]]>
  4541. </doc>
  4542. </field>
  4543. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  4544. transient="false" volatile="false"
  4545. static="true" final="true" visibility="public"
  4546. deprecated="not deprecated">
  4547. <doc>
  4548. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  4549. </doc>
  4550. </field>
  4551. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  4552. transient="false" volatile="false"
  4553. static="true" final="true" visibility="public"
  4554. deprecated="not deprecated">
  4555. <doc>
  4556. <![CDATA[@see
  4557. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4558. core-default.xml</a>]]>
  4559. </doc>
  4560. </field>
  4561. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  4562. transient="false" volatile="false"
  4563. static="true" final="true" visibility="public"
  4564. deprecated="not deprecated">
  4565. <doc>
  4566. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  4567. </doc>
  4568. </field>
  4569. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  4570. transient="false" volatile="false"
  4571. static="true" final="true" visibility="public"
  4572. deprecated="not deprecated">
  4573. <doc>
  4574. <![CDATA[@see
  4575. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4576. core-default.xml</a>]]>
  4577. </doc>
  4578. </field>
  4579. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  4580. transient="false" volatile="false"
  4581. static="true" final="true" visibility="public"
  4582. deprecated="not deprecated">
  4583. <doc>
  4584. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  4585. </doc>
  4586. </field>
  4587. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  4588. transient="false" volatile="false"
  4589. static="true" final="true" visibility="public"
  4590. deprecated="not deprecated">
  4591. <doc>
  4592. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  4593. </doc>
  4594. </field>
  4595. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  4596. transient="false" volatile="false"
  4597. static="true" final="true" visibility="public"
  4598. deprecated="not deprecated">
  4599. </field>
  4600. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  4601. transient="false" volatile="false"
  4602. static="true" final="true" visibility="public"
  4603. deprecated="not deprecated">
  4604. <doc>
  4605. <![CDATA[@see
  4606. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4607. core-default.xml</a>]]>
  4608. </doc>
  4609. </field>
  4610. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  4611. transient="false" volatile="false"
  4612. static="true" final="true" visibility="public"
  4613. deprecated="not deprecated">
  4614. </field>
  4615. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  4616. transient="false" volatile="false"
  4617. static="true" final="true" visibility="public"
  4618. deprecated="not deprecated">
  4619. <doc>
  4620. <![CDATA[@see
  4621. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4622. core-default.xml</a>]]>
  4623. </doc>
  4624. </field>
  4625. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  4626. transient="false" volatile="false"
  4627. static="true" final="true" visibility="public"
  4628. deprecated="not deprecated">
  4629. <doc>
  4630. <![CDATA[@see
  4631. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4632. core-default.xml</a>]]>
  4633. </doc>
  4634. </field>
  4635. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  4636. transient="false" volatile="false"
  4637. static="true" final="true" visibility="public"
  4638. deprecated="not deprecated">
  4639. <doc>
  4640. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  4641. </doc>
  4642. </field>
  4643. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  4644. transient="false" volatile="false"
  4645. static="true" final="true" visibility="public"
  4646. deprecated="not deprecated">
  4647. <doc>
  4648. <![CDATA[@see
  4649. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4650. core-default.xml</a>]]>
  4651. </doc>
  4652. </field>
  4653. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  4654. transient="false" volatile="false"
  4655. static="true" final="true" visibility="public"
  4656. deprecated="not deprecated">
  4657. <doc>
  4658. <![CDATA[@see
  4659. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4660. core-default.xml</a>]]>
  4661. </doc>
  4662. </field>
  4663. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  4664. transient="false" volatile="false"
  4665. static="true" final="true" visibility="public"
  4666. deprecated="not deprecated">
  4667. <doc>
  4668. <![CDATA[@see
  4669. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4670. core-default.xml</a>]]>
  4671. </doc>
  4672. </field>
  4673. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  4674. transient="false" volatile="false"
  4675. static="true" final="true" visibility="public"
  4676. deprecated="not deprecated">
  4677. <doc>
  4678. <![CDATA[@see
  4679. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4680. core-default.xml</a>]]>
  4681. </doc>
  4682. </field>
  4683. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  4684. transient="false" volatile="false"
  4685. static="true" final="true" visibility="public"
  4686. deprecated="not deprecated">
  4687. <doc>
  4688. <![CDATA[@see
  4689. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4690. core-default.xml</a>]]>
  4691. </doc>
  4692. </field>
  4693. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  4694. transient="false" volatile="false"
  4695. static="true" final="true" visibility="public"
  4696. deprecated="not deprecated">
  4697. <doc>
  4698. <![CDATA[@see
  4699. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4700. core-default.xml</a>]]>
  4701. </doc>
  4702. </field>
  4703. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  4704. transient="false" volatile="false"
  4705. static="true" final="true" visibility="public"
  4706. deprecated="not deprecated">
  4707. </field>
  4708. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  4709. transient="false" volatile="false"
  4710. static="true" final="true" visibility="public"
  4711. deprecated="not deprecated">
  4712. <doc>
  4713. <![CDATA[@see
  4714. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4715. core-default.xml</a>]]>
  4716. </doc>
  4717. </field>
  4718. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  4719. transient="false" volatile="false"
  4720. static="true" final="true" visibility="public"
  4721. deprecated="not deprecated">
  4722. <doc>
  4723. <![CDATA[@see
  4724. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4725. core-default.xml</a>]]>
  4726. </doc>
  4727. </field>
  4728. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  4729. transient="false" volatile="false"
  4730. static="true" final="true" visibility="public"
  4731. deprecated="not deprecated">
  4732. <doc>
  4733. <![CDATA[@see
  4734. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4735. core-default.xml</a>]]>
  4736. </doc>
  4737. </field>
  4738. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  4739. transient="false" volatile="false"
  4740. static="true" final="true" visibility="public"
  4741. deprecated="not deprecated">
  4742. <doc>
  4743. <![CDATA[@see
  4744. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4745. core-default.xml</a>]]>
  4746. </doc>
  4747. </field>
  4748. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  4749. transient="false" volatile="false"
  4750. static="true" final="true" visibility="public"
  4751. deprecated="not deprecated">
  4752. <doc>
  4753. <![CDATA[@see
  4754. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4755. core-default.xml</a>]]>
  4756. </doc>
  4757. </field>
  4758. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  4759. transient="false" volatile="false"
  4760. static="true" final="true" visibility="public"
  4761. deprecated="not deprecated">
  4762. <doc>
  4763. <![CDATA[@see
  4764. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4765. core-default.xml</a>]]>
  4766. </doc>
  4767. </field>
  4768. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  4769. transient="false" volatile="false"
  4770. static="true" final="true" visibility="public"
  4771. deprecated="not deprecated">
  4772. <doc>
  4773. <![CDATA[@see
  4774. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4775. core-default.xml</a>]]>
  4776. </doc>
  4777. </field>
  4778. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  4779. transient="false" volatile="false"
  4780. static="true" final="true" visibility="public"
  4781. deprecated="not deprecated">
  4782. <doc>
  4783. <![CDATA[@see
  4784. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4785. core-default.xml</a>]]>
  4786. </doc>
  4787. </field>
  4788. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  4789. transient="false" volatile="false"
  4790. static="true" final="true" visibility="public"
  4791. deprecated="not deprecated">
  4792. <doc>
  4793. <![CDATA[@see
  4794. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4795. core-default.xml</a>]]>
  4796. </doc>
  4797. </field>
  4798. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  4799. transient="false" volatile="false"
  4800. static="true" final="true" visibility="public"
  4801. deprecated="not deprecated">
  4802. <doc>
  4803. <![CDATA[@see
  4804. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4805. core-default.xml</a>]]>
  4806. </doc>
  4807. </field>
  4808. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  4809. transient="false" volatile="false"
  4810. static="true" final="true" visibility="public"
  4811. deprecated="not deprecated">
  4812. <doc>
  4813. <![CDATA[@see
  4814. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4815. core-default.xml</a>]]>
  4816. </doc>
  4817. </field>
  4818. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  4819. transient="false" volatile="false"
  4820. static="true" final="true" visibility="public"
  4821. deprecated="not deprecated">
  4822. </field>
  4823. <field name="HADOOP_SSL_ENABLED_KEY" type="java.lang.String"
  4824. transient="false" volatile="false"
  4825. static="true" final="true" visibility="public"
  4826. deprecated="not deprecated">
  4827. </field>
  4828. <field name="HADOOP_SSL_ENABLED_DEFAULT" type="boolean"
  4829. transient="false" volatile="false"
  4830. static="true" final="true" visibility="public"
  4831. deprecated="not deprecated">
  4832. </field>
  4833. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  4834. transient="false" volatile="false"
  4835. static="true" final="true" visibility="public"
  4836. deprecated="not deprecated">
  4837. <doc>
  4838. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4839. </doc>
  4840. </field>
  4841. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  4842. transient="false" volatile="false"
  4843. static="true" final="true" visibility="public"
  4844. deprecated="not deprecated">
  4845. <doc>
  4846. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  4847. </doc>
  4848. </field>
  4849. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  4850. transient="false" volatile="false"
  4851. static="true" final="true" visibility="public"
  4852. deprecated="not deprecated">
  4853. </field>
  4854. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  4855. transient="false" volatile="false"
  4856. static="true" final="true" visibility="public"
  4857. deprecated="not deprecated">
  4858. </field>
  4859. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  4860. transient="false" volatile="false"
  4861. static="true" final="true" visibility="public"
  4862. deprecated="not deprecated">
  4863. <doc>
  4864. <![CDATA[@see
  4865. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4866. core-default.xml</a>]]>
  4867. </doc>
  4868. </field>
  4869. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  4870. transient="false" volatile="false"
  4871. static="true" final="true" visibility="public"
  4872. deprecated="not deprecated">
  4873. <doc>
  4874. <![CDATA[Class to override Sasl Properties for a connection]]>
  4875. </doc>
  4876. </field>
  4877. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  4878. transient="false" volatile="false"
  4879. static="true" final="true" visibility="public"
  4880. deprecated="not deprecated">
  4881. </field>
  4882. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  4883. transient="false" volatile="false"
  4884. static="true" final="true" visibility="public"
  4885. deprecated="not deprecated">
  4886. </field>
  4887. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  4888. transient="false" volatile="false"
  4889. static="true" final="true" visibility="public"
  4890. deprecated="not deprecated">
  4891. </field>
  4892. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_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="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  4903. transient="false" volatile="false"
  4904. static="true" final="true" visibility="public"
  4905. deprecated="not deprecated">
  4906. </field>
  4907. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  4908. transient="false" volatile="false"
  4909. static="true" final="true" visibility="public"
  4910. deprecated="not deprecated">
  4911. <doc>
  4912. <![CDATA[@see
  4913. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4914. core-default.xml</a>]]>
  4915. </doc>
  4916. </field>
  4917. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  4918. transient="false" volatile="false"
  4919. static="true" final="true" visibility="public"
  4920. deprecated="not deprecated">
  4921. <doc>
  4922. <![CDATA[@see
  4923. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4924. core-default.xml</a>]]>
  4925. </doc>
  4926. </field>
  4927. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  4928. transient="false" volatile="false"
  4929. static="true" final="true" visibility="public"
  4930. deprecated="not deprecated">
  4931. <doc>
  4932. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  4933. </doc>
  4934. </field>
  4935. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  4936. transient="false" volatile="false"
  4937. static="true" final="true" visibility="public"
  4938. deprecated="not deprecated">
  4939. <doc>
  4940. <![CDATA[Class to override Impersonation provider]]>
  4941. </doc>
  4942. </field>
  4943. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  4944. transient="false" volatile="false"
  4945. static="true" final="true" visibility="public"
  4946. deprecated="not deprecated">
  4947. <doc>
  4948. <![CDATA[@see
  4949. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4950. core-default.xml</a>]]>
  4951. </doc>
  4952. </field>
  4953. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  4954. transient="false" volatile="false"
  4955. static="true" final="true" visibility="public"
  4956. deprecated="not deprecated">
  4957. <doc>
  4958. <![CDATA[@see
  4959. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4960. core-default.xml</a>]]>
  4961. </doc>
  4962. </field>
  4963. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  4964. transient="false" volatile="false"
  4965. static="true" final="true" visibility="public"
  4966. deprecated="not deprecated">
  4967. <doc>
  4968. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  4969. </doc>
  4970. </field>
  4971. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  4972. transient="false" volatile="false"
  4973. static="true" final="true" visibility="public"
  4974. deprecated="not deprecated">
  4975. <doc>
  4976. <![CDATA[@see
  4977. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4978. core-default.xml</a>]]>
  4979. </doc>
  4980. </field>
  4981. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  4982. transient="false" volatile="false"
  4983. static="true" final="true" visibility="public"
  4984. deprecated="not deprecated">
  4985. <doc>
  4986. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  4987. </doc>
  4988. </field>
  4989. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  4990. transient="false" volatile="false"
  4991. static="true" final="true" visibility="public"
  4992. deprecated="not deprecated">
  4993. <doc>
  4994. <![CDATA[@see
  4995. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4996. core-default.xml</a>]]>
  4997. </doc>
  4998. </field>
  4999. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5000. transient="false" volatile="false"
  5001. static="true" final="true" visibility="public"
  5002. deprecated="not deprecated">
  5003. <doc>
  5004. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5005. </doc>
  5006. </field>
  5007. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5008. transient="false" volatile="false"
  5009. static="true" final="true" visibility="public"
  5010. deprecated="not deprecated">
  5011. <doc>
  5012. <![CDATA[@see
  5013. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5014. core-default.xml</a>]]>
  5015. </doc>
  5016. </field>
  5017. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5018. transient="false" volatile="false"
  5019. static="true" final="true" visibility="public"
  5020. deprecated="not deprecated">
  5021. <doc>
  5022. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5023. </doc>
  5024. </field>
  5025. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5026. transient="false" volatile="false"
  5027. static="true" final="true" visibility="public"
  5028. deprecated="not deprecated">
  5029. <doc>
  5030. <![CDATA[@see
  5031. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5032. core-default.xml</a>]]>
  5033. </doc>
  5034. </field>
  5035. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5036. transient="false" volatile="false"
  5037. static="true" final="true" visibility="public"
  5038. deprecated="not deprecated">
  5039. <doc>
  5040. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5041. </doc>
  5042. </field>
  5043. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5044. transient="false" volatile="false"
  5045. static="true" final="true" visibility="public"
  5046. deprecated="not deprecated">
  5047. <doc>
  5048. <![CDATA[@see
  5049. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5050. core-default.xml</a>]]>
  5051. </doc>
  5052. </field>
  5053. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5054. transient="false" volatile="false"
  5055. static="true" final="true" visibility="public"
  5056. deprecated="not deprecated">
  5057. <doc>
  5058. <![CDATA[@see
  5059. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5060. core-default.xml</a>]]>
  5061. </doc>
  5062. </field>
  5063. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5064. transient="false" volatile="false"
  5065. static="true" final="true" visibility="public"
  5066. deprecated="not deprecated">
  5067. </field>
  5068. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5069. transient="false" volatile="false"
  5070. static="true" final="true" visibility="public"
  5071. deprecated="not deprecated">
  5072. <doc>
  5073. <![CDATA[@see
  5074. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5075. core-default.xml</a>]]>
  5076. </doc>
  5077. </field>
  5078. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5079. transient="false" volatile="false"
  5080. static="true" final="true" visibility="public"
  5081. deprecated="not deprecated">
  5082. </field>
  5083. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5084. transient="false" volatile="false"
  5085. static="true" final="true" visibility="public"
  5086. deprecated="not deprecated">
  5087. <doc>
  5088. <![CDATA[@see
  5089. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5090. core-default.xml</a>]]>
  5091. </doc>
  5092. </field>
  5093. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5094. transient="false" volatile="false"
  5095. static="true" final="true" visibility="public"
  5096. deprecated="not deprecated">
  5097. </field>
  5098. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  5099. transient="false" volatile="false"
  5100. static="true" final="true" visibility="public"
  5101. deprecated="not deprecated">
  5102. <doc>
  5103. <![CDATA[@see
  5104. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5105. core-default.xml</a>]]>
  5106. </doc>
  5107. </field>
  5108. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  5109. transient="false" volatile="false"
  5110. static="true" final="true" visibility="public"
  5111. deprecated="not deprecated">
  5112. </field>
  5113. <doc>
  5114. <![CDATA[This class contains constants for configuration keys used
  5115. in the common code.
  5116. It includes all publicly documented configuration keys. In general
  5117. this class should not be used directly (use CommonConfigurationKeys
  5118. instead)]]>
  5119. </doc>
  5120. </class>
  5121. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5122. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5123. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5124. abstract="false"
  5125. static="false" final="false" visibility="public"
  5126. deprecated="not deprecated">
  5127. <implements name="org.apache.hadoop.io.Writable"/>
  5128. <constructor name="ContentSummary"
  5129. static="false" final="false" visibility="public"
  5130. deprecated="not deprecated">
  5131. <doc>
  5132. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5133. </doc>
  5134. </constructor>
  5135. <constructor name="ContentSummary" type="long, long, long"
  5136. static="false" final="false" visibility="public"
  5137. deprecated="not deprecated">
  5138. <doc>
  5139. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5140. This constructor implicitly set spaceConsumed the same as length.
  5141. spaceConsumed and length must be set explicitly with
  5142. ContentSummary.Builder]]>
  5143. </doc>
  5144. </constructor>
  5145. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5146. static="false" final="false" visibility="public"
  5147. deprecated="not deprecated">
  5148. <doc>
  5149. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5150. </doc>
  5151. </constructor>
  5152. <method name="getLength" return="long"
  5153. abstract="false" native="false" synchronized="false"
  5154. static="false" final="false" visibility="public"
  5155. deprecated="not deprecated">
  5156. <doc>
  5157. <![CDATA[@return the length]]>
  5158. </doc>
  5159. </method>
  5160. <method name="getSnapshotLength" return="long"
  5161. abstract="false" native="false" synchronized="false"
  5162. static="false" final="false" visibility="public"
  5163. deprecated="not deprecated">
  5164. </method>
  5165. <method name="getDirectoryCount" return="long"
  5166. abstract="false" native="false" synchronized="false"
  5167. static="false" final="false" visibility="public"
  5168. deprecated="not deprecated">
  5169. <doc>
  5170. <![CDATA[@return the directory count]]>
  5171. </doc>
  5172. </method>
  5173. <method name="getSnapshotDirectoryCount" return="long"
  5174. abstract="false" native="false" synchronized="false"
  5175. static="false" final="false" visibility="public"
  5176. deprecated="not deprecated">
  5177. </method>
  5178. <method name="getFileCount" return="long"
  5179. abstract="false" native="false" synchronized="false"
  5180. static="false" final="false" visibility="public"
  5181. deprecated="not deprecated">
  5182. <doc>
  5183. <![CDATA[@return the file count]]>
  5184. </doc>
  5185. </method>
  5186. <method name="getSnapshotFileCount" return="long"
  5187. abstract="false" native="false" synchronized="false"
  5188. static="false" final="false" visibility="public"
  5189. deprecated="not deprecated">
  5190. </method>
  5191. <method name="getSnapshotSpaceConsumed" return="long"
  5192. abstract="false" native="false" synchronized="false"
  5193. static="false" final="false" visibility="public"
  5194. deprecated="not deprecated">
  5195. </method>
  5196. <method name="equals" return="boolean"
  5197. abstract="false" native="false" synchronized="false"
  5198. static="false" final="false" visibility="public"
  5199. deprecated="not deprecated">
  5200. <param name="to" type="java.lang.Object"/>
  5201. </method>
  5202. <method name="hashCode" return="int"
  5203. abstract="false" native="false" synchronized="false"
  5204. static="false" final="false" visibility="public"
  5205. deprecated="not deprecated">
  5206. </method>
  5207. <method name="getHeader" return="java.lang.String"
  5208. abstract="false" native="false" synchronized="false"
  5209. static="true" final="false" visibility="public"
  5210. deprecated="not deprecated">
  5211. <param name="qOption" type="boolean"/>
  5212. <doc>
  5213. <![CDATA[Return the header of the output.
  5214. if qOption is false, output directory count, file count, and content size;
  5215. if qOption is true, output quota and remaining quota as well.
  5216. @param qOption a flag indicating if quota needs to be printed or not
  5217. @return the header of the output]]>
  5218. </doc>
  5219. </method>
  5220. <method name="getHeaderFields" return="java.lang.String[]"
  5221. abstract="false" native="false" synchronized="false"
  5222. static="true" final="false" visibility="public"
  5223. deprecated="not deprecated">
  5224. <doc>
  5225. <![CDATA[Returns the names of the fields from the summary header.
  5226. @return names of fields as displayed in the header]]>
  5227. </doc>
  5228. </method>
  5229. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5230. abstract="false" native="false" synchronized="false"
  5231. static="true" final="false" visibility="public"
  5232. deprecated="not deprecated">
  5233. <doc>
  5234. <![CDATA[Returns the names of the fields used in the quota summary.
  5235. @return names of quota fields as displayed in the header]]>
  5236. </doc>
  5237. </method>
  5238. <method name="toString" return="java.lang.String"
  5239. abstract="false" native="false" synchronized="false"
  5240. static="false" final="false" visibility="public"
  5241. deprecated="not deprecated">
  5242. </method>
  5243. <method name="toString" return="java.lang.String"
  5244. abstract="false" native="false" synchronized="false"
  5245. static="false" final="false" visibility="public"
  5246. deprecated="not deprecated">
  5247. <param name="qOption" type="boolean"/>
  5248. <doc>
  5249. <![CDATA[Return the string representation of the object in the output format.
  5250. if qOption is false, output directory count, file count, and content size;
  5251. if qOption is true, output quota and remaining quota as well.
  5252. @param qOption a flag indicating if quota needs to be printed or not
  5253. @return the string representation of the object]]>
  5254. </doc>
  5255. </method>
  5256. <method name="toString" return="java.lang.String"
  5257. abstract="false" native="false" synchronized="false"
  5258. static="false" final="false" visibility="public"
  5259. deprecated="not deprecated">
  5260. <param name="qOption" type="boolean"/>
  5261. <param name="hOption" type="boolean"/>
  5262. <doc>
  5263. <![CDATA[Return the string representation of the object in the output format.
  5264. For description of the options,
  5265. @see #toString(boolean, boolean, boolean, boolean, List)
  5266. @param qOption a flag indicating if quota needs to be printed or not
  5267. @param hOption a flag indicating if human readable output if to be used
  5268. @return the string representation of the object]]>
  5269. </doc>
  5270. </method>
  5271. <method name="toString" return="java.lang.String"
  5272. abstract="false" native="false" synchronized="false"
  5273. static="false" final="false" visibility="public"
  5274. deprecated="not deprecated">
  5275. <param name="qOption" type="boolean"/>
  5276. <param name="hOption" type="boolean"/>
  5277. <param name="xOption" type="boolean"/>
  5278. <doc>
  5279. <![CDATA[Return the string representation of the object in the output format.
  5280. For description of the options,
  5281. @see #toString(boolean, boolean, boolean, boolean, List)
  5282. @param qOption a flag indicating if quota needs to be printed or not
  5283. @param hOption a flag indicating if human readable output is to be used
  5284. @param xOption a flag indicating if calculation from snapshots is to be
  5285. included in the output
  5286. @return the string representation of the object]]>
  5287. </doc>
  5288. </method>
  5289. <method name="toString" return="java.lang.String"
  5290. abstract="false" native="false" synchronized="false"
  5291. static="false" final="false" visibility="public"
  5292. deprecated="not deprecated">
  5293. <param name="qOption" type="boolean"/>
  5294. <param name="hOption" type="boolean"/>
  5295. <param name="tOption" type="boolean"/>
  5296. <param name="types" type="java.util.List"/>
  5297. <doc>
  5298. <![CDATA[Return the string representation of the object in the output format.
  5299. For description of the options,
  5300. @see #toString(boolean, boolean, boolean, boolean, List)
  5301. @param qOption a flag indicating if quota needs to be printed or not
  5302. @param hOption a flag indicating if human readable output if to be used
  5303. @param tOption a flag indicating if display quota by storage types
  5304. @param types Storage types to display
  5305. @return the string representation of the object]]>
  5306. </doc>
  5307. </method>
  5308. <method name="toString" return="java.lang.String"
  5309. abstract="false" native="false" synchronized="false"
  5310. static="false" final="false" visibility="public"
  5311. deprecated="not deprecated">
  5312. <param name="qOption" type="boolean"/>
  5313. <param name="hOption" type="boolean"/>
  5314. <param name="tOption" type="boolean"/>
  5315. <param name="xOption" type="boolean"/>
  5316. <param name="types" type="java.util.List"/>
  5317. <doc>
  5318. <![CDATA[Return the string representation of the object in the output format.
  5319. if qOption is false, output directory count, file count, and content size;
  5320. if qOption is true, output quota and remaining quota as well.
  5321. if hOption is false, file sizes are returned in bytes
  5322. if hOption is true, file sizes are returned in human readable
  5323. if tOption is true, display the quota by storage types
  5324. if tOption is false, same logic with #toString(boolean,boolean)
  5325. if xOption is false, output includes the calculation from snapshots
  5326. if xOption is true, output excludes the calculation from snapshots
  5327. @param qOption a flag indicating if quota needs to be printed or not
  5328. @param hOption a flag indicating if human readable output is to be used
  5329. @param tOption a flag indicating if display quota by storage types
  5330. @param xOption a flag indicating if calculation from snapshots is to be
  5331. included in the output
  5332. @param types Storage types to display
  5333. @return the string representation of the object]]>
  5334. </doc>
  5335. </method>
  5336. <doc>
  5337. <![CDATA[Store the summary of a content (a directory or a file).]]>
  5338. </doc>
  5339. </class>
  5340. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  5341. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  5342. <class name="CreateFlag" extends="java.lang.Enum"
  5343. abstract="false"
  5344. static="false" final="true" visibility="public"
  5345. deprecated="not deprecated">
  5346. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  5347. abstract="false" native="false" synchronized="false"
  5348. static="true" final="false" visibility="public"
  5349. deprecated="not deprecated">
  5350. </method>
  5351. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  5352. abstract="false" native="false" synchronized="false"
  5353. static="true" final="false" visibility="public"
  5354. deprecated="not deprecated">
  5355. <param name="name" type="java.lang.String"/>
  5356. </method>
  5357. <method name="validate"
  5358. abstract="false" native="false" synchronized="false"
  5359. static="true" final="false" visibility="public"
  5360. deprecated="not deprecated">
  5361. <param name="flag" type="java.util.EnumSet"/>
  5362. <doc>
  5363. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  5364. @param flag set of CreateFlag
  5365. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5366. </doc>
  5367. </method>
  5368. <method name="validate"
  5369. abstract="false" native="false" synchronized="false"
  5370. static="true" final="false" visibility="public"
  5371. deprecated="not deprecated">
  5372. <param name="path" type="java.lang.Object"/>
  5373. <param name="pathExists" type="boolean"/>
  5374. <param name="flag" type="java.util.EnumSet"/>
  5375. <exception name="IOException" type="java.io.IOException"/>
  5376. <doc>
  5377. <![CDATA[Validate the CreateFlag for create operation
  5378. @param path Object representing the path; usually String or {@link Path}
  5379. @param pathExists pass true if the path exists in the file system
  5380. @param flag set of CreateFlag
  5381. @throws IOException on error
  5382. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5383. </doc>
  5384. </method>
  5385. <method name="validateForAppend"
  5386. abstract="false" native="false" synchronized="false"
  5387. static="true" final="false" visibility="public"
  5388. deprecated="not deprecated">
  5389. <param name="flag" type="java.util.EnumSet"/>
  5390. <doc>
  5391. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  5392. APPEND, and cannot contain OVERWRITE.]]>
  5393. </doc>
  5394. </method>
  5395. <doc>
  5396. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  5397. <code>
  5398. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  5399. <code>
  5400. <p>
  5401. Use the CreateFlag as follows:
  5402. <ol>
  5403. <li> CREATE - to create a file if it does not exist,
  5404. else throw FileAlreadyExists.</li>
  5405. <li> APPEND - to append to a file if it exists,
  5406. else throw FileNotFoundException.</li>
  5407. <li> OVERWRITE - to truncate a file if it exists,
  5408. else throw FileNotFoundException.</li>
  5409. <li> CREATE|APPEND - to create a file if it does not exist,
  5410. else append to an existing file.</li>
  5411. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  5412. else overwrite an existing file.</li>
  5413. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  5414. In addition {@link Syncable#hsync()} should be called after each write,
  5415. if true synchronous behavior is required.</li>
  5416. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  5417. available.</li>
  5418. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  5419. partial block.</li>
  5420. </ol>
  5421. Following combinations are not valid and will result in
  5422. {@link HadoopIllegalArgumentException}:
  5423. <ol>
  5424. <li> APPEND|OVERWRITE</li>
  5425. <li> CREATE|APPEND|OVERWRITE</li>
  5426. </ol>]]>
  5427. </doc>
  5428. </class>
  5429. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  5430. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5431. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  5432. abstract="false"
  5433. static="false" final="false" visibility="public"
  5434. deprecated="not deprecated">
  5435. <constructor name="FileAlreadyExistsException"
  5436. static="false" final="false" visibility="public"
  5437. deprecated="not deprecated">
  5438. </constructor>
  5439. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  5440. static="false" final="false" visibility="public"
  5441. deprecated="not deprecated">
  5442. </constructor>
  5443. <doc>
  5444. <![CDATA[Used when target file already exists for any operation and
  5445. is not configured to be overwritten.]]>
  5446. </doc>
  5447. </class>
  5448. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5449. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  5450. <class name="FileChecksum" extends="java.lang.Object"
  5451. abstract="true"
  5452. static="false" final="false" visibility="public"
  5453. deprecated="not deprecated">
  5454. <implements name="org.apache.hadoop.io.Writable"/>
  5455. <constructor name="FileChecksum"
  5456. static="false" final="false" visibility="public"
  5457. deprecated="not deprecated">
  5458. </constructor>
  5459. <method name="getAlgorithmName" return="java.lang.String"
  5460. abstract="true" native="false" synchronized="false"
  5461. static="false" final="false" visibility="public"
  5462. deprecated="not deprecated">
  5463. <doc>
  5464. <![CDATA[The checksum algorithm name]]>
  5465. </doc>
  5466. </method>
  5467. <method name="getLength" return="int"
  5468. abstract="true" native="false" synchronized="false"
  5469. static="false" final="false" visibility="public"
  5470. deprecated="not deprecated">
  5471. <doc>
  5472. <![CDATA[The length of the checksum in bytes]]>
  5473. </doc>
  5474. </method>
  5475. <method name="getBytes" return="byte[]"
  5476. abstract="true" native="false" synchronized="false"
  5477. static="false" final="false" visibility="public"
  5478. deprecated="not deprecated">
  5479. <doc>
  5480. <![CDATA[The value of the checksum in bytes]]>
  5481. </doc>
  5482. </method>
  5483. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  5484. abstract="false" native="false" synchronized="false"
  5485. static="false" final="false" visibility="public"
  5486. deprecated="not deprecated">
  5487. </method>
  5488. <method name="equals" return="boolean"
  5489. abstract="false" native="false" synchronized="false"
  5490. static="false" final="false" visibility="public"
  5491. deprecated="not deprecated">
  5492. <param name="other" type="java.lang.Object"/>
  5493. <doc>
  5494. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  5495. </doc>
  5496. </method>
  5497. <method name="hashCode" return="int"
  5498. abstract="false" native="false" synchronized="false"
  5499. static="false" final="false" visibility="public"
  5500. deprecated="not deprecated">
  5501. </method>
  5502. <doc>
  5503. <![CDATA[An abstract class representing file checksums for files.]]>
  5504. </doc>
  5505. </class>
  5506. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  5507. <!-- start class org.apache.hadoop.fs.FileContext -->
  5508. <class name="FileContext" extends="java.lang.Object"
  5509. abstract="false"
  5510. static="false" final="false" visibility="public"
  5511. deprecated="not deprecated">
  5512. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  5513. abstract="false" native="false" synchronized="false"
  5514. static="false" final="false" visibility="protected"
  5515. deprecated="not deprecated">
  5516. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  5517. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5518. <exception name="IOException" type="java.io.IOException"/>
  5519. <doc>
  5520. <![CDATA[Get the file system of supplied path.
  5521. @param absOrFqPath - absolute or fully qualified path
  5522. @return the file system of the path
  5523. @throws UnsupportedFileSystemException If the file system for
  5524. <code>absOrFqPath</code> is not supported.
  5525. @throws IOException If the file system for <code>absOrFqPath</code> could
  5526. not be instantiated.]]>
  5527. </doc>
  5528. </method>
  5529. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5530. abstract="false" native="false" synchronized="false"
  5531. static="true" final="false" visibility="public"
  5532. deprecated="not deprecated">
  5533. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  5534. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5535. <doc>
  5536. <![CDATA[Create a FileContext with specified FS as default using the specified
  5537. config.
  5538. @param defFS
  5539. @param aConf
  5540. @return new FileContext with specifed FS as default.]]>
  5541. </doc>
  5542. </method>
  5543. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5544. abstract="false" native="false" synchronized="false"
  5545. static="true" final="false" visibility="protected"
  5546. deprecated="not deprecated">
  5547. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  5548. <doc>
  5549. <![CDATA[Create a FileContext for specified file system using the default config.
  5550. @param defaultFS
  5551. @return a FileContext with the specified AbstractFileSystem
  5552. as the default FS.]]>
  5553. </doc>
  5554. </method>
  5555. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5556. abstract="false" native="false" synchronized="false"
  5557. static="true" final="false" visibility="public"
  5558. deprecated="not deprecated">
  5559. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5560. <doc>
  5561. <![CDATA[Create a FileContext using the default config read from the
  5562. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  5563. from core-defaults.xml in the release jar.
  5564. @throws UnsupportedFileSystemException If the file system from the default
  5565. configuration is not supported]]>
  5566. </doc>
  5567. </method>
  5568. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  5569. abstract="false" native="false" synchronized="false"
  5570. static="true" final="false" visibility="public"
  5571. deprecated="not deprecated">
  5572. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5573. <doc>
  5574. <![CDATA[@return a FileContext for the local file system using the default config.
  5575. @throws UnsupportedFileSystemException If the file system for
  5576. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  5577. </doc>
  5578. </method>
  5579. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5580. abstract="false" native="false" synchronized="false"
  5581. static="true" final="false" visibility="public"
  5582. deprecated="not deprecated">
  5583. <param name="defaultFsUri" type="java.net.URI"/>
  5584. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5585. <doc>
  5586. <![CDATA[Create a FileContext for specified URI using the default config.
  5587. @param defaultFsUri
  5588. @return a FileContext with the specified URI as the default FS.
  5589. @throws UnsupportedFileSystemException If the file system for
  5590. <code>defaultFsUri</code> is not supported]]>
  5591. </doc>
  5592. </method>
  5593. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5594. abstract="false" native="false" synchronized="false"
  5595. static="true" final="false" visibility="public"
  5596. deprecated="not deprecated">
  5597. <param name="defaultFsUri" type="java.net.URI"/>
  5598. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5599. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5600. <doc>
  5601. <![CDATA[Create a FileContext for specified default URI using the specified config.
  5602. @param defaultFsUri
  5603. @param aConf
  5604. @return new FileContext for specified uri
  5605. @throws UnsupportedFileSystemException If the file system with specified is
  5606. not supported
  5607. @throws RuntimeException If the file system specified is supported but
  5608. could not be instantiated, or if login fails.]]>
  5609. </doc>
  5610. </method>
  5611. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5612. abstract="false" native="false" synchronized="false"
  5613. static="true" final="false" visibility="public"
  5614. deprecated="not deprecated">
  5615. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5616. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5617. <doc>
  5618. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  5619. {@link #getFileContext(URI, Configuration)} instead of this one.
  5620. @param aConf
  5621. @return new FileContext
  5622. @throws UnsupportedFileSystemException If file system in the config
  5623. is not supported]]>
  5624. </doc>
  5625. </method>
  5626. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  5627. abstract="false" native="false" synchronized="false"
  5628. static="true" final="false" visibility="public"
  5629. deprecated="not deprecated">
  5630. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5631. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5632. <doc>
  5633. <![CDATA[@param aConf - from which the FileContext is configured
  5634. @return a FileContext for the local file system using the specified config.
  5635. @throws UnsupportedFileSystemException If default file system in the config
  5636. is not supported]]>
  5637. </doc>
  5638. </method>
  5639. <method name="setWorkingDirectory"
  5640. abstract="false" native="false" synchronized="false"
  5641. static="false" final="false" visibility="public"
  5642. deprecated="not deprecated">
  5643. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  5644. <exception name="IOException" type="java.io.IOException"/>
  5645. <doc>
  5646. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  5647. directory feature is provided by simply prefixing relative names with the
  5648. working dir. Note this is different from Unix where the wd is actually set
  5649. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  5650. better in a distributed environment that has multiple independent roots.
  5651. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  5652. @param newWDir new working directory
  5653. @throws IOException
  5654. <br>
  5655. NewWdir can be one of:
  5656. <ul>
  5657. <li>relative path: "foo/bar";</li>
  5658. <li>absolute without scheme: "/foo/bar"</li>
  5659. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  5660. </ul>
  5661. <br>
  5662. Illegal WDs:
  5663. <ul>
  5664. <li>relative with scheme: "xx:foo/bar"</li>
  5665. <li>non existent directory</li>
  5666. </ul>]]>
  5667. </doc>
  5668. </method>
  5669. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5670. abstract="false" native="false" synchronized="false"
  5671. static="false" final="false" visibility="public"
  5672. deprecated="not deprecated">
  5673. <doc>
  5674. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  5675. </doc>
  5676. </method>
  5677. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  5678. abstract="false" native="false" synchronized="false"
  5679. static="false" final="false" visibility="public"
  5680. deprecated="not deprecated">
  5681. <doc>
  5682. <![CDATA[Gets the ugi in the file-context
  5683. @return UserGroupInformation]]>
  5684. </doc>
  5685. </method>
  5686. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5687. abstract="false" native="false" synchronized="false"
  5688. static="false" final="false" visibility="public"
  5689. deprecated="not deprecated">
  5690. <doc>
  5691. <![CDATA[Return the current user's home directory in this file system.
  5692. The default implementation returns "/user/$USER/".
  5693. @return the home directory]]>
  5694. </doc>
  5695. </method>
  5696. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  5697. abstract="false" native="false" synchronized="false"
  5698. static="false" final="false" visibility="public"
  5699. deprecated="not deprecated">
  5700. <doc>
  5701. <![CDATA[@return the umask of this FileContext]]>
  5702. </doc>
  5703. </method>
  5704. <method name="setUMask"
  5705. abstract="false" native="false" synchronized="false"
  5706. static="false" final="false" visibility="public"
  5707. deprecated="not deprecated">
  5708. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5709. <doc>
  5710. <![CDATA[Set umask to the supplied parameter.
  5711. @param newUmask the new umask]]>
  5712. </doc>
  5713. </method>
  5714. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  5715. abstract="false" native="false" synchronized="false"
  5716. static="false" final="false" visibility="public"
  5717. deprecated="not deprecated">
  5718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5719. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5720. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  5721. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5722. <exception name="IOException" type="java.io.IOException"/>
  5723. <doc>
  5724. <![CDATA[Resolve the path following any symlinks or mount points
  5725. @param f to be resolved
  5726. @return fully qualified resolved path
  5727. @throws FileNotFoundException If <code>f</code> does not exist
  5728. @throws AccessControlException if access denied
  5729. @throws IOException If an IO Error occurred
  5730. Exceptions applicable to file systems accessed over RPC:
  5731. @throws RpcClientException If an exception occurred in the RPC client
  5732. @throws RpcServerException If an exception occurred in the RPC server
  5733. @throws UnexpectedServerException If server implementation throws
  5734. undeclared exception to RPC server
  5735. RuntimeExceptions:
  5736. @throws InvalidPathException If path <code>f</code> is not valid]]>
  5737. </doc>
  5738. </method>
  5739. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5740. abstract="false" native="false" synchronized="false"
  5741. static="false" final="false" visibility="public"
  5742. deprecated="not deprecated">
  5743. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5744. <doc>
  5745. <![CDATA[Make the path fully qualified if it is isn't.
  5746. A Fully-qualified path has scheme and authority specified and an absolute
  5747. path.
  5748. Use the default file system and working dir in this FileContext to qualify.
  5749. @param path
  5750. @return qualified path]]>
  5751. </doc>
  5752. </method>
  5753. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5754. abstract="false" native="false" synchronized="false"
  5755. static="false" final="false" visibility="public"
  5756. deprecated="not deprecated">
  5757. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5758. <param name="createFlag" type="java.util.EnumSet"/>
  5759. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  5760. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5761. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5762. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5763. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5764. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5765. <exception name="IOException" type="java.io.IOException"/>
  5766. <doc>
  5767. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  5768. writing into the file.
  5769. @param f the file name to open
  5770. @param createFlag gives the semantics of create; see {@link CreateFlag}
  5771. @param opts file creation options; see {@link Options.CreateOpts}.
  5772. <ul>
  5773. <li>Progress - to report progress on the operation - default null
  5774. <li>Permission - umask is applied against permisssion: default is
  5775. FsPermissions:getDefault()
  5776. <li>CreateParent - create missing parent path; default is to not
  5777. to create parents
  5778. <li>The defaults for the following are SS defaults of the file
  5779. server implementing the target path. Not all parameters make sense
  5780. for all kinds of file system - eg. localFS ignores Blocksize,
  5781. replication, checksum
  5782. <ul>
  5783. <li>BufferSize - buffersize used in FSDataOutputStream
  5784. <li>Blocksize - block size for file blocks
  5785. <li>ReplicationFactor - replication for blocks
  5786. <li>ChecksumParam - Checksum parameters. server default is used
  5787. if not specified.
  5788. </ul>
  5789. </ul>
  5790. @return {@link FSDataOutputStream} for created file
  5791. @throws AccessControlException If access is denied
  5792. @throws FileAlreadyExistsException If file <code>f</code> already exists
  5793. @throws FileNotFoundException If parent of <code>f</code> does not exist
  5794. and <code>createParent</code> is false
  5795. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  5796. directory.
  5797. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5798. not supported
  5799. @throws IOException If an I/O error occurred
  5800. Exceptions applicable to file systems accessed over RPC:
  5801. @throws RpcClientException If an exception occurred in the RPC client
  5802. @throws RpcServerException If an exception occurred in the RPC server
  5803. @throws UnexpectedServerException If server implementation throws
  5804. undeclared exception to RPC server
  5805. RuntimeExceptions:
  5806. @throws InvalidPathException If path <code>f</code> is not valid]]>
  5807. </doc>
  5808. </method>
  5809. <method name="mkdir"
  5810. abstract="false" native="false" synchronized="false"
  5811. static="false" final="false" visibility="public"
  5812. deprecated="not deprecated">
  5813. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  5814. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5815. <param name="createParent" type="boolean"/>
  5816. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5817. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5818. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5819. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5820. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5821. <exception name="IOException" type="java.io.IOException"/>
  5822. <doc>
  5823. <![CDATA[Make(create) a directory and all the non-existent parents.
  5824. @param dir - the dir to make
  5825. @param permission - permissions is set permission&~umask
  5826. @param createParent - if true then missing parent dirs are created if false
  5827. then parent must exist
  5828. @throws AccessControlException If access is denied
  5829. @throws FileAlreadyExistsException If directory <code>dir</code> already
  5830. exists
  5831. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  5832. and <code>createParent</code> is false
  5833. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  5834. directory
  5835. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  5836. is not supported
  5837. @throws IOException If an I/O error occurred
  5838. Exceptions applicable to file systems accessed over RPC:
  5839. @throws RpcClientException If an exception occurred in the RPC client
  5840. @throws UnexpectedServerException If server implementation throws
  5841. undeclared exception to RPC server
  5842. RuntimeExceptions:
  5843. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  5844. </doc>
  5845. </method>
  5846. <method name="delete" return="boolean"
  5847. abstract="false" native="false" synchronized="false"
  5848. static="false" final="false" visibility="public"
  5849. deprecated="not deprecated">
  5850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5851. <param name="recursive" type="boolean"/>
  5852. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5853. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5854. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5855. <exception name="IOException" type="java.io.IOException"/>
  5856. <doc>
  5857. <![CDATA[Delete a file.
  5858. @param f the path to delete.
  5859. @param recursive if path is a directory and set to
  5860. true, the directory is deleted else throws an exception. In
  5861. case of a file the recursive can be set to either true or false.
  5862. @throws AccessControlException If access is denied
  5863. @throws FileNotFoundException If <code>f</code> does not exist
  5864. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5865. not supported
  5866. @throws IOException If an I/O error occurred
  5867. Exceptions applicable to file systems accessed over RPC:
  5868. @throws RpcClientException If an exception occurred in the RPC client
  5869. @throws RpcServerException If an exception occurred in the RPC server
  5870. @throws UnexpectedServerException If server implementation throws
  5871. undeclared exception to RPC server
  5872. RuntimeExceptions:
  5873. @throws InvalidPathException If path <code>f</code> is invalid]]>
  5874. </doc>
  5875. </method>
  5876. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5877. abstract="false" native="false" synchronized="false"
  5878. static="false" final="false" visibility="public"
  5879. deprecated="not deprecated">
  5880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5881. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5882. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5883. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5884. <exception name="IOException" type="java.io.IOException"/>
  5885. <doc>
  5886. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  5887. default buffersize.
  5888. @param f the file name to open
  5889. @throws AccessControlException If access is denied
  5890. @throws FileNotFoundException If file <code>f</code> does not exist
  5891. @throws UnsupportedFileSystemException If file system for <code>f</code>
  5892. is not supported
  5893. @throws IOException If an I/O error occurred
  5894. Exceptions applicable to file systems accessed over RPC:
  5895. @throws RpcClientException If an exception occurred in the RPC client
  5896. @throws RpcServerException If an exception occurred in the RPC server
  5897. @throws UnexpectedServerException If server implementation throws
  5898. undeclared exception to RPC server]]>
  5899. </doc>
  5900. </method>
  5901. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5902. abstract="false" native="false" synchronized="false"
  5903. static="false" final="false" visibility="public"
  5904. deprecated="not deprecated">
  5905. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5906. <param name="bufferSize" type="int"/>
  5907. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5908. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5909. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5910. <exception name="IOException" type="java.io.IOException"/>
  5911. <doc>
  5912. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  5913. @param f the file name to open
  5914. @param bufferSize the size of the buffer to be used.
  5915. @throws AccessControlException If access is denied
  5916. @throws FileNotFoundException If file <code>f</code> does not exist
  5917. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5918. not supported
  5919. @throws IOException If an I/O error occurred
  5920. Exceptions applicable to file systems accessed over RPC:
  5921. @throws RpcClientException If an exception occurred in the RPC client
  5922. @throws RpcServerException If an exception occurred in the RPC server
  5923. @throws UnexpectedServerException If server implementation throws
  5924. undeclared exception to RPC server]]>
  5925. </doc>
  5926. </method>
  5927. <method name="truncate" return="boolean"
  5928. abstract="false" native="false" synchronized="false"
  5929. static="false" final="false" visibility="public"
  5930. deprecated="not deprecated">
  5931. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5932. <param name="newLength" type="long"/>
  5933. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5934. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5935. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5936. <exception name="IOException" type="java.io.IOException"/>
  5937. <doc>
  5938. <![CDATA[Truncate the file in the indicated path to the indicated size.
  5939. <ul>
  5940. <li>Fails if path is a directory.
  5941. <li>Fails if path does not exist.
  5942. <li>Fails if path is not closed.
  5943. <li>Fails if new size is greater than current size.
  5944. </ul>
  5945. @param f The path to the file to be truncated
  5946. @param newLength The size the file is to be truncated to
  5947. @return <code>true</code> if the file has been truncated to the desired
  5948. <code>newLength</code> and is immediately available to be reused for
  5949. write operations such as <code>append</code>, or
  5950. <code>false</code> if a background process of adjusting the length of
  5951. the last block has been started, and clients should wait for it to
  5952. complete before proceeding with further file updates.
  5953. @throws AccessControlException If access is denied
  5954. @throws FileNotFoundException If file <code>f</code> does not exist
  5955. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5956. not supported
  5957. @throws IOException If an I/O error occurred
  5958. Exceptions applicable to file systems accessed over RPC:
  5959. @throws RpcClientException If an exception occurred in the RPC client
  5960. @throws RpcServerException If an exception occurred in the RPC server
  5961. @throws UnexpectedServerException If server implementation throws
  5962. undeclared exception to RPC server]]>
  5963. </doc>
  5964. </method>
  5965. <method name="setReplication" return="boolean"
  5966. abstract="false" native="false" synchronized="false"
  5967. static="false" final="false" visibility="public"
  5968. deprecated="not deprecated">
  5969. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5970. <param name="replication" type="short"/>
  5971. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5972. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5973. <exception name="IOException" type="java.io.IOException"/>
  5974. <doc>
  5975. <![CDATA[Set replication for an existing file.
  5976. @param f file name
  5977. @param replication new replication
  5978. @return true if successful
  5979. @throws AccessControlException If access is denied
  5980. @throws FileNotFoundException If file <code>f</code> does not exist
  5981. @throws IOException If an I/O error occurred
  5982. Exceptions applicable to file systems accessed over RPC:
  5983. @throws RpcClientException If an exception occurred in the RPC client
  5984. @throws RpcServerException If an exception occurred in the RPC server
  5985. @throws UnexpectedServerException If server implementation throws
  5986. undeclared exception to RPC server]]>
  5987. </doc>
  5988. </method>
  5989. <method name="rename"
  5990. abstract="false" native="false" synchronized="false"
  5991. static="false" final="false" visibility="public"
  5992. deprecated="not deprecated">
  5993. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5994. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5995. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  5996. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5997. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5998. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5999. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6000. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6001. <exception name="IOException" type="java.io.IOException"/>
  6002. <doc>
  6003. <![CDATA[Renames Path src to Path dst
  6004. <ul>
  6005. <li
  6006. <li>Fails if src is a file and dst is a directory.
  6007. <li>Fails if src is a directory and dst is a file.
  6008. <li>Fails if the parent of dst does not exist or is a file.
  6009. </ul>
  6010. <p>
  6011. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6012. already exists.
  6013. <p>
  6014. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6015. it is a file or an empty directory. Rename fails if dst is a non-empty
  6016. directory.
  6017. <p>
  6018. Note that atomicity of rename is dependent on the file system
  6019. implementation. Please refer to the file system documentation for details
  6020. <p>
  6021. @param src path to be renamed
  6022. @param dst new path after rename
  6023. @throws AccessControlException If access is denied
  6024. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6025. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6026. option false.
  6027. @throws FileNotFoundException If <code>src</code> does not exist
  6028. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6029. directory
  6030. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6031. and <code>dst</code> is not supported
  6032. @throws IOException If an I/O error occurred
  6033. Exceptions applicable to file systems accessed over RPC:
  6034. @throws RpcClientException If an exception occurred in the RPC client
  6035. @throws RpcServerException If an exception occurred in the RPC server
  6036. @throws UnexpectedServerException If server implementation throws
  6037. undeclared exception to RPC server]]>
  6038. </doc>
  6039. </method>
  6040. <method name="setPermission"
  6041. abstract="false" native="false" synchronized="false"
  6042. static="false" final="false" visibility="public"
  6043. deprecated="not deprecated">
  6044. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6045. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6046. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6047. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6048. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6049. <exception name="IOException" type="java.io.IOException"/>
  6050. <doc>
  6051. <![CDATA[Set permission of a path.
  6052. @param f
  6053. @param permission - the new absolute permission (umask is not applied)
  6054. @throws AccessControlException If access is denied
  6055. @throws FileNotFoundException If <code>f</code> does not exist
  6056. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6057. is not supported
  6058. @throws IOException If an I/O error occurred
  6059. Exceptions applicable to file systems accessed over RPC:
  6060. @throws RpcClientException If an exception occurred in the RPC client
  6061. @throws RpcServerException If an exception occurred in the RPC server
  6062. @throws UnexpectedServerException If server implementation throws
  6063. undeclared exception to RPC server]]>
  6064. </doc>
  6065. </method>
  6066. <method name="setOwner"
  6067. abstract="false" native="false" synchronized="false"
  6068. static="false" final="false" visibility="public"
  6069. deprecated="not deprecated">
  6070. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6071. <param name="username" type="java.lang.String"/>
  6072. <param name="groupname" type="java.lang.String"/>
  6073. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6074. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6075. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6076. <exception name="IOException" type="java.io.IOException"/>
  6077. <doc>
  6078. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6079. and groupname cannot both be null.
  6080. @param f The path
  6081. @param username If it is null, the original username remains unchanged.
  6082. @param groupname If it is null, the original groupname remains unchanged.
  6083. @throws AccessControlException If access is denied
  6084. @throws FileNotFoundException If <code>f</code> does not exist
  6085. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6086. not supported
  6087. @throws IOException If an I/O error occurred
  6088. Exceptions applicable to file systems accessed over RPC:
  6089. @throws RpcClientException If an exception occurred in the RPC client
  6090. @throws RpcServerException If an exception occurred in the RPC server
  6091. @throws UnexpectedServerException If server implementation throws
  6092. undeclared exception to RPC server
  6093. RuntimeExceptions:
  6094. @throws HadoopIllegalArgumentException If <code>username</code> or
  6095. <code>groupname</code> is invalid.]]>
  6096. </doc>
  6097. </method>
  6098. <method name="setTimes"
  6099. abstract="false" native="false" synchronized="false"
  6100. static="false" final="false" visibility="public"
  6101. deprecated="not deprecated">
  6102. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6103. <param name="mtime" type="long"/>
  6104. <param name="atime" type="long"/>
  6105. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6106. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6107. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6108. <exception name="IOException" type="java.io.IOException"/>
  6109. <doc>
  6110. <![CDATA[Set access time of a file.
  6111. @param f The path
  6112. @param mtime Set the modification time of this file.
  6113. The number of milliseconds since epoch (Jan 1, 1970).
  6114. A value of -1 means that this call should not set modification time.
  6115. @param atime Set the access time of this file.
  6116. The number of milliseconds since Jan 1, 1970.
  6117. A value of -1 means that this call should not set access time.
  6118. @throws AccessControlException If access is denied
  6119. @throws FileNotFoundException If <code>f</code> does not exist
  6120. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6121. not supported
  6122. @throws IOException If an I/O error occurred
  6123. Exceptions applicable to file systems accessed over RPC:
  6124. @throws RpcClientException If an exception occurred in the RPC client
  6125. @throws RpcServerException If an exception occurred in the RPC server
  6126. @throws UnexpectedServerException If server implementation throws
  6127. undeclared exception to RPC server]]>
  6128. </doc>
  6129. </method>
  6130. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6131. abstract="false" native="false" synchronized="false"
  6132. static="false" final="false" visibility="public"
  6133. deprecated="not deprecated">
  6134. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6135. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6136. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6137. <exception name="IOException" type="java.io.IOException"/>
  6138. <doc>
  6139. <![CDATA[Get the checksum of a file.
  6140. @param f file path
  6141. @return The file checksum. The default return value is null,
  6142. which indicates that no checksum algorithm is implemented
  6143. in the corresponding FileSystem.
  6144. @throws AccessControlException If access is denied
  6145. @throws FileNotFoundException If <code>f</code> does not exist
  6146. @throws IOException If an I/O error occurred
  6147. Exceptions applicable to file systems accessed over RPC:
  6148. @throws RpcClientException If an exception occurred in the RPC client
  6149. @throws RpcServerException If an exception occurred in the RPC server
  6150. @throws UnexpectedServerException If server implementation throws
  6151. undeclared exception to RPC server]]>
  6152. </doc>
  6153. </method>
  6154. <method name="setVerifyChecksum"
  6155. abstract="false" native="false" synchronized="false"
  6156. static="false" final="false" visibility="public"
  6157. deprecated="not deprecated">
  6158. <param name="verifyChecksum" type="boolean"/>
  6159. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6160. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6161. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6162. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6163. <exception name="IOException" type="java.io.IOException"/>
  6164. <doc>
  6165. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6166. This is only applicable if the
  6167. corresponding FileSystem supports checksum. By default doesn't do anything.
  6168. @param verifyChecksum
  6169. @param f set the verifyChecksum for the Filesystem containing this path
  6170. @throws AccessControlException If access is denied
  6171. @throws FileNotFoundException If <code>f</code> does not exist
  6172. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6173. not supported
  6174. @throws IOException If an I/O error occurred
  6175. Exceptions applicable to file systems accessed over RPC:
  6176. @throws RpcClientException If an exception occurred in the RPC client
  6177. @throws RpcServerException If an exception occurred in the RPC server
  6178. @throws UnexpectedServerException If server implementation throws
  6179. undeclared exception to RPC server]]>
  6180. </doc>
  6181. </method>
  6182. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6183. abstract="false" native="false" synchronized="false"
  6184. static="false" final="false" visibility="public"
  6185. deprecated="not deprecated">
  6186. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6187. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6188. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6189. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6190. <exception name="IOException" type="java.io.IOException"/>
  6191. <doc>
  6192. <![CDATA[Return a file status object that represents the path.
  6193. @param f The path we want information from
  6194. @return a FileStatus object
  6195. @throws AccessControlException If access is denied
  6196. @throws FileNotFoundException If <code>f</code> does not exist
  6197. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6198. not supported
  6199. @throws IOException If an I/O error occurred
  6200. Exceptions applicable to file systems accessed over RPC:
  6201. @throws RpcClientException If an exception occurred in the RPC client
  6202. @throws RpcServerException If an exception occurred in the RPC server
  6203. @throws UnexpectedServerException If server implementation throws
  6204. undeclared exception to RPC server]]>
  6205. </doc>
  6206. </method>
  6207. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6208. abstract="false" native="false" synchronized="false"
  6209. static="false" final="false" visibility="public"
  6210. deprecated="not deprecated">
  6211. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6212. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6213. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6214. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6215. <exception name="IOException" type="java.io.IOException"/>
  6216. <doc>
  6217. <![CDATA[Return a file status object that represents the path. If the path
  6218. refers to a symlink then the FileStatus of the symlink is returned.
  6219. The behavior is equivalent to #getFileStatus() if the underlying
  6220. file system does not support symbolic links.
  6221. @param f The path we want information from.
  6222. @return A FileStatus object
  6223. @throws AccessControlException If access is denied
  6224. @throws FileNotFoundException If <code>f</code> does not exist
  6225. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6226. not supported
  6227. @throws IOException If an I/O error occurred]]>
  6228. </doc>
  6229. </method>
  6230. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6231. abstract="false" native="false" synchronized="false"
  6232. static="false" final="false" visibility="public"
  6233. deprecated="not deprecated">
  6234. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6235. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6236. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6237. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6238. <exception name="IOException" type="java.io.IOException"/>
  6239. <doc>
  6240. <![CDATA[Returns the target of the given symbolic link as it was specified
  6241. when the link was created. Links in the path leading up to the
  6242. final path component are resolved transparently.
  6243. @param f the path to return the target of
  6244. @return The un-interpreted target of the symbolic link.
  6245. @throws AccessControlException If access is denied
  6246. @throws FileNotFoundException If path <code>f</code> does not exist
  6247. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6248. not supported
  6249. @throws IOException If the given path does not refer to a symlink
  6250. or an I/O error occurred]]>
  6251. </doc>
  6252. </method>
  6253. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  6254. abstract="false" native="false" synchronized="false"
  6255. static="false" final="false" visibility="public"
  6256. deprecated="not deprecated">
  6257. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6258. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6259. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6260. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6261. <exception name="IOException" type="java.io.IOException"/>
  6262. <doc>
  6263. <![CDATA[Returns a status object describing the use and capacity of the
  6264. file system denoted by the Parh argument p.
  6265. If the file system has multiple partitions, the
  6266. use and capacity of the partition pointed to by the specified
  6267. path is reflected.
  6268. @param f Path for which status should be obtained. null means the
  6269. root partition of the default file system.
  6270. @return a FsStatus object
  6271. @throws AccessControlException If access is denied
  6272. @throws FileNotFoundException If <code>f</code> does not exist
  6273. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6274. not supported
  6275. @throws IOException If an I/O error occurred
  6276. Exceptions applicable to file systems accessed over RPC:
  6277. @throws RpcClientException If an exception occurred in the RPC client
  6278. @throws RpcServerException If an exception occurred in the RPC server
  6279. @throws UnexpectedServerException If server implementation throws
  6280. undeclared exception to RPC server]]>
  6281. </doc>
  6282. </method>
  6283. <method name="createSymlink"
  6284. abstract="false" native="false" synchronized="false"
  6285. static="false" final="false" visibility="public"
  6286. deprecated="not deprecated">
  6287. <param name="target" type="org.apache.hadoop.fs.Path"/>
  6288. <param name="link" type="org.apache.hadoop.fs.Path"/>
  6289. <param name="createParent" type="boolean"/>
  6290. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6291. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6292. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6293. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6294. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6295. <exception name="IOException" type="java.io.IOException"/>
  6296. <doc>
  6297. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  6298. the symlink exits, the user does not have permission to create symlink,
  6299. or the underlying file system does not support symlinks.
  6300. Symlink permissions are ignored, access to a symlink is determined by
  6301. the permissions of the symlink target.
  6302. Symlinks in paths leading up to the final path component are resolved
  6303. transparently. If the final path component refers to a symlink some
  6304. functions operate on the symlink itself, these are:
  6305. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  6306. - rename(src, dst) - If src refers to a symlink, the symlink is
  6307. renamed. If dst refers to a symlink, the symlink is over-written.
  6308. - getLinkTarget(f) - Returns the target of the symlink.
  6309. - getFileLinkStatus(f) - Returns a FileStatus object describing
  6310. the symlink.
  6311. Some functions, create() and mkdir(), expect the final path component
  6312. does not exist. If they are given a path that refers to a symlink that
  6313. does exist they behave as if the path referred to an existing file or
  6314. directory. All other functions fully resolve, ie follow, the symlink.
  6315. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  6316. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  6317. getFsStatus, getFileStatus, exists, and listStatus.
  6318. Symlink targets are stored as given to createSymlink, assuming the
  6319. underlying file system is capable of storing a fully qualified URI.
  6320. Dangling symlinks are permitted. FileContext supports four types of
  6321. symlink targets, and resolves them as follows
  6322. <pre>
  6323. Given a path referring to a symlink of form:
  6324. <---X--->
  6325. fs://host/A/B/link
  6326. <-----Y----->
  6327. In this path X is the scheme and authority that identify the file system,
  6328. and Y is the path leading up to the final path component "link". If Y is
  6329. a symlink itself then let Y' be the target of Y and X' be the scheme and
  6330. authority of Y'. Symlink targets may:
  6331. 1. Fully qualified URIs
  6332. fs://hostX/A/B/file Resolved according to the target file system.
  6333. 2. Partially qualified URIs (eg scheme but no host)
  6334. fs:///A/B/file Resolved according to the target file system. Eg resolving
  6335. a symlink to hdfs:///A results in an exception because
  6336. HDFS URIs must be fully qualified, while a symlink to
  6337. file:///A will not since Hadoop's local file systems
  6338. require partially qualified URIs.
  6339. 3. Relative paths
  6340. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  6341. is "../B/file" then [Y'][path] is hdfs://host/B/file
  6342. 4. Absolute paths
  6343. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  6344. is "/file" then [X][path] is hdfs://host/file
  6345. </pre>
  6346. @param target the target of the symbolic link
  6347. @param link the path to be created that points to target
  6348. @param createParent if true then missing parent dirs are created if
  6349. false then parent must exist
  6350. @throws AccessControlException If access is denied
  6351. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  6352. @throws FileNotFoundException If <code>target</code> does not exist
  6353. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  6354. directory.
  6355. @throws UnsupportedFileSystemException If file system for
  6356. <code>target</code> or <code>link</code> is not supported
  6357. @throws IOException If an I/O error occurred]]>
  6358. </doc>
  6359. </method>
  6360. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6361. abstract="false" native="false" synchronized="false"
  6362. static="false" final="false" visibility="public"
  6363. deprecated="not deprecated">
  6364. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6365. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6366. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6367. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6368. <exception name="IOException" type="java.io.IOException"/>
  6369. <doc>
  6370. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6371. a directory.
  6372. @param f is the path
  6373. @return an iterator that traverses statuses of the files/directories
  6374. in the given path
  6375. @throws AccessControlException If access is denied
  6376. @throws FileNotFoundException If <code>f</code> does not exist
  6377. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6378. not supported
  6379. @throws IOException If an I/O error occurred
  6380. Exceptions applicable to file systems accessed over RPC:
  6381. @throws RpcClientException If an exception occurred in the RPC client
  6382. @throws RpcServerException If an exception occurred in the RPC server
  6383. @throws UnexpectedServerException If server implementation throws
  6384. undeclared exception to RPC server]]>
  6385. </doc>
  6386. </method>
  6387. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  6388. abstract="false" native="false" synchronized="false"
  6389. static="false" final="false" visibility="public"
  6390. deprecated="not deprecated">
  6391. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6392. <exception name="IOException" type="java.io.IOException"/>
  6393. <doc>
  6394. <![CDATA[@return an iterator over the corrupt files under the given path
  6395. (may contain duplicates if a file has more than one corrupt block)
  6396. @throws IOException]]>
  6397. </doc>
  6398. </method>
  6399. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6400. abstract="false" native="false" synchronized="false"
  6401. static="false" final="false" visibility="public"
  6402. deprecated="not deprecated">
  6403. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6404. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6405. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6406. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6407. <exception name="IOException" type="java.io.IOException"/>
  6408. <doc>
  6409. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6410. a directory.
  6411. Return the file's status and block locations If the path is a file.
  6412. If a returned status is a file, it contains the file's block locations.
  6413. @param f is the path
  6414. @return an iterator that traverses statuses of the files/directories
  6415. in the given path
  6416. If any IO exception (for example the input directory gets deleted while
  6417. listing is being executed), next() or hasNext() of the returned iterator
  6418. may throw a RuntimeException with the io exception as the cause.
  6419. @throws AccessControlException If access is denied
  6420. @throws FileNotFoundException If <code>f</code> does not exist
  6421. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6422. not supported
  6423. @throws IOException If an I/O error occurred
  6424. Exceptions applicable to file systems accessed over RPC:
  6425. @throws RpcClientException If an exception occurred in the RPC client
  6426. @throws RpcServerException If an exception occurred in the RPC server
  6427. @throws UnexpectedServerException If server implementation throws
  6428. undeclared exception to RPC server]]>
  6429. </doc>
  6430. </method>
  6431. <method name="deleteOnExit" return="boolean"
  6432. abstract="false" native="false" synchronized="false"
  6433. static="false" final="false" visibility="public"
  6434. deprecated="not deprecated">
  6435. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6436. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6437. <exception name="IOException" type="java.io.IOException"/>
  6438. <doc>
  6439. <![CDATA[Mark a path to be deleted on JVM shutdown.
  6440. @param f the existing path to delete.
  6441. @return true if deleteOnExit is successful, otherwise false.
  6442. @throws AccessControlException If access is denied
  6443. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6444. not supported
  6445. @throws IOException If an I/O error occurred
  6446. Exceptions applicable to file systems accessed over RPC:
  6447. @throws RpcClientException If an exception occurred in the RPC client
  6448. @throws RpcServerException If an exception occurred in the RPC server
  6449. @throws UnexpectedServerException If server implementation throws
  6450. undeclared exception to RPC server]]>
  6451. </doc>
  6452. </method>
  6453. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  6454. abstract="false" native="false" synchronized="false"
  6455. static="false" final="false" visibility="public"
  6456. deprecated="not deprecated">
  6457. </method>
  6458. <method name="resolve" return="org.apache.hadoop.fs.Path"
  6459. abstract="false" native="false" synchronized="false"
  6460. static="false" final="false" visibility="protected"
  6461. deprecated="not deprecated">
  6462. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6463. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6464. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6465. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6466. <exception name="IOException" type="java.io.IOException"/>
  6467. <doc>
  6468. <![CDATA[Resolves all symbolic links in the specified path.
  6469. Returns the new path object.]]>
  6470. </doc>
  6471. </method>
  6472. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  6473. abstract="false" native="false" synchronized="false"
  6474. static="false" final="false" visibility="protected"
  6475. deprecated="not deprecated">
  6476. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6477. <exception name="IOException" type="java.io.IOException"/>
  6478. <doc>
  6479. <![CDATA[Resolves all symbolic links in the specified path leading up
  6480. to, but not including the final path component.
  6481. @param f path to resolve
  6482. @return the new path object.]]>
  6483. </doc>
  6484. </method>
  6485. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  6486. abstract="false" native="false" synchronized="false"
  6487. static="true" final="false" visibility="public"
  6488. deprecated="not deprecated">
  6489. <param name="uri" type="java.net.URI"/>
  6490. <doc>
  6491. <![CDATA[Get the statistics for a particular file system
  6492. @param uri
  6493. the uri to lookup the statistics. Only scheme and authority part
  6494. of the uri are used as the key to store and lookup.
  6495. @return a statistics object]]>
  6496. </doc>
  6497. </method>
  6498. <method name="clearStatistics"
  6499. abstract="false" native="false" synchronized="false"
  6500. static="true" final="false" visibility="public"
  6501. deprecated="not deprecated">
  6502. <doc>
  6503. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  6504. systems.]]>
  6505. </doc>
  6506. </method>
  6507. <method name="printStatistics"
  6508. abstract="false" native="false" synchronized="false"
  6509. static="true" final="false" visibility="public"
  6510. deprecated="not deprecated">
  6511. <doc>
  6512. <![CDATA[Prints the statistics to standard output. File System is identified by the
  6513. scheme and authority.]]>
  6514. </doc>
  6515. </method>
  6516. <method name="getAllStatistics" return="java.util.Map"
  6517. abstract="false" native="false" synchronized="false"
  6518. static="true" final="false" visibility="public"
  6519. deprecated="not deprecated">
  6520. <doc>
  6521. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  6522. consists of scheme and authority for the filesystem.]]>
  6523. </doc>
  6524. </method>
  6525. <method name="modifyAclEntries"
  6526. abstract="false" native="false" synchronized="false"
  6527. static="false" final="false" visibility="public"
  6528. deprecated="not deprecated">
  6529. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6530. <param name="aclSpec" type="java.util.List"/>
  6531. <exception name="IOException" type="java.io.IOException"/>
  6532. <doc>
  6533. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  6534. entries or modify the permissions on existing ACL entries. All existing
  6535. ACL entries that are not specified in this call are retained without
  6536. changes. (Modifications are merged into the current ACL.)
  6537. @param path Path to modify
  6538. @param aclSpec List<AclEntry> describing modifications
  6539. @throws IOException if an ACL could not be modified]]>
  6540. </doc>
  6541. </method>
  6542. <method name="removeAclEntries"
  6543. abstract="false" native="false" synchronized="false"
  6544. static="false" final="false" visibility="public"
  6545. deprecated="not deprecated">
  6546. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6547. <param name="aclSpec" type="java.util.List"/>
  6548. <exception name="IOException" type="java.io.IOException"/>
  6549. <doc>
  6550. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  6551. retained.
  6552. @param path Path to modify
  6553. @param aclSpec List<AclEntry> describing entries to remove
  6554. @throws IOException if an ACL could not be modified]]>
  6555. </doc>
  6556. </method>
  6557. <method name="removeDefaultAcl"
  6558. abstract="false" native="false" synchronized="false"
  6559. static="false" final="false" visibility="public"
  6560. deprecated="not deprecated">
  6561. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6562. <exception name="IOException" type="java.io.IOException"/>
  6563. <doc>
  6564. <![CDATA[Removes all default ACL entries from files and directories.
  6565. @param path Path to modify
  6566. @throws IOException if an ACL could not be modified]]>
  6567. </doc>
  6568. </method>
  6569. <method name="removeAcl"
  6570. abstract="false" native="false" synchronized="false"
  6571. static="false" final="false" visibility="public"
  6572. deprecated="not deprecated">
  6573. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6574. <exception name="IOException" type="java.io.IOException"/>
  6575. <doc>
  6576. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  6577. for user, group, and others are retained for compatibility with permission
  6578. bits.
  6579. @param path Path to modify
  6580. @throws IOException if an ACL could not be removed]]>
  6581. </doc>
  6582. </method>
  6583. <method name="setAcl"
  6584. abstract="false" native="false" synchronized="false"
  6585. static="false" final="false" visibility="public"
  6586. deprecated="not deprecated">
  6587. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6588. <param name="aclSpec" type="java.util.List"/>
  6589. <exception name="IOException" type="java.io.IOException"/>
  6590. <doc>
  6591. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  6592. entries.
  6593. @param path Path to modify
  6594. @param aclSpec List<AclEntry> describing modifications, must include entries
  6595. for user, group, and others for compatibility with permission bits.
  6596. @throws IOException if an ACL could not be modified]]>
  6597. </doc>
  6598. </method>
  6599. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  6600. abstract="false" native="false" synchronized="false"
  6601. static="false" final="false" visibility="public"
  6602. deprecated="not deprecated">
  6603. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6604. <exception name="IOException" type="java.io.IOException"/>
  6605. <doc>
  6606. <![CDATA[Gets the ACLs of files and directories.
  6607. @param path Path to get
  6608. @return RemoteIterator<AclStatus> which returns each AclStatus
  6609. @throws IOException if an ACL could not be read]]>
  6610. </doc>
  6611. </method>
  6612. <method name="setXAttr"
  6613. abstract="false" native="false" synchronized="false"
  6614. static="false" final="false" visibility="public"
  6615. deprecated="not deprecated">
  6616. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6617. <param name="name" type="java.lang.String"/>
  6618. <param name="value" type="byte[]"/>
  6619. <exception name="IOException" type="java.io.IOException"/>
  6620. <doc>
  6621. <![CDATA[Set an xattr of a file or directory.
  6622. The name must be prefixed with the namespace followed by ".". For example,
  6623. "user.attr".
  6624. <p/>
  6625. Refer to the HDFS extended attributes user documentation for details.
  6626. @param path Path to modify
  6627. @param name xattr name.
  6628. @param value xattr value.
  6629. @throws IOException]]>
  6630. </doc>
  6631. </method>
  6632. <method name="setXAttr"
  6633. abstract="false" native="false" synchronized="false"
  6634. static="false" final="false" visibility="public"
  6635. deprecated="not deprecated">
  6636. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6637. <param name="name" type="java.lang.String"/>
  6638. <param name="value" type="byte[]"/>
  6639. <param name="flag" type="java.util.EnumSet"/>
  6640. <exception name="IOException" type="java.io.IOException"/>
  6641. <doc>
  6642. <![CDATA[Set an xattr of a file or directory.
  6643. The name must be prefixed with the namespace followed by ".". For example,
  6644. "user.attr".
  6645. <p/>
  6646. Refer to the HDFS extended attributes user documentation for details.
  6647. @param path Path to modify
  6648. @param name xattr name.
  6649. @param value xattr value.
  6650. @param flag xattr set flag
  6651. @throws IOException]]>
  6652. </doc>
  6653. </method>
  6654. <method name="getXAttr" return="byte[]"
  6655. abstract="false" native="false" synchronized="false"
  6656. static="false" final="false" visibility="public"
  6657. deprecated="not deprecated">
  6658. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6659. <param name="name" type="java.lang.String"/>
  6660. <exception name="IOException" type="java.io.IOException"/>
  6661. <doc>
  6662. <![CDATA[Get an xattr for a file or directory.
  6663. The name must be prefixed with the namespace followed by ".". For example,
  6664. "user.attr".
  6665. <p/>
  6666. Refer to the HDFS extended attributes user documentation for details.
  6667. @param path Path to get extended attribute
  6668. @param name xattr name.
  6669. @return byte[] xattr value.
  6670. @throws IOException]]>
  6671. </doc>
  6672. </method>
  6673. <method name="getXAttrs" return="java.util.Map"
  6674. abstract="false" native="false" synchronized="false"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6678. <exception name="IOException" type="java.io.IOException"/>
  6679. <doc>
  6680. <![CDATA[Get all of the xattrs for a file or directory.
  6681. Only those xattrs for which the logged-in user has permissions to view
  6682. are returned.
  6683. <p/>
  6684. Refer to the HDFS extended attributes user documentation for details.
  6685. @param path Path to get extended attributes
  6686. @return Map<String, byte[]> describing the XAttrs of the file or directory
  6687. @throws IOException]]>
  6688. </doc>
  6689. </method>
  6690. <method name="getXAttrs" return="java.util.Map"
  6691. abstract="false" native="false" synchronized="false"
  6692. static="false" final="false" visibility="public"
  6693. deprecated="not deprecated">
  6694. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6695. <param name="names" type="java.util.List"/>
  6696. <exception name="IOException" type="java.io.IOException"/>
  6697. <doc>
  6698. <![CDATA[Get all of the xattrs for a file or directory.
  6699. Only those xattrs for which the logged-in user has permissions to view
  6700. are returned.
  6701. <p/>
  6702. Refer to the HDFS extended attributes user documentation for details.
  6703. @param path Path to get extended attributes
  6704. @param names XAttr names.
  6705. @return Map<String, byte[]> describing the XAttrs of the file or directory
  6706. @throws IOException]]>
  6707. </doc>
  6708. </method>
  6709. <method name="removeXAttr"
  6710. abstract="false" native="false" synchronized="false"
  6711. static="false" final="false" visibility="public"
  6712. deprecated="not deprecated">
  6713. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6714. <param name="name" type="java.lang.String"/>
  6715. <exception name="IOException" type="java.io.IOException"/>
  6716. <doc>
  6717. <![CDATA[Remove an xattr of a file or directory.
  6718. The name must be prefixed with the namespace followed by ".". For example,
  6719. "user.attr".
  6720. <p/>
  6721. Refer to the HDFS extended attributes user documentation for details.
  6722. @param path Path to remove extended attribute
  6723. @param name xattr name
  6724. @throws IOException]]>
  6725. </doc>
  6726. </method>
  6727. <method name="listXAttrs" return="java.util.List"
  6728. abstract="false" native="false" synchronized="false"
  6729. static="false" final="false" visibility="public"
  6730. deprecated="not deprecated">
  6731. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6732. <exception name="IOException" type="java.io.IOException"/>
  6733. <doc>
  6734. <![CDATA[Get all of the xattr names for a file or directory.
  6735. Only those xattr names which the logged-in user has permissions to view
  6736. are returned.
  6737. <p/>
  6738. Refer to the HDFS extended attributes user documentation for details.
  6739. @param path Path to get extended attributes
  6740. @return List<String> of the XAttr names of the file or directory
  6741. @throws IOException]]>
  6742. </doc>
  6743. </method>
  6744. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  6745. abstract="false" native="false" synchronized="false"
  6746. static="false" final="true" visibility="public"
  6747. deprecated="not deprecated">
  6748. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6749. <exception name="IOException" type="java.io.IOException"/>
  6750. <doc>
  6751. <![CDATA[Create a snapshot with a default name.
  6752. @param path The directory where snapshots will be taken.
  6753. @return the snapshot path.
  6754. @throws IOException If an I/O error occurred
  6755. <p>Exceptions applicable to file systems accessed over RPC:
  6756. @throws RpcClientException If an exception occurred in the RPC client
  6757. @throws RpcServerException If an exception occurred in the RPC server
  6758. @throws UnexpectedServerException If server implementation throws
  6759. undeclared exception to RPC server]]>
  6760. </doc>
  6761. </method>
  6762. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  6763. abstract="false" native="false" synchronized="false"
  6764. static="false" final="false" visibility="public"
  6765. deprecated="not deprecated">
  6766. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6767. <param name="snapshotName" type="java.lang.String"/>
  6768. <exception name="IOException" type="java.io.IOException"/>
  6769. <doc>
  6770. <![CDATA[Create a snapshot.
  6771. @param path The directory where snapshots will be taken.
  6772. @param snapshotName The name of the snapshot
  6773. @return the snapshot path.
  6774. @throws IOException If an I/O error occurred
  6775. <p>Exceptions applicable to file systems accessed over RPC:
  6776. @throws RpcClientException If an exception occurred in the RPC client
  6777. @throws RpcServerException If an exception occurred in the RPC server
  6778. @throws UnexpectedServerException If server implementation throws
  6779. undeclared exception to RPC server]]>
  6780. </doc>
  6781. </method>
  6782. <method name="renameSnapshot"
  6783. abstract="false" native="false" synchronized="false"
  6784. static="false" final="false" visibility="public"
  6785. deprecated="not deprecated">
  6786. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6787. <param name="snapshotOldName" type="java.lang.String"/>
  6788. <param name="snapshotNewName" type="java.lang.String"/>
  6789. <exception name="IOException" type="java.io.IOException"/>
  6790. <doc>
  6791. <![CDATA[Rename a snapshot.
  6792. @param path The directory path where the snapshot was taken
  6793. @param snapshotOldName Old name of the snapshot
  6794. @param snapshotNewName New name of the snapshot
  6795. @throws IOException If an I/O error occurred
  6796. <p>Exceptions applicable to file systems accessed over RPC:
  6797. @throws RpcClientException If an exception occurred in the RPC client
  6798. @throws RpcServerException If an exception occurred in the RPC server
  6799. @throws UnexpectedServerException If server implementation throws
  6800. undeclared exception to RPC server]]>
  6801. </doc>
  6802. </method>
  6803. <method name="deleteSnapshot"
  6804. abstract="false" native="false" synchronized="false"
  6805. static="false" final="false" visibility="public"
  6806. deprecated="not deprecated">
  6807. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6808. <param name="snapshotName" type="java.lang.String"/>
  6809. <exception name="IOException" type="java.io.IOException"/>
  6810. <doc>
  6811. <![CDATA[Delete a snapshot of a directory.
  6812. @param path The directory that the to-be-deleted snapshot belongs to
  6813. @param snapshotName The name of the snapshot
  6814. @throws IOException If an I/O error occurred
  6815. <p>Exceptions applicable to file systems accessed over RPC:
  6816. @throws RpcClientException If an exception occurred in the RPC client
  6817. @throws RpcServerException If an exception occurred in the RPC server
  6818. @throws UnexpectedServerException If server implementation throws
  6819. undeclared exception to RPC server]]>
  6820. </doc>
  6821. </method>
  6822. <method name="setStoragePolicy"
  6823. abstract="false" native="false" synchronized="false"
  6824. static="false" final="false" visibility="public"
  6825. deprecated="not deprecated">
  6826. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6827. <param name="policyName" type="java.lang.String"/>
  6828. <exception name="IOException" type="java.io.IOException"/>
  6829. <doc>
  6830. <![CDATA[Set the storage policy for a given file or directory.
  6831. @param path file or directory path.
  6832. @param policyName the name of the target storage policy. The list
  6833. of supported Storage policies can be retrieved
  6834. via {@link #getAllStoragePolicies}.]]>
  6835. </doc>
  6836. </method>
  6837. <method name="unsetStoragePolicy"
  6838. abstract="false" native="false" synchronized="false"
  6839. static="false" final="false" visibility="public"
  6840. deprecated="not deprecated">
  6841. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6842. <exception name="IOException" type="java.io.IOException"/>
  6843. <doc>
  6844. <![CDATA[Unset the storage policy set for a given file or directory.
  6845. @param src file or directory path.
  6846. @throws IOException]]>
  6847. </doc>
  6848. </method>
  6849. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  6850. abstract="false" native="false" synchronized="false"
  6851. static="false" final="false" visibility="public"
  6852. deprecated="not deprecated">
  6853. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6854. <exception name="IOException" type="java.io.IOException"/>
  6855. <doc>
  6856. <![CDATA[Query the effective storage policy ID for the given file or directory.
  6857. @param path file or directory path.
  6858. @return storage policy for give file.
  6859. @throws IOException]]>
  6860. </doc>
  6861. </method>
  6862. <method name="getAllStoragePolicies" return="java.util.Collection"
  6863. abstract="false" native="false" synchronized="false"
  6864. static="false" final="false" visibility="public"
  6865. deprecated="not deprecated">
  6866. <exception name="IOException" type="java.io.IOException"/>
  6867. <doc>
  6868. <![CDATA[Retrieve all the storage policies supported by this file system.
  6869. @return all storage policies supported by this filesystem.
  6870. @throws IOException]]>
  6871. </doc>
  6872. </method>
  6873. <field name="LOG" type="org.apache.commons.logging.Log"
  6874. transient="false" volatile="false"
  6875. static="true" final="true" visibility="public"
  6876. deprecated="not deprecated">
  6877. </field>
  6878. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  6879. transient="false" volatile="false"
  6880. static="true" final="true" visibility="public"
  6881. deprecated="not deprecated">
  6882. <doc>
  6883. <![CDATA[Default permission for directory and symlink
  6884. In previous versions, this default permission was also used to
  6885. create files, so files created end up with ugo+x permission.
  6886. See HADOOP-9155 for detail.
  6887. Two new constants are added to solve this, please use
  6888. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  6889. {@link FileContext#FILE_DEFAULT_PERM} for file.
  6890. This constant is kept for compatibility.]]>
  6891. </doc>
  6892. </field>
  6893. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  6894. transient="false" volatile="false"
  6895. static="true" final="true" visibility="public"
  6896. deprecated="not deprecated">
  6897. <doc>
  6898. <![CDATA[Default permission for directory]]>
  6899. </doc>
  6900. </field>
  6901. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  6902. transient="false" volatile="false"
  6903. static="true" final="true" visibility="public"
  6904. deprecated="not deprecated">
  6905. <doc>
  6906. <![CDATA[Default permission for file]]>
  6907. </doc>
  6908. </field>
  6909. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  6910. transient="false" volatile="false"
  6911. static="true" final="true" visibility="public"
  6912. deprecated="not deprecated">
  6913. <doc>
  6914. <![CDATA[Priority of the FileContext shutdown hook.]]>
  6915. </doc>
  6916. </field>
  6917. <doc>
  6918. <![CDATA[The FileContext class provides an interface to the application writer for
  6919. using the Hadoop file system.
  6920. It provides a set of methods for the usual operation: create, open,
  6921. list, etc
  6922. <p>
  6923. <b> *** Path Names *** </b>
  6924. <p>
  6925. The Hadoop file system supports a URI name space and URI names.
  6926. It offers a forest of file systems that can be referenced using fully
  6927. qualified URIs.
  6928. Two common Hadoop file systems implementations are
  6929. <ul>
  6930. <li> the local file system: file:///path
  6931. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  6932. </ul>
  6933. While URI names are very flexible, it requires knowing the name or address
  6934. of the server. For convenience one often wants to access the default system
  6935. in one's environment without knowing its name/address. This has an
  6936. additional benefit that it allows one to change one's default fs
  6937. (e.g. admin moves application from cluster1 to cluster2).
  6938. <p>
  6939. To facilitate this, Hadoop supports a notion of a default file system.
  6940. The user can set his default file system, although this is
  6941. typically set up for you in your environment via your default config.
  6942. A default file system implies a default scheme and authority; slash-relative
  6943. names (such as /for/bar) are resolved relative to that default FS.
  6944. Similarly a user can also have working-directory-relative names (i.e. names
  6945. not starting with a slash). While the working directory is generally in the
  6946. same default FS, the wd can be in a different FS.
  6947. <p>
  6948. Hence Hadoop path names can be one of:
  6949. <ul>
  6950. <li> fully qualified URI: scheme://authority/path
  6951. <li> slash relative names: /path relative to the default file system
  6952. <li> wd-relative names: path relative to the working dir
  6953. </ul>
  6954. Relative paths with scheme (scheme:foo/bar) are illegal.
  6955. <p>
  6956. <b>****The Role of the FileContext and configuration defaults****</b>
  6957. <p>
  6958. The FileContext provides file namespace context for resolving file names;
  6959. it also contains the umask for permissions, In that sense it is like the
  6960. per-process file-related state in Unix system.
  6961. These two properties
  6962. <ul>
  6963. <li> default file system i.e your slash)
  6964. <li> umask
  6965. </ul>
  6966. in general, are obtained from the default configuration file
  6967. in your environment, (@see {@link Configuration}).
  6968. No other configuration parameters are obtained from the default config as
  6969. far as the file context layer is concerned. All file system instances
  6970. (i.e. deployments of file systems) have default properties; we call these
  6971. server side (SS) defaults. Operation like create allow one to select many
  6972. properties: either pass them in as explicit parameters or use
  6973. the SS properties.
  6974. <p>
  6975. The file system related SS defaults are
  6976. <ul>
  6977. <li> the home directory (default is "/user/userName")
  6978. <li> the initial wd (only for local fs)
  6979. <li> replication factor
  6980. <li> block size
  6981. <li> buffer size
  6982. <li> encryptDataTransfer
  6983. <li> checksum option. (checksumType and bytesPerChecksum)
  6984. </ul>
  6985. <p>
  6986. <b> *** Usage Model for the FileContext class *** </b>
  6987. <p>
  6988. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  6989. Unspecified values come from core-defaults.xml in the release jar.
  6990. <ul>
  6991. <li> myFContext = FileContext.getFileContext(); // uses the default config
  6992. // which has your default FS
  6993. <li> myFContext.create(path, ...);
  6994. <li> myFContext.setWorkingDir(path)
  6995. <li> myFContext.open (path, ...);
  6996. </ul>
  6997. Example 2: Get a FileContext with a specific URI as the default FS
  6998. <ul>
  6999. <li> myFContext = FileContext.getFileContext(URI)
  7000. <li> myFContext.create(path, ...);
  7001. ...
  7002. </ul>
  7003. Example 3: FileContext with local file system as the default
  7004. <ul>
  7005. <li> myFContext = FileContext.getLocalFSFileContext()
  7006. <li> myFContext.create(path, ...);
  7007. <li> ...
  7008. </ul>
  7009. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7010. Generally you should not need use a config unless you are doing
  7011. <ul>
  7012. <li> configX = someConfigSomeOnePassedToYou.
  7013. <li> myFContext = getFileContext(configX); // configX is not changed,
  7014. // is passed down
  7015. <li> myFContext.create(path, ...);
  7016. <li>...
  7017. </ul>]]>
  7018. </doc>
  7019. </class>
  7020. <!-- end class org.apache.hadoop.fs.FileContext -->
  7021. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7022. <class name="FileStatus" extends="java.lang.Object"
  7023. abstract="false"
  7024. static="false" final="false" visibility="public"
  7025. deprecated="not deprecated">
  7026. <implements name="org.apache.hadoop.io.Writable"/>
  7027. <implements name="java.lang.Comparable"/>
  7028. <constructor name="FileStatus"
  7029. static="false" final="false" visibility="public"
  7030. deprecated="not deprecated">
  7031. </constructor>
  7032. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. </constructor>
  7036. <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"
  7037. static="false" final="false" visibility="public"
  7038. deprecated="not deprecated">
  7039. <doc>
  7040. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7041. </doc>
  7042. </constructor>
  7043. <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"
  7044. static="false" final="false" visibility="public"
  7045. deprecated="not deprecated">
  7046. </constructor>
  7047. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7048. static="false" final="false" visibility="public"
  7049. deprecated="not deprecated">
  7050. <exception name="IOException" type="java.io.IOException"/>
  7051. <doc>
  7052. <![CDATA[Copy constructor.
  7053. @param other FileStatus to copy]]>
  7054. </doc>
  7055. </constructor>
  7056. <method name="getLen" return="long"
  7057. abstract="false" native="false" synchronized="false"
  7058. static="false" final="false" visibility="public"
  7059. deprecated="not deprecated">
  7060. <doc>
  7061. <![CDATA[Get the length of this file, in bytes.
  7062. @return the length of this file, in bytes.]]>
  7063. </doc>
  7064. </method>
  7065. <method name="isFile" return="boolean"
  7066. abstract="false" native="false" synchronized="false"
  7067. static="false" final="false" visibility="public"
  7068. deprecated="not deprecated">
  7069. <doc>
  7070. <![CDATA[Is this a file?
  7071. @return true if this is a file]]>
  7072. </doc>
  7073. </method>
  7074. <method name="isDirectory" return="boolean"
  7075. abstract="false" native="false" synchronized="false"
  7076. static="false" final="false" visibility="public"
  7077. deprecated="not deprecated">
  7078. <doc>
  7079. <![CDATA[Is this a directory?
  7080. @return true if this is a directory]]>
  7081. </doc>
  7082. </method>
  7083. <method name="isDir" return="boolean"
  7084. abstract="false" native="false" synchronized="false"
  7085. static="false" final="false" visibility="public"
  7086. deprecated="Use {@link FileStatus#isFile()},
  7087. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7088. instead.">
  7089. <doc>
  7090. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7091. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7092. @return true if this is a directory.
  7093. @deprecated Use {@link FileStatus#isFile()},
  7094. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7095. instead.]]>
  7096. </doc>
  7097. </method>
  7098. <method name="isSymlink" return="boolean"
  7099. abstract="false" native="false" synchronized="false"
  7100. static="false" final="false" visibility="public"
  7101. deprecated="not deprecated">
  7102. <doc>
  7103. <![CDATA[Is this a symbolic link?
  7104. @return true if this is a symbolic link]]>
  7105. </doc>
  7106. </method>
  7107. <method name="getBlockSize" return="long"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. <doc>
  7112. <![CDATA[Get the block size of the file.
  7113. @return the number of bytes]]>
  7114. </doc>
  7115. </method>
  7116. <method name="getReplication" return="short"
  7117. abstract="false" native="false" synchronized="false"
  7118. static="false" final="false" visibility="public"
  7119. deprecated="not deprecated">
  7120. <doc>
  7121. <![CDATA[Get the replication factor of a file.
  7122. @return the replication factor of a file.]]>
  7123. </doc>
  7124. </method>
  7125. <method name="getModificationTime" return="long"
  7126. abstract="false" native="false" synchronized="false"
  7127. static="false" final="false" visibility="public"
  7128. deprecated="not deprecated">
  7129. <doc>
  7130. <![CDATA[Get the modification time of the file.
  7131. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7132. </doc>
  7133. </method>
  7134. <method name="getAccessTime" return="long"
  7135. abstract="false" native="false" synchronized="false"
  7136. static="false" final="false" visibility="public"
  7137. deprecated="not deprecated">
  7138. <doc>
  7139. <![CDATA[Get the access time of the file.
  7140. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7141. </doc>
  7142. </method>
  7143. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7144. abstract="false" native="false" synchronized="false"
  7145. static="false" final="false" visibility="public"
  7146. deprecated="not deprecated">
  7147. <doc>
  7148. <![CDATA[Get FsPermission associated with the file.
  7149. @return permssion. If a filesystem does not have a notion of permissions
  7150. or if permissions could not be determined, then default
  7151. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7152. </doc>
  7153. </method>
  7154. <method name="isEncrypted" return="boolean"
  7155. abstract="false" native="false" synchronized="false"
  7156. static="false" final="false" visibility="public"
  7157. deprecated="not deprecated">
  7158. <doc>
  7159. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7160. @return true if the underlying file is encrypted.]]>
  7161. </doc>
  7162. </method>
  7163. <method name="getOwner" return="java.lang.String"
  7164. abstract="false" native="false" synchronized="false"
  7165. static="false" final="false" visibility="public"
  7166. deprecated="not deprecated">
  7167. <doc>
  7168. <![CDATA[Get the owner of the file.
  7169. @return owner of the file. The string could be empty if there is no
  7170. notion of owner of a file in a filesystem or if it could not
  7171. be determined (rare).]]>
  7172. </doc>
  7173. </method>
  7174. <method name="getGroup" return="java.lang.String"
  7175. abstract="false" native="false" synchronized="false"
  7176. static="false" final="false" visibility="public"
  7177. deprecated="not deprecated">
  7178. <doc>
  7179. <![CDATA[Get the group associated with the file.
  7180. @return group for the file. The string could be empty if there is no
  7181. notion of group of a file in a filesystem or if it could not
  7182. be determined (rare).]]>
  7183. </doc>
  7184. </method>
  7185. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7186. abstract="false" native="false" synchronized="false"
  7187. static="false" final="false" visibility="public"
  7188. deprecated="not deprecated">
  7189. </method>
  7190. <method name="setPath"
  7191. abstract="false" native="false" synchronized="false"
  7192. static="false" final="false" visibility="public"
  7193. deprecated="not deprecated">
  7194. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7195. </method>
  7196. <method name="setPermission"
  7197. abstract="false" native="false" synchronized="false"
  7198. static="false" final="false" visibility="protected"
  7199. deprecated="not deprecated">
  7200. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7201. <doc>
  7202. <![CDATA[Sets permission.
  7203. @param permission if permission is null, default value is set]]>
  7204. </doc>
  7205. </method>
  7206. <method name="setOwner"
  7207. abstract="false" native="false" synchronized="false"
  7208. static="false" final="false" visibility="protected"
  7209. deprecated="not deprecated">
  7210. <param name="owner" type="java.lang.String"/>
  7211. <doc>
  7212. <![CDATA[Sets owner.
  7213. @param owner if it is null, default value is set]]>
  7214. </doc>
  7215. </method>
  7216. <method name="setGroup"
  7217. abstract="false" native="false" synchronized="false"
  7218. static="false" final="false" visibility="protected"
  7219. deprecated="not deprecated">
  7220. <param name="group" type="java.lang.String"/>
  7221. <doc>
  7222. <![CDATA[Sets group.
  7223. @param group if it is null, default value is set]]>
  7224. </doc>
  7225. </method>
  7226. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  7227. abstract="false" native="false" synchronized="false"
  7228. static="false" final="false" visibility="public"
  7229. deprecated="not deprecated">
  7230. <exception name="IOException" type="java.io.IOException"/>
  7231. <doc>
  7232. <![CDATA[@return The contents of the symbolic link.]]>
  7233. </doc>
  7234. </method>
  7235. <method name="setSymlink"
  7236. abstract="false" native="false" synchronized="false"
  7237. static="false" final="false" visibility="public"
  7238. deprecated="not deprecated">
  7239. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7240. </method>
  7241. <method name="write"
  7242. abstract="false" native="false" synchronized="false"
  7243. static="false" final="false" visibility="public"
  7244. deprecated="not deprecated">
  7245. <param name="out" type="java.io.DataOutput"/>
  7246. <exception name="IOException" type="java.io.IOException"/>
  7247. </method>
  7248. <method name="readFields"
  7249. abstract="false" native="false" synchronized="false"
  7250. static="false" final="false" visibility="public"
  7251. deprecated="not deprecated">
  7252. <param name="in" type="java.io.DataInput"/>
  7253. <exception name="IOException" type="java.io.IOException"/>
  7254. </method>
  7255. <method name="compareTo" return="int"
  7256. abstract="false" native="false" synchronized="false"
  7257. static="false" final="false" visibility="public"
  7258. deprecated="not deprecated">
  7259. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  7260. <doc>
  7261. <![CDATA[Compare this FileStatus to another FileStatus
  7262. @param o the FileStatus to be compared.
  7263. @return a negative integer, zero, or a positive integer as this object
  7264. is less than, equal to, or greater than the specified object.]]>
  7265. </doc>
  7266. </method>
  7267. <method name="compareTo" return="int"
  7268. abstract="false" native="false" synchronized="false"
  7269. static="false" final="false" visibility="public"
  7270. deprecated="not deprecated">
  7271. <param name="o" type="java.lang.Object"/>
  7272. <doc>
  7273. <![CDATA[Compare this FileStatus to another FileStatus.
  7274. This method was added back by HADOOP-14683 to keep binary compatibility.
  7275. @param o the FileStatus to be compared.
  7276. @return a negative integer, zero, or a positive integer as this object
  7277. is less than, equal to, or greater than the specified object.
  7278. @throws ClassCastException if the specified object is not FileStatus]]>
  7279. </doc>
  7280. </method>
  7281. <method name="equals" return="boolean"
  7282. abstract="false" native="false" synchronized="false"
  7283. static="false" final="false" visibility="public"
  7284. deprecated="not deprecated">
  7285. <param name="o" type="java.lang.Object"/>
  7286. <doc>
  7287. <![CDATA[Compare if this object is equal to another object
  7288. @param o the object to be compared.
  7289. @return true if two file status has the same path name; false if not.]]>
  7290. </doc>
  7291. </method>
  7292. <method name="hashCode" return="int"
  7293. abstract="false" native="false" synchronized="false"
  7294. static="false" final="false" visibility="public"
  7295. deprecated="not deprecated">
  7296. <doc>
  7297. <![CDATA[Returns a hash code value for the object, which is defined as
  7298. the hash code of the path name.
  7299. @return a hash code value for the path name.]]>
  7300. </doc>
  7301. </method>
  7302. <method name="toString" return="java.lang.String"
  7303. abstract="false" native="false" synchronized="false"
  7304. static="false" final="false" visibility="public"
  7305. deprecated="not deprecated">
  7306. </method>
  7307. <doc>
  7308. <![CDATA[Interface that represents the client side information for a file.]]>
  7309. </doc>
  7310. </class>
  7311. <!-- end class org.apache.hadoop.fs.FileStatus -->
  7312. <!-- start class org.apache.hadoop.fs.FileSystem -->
  7313. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  7314. abstract="true"
  7315. static="false" final="false" visibility="public"
  7316. deprecated="not deprecated">
  7317. <implements name="java.io.Closeable"/>
  7318. <constructor name="FileSystem"
  7319. static="false" final="false" visibility="protected"
  7320. deprecated="not deprecated">
  7321. </constructor>
  7322. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7323. abstract="false" native="false" synchronized="false"
  7324. static="true" final="false" visibility="public"
  7325. deprecated="not deprecated">
  7326. <param name="uri" type="java.net.URI"/>
  7327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7328. <param name="user" type="java.lang.String"/>
  7329. <exception name="IOException" type="java.io.IOException"/>
  7330. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7331. <doc>
  7332. <![CDATA[Get a filesystem instance based on the uri, the passed
  7333. configuration and the user
  7334. @param uri of the filesystem
  7335. @param conf the configuration to use
  7336. @param user to perform the get as
  7337. @return the filesystem instance
  7338. @throws IOException
  7339. @throws InterruptedException]]>
  7340. </doc>
  7341. </method>
  7342. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7343. abstract="false" native="false" synchronized="false"
  7344. static="true" final="false" visibility="public"
  7345. deprecated="not deprecated">
  7346. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7347. <exception name="IOException" type="java.io.IOException"/>
  7348. <doc>
  7349. <![CDATA[Returns the configured filesystem implementation.
  7350. @param conf the configuration to use]]>
  7351. </doc>
  7352. </method>
  7353. <method name="getDefaultUri" return="java.net.URI"
  7354. abstract="false" native="false" synchronized="false"
  7355. static="true" final="false" visibility="public"
  7356. deprecated="not deprecated">
  7357. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7358. <doc>
  7359. <![CDATA[Get the default filesystem URI from a configuration.
  7360. @param conf the configuration to use
  7361. @return the uri of the default filesystem]]>
  7362. </doc>
  7363. </method>
  7364. <method name="setDefaultUri"
  7365. abstract="false" native="false" synchronized="false"
  7366. static="true" final="false" visibility="public"
  7367. deprecated="not deprecated">
  7368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7369. <param name="uri" type="java.net.URI"/>
  7370. <doc>
  7371. <![CDATA[Set the default filesystem URI in a configuration.
  7372. @param conf the configuration to alter
  7373. @param uri the new default filesystem uri]]>
  7374. </doc>
  7375. </method>
  7376. <method name="setDefaultUri"
  7377. abstract="false" native="false" synchronized="false"
  7378. static="true" final="false" visibility="public"
  7379. deprecated="not deprecated">
  7380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7381. <param name="uri" type="java.lang.String"/>
  7382. <doc>
  7383. <![CDATA[Set the default filesystem URI in a configuration.
  7384. @param conf the configuration to alter
  7385. @param uri the new default filesystem uri]]>
  7386. </doc>
  7387. </method>
  7388. <method name="initialize"
  7389. abstract="false" native="false" synchronized="false"
  7390. static="false" final="false" visibility="public"
  7391. deprecated="not deprecated">
  7392. <param name="name" type="java.net.URI"/>
  7393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7394. <exception name="IOException" type="java.io.IOException"/>
  7395. <doc>
  7396. <![CDATA[Called after a new FileSystem instance is constructed.
  7397. @param name a uri whose authority section names the host, port, etc.
  7398. for this FileSystem
  7399. @param conf the configuration]]>
  7400. </doc>
  7401. </method>
  7402. <method name="getScheme" return="java.lang.String"
  7403. abstract="false" native="false" synchronized="false"
  7404. static="false" final="false" visibility="public"
  7405. deprecated="not deprecated">
  7406. <doc>
  7407. <![CDATA[Return the protocol scheme for the FileSystem.
  7408. <p/>
  7409. This implementation throws an <code>UnsupportedOperationException</code>.
  7410. @return the protocol scheme for the FileSystem.]]>
  7411. </doc>
  7412. </method>
  7413. <method name="getUri" return="java.net.URI"
  7414. abstract="true" native="false" synchronized="false"
  7415. static="false" final="false" visibility="public"
  7416. deprecated="not deprecated">
  7417. <doc>
  7418. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  7419. </doc>
  7420. </method>
  7421. <method name="getCanonicalUri" return="java.net.URI"
  7422. abstract="false" native="false" synchronized="false"
  7423. static="false" final="false" visibility="protected"
  7424. deprecated="not deprecated">
  7425. <doc>
  7426. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  7427. The default implementation simply calls {@link #canonicalizeUri(URI)}
  7428. on the filesystem's own URI, so subclasses typically only need to
  7429. implement that method.
  7430. @see #canonicalizeUri(URI)]]>
  7431. </doc>
  7432. </method>
  7433. <method name="canonicalizeUri" return="java.net.URI"
  7434. abstract="false" native="false" synchronized="false"
  7435. static="false" final="false" visibility="protected"
  7436. deprecated="not deprecated">
  7437. <param name="uri" type="java.net.URI"/>
  7438. <doc>
  7439. <![CDATA[Canonicalize the given URI.
  7440. This is filesystem-dependent, but may for example consist of
  7441. canonicalizing the hostname using DNS and adding the default
  7442. port if not specified.
  7443. The default implementation simply fills in the default port if
  7444. not specified and if the filesystem has a default port.
  7445. @return URI
  7446. @see NetUtils#getCanonicalUri(URI, int)]]>
  7447. </doc>
  7448. </method>
  7449. <method name="getDefaultPort" return="int"
  7450. abstract="false" native="false" synchronized="false"
  7451. static="false" final="false" visibility="protected"
  7452. deprecated="not deprecated">
  7453. <doc>
  7454. <![CDATA[Get the default port for this file system.
  7455. @return the default port or 0 if there isn't one]]>
  7456. </doc>
  7457. </method>
  7458. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  7459. abstract="false" native="false" synchronized="false"
  7460. static="true" final="false" visibility="protected"
  7461. deprecated="not deprecated">
  7462. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  7463. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7464. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7465. <exception name="IOException" type="java.io.IOException"/>
  7466. </method>
  7467. <method name="getCanonicalServiceName" return="java.lang.String"
  7468. abstract="false" native="false" synchronized="false"
  7469. static="false" final="false" visibility="public"
  7470. deprecated="not deprecated">
  7471. <doc>
  7472. <![CDATA[Get a canonical service name for this file system. The token cache is
  7473. the only user of the canonical service name, and uses it to lookup this
  7474. filesystem's service tokens.
  7475. If file system provides a token of its own then it must have a canonical
  7476. name, otherwise canonical name can be null.
  7477. Default Impl: If the file system has child file systems
  7478. (such as an embedded file system) then it is assumed that the fs has no
  7479. tokens of its own and hence returns a null name; otherwise a service
  7480. name is built using Uri and port.
  7481. @return a service string that uniquely identifies this file system, null
  7482. if the filesystem does not implement tokens
  7483. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  7484. </doc>
  7485. </method>
  7486. <method name="getName" return="java.lang.String"
  7487. abstract="false" native="false" synchronized="false"
  7488. static="false" final="false" visibility="public"
  7489. deprecated="call #getUri() instead.">
  7490. <doc>
  7491. <![CDATA[@deprecated call #getUri() instead.]]>
  7492. </doc>
  7493. </method>
  7494. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  7495. abstract="false" native="false" synchronized="false"
  7496. static="true" final="false" visibility="public"
  7497. deprecated="call #get(URI,Configuration) instead.">
  7498. <param name="name" type="java.lang.String"/>
  7499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7500. <exception name="IOException" type="java.io.IOException"/>
  7501. <doc>
  7502. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  7503. </doc>
  7504. </method>
  7505. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  7506. abstract="false" native="false" synchronized="false"
  7507. static="true" final="false" visibility="public"
  7508. deprecated="not deprecated">
  7509. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7510. <exception name="IOException" type="java.io.IOException"/>
  7511. <doc>
  7512. <![CDATA[Get the local file system.
  7513. @param conf the configuration to configure the file system with
  7514. @return a LocalFileSystem]]>
  7515. </doc>
  7516. </method>
  7517. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7518. abstract="false" native="false" synchronized="false"
  7519. static="true" final="false" visibility="public"
  7520. deprecated="not deprecated">
  7521. <param name="uri" type="java.net.URI"/>
  7522. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7523. <exception name="IOException" type="java.io.IOException"/>
  7524. <doc>
  7525. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  7526. of the URI determines a configuration property name,
  7527. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  7528. The entire URI is passed to the FileSystem instance's initialize method.]]>
  7529. </doc>
  7530. </method>
  7531. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  7532. abstract="false" native="false" synchronized="false"
  7533. static="true" final="false" visibility="public"
  7534. deprecated="not deprecated">
  7535. <param name="uri" type="java.net.URI"/>
  7536. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7537. <param name="user" type="java.lang.String"/>
  7538. <exception name="IOException" type="java.io.IOException"/>
  7539. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7540. <doc>
  7541. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  7542. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  7543. @param uri of the filesystem
  7544. @param conf the configuration to use
  7545. @param user to perform the get as
  7546. @return filesystem instance
  7547. @throws IOException
  7548. @throws InterruptedException]]>
  7549. </doc>
  7550. </method>
  7551. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  7552. abstract="false" native="false" synchronized="false"
  7553. static="true" final="false" visibility="public"
  7554. deprecated="not deprecated">
  7555. <param name="uri" type="java.net.URI"/>
  7556. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7557. <exception name="IOException" type="java.io.IOException"/>
  7558. <doc>
  7559. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  7560. of the URI determines a configuration property name,
  7561. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  7562. The entire URI is passed to the FileSystem instance's initialize method.
  7563. This always returns a new FileSystem object.]]>
  7564. </doc>
  7565. </method>
  7566. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  7567. abstract="false" native="false" synchronized="false"
  7568. static="true" final="false" visibility="public"
  7569. deprecated="not deprecated">
  7570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7571. <exception name="IOException" type="java.io.IOException"/>
  7572. <doc>
  7573. <![CDATA[Returns a unique configured filesystem implementation.
  7574. This always returns a new FileSystem object.
  7575. @param conf the configuration to use]]>
  7576. </doc>
  7577. </method>
  7578. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  7579. abstract="false" native="false" synchronized="false"
  7580. static="true" final="false" visibility="public"
  7581. deprecated="not deprecated">
  7582. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7583. <exception name="IOException" type="java.io.IOException"/>
  7584. <doc>
  7585. <![CDATA[Get a unique local file system object
  7586. @param conf the configuration to configure the file system with
  7587. @return a LocalFileSystem
  7588. This always returns a new FileSystem object.]]>
  7589. </doc>
  7590. </method>
  7591. <method name="closeAll"
  7592. abstract="false" native="false" synchronized="false"
  7593. static="true" final="false" visibility="public"
  7594. deprecated="not deprecated">
  7595. <exception name="IOException" type="java.io.IOException"/>
  7596. <doc>
  7597. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  7598. used anymore.
  7599. @throws IOException]]>
  7600. </doc>
  7601. </method>
  7602. <method name="closeAllForUGI"
  7603. abstract="false" native="false" synchronized="false"
  7604. static="true" final="false" visibility="public"
  7605. deprecated="not deprecated">
  7606. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  7607. <exception name="IOException" type="java.io.IOException"/>
  7608. <doc>
  7609. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  7610. are not used anymore.
  7611. @param ugi user group info to close
  7612. @throws IOException]]>
  7613. </doc>
  7614. </method>
  7615. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  7616. abstract="false" native="false" synchronized="false"
  7617. static="false" final="false" visibility="public"
  7618. deprecated="not deprecated">
  7619. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7620. <doc>
  7621. <![CDATA[Make sure that a path specifies a FileSystem.
  7622. @param path to use]]>
  7623. </doc>
  7624. </method>
  7625. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  7626. abstract="false" native="false" synchronized="false"
  7627. static="false" final="false" visibility="public"
  7628. deprecated="not deprecated">
  7629. <param name="renewer" type="java.lang.String"/>
  7630. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  7631. <exception name="IOException" type="java.io.IOException"/>
  7632. <doc>
  7633. <![CDATA[Obtain all delegation tokens used by this FileSystem that are not
  7634. already present in the given Credentials. Existing tokens will neither
  7635. be verified as valid nor having the given renewer. Missing tokens will
  7636. be acquired and added to the given Credentials.
  7637. Default Impl: works for simple fs with its own token
  7638. and also for an embedded fs whose tokens are those of its
  7639. children file system (i.e. the embedded fs has not tokens of its
  7640. own).
  7641. @param renewer the user allowed to renew the delegation tokens
  7642. @param credentials cache in which to add new delegation tokens
  7643. @return list of new delegation tokens
  7644. @throws IOException]]>
  7645. </doc>
  7646. </method>
  7647. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7648. abstract="false" native="false" synchronized="false"
  7649. static="true" final="false" visibility="public"
  7650. deprecated="not deprecated">
  7651. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7652. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7653. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7654. <exception name="IOException" type="java.io.IOException"/>
  7655. <doc>
  7656. <![CDATA[create a file with the provided permission
  7657. The permission of the file is set to be the provided permission as in
  7658. setPermission, not permission&~umask
  7659. It is implemented using two RPCs. It is understood that it is inefficient,
  7660. but the implementation is thread-safe. The other option is to change the
  7661. value of umask in configuration to be 0, but it is not thread-safe.
  7662. @param fs file system handle
  7663. @param file the name of the file to be created
  7664. @param permission the permission of the file
  7665. @return an output stream
  7666. @throws IOException]]>
  7667. </doc>
  7668. </method>
  7669. <method name="mkdirs" return="boolean"
  7670. abstract="false" native="false" synchronized="false"
  7671. static="true" final="false" visibility="public"
  7672. deprecated="not deprecated">
  7673. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7674. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7675. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7676. <exception name="IOException" type="java.io.IOException"/>
  7677. <doc>
  7678. <![CDATA[create a directory with the provided permission
  7679. The permission of the directory is set to be the provided permission as in
  7680. setPermission, not permission&~umask
  7681. @see #create(FileSystem, Path, FsPermission)
  7682. @param fs file system handle
  7683. @param dir the name of the directory to be created
  7684. @param permission the permission of the directory
  7685. @return true if the directory creation succeeds; false otherwise
  7686. @throws IOException]]>
  7687. </doc>
  7688. </method>
  7689. <method name="checkPath"
  7690. abstract="false" native="false" synchronized="false"
  7691. static="false" final="false" visibility="protected"
  7692. deprecated="not deprecated">
  7693. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7694. <doc>
  7695. <![CDATA[Check that a Path belongs to this FileSystem.
  7696. @param path to check]]>
  7697. </doc>
  7698. </method>
  7699. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7700. abstract="false" native="false" synchronized="false"
  7701. static="false" final="false" visibility="public"
  7702. deprecated="not deprecated">
  7703. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7704. <param name="start" type="long"/>
  7705. <param name="len" type="long"/>
  7706. <exception name="IOException" type="java.io.IOException"/>
  7707. <doc>
  7708. <![CDATA[Return an array containing hostnames, offset and size of
  7709. portions of the given file. For a nonexistent
  7710. file or regions, null will be returned.
  7711. This call is most helpful with DFS, where it returns
  7712. hostnames of machines that contain the given file.
  7713. The FileSystem will simply return an elt containing 'localhost'.
  7714. @param file FilesStatus to get data from
  7715. @param start offset into the given file
  7716. @param len length for which to get locations for]]>
  7717. </doc>
  7718. </method>
  7719. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7720. abstract="false" native="false" synchronized="false"
  7721. static="false" final="false" visibility="public"
  7722. deprecated="not deprecated">
  7723. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7724. <param name="start" type="long"/>
  7725. <param name="len" type="long"/>
  7726. <exception name="IOException" type="java.io.IOException"/>
  7727. <doc>
  7728. <![CDATA[Return an array containing hostnames, offset and size of
  7729. portions of the given file. For a nonexistent
  7730. file or regions, null will be returned.
  7731. This call is most helpful with DFS, where it returns
  7732. hostnames of machines that contain the given file.
  7733. The FileSystem will simply return an elt containing 'localhost'.
  7734. @param p path is used to identify an FS since an FS could have
  7735. another FS that it could be delegating the call to
  7736. @param start offset into the given file
  7737. @param len length for which to get locations for]]>
  7738. </doc>
  7739. </method>
  7740. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  7741. abstract="false" native="false" synchronized="false"
  7742. static="false" final="false" visibility="public"
  7743. deprecated="use {@link #getServerDefaults(Path)} instead">
  7744. <exception name="IOException" type="java.io.IOException"/>
  7745. <doc>
  7746. <![CDATA[Return a set of server default configuration values
  7747. @return server default configuration values
  7748. @throws IOException
  7749. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  7750. </doc>
  7751. </method>
  7752. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  7753. abstract="false" native="false" synchronized="false"
  7754. static="false" final="false" visibility="public"
  7755. deprecated="not deprecated">
  7756. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7757. <exception name="IOException" type="java.io.IOException"/>
  7758. <doc>
  7759. <![CDATA[Return a set of server default configuration values
  7760. @param p path is used to identify an FS since an FS could have
  7761. another FS that it could be delegating the call to
  7762. @return server default configuration values
  7763. @throws IOException]]>
  7764. </doc>
  7765. </method>
  7766. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  7767. abstract="false" native="false" synchronized="false"
  7768. static="false" final="false" visibility="public"
  7769. deprecated="not deprecated">
  7770. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7771. <exception name="IOException" type="java.io.IOException"/>
  7772. <doc>
  7773. <![CDATA[Return the fully-qualified path of path f resolving the path
  7774. through any symlinks or mount point
  7775. @param p path to be resolved
  7776. @return fully qualified path
  7777. @throws FileNotFoundException]]>
  7778. </doc>
  7779. </method>
  7780. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7781. abstract="true" native="false" synchronized="false"
  7782. static="false" final="false" visibility="public"
  7783. deprecated="not deprecated">
  7784. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7785. <param name="bufferSize" type="int"/>
  7786. <exception name="IOException" type="java.io.IOException"/>
  7787. <doc>
  7788. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7789. @param f the file name to open
  7790. @param bufferSize the size of the buffer to be used.]]>
  7791. </doc>
  7792. </method>
  7793. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7794. abstract="false" native="false" synchronized="false"
  7795. static="false" final="false" visibility="public"
  7796. deprecated="not deprecated">
  7797. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7798. <exception name="IOException" type="java.io.IOException"/>
  7799. <doc>
  7800. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7801. @param f the file to open]]>
  7802. </doc>
  7803. </method>
  7804. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7805. abstract="false" native="false" synchronized="false"
  7806. static="false" final="false" visibility="public"
  7807. deprecated="not deprecated">
  7808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7809. <exception name="IOException" type="java.io.IOException"/>
  7810. <doc>
  7811. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7812. Files are overwritten by default.
  7813. @param f the file to create]]>
  7814. </doc>
  7815. </method>
  7816. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7817. abstract="false" native="false" synchronized="false"
  7818. static="false" final="false" visibility="public"
  7819. deprecated="not deprecated">
  7820. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7821. <param name="overwrite" type="boolean"/>
  7822. <exception name="IOException" type="java.io.IOException"/>
  7823. <doc>
  7824. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7825. @param f the file to create
  7826. @param overwrite if a file with this name already exists, then if true,
  7827. the file will be overwritten, and if false an exception will be thrown.]]>
  7828. </doc>
  7829. </method>
  7830. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7831. abstract="false" native="false" synchronized="false"
  7832. static="false" final="false" visibility="public"
  7833. deprecated="not deprecated">
  7834. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7835. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7836. <exception name="IOException" type="java.io.IOException"/>
  7837. <doc>
  7838. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7839. reporting.
  7840. Files are overwritten by default.
  7841. @param f the file to create
  7842. @param progress to report progress]]>
  7843. </doc>
  7844. </method>
  7845. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7846. abstract="false" native="false" synchronized="false"
  7847. static="false" final="false" visibility="public"
  7848. deprecated="not deprecated">
  7849. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7850. <param name="replication" type="short"/>
  7851. <exception name="IOException" type="java.io.IOException"/>
  7852. <doc>
  7853. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7854. Files are overwritten by default.
  7855. @param f the file to create
  7856. @param replication the replication factor]]>
  7857. </doc>
  7858. </method>
  7859. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7860. abstract="false" native="false" synchronized="false"
  7861. static="false" final="false" visibility="public"
  7862. deprecated="not deprecated">
  7863. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7864. <param name="replication" type="short"/>
  7865. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7866. <exception name="IOException" type="java.io.IOException"/>
  7867. <doc>
  7868. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7869. reporting.
  7870. Files are overwritten by default.
  7871. @param f the file to create
  7872. @param replication the replication factor
  7873. @param progress to report progress]]>
  7874. </doc>
  7875. </method>
  7876. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7877. abstract="false" native="false" synchronized="false"
  7878. static="false" final="false" visibility="public"
  7879. deprecated="not deprecated">
  7880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7881. <param name="overwrite" type="boolean"/>
  7882. <param name="bufferSize" type="int"/>
  7883. <exception name="IOException" type="java.io.IOException"/>
  7884. <doc>
  7885. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7886. @param f the file name to create
  7887. @param overwrite if a file with this name already exists, then if true,
  7888. the file will be overwritten, and if false an error will be thrown.
  7889. @param bufferSize the size of the buffer to be used.]]>
  7890. </doc>
  7891. </method>
  7892. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7893. abstract="false" native="false" synchronized="false"
  7894. static="false" final="false" visibility="public"
  7895. deprecated="not deprecated">
  7896. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7897. <param name="overwrite" type="boolean"/>
  7898. <param name="bufferSize" type="int"/>
  7899. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7900. <exception name="IOException" type="java.io.IOException"/>
  7901. <doc>
  7902. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7903. reporting.
  7904. @param f the path of the file to open
  7905. @param overwrite if a file with this name already exists, then if true,
  7906. the file will be overwritten, and if false an error will be thrown.
  7907. @param bufferSize the size of the buffer to be used.]]>
  7908. </doc>
  7909. </method>
  7910. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7911. abstract="false" native="false" synchronized="false"
  7912. static="false" final="false" visibility="public"
  7913. deprecated="not deprecated">
  7914. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7915. <param name="overwrite" type="boolean"/>
  7916. <param name="bufferSize" type="int"/>
  7917. <param name="replication" type="short"/>
  7918. <param name="blockSize" type="long"/>
  7919. <exception name="IOException" type="java.io.IOException"/>
  7920. <doc>
  7921. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7922. @param f the file name to open
  7923. @param overwrite if a file with this name already exists, then if true,
  7924. the file will be overwritten, and if false an error will be thrown.
  7925. @param bufferSize the size of the buffer to be used.
  7926. @param replication required block replication for the file.]]>
  7927. </doc>
  7928. </method>
  7929. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7930. abstract="false" native="false" synchronized="false"
  7931. static="false" final="false" visibility="public"
  7932. deprecated="not deprecated">
  7933. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7934. <param name="overwrite" type="boolean"/>
  7935. <param name="bufferSize" type="int"/>
  7936. <param name="replication" type="short"/>
  7937. <param name="blockSize" type="long"/>
  7938. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7939. <exception name="IOException" type="java.io.IOException"/>
  7940. <doc>
  7941. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7942. reporting.
  7943. @param f the file name to open
  7944. @param overwrite if a file with this name already exists, then if true,
  7945. the file will be overwritten, and if false an error will be thrown.
  7946. @param bufferSize the size of the buffer to be used.
  7947. @param replication required block replication for the file.]]>
  7948. </doc>
  7949. </method>
  7950. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7951. abstract="true" native="false" synchronized="false"
  7952. static="false" final="false" visibility="public"
  7953. deprecated="not deprecated">
  7954. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7955. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7956. <param name="overwrite" type="boolean"/>
  7957. <param name="bufferSize" type="int"/>
  7958. <param name="replication" type="short"/>
  7959. <param name="blockSize" type="long"/>
  7960. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7961. <exception name="IOException" type="java.io.IOException"/>
  7962. <doc>
  7963. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7964. reporting.
  7965. @param f the file name to open
  7966. @param permission
  7967. @param overwrite if a file with this name already exists, then if true,
  7968. the file will be overwritten, and if false an error will be thrown.
  7969. @param bufferSize the size of the buffer to be used.
  7970. @param replication required block replication for the file.
  7971. @param blockSize
  7972. @param progress
  7973. @throws IOException
  7974. @see #setPermission(Path, FsPermission)]]>
  7975. </doc>
  7976. </method>
  7977. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7978. abstract="false" native="false" synchronized="false"
  7979. static="false" final="false" visibility="public"
  7980. deprecated="not deprecated">
  7981. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7982. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7983. <param name="flags" type="java.util.EnumSet"/>
  7984. <param name="bufferSize" type="int"/>
  7985. <param name="replication" type="short"/>
  7986. <param name="blockSize" type="long"/>
  7987. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7988. <exception name="IOException" type="java.io.IOException"/>
  7989. <doc>
  7990. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7991. reporting.
  7992. @param f the file name to open
  7993. @param permission
  7994. @param flags {@link CreateFlag}s to use for this stream.
  7995. @param bufferSize the size of the buffer to be used.
  7996. @param replication required block replication for the file.
  7997. @param blockSize
  7998. @param progress
  7999. @throws IOException
  8000. @see #setPermission(Path, FsPermission)]]>
  8001. </doc>
  8002. </method>
  8003. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8004. abstract="false" native="false" synchronized="false"
  8005. static="false" final="false" visibility="public"
  8006. deprecated="not deprecated">
  8007. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8008. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8009. <param name="flags" type="java.util.EnumSet"/>
  8010. <param name="bufferSize" type="int"/>
  8011. <param name="replication" type="short"/>
  8012. <param name="blockSize" type="long"/>
  8013. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8014. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8015. <exception name="IOException" type="java.io.IOException"/>
  8016. <doc>
  8017. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  8018. checksum option
  8019. @param f the file name to open
  8020. @param permission
  8021. @param flags {@link CreateFlag}s to use for this stream.
  8022. @param bufferSize the size of the buffer to be used.
  8023. @param replication required block replication for the file.
  8024. @param blockSize
  8025. @param progress
  8026. @param checksumOpt checksum parameter. If null, the values
  8027. found in conf will be used.
  8028. @throws IOException
  8029. @see #setPermission(Path, FsPermission)]]>
  8030. </doc>
  8031. </method>
  8032. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  8033. abstract="false" native="false" synchronized="false"
  8034. static="false" final="false" visibility="protected"
  8035. deprecated="not deprecated">
  8036. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8037. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8038. <param name="flag" type="java.util.EnumSet"/>
  8039. <param name="bufferSize" type="int"/>
  8040. <param name="replication" type="short"/>
  8041. <param name="blockSize" type="long"/>
  8042. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8043. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8044. <exception name="IOException" type="java.io.IOException"/>
  8045. </method>
  8046. <method name="primitiveMkdir" return="boolean"
  8047. abstract="false" native="false" synchronized="false"
  8048. static="false" final="false" visibility="protected"
  8049. deprecated="not deprecated">
  8050. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8051. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8052. <exception name="IOException" type="java.io.IOException"/>
  8053. <doc>
  8054. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8055. It has been added to support the FileContext that processes the permission
  8056. with umask before calling this method.
  8057. This a temporary method added to support the transition from FileSystem
  8058. to FileContext for user applications.]]>
  8059. </doc>
  8060. </method>
  8061. <method name="primitiveMkdir"
  8062. abstract="false" native="false" synchronized="false"
  8063. static="false" final="false" visibility="protected"
  8064. deprecated="not deprecated">
  8065. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8066. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8067. <param name="createParent" type="boolean"/>
  8068. <exception name="IOException" type="java.io.IOException"/>
  8069. <doc>
  8070. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8071. It has been added to support the FileContext that processes the permission
  8072. with umask before calling this method.
  8073. This a temporary method added to support the transition from FileSystem
  8074. to FileContext for user applications.]]>
  8075. </doc>
  8076. </method>
  8077. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8078. abstract="false" native="false" synchronized="false"
  8079. static="false" final="false" visibility="public"
  8080. deprecated="not deprecated">
  8081. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8082. <param name="overwrite" type="boolean"/>
  8083. <param name="bufferSize" type="int"/>
  8084. <param name="replication" type="short"/>
  8085. <param name="blockSize" type="long"/>
  8086. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8087. <exception name="IOException" type="java.io.IOException"/>
  8088. <doc>
  8089. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8090. reporting. Same as create(), except fails if parent directory doesn't
  8091. already exist.
  8092. @param f the file name to open
  8093. @param overwrite if a file with this name already exists, then if true,
  8094. the file will be overwritten, and if false an error will be thrown.
  8095. @param bufferSize the size of the buffer to be used.
  8096. @param replication required block replication for the file.
  8097. @param blockSize
  8098. @param progress
  8099. @throws IOException
  8100. @see #setPermission(Path, FsPermission)]]>
  8101. </doc>
  8102. </method>
  8103. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8104. abstract="false" native="false" synchronized="false"
  8105. static="false" final="false" visibility="public"
  8106. deprecated="not deprecated">
  8107. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8108. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8109. <param name="overwrite" type="boolean"/>
  8110. <param name="bufferSize" type="int"/>
  8111. <param name="replication" type="short"/>
  8112. <param name="blockSize" type="long"/>
  8113. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8114. <exception name="IOException" type="java.io.IOException"/>
  8115. <doc>
  8116. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8117. reporting. Same as create(), except fails if parent directory doesn't
  8118. already exist.
  8119. @param f the file name to open
  8120. @param permission
  8121. @param overwrite if a file with this name already exists, then if true,
  8122. the file will be overwritten, and if false an error will be thrown.
  8123. @param bufferSize the size of the buffer to be used.
  8124. @param replication required block replication for the file.
  8125. @param blockSize
  8126. @param progress
  8127. @throws IOException
  8128. @see #setPermission(Path, FsPermission)]]>
  8129. </doc>
  8130. </method>
  8131. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8132. abstract="false" native="false" synchronized="false"
  8133. static="false" final="false" visibility="public"
  8134. deprecated="not deprecated">
  8135. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8136. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8137. <param name="flags" type="java.util.EnumSet"/>
  8138. <param name="bufferSize" type="int"/>
  8139. <param name="replication" type="short"/>
  8140. <param name="blockSize" type="long"/>
  8141. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8142. <exception name="IOException" type="java.io.IOException"/>
  8143. <doc>
  8144. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8145. reporting. Same as create(), except fails if parent directory doesn't
  8146. already exist.
  8147. @param f the file name to open
  8148. @param permission
  8149. @param flags {@link CreateFlag}s to use for this stream.
  8150. @param bufferSize the size of the buffer to be used.
  8151. @param replication required block replication for the file.
  8152. @param blockSize
  8153. @param progress
  8154. @throws IOException
  8155. @see #setPermission(Path, FsPermission)]]>
  8156. </doc>
  8157. </method>
  8158. <method name="createNewFile" return="boolean"
  8159. abstract="false" native="false" synchronized="false"
  8160. static="false" final="false" visibility="public"
  8161. deprecated="not deprecated">
  8162. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8163. <exception name="IOException" type="java.io.IOException"/>
  8164. <doc>
  8165. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8166. create fails, or if it already existed, return false.
  8167. @param f path to use for create]]>
  8168. </doc>
  8169. </method>
  8170. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8171. abstract="false" native="false" synchronized="false"
  8172. static="false" final="false" visibility="public"
  8173. deprecated="not deprecated">
  8174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8175. <exception name="IOException" type="java.io.IOException"/>
  8176. <doc>
  8177. <![CDATA[Append to an existing file (optional operation).
  8178. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  8179. @param f the existing file to be appended.
  8180. @throws IOException]]>
  8181. </doc>
  8182. </method>
  8183. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8184. abstract="false" native="false" synchronized="false"
  8185. static="false" final="false" visibility="public"
  8186. deprecated="not deprecated">
  8187. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8188. <param name="bufferSize" type="int"/>
  8189. <exception name="IOException" type="java.io.IOException"/>
  8190. <doc>
  8191. <![CDATA[Append to an existing file (optional operation).
  8192. Same as append(f, bufferSize, null).
  8193. @param f the existing file to be appended.
  8194. @param bufferSize the size of the buffer to be used.
  8195. @throws IOException]]>
  8196. </doc>
  8197. </method>
  8198. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8199. abstract="true" native="false" synchronized="false"
  8200. static="false" final="false" visibility="public"
  8201. deprecated="not deprecated">
  8202. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8203. <param name="bufferSize" type="int"/>
  8204. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8205. <exception name="IOException" type="java.io.IOException"/>
  8206. <doc>
  8207. <![CDATA[Append to an existing file (optional operation).
  8208. @param f the existing file to be appended.
  8209. @param bufferSize the size of the buffer to be used.
  8210. @param progress for reporting progress if it is not null.
  8211. @throws IOException]]>
  8212. </doc>
  8213. </method>
  8214. <method name="concat"
  8215. abstract="false" native="false" synchronized="false"
  8216. static="false" final="false" visibility="public"
  8217. deprecated="not deprecated">
  8218. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  8219. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  8220. <exception name="IOException" type="java.io.IOException"/>
  8221. <doc>
  8222. <![CDATA[Concat existing files together.
  8223. @param trg the path to the target destination.
  8224. @param psrcs the paths to the sources to use for the concatenation.
  8225. @throws IOException]]>
  8226. </doc>
  8227. </method>
  8228. <method name="getReplication" return="short"
  8229. abstract="false" native="false" synchronized="false"
  8230. static="false" final="false" visibility="public"
  8231. deprecated="Use getFileStatus() instead">
  8232. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8233. <exception name="IOException" type="java.io.IOException"/>
  8234. <doc>
  8235. <![CDATA[Get replication.
  8236. @deprecated Use getFileStatus() instead
  8237. @param src file name
  8238. @return file replication
  8239. @throws IOException]]>
  8240. </doc>
  8241. </method>
  8242. <method name="setReplication" return="boolean"
  8243. abstract="false" native="false" synchronized="false"
  8244. static="false" final="false" visibility="public"
  8245. deprecated="not deprecated">
  8246. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8247. <param name="replication" type="short"/>
  8248. <exception name="IOException" type="java.io.IOException"/>
  8249. <doc>
  8250. <![CDATA[Set replication for an existing file.
  8251. @param src file name
  8252. @param replication new replication
  8253. @throws IOException
  8254. @return true if successful;
  8255. false if file does not exist or is a directory]]>
  8256. </doc>
  8257. </method>
  8258. <method name="rename" return="boolean"
  8259. abstract="true" native="false" synchronized="false"
  8260. static="false" final="false" visibility="public"
  8261. deprecated="not deprecated">
  8262. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8263. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8264. <exception name="IOException" type="java.io.IOException"/>
  8265. <doc>
  8266. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  8267. or remote DFS.
  8268. @param src path to be renamed
  8269. @param dst new path after rename
  8270. @throws IOException on failure
  8271. @return true if rename is successful]]>
  8272. </doc>
  8273. </method>
  8274. <method name="rename"
  8275. abstract="false" native="false" synchronized="false"
  8276. static="false" final="false" visibility="protected"
  8277. deprecated="not deprecated">
  8278. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8279. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8280. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  8281. <exception name="IOException" type="java.io.IOException"/>
  8282. <doc>
  8283. <![CDATA[Renames Path src to Path dst
  8284. <ul>
  8285. <li>Fails if src is a file and dst is a directory.
  8286. <li>Fails if src is a directory and dst is a file.
  8287. <li>Fails if the parent of dst does not exist or is a file.
  8288. </ul>
  8289. <p>
  8290. If OVERWRITE option is not passed as an argument, rename fails
  8291. if the dst already exists.
  8292. <p>
  8293. If OVERWRITE option is passed as an argument, rename overwrites
  8294. the dst if it is a file or an empty directory. Rename fails if dst is
  8295. a non-empty directory.
  8296. <p>
  8297. Note that atomicity of rename is dependent on the file system
  8298. implementation. Please refer to the file system documentation for
  8299. details. This default implementation is non atomic.
  8300. <p>
  8301. This method is deprecated since it is a temporary method added to
  8302. support the transition from FileSystem to FileContext for user
  8303. applications.
  8304. @param src path to be renamed
  8305. @param dst new path after rename
  8306. @throws IOException on failure]]>
  8307. </doc>
  8308. </method>
  8309. <method name="truncate" return="boolean"
  8310. abstract="false" native="false" synchronized="false"
  8311. static="false" final="false" visibility="public"
  8312. deprecated="not deprecated">
  8313. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8314. <param name="newLength" type="long"/>
  8315. <exception name="IOException" type="java.io.IOException"/>
  8316. <doc>
  8317. <![CDATA[Truncate the file in the indicated path to the indicated size.
  8318. <ul>
  8319. <li>Fails if path is a directory.
  8320. <li>Fails if path does not exist.
  8321. <li>Fails if path is not closed.
  8322. <li>Fails if new size is greater than current size.
  8323. </ul>
  8324. @param f The path to the file to be truncated
  8325. @param newLength The size the file is to be truncated to
  8326. @return <code>true</code> if the file has been truncated to the desired
  8327. <code>newLength</code> and is immediately available to be reused for
  8328. write operations such as <code>append</code>, or
  8329. <code>false</code> if a background process of adjusting the length of
  8330. the last block has been started, and clients should wait for it to
  8331. complete before proceeding with further file updates.]]>
  8332. </doc>
  8333. </method>
  8334. <method name="delete" return="boolean"
  8335. abstract="false" native="false" synchronized="false"
  8336. static="false" final="false" visibility="public"
  8337. deprecated="Use {@link #delete(Path, boolean)} instead.">
  8338. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8339. <exception name="IOException" type="java.io.IOException"/>
  8340. <doc>
  8341. <![CDATA[Delete a file
  8342. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  8343. </doc>
  8344. </method>
  8345. <method name="delete" return="boolean"
  8346. abstract="true" native="false" synchronized="false"
  8347. static="false" final="false" visibility="public"
  8348. deprecated="not deprecated">
  8349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8350. <param name="recursive" type="boolean"/>
  8351. <exception name="IOException" type="java.io.IOException"/>
  8352. <doc>
  8353. <![CDATA[Delete a file.
  8354. @param f the path to delete.
  8355. @param recursive if path is a directory and set to
  8356. true, the directory is deleted else throws an exception. In
  8357. case of a file the recursive can be set to either true or false.
  8358. @return true if delete is successful else false.
  8359. @throws IOException]]>
  8360. </doc>
  8361. </method>
  8362. <method name="deleteOnExit" return="boolean"
  8363. abstract="false" native="false" synchronized="false"
  8364. static="false" final="false" visibility="public"
  8365. deprecated="not deprecated">
  8366. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8367. <exception name="IOException" type="java.io.IOException"/>
  8368. <doc>
  8369. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  8370. When the JVM shuts down,
  8371. all FileSystem objects will be closed automatically.
  8372. Then,
  8373. the marked path will be deleted as a result of closing the FileSystem.
  8374. The path has to exist in the file system.
  8375. @param f the path to delete.
  8376. @return true if deleteOnExit is successful, otherwise false.
  8377. @throws IOException]]>
  8378. </doc>
  8379. </method>
  8380. <method name="cancelDeleteOnExit" return="boolean"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8385. <doc>
  8386. <![CDATA[Cancel the deletion of the path when the FileSystem is closed
  8387. @param f the path to cancel deletion]]>
  8388. </doc>
  8389. </method>
  8390. <method name="processDeleteOnExit"
  8391. abstract="false" native="false" synchronized="false"
  8392. static="false" final="false" visibility="protected"
  8393. deprecated="not deprecated">
  8394. <doc>
  8395. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  8396. deletes all files in the specified paths.]]>
  8397. </doc>
  8398. </method>
  8399. <method name="exists" return="boolean"
  8400. abstract="false" native="false" synchronized="false"
  8401. static="false" final="false" visibility="public"
  8402. deprecated="not deprecated">
  8403. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8404. <exception name="IOException" type="java.io.IOException"/>
  8405. <doc>
  8406. <![CDATA[Check if exists.
  8407. @param f source file]]>
  8408. </doc>
  8409. </method>
  8410. <method name="isDirectory" return="boolean"
  8411. abstract="false" native="false" synchronized="false"
  8412. static="false" final="false" visibility="public"
  8413. deprecated="not deprecated">
  8414. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8415. <exception name="IOException" type="java.io.IOException"/>
  8416. <doc>
  8417. <![CDATA[True iff the named path is a directory.
  8418. Note: Avoid using this method. Instead reuse the FileStatus
  8419. returned by getFileStatus() or listStatus() methods.
  8420. @param f path to check]]>
  8421. </doc>
  8422. </method>
  8423. <method name="isFile" return="boolean"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8428. <exception name="IOException" type="java.io.IOException"/>
  8429. <doc>
  8430. <![CDATA[True iff the named path is a regular file.
  8431. Note: Avoid using this method. Instead reuse the FileStatus
  8432. returned by getFileStatus() or listStatus() methods.
  8433. @param f path to check]]>
  8434. </doc>
  8435. </method>
  8436. <method name="getLength" return="long"
  8437. abstract="false" native="false" synchronized="false"
  8438. static="false" final="false" visibility="public"
  8439. deprecated="Use getFileStatus() instead">
  8440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8441. <exception name="IOException" type="java.io.IOException"/>
  8442. <doc>
  8443. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8444. </doc>
  8445. </method>
  8446. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  8447. abstract="false" native="false" synchronized="false"
  8448. static="false" final="false" visibility="public"
  8449. deprecated="not deprecated">
  8450. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8451. <exception name="IOException" type="java.io.IOException"/>
  8452. <doc>
  8453. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  8454. @param f path to use]]>
  8455. </doc>
  8456. </method>
  8457. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  8458. abstract="false" native="false" synchronized="false"
  8459. static="false" final="false" visibility="public"
  8460. deprecated="not deprecated">
  8461. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8462. <exception name="IOException" type="java.io.IOException"/>
  8463. <doc>
  8464. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  8465. @param f path to use]]>
  8466. </doc>
  8467. </method>
  8468. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8469. abstract="true" native="false" synchronized="false"
  8470. static="false" final="false" visibility="public"
  8471. deprecated="not deprecated">
  8472. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8473. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8474. <exception name="IOException" type="java.io.IOException"/>
  8475. <doc>
  8476. <![CDATA[List the statuses of the files/directories in the given path if the path is
  8477. a directory.
  8478. <p>
  8479. Does not guarantee to return the List of files/directories status in a
  8480. sorted order.
  8481. @param f given path
  8482. @return the statuses of the files/directories in the given patch
  8483. @throws FileNotFoundException when the path does not exist;
  8484. IOException see specific implementation]]>
  8485. </doc>
  8486. </method>
  8487. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  8488. abstract="false" native="false" synchronized="false"
  8489. static="false" final="false" visibility="public"
  8490. deprecated="not deprecated">
  8491. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8492. <exception name="IOException" type="java.io.IOException"/>
  8493. <doc>
  8494. <![CDATA[@return an iterator over the corrupt files under the given path
  8495. (may contain duplicates if a file has more than one corrupt block)
  8496. @throws IOException]]>
  8497. </doc>
  8498. </method>
  8499. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8500. abstract="false" native="false" synchronized="false"
  8501. static="false" final="false" visibility="public"
  8502. deprecated="not deprecated">
  8503. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8504. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8505. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8506. <exception name="IOException" type="java.io.IOException"/>
  8507. <doc>
  8508. <![CDATA[Filter files/directories in the given path using the user-supplied path
  8509. filter.
  8510. <p>
  8511. Does not guarantee to return the List of files/directories status in a
  8512. sorted order.
  8513. @param f
  8514. a path name
  8515. @param filter
  8516. the user-supplied path filter
  8517. @return an array of FileStatus objects for the files under the given path
  8518. after applying the filter
  8519. @throws FileNotFoundException when the path does not exist;
  8520. IOException see specific implementation]]>
  8521. </doc>
  8522. </method>
  8523. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8524. abstract="false" native="false" synchronized="false"
  8525. static="false" final="false" visibility="public"
  8526. deprecated="not deprecated">
  8527. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8528. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8529. <exception name="IOException" type="java.io.IOException"/>
  8530. <doc>
  8531. <![CDATA[Filter files/directories in the given list of paths using default
  8532. path filter.
  8533. <p>
  8534. Does not guarantee to return the List of files/directories status in a
  8535. sorted order.
  8536. @param files
  8537. a list of paths
  8538. @return a list of statuses for the files under the given paths after
  8539. applying the filter default Path filter
  8540. @throws FileNotFoundException when the path does not exist;
  8541. IOException see specific implementation]]>
  8542. </doc>
  8543. </method>
  8544. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8545. abstract="false" native="false" synchronized="false"
  8546. static="false" final="false" visibility="public"
  8547. deprecated="not deprecated">
  8548. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8549. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8550. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8551. <exception name="IOException" type="java.io.IOException"/>
  8552. <doc>
  8553. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  8554. path filter.
  8555. <p>
  8556. Does not guarantee to return the List of files/directories status in a
  8557. sorted order.
  8558. @param files
  8559. a list of paths
  8560. @param filter
  8561. the user-supplied path filter
  8562. @return a list of statuses for the files under the given paths after
  8563. applying the filter
  8564. @throws FileNotFoundException when the path does not exist;
  8565. IOException see specific implementation]]>
  8566. </doc>
  8567. </method>
  8568. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8569. abstract="false" native="false" synchronized="false"
  8570. static="false" final="false" visibility="public"
  8571. deprecated="not deprecated">
  8572. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8573. <exception name="IOException" type="java.io.IOException"/>
  8574. <doc>
  8575. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  8576. files. Results are sorted by their names.
  8577. <p>
  8578. A filename pattern is composed of <i>regular</i> characters and
  8579. <i>special pattern matching</i> characters, which are:
  8580. <dl>
  8581. <dd>
  8582. <dl>
  8583. <p>
  8584. <dt> <tt> ? </tt>
  8585. <dd> Matches any single character.
  8586. <p>
  8587. <dt> <tt> * </tt>
  8588. <dd> Matches zero or more characters.
  8589. <p>
  8590. <dt> <tt> [<i>abc</i>] </tt>
  8591. <dd> Matches a single character from character set
  8592. <tt>{<i>a,b,c</i>}</tt>.
  8593. <p>
  8594. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  8595. <dd> Matches a single character from the character range
  8596. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  8597. lexicographically less than or equal to character <tt><i>b</i></tt>.
  8598. <p>
  8599. <dt> <tt> [^<i>a</i>] </tt>
  8600. <dd> Matches a single character that is not from character set or range
  8601. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  8602. immediately to the right of the opening bracket.
  8603. <p>
  8604. <dt> <tt> \<i>c</i> </tt>
  8605. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  8606. <p>
  8607. <dt> <tt> {ab,cd} </tt>
  8608. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  8609. <p>
  8610. <dt> <tt> {ab,c{de,fh}} </tt>
  8611. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  8612. </dl>
  8613. </dd>
  8614. </dl>
  8615. @param pathPattern a regular expression specifying a pth pattern
  8616. @return an array of paths that match the path pattern
  8617. @throws IOException]]>
  8618. </doc>
  8619. </method>
  8620. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8621. abstract="false" native="false" synchronized="false"
  8622. static="false" final="false" visibility="public"
  8623. deprecated="not deprecated">
  8624. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8625. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8626. <exception name="IOException" type="java.io.IOException"/>
  8627. <doc>
  8628. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  8629. and is accepted by the user-supplied path filter. Results are sorted by
  8630. their path names.
  8631. Return null if pathPattern has no glob and the path does not exist.
  8632. Return an empty array if pathPattern has a glob and no path matches it.
  8633. @param pathPattern
  8634. a regular expression specifying the path pattern
  8635. @param filter
  8636. a user-supplied path filter
  8637. @return an array of FileStatus objects
  8638. @throws IOException if any I/O error occurs when fetching file status]]>
  8639. </doc>
  8640. </method>
  8641. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  8642. abstract="false" native="false" synchronized="false"
  8643. static="false" final="false" visibility="public"
  8644. deprecated="not deprecated">
  8645. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8646. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8647. <exception name="IOException" type="java.io.IOException"/>
  8648. <doc>
  8649. <![CDATA[List the statuses of the files/directories in the given path if the path is
  8650. a directory.
  8651. Return the file's status and block locations If the path is a file.
  8652. If a returned status is a file, it contains the file's block locations.
  8653. @param f is the path
  8654. @return an iterator that traverses statuses of the files/directories
  8655. in the given path
  8656. @throws FileNotFoundException If <code>f</code> does not exist
  8657. @throws IOException If an I/O error occurred]]>
  8658. </doc>
  8659. </method>
  8660. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  8661. abstract="false" native="false" synchronized="false"
  8662. static="false" final="false" visibility="protected"
  8663. deprecated="not deprecated">
  8664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8665. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8666. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8667. <exception name="IOException" type="java.io.IOException"/>
  8668. <doc>
  8669. <![CDATA[Listing a directory
  8670. The returned results include its block location if it is a file
  8671. The results are filtered by the given path filter
  8672. @param f a path
  8673. @param filter a path filter
  8674. @return an iterator that traverses statuses of the files/directories
  8675. in the given path
  8676. @throws FileNotFoundException if <code>f</code> does not exist
  8677. @throws IOException if any I/O error occurred]]>
  8678. </doc>
  8679. </method>
  8680. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  8681. abstract="false" native="false" synchronized="false"
  8682. static="false" final="false" visibility="public"
  8683. deprecated="not deprecated">
  8684. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8685. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8686. <exception name="IOException" type="java.io.IOException"/>
  8687. <doc>
  8688. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  8689. while consuming the entries. Each file system implementation should
  8690. override this method and provide a more efficient implementation, if
  8691. possible.
  8692. Does not guarantee to return the iterator that traverses statuses
  8693. of the files in a sorted order.
  8694. @param p target path
  8695. @return remote iterator]]>
  8696. </doc>
  8697. </method>
  8698. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  8699. abstract="false" native="false" synchronized="false"
  8700. static="false" final="false" visibility="public"
  8701. deprecated="not deprecated">
  8702. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8703. <param name="recursive" type="boolean"/>
  8704. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8705. <exception name="IOException" type="java.io.IOException"/>
  8706. <doc>
  8707. <![CDATA[List the statuses and block locations of the files in the given path.
  8708. Does not guarantee to return the iterator that traverses statuses
  8709. of the files in a sorted order.
  8710. If the path is a directory,
  8711. if recursive is false, returns files in the directory;
  8712. if recursive is true, return files in the subtree rooted at the path.
  8713. If the path is a file, return the file's status and block locations.
  8714. @param f is the path
  8715. @param recursive if the subdirectories need to be traversed recursively
  8716. @return an iterator that traverses statuses of the files
  8717. @throws FileNotFoundException when the path does not exist;
  8718. IOException see specific implementation]]>
  8719. </doc>
  8720. </method>
  8721. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  8722. abstract="false" native="false" synchronized="false"
  8723. static="false" final="false" visibility="public"
  8724. deprecated="not deprecated">
  8725. <doc>
  8726. <![CDATA[Return the current user's home directory in this filesystem.
  8727. The default implementation returns "/user/$USER/".]]>
  8728. </doc>
  8729. </method>
  8730. <method name="setWorkingDirectory"
  8731. abstract="true" native="false" synchronized="false"
  8732. static="false" final="false" visibility="public"
  8733. deprecated="not deprecated">
  8734. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  8735. <doc>
  8736. <![CDATA[Set the current working directory for the given file system. All relative
  8737. paths will be resolved relative to it.
  8738. @param new_dir]]>
  8739. </doc>
  8740. </method>
  8741. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8742. abstract="true" native="false" synchronized="false"
  8743. static="false" final="false" visibility="public"
  8744. deprecated="not deprecated">
  8745. <doc>
  8746. <![CDATA[Get the current working directory for the given file system
  8747. @return the directory pathname]]>
  8748. </doc>
  8749. </method>
  8750. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8751. abstract="false" native="false" synchronized="false"
  8752. static="false" final="false" visibility="protected"
  8753. deprecated="not deprecated">
  8754. <doc>
  8755. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  8756. will be removed.
  8757. The working directory is implemented in FilesContext.
  8758. Some file systems like LocalFileSystem have an initial workingDir
  8759. that we use as the starting workingDir. For other file systems
  8760. like HDFS there is no built in notion of an initial workingDir.
  8761. @return if there is built in notion of workingDir then it
  8762. is returned; else a null is returned.]]>
  8763. </doc>
  8764. </method>
  8765. <method name="mkdirs" return="boolean"
  8766. abstract="false" native="false" synchronized="false"
  8767. static="false" final="false" visibility="public"
  8768. deprecated="not deprecated">
  8769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8770. <exception name="IOException" type="java.io.IOException"/>
  8771. <doc>
  8772. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  8773. </doc>
  8774. </method>
  8775. <method name="mkdirs" return="boolean"
  8776. abstract="true" native="false" synchronized="false"
  8777. static="false" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8780. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8781. <exception name="IOException" type="java.io.IOException"/>
  8782. <doc>
  8783. <![CDATA[Make the given file and all non-existent parents into
  8784. directories. Has the semantics of Unix 'mkdir -p'.
  8785. Existence of the directory hierarchy is not an error.
  8786. @param f path to create
  8787. @param permission to apply to f]]>
  8788. </doc>
  8789. </method>
  8790. <method name="copyFromLocalFile"
  8791. abstract="false" native="false" synchronized="false"
  8792. static="false" final="false" visibility="public"
  8793. deprecated="not deprecated">
  8794. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8795. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8796. <exception name="IOException" type="java.io.IOException"/>
  8797. <doc>
  8798. <![CDATA[The src file is on the local disk. Add it to FS at
  8799. the given dst name and the source is kept intact afterwards
  8800. @param src path
  8801. @param dst path]]>
  8802. </doc>
  8803. </method>
  8804. <method name="moveFromLocalFile"
  8805. abstract="false" native="false" synchronized="false"
  8806. static="false" final="false" visibility="public"
  8807. deprecated="not deprecated">
  8808. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8809. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8810. <exception name="IOException" type="java.io.IOException"/>
  8811. <doc>
  8812. <![CDATA[The src files is on the local disk. Add it to FS at
  8813. the given dst name, removing the source afterwards.
  8814. @param srcs path
  8815. @param dst path]]>
  8816. </doc>
  8817. </method>
  8818. <method name="moveFromLocalFile"
  8819. abstract="false" native="false" synchronized="false"
  8820. static="false" final="false" visibility="public"
  8821. deprecated="not deprecated">
  8822. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8823. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8824. <exception name="IOException" type="java.io.IOException"/>
  8825. <doc>
  8826. <![CDATA[The src file is on the local disk. Add it to FS at
  8827. the given dst name, removing the source afterwards.
  8828. @param src path
  8829. @param dst path]]>
  8830. </doc>
  8831. </method>
  8832. <method name="copyFromLocalFile"
  8833. abstract="false" native="false" synchronized="false"
  8834. static="false" final="false" visibility="public"
  8835. deprecated="not deprecated">
  8836. <param name="delSrc" type="boolean"/>
  8837. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8838. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8839. <exception name="IOException" type="java.io.IOException"/>
  8840. <doc>
  8841. <![CDATA[The src file is on the local disk. Add it to FS at
  8842. the given dst name.
  8843. delSrc indicates if the source should be removed
  8844. @param delSrc whether to delete the src
  8845. @param src path
  8846. @param dst path]]>
  8847. </doc>
  8848. </method>
  8849. <method name="copyFromLocalFile"
  8850. abstract="false" native="false" synchronized="false"
  8851. static="false" final="false" visibility="public"
  8852. deprecated="not deprecated">
  8853. <param name="delSrc" type="boolean"/>
  8854. <param name="overwrite" type="boolean"/>
  8855. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8856. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8857. <exception name="IOException" type="java.io.IOException"/>
  8858. <doc>
  8859. <![CDATA[The src files are on the local disk. Add it to FS at
  8860. the given dst name.
  8861. delSrc indicates if the source should be removed
  8862. @param delSrc whether to delete the src
  8863. @param overwrite whether to overwrite an existing file
  8864. @param srcs array of paths which are source
  8865. @param dst path]]>
  8866. </doc>
  8867. </method>
  8868. <method name="copyFromLocalFile"
  8869. abstract="false" native="false" synchronized="false"
  8870. static="false" final="false" visibility="public"
  8871. deprecated="not deprecated">
  8872. <param name="delSrc" type="boolean"/>
  8873. <param name="overwrite" type="boolean"/>
  8874. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8875. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8876. <exception name="IOException" type="java.io.IOException"/>
  8877. <doc>
  8878. <![CDATA[The src file is on the local disk. Add it to FS at
  8879. the given dst name.
  8880. delSrc indicates if the source should be removed
  8881. @param delSrc whether to delete the src
  8882. @param overwrite whether to overwrite an existing file
  8883. @param src path
  8884. @param dst path]]>
  8885. </doc>
  8886. </method>
  8887. <method name="copyToLocalFile"
  8888. abstract="false" native="false" synchronized="false"
  8889. static="false" final="false" visibility="public"
  8890. deprecated="not deprecated">
  8891. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8892. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8893. <exception name="IOException" type="java.io.IOException"/>
  8894. <doc>
  8895. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8896. Copy it from FS control to the local dst name.
  8897. @param src path
  8898. @param dst path]]>
  8899. </doc>
  8900. </method>
  8901. <method name="moveToLocalFile"
  8902. abstract="false" native="false" synchronized="false"
  8903. static="false" final="false" visibility="public"
  8904. deprecated="not deprecated">
  8905. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8906. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8907. <exception name="IOException" type="java.io.IOException"/>
  8908. <doc>
  8909. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8910. Copy it from FS control to the local dst name.
  8911. Remove the source afterwards
  8912. @param src path
  8913. @param dst path]]>
  8914. </doc>
  8915. </method>
  8916. <method name="copyToLocalFile"
  8917. abstract="false" native="false" synchronized="false"
  8918. static="false" final="false" visibility="public"
  8919. deprecated="not deprecated">
  8920. <param name="delSrc" type="boolean"/>
  8921. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8922. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8923. <exception name="IOException" type="java.io.IOException"/>
  8924. <doc>
  8925. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8926. Copy it from FS control to the local dst name.
  8927. delSrc indicates if the src will be removed or not.
  8928. @param delSrc whether to delete the src
  8929. @param src path
  8930. @param dst path]]>
  8931. </doc>
  8932. </method>
  8933. <method name="copyToLocalFile"
  8934. abstract="false" native="false" synchronized="false"
  8935. static="false" final="false" visibility="public"
  8936. deprecated="not deprecated">
  8937. <param name="delSrc" type="boolean"/>
  8938. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8939. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8940. <param name="useRawLocalFileSystem" type="boolean"/>
  8941. <exception name="IOException" type="java.io.IOException"/>
  8942. <doc>
  8943. <![CDATA[The src file is under FS, and the dst is on the local disk. Copy it from FS
  8944. control to the local dst name. delSrc indicates if the src will be removed
  8945. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  8946. as local file system or not. RawLocalFileSystem is non crc file system.So,
  8947. It will not create any crc files at local.
  8948. @param delSrc
  8949. whether to delete the src
  8950. @param src
  8951. path
  8952. @param dst
  8953. path
  8954. @param useRawLocalFileSystem
  8955. whether to use RawLocalFileSystem as local file system or not.
  8956. @throws IOException
  8957. - if any IO error]]>
  8958. </doc>
  8959. </method>
  8960. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  8961. abstract="false" native="false" synchronized="false"
  8962. static="false" final="false" visibility="public"
  8963. deprecated="not deprecated">
  8964. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8965. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8966. <exception name="IOException" type="java.io.IOException"/>
  8967. <doc>
  8968. <![CDATA[Returns a local File that the user can write output to. The caller
  8969. provides both the eventual FS target name and the local working
  8970. file. If the FS is local, we write directly into the target. If
  8971. the FS is remote, we write into the tmp local area.
  8972. @param fsOutputFile path of output file
  8973. @param tmpLocalFile path of local tmp file]]>
  8974. </doc>
  8975. </method>
  8976. <method name="completeLocalOutput"
  8977. abstract="false" native="false" synchronized="false"
  8978. static="false" final="false" visibility="public"
  8979. deprecated="not deprecated">
  8980. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8981. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8982. <exception name="IOException" type="java.io.IOException"/>
  8983. <doc>
  8984. <![CDATA[Called when we're all done writing to the target. A local FS will
  8985. do nothing, because we've written to exactly the right place. A remote
  8986. FS will copy the contents of tmpLocalFile to the correct target at
  8987. fsOutputFile.
  8988. @param fsOutputFile path of output file
  8989. @param tmpLocalFile path to local tmp file]]>
  8990. </doc>
  8991. </method>
  8992. <method name="close"
  8993. abstract="false" native="false" synchronized="false"
  8994. static="false" final="false" visibility="public"
  8995. deprecated="not deprecated">
  8996. <exception name="IOException" type="java.io.IOException"/>
  8997. <doc>
  8998. <![CDATA[No more filesystem operations are needed. Will
  8999. release any held locks.]]>
  9000. </doc>
  9001. </method>
  9002. <method name="getUsed" return="long"
  9003. abstract="false" native="false" synchronized="false"
  9004. static="false" final="false" visibility="public"
  9005. deprecated="not deprecated">
  9006. <exception name="IOException" type="java.io.IOException"/>
  9007. <doc>
  9008. <![CDATA[Return the total size of all files in the filesystem.]]>
  9009. </doc>
  9010. </method>
  9011. <method name="getUsed" return="long"
  9012. abstract="false" native="false" synchronized="false"
  9013. static="false" final="false" visibility="public"
  9014. deprecated="not deprecated">
  9015. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9016. <exception name="IOException" type="java.io.IOException"/>
  9017. <doc>
  9018. <![CDATA[Return the total size of all files from a specified path.]]>
  9019. </doc>
  9020. </method>
  9021. <method name="getBlockSize" return="long"
  9022. abstract="false" native="false" synchronized="false"
  9023. static="false" final="false" visibility="public"
  9024. deprecated="Use getFileStatus() instead">
  9025. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9026. <exception name="IOException" type="java.io.IOException"/>
  9027. <doc>
  9028. <![CDATA[@deprecated Use getFileStatus() instead]]>
  9029. </doc>
  9030. </method>
  9031. <method name="getDefaultBlockSize" return="long"
  9032. abstract="false" native="false" synchronized="false"
  9033. static="false" final="false" visibility="public"
  9034. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  9035. <doc>
  9036. <![CDATA[Return the number of bytes that large input files should be optimally
  9037. be split into to minimize i/o time.
  9038. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  9039. </doc>
  9040. </method>
  9041. <method name="getDefaultBlockSize" return="long"
  9042. abstract="false" native="false" synchronized="false"
  9043. static="false" final="false" visibility="public"
  9044. deprecated="not deprecated">
  9045. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9046. <doc>
  9047. <![CDATA[Return the number of bytes that large input files should be optimally
  9048. be split into to minimize i/o time. The given path will be used to
  9049. locate the actual filesystem. The full path does not have to exist.
  9050. @param f path of file
  9051. @return the default block size for the path's filesystem]]>
  9052. </doc>
  9053. </method>
  9054. <method name="getDefaultReplication" return="short"
  9055. abstract="false" native="false" synchronized="false"
  9056. static="false" final="false" visibility="public"
  9057. deprecated="use {@link #getDefaultReplication(Path)} instead">
  9058. <doc>
  9059. <![CDATA[Get the default replication.
  9060. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  9061. </doc>
  9062. </method>
  9063. <method name="getDefaultReplication" return="short"
  9064. abstract="false" native="false" synchronized="false"
  9065. static="false" final="false" visibility="public"
  9066. deprecated="not deprecated">
  9067. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9068. <doc>
  9069. <![CDATA[Get the default replication for a path. The given path will be used to
  9070. locate the actual filesystem. The full path does not have to exist.
  9071. @param path of the file
  9072. @return default replication for the path's filesystem]]>
  9073. </doc>
  9074. </method>
  9075. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9076. abstract="true" native="false" synchronized="false"
  9077. static="false" final="false" visibility="public"
  9078. deprecated="not deprecated">
  9079. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9080. <exception name="IOException" type="java.io.IOException"/>
  9081. <doc>
  9082. <![CDATA[Return a file status object that represents the path.
  9083. @param f The path we want information from
  9084. @return a FileStatus object
  9085. @throws FileNotFoundException when the path does not exist;
  9086. IOException see specific implementation]]>
  9087. </doc>
  9088. </method>
  9089. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  9090. abstract="false" native="false" synchronized="false"
  9091. static="false" final="false" visibility="protected"
  9092. deprecated="not deprecated">
  9093. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9094. <doc>
  9095. <![CDATA[See {@link FileContext#fixRelativePart}]]>
  9096. </doc>
  9097. </method>
  9098. <method name="createSymlink"
  9099. abstract="false" native="false" synchronized="false"
  9100. static="false" final="false" visibility="public"
  9101. deprecated="not deprecated">
  9102. <param name="target" type="org.apache.hadoop.fs.Path"/>
  9103. <param name="link" type="org.apache.hadoop.fs.Path"/>
  9104. <param name="createParent" type="boolean"/>
  9105. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9106. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  9107. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9108. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  9109. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9110. <exception name="IOException" type="java.io.IOException"/>
  9111. <doc>
  9112. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}]]>
  9113. </doc>
  9114. </method>
  9115. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  9116. abstract="false" native="false" synchronized="false"
  9117. static="false" final="false" visibility="public"
  9118. deprecated="not deprecated">
  9119. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9120. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9121. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9122. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9123. <exception name="IOException" type="java.io.IOException"/>
  9124. <doc>
  9125. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}]]>
  9126. </doc>
  9127. </method>
  9128. <method name="supportsSymlinks" return="boolean"
  9129. abstract="false" native="false" synchronized="false"
  9130. static="false" final="false" visibility="public"
  9131. deprecated="not deprecated">
  9132. <doc>
  9133. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}]]>
  9134. </doc>
  9135. </method>
  9136. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  9137. abstract="false" native="false" synchronized="false"
  9138. static="false" final="false" visibility="public"
  9139. deprecated="not deprecated">
  9140. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9141. <exception name="IOException" type="java.io.IOException"/>
  9142. <doc>
  9143. <![CDATA[See {@link FileContext#getLinkTarget(Path)}]]>
  9144. </doc>
  9145. </method>
  9146. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  9147. abstract="false" native="false" synchronized="false"
  9148. static="false" final="false" visibility="protected"
  9149. deprecated="not deprecated">
  9150. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9151. <exception name="IOException" type="java.io.IOException"/>
  9152. <doc>
  9153. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}]]>
  9154. </doc>
  9155. </method>
  9156. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9157. abstract="false" native="false" synchronized="false"
  9158. static="false" final="false" visibility="public"
  9159. deprecated="not deprecated">
  9160. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9161. <exception name="IOException" type="java.io.IOException"/>
  9162. <doc>
  9163. <![CDATA[Get the checksum of a file.
  9164. @param f The file path
  9165. @return The file checksum. The default return value is null,
  9166. which indicates that no checksum algorithm is implemented
  9167. in the corresponding FileSystem.]]>
  9168. </doc>
  9169. </method>
  9170. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9171. abstract="false" native="false" synchronized="false"
  9172. static="false" final="false" visibility="public"
  9173. deprecated="not deprecated">
  9174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9175. <param name="length" type="long"/>
  9176. <exception name="IOException" type="java.io.IOException"/>
  9177. <doc>
  9178. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  9179. specific length.
  9180. @param f The file path
  9181. @param length The length of the file range for checksum calculation
  9182. @return The file checksum.]]>
  9183. </doc>
  9184. </method>
  9185. <method name="setVerifyChecksum"
  9186. abstract="false" native="false" synchronized="false"
  9187. static="false" final="false" visibility="public"
  9188. deprecated="not deprecated">
  9189. <param name="verifyChecksum" type="boolean"/>
  9190. <doc>
  9191. <![CDATA[Set the verify checksum flag. This is only applicable if the
  9192. corresponding FileSystem supports checksum. By default doesn't do anything.
  9193. @param verifyChecksum]]>
  9194. </doc>
  9195. </method>
  9196. <method name="setWriteChecksum"
  9197. abstract="false" native="false" synchronized="false"
  9198. static="false" final="false" visibility="public"
  9199. deprecated="not deprecated">
  9200. <param name="writeChecksum" type="boolean"/>
  9201. <doc>
  9202. <![CDATA[Set the write checksum flag. This is only applicable if the
  9203. corresponding FileSystem supports checksum. By default doesn't do anything.
  9204. @param writeChecksum]]>
  9205. </doc>
  9206. </method>
  9207. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9208. abstract="false" native="false" synchronized="false"
  9209. static="false" final="false" visibility="public"
  9210. deprecated="not deprecated">
  9211. <exception name="IOException" type="java.io.IOException"/>
  9212. <doc>
  9213. <![CDATA[Returns a status object describing the use and capacity of the
  9214. file system. If the file system has multiple partitions, the
  9215. use and capacity of the root partition is reflected.
  9216. @return a FsStatus object
  9217. @throws IOException
  9218. see specific implementation]]>
  9219. </doc>
  9220. </method>
  9221. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9222. abstract="false" native="false" synchronized="false"
  9223. static="false" final="false" visibility="public"
  9224. deprecated="not deprecated">
  9225. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9226. <exception name="IOException" type="java.io.IOException"/>
  9227. <doc>
  9228. <![CDATA[Returns a status object describing the use and capacity of the
  9229. file system. If the file system has multiple partitions, the
  9230. use and capacity of the partition pointed to by the specified
  9231. path is reflected.
  9232. @param p Path for which status should be obtained. null means
  9233. the default partition.
  9234. @return a FsStatus object
  9235. @throws IOException
  9236. see specific implementation]]>
  9237. </doc>
  9238. </method>
  9239. <method name="setPermission"
  9240. abstract="false" native="false" synchronized="false"
  9241. static="false" final="false" visibility="public"
  9242. deprecated="not deprecated">
  9243. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9244. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9245. <exception name="IOException" type="java.io.IOException"/>
  9246. <doc>
  9247. <![CDATA[Set permission of a path.
  9248. @param p
  9249. @param permission]]>
  9250. </doc>
  9251. </method>
  9252. <method name="setOwner"
  9253. abstract="false" native="false" synchronized="false"
  9254. static="false" final="false" visibility="public"
  9255. deprecated="not deprecated">
  9256. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9257. <param name="username" type="java.lang.String"/>
  9258. <param name="groupname" type="java.lang.String"/>
  9259. <exception name="IOException" type="java.io.IOException"/>
  9260. <doc>
  9261. <![CDATA[Set owner of a path (i.e. a file or a directory).
  9262. The parameters username and groupname cannot both be null.
  9263. @param p The path
  9264. @param username If it is null, the original username remains unchanged.
  9265. @param groupname If it is null, the original groupname remains unchanged.]]>
  9266. </doc>
  9267. </method>
  9268. <method name="setTimes"
  9269. abstract="false" native="false" synchronized="false"
  9270. static="false" final="false" visibility="public"
  9271. deprecated="not deprecated">
  9272. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9273. <param name="mtime" type="long"/>
  9274. <param name="atime" type="long"/>
  9275. <exception name="IOException" type="java.io.IOException"/>
  9276. <doc>
  9277. <![CDATA[Set access time of a file
  9278. @param p The path
  9279. @param mtime Set the modification time of this file.
  9280. The number of milliseconds since Jan 1, 1970.
  9281. A value of -1 means that this call should not set modification time.
  9282. @param atime Set the access time of this file.
  9283. The number of milliseconds since Jan 1, 1970.
  9284. A value of -1 means that this call should not set access time.]]>
  9285. </doc>
  9286. </method>
  9287. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  9288. abstract="false" native="false" synchronized="false"
  9289. static="false" final="true" visibility="public"
  9290. deprecated="not deprecated">
  9291. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9292. <exception name="IOException" type="java.io.IOException"/>
  9293. <doc>
  9294. <![CDATA[Create a snapshot with a default name.
  9295. @param path The directory where snapshots will be taken.
  9296. @return the snapshot path.]]>
  9297. </doc>
  9298. </method>
  9299. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  9300. abstract="false" native="false" synchronized="false"
  9301. static="false" final="false" visibility="public"
  9302. deprecated="not deprecated">
  9303. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9304. <param name="snapshotName" type="java.lang.String"/>
  9305. <exception name="IOException" type="java.io.IOException"/>
  9306. <doc>
  9307. <![CDATA[Create a snapshot
  9308. @param path The directory where snapshots will be taken.
  9309. @param snapshotName The name of the snapshot
  9310. @return the snapshot path.]]>
  9311. </doc>
  9312. </method>
  9313. <method name="renameSnapshot"
  9314. abstract="false" native="false" synchronized="false"
  9315. static="false" final="false" visibility="public"
  9316. deprecated="not deprecated">
  9317. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9318. <param name="snapshotOldName" type="java.lang.String"/>
  9319. <param name="snapshotNewName" type="java.lang.String"/>
  9320. <exception name="IOException" type="java.io.IOException"/>
  9321. <doc>
  9322. <![CDATA[Rename a snapshot
  9323. @param path The directory path where the snapshot was taken
  9324. @param snapshotOldName Old name of the snapshot
  9325. @param snapshotNewName New name of the snapshot
  9326. @throws IOException]]>
  9327. </doc>
  9328. </method>
  9329. <method name="deleteSnapshot"
  9330. abstract="false" native="false" synchronized="false"
  9331. static="false" final="false" visibility="public"
  9332. deprecated="not deprecated">
  9333. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9334. <param name="snapshotName" type="java.lang.String"/>
  9335. <exception name="IOException" type="java.io.IOException"/>
  9336. <doc>
  9337. <![CDATA[Delete a snapshot of a directory
  9338. @param path The directory that the to-be-deleted snapshot belongs to
  9339. @param snapshotName The name of the snapshot]]>
  9340. </doc>
  9341. </method>
  9342. <method name="modifyAclEntries"
  9343. abstract="false" native="false" synchronized="false"
  9344. static="false" final="false" visibility="public"
  9345. deprecated="not deprecated">
  9346. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9347. <param name="aclSpec" type="java.util.List"/>
  9348. <exception name="IOException" type="java.io.IOException"/>
  9349. <doc>
  9350. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  9351. entries or modify the permissions on existing ACL entries. All existing
  9352. ACL entries that are not specified in this call are retained without
  9353. changes. (Modifications are merged into the current ACL.)
  9354. @param path Path to modify
  9355. @param aclSpec List<AclEntry> describing modifications
  9356. @throws IOException if an ACL could not be modified]]>
  9357. </doc>
  9358. </method>
  9359. <method name="removeAclEntries"
  9360. abstract="false" native="false" synchronized="false"
  9361. static="false" final="false" visibility="public"
  9362. deprecated="not deprecated">
  9363. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9364. <param name="aclSpec" type="java.util.List"/>
  9365. <exception name="IOException" type="java.io.IOException"/>
  9366. <doc>
  9367. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  9368. retained.
  9369. @param path Path to modify
  9370. @param aclSpec List<AclEntry> describing entries to remove
  9371. @throws IOException if an ACL could not be modified]]>
  9372. </doc>
  9373. </method>
  9374. <method name="removeDefaultAcl"
  9375. abstract="false" native="false" synchronized="false"
  9376. static="false" final="false" visibility="public"
  9377. deprecated="not deprecated">
  9378. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9379. <exception name="IOException" type="java.io.IOException"/>
  9380. <doc>
  9381. <![CDATA[Removes all default ACL entries from files and directories.
  9382. @param path Path to modify
  9383. @throws IOException if an ACL could not be modified]]>
  9384. </doc>
  9385. </method>
  9386. <method name="removeAcl"
  9387. abstract="false" native="false" synchronized="false"
  9388. static="false" final="false" visibility="public"
  9389. deprecated="not deprecated">
  9390. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9391. <exception name="IOException" type="java.io.IOException"/>
  9392. <doc>
  9393. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  9394. for user, group, and others are retained for compatibility with permission
  9395. bits.
  9396. @param path Path to modify
  9397. @throws IOException if an ACL could not be removed]]>
  9398. </doc>
  9399. </method>
  9400. <method name="setAcl"
  9401. abstract="false" native="false" synchronized="false"
  9402. static="false" final="false" visibility="public"
  9403. deprecated="not deprecated">
  9404. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9405. <param name="aclSpec" type="java.util.List"/>
  9406. <exception name="IOException" type="java.io.IOException"/>
  9407. <doc>
  9408. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  9409. entries.
  9410. @param path Path to modify
  9411. @param aclSpec List<AclEntry> describing modifications, must include entries
  9412. for user, group, and others for compatibility with permission bits.
  9413. @throws IOException if an ACL could not be modified]]>
  9414. </doc>
  9415. </method>
  9416. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  9417. abstract="false" native="false" synchronized="false"
  9418. static="false" final="false" visibility="public"
  9419. deprecated="not deprecated">
  9420. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9421. <exception name="IOException" type="java.io.IOException"/>
  9422. <doc>
  9423. <![CDATA[Gets the ACL of a file or directory.
  9424. @param path Path to get
  9425. @return AclStatus describing the ACL of the file or directory
  9426. @throws IOException if an ACL could not be read]]>
  9427. </doc>
  9428. </method>
  9429. <method name="setXAttr"
  9430. abstract="false" native="false" synchronized="false"
  9431. static="false" final="false" visibility="public"
  9432. deprecated="not deprecated">
  9433. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9434. <param name="name" type="java.lang.String"/>
  9435. <param name="value" type="byte[]"/>
  9436. <exception name="IOException" type="java.io.IOException"/>
  9437. <doc>
  9438. <![CDATA[Set an xattr of a file or directory.
  9439. The name must be prefixed with the namespace followed by ".". For example,
  9440. "user.attr".
  9441. <p/>
  9442. Refer to the HDFS extended attributes user documentation for details.
  9443. @param path Path to modify
  9444. @param name xattr name.
  9445. @param value xattr value.
  9446. @throws IOException]]>
  9447. </doc>
  9448. </method>
  9449. <method name="setXAttr"
  9450. abstract="false" native="false" synchronized="false"
  9451. static="false" final="false" visibility="public"
  9452. deprecated="not deprecated">
  9453. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9454. <param name="name" type="java.lang.String"/>
  9455. <param name="value" type="byte[]"/>
  9456. <param name="flag" type="java.util.EnumSet"/>
  9457. <exception name="IOException" type="java.io.IOException"/>
  9458. <doc>
  9459. <![CDATA[Set an xattr of a file or directory.
  9460. The name must be prefixed with the namespace followed by ".". For example,
  9461. "user.attr".
  9462. <p/>
  9463. Refer to the HDFS extended attributes user documentation for details.
  9464. @param path Path to modify
  9465. @param name xattr name.
  9466. @param value xattr value.
  9467. @param flag xattr set flag
  9468. @throws IOException]]>
  9469. </doc>
  9470. </method>
  9471. <method name="getXAttr" return="byte[]"
  9472. abstract="false" native="false" synchronized="false"
  9473. static="false" final="false" visibility="public"
  9474. deprecated="not deprecated">
  9475. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9476. <param name="name" type="java.lang.String"/>
  9477. <exception name="IOException" type="java.io.IOException"/>
  9478. <doc>
  9479. <![CDATA[Get an xattr name and value for a file or directory.
  9480. The name must be prefixed with the namespace followed by ".". For example,
  9481. "user.attr".
  9482. <p/>
  9483. Refer to the HDFS extended attributes user documentation for details.
  9484. @param path Path to get extended attribute
  9485. @param name xattr name.
  9486. @return byte[] xattr value.
  9487. @throws IOException]]>
  9488. </doc>
  9489. </method>
  9490. <method name="getXAttrs" return="java.util.Map"
  9491. abstract="false" native="false" synchronized="false"
  9492. static="false" final="false" visibility="public"
  9493. deprecated="not deprecated">
  9494. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9495. <exception name="IOException" type="java.io.IOException"/>
  9496. <doc>
  9497. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  9498. Only those xattrs which the logged-in user has permissions to view
  9499. are returned.
  9500. <p/>
  9501. Refer to the HDFS extended attributes user documentation for details.
  9502. @param path Path to get extended attributes
  9503. @return Map<String, byte[]> describing the XAttrs of the file or directory
  9504. @throws IOException]]>
  9505. </doc>
  9506. </method>
  9507. <method name="getXAttrs" return="java.util.Map"
  9508. abstract="false" native="false" synchronized="false"
  9509. static="false" final="false" visibility="public"
  9510. deprecated="not deprecated">
  9511. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9512. <param name="names" type="java.util.List"/>
  9513. <exception name="IOException" type="java.io.IOException"/>
  9514. <doc>
  9515. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  9516. Only those xattrs which the logged-in user has permissions to view
  9517. are returned.
  9518. <p/>
  9519. Refer to the HDFS extended attributes user documentation for details.
  9520. @param path Path to get extended attributes
  9521. @param names XAttr names.
  9522. @return Map<String, byte[]> describing the XAttrs of the file or directory
  9523. @throws IOException]]>
  9524. </doc>
  9525. </method>
  9526. <method name="listXAttrs" return="java.util.List"
  9527. abstract="false" native="false" synchronized="false"
  9528. static="false" final="false" visibility="public"
  9529. deprecated="not deprecated">
  9530. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9531. <exception name="IOException" type="java.io.IOException"/>
  9532. <doc>
  9533. <![CDATA[Get all of the xattr names for a file or directory.
  9534. Only those xattr names which the logged-in user has permissions to view
  9535. are returned.
  9536. <p/>
  9537. Refer to the HDFS extended attributes user documentation for details.
  9538. @param path Path to get extended attributes
  9539. @return List<String> of the XAttr names of the file or directory
  9540. @throws IOException]]>
  9541. </doc>
  9542. </method>
  9543. <method name="removeXAttr"
  9544. abstract="false" native="false" synchronized="false"
  9545. static="false" final="false" visibility="public"
  9546. deprecated="not deprecated">
  9547. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9548. <param name="name" type="java.lang.String"/>
  9549. <exception name="IOException" type="java.io.IOException"/>
  9550. <doc>
  9551. <![CDATA[Remove an xattr of a file or directory.
  9552. The name must be prefixed with the namespace followed by ".". For example,
  9553. "user.attr".
  9554. <p/>
  9555. Refer to the HDFS extended attributes user documentation for details.
  9556. @param path Path to remove extended attribute
  9557. @param name xattr name
  9558. @throws IOException]]>
  9559. </doc>
  9560. </method>
  9561. <method name="setStoragePolicy"
  9562. abstract="false" native="false" synchronized="false"
  9563. static="false" final="false" visibility="public"
  9564. deprecated="not deprecated">
  9565. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9566. <param name="policyName" type="java.lang.String"/>
  9567. <exception name="IOException" type="java.io.IOException"/>
  9568. <doc>
  9569. <![CDATA[Set the storage policy for a given file or directory.
  9570. @param src file or directory path.
  9571. @param policyName the name of the target storage policy. The list
  9572. of supported Storage policies can be retrieved
  9573. via {@link #getAllStoragePolicies}.
  9574. @throws IOException]]>
  9575. </doc>
  9576. </method>
  9577. <method name="unsetStoragePolicy"
  9578. abstract="false" native="false" synchronized="false"
  9579. static="false" final="false" visibility="public"
  9580. deprecated="not deprecated">
  9581. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9582. <exception name="IOException" type="java.io.IOException"/>
  9583. <doc>
  9584. <![CDATA[Unset the storage policy set for a given file or directory.
  9585. @param src file or directory path.
  9586. @throws IOException]]>
  9587. </doc>
  9588. </method>
  9589. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  9590. abstract="false" native="false" synchronized="false"
  9591. static="false" final="false" visibility="public"
  9592. deprecated="not deprecated">
  9593. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9594. <exception name="IOException" type="java.io.IOException"/>
  9595. <doc>
  9596. <![CDATA[Query the effective storage policy ID for the given file or directory.
  9597. @param src file or directory path.
  9598. @return storage policy for give file.
  9599. @throws IOException]]>
  9600. </doc>
  9601. </method>
  9602. <method name="getAllStoragePolicies" return="java.util.Collection"
  9603. abstract="false" native="false" synchronized="false"
  9604. static="false" final="false" visibility="public"
  9605. deprecated="not deprecated">
  9606. <exception name="IOException" type="java.io.IOException"/>
  9607. <doc>
  9608. <![CDATA[Retrieve all the storage policies supported by this file system.
  9609. @return all storage policies supported by this filesystem.
  9610. @throws IOException]]>
  9611. </doc>
  9612. </method>
  9613. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  9614. abstract="false" native="false" synchronized="false"
  9615. static="false" final="false" visibility="public"
  9616. deprecated="not deprecated">
  9617. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9618. <doc>
  9619. <![CDATA[Get the root directory of Trash for current user when the path specified
  9620. is deleted.
  9621. @param path the trash root of the path to be determined.
  9622. @return the default implementation returns "/user/$USER/.Trash".]]>
  9623. </doc>
  9624. </method>
  9625. <method name="getTrashRoots" return="java.util.Collection"
  9626. abstract="false" native="false" synchronized="false"
  9627. static="false" final="false" visibility="public"
  9628. deprecated="not deprecated">
  9629. <param name="allUsers" type="boolean"/>
  9630. <doc>
  9631. <![CDATA[Get all the trash roots for current user or all users.
  9632. @param allUsers return trash roots for all users if true.
  9633. @return all the trash root directories.
  9634. Default FileSystem returns .Trash under users' home directories if
  9635. /user/$USER/.Trash exists.]]>
  9636. </doc>
  9637. </method>
  9638. <method name="getFileSystemClass" return="java.lang.Class"
  9639. abstract="false" native="false" synchronized="false"
  9640. static="true" final="false" visibility="public"
  9641. deprecated="not deprecated">
  9642. <param name="scheme" type="java.lang.String"/>
  9643. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9644. <exception name="IOException" type="java.io.IOException"/>
  9645. </method>
  9646. <method name="getStatistics" return="java.util.Map"
  9647. abstract="false" native="false" synchronized="true"
  9648. static="true" final="false" visibility="public"
  9649. deprecated="use {@link #getGlobalStorageStatistics()}">
  9650. <doc>
  9651. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  9652. @return a Map having a key as URI scheme and value as Statistics object
  9653. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  9654. </doc>
  9655. </method>
  9656. <method name="getAllStatistics" return="java.util.List"
  9657. abstract="false" native="false" synchronized="true"
  9658. static="true" final="false" visibility="public"
  9659. deprecated="use {@link #getGlobalStorageStatistics()}">
  9660. <doc>
  9661. <![CDATA[Return the FileSystem classes that have Statistics.
  9662. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  9663. </doc>
  9664. </method>
  9665. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  9666. abstract="false" native="false" synchronized="true"
  9667. static="true" final="false" visibility="public"
  9668. deprecated="use {@link #getGlobalStorageStatistics()}">
  9669. <param name="scheme" type="java.lang.String"/>
  9670. <param name="cls" type="java.lang.Class"/>
  9671. <doc>
  9672. <![CDATA[Get the statistics for a particular file system
  9673. @param cls the class to lookup
  9674. @return a statistics object
  9675. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  9676. </doc>
  9677. </method>
  9678. <method name="clearStatistics"
  9679. abstract="false" native="false" synchronized="true"
  9680. static="true" final="false" visibility="public"
  9681. deprecated="not deprecated">
  9682. <doc>
  9683. <![CDATA[Reset all statistics for all file systems]]>
  9684. </doc>
  9685. </method>
  9686. <method name="printStatistics"
  9687. abstract="false" native="false" synchronized="true"
  9688. static="true" final="false" visibility="public"
  9689. deprecated="not deprecated">
  9690. <exception name="IOException" type="java.io.IOException"/>
  9691. <doc>
  9692. <![CDATA[Print all statistics for all file systems]]>
  9693. </doc>
  9694. </method>
  9695. <method name="areSymlinksEnabled" return="boolean"
  9696. abstract="false" native="false" synchronized="false"
  9697. static="true" final="false" visibility="public"
  9698. deprecated="not deprecated">
  9699. </method>
  9700. <method name="enableSymlinks"
  9701. abstract="false" native="false" synchronized="false"
  9702. static="true" final="false" visibility="public"
  9703. deprecated="not deprecated">
  9704. </method>
  9705. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  9706. abstract="false" native="false" synchronized="false"
  9707. static="false" final="false" visibility="public"
  9708. deprecated="not deprecated">
  9709. <doc>
  9710. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  9711. per-instance. They are not shared with any other FileSystem object.
  9712. <p>This is a default method which is intended to be overridden by
  9713. subclasses. The default implementation returns an empty storage statistics
  9714. object.</p>
  9715. @return The StorageStatistics for this FileSystem instance.
  9716. Will never be null.]]>
  9717. </doc>
  9718. </method>
  9719. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  9720. abstract="false" native="false" synchronized="false"
  9721. static="true" final="false" visibility="public"
  9722. deprecated="not deprecated">
  9723. <doc>
  9724. <![CDATA[Get the global storage statistics.]]>
  9725. </doc>
  9726. </method>
  9727. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  9728. transient="false" volatile="false"
  9729. static="true" final="true" visibility="public"
  9730. deprecated="not deprecated">
  9731. </field>
  9732. <field name="DEFAULT_FS" type="java.lang.String"
  9733. transient="false" volatile="false"
  9734. static="true" final="true" visibility="public"
  9735. deprecated="not deprecated">
  9736. </field>
  9737. <field name="LOG" type="org.apache.commons.logging.Log"
  9738. transient="false" volatile="false"
  9739. static="true" final="true" visibility="public"
  9740. deprecated="not deprecated">
  9741. </field>
  9742. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  9743. transient="false" volatile="false"
  9744. static="true" final="true" visibility="public"
  9745. deprecated="not deprecated">
  9746. <doc>
  9747. <![CDATA[Priority of the FileSystem shutdown hook.]]>
  9748. </doc>
  9749. </field>
  9750. <field name="TRASH_PREFIX" type="java.lang.String"
  9751. transient="false" volatile="false"
  9752. static="true" final="true" visibility="public"
  9753. deprecated="not deprecated">
  9754. </field>
  9755. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  9756. transient="false" volatile="false"
  9757. static="false" final="false" visibility="protected"
  9758. deprecated="not deprecated">
  9759. <doc>
  9760. <![CDATA[The statistics for this file system.]]>
  9761. </doc>
  9762. </field>
  9763. <doc>
  9764. <![CDATA[An abstract base class for a fairly generic filesystem. It
  9765. may be implemented as a distributed filesystem, or as a "local"
  9766. one that reflects the locally-connected disk. The local version
  9767. exists for small Hadoop instances and for testing.
  9768. <p>
  9769. All user code that may potentially use the Hadoop Distributed
  9770. File System should be written to use a FileSystem object. The
  9771. Hadoop DFS is a multi-machine system that appears as a single
  9772. disk. It's useful because of its fault tolerance and potentially
  9773. very large capacity.
  9774. <p>
  9775. The local implementation is {@link LocalFileSystem} and distributed
  9776. implementation is DistributedFileSystem.]]>
  9777. </doc>
  9778. </class>
  9779. <!-- end class org.apache.hadoop.fs.FileSystem -->
  9780. <!-- start class org.apache.hadoop.fs.FileUtil -->
  9781. <class name="FileUtil" extends="java.lang.Object"
  9782. abstract="false"
  9783. static="false" final="false" visibility="public"
  9784. deprecated="not deprecated">
  9785. <constructor name="FileUtil"
  9786. static="false" final="false" visibility="public"
  9787. deprecated="not deprecated">
  9788. </constructor>
  9789. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  9790. abstract="false" native="false" synchronized="false"
  9791. static="true" final="false" visibility="public"
  9792. deprecated="not deprecated">
  9793. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  9794. <doc>
  9795. <![CDATA[convert an array of FileStatus to an array of Path
  9796. @param stats
  9797. an array of FileStatus objects
  9798. @return an array of paths corresponding to the input]]>
  9799. </doc>
  9800. </method>
  9801. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  9802. abstract="false" native="false" synchronized="false"
  9803. static="true" final="false" visibility="public"
  9804. deprecated="not deprecated">
  9805. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  9806. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9807. <doc>
  9808. <![CDATA[convert an array of FileStatus to an array of Path.
  9809. If stats if null, return path
  9810. @param stats
  9811. an array of FileStatus objects
  9812. @param path
  9813. default path to return in stats is null
  9814. @return an array of paths corresponding to the input]]>
  9815. </doc>
  9816. </method>
  9817. <method name="fullyDelete" return="boolean"
  9818. abstract="false" native="false" synchronized="false"
  9819. static="true" final="false" visibility="public"
  9820. deprecated="not deprecated">
  9821. <param name="dir" type="java.io.File"/>
  9822. <doc>
  9823. <![CDATA[Delete a directory and all its contents. If
  9824. we return false, the directory may be partially-deleted.
  9825. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  9826. to by the symlink is not deleted.
  9827. (2) If dir is symlink to a directory, symlink is deleted. The directory
  9828. pointed to by symlink is not deleted.
  9829. (3) If dir is a normal file, it is deleted.
  9830. (4) If dir is a normal directory, then dir and all its contents recursively
  9831. are deleted.]]>
  9832. </doc>
  9833. </method>
  9834. <method name="fullyDelete" return="boolean"
  9835. abstract="false" native="false" synchronized="false"
  9836. static="true" final="false" visibility="public"
  9837. deprecated="not deprecated">
  9838. <param name="dir" type="java.io.File"/>
  9839. <param name="tryGrantPermissions" type="boolean"/>
  9840. <doc>
  9841. <![CDATA[Delete a directory and all its contents. If
  9842. we return false, the directory may be partially-deleted.
  9843. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  9844. to by the symlink is not deleted.
  9845. (2) If dir is symlink to a directory, symlink is deleted. The directory
  9846. pointed to by symlink is not deleted.
  9847. (3) If dir is a normal file, it is deleted.
  9848. (4) If dir is a normal directory, then dir and all its contents recursively
  9849. are deleted.
  9850. @param dir the file or directory to be deleted
  9851. @param tryGrantPermissions true if permissions should be modified to delete a file.
  9852. @return true on success false on failure.]]>
  9853. </doc>
  9854. </method>
  9855. <method name="readLink" return="java.lang.String"
  9856. abstract="false" native="false" synchronized="false"
  9857. static="true" final="false" visibility="public"
  9858. deprecated="not deprecated">
  9859. <param name="f" type="java.io.File"/>
  9860. <doc>
  9861. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  9862. the given path does not refer to a symlink or there is an error
  9863. accessing the symlink.
  9864. @param f File representing the symbolic link.
  9865. @return The target of the symbolic link, empty string on error or if not
  9866. a symlink.]]>
  9867. </doc>
  9868. </method>
  9869. <method name="fullyDeleteContents" return="boolean"
  9870. abstract="false" native="false" synchronized="false"
  9871. static="true" final="false" visibility="public"
  9872. deprecated="not deprecated">
  9873. <param name="dir" type="java.io.File"/>
  9874. <doc>
  9875. <![CDATA[Delete the contents of a directory, not the directory itself. If
  9876. we return false, the directory may be partially-deleted.
  9877. If dir is a symlink to a directory, all the contents of the actual
  9878. directory pointed to by dir will be deleted.]]>
  9879. </doc>
  9880. </method>
  9881. <method name="fullyDeleteContents" return="boolean"
  9882. abstract="false" native="false" synchronized="false"
  9883. static="true" final="false" visibility="public"
  9884. deprecated="not deprecated">
  9885. <param name="dir" type="java.io.File"/>
  9886. <param name="tryGrantPermissions" type="boolean"/>
  9887. <doc>
  9888. <![CDATA[Delete the contents of a directory, not the directory itself. If
  9889. we return false, the directory may be partially-deleted.
  9890. If dir is a symlink to a directory, all the contents of the actual
  9891. directory pointed to by dir will be deleted.
  9892. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  9893. and all the underlying directories before trying to delete their contents.]]>
  9894. </doc>
  9895. </method>
  9896. <method name="fullyDelete"
  9897. abstract="false" native="false" synchronized="false"
  9898. static="true" final="false" visibility="public"
  9899. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  9900. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9901. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9902. <exception name="IOException" type="java.io.IOException"/>
  9903. <doc>
  9904. <![CDATA[Recursively delete a directory.
  9905. @param fs {@link FileSystem} on which the path is present
  9906. @param dir directory to recursively delete
  9907. @throws IOException
  9908. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  9909. </doc>
  9910. </method>
  9911. <method name="copy" return="boolean"
  9912. abstract="false" native="false" synchronized="false"
  9913. static="true" final="false" visibility="public"
  9914. deprecated="not deprecated">
  9915. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9916. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9917. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9918. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9919. <param name="deleteSource" type="boolean"/>
  9920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9921. <exception name="IOException" type="java.io.IOException"/>
  9922. <doc>
  9923. <![CDATA[Copy files between FileSystems.]]>
  9924. </doc>
  9925. </method>
  9926. <method name="copy" return="boolean"
  9927. abstract="false" native="false" synchronized="false"
  9928. static="true" final="false" visibility="public"
  9929. deprecated="not deprecated">
  9930. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9931. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9932. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9933. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9934. <param name="deleteSource" type="boolean"/>
  9935. <param name="overwrite" type="boolean"/>
  9936. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9937. <exception name="IOException" type="java.io.IOException"/>
  9938. </method>
  9939. <method name="copy" return="boolean"
  9940. abstract="false" native="false" synchronized="false"
  9941. static="true" final="false" visibility="public"
  9942. deprecated="not deprecated">
  9943. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9944. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9945. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9946. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9947. <param name="deleteSource" type="boolean"/>
  9948. <param name="overwrite" type="boolean"/>
  9949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9950. <exception name="IOException" type="java.io.IOException"/>
  9951. <doc>
  9952. <![CDATA[Copy files between FileSystems.]]>
  9953. </doc>
  9954. </method>
  9955. <method name="copy" return="boolean"
  9956. abstract="false" native="false" synchronized="false"
  9957. static="true" final="false" visibility="public"
  9958. deprecated="not deprecated">
  9959. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9960. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  9961. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9962. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9963. <param name="deleteSource" type="boolean"/>
  9964. <param name="overwrite" type="boolean"/>
  9965. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9966. <exception name="IOException" type="java.io.IOException"/>
  9967. <doc>
  9968. <![CDATA[Copy files between FileSystems.]]>
  9969. </doc>
  9970. </method>
  9971. <method name="copyMerge" return="boolean"
  9972. abstract="false" native="false" synchronized="false"
  9973. static="true" final="false" visibility="public"
  9974. deprecated="not deprecated">
  9975. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9976. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  9977. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9978. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  9979. <param name="deleteSource" type="boolean"/>
  9980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9981. <param name="addString" type="java.lang.String"/>
  9982. <exception name="IOException" type="java.io.IOException"/>
  9983. </method>
  9984. <method name="copy" return="boolean"
  9985. abstract="false" native="false" synchronized="false"
  9986. static="true" final="false" visibility="public"
  9987. deprecated="not deprecated">
  9988. <param name="src" type="java.io.File"/>
  9989. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9990. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9991. <param name="deleteSource" type="boolean"/>
  9992. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9993. <exception name="IOException" type="java.io.IOException"/>
  9994. <doc>
  9995. <![CDATA[Copy local files to a FileSystem.]]>
  9996. </doc>
  9997. </method>
  9998. <method name="copy" return="boolean"
  9999. abstract="false" native="false" synchronized="false"
  10000. static="true" final="false" visibility="public"
  10001. deprecated="not deprecated">
  10002. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10003. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10004. <param name="dst" type="java.io.File"/>
  10005. <param name="deleteSource" type="boolean"/>
  10006. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10007. <exception name="IOException" type="java.io.IOException"/>
  10008. <doc>
  10009. <![CDATA[Copy FileSystem files to local files.]]>
  10010. </doc>
  10011. </method>
  10012. <method name="makeShellPath" return="java.lang.String"
  10013. abstract="false" native="false" synchronized="false"
  10014. static="true" final="false" visibility="public"
  10015. deprecated="not deprecated">
  10016. <param name="filename" type="java.lang.String"/>
  10017. <exception name="IOException" type="java.io.IOException"/>
  10018. <doc>
  10019. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10020. @param filename The filename to convert
  10021. @return The unix pathname
  10022. @throws IOException on windows, there can be problems with the subprocess]]>
  10023. </doc>
  10024. </method>
  10025. <method name="makeShellPath" return="java.lang.String"
  10026. abstract="false" native="false" synchronized="false"
  10027. static="true" final="false" visibility="public"
  10028. deprecated="not deprecated">
  10029. <param name="file" type="java.io.File"/>
  10030. <exception name="IOException" type="java.io.IOException"/>
  10031. <doc>
  10032. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10033. @param file The filename to convert
  10034. @return The unix pathname
  10035. @throws IOException on windows, there can be problems with the subprocess]]>
  10036. </doc>
  10037. </method>
  10038. <method name="makeShellPath" return="java.lang.String"
  10039. abstract="false" native="false" synchronized="false"
  10040. static="true" final="false" visibility="public"
  10041. deprecated="not deprecated">
  10042. <param name="file" type="java.io.File"/>
  10043. <param name="makeCanonicalPath" type="boolean"/>
  10044. <exception name="IOException" type="java.io.IOException"/>
  10045. <doc>
  10046. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10047. @param file The filename to convert
  10048. @param makeCanonicalPath
  10049. Whether to make canonical path for the file passed
  10050. @return The unix pathname
  10051. @throws IOException on windows, there can be problems with the subprocess]]>
  10052. </doc>
  10053. </method>
  10054. <method name="getDU" return="long"
  10055. abstract="false" native="false" synchronized="false"
  10056. static="true" final="false" visibility="public"
  10057. deprecated="not deprecated">
  10058. <param name="dir" type="java.io.File"/>
  10059. <doc>
  10060. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  10061. implementation.
  10062. @param dir
  10063. The input dir to get the disk space of this local dir
  10064. @return The total disk space of the input local directory]]>
  10065. </doc>
  10066. </method>
  10067. <method name="unZip"
  10068. abstract="false" native="false" synchronized="false"
  10069. static="true" final="false" visibility="public"
  10070. deprecated="not deprecated">
  10071. <param name="inFile" type="java.io.File"/>
  10072. <param name="unzipDir" type="java.io.File"/>
  10073. <exception name="IOException" type="java.io.IOException"/>
  10074. <doc>
  10075. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  10076. passed as the second parameter
  10077. @param inFile The zip file as input
  10078. @param unzipDir The unzip directory where to unzip the zip file.
  10079. @throws IOException]]>
  10080. </doc>
  10081. </method>
  10082. <method name="unTar"
  10083. abstract="false" native="false" synchronized="false"
  10084. static="true" final="false" visibility="public"
  10085. deprecated="not deprecated">
  10086. <param name="inFile" type="java.io.File"/>
  10087. <param name="untarDir" type="java.io.File"/>
  10088. <exception name="IOException" type="java.io.IOException"/>
  10089. <doc>
  10090. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  10091. passed as the second parameter
  10092. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  10093. @param inFile The tar file as input.
  10094. @param untarDir The untar directory where to untar the tar file.
  10095. @throws IOException]]>
  10096. </doc>
  10097. </method>
  10098. <method name="symLink" return="int"
  10099. abstract="false" native="false" synchronized="false"
  10100. static="true" final="false" visibility="public"
  10101. deprecated="not deprecated">
  10102. <param name="target" type="java.lang.String"/>
  10103. <param name="linkname" type="java.lang.String"/>
  10104. <exception name="IOException" type="java.io.IOException"/>
  10105. <doc>
  10106. <![CDATA[Create a soft link between a src and destination
  10107. only on a local disk. HDFS does not support this.
  10108. On Windows, when symlink creation fails due to security
  10109. setting, we will log a warning. The return code in this
  10110. case is 2.
  10111. @param target the target for symlink
  10112. @param linkname the symlink
  10113. @return 0 on success]]>
  10114. </doc>
  10115. </method>
  10116. <method name="chmod" return="int"
  10117. abstract="false" native="false" synchronized="false"
  10118. static="true" final="false" visibility="public"
  10119. deprecated="not deprecated">
  10120. <param name="filename" type="java.lang.String"/>
  10121. <param name="perm" type="java.lang.String"/>
  10122. <exception name="IOException" type="java.io.IOException"/>
  10123. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  10124. <doc>
  10125. <![CDATA[Change the permissions on a filename.
  10126. @param filename the name of the file to change
  10127. @param perm the permission string
  10128. @return the exit code from the command
  10129. @throws IOException
  10130. @throws InterruptedException]]>
  10131. </doc>
  10132. </method>
  10133. <method name="chmod" return="int"
  10134. abstract="false" native="false" synchronized="false"
  10135. static="true" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. <param name="filename" type="java.lang.String"/>
  10138. <param name="perm" type="java.lang.String"/>
  10139. <param name="recursive" type="boolean"/>
  10140. <exception name="IOException" type="java.io.IOException"/>
  10141. <doc>
  10142. <![CDATA[Change the permissions on a file / directory, recursively, if
  10143. needed.
  10144. @param filename name of the file whose permissions are to change
  10145. @param perm permission string
  10146. @param recursive true, if permissions should be changed recursively
  10147. @return the exit code from the command.
  10148. @throws IOException]]>
  10149. </doc>
  10150. </method>
  10151. <method name="setOwner"
  10152. abstract="false" native="false" synchronized="false"
  10153. static="true" final="false" visibility="public"
  10154. deprecated="not deprecated">
  10155. <param name="file" type="java.io.File"/>
  10156. <param name="username" type="java.lang.String"/>
  10157. <param name="groupname" type="java.lang.String"/>
  10158. <exception name="IOException" type="java.io.IOException"/>
  10159. <doc>
  10160. <![CDATA[Set the ownership on a file / directory. User name and group name
  10161. cannot both be null.
  10162. @param file the file to change
  10163. @param username the new user owner name
  10164. @param groupname the new group owner name
  10165. @throws IOException]]>
  10166. </doc>
  10167. </method>
  10168. <method name="setReadable" return="boolean"
  10169. abstract="false" native="false" synchronized="false"
  10170. static="true" final="false" visibility="public"
  10171. deprecated="not deprecated">
  10172. <param name="f" type="java.io.File"/>
  10173. <param name="readable" type="boolean"/>
  10174. <doc>
  10175. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  10176. File#setReadable does not work as expected on Windows.
  10177. @param f input file
  10178. @param readable
  10179. @return true on success, false otherwise]]>
  10180. </doc>
  10181. </method>
  10182. <method name="setWritable" return="boolean"
  10183. abstract="false" native="false" synchronized="false"
  10184. static="true" final="false" visibility="public"
  10185. deprecated="not deprecated">
  10186. <param name="f" type="java.io.File"/>
  10187. <param name="writable" type="boolean"/>
  10188. <doc>
  10189. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  10190. File#setWritable does not work as expected on Windows.
  10191. @param f input file
  10192. @param writable
  10193. @return true on success, false otherwise]]>
  10194. </doc>
  10195. </method>
  10196. <method name="setExecutable" return="boolean"
  10197. abstract="false" native="false" synchronized="false"
  10198. static="true" final="false" visibility="public"
  10199. deprecated="not deprecated">
  10200. <param name="f" type="java.io.File"/>
  10201. <param name="executable" type="boolean"/>
  10202. <doc>
  10203. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  10204. File#setExecutable does not work as expected on Windows.
  10205. Note: revoking execute permission on folders does not have the same
  10206. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  10207. a file within that folder will still succeed on Windows.
  10208. @param f input file
  10209. @param executable
  10210. @return true on success, false otherwise]]>
  10211. </doc>
  10212. </method>
  10213. <method name="canRead" return="boolean"
  10214. abstract="false" native="false" synchronized="false"
  10215. static="true" final="false" visibility="public"
  10216. deprecated="not deprecated">
  10217. <param name="f" type="java.io.File"/>
  10218. <doc>
  10219. <![CDATA[Platform independent implementation for {@link File#canRead()}
  10220. @param f input file
  10221. @return On Unix, same as {@link File#canRead()}
  10222. On Windows, true if process has read access on the path]]>
  10223. </doc>
  10224. </method>
  10225. <method name="canWrite" return="boolean"
  10226. abstract="false" native="false" synchronized="false"
  10227. static="true" final="false" visibility="public"
  10228. deprecated="not deprecated">
  10229. <param name="f" type="java.io.File"/>
  10230. <doc>
  10231. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  10232. @param f input file
  10233. @return On Unix, same as {@link File#canWrite()}
  10234. On Windows, true if process has write access on the path]]>
  10235. </doc>
  10236. </method>
  10237. <method name="canExecute" return="boolean"
  10238. abstract="false" native="false" synchronized="false"
  10239. static="true" final="false" visibility="public"
  10240. deprecated="not deprecated">
  10241. <param name="f" type="java.io.File"/>
  10242. <doc>
  10243. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  10244. @param f input file
  10245. @return On Unix, same as {@link File#canExecute()}
  10246. On Windows, true if process has execute access on the path]]>
  10247. </doc>
  10248. </method>
  10249. <method name="setPermission"
  10250. abstract="false" native="false" synchronized="false"
  10251. static="true" final="false" visibility="public"
  10252. deprecated="not deprecated">
  10253. <param name="f" type="java.io.File"/>
  10254. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10255. <exception name="IOException" type="java.io.IOException"/>
  10256. <doc>
  10257. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  10258. of forking if group == other.
  10259. @param f the file to change
  10260. @param permission the new permissions
  10261. @throws IOException]]>
  10262. </doc>
  10263. </method>
  10264. <method name="createLocalTempFile" return="java.io.File"
  10265. abstract="false" native="false" synchronized="false"
  10266. static="true" final="true" visibility="public"
  10267. deprecated="not deprecated">
  10268. <param name="basefile" type="java.io.File"/>
  10269. <param name="prefix" type="java.lang.String"/>
  10270. <param name="isDeleteOnExit" type="boolean"/>
  10271. <exception name="IOException" type="java.io.IOException"/>
  10272. <doc>
  10273. <![CDATA[Create a tmp file for a base file.
  10274. @param basefile the base file of the tmp
  10275. @param prefix file name prefix of tmp
  10276. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  10277. @return a newly created tmp file
  10278. @exception IOException If a tmp file cannot created
  10279. @see java.io.File#createTempFile(String, String, File)
  10280. @see java.io.File#deleteOnExit()]]>
  10281. </doc>
  10282. </method>
  10283. <method name="replaceFile"
  10284. abstract="false" native="false" synchronized="false"
  10285. static="true" final="false" visibility="public"
  10286. deprecated="not deprecated">
  10287. <param name="src" type="java.io.File"/>
  10288. <param name="target" type="java.io.File"/>
  10289. <exception name="IOException" type="java.io.IOException"/>
  10290. <doc>
  10291. <![CDATA[Move the src file to the name specified by target.
  10292. @param src the source file
  10293. @param target the target file
  10294. @exception IOException If this operation fails]]>
  10295. </doc>
  10296. </method>
  10297. <method name="listFiles" return="java.io.File[]"
  10298. abstract="false" native="false" synchronized="false"
  10299. static="true" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <param name="dir" type="java.io.File"/>
  10302. <exception name="IOException" type="java.io.IOException"/>
  10303. <doc>
  10304. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  10305. when a dir is not a directory or for any I/O error. Instead of having
  10306. null check everywhere File#listFiles() is used, we will add utility API
  10307. to get around this problem. For the majority of cases where we prefer
  10308. an IOException to be thrown.
  10309. @param dir directory for which listing should be performed
  10310. @return list of files or empty list
  10311. @exception IOException for invalid directory or for a bad disk.]]>
  10312. </doc>
  10313. </method>
  10314. <method name="list" return="java.lang.String[]"
  10315. abstract="false" native="false" synchronized="false"
  10316. static="true" final="false" visibility="public"
  10317. deprecated="not deprecated">
  10318. <param name="dir" type="java.io.File"/>
  10319. <exception name="IOException" type="java.io.IOException"/>
  10320. <doc>
  10321. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  10322. when a dir is not a directory or for any I/O error. Instead of having
  10323. null check everywhere File#list() is used, we will add utility API
  10324. to get around this problem. For the majority of cases where we prefer
  10325. an IOException to be thrown.
  10326. @param dir directory for which listing should be performed
  10327. @return list of file names or empty string list
  10328. @exception IOException for invalid directory or for a bad disk.]]>
  10329. </doc>
  10330. </method>
  10331. <method name="createJarWithClassPath" return="java.lang.String[]"
  10332. abstract="false" native="false" synchronized="false"
  10333. static="true" final="false" visibility="public"
  10334. deprecated="not deprecated">
  10335. <param name="inputClassPath" type="java.lang.String"/>
  10336. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  10337. <param name="callerEnv" type="java.util.Map"/>
  10338. <exception name="IOException" type="java.io.IOException"/>
  10339. </method>
  10340. <method name="createJarWithClassPath" return="java.lang.String[]"
  10341. abstract="false" native="false" synchronized="false"
  10342. static="true" final="false" visibility="public"
  10343. deprecated="not deprecated">
  10344. <param name="inputClassPath" type="java.lang.String"/>
  10345. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  10346. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  10347. <param name="callerEnv" type="java.util.Map"/>
  10348. <exception name="IOException" type="java.io.IOException"/>
  10349. <doc>
  10350. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  10351. that references all specified entries.
  10352. Some platforms may have an upper limit on command line length. For example,
  10353. the maximum command line length on Windows is 8191 characters, but the
  10354. length of the classpath may exceed this. To work around this limitation,
  10355. use this method to create a small intermediate jar with a manifest that
  10356. contains the full classpath. It returns the absolute path to the new jar,
  10357. which the caller may set as the classpath for a new process.
  10358. Environment variable evaluation is not supported within a jar manifest, so
  10359. this method expands environment variables before inserting classpath entries
  10360. to the manifest. The method parses environment variables according to
  10361. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  10362. environment variables are case-insensitive. For example, %VAR% and %var%
  10363. evaluate to the same value.
  10364. Specifying the classpath in a jar manifest does not support wildcards, so
  10365. this method expands wildcards internally. Any classpath entry that ends
  10366. with * is translated to all files at that path with extension .jar or .JAR.
  10367. @param inputClassPath String input classpath to bundle into the jar manifest
  10368. @param pwd Path to working directory to save jar
  10369. @param targetDir path to where the jar execution will have its working dir
  10370. @param callerEnv Map<String, String> caller's environment variables to use
  10371. for expansion
  10372. @return String[] with absolute path to new jar in position 0 and
  10373. unexpanded wild card entry path in position 1
  10374. @throws IOException if there is an I/O error while writing the jar file]]>
  10375. </doc>
  10376. </method>
  10377. <method name="compareFs" return="boolean"
  10378. abstract="false" native="false" synchronized="false"
  10379. static="true" final="false" visibility="public"
  10380. deprecated="not deprecated">
  10381. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  10382. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  10383. </method>
  10384. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  10385. transient="false" volatile="false"
  10386. static="true" final="true" visibility="public"
  10387. deprecated="not deprecated">
  10388. </field>
  10389. <doc>
  10390. <![CDATA[A collection of file-processing util methods]]>
  10391. </doc>
  10392. </class>
  10393. <!-- end class org.apache.hadoop.fs.FileUtil -->
  10394. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  10395. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  10396. abstract="false"
  10397. static="false" final="false" visibility="public"
  10398. deprecated="not deprecated">
  10399. <constructor name="FilterFileSystem"
  10400. static="false" final="false" visibility="public"
  10401. deprecated="not deprecated">
  10402. </constructor>
  10403. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  10404. static="false" final="false" visibility="public"
  10405. deprecated="not deprecated">
  10406. </constructor>
  10407. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  10408. abstract="false" native="false" synchronized="false"
  10409. static="false" final="false" visibility="public"
  10410. deprecated="not deprecated">
  10411. <doc>
  10412. <![CDATA[Get the raw file system
  10413. @return FileSystem being filtered]]>
  10414. </doc>
  10415. </method>
  10416. <method name="initialize"
  10417. abstract="false" native="false" synchronized="false"
  10418. static="false" final="false" visibility="public"
  10419. deprecated="not deprecated">
  10420. <param name="name" type="java.net.URI"/>
  10421. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10422. <exception name="IOException" type="java.io.IOException"/>
  10423. <doc>
  10424. <![CDATA[Called after a new FileSystem instance is constructed.
  10425. @param name a uri whose authority section names the host, port, etc.
  10426. for this FileSystem
  10427. @param conf the configuration]]>
  10428. </doc>
  10429. </method>
  10430. <method name="getUri" return="java.net.URI"
  10431. abstract="false" native="false" synchronized="false"
  10432. static="false" final="false" visibility="public"
  10433. deprecated="not deprecated">
  10434. <doc>
  10435. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  10436. </doc>
  10437. </method>
  10438. <method name="getCanonicalUri" return="java.net.URI"
  10439. abstract="false" native="false" synchronized="false"
  10440. static="false" final="false" visibility="protected"
  10441. deprecated="not deprecated">
  10442. </method>
  10443. <method name="canonicalizeUri" return="java.net.URI"
  10444. abstract="false" native="false" synchronized="false"
  10445. static="false" final="false" visibility="protected"
  10446. deprecated="not deprecated">
  10447. <param name="uri" type="java.net.URI"/>
  10448. </method>
  10449. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  10450. abstract="false" native="false" synchronized="false"
  10451. static="false" final="false" visibility="public"
  10452. deprecated="not deprecated">
  10453. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10454. <doc>
  10455. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  10456. </doc>
  10457. </method>
  10458. <method name="checkPath"
  10459. abstract="false" native="false" synchronized="false"
  10460. static="false" final="false" visibility="protected"
  10461. deprecated="not deprecated">
  10462. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10463. <doc>
  10464. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  10465. </doc>
  10466. </method>
  10467. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  10468. abstract="false" native="false" synchronized="false"
  10469. static="false" final="false" visibility="public"
  10470. deprecated="not deprecated">
  10471. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  10472. <param name="start" type="long"/>
  10473. <param name="len" type="long"/>
  10474. <exception name="IOException" type="java.io.IOException"/>
  10475. </method>
  10476. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  10477. abstract="false" native="false" synchronized="false"
  10478. static="false" final="false" visibility="public"
  10479. deprecated="not deprecated">
  10480. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10481. <exception name="IOException" type="java.io.IOException"/>
  10482. </method>
  10483. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  10484. abstract="false" native="false" synchronized="false"
  10485. static="false" final="false" visibility="public"
  10486. deprecated="not deprecated">
  10487. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10488. <param name="bufferSize" type="int"/>
  10489. <exception name="IOException" type="java.io.IOException"/>
  10490. <doc>
  10491. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  10492. @param f the file name to open
  10493. @param bufferSize the size of the buffer to be used.]]>
  10494. </doc>
  10495. </method>
  10496. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10497. abstract="false" native="false" synchronized="false"
  10498. static="false" final="false" visibility="public"
  10499. deprecated="not deprecated">
  10500. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10501. <param name="bufferSize" type="int"/>
  10502. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10503. <exception name="IOException" type="java.io.IOException"/>
  10504. </method>
  10505. <method name="concat"
  10506. abstract="false" native="false" synchronized="false"
  10507. static="false" final="false" visibility="public"
  10508. deprecated="not deprecated">
  10509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10510. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  10511. <exception name="IOException" type="java.io.IOException"/>
  10512. </method>
  10513. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10514. abstract="false" native="false" synchronized="false"
  10515. static="false" final="false" visibility="public"
  10516. deprecated="not deprecated">
  10517. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10518. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10519. <param name="overwrite" type="boolean"/>
  10520. <param name="bufferSize" type="int"/>
  10521. <param name="replication" type="short"/>
  10522. <param name="blockSize" type="long"/>
  10523. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10524. <exception name="IOException" type="java.io.IOException"/>
  10525. </method>
  10526. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10527. abstract="false" native="false" synchronized="false"
  10528. static="false" final="false" visibility="public"
  10529. deprecated="not deprecated">
  10530. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10531. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10532. <param name="flags" type="java.util.EnumSet"/>
  10533. <param name="bufferSize" type="int"/>
  10534. <param name="replication" type="short"/>
  10535. <param name="blockSize" type="long"/>
  10536. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10537. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  10538. <exception name="IOException" type="java.io.IOException"/>
  10539. </method>
  10540. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10541. abstract="false" native="false" synchronized="false"
  10542. static="false" final="false" visibility="protected"
  10543. deprecated="not deprecated">
  10544. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10545. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10546. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10547. <exception name="IOException" type="java.io.IOException"/>
  10548. </method>
  10549. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  10550. abstract="false" native="false" synchronized="false"
  10551. static="false" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10554. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10555. <param name="flags" type="java.util.EnumSet"/>
  10556. <param name="bufferSize" type="int"/>
  10557. <param name="replication" type="short"/>
  10558. <param name="blockSize" type="long"/>
  10559. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10560. <exception name="IOException" type="java.io.IOException"/>
  10561. </method>
  10562. <method name="setReplication" return="boolean"
  10563. abstract="false" native="false" synchronized="false"
  10564. static="false" final="false" visibility="public"
  10565. deprecated="not deprecated">
  10566. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10567. <param name="replication" type="short"/>
  10568. <exception name="IOException" type="java.io.IOException"/>
  10569. <doc>
  10570. <![CDATA[Set replication for an existing file.
  10571. @param src file name
  10572. @param replication new replication
  10573. @throws IOException
  10574. @return true if successful;
  10575. false if file does not exist or is a directory]]>
  10576. </doc>
  10577. </method>
  10578. <method name="rename" return="boolean"
  10579. abstract="false" native="false" synchronized="false"
  10580. static="false" final="false" visibility="public"
  10581. deprecated="not deprecated">
  10582. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10583. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10584. <exception name="IOException" type="java.io.IOException"/>
  10585. <doc>
  10586. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  10587. or remote DFS.]]>
  10588. </doc>
  10589. </method>
  10590. <method name="rename"
  10591. abstract="false" native="false" synchronized="false"
  10592. static="false" final="false" visibility="protected"
  10593. deprecated="not deprecated">
  10594. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10595. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10596. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  10597. <exception name="IOException" type="java.io.IOException"/>
  10598. </method>
  10599. <method name="truncate" return="boolean"
  10600. abstract="false" native="false" synchronized="false"
  10601. static="false" final="false" visibility="public"
  10602. deprecated="not deprecated">
  10603. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10604. <param name="newLength" type="long"/>
  10605. <exception name="IOException" type="java.io.IOException"/>
  10606. </method>
  10607. <method name="delete" return="boolean"
  10608. abstract="false" native="false" synchronized="false"
  10609. static="false" final="false" visibility="public"
  10610. deprecated="not deprecated">
  10611. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10612. <param name="recursive" type="boolean"/>
  10613. <exception name="IOException" type="java.io.IOException"/>
  10614. <doc>
  10615. <![CDATA[Delete a file]]>
  10616. </doc>
  10617. </method>
  10618. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10619. abstract="false" native="false" synchronized="false"
  10620. static="false" final="false" visibility="public"
  10621. deprecated="not deprecated">
  10622. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10623. <exception name="IOException" type="java.io.IOException"/>
  10624. <doc>
  10625. <![CDATA[List files in a directory.]]>
  10626. </doc>
  10627. </method>
  10628. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  10629. abstract="false" native="false" synchronized="false"
  10630. static="false" final="false" visibility="public"
  10631. deprecated="not deprecated">
  10632. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10633. <exception name="IOException" type="java.io.IOException"/>
  10634. </method>
  10635. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="false" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10640. <exception name="IOException" type="java.io.IOException"/>
  10641. <doc>
  10642. <![CDATA[List files and its block locations in a directory.]]>
  10643. </doc>
  10644. </method>
  10645. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  10646. abstract="false" native="false" synchronized="false"
  10647. static="false" final="false" visibility="public"
  10648. deprecated="not deprecated">
  10649. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10650. <exception name="IOException" type="java.io.IOException"/>
  10651. <doc>
  10652. <![CDATA[Return a remote iterator for listing in a directory]]>
  10653. </doc>
  10654. </method>
  10655. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10656. abstract="false" native="false" synchronized="false"
  10657. static="false" final="false" visibility="public"
  10658. deprecated="not deprecated">
  10659. </method>
  10660. <method name="setWorkingDirectory"
  10661. abstract="false" native="false" synchronized="false"
  10662. static="false" final="false" visibility="public"
  10663. deprecated="not deprecated">
  10664. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  10665. <doc>
  10666. <![CDATA[Set the current working directory for the given file system. All relative
  10667. paths will be resolved relative to it.
  10668. @param newDir]]>
  10669. </doc>
  10670. </method>
  10671. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10672. abstract="false" native="false" synchronized="false"
  10673. static="false" final="false" visibility="public"
  10674. deprecated="not deprecated">
  10675. <doc>
  10676. <![CDATA[Get the current working directory for the given file system
  10677. @return the directory pathname]]>
  10678. </doc>
  10679. </method>
  10680. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10681. abstract="false" native="false" synchronized="false"
  10682. static="false" final="false" visibility="protected"
  10683. deprecated="not deprecated">
  10684. </method>
  10685. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10686. abstract="false" native="false" synchronized="false"
  10687. static="false" final="false" visibility="public"
  10688. deprecated="not deprecated">
  10689. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10690. <exception name="IOException" type="java.io.IOException"/>
  10691. </method>
  10692. <method name="mkdirs" return="boolean"
  10693. abstract="false" native="false" synchronized="false"
  10694. static="false" final="false" visibility="public"
  10695. deprecated="not deprecated">
  10696. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10697. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10698. <exception name="IOException" type="java.io.IOException"/>
  10699. </method>
  10700. <method name="copyFromLocalFile"
  10701. abstract="false" native="false" synchronized="false"
  10702. static="false" final="false" visibility="public"
  10703. deprecated="not deprecated">
  10704. <param name="delSrc" type="boolean"/>
  10705. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10706. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10707. <exception name="IOException" type="java.io.IOException"/>
  10708. <doc>
  10709. <![CDATA[The src file is on the local disk. Add it to FS at
  10710. the given dst name.
  10711. delSrc indicates if the source should be removed]]>
  10712. </doc>
  10713. </method>
  10714. <method name="copyFromLocalFile"
  10715. abstract="false" native="false" synchronized="false"
  10716. static="false" final="false" visibility="public"
  10717. deprecated="not deprecated">
  10718. <param name="delSrc" type="boolean"/>
  10719. <param name="overwrite" type="boolean"/>
  10720. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10721. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10722. <exception name="IOException" type="java.io.IOException"/>
  10723. <doc>
  10724. <![CDATA[The src files are on the local disk. Add it to FS at
  10725. the given dst name.
  10726. delSrc indicates if the source should be removed]]>
  10727. </doc>
  10728. </method>
  10729. <method name="copyFromLocalFile"
  10730. abstract="false" native="false" synchronized="false"
  10731. static="false" final="false" visibility="public"
  10732. deprecated="not deprecated">
  10733. <param name="delSrc" type="boolean"/>
  10734. <param name="overwrite" type="boolean"/>
  10735. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10736. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10737. <exception name="IOException" type="java.io.IOException"/>
  10738. <doc>
  10739. <![CDATA[The src file is on the local disk. Add it to FS at
  10740. the given dst name.
  10741. delSrc indicates if the source should be removed]]>
  10742. </doc>
  10743. </method>
  10744. <method name="copyToLocalFile"
  10745. abstract="false" native="false" synchronized="false"
  10746. static="false" final="false" visibility="public"
  10747. deprecated="not deprecated">
  10748. <param name="delSrc" type="boolean"/>
  10749. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10750. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10751. <exception name="IOException" type="java.io.IOException"/>
  10752. <doc>
  10753. <![CDATA[The src file is under FS, and the dst is on the local disk.
  10754. Copy it from FS control to the local dst name.
  10755. delSrc indicates if the src will be removed or not.]]>
  10756. </doc>
  10757. </method>
  10758. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10759. abstract="false" native="false" synchronized="false"
  10760. static="false" final="false" visibility="public"
  10761. deprecated="not deprecated">
  10762. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10763. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10764. <exception name="IOException" type="java.io.IOException"/>
  10765. <doc>
  10766. <![CDATA[Returns a local File that the user can write output to. The caller
  10767. provides both the eventual FS target name and the local working
  10768. file. If the FS is local, we write directly into the target. If
  10769. the FS is remote, we write into the tmp local area.]]>
  10770. </doc>
  10771. </method>
  10772. <method name="completeLocalOutput"
  10773. abstract="false" native="false" synchronized="false"
  10774. static="false" final="false" visibility="public"
  10775. deprecated="not deprecated">
  10776. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10777. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10778. <exception name="IOException" type="java.io.IOException"/>
  10779. <doc>
  10780. <![CDATA[Called when we're all done writing to the target. A local FS will
  10781. do nothing, because we've written to exactly the right place. A remote
  10782. FS will copy the contents of tmpLocalFile to the correct target at
  10783. fsOutputFile.]]>
  10784. </doc>
  10785. </method>
  10786. <method name="getUsed" return="long"
  10787. abstract="false" native="false" synchronized="false"
  10788. static="false" final="false" visibility="public"
  10789. deprecated="not deprecated">
  10790. <exception name="IOException" type="java.io.IOException"/>
  10791. <doc>
  10792. <![CDATA[Return the total size of all files in the filesystem.]]>
  10793. </doc>
  10794. </method>
  10795. <method name="getUsed" return="long"
  10796. abstract="false" native="false" synchronized="false"
  10797. static="false" final="false" visibility="public"
  10798. deprecated="not deprecated">
  10799. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10800. <exception name="IOException" type="java.io.IOException"/>
  10801. <doc>
  10802. <![CDATA[Return the total size of all files from a specified path.]]>
  10803. </doc>
  10804. </method>
  10805. <method name="getDefaultBlockSize" return="long"
  10806. abstract="false" native="false" synchronized="false"
  10807. static="false" final="false" visibility="public"
  10808. deprecated="not deprecated">
  10809. </method>
  10810. <method name="getDefaultReplication" return="short"
  10811. abstract="false" native="false" synchronized="false"
  10812. static="false" final="false" visibility="public"
  10813. deprecated="not deprecated">
  10814. </method>
  10815. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  10816. abstract="false" native="false" synchronized="false"
  10817. static="false" final="false" visibility="public"
  10818. deprecated="not deprecated">
  10819. <exception name="IOException" type="java.io.IOException"/>
  10820. </method>
  10821. <method name="getDefaultBlockSize" return="long"
  10822. abstract="false" native="false" synchronized="false"
  10823. static="false" final="false" visibility="public"
  10824. deprecated="not deprecated">
  10825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10826. </method>
  10827. <method name="getDefaultReplication" return="short"
  10828. abstract="false" native="false" synchronized="false"
  10829. static="false" final="false" visibility="public"
  10830. deprecated="not deprecated">
  10831. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10832. </method>
  10833. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  10834. abstract="false" native="false" synchronized="false"
  10835. static="false" final="false" visibility="public"
  10836. deprecated="not deprecated">
  10837. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10838. <exception name="IOException" type="java.io.IOException"/>
  10839. </method>
  10840. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10841. abstract="false" native="false" synchronized="false"
  10842. static="false" final="false" visibility="public"
  10843. deprecated="not deprecated">
  10844. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10845. <exception name="IOException" type="java.io.IOException"/>
  10846. <doc>
  10847. <![CDATA[Get file status.]]>
  10848. </doc>
  10849. </method>
  10850. <method name="access"
  10851. abstract="false" native="false" synchronized="false"
  10852. static="false" final="false" visibility="public"
  10853. deprecated="not deprecated">
  10854. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10855. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  10856. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10857. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10858. <exception name="IOException" type="java.io.IOException"/>
  10859. </method>
  10860. <method name="createSymlink"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="false" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10865. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10866. <param name="createParent" type="boolean"/>
  10867. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10868. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10869. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10870. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10871. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10872. <exception name="IOException" type="java.io.IOException"/>
  10873. </method>
  10874. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10875. abstract="false" native="false" synchronized="false"
  10876. static="false" final="false" visibility="public"
  10877. deprecated="not deprecated">
  10878. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10879. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10880. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10881. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10882. <exception name="IOException" type="java.io.IOException"/>
  10883. </method>
  10884. <method name="supportsSymlinks" return="boolean"
  10885. abstract="false" native="false" synchronized="false"
  10886. static="false" final="false" visibility="public"
  10887. deprecated="not deprecated">
  10888. </method>
  10889. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10890. abstract="false" native="false" synchronized="false"
  10891. static="false" final="false" visibility="public"
  10892. deprecated="not deprecated">
  10893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10894. <exception name="IOException" type="java.io.IOException"/>
  10895. </method>
  10896. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10897. abstract="false" native="false" synchronized="false"
  10898. static="false" final="false" visibility="protected"
  10899. deprecated="not deprecated">
  10900. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10901. <exception name="IOException" type="java.io.IOException"/>
  10902. </method>
  10903. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10904. abstract="false" native="false" synchronized="false"
  10905. static="false" final="false" visibility="public"
  10906. deprecated="not deprecated">
  10907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10908. <exception name="IOException" type="java.io.IOException"/>
  10909. </method>
  10910. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10911. abstract="false" native="false" synchronized="false"
  10912. static="false" final="false" visibility="public"
  10913. deprecated="not deprecated">
  10914. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10915. <param name="length" type="long"/>
  10916. <exception name="IOException" type="java.io.IOException"/>
  10917. </method>
  10918. <method name="setVerifyChecksum"
  10919. abstract="false" native="false" synchronized="false"
  10920. static="false" final="false" visibility="public"
  10921. deprecated="not deprecated">
  10922. <param name="verifyChecksum" type="boolean"/>
  10923. </method>
  10924. <method name="setWriteChecksum"
  10925. abstract="false" native="false" synchronized="false"
  10926. static="false" final="false" visibility="public"
  10927. deprecated="not deprecated">
  10928. <param name="writeChecksum" type="boolean"/>
  10929. </method>
  10930. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10931. abstract="false" native="false" synchronized="false"
  10932. static="false" final="false" visibility="public"
  10933. deprecated="not deprecated">
  10934. </method>
  10935. <method name="close"
  10936. abstract="false" native="false" synchronized="false"
  10937. static="false" final="false" visibility="public"
  10938. deprecated="not deprecated">
  10939. <exception name="IOException" type="java.io.IOException"/>
  10940. </method>
  10941. <method name="setOwner"
  10942. abstract="false" native="false" synchronized="false"
  10943. static="false" final="false" visibility="public"
  10944. deprecated="not deprecated">
  10945. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10946. <param name="username" type="java.lang.String"/>
  10947. <param name="groupname" type="java.lang.String"/>
  10948. <exception name="IOException" type="java.io.IOException"/>
  10949. </method>
  10950. <method name="setTimes"
  10951. abstract="false" native="false" synchronized="false"
  10952. static="false" final="false" visibility="public"
  10953. deprecated="not deprecated">
  10954. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10955. <param name="mtime" type="long"/>
  10956. <param name="atime" type="long"/>
  10957. <exception name="IOException" type="java.io.IOException"/>
  10958. </method>
  10959. <method name="setPermission"
  10960. abstract="false" native="false" synchronized="false"
  10961. static="false" final="false" visibility="public"
  10962. deprecated="not deprecated">
  10963. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10964. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10965. <exception name="IOException" type="java.io.IOException"/>
  10966. </method>
  10967. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  10968. abstract="false" native="false" synchronized="false"
  10969. static="false" final="false" visibility="protected"
  10970. deprecated="not deprecated">
  10971. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10972. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10973. <param name="flag" type="java.util.EnumSet"/>
  10974. <param name="bufferSize" type="int"/>
  10975. <param name="replication" type="short"/>
  10976. <param name="blockSize" type="long"/>
  10977. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10978. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  10979. <exception name="IOException" type="java.io.IOException"/>
  10980. </method>
  10981. <method name="primitiveMkdir" return="boolean"
  10982. abstract="false" native="false" synchronized="false"
  10983. static="false" final="false" visibility="protected"
  10984. deprecated="not deprecated">
  10985. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10986. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10987. <exception name="IOException" type="java.io.IOException"/>
  10988. </method>
  10989. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  10990. abstract="false" native="false" synchronized="false"
  10991. static="false" final="false" visibility="public"
  10992. deprecated="not deprecated">
  10993. </method>
  10994. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10995. abstract="false" native="false" synchronized="false"
  10996. static="false" final="false" visibility="public"
  10997. deprecated="not deprecated">
  10998. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10999. <param name="snapshotName" type="java.lang.String"/>
  11000. <exception name="IOException" type="java.io.IOException"/>
  11001. </method>
  11002. <method name="renameSnapshot"
  11003. abstract="false" native="false" synchronized="false"
  11004. static="false" final="false" visibility="public"
  11005. deprecated="not deprecated">
  11006. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11007. <param name="snapshotOldName" type="java.lang.String"/>
  11008. <param name="snapshotNewName" type="java.lang.String"/>
  11009. <exception name="IOException" type="java.io.IOException"/>
  11010. </method>
  11011. <method name="deleteSnapshot"
  11012. abstract="false" native="false" synchronized="false"
  11013. static="false" final="false" visibility="public"
  11014. deprecated="not deprecated">
  11015. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11016. <param name="snapshotName" type="java.lang.String"/>
  11017. <exception name="IOException" type="java.io.IOException"/>
  11018. </method>
  11019. <method name="modifyAclEntries"
  11020. abstract="false" native="false" synchronized="false"
  11021. static="false" final="false" visibility="public"
  11022. deprecated="not deprecated">
  11023. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11024. <param name="aclSpec" type="java.util.List"/>
  11025. <exception name="IOException" type="java.io.IOException"/>
  11026. </method>
  11027. <method name="removeAclEntries"
  11028. abstract="false" native="false" synchronized="false"
  11029. static="false" final="false" visibility="public"
  11030. deprecated="not deprecated">
  11031. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11032. <param name="aclSpec" type="java.util.List"/>
  11033. <exception name="IOException" type="java.io.IOException"/>
  11034. </method>
  11035. <method name="removeDefaultAcl"
  11036. abstract="false" native="false" synchronized="false"
  11037. static="false" final="false" visibility="public"
  11038. deprecated="not deprecated">
  11039. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11040. <exception name="IOException" type="java.io.IOException"/>
  11041. </method>
  11042. <method name="removeAcl"
  11043. abstract="false" native="false" synchronized="false"
  11044. static="false" final="false" visibility="public"
  11045. deprecated="not deprecated">
  11046. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11047. <exception name="IOException" type="java.io.IOException"/>
  11048. </method>
  11049. <method name="setAcl"
  11050. abstract="false" native="false" synchronized="false"
  11051. static="false" final="false" visibility="public"
  11052. deprecated="not deprecated">
  11053. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11054. <param name="aclSpec" type="java.util.List"/>
  11055. <exception name="IOException" type="java.io.IOException"/>
  11056. </method>
  11057. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11058. abstract="false" native="false" synchronized="false"
  11059. static="false" final="false" visibility="public"
  11060. deprecated="not deprecated">
  11061. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11062. <exception name="IOException" type="java.io.IOException"/>
  11063. </method>
  11064. <method name="setXAttr"
  11065. abstract="false" native="false" synchronized="false"
  11066. static="false" final="false" visibility="public"
  11067. deprecated="not deprecated">
  11068. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11069. <param name="name" type="java.lang.String"/>
  11070. <param name="value" type="byte[]"/>
  11071. <exception name="IOException" type="java.io.IOException"/>
  11072. </method>
  11073. <method name="setXAttr"
  11074. abstract="false" native="false" synchronized="false"
  11075. static="false" final="false" visibility="public"
  11076. deprecated="not deprecated">
  11077. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11078. <param name="name" type="java.lang.String"/>
  11079. <param name="value" type="byte[]"/>
  11080. <param name="flag" type="java.util.EnumSet"/>
  11081. <exception name="IOException" type="java.io.IOException"/>
  11082. </method>
  11083. <method name="getXAttr" return="byte[]"
  11084. abstract="false" native="false" synchronized="false"
  11085. static="false" final="false" visibility="public"
  11086. deprecated="not deprecated">
  11087. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11088. <param name="name" type="java.lang.String"/>
  11089. <exception name="IOException" type="java.io.IOException"/>
  11090. </method>
  11091. <method name="getXAttrs" return="java.util.Map"
  11092. abstract="false" native="false" synchronized="false"
  11093. static="false" final="false" visibility="public"
  11094. deprecated="not deprecated">
  11095. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11096. <exception name="IOException" type="java.io.IOException"/>
  11097. </method>
  11098. <method name="getXAttrs" return="java.util.Map"
  11099. abstract="false" native="false" synchronized="false"
  11100. static="false" final="false" visibility="public"
  11101. deprecated="not deprecated">
  11102. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11103. <param name="names" type="java.util.List"/>
  11104. <exception name="IOException" type="java.io.IOException"/>
  11105. </method>
  11106. <method name="listXAttrs" return="java.util.List"
  11107. abstract="false" native="false" synchronized="false"
  11108. static="false" final="false" visibility="public"
  11109. deprecated="not deprecated">
  11110. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11111. <exception name="IOException" type="java.io.IOException"/>
  11112. </method>
  11113. <method name="removeXAttr"
  11114. abstract="false" native="false" synchronized="false"
  11115. static="false" final="false" visibility="public"
  11116. deprecated="not deprecated">
  11117. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11118. <param name="name" type="java.lang.String"/>
  11119. <exception name="IOException" type="java.io.IOException"/>
  11120. </method>
  11121. <method name="setStoragePolicy"
  11122. abstract="false" native="false" synchronized="false"
  11123. static="false" final="false" visibility="public"
  11124. deprecated="not deprecated">
  11125. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11126. <param name="policyName" type="java.lang.String"/>
  11127. <exception name="IOException" type="java.io.IOException"/>
  11128. </method>
  11129. <method name="unsetStoragePolicy"
  11130. abstract="false" native="false" synchronized="false"
  11131. static="false" final="false" visibility="public"
  11132. deprecated="not deprecated">
  11133. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11134. <exception name="IOException" type="java.io.IOException"/>
  11135. </method>
  11136. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  11137. abstract="false" native="false" synchronized="false"
  11138. static="false" final="false" visibility="public"
  11139. deprecated="not deprecated">
  11140. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11141. <exception name="IOException" type="java.io.IOException"/>
  11142. </method>
  11143. <method name="getAllStoragePolicies" return="java.util.Collection"
  11144. abstract="false" native="false" synchronized="false"
  11145. static="false" final="false" visibility="public"
  11146. deprecated="not deprecated">
  11147. <exception name="IOException" type="java.io.IOException"/>
  11148. </method>
  11149. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  11150. abstract="false" native="false" synchronized="false"
  11151. static="false" final="false" visibility="public"
  11152. deprecated="not deprecated">
  11153. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11154. </method>
  11155. <method name="getTrashRoots" return="java.util.Collection"
  11156. abstract="false" native="false" synchronized="false"
  11157. static="false" final="false" visibility="public"
  11158. deprecated="not deprecated">
  11159. <param name="allUsers" type="boolean"/>
  11160. </method>
  11161. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  11162. transient="false" volatile="false"
  11163. static="false" final="false" visibility="protected"
  11164. deprecated="not deprecated">
  11165. </field>
  11166. <field name="swapScheme" type="java.lang.String"
  11167. transient="false" volatile="false"
  11168. static="false" final="false" visibility="protected"
  11169. deprecated="not deprecated">
  11170. </field>
  11171. <doc>
  11172. <![CDATA[A <code>FilterFileSystem</code> contains
  11173. some other file system, which it uses as
  11174. its basic file system, possibly transforming
  11175. the data along the way or providing additional
  11176. functionality. The class <code>FilterFileSystem</code>
  11177. itself simply overrides all methods of
  11178. <code>FileSystem</code> with versions that
  11179. pass all requests to the contained file
  11180. system. Subclasses of <code>FilterFileSystem</code>
  11181. may further override some of these methods
  11182. and may also provide additional methods
  11183. and fields.]]>
  11184. </doc>
  11185. </class>
  11186. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  11187. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  11188. <interface name="FsConstants" abstract="true"
  11189. static="false" final="false" visibility="public"
  11190. deprecated="not deprecated">
  11191. <field name="LOCAL_FS_URI" type="java.net.URI"
  11192. transient="false" volatile="false"
  11193. static="true" final="true" visibility="public"
  11194. deprecated="not deprecated">
  11195. </field>
  11196. <field name="FTP_SCHEME" type="java.lang.String"
  11197. transient="false" volatile="false"
  11198. static="true" final="true" visibility="public"
  11199. deprecated="not deprecated">
  11200. </field>
  11201. <field name="MAX_PATH_LINKS" type="int"
  11202. transient="false" volatile="false"
  11203. static="true" final="true" visibility="public"
  11204. deprecated="not deprecated">
  11205. </field>
  11206. <field name="VIEWFS_URI" type="java.net.URI"
  11207. transient="false" volatile="false"
  11208. static="true" final="true" visibility="public"
  11209. deprecated="not deprecated">
  11210. <doc>
  11211. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  11212. </doc>
  11213. </field>
  11214. <field name="VIEWFS_SCHEME" type="java.lang.String"
  11215. transient="false" volatile="false"
  11216. static="true" final="true" visibility="public"
  11217. deprecated="not deprecated">
  11218. </field>
  11219. <doc>
  11220. <![CDATA[FileSystem related constants.]]>
  11221. </doc>
  11222. </interface>
  11223. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  11224. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  11225. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  11226. abstract="false"
  11227. static="false" final="false" visibility="public"
  11228. deprecated="not deprecated">
  11229. <implements name="org.apache.hadoop.fs.Seekable"/>
  11230. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  11231. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  11232. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  11233. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  11234. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  11235. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  11236. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  11237. <constructor name="FSDataInputStream" type="java.io.InputStream"
  11238. static="false" final="false" visibility="public"
  11239. deprecated="not deprecated">
  11240. </constructor>
  11241. <method name="seek"
  11242. abstract="false" native="false" synchronized="false"
  11243. static="false" final="false" visibility="public"
  11244. deprecated="not deprecated">
  11245. <param name="desired" type="long"/>
  11246. <exception name="IOException" type="java.io.IOException"/>
  11247. <doc>
  11248. <![CDATA[Seek to the given offset.
  11249. @param desired offset to seek to]]>
  11250. </doc>
  11251. </method>
  11252. <method name="getPos" return="long"
  11253. abstract="false" native="false" synchronized="false"
  11254. static="false" final="false" visibility="public"
  11255. deprecated="not deprecated">
  11256. <exception name="IOException" type="java.io.IOException"/>
  11257. <doc>
  11258. <![CDATA[Get the current position in the input stream.
  11259. @return current position in the input stream]]>
  11260. </doc>
  11261. </method>
  11262. <method name="read" return="int"
  11263. abstract="false" native="false" synchronized="false"
  11264. static="false" final="false" visibility="public"
  11265. deprecated="not deprecated">
  11266. <param name="position" type="long"/>
  11267. <param name="buffer" type="byte[]"/>
  11268. <param name="offset" type="int"/>
  11269. <param name="length" type="int"/>
  11270. <exception name="IOException" type="java.io.IOException"/>
  11271. <doc>
  11272. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  11273. @param position position in the input stream to seek
  11274. @param buffer buffer into which data is read
  11275. @param offset offset into the buffer in which data is written
  11276. @param length maximum number of bytes to read
  11277. @return total number of bytes read into the buffer, or <code>-1</code>
  11278. if there is no more data because the end of the stream has been
  11279. reached]]>
  11280. </doc>
  11281. </method>
  11282. <method name="readFully"
  11283. abstract="false" native="false" synchronized="false"
  11284. static="false" final="false" visibility="public"
  11285. deprecated="not deprecated">
  11286. <param name="position" type="long"/>
  11287. <param name="buffer" type="byte[]"/>
  11288. <param name="offset" type="int"/>
  11289. <param name="length" type="int"/>
  11290. <exception name="IOException" type="java.io.IOException"/>
  11291. <doc>
  11292. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  11293. Continues to read until <code>length</code> bytes have been read.
  11294. @param position position in the input stream to seek
  11295. @param buffer buffer into which data is read
  11296. @param offset offset into the buffer in which data is written
  11297. @param length the number of bytes to read
  11298. @throws IOException IO problems
  11299. @throws EOFException If the end of stream is reached while reading.
  11300. If an exception is thrown an undetermined number
  11301. of bytes in the buffer may have been written.]]>
  11302. </doc>
  11303. </method>
  11304. <method name="readFully"
  11305. abstract="false" native="false" synchronized="false"
  11306. static="false" final="false" visibility="public"
  11307. deprecated="not deprecated">
  11308. <param name="position" type="long"/>
  11309. <param name="buffer" type="byte[]"/>
  11310. <exception name="IOException" type="java.io.IOException"/>
  11311. <doc>
  11312. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  11313. </doc>
  11314. </method>
  11315. <method name="seekToNewSource" return="boolean"
  11316. abstract="false" native="false" synchronized="false"
  11317. static="false" final="false" visibility="public"
  11318. deprecated="not deprecated">
  11319. <param name="targetPos" type="long"/>
  11320. <exception name="IOException" type="java.io.IOException"/>
  11321. <doc>
  11322. <![CDATA[Seek to the given position on an alternate copy of the data.
  11323. @param targetPos position to seek to
  11324. @return true if a new source is found, false otherwise]]>
  11325. </doc>
  11326. </method>
  11327. <method name="read" return="int"
  11328. abstract="false" native="false" synchronized="false"
  11329. static="false" final="false" visibility="public"
  11330. deprecated="not deprecated">
  11331. <param name="buf" type="java.nio.ByteBuffer"/>
  11332. <exception name="IOException" type="java.io.IOException"/>
  11333. </method>
  11334. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  11335. abstract="false" native="false" synchronized="false"
  11336. static="false" final="false" visibility="public"
  11337. deprecated="not deprecated">
  11338. <exception name="IOException" type="java.io.IOException"/>
  11339. </method>
  11340. <method name="setReadahead"
  11341. abstract="false" native="false" synchronized="false"
  11342. static="false" final="false" visibility="public"
  11343. deprecated="not deprecated">
  11344. <param name="readahead" type="java.lang.Long"/>
  11345. <exception name="IOException" type="java.io.IOException"/>
  11346. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11347. </method>
  11348. <method name="setDropBehind"
  11349. abstract="false" native="false" synchronized="false"
  11350. static="false" final="false" visibility="public"
  11351. deprecated="not deprecated">
  11352. <param name="dropBehind" type="java.lang.Boolean"/>
  11353. <exception name="IOException" type="java.io.IOException"/>
  11354. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11355. </method>
  11356. <method name="read" return="java.nio.ByteBuffer"
  11357. abstract="false" native="false" synchronized="false"
  11358. static="false" final="false" visibility="public"
  11359. deprecated="not deprecated">
  11360. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  11361. <param name="maxLength" type="int"/>
  11362. <param name="opts" type="java.util.EnumSet"/>
  11363. <exception name="IOException" type="java.io.IOException"/>
  11364. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11365. </method>
  11366. <method name="read" return="java.nio.ByteBuffer"
  11367. abstract="false" native="false" synchronized="false"
  11368. static="false" final="true" visibility="public"
  11369. deprecated="not deprecated">
  11370. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  11371. <param name="maxLength" type="int"/>
  11372. <exception name="IOException" type="java.io.IOException"/>
  11373. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11374. </method>
  11375. <method name="releaseBuffer"
  11376. abstract="false" native="false" synchronized="false"
  11377. static="false" final="false" visibility="public"
  11378. deprecated="not deprecated">
  11379. <param name="buffer" type="java.nio.ByteBuffer"/>
  11380. </method>
  11381. <method name="unbuffer"
  11382. abstract="false" native="false" synchronized="false"
  11383. static="false" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. </method>
  11386. <method name="toString" return="java.lang.String"
  11387. abstract="false" native="false" synchronized="false"
  11388. static="false" final="false" visibility="public"
  11389. deprecated="not deprecated">
  11390. <doc>
  11391. <![CDATA[String value. Includes the string value of the inner stream
  11392. @return the stream]]>
  11393. </doc>
  11394. </method>
  11395. <doc>
  11396. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  11397. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  11398. </doc>
  11399. </class>
  11400. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  11401. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  11402. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  11403. abstract="false"
  11404. static="false" final="false" visibility="public"
  11405. deprecated="not deprecated">
  11406. <implements name="org.apache.hadoop.fs.Syncable"/>
  11407. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  11408. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  11409. static="false" final="false" visibility="public"
  11410. deprecated="not deprecated">
  11411. <exception name="IOException" type="java.io.IOException"/>
  11412. </constructor>
  11413. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  11414. static="false" final="false" visibility="public"
  11415. deprecated="not deprecated">
  11416. <exception name="IOException" type="java.io.IOException"/>
  11417. </constructor>
  11418. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  11419. static="false" final="false" visibility="public"
  11420. deprecated="not deprecated">
  11421. <exception name="IOException" type="java.io.IOException"/>
  11422. </constructor>
  11423. <method name="getPos" return="long"
  11424. abstract="false" native="false" synchronized="false"
  11425. static="false" final="false" visibility="public"
  11426. deprecated="not deprecated">
  11427. <exception name="IOException" type="java.io.IOException"/>
  11428. <doc>
  11429. <![CDATA[Get the current position in the output stream.
  11430. @return the current position in the output stream]]>
  11431. </doc>
  11432. </method>
  11433. <method name="close"
  11434. abstract="false" native="false" synchronized="false"
  11435. static="false" final="false" visibility="public"
  11436. deprecated="not deprecated">
  11437. <exception name="IOException" type="java.io.IOException"/>
  11438. <doc>
  11439. <![CDATA[Close the underlying output stream.]]>
  11440. </doc>
  11441. </method>
  11442. <method name="sync"
  11443. abstract="false" native="false" synchronized="false"
  11444. static="false" final="false" visibility="public"
  11445. deprecated="not deprecated">
  11446. <exception name="IOException" type="java.io.IOException"/>
  11447. </method>
  11448. <method name="hflush"
  11449. abstract="false" native="false" synchronized="false"
  11450. static="false" final="false" visibility="public"
  11451. deprecated="not deprecated">
  11452. <exception name="IOException" type="java.io.IOException"/>
  11453. </method>
  11454. <method name="hsync"
  11455. abstract="false" native="false" synchronized="false"
  11456. static="false" final="false" visibility="public"
  11457. deprecated="not deprecated">
  11458. <exception name="IOException" type="java.io.IOException"/>
  11459. </method>
  11460. <method name="setDropBehind"
  11461. abstract="false" native="false" synchronized="false"
  11462. static="false" final="false" visibility="public"
  11463. deprecated="not deprecated">
  11464. <param name="dropBehind" type="java.lang.Boolean"/>
  11465. <exception name="IOException" type="java.io.IOException"/>
  11466. </method>
  11467. <doc>
  11468. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  11469. </doc>
  11470. </class>
  11471. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  11472. <!-- start class org.apache.hadoop.fs.FSError -->
  11473. <class name="FSError" extends="java.lang.Error"
  11474. abstract="false"
  11475. static="false" final="false" visibility="public"
  11476. deprecated="not deprecated">
  11477. <doc>
  11478. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  11479. in the native filesystem.]]>
  11480. </doc>
  11481. </class>
  11482. <!-- end class org.apache.hadoop.fs.FSError -->
  11483. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  11484. <class name="FSInputStream" extends="java.io.InputStream"
  11485. abstract="true"
  11486. static="false" final="false" visibility="public"
  11487. deprecated="not deprecated">
  11488. <implements name="org.apache.hadoop.fs.Seekable"/>
  11489. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  11490. <constructor name="FSInputStream"
  11491. static="false" final="false" visibility="public"
  11492. deprecated="not deprecated">
  11493. </constructor>
  11494. <method name="seek"
  11495. abstract="true" native="false" synchronized="false"
  11496. static="false" final="false" visibility="public"
  11497. deprecated="not deprecated">
  11498. <param name="pos" type="long"/>
  11499. <exception name="IOException" type="java.io.IOException"/>
  11500. <doc>
  11501. <![CDATA[Seek to the given offset from the start of the file.
  11502. The next read() will be from that location. Can't
  11503. seek past the end of the file.]]>
  11504. </doc>
  11505. </method>
  11506. <method name="getPos" return="long"
  11507. abstract="true" native="false" synchronized="false"
  11508. static="false" final="false" visibility="public"
  11509. deprecated="not deprecated">
  11510. <exception name="IOException" type="java.io.IOException"/>
  11511. <doc>
  11512. <![CDATA[Return the current offset from the start of the file]]>
  11513. </doc>
  11514. </method>
  11515. <method name="seekToNewSource" return="boolean"
  11516. abstract="true" native="false" synchronized="false"
  11517. static="false" final="false" visibility="public"
  11518. deprecated="not deprecated">
  11519. <param name="targetPos" type="long"/>
  11520. <exception name="IOException" type="java.io.IOException"/>
  11521. <doc>
  11522. <![CDATA[Seeks a different copy of the data. Returns true if
  11523. found a new source, false otherwise.]]>
  11524. </doc>
  11525. </method>
  11526. <method name="read" return="int"
  11527. abstract="false" native="false" synchronized="false"
  11528. static="false" final="false" visibility="public"
  11529. deprecated="not deprecated">
  11530. <param name="position" type="long"/>
  11531. <param name="buffer" type="byte[]"/>
  11532. <param name="offset" type="int"/>
  11533. <param name="length" type="int"/>
  11534. <exception name="IOException" type="java.io.IOException"/>
  11535. </method>
  11536. <method name="validatePositionedReadArgs"
  11537. abstract="false" native="false" synchronized="false"
  11538. static="false" final="false" visibility="protected"
  11539. deprecated="not deprecated">
  11540. <param name="position" type="long"/>
  11541. <param name="buffer" type="byte[]"/>
  11542. <param name="offset" type="int"/>
  11543. <param name="length" type="int"/>
  11544. <exception name="EOFException" type="java.io.EOFException"/>
  11545. <doc>
  11546. <![CDATA[Validation code, available for use in subclasses.
  11547. @param position position: if negative an EOF exception is raised
  11548. @param buffer destination buffer
  11549. @param offset offset within the buffer
  11550. @param length length of bytes to read
  11551. @throws EOFException if the position is negative
  11552. @throws IndexOutOfBoundsException if there isn't space for the amount of
  11553. data requested.
  11554. @throws IllegalArgumentException other arguments are invalid.]]>
  11555. </doc>
  11556. </method>
  11557. <method name="readFully"
  11558. abstract="false" native="false" synchronized="false"
  11559. static="false" final="false" visibility="public"
  11560. deprecated="not deprecated">
  11561. <param name="position" type="long"/>
  11562. <param name="buffer" type="byte[]"/>
  11563. <param name="offset" type="int"/>
  11564. <param name="length" type="int"/>
  11565. <exception name="IOException" type="java.io.IOException"/>
  11566. </method>
  11567. <method name="readFully"
  11568. abstract="false" native="false" synchronized="false"
  11569. static="false" final="false" visibility="public"
  11570. deprecated="not deprecated">
  11571. <param name="position" type="long"/>
  11572. <param name="buffer" type="byte[]"/>
  11573. <exception name="IOException" type="java.io.IOException"/>
  11574. </method>
  11575. <doc>
  11576. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  11577. of RAF-style seek ability.]]>
  11578. </doc>
  11579. </class>
  11580. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  11581. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  11582. <class name="FsServerDefaults" extends="java.lang.Object"
  11583. abstract="false"
  11584. static="false" final="false" visibility="public"
  11585. deprecated="not deprecated">
  11586. <implements name="org.apache.hadoop.io.Writable"/>
  11587. <constructor name="FsServerDefaults"
  11588. static="false" final="false" visibility="public"
  11589. deprecated="not deprecated">
  11590. </constructor>
  11591. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  11592. static="false" final="false" visibility="public"
  11593. deprecated="not deprecated">
  11594. </constructor>
  11595. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  11596. static="false" final="false" visibility="public"
  11597. deprecated="not deprecated">
  11598. </constructor>
  11599. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  11600. static="false" final="false" visibility="public"
  11601. deprecated="not deprecated">
  11602. </constructor>
  11603. <method name="getBlockSize" return="long"
  11604. abstract="false" native="false" synchronized="false"
  11605. static="false" final="false" visibility="public"
  11606. deprecated="not deprecated">
  11607. </method>
  11608. <method name="getBytesPerChecksum" return="int"
  11609. abstract="false" native="false" synchronized="false"
  11610. static="false" final="false" visibility="public"
  11611. deprecated="not deprecated">
  11612. </method>
  11613. <method name="getWritePacketSize" return="int"
  11614. abstract="false" native="false" synchronized="false"
  11615. static="false" final="false" visibility="public"
  11616. deprecated="not deprecated">
  11617. </method>
  11618. <method name="getReplication" return="short"
  11619. abstract="false" native="false" synchronized="false"
  11620. static="false" final="false" visibility="public"
  11621. deprecated="not deprecated">
  11622. </method>
  11623. <method name="getFileBufferSize" return="int"
  11624. abstract="false" native="false" synchronized="false"
  11625. static="false" final="false" visibility="public"
  11626. deprecated="not deprecated">
  11627. </method>
  11628. <method name="getEncryptDataTransfer" return="boolean"
  11629. abstract="false" native="false" synchronized="false"
  11630. static="false" final="false" visibility="public"
  11631. deprecated="not deprecated">
  11632. </method>
  11633. <method name="getTrashInterval" return="long"
  11634. abstract="false" native="false" synchronized="false"
  11635. static="false" final="false" visibility="public"
  11636. deprecated="not deprecated">
  11637. </method>
  11638. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  11639. abstract="false" native="false" synchronized="false"
  11640. static="false" final="false" visibility="public"
  11641. deprecated="not deprecated">
  11642. </method>
  11643. <method name="getKeyProviderUri" return="java.lang.String"
  11644. abstract="false" native="false" synchronized="false"
  11645. static="false" final="false" visibility="public"
  11646. deprecated="not deprecated">
  11647. </method>
  11648. <method name="getDefaultStoragePolicyId" return="byte"
  11649. abstract="false" native="false" synchronized="false"
  11650. static="false" final="false" visibility="public"
  11651. deprecated="not deprecated">
  11652. </method>
  11653. <doc>
  11654. <![CDATA[Provides server default configuration values to clients.]]>
  11655. </doc>
  11656. </class>
  11657. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  11658. <!-- start class org.apache.hadoop.fs.FsStatus -->
  11659. <class name="FsStatus" extends="java.lang.Object"
  11660. abstract="false"
  11661. static="false" final="false" visibility="public"
  11662. deprecated="not deprecated">
  11663. <implements name="org.apache.hadoop.io.Writable"/>
  11664. <constructor name="FsStatus" type="long, long, long"
  11665. static="false" final="false" visibility="public"
  11666. deprecated="not deprecated">
  11667. <doc>
  11668. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  11669. </doc>
  11670. </constructor>
  11671. <method name="getCapacity" return="long"
  11672. abstract="false" native="false" synchronized="false"
  11673. static="false" final="false" visibility="public"
  11674. deprecated="not deprecated">
  11675. <doc>
  11676. <![CDATA[Return the capacity in bytes of the file system]]>
  11677. </doc>
  11678. </method>
  11679. <method name="getUsed" return="long"
  11680. abstract="false" native="false" synchronized="false"
  11681. static="false" final="false" visibility="public"
  11682. deprecated="not deprecated">
  11683. <doc>
  11684. <![CDATA[Return the number of bytes used on the file system]]>
  11685. </doc>
  11686. </method>
  11687. <method name="getRemaining" return="long"
  11688. abstract="false" native="false" synchronized="false"
  11689. static="false" final="false" visibility="public"
  11690. deprecated="not deprecated">
  11691. <doc>
  11692. <![CDATA[Return the number of remaining bytes on the file system]]>
  11693. </doc>
  11694. </method>
  11695. <method name="write"
  11696. abstract="false" native="false" synchronized="false"
  11697. static="false" final="false" visibility="public"
  11698. deprecated="not deprecated">
  11699. <param name="out" type="java.io.DataOutput"/>
  11700. <exception name="IOException" type="java.io.IOException"/>
  11701. </method>
  11702. <method name="readFields"
  11703. abstract="false" native="false" synchronized="false"
  11704. static="false" final="false" visibility="public"
  11705. deprecated="not deprecated">
  11706. <param name="in" type="java.io.DataInput"/>
  11707. <exception name="IOException" type="java.io.IOException"/>
  11708. </method>
  11709. <doc>
  11710. <![CDATA[This class is used to represent the capacity, free and used space on a
  11711. {@link FileSystem}.]]>
  11712. </doc>
  11713. </class>
  11714. <!-- end class org.apache.hadoop.fs.FsStatus -->
  11715. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  11716. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  11717. abstract="false"
  11718. static="false" final="true" visibility="public"
  11719. deprecated="not deprecated">
  11720. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  11721. abstract="false" native="false" synchronized="false"
  11722. static="true" final="false" visibility="public"
  11723. deprecated="not deprecated">
  11724. </method>
  11725. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  11726. abstract="false" native="false" synchronized="false"
  11727. static="true" final="false" visibility="public"
  11728. deprecated="not deprecated">
  11729. <param name="name" type="java.lang.String"/>
  11730. </method>
  11731. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  11732. abstract="false" native="false" synchronized="true"
  11733. static="false" final="false" visibility="public"
  11734. deprecated="not deprecated">
  11735. <param name="name" type="java.lang.String"/>
  11736. <doc>
  11737. <![CDATA[Get the StorageStatistics object with the given name.
  11738. @param name The storage statistics object name.
  11739. @return The StorageStatistics object with the given name, or
  11740. null if there is none.]]>
  11741. </doc>
  11742. </method>
  11743. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  11744. abstract="false" native="false" synchronized="true"
  11745. static="false" final="false" visibility="public"
  11746. deprecated="not deprecated">
  11747. <param name="name" type="java.lang.String"/>
  11748. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  11749. <doc>
  11750. <![CDATA[Create or return the StorageStatistics object with the given name.
  11751. @param name The storage statistics object name.
  11752. @param provider An object which can create a new StorageStatistics
  11753. object if needed.
  11754. @return The StorageStatistics object with the given name.
  11755. @throws RuntimeException If the StorageStatisticsProvider provides a null
  11756. object or a new StorageStatistics object with the
  11757. wrong name.]]>
  11758. </doc>
  11759. </method>
  11760. <method name="reset"
  11761. abstract="false" native="false" synchronized="true"
  11762. static="false" final="false" visibility="public"
  11763. deprecated="not deprecated">
  11764. <doc>
  11765. <![CDATA[Reset all global storage statistics.]]>
  11766. </doc>
  11767. </method>
  11768. <method name="iterator" return="java.util.Iterator"
  11769. abstract="false" native="false" synchronized="true"
  11770. static="false" final="false" visibility="public"
  11771. deprecated="not deprecated">
  11772. <doc>
  11773. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  11774. statistics objects.]]>
  11775. </doc>
  11776. </method>
  11777. <doc>
  11778. <![CDATA[Stores global storage statistics objects.]]>
  11779. </doc>
  11780. </class>
  11781. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  11782. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  11783. <class name="GlobFilter" extends="java.lang.Object"
  11784. abstract="false"
  11785. static="false" final="false" visibility="public"
  11786. deprecated="not deprecated">
  11787. <implements name="org.apache.hadoop.fs.PathFilter"/>
  11788. <constructor name="GlobFilter" type="java.lang.String"
  11789. static="false" final="false" visibility="public"
  11790. deprecated="not deprecated">
  11791. <exception name="IOException" type="java.io.IOException"/>
  11792. <doc>
  11793. <![CDATA[Creates a glob filter with the specified file pattern.
  11794. @param filePattern the file pattern.
  11795. @throws IOException thrown if the file pattern is incorrect.]]>
  11796. </doc>
  11797. </constructor>
  11798. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  11799. static="false" final="false" visibility="public"
  11800. deprecated="not deprecated">
  11801. <exception name="IOException" type="java.io.IOException"/>
  11802. <doc>
  11803. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  11804. @param filePattern the file pattern.
  11805. @param filter user filter in addition to the glob pattern.
  11806. @throws IOException thrown if the file pattern is incorrect.]]>
  11807. </doc>
  11808. </constructor>
  11809. <method name="hasPattern" return="boolean"
  11810. abstract="false" native="false" synchronized="false"
  11811. static="false" final="false" visibility="public"
  11812. deprecated="not deprecated">
  11813. </method>
  11814. <method name="accept" return="boolean"
  11815. abstract="false" native="false" synchronized="false"
  11816. static="false" final="false" visibility="public"
  11817. deprecated="not deprecated">
  11818. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11819. </method>
  11820. <doc>
  11821. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  11822. </doc>
  11823. </class>
  11824. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  11825. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  11826. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  11827. abstract="false"
  11828. static="false" final="false" visibility="public"
  11829. deprecated="not deprecated">
  11830. <constructor name="InvalidPathException" type="java.lang.String"
  11831. static="false" final="false" visibility="public"
  11832. deprecated="not deprecated">
  11833. <doc>
  11834. <![CDATA[Constructs exception with the specified detail message.
  11835. @param path invalid path.]]>
  11836. </doc>
  11837. </constructor>
  11838. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  11839. static="false" final="false" visibility="public"
  11840. deprecated="not deprecated">
  11841. <doc>
  11842. <![CDATA[Constructs exception with the specified detail message.
  11843. @param path invalid path.
  11844. @param reason Reason <code>path</code> is invalid]]>
  11845. </doc>
  11846. </constructor>
  11847. <doc>
  11848. <![CDATA[Path string is invalid either because it has invalid characters or due to
  11849. other file system specific reasons.]]>
  11850. </doc>
  11851. </class>
  11852. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  11853. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  11854. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  11855. abstract="false"
  11856. static="false" final="false" visibility="public"
  11857. deprecated="not deprecated">
  11858. <constructor name="LocalFileSystem"
  11859. static="false" final="false" visibility="public"
  11860. deprecated="not deprecated">
  11861. </constructor>
  11862. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11863. static="false" final="false" visibility="public"
  11864. deprecated="not deprecated">
  11865. </constructor>
  11866. <method name="initialize"
  11867. abstract="false" native="false" synchronized="false"
  11868. static="false" final="false" visibility="public"
  11869. deprecated="not deprecated">
  11870. <param name="name" type="java.net.URI"/>
  11871. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11872. <exception name="IOException" type="java.io.IOException"/>
  11873. </method>
  11874. <method name="getScheme" return="java.lang.String"
  11875. abstract="false" native="false" synchronized="false"
  11876. static="false" final="false" visibility="public"
  11877. deprecated="not deprecated">
  11878. <doc>
  11879. <![CDATA[Return the protocol scheme for the FileSystem.
  11880. <p/>
  11881. @return <code>file</code>]]>
  11882. </doc>
  11883. </method>
  11884. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  11885. abstract="false" native="false" synchronized="false"
  11886. static="false" final="false" visibility="public"
  11887. deprecated="not deprecated">
  11888. </method>
  11889. <method name="pathToFile" return="java.io.File"
  11890. abstract="false" native="false" synchronized="false"
  11891. static="false" final="false" visibility="public"
  11892. deprecated="not deprecated">
  11893. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11894. <doc>
  11895. <![CDATA[Convert a path to a File.]]>
  11896. </doc>
  11897. </method>
  11898. <method name="copyFromLocalFile"
  11899. abstract="false" native="false" synchronized="false"
  11900. static="false" final="false" visibility="public"
  11901. deprecated="not deprecated">
  11902. <param name="delSrc" type="boolean"/>
  11903. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11904. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11905. <exception name="IOException" type="java.io.IOException"/>
  11906. </method>
  11907. <method name="copyToLocalFile"
  11908. abstract="false" native="false" synchronized="false"
  11909. static="false" final="false" visibility="public"
  11910. deprecated="not deprecated">
  11911. <param name="delSrc" type="boolean"/>
  11912. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11913. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11914. <exception name="IOException" type="java.io.IOException"/>
  11915. </method>
  11916. <method name="reportChecksumFailure" return="boolean"
  11917. abstract="false" native="false" synchronized="false"
  11918. static="false" final="false" visibility="public"
  11919. deprecated="not deprecated">
  11920. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11921. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  11922. <param name="inPos" type="long"/>
  11923. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  11924. <param name="sumsPos" type="long"/>
  11925. <doc>
  11926. <![CDATA[Moves files to a bad file directory on the same device, so that their
  11927. storage will not be reused.]]>
  11928. </doc>
  11929. </method>
  11930. <method name="supportsSymlinks" return="boolean"
  11931. abstract="false" native="false" synchronized="false"
  11932. static="false" final="false" visibility="public"
  11933. deprecated="not deprecated">
  11934. </method>
  11935. <method name="createSymlink"
  11936. abstract="false" native="false" synchronized="false"
  11937. static="false" final="false" visibility="public"
  11938. deprecated="not deprecated">
  11939. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11940. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11941. <param name="createParent" type="boolean"/>
  11942. <exception name="IOException" type="java.io.IOException"/>
  11943. </method>
  11944. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11945. abstract="false" native="false" synchronized="false"
  11946. static="false" final="false" visibility="public"
  11947. deprecated="not deprecated">
  11948. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11949. <exception name="IOException" type="java.io.IOException"/>
  11950. </method>
  11951. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11952. abstract="false" native="false" synchronized="false"
  11953. static="false" final="false" visibility="public"
  11954. deprecated="not deprecated">
  11955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11956. <exception name="IOException" type="java.io.IOException"/>
  11957. </method>
  11958. <doc>
  11959. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  11960. </doc>
  11961. </class>
  11962. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  11963. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  11964. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  11965. abstract="false"
  11966. static="false" final="false" visibility="public"
  11967. deprecated="not deprecated">
  11968. <constructor name="LocatedFileStatus"
  11969. static="false" final="false" visibility="public"
  11970. deprecated="not deprecated">
  11971. </constructor>
  11972. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  11973. static="false" final="false" visibility="public"
  11974. deprecated="not deprecated">
  11975. <exception name="IOException" type="java.io.IOException"/>
  11976. <doc>
  11977. <![CDATA[Constructor
  11978. @param stat a file status
  11979. @param locations a file's block locations]]>
  11980. </doc>
  11981. </constructor>
  11982. <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[]"
  11983. static="false" final="false" visibility="public"
  11984. deprecated="not deprecated">
  11985. <doc>
  11986. <![CDATA[Constructor
  11987. @param length a file's length
  11988. @param isdir if the path is a directory
  11989. @param block_replication the file's replication factor
  11990. @param blocksize a file's block size
  11991. @param modification_time a file's modification time
  11992. @param access_time a file's access time
  11993. @param permission a file's permission
  11994. @param owner a file's owner
  11995. @param group a file's group
  11996. @param symlink symlink if the path is a symbolic link
  11997. @param path the path's qualified name
  11998. @param locations a file's block locations]]>
  11999. </doc>
  12000. </constructor>
  12001. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  12002. abstract="false" native="false" synchronized="false"
  12003. static="false" final="false" visibility="public"
  12004. deprecated="not deprecated">
  12005. <doc>
  12006. <![CDATA[Get the file's block locations
  12007. @return the file's block locations]]>
  12008. </doc>
  12009. </method>
  12010. <method name="compareTo" return="int"
  12011. abstract="false" native="false" synchronized="false"
  12012. static="false" final="false" visibility="public"
  12013. deprecated="not deprecated">
  12014. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  12015. <doc>
  12016. <![CDATA[Compare this FileStatus to another FileStatus
  12017. @param o the FileStatus to be compared.
  12018. @return a negative integer, zero, or a positive integer as this object
  12019. is less than, equal to, or greater than the specified object.]]>
  12020. </doc>
  12021. </method>
  12022. <method name="equals" return="boolean"
  12023. abstract="false" native="false" synchronized="false"
  12024. static="false" final="false" visibility="public"
  12025. deprecated="not deprecated">
  12026. <param name="o" type="java.lang.Object"/>
  12027. <doc>
  12028. <![CDATA[Compare if this object is equal to another object
  12029. @param o the object to be compared.
  12030. @return true if two file status has the same path name; false if not.]]>
  12031. </doc>
  12032. </method>
  12033. <method name="hashCode" return="int"
  12034. abstract="false" native="false" synchronized="false"
  12035. static="false" final="false" visibility="public"
  12036. deprecated="not deprecated">
  12037. <doc>
  12038. <![CDATA[Returns a hash code value for the object, which is defined as
  12039. the hash code of the path name.
  12040. @return a hash code value for the path name.]]>
  12041. </doc>
  12042. </method>
  12043. <doc>
  12044. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  12045. </doc>
  12046. </class>
  12047. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  12048. <!-- start class org.apache.hadoop.fs.Options -->
  12049. <class name="Options" extends="java.lang.Object"
  12050. abstract="false"
  12051. static="false" final="true" visibility="public"
  12052. deprecated="not deprecated">
  12053. <constructor name="Options"
  12054. static="false" final="false" visibility="public"
  12055. deprecated="not deprecated">
  12056. </constructor>
  12057. <doc>
  12058. <![CDATA[This class contains options related to file system operations.]]>
  12059. </doc>
  12060. </class>
  12061. <!-- end class org.apache.hadoop.fs.Options -->
  12062. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  12063. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  12064. abstract="false"
  12065. static="false" final="false" visibility="public"
  12066. deprecated="not deprecated">
  12067. <constructor name="ParentNotDirectoryException"
  12068. static="false" final="false" visibility="public"
  12069. deprecated="not deprecated">
  12070. </constructor>
  12071. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  12072. static="false" final="false" visibility="public"
  12073. deprecated="not deprecated">
  12074. </constructor>
  12075. <doc>
  12076. <![CDATA[Indicates that the parent of specified Path is not a directory
  12077. as expected.]]>
  12078. </doc>
  12079. </class>
  12080. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  12081. <!-- start class org.apache.hadoop.fs.Path -->
  12082. <class name="Path" extends="java.lang.Object"
  12083. abstract="false"
  12084. static="false" final="false" visibility="public"
  12085. deprecated="not deprecated">
  12086. <implements name="java.lang.Comparable"/>
  12087. <constructor name="Path" type="java.lang.String, java.lang.String"
  12088. static="false" final="false" visibility="public"
  12089. deprecated="not deprecated">
  12090. <doc>
  12091. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12092. @param parent the parent path
  12093. @param child the child path]]>
  12094. </doc>
  12095. </constructor>
  12096. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  12097. static="false" final="false" visibility="public"
  12098. deprecated="not deprecated">
  12099. <doc>
  12100. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12101. @param parent the parent path
  12102. @param child the child path]]>
  12103. </doc>
  12104. </constructor>
  12105. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  12106. static="false" final="false" visibility="public"
  12107. deprecated="not deprecated">
  12108. <doc>
  12109. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12110. @param parent the parent path
  12111. @param child the child path]]>
  12112. </doc>
  12113. </constructor>
  12114. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  12115. static="false" final="false" visibility="public"
  12116. deprecated="not deprecated">
  12117. <doc>
  12118. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12119. @param parent the parent path
  12120. @param child the child path]]>
  12121. </doc>
  12122. </constructor>
  12123. <constructor name="Path" type="java.lang.String"
  12124. static="false" final="false" visibility="public"
  12125. deprecated="not deprecated">
  12126. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12127. <doc>
  12128. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  12129. unescaped elements and some additional normalization.
  12130. @param pathString the path string]]>
  12131. </doc>
  12132. </constructor>
  12133. <constructor name="Path" type="java.net.URI"
  12134. static="false" final="false" visibility="public"
  12135. deprecated="not deprecated">
  12136. <doc>
  12137. <![CDATA[Construct a path from a URI
  12138. @param aUri the source URI]]>
  12139. </doc>
  12140. </constructor>
  12141. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  12142. static="false" final="false" visibility="public"
  12143. deprecated="not deprecated">
  12144. <doc>
  12145. <![CDATA[Construct a Path from components.
  12146. @param scheme the scheme
  12147. @param authority the authority
  12148. @param path the path]]>
  12149. </doc>
  12150. </constructor>
  12151. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  12152. abstract="false" native="false" synchronized="false"
  12153. static="true" final="false" visibility="public"
  12154. deprecated="not deprecated">
  12155. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12156. <doc>
  12157. <![CDATA[Return a version of the given Path without the scheme information.
  12158. @param path the source Path
  12159. @return a copy of this Path without the scheme information]]>
  12160. </doc>
  12161. </method>
  12162. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  12163. abstract="false" native="false" synchronized="false"
  12164. static="true" final="false" visibility="public"
  12165. deprecated="not deprecated">
  12166. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  12167. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  12168. <doc>
  12169. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  12170. The returned path has the scheme and authority of the first path. On
  12171. Windows, the drive specification in the second path is discarded.
  12172. @param path1 the first path
  12173. @param path2 the second path, to be appended relative to path1
  12174. @return the merged path]]>
  12175. </doc>
  12176. </method>
  12177. <method name="isWindowsAbsolutePath" return="boolean"
  12178. abstract="false" native="false" synchronized="false"
  12179. static="true" final="false" visibility="public"
  12180. deprecated="not deprecated">
  12181. <param name="pathString" type="java.lang.String"/>
  12182. <param name="slashed" type="boolean"/>
  12183. <doc>
  12184. <![CDATA[Determine whether a given path string represents an absolute path on
  12185. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  12186. @param pathString the path string to evaluate
  12187. @param slashed true if the given path is prefixed with "/"
  12188. @return true if the supplied path looks like an absolute path with a Windows
  12189. drive-specifier]]>
  12190. </doc>
  12191. </method>
  12192. <method name="toUri" return="java.net.URI"
  12193. abstract="false" native="false" synchronized="false"
  12194. static="false" final="false" visibility="public"
  12195. deprecated="not deprecated">
  12196. <doc>
  12197. <![CDATA[Convert this Path to a URI.
  12198. @return this Path as a URI]]>
  12199. </doc>
  12200. </method>
  12201. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  12202. abstract="false" native="false" synchronized="false"
  12203. static="false" final="false" visibility="public"
  12204. deprecated="not deprecated">
  12205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12206. <exception name="IOException" type="java.io.IOException"/>
  12207. <doc>
  12208. <![CDATA[Return the FileSystem that owns this Path.
  12209. @param conf the configuration to use when resolving the FileSystem
  12210. @return the FileSystem that owns this Path
  12211. @throws java.io.IOException thrown if there's an issue resolving the
  12212. FileSystem]]>
  12213. </doc>
  12214. </method>
  12215. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  12216. abstract="false" native="false" synchronized="false"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="not deprecated">
  12219. <doc>
  12220. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  12221. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  12222. is null.
  12223. @return whether the path is absolute and the URI has no scheme nor
  12224. authority parts]]>
  12225. </doc>
  12226. </method>
  12227. <method name="isUriPathAbsolute" return="boolean"
  12228. abstract="false" native="false" synchronized="false"
  12229. static="false" final="false" visibility="public"
  12230. deprecated="not deprecated">
  12231. <doc>
  12232. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  12233. absolute.
  12234. @return whether this URI's path is absolute]]>
  12235. </doc>
  12236. </method>
  12237. <method name="isAbsolute" return="boolean"
  12238. abstract="false" native="false" synchronized="false"
  12239. static="false" final="false" visibility="public"
  12240. deprecated="not deprecated">
  12241. <doc>
  12242. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  12243. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  12244. @return whether this URI's path is absolute]]>
  12245. </doc>
  12246. </method>
  12247. <method name="isRoot" return="boolean"
  12248. abstract="false" native="false" synchronized="false"
  12249. static="false" final="false" visibility="public"
  12250. deprecated="not deprecated">
  12251. <doc>
  12252. <![CDATA[Returns true if and only if this path represents the root of a file system.
  12253. @return true if and only if this path represents the root of a file system]]>
  12254. </doc>
  12255. </method>
  12256. <method name="getName" return="java.lang.String"
  12257. abstract="false" native="false" synchronized="false"
  12258. static="false" final="false" visibility="public"
  12259. deprecated="not deprecated">
  12260. <doc>
  12261. <![CDATA[Returns the final component of this path.
  12262. @return the final component of this path]]>
  12263. </doc>
  12264. </method>
  12265. <method name="getParent" return="org.apache.hadoop.fs.Path"
  12266. abstract="false" native="false" synchronized="false"
  12267. static="false" final="false" visibility="public"
  12268. deprecated="not deprecated">
  12269. <doc>
  12270. <![CDATA[Returns the parent of a path or null if at root.
  12271. @return the parent of a path or null if at root]]>
  12272. </doc>
  12273. </method>
  12274. <method name="suffix" return="org.apache.hadoop.fs.Path"
  12275. abstract="false" native="false" synchronized="false"
  12276. static="false" final="false" visibility="public"
  12277. deprecated="not deprecated">
  12278. <param name="suffix" type="java.lang.String"/>
  12279. <doc>
  12280. <![CDATA[Adds a suffix to the final name in the path.
  12281. @param suffix the suffix to add
  12282. @return a new path with the suffix added]]>
  12283. </doc>
  12284. </method>
  12285. <method name="toString" return="java.lang.String"
  12286. abstract="false" native="false" synchronized="false"
  12287. static="false" final="false" visibility="public"
  12288. deprecated="not deprecated">
  12289. </method>
  12290. <method name="equals" return="boolean"
  12291. abstract="false" native="false" synchronized="false"
  12292. static="false" final="false" visibility="public"
  12293. deprecated="not deprecated">
  12294. <param name="o" type="java.lang.Object"/>
  12295. </method>
  12296. <method name="hashCode" return="int"
  12297. abstract="false" native="false" synchronized="false"
  12298. static="false" final="false" visibility="public"
  12299. deprecated="not deprecated">
  12300. </method>
  12301. <method name="compareTo" return="int"
  12302. abstract="false" native="false" synchronized="false"
  12303. static="false" final="false" visibility="public"
  12304. deprecated="not deprecated">
  12305. <param name="o" type="java.lang.Object"/>
  12306. </method>
  12307. <method name="depth" return="int"
  12308. abstract="false" native="false" synchronized="false"
  12309. static="false" final="false" visibility="public"
  12310. deprecated="not deprecated">
  12311. <doc>
  12312. <![CDATA[Returns the number of elements in this path.
  12313. @return the number of elements in this path]]>
  12314. </doc>
  12315. </method>
  12316. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  12317. abstract="false" native="false" synchronized="false"
  12318. static="false" final="false" visibility="public"
  12319. deprecated="use {@link #makeQualified(URI, Path)}">
  12320. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12321. <doc>
  12322. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  12323. directory.
  12324. @param fs the target FileSystem
  12325. @return a qualified path object for the FileSystem's working directory
  12326. @deprecated use {@link #makeQualified(URI, Path)}]]>
  12327. </doc>
  12328. </method>
  12329. <field name="SEPARATOR" type="java.lang.String"
  12330. transient="false" volatile="false"
  12331. static="true" final="true" visibility="public"
  12332. deprecated="not deprecated">
  12333. <doc>
  12334. <![CDATA[The directory separator, a slash.]]>
  12335. </doc>
  12336. </field>
  12337. <field name="SEPARATOR_CHAR" type="char"
  12338. transient="false" volatile="false"
  12339. static="true" final="true" visibility="public"
  12340. deprecated="not deprecated">
  12341. <doc>
  12342. <![CDATA[The directory separator, a slash, as a character.]]>
  12343. </doc>
  12344. </field>
  12345. <field name="CUR_DIR" type="java.lang.String"
  12346. transient="false" volatile="false"
  12347. static="true" final="true" visibility="public"
  12348. deprecated="not deprecated">
  12349. <doc>
  12350. <![CDATA[The current directory, ".".]]>
  12351. </doc>
  12352. </field>
  12353. <field name="WINDOWS" type="boolean"
  12354. transient="false" volatile="false"
  12355. static="true" final="true" visibility="public"
  12356. deprecated="not deprecated">
  12357. <doc>
  12358. <![CDATA[Whether the current host is a Windows machine.]]>
  12359. </doc>
  12360. </field>
  12361. <doc>
  12362. <![CDATA[Names a file or directory in a {@link FileSystem}.
  12363. Path strings use slash as the directory separator.]]>
  12364. </doc>
  12365. </class>
  12366. <!-- end class org.apache.hadoop.fs.Path -->
  12367. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  12368. <interface name="PathFilter" abstract="true"
  12369. static="false" final="false" visibility="public"
  12370. deprecated="not deprecated">
  12371. <method name="accept" return="boolean"
  12372. abstract="false" native="false" synchronized="false"
  12373. static="false" final="false" visibility="public"
  12374. deprecated="not deprecated">
  12375. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12376. <doc>
  12377. <![CDATA[Tests whether or not the specified abstract pathname should be
  12378. included in a pathname list.
  12379. @param path The abstract pathname to be tested
  12380. @return <code>true</code> if and only if <code>pathname</code>
  12381. should be included]]>
  12382. </doc>
  12383. </method>
  12384. </interface>
  12385. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  12386. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  12387. <interface name="PositionedReadable" abstract="true"
  12388. static="false" final="false" visibility="public"
  12389. deprecated="not deprecated">
  12390. <method name="read" return="int"
  12391. abstract="false" native="false" synchronized="false"
  12392. static="false" final="false" visibility="public"
  12393. deprecated="not deprecated">
  12394. <param name="position" type="long"/>
  12395. <param name="buffer" type="byte[]"/>
  12396. <param name="offset" type="int"/>
  12397. <param name="length" type="int"/>
  12398. <exception name="IOException" type="java.io.IOException"/>
  12399. <doc>
  12400. <![CDATA[Read up to the specified number of bytes, from a given
  12401. position within a file, and return the number of bytes read. This does not
  12402. change the current offset of a file, and is thread-safe.
  12403. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  12404. @param position position within file
  12405. @param buffer destination buffer
  12406. @param offset offset in the buffer
  12407. @param length number of bytes to read
  12408. @return actual number of bytes read; -1 means "none"
  12409. @throws IOException IO problems.]]>
  12410. </doc>
  12411. </method>
  12412. <method name="readFully"
  12413. abstract="false" native="false" synchronized="false"
  12414. static="false" final="false" visibility="public"
  12415. deprecated="not deprecated">
  12416. <param name="position" type="long"/>
  12417. <param name="buffer" type="byte[]"/>
  12418. <param name="offset" type="int"/>
  12419. <param name="length" type="int"/>
  12420. <exception name="IOException" type="java.io.IOException"/>
  12421. <doc>
  12422. <![CDATA[Read the specified number of bytes, from a given
  12423. position within a file. This does not
  12424. change the current offset of a file, and is thread-safe.
  12425. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  12426. @param position position within file
  12427. @param buffer destination buffer
  12428. @param offset offset in the buffer
  12429. @param length number of bytes to read
  12430. @throws IOException IO problems.
  12431. @throws EOFException the end of the data was reached before
  12432. the read operation completed]]>
  12433. </doc>
  12434. </method>
  12435. <method name="readFully"
  12436. abstract="false" native="false" synchronized="false"
  12437. static="false" final="false" visibility="public"
  12438. deprecated="not deprecated">
  12439. <param name="position" type="long"/>
  12440. <param name="buffer" type="byte[]"/>
  12441. <exception name="IOException" type="java.io.IOException"/>
  12442. <doc>
  12443. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  12444. position within a file. This does not
  12445. change the current offset of a file, and is thread-safe.
  12446. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  12447. @param position position within file
  12448. @param buffer destination buffer
  12449. @throws IOException IO problems.
  12450. @throws EOFException the end of the data was reached before
  12451. the read operation completed]]>
  12452. </doc>
  12453. </method>
  12454. <doc>
  12455. <![CDATA[Stream that permits positional reading.
  12456. Implementations are required to implement thread-safe operations; this may
  12457. be supported by concurrent access to the data, or by using a synchronization
  12458. mechanism to serialize access.
  12459. Not all implementations meet this requirement. Those that do not cannot
  12460. be used as a backing store for some applications, such as Apache HBase.
  12461. Independent of whether or not they are thread safe, some implementations
  12462. may make the intermediate state of the system, specifically the position
  12463. obtained in {@code Seekable.getPos()} visible.]]>
  12464. </doc>
  12465. </interface>
  12466. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  12467. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  12468. <class name="QuotaUsage" extends="java.lang.Object"
  12469. abstract="false"
  12470. static="false" final="false" visibility="public"
  12471. deprecated="not deprecated">
  12472. <constructor name="QuotaUsage"
  12473. static="false" final="false" visibility="protected"
  12474. deprecated="not deprecated">
  12475. </constructor>
  12476. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  12477. static="false" final="false" visibility="protected"
  12478. deprecated="not deprecated">
  12479. <doc>
  12480. <![CDATA[Build the instance based on the builder.]]>
  12481. </doc>
  12482. </constructor>
  12483. <method name="setQuota"
  12484. abstract="false" native="false" synchronized="false"
  12485. static="false" final="false" visibility="protected"
  12486. deprecated="not deprecated">
  12487. <param name="quota" type="long"/>
  12488. </method>
  12489. <method name="setSpaceConsumed"
  12490. abstract="false" native="false" synchronized="false"
  12491. static="false" final="false" visibility="protected"
  12492. deprecated="not deprecated">
  12493. <param name="spaceConsumed" type="long"/>
  12494. </method>
  12495. <method name="setSpaceQuota"
  12496. abstract="false" native="false" synchronized="false"
  12497. static="false" final="false" visibility="protected"
  12498. deprecated="not deprecated">
  12499. <param name="spaceQuota" type="long"/>
  12500. </method>
  12501. <method name="getFileAndDirectoryCount" return="long"
  12502. abstract="false" native="false" synchronized="false"
  12503. static="false" final="false" visibility="public"
  12504. deprecated="not deprecated">
  12505. <doc>
  12506. <![CDATA[Return the directory count.]]>
  12507. </doc>
  12508. </method>
  12509. <method name="getQuota" return="long"
  12510. abstract="false" native="false" synchronized="false"
  12511. static="false" final="false" visibility="public"
  12512. deprecated="not deprecated">
  12513. <doc>
  12514. <![CDATA[Return the directory quota.]]>
  12515. </doc>
  12516. </method>
  12517. <method name="getSpaceConsumed" return="long"
  12518. abstract="false" native="false" synchronized="false"
  12519. static="false" final="false" visibility="public"
  12520. deprecated="not deprecated">
  12521. <doc>
  12522. <![CDATA[Return (disk) space consumed.]]>
  12523. </doc>
  12524. </method>
  12525. <method name="getSpaceQuota" return="long"
  12526. abstract="false" native="false" synchronized="false"
  12527. static="false" final="false" visibility="public"
  12528. deprecated="not deprecated">
  12529. <doc>
  12530. <![CDATA[Return (disk) space quota.]]>
  12531. </doc>
  12532. </method>
  12533. <method name="getTypeQuota" return="long"
  12534. abstract="false" native="false" synchronized="false"
  12535. static="false" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  12538. <doc>
  12539. <![CDATA[Return storage type quota.]]>
  12540. </doc>
  12541. </method>
  12542. <method name="getTypeConsumed" return="long"
  12543. abstract="false" native="false" synchronized="false"
  12544. static="false" final="false" visibility="public"
  12545. deprecated="not deprecated">
  12546. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  12547. <doc>
  12548. <![CDATA[Return storage type consumed.]]>
  12549. </doc>
  12550. </method>
  12551. <method name="isTypeQuotaSet" return="boolean"
  12552. abstract="false" native="false" synchronized="false"
  12553. static="false" final="false" visibility="public"
  12554. deprecated="not deprecated">
  12555. <doc>
  12556. <![CDATA[Return true if any storage type quota has been set.]]>
  12557. </doc>
  12558. </method>
  12559. <method name="isTypeConsumedAvailable" return="boolean"
  12560. abstract="false" native="false" synchronized="false"
  12561. static="false" final="false" visibility="public"
  12562. deprecated="not deprecated">
  12563. <doc>
  12564. <![CDATA[Return true if any storage type consumption information is available.]]>
  12565. </doc>
  12566. </method>
  12567. <method name="equals" return="boolean"
  12568. abstract="false" native="false" synchronized="false"
  12569. static="false" final="false" visibility="public"
  12570. deprecated="not deprecated">
  12571. <param name="to" type="java.lang.Object"/>
  12572. </method>
  12573. <method name="hashCode" return="int"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. </method>
  12578. <method name="getHeader" return="java.lang.String"
  12579. abstract="false" native="false" synchronized="false"
  12580. static="true" final="false" visibility="public"
  12581. deprecated="not deprecated">
  12582. <doc>
  12583. <![CDATA[Return the header of the output.
  12584. @return the header of the output]]>
  12585. </doc>
  12586. </method>
  12587. <method name="toString" return="java.lang.String"
  12588. abstract="false" native="false" synchronized="false"
  12589. static="false" final="false" visibility="public"
  12590. deprecated="not deprecated">
  12591. </method>
  12592. <method name="toString" return="java.lang.String"
  12593. abstract="false" native="false" synchronized="false"
  12594. static="false" final="false" visibility="public"
  12595. deprecated="not deprecated">
  12596. <param name="hOption" type="boolean"/>
  12597. </method>
  12598. <method name="toString" return="java.lang.String"
  12599. abstract="false" native="false" synchronized="false"
  12600. static="false" final="false" visibility="public"
  12601. deprecated="not deprecated">
  12602. <param name="hOption" type="boolean"/>
  12603. <param name="tOption" type="boolean"/>
  12604. <param name="types" type="java.util.List"/>
  12605. <doc>
  12606. <![CDATA[Return the string representation of the object in the output format.
  12607. if hOption is false file sizes are returned in bytes
  12608. if hOption is true file sizes are returned in human readable
  12609. @param hOption a flag indicating if human readable output if to be used
  12610. @return the string representation of the object]]>
  12611. </doc>
  12612. </method>
  12613. <method name="getQuotaUsage" return="java.lang.String"
  12614. abstract="false" native="false" synchronized="false"
  12615. static="false" final="false" visibility="protected"
  12616. deprecated="not deprecated">
  12617. <param name="hOption" type="boolean"/>
  12618. </method>
  12619. <method name="getTypesQuotaUsage" return="java.lang.String"
  12620. abstract="false" native="false" synchronized="false"
  12621. static="false" final="false" visibility="protected"
  12622. deprecated="not deprecated">
  12623. <param name="hOption" type="boolean"/>
  12624. <param name="types" type="java.util.List"/>
  12625. </method>
  12626. <method name="getStorageTypeHeader" return="java.lang.String"
  12627. abstract="false" native="false" synchronized="false"
  12628. static="true" final="false" visibility="public"
  12629. deprecated="not deprecated">
  12630. <param name="storageTypes" type="java.util.List"/>
  12631. <doc>
  12632. <![CDATA[return the header of with the StorageTypes.
  12633. @param storageTypes
  12634. @return storage header string]]>
  12635. </doc>
  12636. </method>
  12637. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  12638. transient="false" volatile="false"
  12639. static="true" final="true" visibility="protected"
  12640. deprecated="not deprecated">
  12641. <doc>
  12642. <![CDATA[Output format:
  12643. <----12----> <----15----> <----15----> <----15----> <-------18------->
  12644. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  12645. </doc>
  12646. </field>
  12647. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  12648. transient="false" volatile="false"
  12649. static="true" final="true" visibility="protected"
  12650. deprecated="not deprecated">
  12651. </field>
  12652. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  12653. transient="false" volatile="false"
  12654. static="true" final="true" visibility="protected"
  12655. deprecated="not deprecated">
  12656. </field>
  12657. <field name="QUOTA_HEADER" type="java.lang.String"
  12658. transient="false" volatile="false"
  12659. static="true" final="true" visibility="protected"
  12660. deprecated="not deprecated">
  12661. </field>
  12662. <doc>
  12663. <![CDATA[Store the quota usage of a directory.]]>
  12664. </doc>
  12665. </class>
  12666. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  12667. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  12668. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  12669. abstract="false"
  12670. static="false" final="false" visibility="public"
  12671. deprecated="not deprecated">
  12672. <constructor name="RawLocalFileSystem"
  12673. static="false" final="false" visibility="public"
  12674. deprecated="not deprecated">
  12675. </constructor>
  12676. <method name="useStatIfAvailable"
  12677. abstract="false" native="false" synchronized="false"
  12678. static="true" final="false" visibility="public"
  12679. deprecated="not deprecated">
  12680. </method>
  12681. <method name="pathToFile" return="java.io.File"
  12682. abstract="false" native="false" synchronized="false"
  12683. static="false" final="false" visibility="public"
  12684. deprecated="not deprecated">
  12685. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12686. <doc>
  12687. <![CDATA[Convert a path to a File.]]>
  12688. </doc>
  12689. </method>
  12690. <method name="getUri" return="java.net.URI"
  12691. abstract="false" native="false" synchronized="false"
  12692. static="false" final="false" visibility="public"
  12693. deprecated="not deprecated">
  12694. </method>
  12695. <method name="initialize"
  12696. abstract="false" native="false" synchronized="false"
  12697. static="false" final="false" visibility="public"
  12698. deprecated="not deprecated">
  12699. <param name="uri" type="java.net.URI"/>
  12700. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12701. <exception name="IOException" type="java.io.IOException"/>
  12702. </method>
  12703. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12704. abstract="false" native="false" synchronized="false"
  12705. static="false" final="false" visibility="public"
  12706. deprecated="not deprecated">
  12707. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12708. <param name="bufferSize" type="int"/>
  12709. <exception name="IOException" type="java.io.IOException"/>
  12710. </method>
  12711. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12712. abstract="false" native="false" synchronized="false"
  12713. static="false" final="false" visibility="public"
  12714. deprecated="not deprecated">
  12715. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12716. <param name="bufferSize" type="int"/>
  12717. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12718. <exception name="IOException" type="java.io.IOException"/>
  12719. </method>
  12720. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12721. abstract="false" native="false" synchronized="false"
  12722. static="false" final="false" visibility="public"
  12723. deprecated="not deprecated">
  12724. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12725. <param name="overwrite" type="boolean"/>
  12726. <param name="bufferSize" type="int"/>
  12727. <param name="replication" type="short"/>
  12728. <param name="blockSize" type="long"/>
  12729. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12730. <exception name="IOException" type="java.io.IOException"/>
  12731. </method>
  12732. <method name="createOutputStream" return="java.io.OutputStream"
  12733. abstract="false" native="false" synchronized="false"
  12734. static="false" final="false" visibility="protected"
  12735. deprecated="not deprecated">
  12736. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12737. <param name="append" type="boolean"/>
  12738. <exception name="IOException" type="java.io.IOException"/>
  12739. </method>
  12740. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  12741. abstract="false" native="false" synchronized="false"
  12742. static="false" final="false" visibility="protected"
  12743. deprecated="not deprecated">
  12744. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12745. <param name="append" type="boolean"/>
  12746. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12747. <exception name="IOException" type="java.io.IOException"/>
  12748. </method>
  12749. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="false" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12754. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12755. <param name="flags" type="java.util.EnumSet"/>
  12756. <param name="bufferSize" type="int"/>
  12757. <param name="replication" type="short"/>
  12758. <param name="blockSize" type="long"/>
  12759. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12760. <exception name="IOException" type="java.io.IOException"/>
  12761. </method>
  12762. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12763. abstract="false" native="false" synchronized="false"
  12764. static="false" final="false" visibility="public"
  12765. deprecated="not deprecated">
  12766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12767. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12768. <param name="overwrite" type="boolean"/>
  12769. <param name="bufferSize" type="int"/>
  12770. <param name="replication" type="short"/>
  12771. <param name="blockSize" type="long"/>
  12772. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12773. <exception name="IOException" type="java.io.IOException"/>
  12774. </method>
  12775. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12776. abstract="false" native="false" synchronized="false"
  12777. static="false" final="false" visibility="public"
  12778. deprecated="not deprecated">
  12779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12780. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12781. <param name="overwrite" type="boolean"/>
  12782. <param name="bufferSize" type="int"/>
  12783. <param name="replication" type="short"/>
  12784. <param name="blockSize" type="long"/>
  12785. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12786. <exception name="IOException" type="java.io.IOException"/>
  12787. </method>
  12788. <method name="rename" return="boolean"
  12789. abstract="false" native="false" synchronized="false"
  12790. static="false" final="false" visibility="public"
  12791. deprecated="not deprecated">
  12792. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12793. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12794. <exception name="IOException" type="java.io.IOException"/>
  12795. </method>
  12796. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  12797. abstract="false" native="false" synchronized="false"
  12798. static="false" final="true" visibility="public"
  12799. deprecated="not deprecated">
  12800. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12801. <param name="srcFile" type="java.io.File"/>
  12802. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12803. <param name="dstFile" type="java.io.File"/>
  12804. <exception name="IOException" type="java.io.IOException"/>
  12805. </method>
  12806. <method name="truncate" return="boolean"
  12807. abstract="false" native="false" synchronized="false"
  12808. static="false" final="false" visibility="public"
  12809. deprecated="not deprecated">
  12810. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12811. <param name="newLength" type="long"/>
  12812. <exception name="IOException" type="java.io.IOException"/>
  12813. </method>
  12814. <method name="delete" return="boolean"
  12815. abstract="false" native="false" synchronized="false"
  12816. static="false" final="false" visibility="public"
  12817. deprecated="not deprecated">
  12818. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12819. <param name="recursive" type="boolean"/>
  12820. <exception name="IOException" type="java.io.IOException"/>
  12821. <doc>
  12822. <![CDATA[Delete the given path to a file or directory.
  12823. @param p the path to delete
  12824. @param recursive to delete sub-directories
  12825. @return true if the file or directory and all its contents were deleted
  12826. @throws IOException if p is non-empty and recursive is false]]>
  12827. </doc>
  12828. </method>
  12829. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12830. abstract="false" native="false" synchronized="false"
  12831. static="false" final="false" visibility="public"
  12832. deprecated="not deprecated">
  12833. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12834. <exception name="IOException" type="java.io.IOException"/>
  12835. </method>
  12836. <method name="mkOneDir" return="boolean"
  12837. abstract="false" native="false" synchronized="false"
  12838. static="false" final="false" visibility="protected"
  12839. deprecated="not deprecated">
  12840. <param name="p2f" type="java.io.File"/>
  12841. <exception name="IOException" type="java.io.IOException"/>
  12842. </method>
  12843. <method name="mkOneDirWithMode" return="boolean"
  12844. abstract="false" native="false" synchronized="false"
  12845. static="false" final="false" visibility="protected"
  12846. deprecated="not deprecated">
  12847. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12848. <param name="p2f" type="java.io.File"/>
  12849. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12850. <exception name="IOException" type="java.io.IOException"/>
  12851. </method>
  12852. <method name="mkdirs" return="boolean"
  12853. abstract="false" native="false" synchronized="false"
  12854. static="false" final="false" visibility="public"
  12855. deprecated="not deprecated">
  12856. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12857. <exception name="IOException" type="java.io.IOException"/>
  12858. <doc>
  12859. <![CDATA[Creates the specified directory hierarchy. Does not
  12860. treat existence as an error.]]>
  12861. </doc>
  12862. </method>
  12863. <method name="mkdirs" return="boolean"
  12864. abstract="false" native="false" synchronized="false"
  12865. static="false" final="false" visibility="public"
  12866. deprecated="not deprecated">
  12867. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12868. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12869. <exception name="IOException" type="java.io.IOException"/>
  12870. </method>
  12871. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12872. abstract="false" native="false" synchronized="false"
  12873. static="false" final="false" visibility="public"
  12874. deprecated="not deprecated">
  12875. </method>
  12876. <method name="setWorkingDirectory"
  12877. abstract="false" native="false" synchronized="false"
  12878. static="false" final="false" visibility="public"
  12879. deprecated="not deprecated">
  12880. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  12881. <doc>
  12882. <![CDATA[Set the working directory to the given directory.]]>
  12883. </doc>
  12884. </method>
  12885. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12886. abstract="false" native="false" synchronized="false"
  12887. static="false" final="false" visibility="public"
  12888. deprecated="not deprecated">
  12889. </method>
  12890. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12891. abstract="false" native="false" synchronized="false"
  12892. static="false" final="false" visibility="protected"
  12893. deprecated="not deprecated">
  12894. </method>
  12895. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  12896. abstract="false" native="false" synchronized="false"
  12897. static="false" final="false" visibility="public"
  12898. deprecated="not deprecated">
  12899. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12900. <exception name="IOException" type="java.io.IOException"/>
  12901. </method>
  12902. <method name="moveFromLocalFile"
  12903. abstract="false" native="false" synchronized="false"
  12904. static="false" final="false" visibility="public"
  12905. deprecated="not deprecated">
  12906. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12907. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12908. <exception name="IOException" type="java.io.IOException"/>
  12909. </method>
  12910. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12911. abstract="false" native="false" synchronized="false"
  12912. static="false" final="false" visibility="public"
  12913. deprecated="not deprecated">
  12914. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12915. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12916. <exception name="IOException" type="java.io.IOException"/>
  12917. </method>
  12918. <method name="completeLocalOutput"
  12919. abstract="false" native="false" synchronized="false"
  12920. static="false" final="false" visibility="public"
  12921. deprecated="not deprecated">
  12922. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  12923. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12924. <exception name="IOException" type="java.io.IOException"/>
  12925. </method>
  12926. <method name="close"
  12927. abstract="false" native="false" synchronized="false"
  12928. static="false" final="false" visibility="public"
  12929. deprecated="not deprecated">
  12930. <exception name="IOException" type="java.io.IOException"/>
  12931. </method>
  12932. <method name="toString" return="java.lang.String"
  12933. abstract="false" native="false" synchronized="false"
  12934. static="false" final="false" visibility="public"
  12935. deprecated="not deprecated">
  12936. </method>
  12937. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12938. abstract="false" native="false" synchronized="false"
  12939. static="false" final="false" visibility="public"
  12940. deprecated="not deprecated">
  12941. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12942. <exception name="IOException" type="java.io.IOException"/>
  12943. </method>
  12944. <method name="setOwner"
  12945. abstract="false" native="false" synchronized="false"
  12946. static="false" final="false" visibility="public"
  12947. deprecated="not deprecated">
  12948. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12949. <param name="username" type="java.lang.String"/>
  12950. <param name="groupname" type="java.lang.String"/>
  12951. <exception name="IOException" type="java.io.IOException"/>
  12952. <doc>
  12953. <![CDATA[Use the command chown to set owner.]]>
  12954. </doc>
  12955. </method>
  12956. <method name="setPermission"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="false" final="false" visibility="public"
  12959. deprecated="not deprecated">
  12960. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12961. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12962. <exception name="IOException" type="java.io.IOException"/>
  12963. <doc>
  12964. <![CDATA[Use the command chmod to set permission.]]>
  12965. </doc>
  12966. </method>
  12967. <method name="setTimes"
  12968. abstract="false" native="false" synchronized="false"
  12969. static="false" final="false" visibility="public"
  12970. deprecated="not deprecated">
  12971. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12972. <param name="mtime" type="long"/>
  12973. <param name="atime" type="long"/>
  12974. <exception name="IOException" type="java.io.IOException"/>
  12975. <doc>
  12976. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  12977. the given valid times.
  12978. @param mtime the modification time to set (only if no less than zero).
  12979. @param atime the access time to set (only if no less than zero).
  12980. @throws IOException if setting the times fails.]]>
  12981. </doc>
  12982. </method>
  12983. <method name="supportsSymlinks" return="boolean"
  12984. abstract="false" native="false" synchronized="false"
  12985. static="false" final="false" visibility="public"
  12986. deprecated="not deprecated">
  12987. </method>
  12988. <method name="createSymlink"
  12989. abstract="false" native="false" synchronized="false"
  12990. static="false" final="false" visibility="public"
  12991. deprecated="not deprecated">
  12992. <param name="target" type="org.apache.hadoop.fs.Path"/>
  12993. <param name="link" type="org.apache.hadoop.fs.Path"/>
  12994. <param name="createParent" type="boolean"/>
  12995. <exception name="IOException" type="java.io.IOException"/>
  12996. </method>
  12997. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  12998. abstract="false" native="false" synchronized="false"
  12999. static="false" final="false" visibility="public"
  13000. deprecated="not deprecated">
  13001. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13002. <exception name="IOException" type="java.io.IOException"/>
  13003. <doc>
  13004. <![CDATA[Return a FileStatus representing the given path. If the path refers
  13005. to a symlink return a FileStatus representing the link rather than
  13006. the object the link refers to.]]>
  13007. </doc>
  13008. </method>
  13009. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13010. abstract="false" native="false" synchronized="false"
  13011. static="false" final="false" visibility="public"
  13012. deprecated="not deprecated">
  13013. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13014. <exception name="IOException" type="java.io.IOException"/>
  13015. </method>
  13016. <doc>
  13017. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  13018. </doc>
  13019. </class>
  13020. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  13021. <!-- start class org.apache.hadoop.fs.ReadOption -->
  13022. <class name="ReadOption" extends="java.lang.Enum"
  13023. abstract="false"
  13024. static="false" final="true" visibility="public"
  13025. deprecated="not deprecated">
  13026. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  13027. abstract="false" native="false" synchronized="false"
  13028. static="true" final="false" visibility="public"
  13029. deprecated="not deprecated">
  13030. </method>
  13031. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  13032. abstract="false" native="false" synchronized="false"
  13033. static="true" final="false" visibility="public"
  13034. deprecated="not deprecated">
  13035. <param name="name" type="java.lang.String"/>
  13036. </method>
  13037. <doc>
  13038. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  13039. </doc>
  13040. </class>
  13041. <!-- end class org.apache.hadoop.fs.ReadOption -->
  13042. <!-- start interface org.apache.hadoop.fs.Seekable -->
  13043. <interface name="Seekable" abstract="true"
  13044. static="false" final="false" visibility="public"
  13045. deprecated="not deprecated">
  13046. <method name="seek"
  13047. abstract="false" native="false" synchronized="false"
  13048. static="false" final="false" visibility="public"
  13049. deprecated="not deprecated">
  13050. <param name="pos" type="long"/>
  13051. <exception name="IOException" type="java.io.IOException"/>
  13052. <doc>
  13053. <![CDATA[Seek to the given offset from the start of the file.
  13054. The next read() will be from that location. Can't
  13055. seek past the end of the file.]]>
  13056. </doc>
  13057. </method>
  13058. <method name="getPos" return="long"
  13059. abstract="false" native="false" synchronized="false"
  13060. static="false" final="false" visibility="public"
  13061. deprecated="not deprecated">
  13062. <exception name="IOException" type="java.io.IOException"/>
  13063. <doc>
  13064. <![CDATA[Return the current offset from the start of the file]]>
  13065. </doc>
  13066. </method>
  13067. <doc>
  13068. <![CDATA[Stream that permits seeking.]]>
  13069. </doc>
  13070. </interface>
  13071. <!-- end interface org.apache.hadoop.fs.Seekable -->
  13072. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  13073. <class name="StorageStatistics" extends="java.lang.Object"
  13074. abstract="true"
  13075. static="false" final="false" visibility="public"
  13076. deprecated="not deprecated">
  13077. <constructor name="StorageStatistics" type="java.lang.String"
  13078. static="false" final="false" visibility="public"
  13079. deprecated="not deprecated">
  13080. </constructor>
  13081. <method name="getName" return="java.lang.String"
  13082. abstract="false" native="false" synchronized="false"
  13083. static="false" final="false" visibility="public"
  13084. deprecated="not deprecated">
  13085. <doc>
  13086. <![CDATA[Get the name of this StorageStatistics object.]]>
  13087. </doc>
  13088. </method>
  13089. <method name="getScheme" return="java.lang.String"
  13090. abstract="false" native="false" synchronized="false"
  13091. static="false" final="false" visibility="public"
  13092. deprecated="not deprecated">
  13093. <doc>
  13094. <![CDATA[@return the associated file system scheme if this is scheme specific,
  13095. else return null.]]>
  13096. </doc>
  13097. </method>
  13098. <method name="getLongStatistics" return="java.util.Iterator"
  13099. abstract="true" native="false" synchronized="false"
  13100. static="false" final="false" visibility="public"
  13101. deprecated="not deprecated">
  13102. <doc>
  13103. <![CDATA[Get an iterator over all the currently tracked long statistics.
  13104. The values returned will depend on the type of FileSystem or FileContext
  13105. object. The values do not necessarily reflect a snapshot in time.]]>
  13106. </doc>
  13107. </method>
  13108. <method name="getLong" return="java.lang.Long"
  13109. abstract="true" native="false" synchronized="false"
  13110. static="false" final="false" visibility="public"
  13111. deprecated="not deprecated">
  13112. <param name="key" type="java.lang.String"/>
  13113. <doc>
  13114. <![CDATA[Get the value of a statistic.
  13115. @return null if the statistic is not being tracked or is not a
  13116. long statistic. The value of the statistic, otherwise.]]>
  13117. </doc>
  13118. </method>
  13119. <method name="isTracked" return="boolean"
  13120. abstract="true" native="false" synchronized="false"
  13121. static="false" final="false" visibility="public"
  13122. deprecated="not deprecated">
  13123. <param name="key" type="java.lang.String"/>
  13124. <doc>
  13125. <![CDATA[Return true if a statistic is being tracked.
  13126. @return True only if the statistic is being tracked.]]>
  13127. </doc>
  13128. </method>
  13129. <method name="reset"
  13130. abstract="true" native="false" synchronized="false"
  13131. static="false" final="false" visibility="public"
  13132. deprecated="not deprecated">
  13133. <doc>
  13134. <![CDATA[Reset all the statistic data.]]>
  13135. </doc>
  13136. </method>
  13137. <doc>
  13138. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  13139. instance.]]>
  13140. </doc>
  13141. </class>
  13142. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  13143. <!-- start class org.apache.hadoop.fs.StorageType -->
  13144. <class name="StorageType" extends="java.lang.Enum"
  13145. abstract="false"
  13146. static="false" final="true" visibility="public"
  13147. deprecated="not deprecated">
  13148. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  13149. abstract="false" native="false" synchronized="false"
  13150. static="true" final="false" visibility="public"
  13151. deprecated="not deprecated">
  13152. </method>
  13153. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  13154. abstract="false" native="false" synchronized="false"
  13155. static="true" final="false" visibility="public"
  13156. deprecated="not deprecated">
  13157. <param name="name" type="java.lang.String"/>
  13158. </method>
  13159. <method name="isTransient" return="boolean"
  13160. abstract="false" native="false" synchronized="false"
  13161. static="false" final="false" visibility="public"
  13162. deprecated="not deprecated">
  13163. </method>
  13164. <method name="supportTypeQuota" return="boolean"
  13165. abstract="false" native="false" synchronized="false"
  13166. static="false" final="false" visibility="public"
  13167. deprecated="not deprecated">
  13168. </method>
  13169. <method name="isMovable" return="boolean"
  13170. abstract="false" native="false" synchronized="false"
  13171. static="false" final="false" visibility="public"
  13172. deprecated="not deprecated">
  13173. </method>
  13174. <method name="asList" return="java.util.List"
  13175. abstract="false" native="false" synchronized="false"
  13176. static="true" final="false" visibility="public"
  13177. deprecated="not deprecated">
  13178. </method>
  13179. <method name="getMovableTypes" return="java.util.List"
  13180. abstract="false" native="false" synchronized="false"
  13181. static="true" final="false" visibility="public"
  13182. deprecated="not deprecated">
  13183. </method>
  13184. <method name="getTypesSupportingQuota" return="java.util.List"
  13185. abstract="false" native="false" synchronized="false"
  13186. static="true" final="false" visibility="public"
  13187. deprecated="not deprecated">
  13188. </method>
  13189. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  13190. abstract="false" native="false" synchronized="false"
  13191. static="true" final="false" visibility="public"
  13192. deprecated="not deprecated">
  13193. <param name="i" type="int"/>
  13194. </method>
  13195. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  13196. abstract="false" native="false" synchronized="false"
  13197. static="true" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. <param name="s" type="java.lang.String"/>
  13200. </method>
  13201. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  13202. transient="false" volatile="false"
  13203. static="true" final="true" visibility="public"
  13204. deprecated="not deprecated">
  13205. </field>
  13206. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  13207. transient="false" volatile="false"
  13208. static="true" final="true" visibility="public"
  13209. deprecated="not deprecated">
  13210. </field>
  13211. <doc>
  13212. <![CDATA[Defines the types of supported storage media. The default storage
  13213. medium is assumed to be DISK.]]>
  13214. </doc>
  13215. </class>
  13216. <!-- end class org.apache.hadoop.fs.StorageType -->
  13217. <!-- start interface org.apache.hadoop.fs.Syncable -->
  13218. <interface name="Syncable" abstract="true"
  13219. static="false" final="false" visibility="public"
  13220. deprecated="not deprecated">
  13221. <method name="sync"
  13222. abstract="false" native="false" synchronized="false"
  13223. static="false" final="false" visibility="public"
  13224. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  13225. <exception name="IOException" type="java.io.IOException"/>
  13226. <doc>
  13227. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  13228. @see #hflush()]]>
  13229. </doc>
  13230. </method>
  13231. <method name="hflush"
  13232. abstract="false" native="false" synchronized="false"
  13233. static="false" final="false" visibility="public"
  13234. deprecated="not deprecated">
  13235. <exception name="IOException" type="java.io.IOException"/>
  13236. <doc>
  13237. <![CDATA[Flush out the data in client's user buffer. After the return of
  13238. this call, new readers will see the data.
  13239. @throws IOException if any error occurs]]>
  13240. </doc>
  13241. </method>
  13242. <method name="hsync"
  13243. abstract="false" native="false" synchronized="false"
  13244. static="false" final="false" visibility="public"
  13245. deprecated="not deprecated">
  13246. <exception name="IOException" type="java.io.IOException"/>
  13247. <doc>
  13248. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  13249. all the way to the disk device (but the disk may have it in its cache).
  13250. @throws IOException if error occurs]]>
  13251. </doc>
  13252. </method>
  13253. <doc>
  13254. <![CDATA[This interface for flush/sync operation.]]>
  13255. </doc>
  13256. </interface>
  13257. <!-- end interface org.apache.hadoop.fs.Syncable -->
  13258. <!-- start class org.apache.hadoop.fs.Trash -->
  13259. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  13260. abstract="false"
  13261. static="false" final="false" visibility="public"
  13262. deprecated="not deprecated">
  13263. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  13264. static="false" final="false" visibility="public"
  13265. deprecated="not deprecated">
  13266. <exception name="IOException" type="java.io.IOException"/>
  13267. <doc>
  13268. <![CDATA[Construct a trash can accessor.
  13269. @param conf a Configuration]]>
  13270. </doc>
  13271. </constructor>
  13272. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. <exception name="IOException" type="java.io.IOException"/>
  13276. <doc>
  13277. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  13278. @param fs the FileSystem
  13279. @param conf a Configuration]]>
  13280. </doc>
  13281. </constructor>
  13282. <method name="moveToAppropriateTrash" return="boolean"
  13283. abstract="false" native="false" synchronized="false"
  13284. static="true" final="false" visibility="public"
  13285. deprecated="not deprecated">
  13286. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13287. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13288. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13289. <exception name="IOException" type="java.io.IOException"/>
  13290. <doc>
  13291. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  13292. trashbin in the actual volume of the path p being deleted.
  13293. Hence we get the file system of the fully-qualified resolved-path and
  13294. then move the path p to the trashbin in that volume,
  13295. @param fs - the filesystem of path p
  13296. @param p - the path being deleted - to be moved to trasg
  13297. @param conf - configuration
  13298. @return false if the item is already in the trash or trash is disabled
  13299. @throws IOException on error]]>
  13300. </doc>
  13301. </method>
  13302. <method name="isEnabled" return="boolean"
  13303. abstract="false" native="false" synchronized="false"
  13304. static="false" final="false" visibility="public"
  13305. deprecated="not deprecated">
  13306. <doc>
  13307. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  13308. </doc>
  13309. </method>
  13310. <method name="moveToTrash" return="boolean"
  13311. abstract="false" native="false" synchronized="false"
  13312. static="false" final="false" visibility="public"
  13313. deprecated="not deprecated">
  13314. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13315. <exception name="IOException" type="java.io.IOException"/>
  13316. <doc>
  13317. <![CDATA[Move a file or directory to the current trash directory.
  13318. @return false if the item is already in the trash or trash is disabled]]>
  13319. </doc>
  13320. </method>
  13321. <method name="checkpoint"
  13322. abstract="false" native="false" synchronized="false"
  13323. static="false" final="false" visibility="public"
  13324. deprecated="not deprecated">
  13325. <exception name="IOException" type="java.io.IOException"/>
  13326. <doc>
  13327. <![CDATA[Create a trash checkpoint.]]>
  13328. </doc>
  13329. </method>
  13330. <method name="expunge"
  13331. abstract="false" native="false" synchronized="false"
  13332. static="false" final="false" visibility="public"
  13333. deprecated="not deprecated">
  13334. <exception name="IOException" type="java.io.IOException"/>
  13335. <doc>
  13336. <![CDATA[Delete old checkpoint(s).]]>
  13337. </doc>
  13338. </method>
  13339. <method name="getEmptier" return="java.lang.Runnable"
  13340. abstract="false" native="false" synchronized="false"
  13341. static="false" final="false" visibility="public"
  13342. deprecated="not deprecated">
  13343. <exception name="IOException" type="java.io.IOException"/>
  13344. <doc>
  13345. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  13346. users, intended to be run by the superuser.]]>
  13347. </doc>
  13348. </method>
  13349. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  13350. abstract="false" native="false" synchronized="false"
  13351. static="false" final="false" visibility="public"
  13352. deprecated="not deprecated">
  13353. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13354. <exception name="IOException" type="java.io.IOException"/>
  13355. </method>
  13356. <doc>
  13357. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  13358. See the implementation of the configured TrashPolicy for more
  13359. details.]]>
  13360. </doc>
  13361. </class>
  13362. <!-- end class org.apache.hadoop.fs.Trash -->
  13363. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  13364. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  13365. abstract="true"
  13366. static="false" final="false" visibility="public"
  13367. deprecated="not deprecated">
  13368. <constructor name="TrashPolicy"
  13369. static="false" final="false" visibility="public"
  13370. deprecated="not deprecated">
  13371. </constructor>
  13372. <method name="initialize"
  13373. abstract="true" native="false" synchronized="false"
  13374. static="false" final="false" visibility="public"
  13375. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  13376. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13377. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13378. <param name="home" type="org.apache.hadoop.fs.Path"/>
  13379. <doc>
  13380. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  13381. implementations.
  13382. @param conf the configuration to be used
  13383. @param fs the filesystem to be used
  13384. @param home the home directory
  13385. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  13386. </doc>
  13387. </method>
  13388. <method name="initialize"
  13389. abstract="false" native="false" synchronized="false"
  13390. static="false" final="false" visibility="public"
  13391. deprecated="not deprecated">
  13392. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13393. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13394. <doc>
  13395. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  13396. implementations. Different from initialize(conf, fs, home), this one does
  13397. not assume trash always under /user/$USER due to HDFS encryption zone.
  13398. @param conf the configuration to be used
  13399. @param fs the filesystem to be used]]>
  13400. </doc>
  13401. </method>
  13402. <method name="isEnabled" return="boolean"
  13403. abstract="true" native="false" synchronized="false"
  13404. static="false" final="false" visibility="public"
  13405. deprecated="not deprecated">
  13406. <doc>
  13407. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  13408. </doc>
  13409. </method>
  13410. <method name="moveToTrash" return="boolean"
  13411. abstract="true" native="false" synchronized="false"
  13412. static="false" final="false" visibility="public"
  13413. deprecated="not deprecated">
  13414. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13415. <exception name="IOException" type="java.io.IOException"/>
  13416. <doc>
  13417. <![CDATA[Move a file or directory to the current trash directory.
  13418. @return false if the item is already in the trash or trash is disabled]]>
  13419. </doc>
  13420. </method>
  13421. <method name="createCheckpoint"
  13422. abstract="true" native="false" synchronized="false"
  13423. static="false" final="false" visibility="public"
  13424. deprecated="not deprecated">
  13425. <exception name="IOException" type="java.io.IOException"/>
  13426. <doc>
  13427. <![CDATA[Create a trash checkpoint.]]>
  13428. </doc>
  13429. </method>
  13430. <method name="deleteCheckpoint"
  13431. abstract="true" native="false" synchronized="false"
  13432. static="false" final="false" visibility="public"
  13433. deprecated="not deprecated">
  13434. <exception name="IOException" type="java.io.IOException"/>
  13435. <doc>
  13436. <![CDATA[Delete old trash checkpoint(s).]]>
  13437. </doc>
  13438. </method>
  13439. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  13440. abstract="true" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <doc>
  13444. <![CDATA[Get the current working directory of the Trash Policy
  13445. This API does not work with files deleted from encryption zone when HDFS
  13446. data encryption at rest feature is enabled as rename file between
  13447. encryption zones or encryption zone and non-encryption zone is not allowed.
  13448. The caller is recommend to use the new API
  13449. TrashPolicy#getCurrentTrashDir(Path path).
  13450. It returns the trash location correctly for the path specified no matter
  13451. the path is in encryption zone or not.]]>
  13452. </doc>
  13453. </method>
  13454. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  13455. abstract="false" native="false" synchronized="false"
  13456. static="false" final="false" visibility="public"
  13457. deprecated="not deprecated">
  13458. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13459. <exception name="IOException" type="java.io.IOException"/>
  13460. <doc>
  13461. <![CDATA[Get the current trash directory for path specified based on the Trash
  13462. Policy
  13463. @param path path to be deleted
  13464. @return current trash directory for the path to be deleted
  13465. @throws IOException]]>
  13466. </doc>
  13467. </method>
  13468. <method name="getEmptier" return="java.lang.Runnable"
  13469. abstract="true" native="false" synchronized="false"
  13470. static="false" final="false" visibility="public"
  13471. deprecated="not deprecated">
  13472. <exception name="IOException" type="java.io.IOException"/>
  13473. <doc>
  13474. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  13475. users, intended to be run by the superuser.]]>
  13476. </doc>
  13477. </method>
  13478. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  13479. abstract="false" native="false" synchronized="false"
  13480. static="true" final="false" visibility="public"
  13481. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  13482. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13483. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13484. <param name="home" type="org.apache.hadoop.fs.Path"/>
  13485. <doc>
  13486. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  13487. of the configuration parameter fs.trash.classname.
  13488. @param conf the configuration to be used
  13489. @param fs the file system to be used
  13490. @param home the home directory
  13491. @return an instance of TrashPolicy
  13492. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  13493. </doc>
  13494. </method>
  13495. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  13496. abstract="false" native="false" synchronized="false"
  13497. static="true" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13500. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13501. <doc>
  13502. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  13503. of the configuration parameter fs.trash.classname.
  13504. @param conf the configuration to be used
  13505. @param fs the file system to be used
  13506. @return an instance of TrashPolicy]]>
  13507. </doc>
  13508. </method>
  13509. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  13510. transient="false" volatile="false"
  13511. static="false" final="false" visibility="protected"
  13512. deprecated="not deprecated">
  13513. </field>
  13514. <field name="trash" type="org.apache.hadoop.fs.Path"
  13515. transient="false" volatile="false"
  13516. static="false" final="false" visibility="protected"
  13517. deprecated="not deprecated">
  13518. </field>
  13519. <field name="deletionInterval" type="long"
  13520. transient="false" volatile="false"
  13521. static="false" final="false" visibility="protected"
  13522. deprecated="not deprecated">
  13523. </field>
  13524. <doc>
  13525. <![CDATA[This interface is used for implementing different Trash policies.
  13526. Provides factory method to create instances of the configured Trash policy.]]>
  13527. </doc>
  13528. </class>
  13529. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  13530. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  13531. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  13532. abstract="false"
  13533. static="false" final="false" visibility="public"
  13534. deprecated="not deprecated">
  13535. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  13536. static="false" final="false" visibility="public"
  13537. deprecated="not deprecated">
  13538. <doc>
  13539. <![CDATA[Constructs exception with the specified detail message.
  13540. @param message exception message.]]>
  13541. </doc>
  13542. </constructor>
  13543. <doc>
  13544. <![CDATA[File system for a given file system name/scheme is not supported]]>
  13545. </doc>
  13546. </class>
  13547. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  13548. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  13549. <class name="XAttrCodec" extends="java.lang.Enum"
  13550. abstract="false"
  13551. static="false" final="true" visibility="public"
  13552. deprecated="not deprecated">
  13553. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  13554. abstract="false" native="false" synchronized="false"
  13555. static="true" final="false" visibility="public"
  13556. deprecated="not deprecated">
  13557. </method>
  13558. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  13559. abstract="false" native="false" synchronized="false"
  13560. static="true" final="false" visibility="public"
  13561. deprecated="not deprecated">
  13562. <param name="name" type="java.lang.String"/>
  13563. </method>
  13564. <method name="decodeValue" return="byte[]"
  13565. abstract="false" native="false" synchronized="false"
  13566. static="true" final="false" visibility="public"
  13567. deprecated="not deprecated">
  13568. <param name="value" type="java.lang.String"/>
  13569. <exception name="IOException" type="java.io.IOException"/>
  13570. <doc>
  13571. <![CDATA[Decode string representation of a value and check whether it's
  13572. encoded. If the given string begins with 0x or 0X, it expresses
  13573. a hexadecimal number. If the given string begins with 0s or 0S,
  13574. base64 encoding is expected. If the given string is enclosed in
  13575. double quotes, the inner string is treated as text. Otherwise
  13576. the given string is treated as text.
  13577. @param value string representation of the value.
  13578. @return byte[] the value
  13579. @throws IOException]]>
  13580. </doc>
  13581. </method>
  13582. <method name="encodeValue" return="java.lang.String"
  13583. abstract="false" native="false" synchronized="false"
  13584. static="true" final="false" visibility="public"
  13585. deprecated="not deprecated">
  13586. <param name="value" type="byte[]"/>
  13587. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  13588. <exception name="IOException" type="java.io.IOException"/>
  13589. <doc>
  13590. <![CDATA[Encode byte[] value to string representation with encoding.
  13591. Values encoded as text strings are enclosed in double quotes (\"),
  13592. while strings encoded as hexadecimal and base64 are prefixed with
  13593. 0x and 0s, respectively.
  13594. @param value byte[] value
  13595. @param encoding
  13596. @return String string representation of value
  13597. @throws IOException]]>
  13598. </doc>
  13599. </method>
  13600. <doc>
  13601. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  13602. covert byte[] to some kind of string representation or convert back.
  13603. String representation is convenient for display and input. For example
  13604. display in screen as shell response and json response, input as http
  13605. or shell parameter.]]>
  13606. </doc>
  13607. </class>
  13608. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  13609. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  13610. <class name="XAttrSetFlag" extends="java.lang.Enum"
  13611. abstract="false"
  13612. static="false" final="true" visibility="public"
  13613. deprecated="not deprecated">
  13614. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  13615. abstract="false" native="false" synchronized="false"
  13616. static="true" final="false" visibility="public"
  13617. deprecated="not deprecated">
  13618. </method>
  13619. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="true" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. <param name="name" type="java.lang.String"/>
  13624. </method>
  13625. <method name="validate"
  13626. abstract="false" native="false" synchronized="false"
  13627. static="true" final="false" visibility="public"
  13628. deprecated="not deprecated">
  13629. <param name="xAttrName" type="java.lang.String"/>
  13630. <param name="xAttrExists" type="boolean"/>
  13631. <param name="flag" type="java.util.EnumSet"/>
  13632. <exception name="IOException" type="java.io.IOException"/>
  13633. </method>
  13634. </class>
  13635. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  13636. <doc>
  13637. <![CDATA[An abstract file system API.]]>
  13638. </doc>
  13639. </package>
  13640. <package name="org.apache.hadoop.fs.crypto">
  13641. </package>
  13642. <package name="org.apache.hadoop.fs.ftp">
  13643. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  13644. <class name="FTPException" extends="java.lang.RuntimeException"
  13645. abstract="false"
  13646. static="false" final="false" visibility="public"
  13647. deprecated="not deprecated">
  13648. <constructor name="FTPException" type="java.lang.String"
  13649. static="false" final="false" visibility="public"
  13650. deprecated="not deprecated">
  13651. </constructor>
  13652. <constructor name="FTPException" type="java.lang.Throwable"
  13653. static="false" final="false" visibility="public"
  13654. deprecated="not deprecated">
  13655. </constructor>
  13656. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  13657. static="false" final="false" visibility="public"
  13658. deprecated="not deprecated">
  13659. </constructor>
  13660. <doc>
  13661. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  13662. </doc>
  13663. </class>
  13664. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  13665. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  13666. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13667. abstract="false"
  13668. static="false" final="false" visibility="public"
  13669. deprecated="not deprecated">
  13670. <constructor name="FTPFileSystem"
  13671. static="false" final="false" visibility="public"
  13672. deprecated="not deprecated">
  13673. </constructor>
  13674. <method name="getScheme" return="java.lang.String"
  13675. abstract="false" native="false" synchronized="false"
  13676. static="false" final="false" visibility="public"
  13677. deprecated="not deprecated">
  13678. <doc>
  13679. <![CDATA[Return the protocol scheme for the FileSystem.
  13680. <p/>
  13681. @return <code>ftp</code>]]>
  13682. </doc>
  13683. </method>
  13684. <method name="getDefaultPort" return="int"
  13685. abstract="false" native="false" synchronized="false"
  13686. static="false" final="false" visibility="protected"
  13687. deprecated="not deprecated">
  13688. <doc>
  13689. <![CDATA[Get the default port for this FTPFileSystem.
  13690. @return the default port]]>
  13691. </doc>
  13692. </method>
  13693. <method name="initialize"
  13694. abstract="false" native="false" synchronized="false"
  13695. static="false" final="false" visibility="public"
  13696. deprecated="not deprecated">
  13697. <param name="uri" type="java.net.URI"/>
  13698. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13699. <exception name="IOException" type="java.io.IOException"/>
  13700. </method>
  13701. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13702. abstract="false" native="false" synchronized="false"
  13703. static="false" final="false" visibility="public"
  13704. deprecated="not deprecated">
  13705. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13706. <param name="bufferSize" type="int"/>
  13707. <exception name="IOException" type="java.io.IOException"/>
  13708. </method>
  13709. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13710. abstract="false" native="false" synchronized="false"
  13711. static="false" final="false" visibility="public"
  13712. deprecated="not deprecated">
  13713. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13714. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13715. <param name="overwrite" type="boolean"/>
  13716. <param name="bufferSize" type="int"/>
  13717. <param name="replication" type="short"/>
  13718. <param name="blockSize" type="long"/>
  13719. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13720. <exception name="IOException" type="java.io.IOException"/>
  13721. <doc>
  13722. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  13723. this class or else the invocation will block.]]>
  13724. </doc>
  13725. </method>
  13726. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13727. abstract="false" native="false" synchronized="false"
  13728. static="false" final="false" visibility="public"
  13729. deprecated="not deprecated">
  13730. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13731. <param name="bufferSize" type="int"/>
  13732. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13733. <exception name="IOException" type="java.io.IOException"/>
  13734. <doc>
  13735. <![CDATA[This optional operation is not yet supported.]]>
  13736. </doc>
  13737. </method>
  13738. <method name="delete" return="boolean"
  13739. abstract="false" native="false" synchronized="false"
  13740. static="false" final="false" visibility="public"
  13741. deprecated="not deprecated">
  13742. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13743. <param name="recursive" type="boolean"/>
  13744. <exception name="IOException" type="java.io.IOException"/>
  13745. </method>
  13746. <method name="getUri" return="java.net.URI"
  13747. abstract="false" native="false" synchronized="false"
  13748. static="false" final="false" visibility="public"
  13749. deprecated="not deprecated">
  13750. </method>
  13751. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13752. abstract="false" native="false" synchronized="false"
  13753. static="false" final="false" visibility="public"
  13754. deprecated="not deprecated">
  13755. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13756. <exception name="IOException" type="java.io.IOException"/>
  13757. </method>
  13758. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13759. abstract="false" native="false" synchronized="false"
  13760. static="false" final="false" visibility="public"
  13761. deprecated="not deprecated">
  13762. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13763. <exception name="IOException" type="java.io.IOException"/>
  13764. </method>
  13765. <method name="mkdirs" return="boolean"
  13766. abstract="false" native="false" synchronized="false"
  13767. static="false" final="false" visibility="public"
  13768. deprecated="not deprecated">
  13769. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13770. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13771. <exception name="IOException" type="java.io.IOException"/>
  13772. </method>
  13773. <method name="rename" return="boolean"
  13774. abstract="false" native="false" synchronized="false"
  13775. static="false" final="false" visibility="public"
  13776. deprecated="not deprecated">
  13777. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13778. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13779. <exception name="IOException" type="java.io.IOException"/>
  13780. </method>
  13781. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13782. abstract="false" native="false" synchronized="false"
  13783. static="false" final="false" visibility="public"
  13784. deprecated="not deprecated">
  13785. </method>
  13786. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13787. abstract="false" native="false" synchronized="false"
  13788. static="false" final="false" visibility="public"
  13789. deprecated="not deprecated">
  13790. </method>
  13791. <method name="setWorkingDirectory"
  13792. abstract="false" native="false" synchronized="false"
  13793. static="false" final="false" visibility="public"
  13794. deprecated="not deprecated">
  13795. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13796. </method>
  13797. <field name="LOG" type="org.apache.commons.logging.Log"
  13798. transient="false" volatile="false"
  13799. static="true" final="true" visibility="public"
  13800. deprecated="not deprecated">
  13801. </field>
  13802. <field name="DEFAULT_BUFFER_SIZE" type="int"
  13803. transient="false" volatile="false"
  13804. static="true" final="true" visibility="public"
  13805. deprecated="not deprecated">
  13806. </field>
  13807. <field name="DEFAULT_BLOCK_SIZE" type="int"
  13808. transient="false" volatile="false"
  13809. static="true" final="true" visibility="public"
  13810. deprecated="not deprecated">
  13811. </field>
  13812. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  13813. transient="false" volatile="false"
  13814. static="true" final="true" visibility="public"
  13815. deprecated="not deprecated">
  13816. </field>
  13817. <field name="FS_FTP_HOST" type="java.lang.String"
  13818. transient="false" volatile="false"
  13819. static="true" final="true" visibility="public"
  13820. deprecated="not deprecated">
  13821. </field>
  13822. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  13823. transient="false" volatile="false"
  13824. static="true" final="true" visibility="public"
  13825. deprecated="not deprecated">
  13826. </field>
  13827. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  13828. transient="false" volatile="false"
  13829. static="true" final="true" visibility="public"
  13830. deprecated="not deprecated">
  13831. </field>
  13832. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  13833. transient="false" volatile="false"
  13834. static="true" final="true" visibility="public"
  13835. deprecated="not deprecated">
  13836. </field>
  13837. <doc>
  13838. <![CDATA[<p>
  13839. A {@link FileSystem} backed by an FTP client provided by <a
  13840. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  13841. </p>]]>
  13842. </doc>
  13843. </class>
  13844. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  13845. </package>
  13846. <package name="org.apache.hadoop.fs.permission">
  13847. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  13848. <class name="AccessControlException" extends="java.io.IOException"
  13849. abstract="false"
  13850. static="false" final="false" visibility="public"
  13851. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  13852. instead.">
  13853. <constructor name="AccessControlException"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <doc>
  13857. <![CDATA[Default constructor is needed for unwrapping from
  13858. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  13859. </doc>
  13860. </constructor>
  13861. <constructor name="AccessControlException" type="java.lang.String"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <doc>
  13865. <![CDATA[Constructs an {@link AccessControlException}
  13866. with the specified detail message.
  13867. @param s the detail message.]]>
  13868. </doc>
  13869. </constructor>
  13870. <constructor name="AccessControlException" type="java.lang.Throwable"
  13871. static="false" final="false" visibility="public"
  13872. deprecated="not deprecated">
  13873. <doc>
  13874. <![CDATA[Constructs a new exception with the specified cause and a detail
  13875. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  13876. typically contains the class and detail message of <tt>cause</tt>).
  13877. @param cause the cause (which is saved for later retrieval by the
  13878. {@link #getCause()} method). (A <tt>null</tt> value is
  13879. permitted, and indicates that the cause is nonexistent or
  13880. unknown.)]]>
  13881. </doc>
  13882. </constructor>
  13883. <doc>
  13884. <![CDATA[An exception class for access control related issues.
  13885. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  13886. instead.]]>
  13887. </doc>
  13888. </class>
  13889. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  13890. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  13891. <class name="AclEntry" extends="java.lang.Object"
  13892. abstract="false"
  13893. static="false" final="false" visibility="public"
  13894. deprecated="not deprecated">
  13895. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  13896. abstract="false" native="false" synchronized="false"
  13897. static="false" final="false" visibility="public"
  13898. deprecated="not deprecated">
  13899. <doc>
  13900. <![CDATA[Returns the ACL entry type.
  13901. @return AclEntryType ACL entry type]]>
  13902. </doc>
  13903. </method>
  13904. <method name="getName" return="java.lang.String"
  13905. abstract="false" native="false" synchronized="false"
  13906. static="false" final="false" visibility="public"
  13907. deprecated="not deprecated">
  13908. <doc>
  13909. <![CDATA[Returns the optional ACL entry name.
  13910. @return String ACL entry name, or null if undefined]]>
  13911. </doc>
  13912. </method>
  13913. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  13914. abstract="false" native="false" synchronized="false"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. <doc>
  13918. <![CDATA[Returns the set of permissions in the ACL entry.
  13919. @return FsAction set of permissions in the ACL entry]]>
  13920. </doc>
  13921. </method>
  13922. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  13923. abstract="false" native="false" synchronized="false"
  13924. static="false" final="false" visibility="public"
  13925. deprecated="not deprecated">
  13926. <doc>
  13927. <![CDATA[Returns the scope of the ACL entry.
  13928. @return AclEntryScope scope of the ACL entry]]>
  13929. </doc>
  13930. </method>
  13931. <method name="equals" return="boolean"
  13932. abstract="false" native="false" synchronized="false"
  13933. static="false" final="false" visibility="public"
  13934. deprecated="not deprecated">
  13935. <param name="o" type="java.lang.Object"/>
  13936. </method>
  13937. <method name="hashCode" return="int"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. </method>
  13942. <method name="toString" return="java.lang.String"
  13943. abstract="false" native="false" synchronized="false"
  13944. static="false" final="false" visibility="public"
  13945. deprecated="not deprecated">
  13946. </method>
  13947. <method name="toStringStable" return="java.lang.String"
  13948. abstract="false" native="false" synchronized="false"
  13949. static="false" final="false" visibility="public"
  13950. deprecated="not deprecated">
  13951. <doc>
  13952. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  13953. satisfy backward compatibility requirements, such as for shell command
  13954. output or serialization. The format of this string representation matches
  13955. what is expected by the {@link #parseAclSpec(String, boolean)} and
  13956. {@link #parseAclEntry(String, boolean)} methods.
  13957. @return stable, backward compatible string representation]]>
  13958. </doc>
  13959. </method>
  13960. <method name="parseAclSpec" return="java.util.List"
  13961. abstract="false" native="false" synchronized="false"
  13962. static="true" final="false" visibility="public"
  13963. deprecated="not deprecated">
  13964. <param name="aclSpec" type="java.lang.String"/>
  13965. <param name="includePermission" type="boolean"/>
  13966. <doc>
  13967. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  13968. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  13969. The expected format of ACL entries in the string parameter is the same
  13970. format produced by the {@link #toStringStable()} method.
  13971. @param aclSpec
  13972. String representation of an ACL spec.
  13973. @param includePermission
  13974. for setAcl operations this will be true. i.e. AclSpec should
  13975. include permissions.<br>
  13976. But for removeAcl operation it will be false. i.e. AclSpec should
  13977. not contain permissions.<br>
  13978. Example: "user:foo,group:bar"
  13979. @return Returns list of {@link AclEntry} parsed]]>
  13980. </doc>
  13981. </method>
  13982. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  13983. abstract="false" native="false" synchronized="false"
  13984. static="true" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. <param name="aclStr" type="java.lang.String"/>
  13987. <param name="includePermission" type="boolean"/>
  13988. <doc>
  13989. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  13990. The expected format of ACL entries in the string parameter is the same
  13991. format produced by the {@link #toStringStable()} method.
  13992. @param aclStr
  13993. String representation of an ACL.<br>
  13994. Example: "user:foo:rw-"
  13995. @param includePermission
  13996. for setAcl operations this will be true. i.e. Acl should include
  13997. permissions.<br>
  13998. But for removeAcl operation it will be false. i.e. Acl should not
  13999. contain permissions.<br>
  14000. Example: "user:foo,group:bar,mask::"
  14001. @return Returns an {@link AclEntry} object]]>
  14002. </doc>
  14003. </method>
  14004. <method name="aclSpecToString" return="java.lang.String"
  14005. abstract="false" native="false" synchronized="false"
  14006. static="true" final="false" visibility="public"
  14007. deprecated="not deprecated">
  14008. <param name="aclSpec" type="java.util.List"/>
  14009. <doc>
  14010. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  14011. @param aclSpec List of AclEntries to convert
  14012. @return String representation of aclSpec]]>
  14013. </doc>
  14014. </method>
  14015. <doc>
  14016. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  14017. mask, or other), an optional name (referring to a specific user or group), a
  14018. set of permissions (any combination of read, write and execute), and a scope
  14019. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  14020. to create a new instance.]]>
  14021. </doc>
  14022. </class>
  14023. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  14024. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  14025. <class name="AclEntryScope" extends="java.lang.Enum"
  14026. abstract="false"
  14027. static="false" final="true" visibility="public"
  14028. deprecated="not deprecated">
  14029. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  14030. abstract="false" native="false" synchronized="false"
  14031. static="true" final="false" visibility="public"
  14032. deprecated="not deprecated">
  14033. </method>
  14034. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  14035. abstract="false" native="false" synchronized="false"
  14036. static="true" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. <param name="name" type="java.lang.String"/>
  14039. </method>
  14040. <doc>
  14041. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  14042. </doc>
  14043. </class>
  14044. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  14045. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  14046. <class name="AclEntryType" extends="java.lang.Enum"
  14047. abstract="false"
  14048. static="false" final="true" visibility="public"
  14049. deprecated="not deprecated">
  14050. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  14051. abstract="false" native="false" synchronized="false"
  14052. static="true" final="false" visibility="public"
  14053. deprecated="not deprecated">
  14054. </method>
  14055. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  14056. abstract="false" native="false" synchronized="false"
  14057. static="true" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <param name="name" type="java.lang.String"/>
  14060. </method>
  14061. <method name="toString" return="java.lang.String"
  14062. abstract="false" native="false" synchronized="false"
  14063. static="false" final="false" visibility="public"
  14064. deprecated="not deprecated">
  14065. </method>
  14066. <method name="toStringStable" return="java.lang.String"
  14067. abstract="false" native="false" synchronized="false"
  14068. static="false" final="false" visibility="public"
  14069. deprecated="not deprecated">
  14070. <doc>
  14071. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  14072. satisfy backward compatibility requirements, such as for shell command
  14073. output or serialization.
  14074. @return stable, backward compatible string representation]]>
  14075. </doc>
  14076. </method>
  14077. <doc>
  14078. <![CDATA[Specifies the type of an ACL entry.]]>
  14079. </doc>
  14080. </class>
  14081. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  14082. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  14083. <class name="AclStatus" extends="java.lang.Object"
  14084. abstract="false"
  14085. static="false" final="false" visibility="public"
  14086. deprecated="not deprecated">
  14087. <method name="getOwner" return="java.lang.String"
  14088. abstract="false" native="false" synchronized="false"
  14089. static="false" final="false" visibility="public"
  14090. deprecated="not deprecated">
  14091. <doc>
  14092. <![CDATA[Returns the file owner.
  14093. @return String file owner]]>
  14094. </doc>
  14095. </method>
  14096. <method name="getGroup" return="java.lang.String"
  14097. abstract="false" native="false" synchronized="false"
  14098. static="false" final="false" visibility="public"
  14099. deprecated="not deprecated">
  14100. <doc>
  14101. <![CDATA[Returns the file group.
  14102. @return String file group]]>
  14103. </doc>
  14104. </method>
  14105. <method name="isStickyBit" return="boolean"
  14106. abstract="false" native="false" synchronized="false"
  14107. static="false" final="false" visibility="public"
  14108. deprecated="not deprecated">
  14109. <doc>
  14110. <![CDATA[Returns the sticky bit.
  14111. @return boolean sticky bit]]>
  14112. </doc>
  14113. </method>
  14114. <method name="getEntries" return="java.util.List"
  14115. abstract="false" native="false" synchronized="false"
  14116. static="false" final="false" visibility="public"
  14117. deprecated="not deprecated">
  14118. <doc>
  14119. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  14120. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  14121. </doc>
  14122. </method>
  14123. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  14124. abstract="false" native="false" synchronized="false"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <doc>
  14128. <![CDATA[Returns the permission set for the path
  14129. @return {@link FsPermission} for the path]]>
  14130. </doc>
  14131. </method>
  14132. <method name="equals" return="boolean"
  14133. abstract="false" native="false" synchronized="false"
  14134. static="false" final="false" visibility="public"
  14135. deprecated="not deprecated">
  14136. <param name="o" type="java.lang.Object"/>
  14137. </method>
  14138. <method name="hashCode" return="int"
  14139. abstract="false" native="false" synchronized="false"
  14140. static="false" final="false" visibility="public"
  14141. deprecated="not deprecated">
  14142. </method>
  14143. <method name="toString" return="java.lang.String"
  14144. abstract="false" native="false" synchronized="false"
  14145. static="false" final="false" visibility="public"
  14146. deprecated="not deprecated">
  14147. </method>
  14148. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  14149. abstract="false" native="false" synchronized="false"
  14150. static="false" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  14153. <doc>
  14154. <![CDATA[Get the effective permission for the AclEntry
  14155. @param entry AclEntry to get the effective action]]>
  14156. </doc>
  14157. </method>
  14158. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  14159. abstract="false" native="false" synchronized="false"
  14160. static="false" final="false" visibility="public"
  14161. deprecated="not deprecated">
  14162. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  14163. <param name="permArg" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14164. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14165. <doc>
  14166. <![CDATA[Get the effective permission for the AclEntry. <br>
  14167. Recommended to use this API ONLY if client communicates with the old
  14168. NameNode, needs to pass the Permission for the path to get effective
  14169. permission, else use {@link AclStatus#getEffectivePermission(AclEntry)}.
  14170. @param entry AclEntry to get the effective action
  14171. @param permArg Permission for the path. However if the client is NOT
  14172. communicating with old namenode, then this argument will not have
  14173. any preference.
  14174. @return Returns the effective permission for the entry.
  14175. @throws IllegalArgumentException If the client communicating with old
  14176. namenode and permission is not passed as an argument.]]>
  14177. </doc>
  14178. </method>
  14179. <doc>
  14180. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  14181. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  14182. </doc>
  14183. </class>
  14184. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  14185. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  14186. <class name="FsAction" extends="java.lang.Enum"
  14187. abstract="false"
  14188. static="false" final="true" visibility="public"
  14189. deprecated="not deprecated">
  14190. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  14191. abstract="false" native="false" synchronized="false"
  14192. static="true" final="false" visibility="public"
  14193. deprecated="not deprecated">
  14194. </method>
  14195. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  14196. abstract="false" native="false" synchronized="false"
  14197. static="true" final="false" visibility="public"
  14198. deprecated="not deprecated">
  14199. <param name="name" type="java.lang.String"/>
  14200. </method>
  14201. <method name="implies" return="boolean"
  14202. abstract="false" native="false" synchronized="false"
  14203. static="false" final="false" visibility="public"
  14204. deprecated="not deprecated">
  14205. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  14206. <doc>
  14207. <![CDATA[Return true if this action implies that action.
  14208. @param that]]>
  14209. </doc>
  14210. </method>
  14211. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  14212. abstract="false" native="false" synchronized="false"
  14213. static="false" final="false" visibility="public"
  14214. deprecated="not deprecated">
  14215. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  14216. <doc>
  14217. <![CDATA[AND operation.]]>
  14218. </doc>
  14219. </method>
  14220. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  14221. abstract="false" native="false" synchronized="false"
  14222. static="false" final="false" visibility="public"
  14223. deprecated="not deprecated">
  14224. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  14225. <doc>
  14226. <![CDATA[OR operation.]]>
  14227. </doc>
  14228. </method>
  14229. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  14230. abstract="false" native="false" synchronized="false"
  14231. static="false" final="false" visibility="public"
  14232. deprecated="not deprecated">
  14233. <doc>
  14234. <![CDATA[NOT operation.]]>
  14235. </doc>
  14236. </method>
  14237. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  14238. abstract="false" native="false" synchronized="false"
  14239. static="true" final="false" visibility="public"
  14240. deprecated="not deprecated">
  14241. <param name="permission" type="java.lang.String"/>
  14242. <doc>
  14243. <![CDATA[Get the FsAction enum for String representation of permissions
  14244. @param permission
  14245. 3-character string representation of permission. ex: rwx
  14246. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  14247. Otherwise returns null]]>
  14248. </doc>
  14249. </method>
  14250. <field name="SYMBOL" type="java.lang.String"
  14251. transient="false" volatile="false"
  14252. static="false" final="true" visibility="public"
  14253. deprecated="not deprecated">
  14254. <doc>
  14255. <![CDATA[Symbolic representation]]>
  14256. </doc>
  14257. </field>
  14258. <doc>
  14259. <![CDATA[File system actions, e.g. read, write, etc.]]>
  14260. </doc>
  14261. </class>
  14262. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  14263. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  14264. <class name="FsPermission" extends="java.lang.Object"
  14265. abstract="false"
  14266. static="false" final="false" visibility="public"
  14267. deprecated="not deprecated">
  14268. <implements name="org.apache.hadoop.io.Writable"/>
  14269. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  14270. static="false" final="false" visibility="public"
  14271. deprecated="not deprecated">
  14272. <doc>
  14273. <![CDATA[Construct by the given {@link FsAction}.
  14274. @param u user action
  14275. @param g group action
  14276. @param o other action]]>
  14277. </doc>
  14278. </constructor>
  14279. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  14280. static="false" final="false" visibility="public"
  14281. deprecated="not deprecated">
  14282. </constructor>
  14283. <constructor name="FsPermission" type="short"
  14284. static="false" final="false" visibility="public"
  14285. deprecated="not deprecated">
  14286. <doc>
  14287. <![CDATA[Construct by the given mode.
  14288. @param mode
  14289. @see #toShort()]]>
  14290. </doc>
  14291. </constructor>
  14292. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  14293. static="false" final="false" visibility="public"
  14294. deprecated="not deprecated">
  14295. <doc>
  14296. <![CDATA[Copy constructor
  14297. @param other other permission]]>
  14298. </doc>
  14299. </constructor>
  14300. <constructor name="FsPermission" type="java.lang.String"
  14301. static="false" final="false" visibility="public"
  14302. deprecated="not deprecated">
  14303. <doc>
  14304. <![CDATA[Construct by given mode, either in octal or symbolic format.
  14305. @param mode mode as a string, either in octal or symbolic format
  14306. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  14307. </doc>
  14308. </constructor>
  14309. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  14310. abstract="false" native="false" synchronized="false"
  14311. static="true" final="false" visibility="public"
  14312. deprecated="not deprecated">
  14313. <param name="permission" type="short"/>
  14314. <doc>
  14315. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  14316. </doc>
  14317. </method>
  14318. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  14319. abstract="false" native="false" synchronized="false"
  14320. static="false" final="false" visibility="public"
  14321. deprecated="not deprecated">
  14322. <doc>
  14323. <![CDATA[Return user {@link FsAction}.]]>
  14324. </doc>
  14325. </method>
  14326. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  14327. abstract="false" native="false" synchronized="false"
  14328. static="false" final="false" visibility="public"
  14329. deprecated="not deprecated">
  14330. <doc>
  14331. <![CDATA[Return group {@link FsAction}.]]>
  14332. </doc>
  14333. </method>
  14334. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  14335. abstract="false" native="false" synchronized="false"
  14336. static="false" final="false" visibility="public"
  14337. deprecated="not deprecated">
  14338. <doc>
  14339. <![CDATA[Return other {@link FsAction}.]]>
  14340. </doc>
  14341. </method>
  14342. <method name="fromShort"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <param name="n" type="short"/>
  14347. </method>
  14348. <method name="write"
  14349. abstract="false" native="false" synchronized="false"
  14350. static="false" final="false" visibility="public"
  14351. deprecated="not deprecated">
  14352. <param name="out" type="java.io.DataOutput"/>
  14353. <exception name="IOException" type="java.io.IOException"/>
  14354. </method>
  14355. <method name="readFields"
  14356. abstract="false" native="false" synchronized="false"
  14357. static="false" final="false" visibility="public"
  14358. deprecated="not deprecated">
  14359. <param name="in" type="java.io.DataInput"/>
  14360. <exception name="IOException" type="java.io.IOException"/>
  14361. </method>
  14362. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  14363. abstract="false" native="false" synchronized="false"
  14364. static="true" final="false" visibility="public"
  14365. deprecated="not deprecated">
  14366. <param name="in" type="java.io.DataInput"/>
  14367. <exception name="IOException" type="java.io.IOException"/>
  14368. <doc>
  14369. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  14370. </doc>
  14371. </method>
  14372. <method name="toShort" return="short"
  14373. abstract="false" native="false" synchronized="false"
  14374. static="false" final="false" visibility="public"
  14375. deprecated="not deprecated">
  14376. <doc>
  14377. <![CDATA[Encode the object to a short.]]>
  14378. </doc>
  14379. </method>
  14380. <method name="toExtendedShort" return="short"
  14381. abstract="false" native="false" synchronized="false"
  14382. static="false" final="false" visibility="public"
  14383. deprecated="not deprecated">
  14384. <doc>
  14385. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  14386. return values outside the fixed range 00000 - 01777 if extended features
  14387. are encoded into this permission, such as the ACL bit.
  14388. @return short extended short representation of this permission]]>
  14389. </doc>
  14390. </method>
  14391. <method name="equals" return="boolean"
  14392. abstract="false" native="false" synchronized="false"
  14393. static="false" final="false" visibility="public"
  14394. deprecated="not deprecated">
  14395. <param name="obj" type="java.lang.Object"/>
  14396. </method>
  14397. <method name="hashCode" return="int"
  14398. abstract="false" native="false" synchronized="false"
  14399. static="false" final="false" visibility="public"
  14400. deprecated="not deprecated">
  14401. </method>
  14402. <method name="toString" return="java.lang.String"
  14403. abstract="false" native="false" synchronized="false"
  14404. static="false" final="false" visibility="public"
  14405. deprecated="not deprecated">
  14406. </method>
  14407. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  14408. abstract="false" native="false" synchronized="false"
  14409. static="false" final="false" visibility="public"
  14410. deprecated="not deprecated">
  14411. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14412. <doc>
  14413. <![CDATA[Apply a umask to this permission and return a new one.
  14414. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  14415. The mode argument for these operations is modified by removing the bits
  14416. which are set in the umask. Thus, the umask limits the permissions which
  14417. newly created files and directories get.
  14418. @param umask The umask to use
  14419. @return The effective permission]]>
  14420. </doc>
  14421. </method>
  14422. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  14423. abstract="false" native="false" synchronized="false"
  14424. static="true" final="false" visibility="public"
  14425. deprecated="not deprecated">
  14426. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14427. <doc>
  14428. <![CDATA[Get the user file creation mask (umask)
  14429. {@code UMASK_LABEL} config param has umask value that is either symbolic
  14430. or octal.
  14431. Symbolic umask is applied relative to file mode creation mask;
  14432. the permission op characters '+' clears the corresponding bit in the mask,
  14433. '-' sets bits in the mask.
  14434. Octal umask, the specified bits are set in the file mode creation mask.
  14435. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  14436. </doc>
  14437. </method>
  14438. <method name="getStickyBit" return="boolean"
  14439. abstract="false" native="false" synchronized="false"
  14440. static="false" final="false" visibility="public"
  14441. deprecated="not deprecated">
  14442. </method>
  14443. <method name="getAclBit" return="boolean"
  14444. abstract="false" native="false" synchronized="false"
  14445. static="false" final="false" visibility="public"
  14446. deprecated="not deprecated">
  14447. <doc>
  14448. <![CDATA[Returns true if there is also an ACL (access control list).
  14449. @return boolean true if there is also an ACL (access control list).]]>
  14450. </doc>
  14451. </method>
  14452. <method name="getEncryptedBit" return="boolean"
  14453. abstract="false" native="false" synchronized="false"
  14454. static="false" final="false" visibility="public"
  14455. deprecated="not deprecated">
  14456. <doc>
  14457. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  14458. </doc>
  14459. </method>
  14460. <method name="setUMask"
  14461. abstract="false" native="false" synchronized="false"
  14462. static="true" final="false" visibility="public"
  14463. deprecated="not deprecated">
  14464. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14465. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14466. <doc>
  14467. <![CDATA[Set the user file creation mask (umask)]]>
  14468. </doc>
  14469. </method>
  14470. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14471. abstract="false" native="false" synchronized="false"
  14472. static="true" final="false" visibility="public"
  14473. deprecated="not deprecated">
  14474. <doc>
  14475. <![CDATA[Get the default permission for directory and symlink.
  14476. In previous versions, this default permission was also used to
  14477. create files, so files created end up with ugo+x permission.
  14478. See HADOOP-9155 for detail.
  14479. Two new methods are added to solve this, please use
  14480. {@link FsPermission#getDirDefault()} for directory, and use
  14481. {@link FsPermission#getFileDefault()} for file.
  14482. This method is kept for compatibility.]]>
  14483. </doc>
  14484. </method>
  14485. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14486. abstract="false" native="false" synchronized="false"
  14487. static="true" final="false" visibility="public"
  14488. deprecated="not deprecated">
  14489. <doc>
  14490. <![CDATA[Get the default permission for directory.]]>
  14491. </doc>
  14492. </method>
  14493. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14494. abstract="false" native="false" synchronized="false"
  14495. static="true" final="false" visibility="public"
  14496. deprecated="not deprecated">
  14497. <doc>
  14498. <![CDATA[Get the default permission for file.]]>
  14499. </doc>
  14500. </method>
  14501. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14502. abstract="false" native="false" synchronized="false"
  14503. static="true" final="false" visibility="public"
  14504. deprecated="not deprecated">
  14505. <doc>
  14506. <![CDATA[Get the default permission for cache pools.]]>
  14507. </doc>
  14508. </method>
  14509. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  14510. abstract="false" native="false" synchronized="false"
  14511. static="true" final="false" visibility="public"
  14512. deprecated="not deprecated">
  14513. <param name="unixSymbolicPermission" type="java.lang.String"/>
  14514. <doc>
  14515. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  14516. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  14517. </doc>
  14518. </method>
  14519. <field name="MAX_PERMISSION_LENGTH" type="int"
  14520. transient="false" volatile="false"
  14521. static="true" final="true" visibility="public"
  14522. deprecated="not deprecated">
  14523. <doc>
  14524. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  14525. </doc>
  14526. </field>
  14527. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  14528. transient="false" volatile="false"
  14529. static="true" final="true" visibility="public"
  14530. deprecated="not deprecated">
  14531. <doc>
  14532. <![CDATA[umask property label deprecated key and code in getUMask method
  14533. to accommodate it may be removed in version .23]]>
  14534. </doc>
  14535. </field>
  14536. <field name="UMASK_LABEL" type="java.lang.String"
  14537. transient="false" volatile="false"
  14538. static="true" final="true" visibility="public"
  14539. deprecated="not deprecated">
  14540. </field>
  14541. <field name="DEFAULT_UMASK" type="int"
  14542. transient="false" volatile="false"
  14543. static="true" final="true" visibility="public"
  14544. deprecated="not deprecated">
  14545. </field>
  14546. <doc>
  14547. <![CDATA[A class for file/directory permissions.]]>
  14548. </doc>
  14549. </class>
  14550. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  14551. </package>
  14552. <package name="org.apache.hadoop.fs.sftp">
  14553. </package>
  14554. <package name="org.apache.hadoop.fs.shell.find">
  14555. </package>
  14556. <package name="org.apache.hadoop.fs.viewfs">
  14557. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  14558. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  14559. abstract="false"
  14560. static="false" final="false" visibility="public"
  14561. deprecated="not deprecated">
  14562. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  14563. static="false" final="false" visibility="public"
  14564. deprecated="not deprecated">
  14565. </constructor>
  14566. <constructor name="NotInMountpointException" type="java.lang.String"
  14567. static="false" final="false" visibility="public"
  14568. deprecated="not deprecated">
  14569. </constructor>
  14570. <method name="getMessage" return="java.lang.String"
  14571. abstract="false" native="false" synchronized="false"
  14572. static="false" final="false" visibility="public"
  14573. deprecated="not deprecated">
  14574. </method>
  14575. <doc>
  14576. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  14577. Exception class used in cases where the given path is not mounted
  14578. through viewfs.]]>
  14579. </doc>
  14580. </class>
  14581. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  14582. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  14583. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14584. abstract="false"
  14585. static="false" final="false" visibility="public"
  14586. deprecated="not deprecated">
  14587. <constructor name="ViewFileSystem"
  14588. static="false" final="false" visibility="public"
  14589. deprecated="not deprecated">
  14590. <exception name="IOException" type="java.io.IOException"/>
  14591. <doc>
  14592. <![CDATA[This is the constructor with the signature needed by
  14593. {@link FileSystem#createFileSystem(URI, Configuration)}
  14594. After this constructor is called initialize() is called.
  14595. @throws IOException]]>
  14596. </doc>
  14597. </constructor>
  14598. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  14599. static="false" final="false" visibility="public"
  14600. deprecated="not deprecated">
  14601. <exception name="IOException" type="java.io.IOException"/>
  14602. <doc>
  14603. <![CDATA[Convenience Constructor for apps to call directly
  14604. @param conf
  14605. @throws IOException]]>
  14606. </doc>
  14607. </constructor>
  14608. <method name="getScheme" return="java.lang.String"
  14609. abstract="false" native="false" synchronized="false"
  14610. static="false" final="false" visibility="public"
  14611. deprecated="not deprecated">
  14612. <doc>
  14613. <![CDATA[Return the protocol scheme for the FileSystem.
  14614. <p/>
  14615. @return <code>viewfs</code>]]>
  14616. </doc>
  14617. </method>
  14618. <method name="initialize"
  14619. abstract="false" native="false" synchronized="false"
  14620. static="false" final="false" visibility="public"
  14621. deprecated="not deprecated">
  14622. <param name="theUri" type="java.net.URI"/>
  14623. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14624. <exception name="IOException" type="java.io.IOException"/>
  14625. <doc>
  14626. <![CDATA[Called after a new FileSystem instance is constructed.
  14627. @param theUri a uri whose authority section names the host, port, etc. for
  14628. this FileSystem
  14629. @param conf the configuration]]>
  14630. </doc>
  14631. </method>
  14632. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  14633. abstract="false" native="false" synchronized="false"
  14634. static="false" final="false" visibility="public"
  14635. deprecated="not deprecated">
  14636. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14637. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14638. </method>
  14639. <method name="getUri" return="java.net.URI"
  14640. abstract="false" native="false" synchronized="false"
  14641. static="false" final="false" visibility="public"
  14642. deprecated="not deprecated">
  14643. </method>
  14644. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  14645. abstract="false" native="false" synchronized="false"
  14646. static="false" final="false" visibility="public"
  14647. deprecated="not deprecated">
  14648. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14649. <exception name="IOException" type="java.io.IOException"/>
  14650. </method>
  14651. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  14652. abstract="false" native="false" synchronized="false"
  14653. static="false" final="false" visibility="public"
  14654. deprecated="not deprecated">
  14655. </method>
  14656. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14657. abstract="false" native="false" synchronized="false"
  14658. static="false" final="false" visibility="public"
  14659. deprecated="not deprecated">
  14660. </method>
  14661. <method name="setWorkingDirectory"
  14662. abstract="false" native="false" synchronized="false"
  14663. static="false" final="false" visibility="public"
  14664. deprecated="not deprecated">
  14665. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  14666. </method>
  14667. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14668. abstract="false" native="false" synchronized="false"
  14669. static="false" final="false" visibility="public"
  14670. deprecated="not deprecated">
  14671. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14672. <param name="bufferSize" type="int"/>
  14673. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14674. <exception name="IOException" type="java.io.IOException"/>
  14675. </method>
  14676. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14677. abstract="false" native="false" synchronized="false"
  14678. static="false" final="false" visibility="public"
  14679. deprecated="not deprecated">
  14680. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14681. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14682. <param name="flags" type="java.util.EnumSet"/>
  14683. <param name="bufferSize" type="int"/>
  14684. <param name="replication" type="short"/>
  14685. <param name="blockSize" type="long"/>
  14686. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14687. <exception name="IOException" type="java.io.IOException"/>
  14688. </method>
  14689. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14690. abstract="false" native="false" synchronized="false"
  14691. static="false" final="false" visibility="public"
  14692. deprecated="not deprecated">
  14693. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14694. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14695. <param name="overwrite" type="boolean"/>
  14696. <param name="bufferSize" type="int"/>
  14697. <param name="replication" type="short"/>
  14698. <param name="blockSize" type="long"/>
  14699. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14700. <exception name="IOException" type="java.io.IOException"/>
  14701. </method>
  14702. <method name="delete" return="boolean"
  14703. abstract="false" native="false" synchronized="false"
  14704. static="false" final="false" visibility="public"
  14705. deprecated="not deprecated">
  14706. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14707. <param name="recursive" type="boolean"/>
  14708. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14709. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14710. <exception name="IOException" type="java.io.IOException"/>
  14711. </method>
  14712. <method name="delete" return="boolean"
  14713. abstract="false" native="false" synchronized="false"
  14714. static="false" final="false" visibility="public"
  14715. deprecated="not deprecated">
  14716. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14717. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14718. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14719. <exception name="IOException" type="java.io.IOException"/>
  14720. </method>
  14721. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  14722. abstract="false" native="false" synchronized="false"
  14723. static="false" final="false" visibility="public"
  14724. deprecated="not deprecated">
  14725. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  14726. <param name="start" type="long"/>
  14727. <param name="len" type="long"/>
  14728. <exception name="IOException" type="java.io.IOException"/>
  14729. </method>
  14730. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  14731. abstract="false" native="false" synchronized="false"
  14732. static="false" final="false" visibility="public"
  14733. deprecated="not deprecated">
  14734. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14735. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14736. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14737. <exception name="IOException" type="java.io.IOException"/>
  14738. </method>
  14739. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14740. abstract="false" native="false" synchronized="false"
  14741. static="false" final="false" visibility="public"
  14742. deprecated="not deprecated">
  14743. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14744. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14745. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14746. <exception name="IOException" type="java.io.IOException"/>
  14747. </method>
  14748. <method name="access"
  14749. abstract="false" native="false" synchronized="false"
  14750. static="false" final="false" visibility="public"
  14751. deprecated="not deprecated">
  14752. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14753. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  14754. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14755. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14756. <exception name="IOException" type="java.io.IOException"/>
  14757. </method>
  14758. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  14759. abstract="false" native="false" synchronized="false"
  14760. static="false" final="false" visibility="public"
  14761. deprecated="not deprecated">
  14762. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14763. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14764. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14765. <exception name="IOException" type="java.io.IOException"/>
  14766. </method>
  14767. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  14768. abstract="false" native="false" synchronized="false"
  14769. static="false" final="false" visibility="public"
  14770. deprecated="not deprecated">
  14771. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14772. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  14773. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14774. <exception name="IOException" type="java.io.IOException"/>
  14775. </method>
  14776. <method name="mkdirs" return="boolean"
  14777. abstract="false" native="false" synchronized="false"
  14778. static="false" final="false" visibility="public"
  14779. deprecated="not deprecated">
  14780. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  14781. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14782. <exception name="IOException" type="java.io.IOException"/>
  14783. </method>
  14784. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14785. abstract="false" native="false" synchronized="false"
  14786. static="false" final="false" visibility="public"
  14787. deprecated="not deprecated">
  14788. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14789. <param name="bufferSize" type="int"/>
  14790. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14791. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14792. <exception name="IOException" type="java.io.IOException"/>
  14793. </method>
  14794. <method name="rename" return="boolean"
  14795. abstract="false" native="false" synchronized="false"
  14796. static="false" final="false" visibility="public"
  14797. deprecated="not deprecated">
  14798. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14799. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14800. <exception name="IOException" type="java.io.IOException"/>
  14801. </method>
  14802. <method name="truncate" return="boolean"
  14803. abstract="false" native="false" synchronized="false"
  14804. static="false" final="false" visibility="public"
  14805. deprecated="not deprecated">
  14806. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14807. <param name="newLength" type="long"/>
  14808. <exception name="IOException" type="java.io.IOException"/>
  14809. </method>
  14810. <method name="setOwner"
  14811. abstract="false" native="false" synchronized="false"
  14812. static="false" final="false" visibility="public"
  14813. deprecated="not deprecated">
  14814. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14815. <param name="username" type="java.lang.String"/>
  14816. <param name="groupname" type="java.lang.String"/>
  14817. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14818. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14819. <exception name="IOException" type="java.io.IOException"/>
  14820. </method>
  14821. <method name="setPermission"
  14822. abstract="false" native="false" synchronized="false"
  14823. static="false" final="false" visibility="public"
  14824. deprecated="not deprecated">
  14825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14826. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14827. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14828. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14829. <exception name="IOException" type="java.io.IOException"/>
  14830. </method>
  14831. <method name="setReplication" return="boolean"
  14832. abstract="false" native="false" synchronized="false"
  14833. static="false" final="false" visibility="public"
  14834. deprecated="not deprecated">
  14835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14836. <param name="replication" type="short"/>
  14837. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14838. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14839. <exception name="IOException" type="java.io.IOException"/>
  14840. </method>
  14841. <method name="setTimes"
  14842. abstract="false" native="false" synchronized="false"
  14843. static="false" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14846. <param name="mtime" type="long"/>
  14847. <param name="atime" type="long"/>
  14848. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14849. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14850. <exception name="IOException" type="java.io.IOException"/>
  14851. </method>
  14852. <method name="modifyAclEntries"
  14853. abstract="false" native="false" synchronized="false"
  14854. static="false" final="false" visibility="public"
  14855. deprecated="not deprecated">
  14856. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14857. <param name="aclSpec" type="java.util.List"/>
  14858. <exception name="IOException" type="java.io.IOException"/>
  14859. </method>
  14860. <method name="removeAclEntries"
  14861. abstract="false" native="false" synchronized="false"
  14862. static="false" final="false" visibility="public"
  14863. deprecated="not deprecated">
  14864. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14865. <param name="aclSpec" type="java.util.List"/>
  14866. <exception name="IOException" type="java.io.IOException"/>
  14867. </method>
  14868. <method name="removeDefaultAcl"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="false" final="false" visibility="public"
  14871. deprecated="not deprecated">
  14872. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14873. <exception name="IOException" type="java.io.IOException"/>
  14874. </method>
  14875. <method name="removeAcl"
  14876. abstract="false" native="false" synchronized="false"
  14877. static="false" final="false" visibility="public"
  14878. deprecated="not deprecated">
  14879. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14880. <exception name="IOException" type="java.io.IOException"/>
  14881. </method>
  14882. <method name="setAcl"
  14883. abstract="false" native="false" synchronized="false"
  14884. static="false" final="false" visibility="public"
  14885. deprecated="not deprecated">
  14886. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14887. <param name="aclSpec" type="java.util.List"/>
  14888. <exception name="IOException" type="java.io.IOException"/>
  14889. </method>
  14890. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  14891. abstract="false" native="false" synchronized="false"
  14892. static="false" final="false" visibility="public"
  14893. deprecated="not deprecated">
  14894. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14895. <exception name="IOException" type="java.io.IOException"/>
  14896. </method>
  14897. <method name="setXAttr"
  14898. abstract="false" native="false" synchronized="false"
  14899. static="false" final="false" visibility="public"
  14900. deprecated="not deprecated">
  14901. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14902. <param name="name" type="java.lang.String"/>
  14903. <param name="value" type="byte[]"/>
  14904. <param name="flag" type="java.util.EnumSet"/>
  14905. <exception name="IOException" type="java.io.IOException"/>
  14906. </method>
  14907. <method name="getXAttr" return="byte[]"
  14908. abstract="false" native="false" synchronized="false"
  14909. static="false" final="false" visibility="public"
  14910. deprecated="not deprecated">
  14911. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14912. <param name="name" type="java.lang.String"/>
  14913. <exception name="IOException" type="java.io.IOException"/>
  14914. </method>
  14915. <method name="getXAttrs" return="java.util.Map"
  14916. abstract="false" native="false" synchronized="false"
  14917. static="false" final="false" visibility="public"
  14918. deprecated="not deprecated">
  14919. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14920. <exception name="IOException" type="java.io.IOException"/>
  14921. </method>
  14922. <method name="getXAttrs" return="java.util.Map"
  14923. abstract="false" native="false" synchronized="false"
  14924. static="false" final="false" visibility="public"
  14925. deprecated="not deprecated">
  14926. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14927. <param name="names" type="java.util.List"/>
  14928. <exception name="IOException" type="java.io.IOException"/>
  14929. </method>
  14930. <method name="listXAttrs" return="java.util.List"
  14931. abstract="false" native="false" synchronized="false"
  14932. static="false" final="false" visibility="public"
  14933. deprecated="not deprecated">
  14934. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14935. <exception name="IOException" type="java.io.IOException"/>
  14936. </method>
  14937. <method name="removeXAttr"
  14938. abstract="false" native="false" synchronized="false"
  14939. static="false" final="false" visibility="public"
  14940. deprecated="not deprecated">
  14941. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14942. <param name="name" type="java.lang.String"/>
  14943. <exception name="IOException" type="java.io.IOException"/>
  14944. </method>
  14945. <method name="setVerifyChecksum"
  14946. abstract="false" native="false" synchronized="false"
  14947. static="false" final="false" visibility="public"
  14948. deprecated="not deprecated">
  14949. <param name="verifyChecksum" type="boolean"/>
  14950. </method>
  14951. <method name="getDefaultBlockSize" return="long"
  14952. abstract="false" native="false" synchronized="false"
  14953. static="false" final="false" visibility="public"
  14954. deprecated="not deprecated">
  14955. </method>
  14956. <method name="getDefaultReplication" return="short"
  14957. abstract="false" native="false" synchronized="false"
  14958. static="false" final="false" visibility="public"
  14959. deprecated="not deprecated">
  14960. </method>
  14961. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  14962. abstract="false" native="false" synchronized="false"
  14963. static="false" final="false" visibility="public"
  14964. deprecated="not deprecated">
  14965. <exception name="IOException" type="java.io.IOException"/>
  14966. </method>
  14967. <method name="getDefaultBlockSize" return="long"
  14968. abstract="false" native="false" synchronized="false"
  14969. static="false" final="false" visibility="public"
  14970. deprecated="not deprecated">
  14971. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14972. </method>
  14973. <method name="getDefaultReplication" return="short"
  14974. abstract="false" native="false" synchronized="false"
  14975. static="false" final="false" visibility="public"
  14976. deprecated="not deprecated">
  14977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14978. </method>
  14979. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  14980. abstract="false" native="false" synchronized="false"
  14981. static="false" final="false" visibility="public"
  14982. deprecated="not deprecated">
  14983. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14984. <exception name="IOException" type="java.io.IOException"/>
  14985. </method>
  14986. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  14987. abstract="false" native="false" synchronized="false"
  14988. static="false" final="false" visibility="public"
  14989. deprecated="not deprecated">
  14990. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14991. <exception name="IOException" type="java.io.IOException"/>
  14992. </method>
  14993. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  14994. abstract="false" native="false" synchronized="false"
  14995. static="false" final="false" visibility="public"
  14996. deprecated="not deprecated">
  14997. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14998. <exception name="IOException" type="java.io.IOException"/>
  14999. </method>
  15000. <method name="setWriteChecksum"
  15001. abstract="false" native="false" synchronized="false"
  15002. static="false" final="false" visibility="public"
  15003. deprecated="not deprecated">
  15004. <param name="writeChecksum" type="boolean"/>
  15005. </method>
  15006. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  15007. abstract="false" native="false" synchronized="false"
  15008. static="false" final="false" visibility="public"
  15009. deprecated="not deprecated">
  15010. </method>
  15011. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  15012. abstract="false" native="false" synchronized="false"
  15013. static="false" final="false" visibility="public"
  15014. deprecated="not deprecated">
  15015. </method>
  15016. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  15017. abstract="false" native="false" synchronized="false"
  15018. static="false" final="false" visibility="public"
  15019. deprecated="not deprecated">
  15020. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15021. <param name="snapshotName" type="java.lang.String"/>
  15022. <exception name="IOException" type="java.io.IOException"/>
  15023. </method>
  15024. <method name="renameSnapshot"
  15025. abstract="false" native="false" synchronized="false"
  15026. static="false" final="false" visibility="public"
  15027. deprecated="not deprecated">
  15028. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15029. <param name="snapshotOldName" type="java.lang.String"/>
  15030. <param name="snapshotNewName" type="java.lang.String"/>
  15031. <exception name="IOException" type="java.io.IOException"/>
  15032. </method>
  15033. <method name="deleteSnapshot"
  15034. abstract="false" native="false" synchronized="false"
  15035. static="false" final="false" visibility="public"
  15036. deprecated="not deprecated">
  15037. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15038. <param name="snapshotName" type="java.lang.String"/>
  15039. <exception name="IOException" type="java.io.IOException"/>
  15040. </method>
  15041. <doc>
  15042. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  15043. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  15044. </doc>
  15045. </class>
  15046. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  15047. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  15048. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  15049. abstract="false"
  15050. static="false" final="false" visibility="public"
  15051. deprecated="not deprecated">
  15052. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  15053. static="false" final="false" visibility="public"
  15054. deprecated="not deprecated">
  15055. <exception name="IOException" type="java.io.IOException"/>
  15056. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  15057. </constructor>
  15058. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  15059. abstract="false" native="false" synchronized="false"
  15060. static="false" final="false" visibility="public"
  15061. deprecated="not deprecated">
  15062. <exception name="IOException" type="java.io.IOException"/>
  15063. </method>
  15064. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  15065. abstract="false" native="false" synchronized="false"
  15066. static="false" final="false" visibility="public"
  15067. deprecated="not deprecated">
  15068. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15069. <exception name="IOException" type="java.io.IOException"/>
  15070. </method>
  15071. <method name="getUriDefaultPort" return="int"
  15072. abstract="false" native="false" synchronized="false"
  15073. static="false" final="false" visibility="public"
  15074. deprecated="not deprecated">
  15075. </method>
  15076. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15077. abstract="false" native="false" synchronized="false"
  15078. static="false" final="false" visibility="public"
  15079. deprecated="not deprecated">
  15080. </method>
  15081. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  15082. abstract="false" native="false" synchronized="false"
  15083. static="false" final="false" visibility="public"
  15084. deprecated="not deprecated">
  15085. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15086. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15087. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15088. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15089. <exception name="IOException" type="java.io.IOException"/>
  15090. </method>
  15091. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  15092. abstract="false" native="false" synchronized="false"
  15093. static="false" final="false" visibility="public"
  15094. deprecated="not deprecated">
  15095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15096. <param name="flag" type="java.util.EnumSet"/>
  15097. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15098. <param name="bufferSize" type="int"/>
  15099. <param name="replication" type="short"/>
  15100. <param name="blockSize" type="long"/>
  15101. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15102. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  15103. <param name="createParent" type="boolean"/>
  15104. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15105. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  15106. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15107. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  15108. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  15109. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15110. <exception name="IOException" type="java.io.IOException"/>
  15111. </method>
  15112. <method name="delete" return="boolean"
  15113. abstract="false" native="false" synchronized="false"
  15114. static="false" final="false" visibility="public"
  15115. deprecated="not deprecated">
  15116. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15117. <param name="recursive" type="boolean"/>
  15118. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15119. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15120. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15121. <exception name="IOException" type="java.io.IOException"/>
  15122. </method>
  15123. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15124. abstract="false" native="false" synchronized="false"
  15125. static="false" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15128. <param name="start" type="long"/>
  15129. <param name="len" type="long"/>
  15130. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15131. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15132. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15133. <exception name="IOException" type="java.io.IOException"/>
  15134. </method>
  15135. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  15136. abstract="false" native="false" synchronized="false"
  15137. static="false" final="false" visibility="public"
  15138. deprecated="not deprecated">
  15139. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15140. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15141. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15142. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15143. <exception name="IOException" type="java.io.IOException"/>
  15144. </method>
  15145. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15146. abstract="false" native="false" synchronized="false"
  15147. static="false" final="false" visibility="public"
  15148. deprecated="not deprecated">
  15149. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15150. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15151. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15152. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15153. <exception name="IOException" type="java.io.IOException"/>
  15154. </method>
  15155. <method name="access"
  15156. abstract="false" native="false" synchronized="false"
  15157. static="false" final="false" visibility="public"
  15158. deprecated="not deprecated">
  15159. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15160. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  15161. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15162. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15163. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15164. <exception name="IOException" type="java.io.IOException"/>
  15165. </method>
  15166. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15167. abstract="false" native="false" synchronized="false"
  15168. static="false" final="false" visibility="public"
  15169. deprecated="not deprecated">
  15170. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15171. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15172. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15173. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  15174. <exception name="IOException" type="java.io.IOException"/>
  15175. </method>
  15176. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  15177. abstract="false" native="false" synchronized="false"
  15178. static="false" final="false" visibility="public"
  15179. deprecated="not deprecated">
  15180. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15181. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15182. <exception name="IOException" type="java.io.IOException"/>
  15183. </method>
  15184. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  15185. abstract="false" native="false" synchronized="false"
  15186. static="false" final="false" visibility="public"
  15187. deprecated="not deprecated">
  15188. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15189. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15190. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15191. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15192. <exception name="IOException" type="java.io.IOException"/>
  15193. </method>
  15194. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  15195. abstract="false" native="false" synchronized="false"
  15196. static="false" final="false" visibility="public"
  15197. deprecated="not deprecated">
  15198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15199. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15200. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15201. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15202. <exception name="IOException" type="java.io.IOException"/>
  15203. </method>
  15204. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15205. abstract="false" native="false" synchronized="false"
  15206. static="false" final="false" visibility="public"
  15207. deprecated="not deprecated">
  15208. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15209. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15210. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15211. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15212. <exception name="IOException" type="java.io.IOException"/>
  15213. </method>
  15214. <method name="mkdir"
  15215. abstract="false" native="false" synchronized="false"
  15216. static="false" final="false" visibility="public"
  15217. deprecated="not deprecated">
  15218. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15219. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15220. <param name="createParent" type="boolean"/>
  15221. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15222. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  15223. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15224. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15225. <exception name="IOException" type="java.io.IOException"/>
  15226. </method>
  15227. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15228. abstract="false" native="false" synchronized="false"
  15229. static="false" final="false" visibility="public"
  15230. deprecated="not deprecated">
  15231. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15232. <param name="bufferSize" type="int"/>
  15233. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15234. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15235. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15236. <exception name="IOException" type="java.io.IOException"/>
  15237. </method>
  15238. <method name="truncate" return="boolean"
  15239. abstract="false" native="false" synchronized="false"
  15240. static="false" final="false" visibility="public"
  15241. deprecated="not deprecated">
  15242. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15243. <param name="newLength" type="long"/>
  15244. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15245. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15246. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15247. <exception name="IOException" type="java.io.IOException"/>
  15248. </method>
  15249. <method name="renameInternal"
  15250. abstract="false" native="false" synchronized="false"
  15251. static="false" final="false" visibility="public"
  15252. deprecated="not deprecated">
  15253. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15254. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15255. <param name="overwrite" type="boolean"/>
  15256. <exception name="IOException" type="java.io.IOException"/>
  15257. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15258. </method>
  15259. <method name="renameInternal"
  15260. abstract="false" native="false" synchronized="false"
  15261. static="false" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15264. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15265. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15266. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  15267. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15268. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  15269. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15270. <exception name="IOException" type="java.io.IOException"/>
  15271. </method>
  15272. <method name="supportsSymlinks" return="boolean"
  15273. abstract="false" native="false" synchronized="false"
  15274. static="false" final="false" visibility="public"
  15275. deprecated="not deprecated">
  15276. </method>
  15277. <method name="createSymlink"
  15278. abstract="false" native="false" synchronized="false"
  15279. static="false" final="false" visibility="public"
  15280. deprecated="not deprecated">
  15281. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15282. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15283. <param name="createParent" type="boolean"/>
  15284. <exception name="IOException" type="java.io.IOException"/>
  15285. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15286. </method>
  15287. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15288. abstract="false" native="false" synchronized="false"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15292. <exception name="IOException" type="java.io.IOException"/>
  15293. </method>
  15294. <method name="setOwner"
  15295. abstract="false" native="false" synchronized="false"
  15296. static="false" final="false" visibility="public"
  15297. deprecated="not deprecated">
  15298. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15299. <param name="username" type="java.lang.String"/>
  15300. <param name="groupname" type="java.lang.String"/>
  15301. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15302. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15303. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15304. <exception name="IOException" type="java.io.IOException"/>
  15305. </method>
  15306. <method name="setPermission"
  15307. abstract="false" native="false" synchronized="false"
  15308. static="false" final="false" visibility="public"
  15309. deprecated="not deprecated">
  15310. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15311. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15312. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15313. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15314. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15315. <exception name="IOException" type="java.io.IOException"/>
  15316. </method>
  15317. <method name="setReplication" return="boolean"
  15318. abstract="false" native="false" synchronized="false"
  15319. static="false" final="false" visibility="public"
  15320. deprecated="not deprecated">
  15321. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15322. <param name="replication" type="short"/>
  15323. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15324. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15325. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15326. <exception name="IOException" type="java.io.IOException"/>
  15327. </method>
  15328. <method name="setTimes"
  15329. abstract="false" native="false" synchronized="false"
  15330. static="false" final="false" visibility="public"
  15331. deprecated="not deprecated">
  15332. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15333. <param name="mtime" type="long"/>
  15334. <param name="atime" type="long"/>
  15335. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15336. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15337. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15338. <exception name="IOException" type="java.io.IOException"/>
  15339. </method>
  15340. <method name="setVerifyChecksum"
  15341. abstract="false" native="false" synchronized="false"
  15342. static="false" final="false" visibility="public"
  15343. deprecated="not deprecated">
  15344. <param name="verifyChecksum" type="boolean"/>
  15345. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15346. <exception name="IOException" type="java.io.IOException"/>
  15347. </method>
  15348. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  15349. abstract="false" native="false" synchronized="false"
  15350. static="false" final="false" visibility="public"
  15351. deprecated="not deprecated">
  15352. </method>
  15353. <method name="getDelegationTokens" return="java.util.List"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="false" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. <param name="renewer" type="java.lang.String"/>
  15358. <exception name="IOException" type="java.io.IOException"/>
  15359. </method>
  15360. <method name="isValidName" return="boolean"
  15361. abstract="false" native="false" synchronized="false"
  15362. static="false" final="false" visibility="public"
  15363. deprecated="not deprecated">
  15364. <param name="src" type="java.lang.String"/>
  15365. </method>
  15366. <method name="modifyAclEntries"
  15367. abstract="false" native="false" synchronized="false"
  15368. static="false" final="false" visibility="public"
  15369. deprecated="not deprecated">
  15370. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15371. <param name="aclSpec" type="java.util.List"/>
  15372. <exception name="IOException" type="java.io.IOException"/>
  15373. </method>
  15374. <method name="removeAclEntries"
  15375. abstract="false" native="false" synchronized="false"
  15376. static="false" final="false" visibility="public"
  15377. deprecated="not deprecated">
  15378. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15379. <param name="aclSpec" type="java.util.List"/>
  15380. <exception name="IOException" type="java.io.IOException"/>
  15381. </method>
  15382. <method name="removeDefaultAcl"
  15383. abstract="false" native="false" synchronized="false"
  15384. static="false" final="false" visibility="public"
  15385. deprecated="not deprecated">
  15386. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15387. <exception name="IOException" type="java.io.IOException"/>
  15388. </method>
  15389. <method name="removeAcl"
  15390. abstract="false" native="false" synchronized="false"
  15391. static="false" final="false" visibility="public"
  15392. deprecated="not deprecated">
  15393. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15394. <exception name="IOException" type="java.io.IOException"/>
  15395. </method>
  15396. <method name="setAcl"
  15397. abstract="false" native="false" synchronized="false"
  15398. static="false" final="false" visibility="public"
  15399. deprecated="not deprecated">
  15400. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15401. <param name="aclSpec" type="java.util.List"/>
  15402. <exception name="IOException" type="java.io.IOException"/>
  15403. </method>
  15404. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15409. <exception name="IOException" type="java.io.IOException"/>
  15410. </method>
  15411. <method name="setXAttr"
  15412. abstract="false" native="false" synchronized="false"
  15413. static="false" final="false" visibility="public"
  15414. deprecated="not deprecated">
  15415. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15416. <param name="name" type="java.lang.String"/>
  15417. <param name="value" type="byte[]"/>
  15418. <param name="flag" type="java.util.EnumSet"/>
  15419. <exception name="IOException" type="java.io.IOException"/>
  15420. </method>
  15421. <method name="getXAttr" return="byte[]"
  15422. abstract="false" native="false" synchronized="false"
  15423. static="false" final="false" visibility="public"
  15424. deprecated="not deprecated">
  15425. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15426. <param name="name" type="java.lang.String"/>
  15427. <exception name="IOException" type="java.io.IOException"/>
  15428. </method>
  15429. <method name="getXAttrs" return="java.util.Map"
  15430. abstract="false" native="false" synchronized="false"
  15431. static="false" final="false" visibility="public"
  15432. deprecated="not deprecated">
  15433. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15434. <exception name="IOException" type="java.io.IOException"/>
  15435. </method>
  15436. <method name="getXAttrs" return="java.util.Map"
  15437. abstract="false" native="false" synchronized="false"
  15438. static="false" final="false" visibility="public"
  15439. deprecated="not deprecated">
  15440. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15441. <param name="names" type="java.util.List"/>
  15442. <exception name="IOException" type="java.io.IOException"/>
  15443. </method>
  15444. <method name="listXAttrs" return="java.util.List"
  15445. abstract="false" native="false" synchronized="false"
  15446. static="false" final="false" visibility="public"
  15447. deprecated="not deprecated">
  15448. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15449. <exception name="IOException" type="java.io.IOException"/>
  15450. </method>
  15451. <method name="removeXAttr"
  15452. abstract="false" native="false" synchronized="false"
  15453. static="false" final="false" visibility="public"
  15454. deprecated="not deprecated">
  15455. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15456. <param name="name" type="java.lang.String"/>
  15457. <exception name="IOException" type="java.io.IOException"/>
  15458. </method>
  15459. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  15460. abstract="false" native="false" synchronized="false"
  15461. static="false" final="false" visibility="public"
  15462. deprecated="not deprecated">
  15463. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15464. <param name="snapshotName" type="java.lang.String"/>
  15465. <exception name="IOException" type="java.io.IOException"/>
  15466. </method>
  15467. <method name="renameSnapshot"
  15468. abstract="false" native="false" synchronized="false"
  15469. static="false" final="false" visibility="public"
  15470. deprecated="not deprecated">
  15471. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15472. <param name="snapshotOldName" type="java.lang.String"/>
  15473. <param name="snapshotNewName" type="java.lang.String"/>
  15474. <exception name="IOException" type="java.io.IOException"/>
  15475. </method>
  15476. <method name="deleteSnapshot"
  15477. abstract="false" native="false" synchronized="false"
  15478. static="false" final="false" visibility="public"
  15479. deprecated="not deprecated">
  15480. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15481. <param name="snapshotName" type="java.lang.String"/>
  15482. <exception name="IOException" type="java.io.IOException"/>
  15483. </method>
  15484. <method name="setStoragePolicy"
  15485. abstract="false" native="false" synchronized="false"
  15486. static="false" final="false" visibility="public"
  15487. deprecated="not deprecated">
  15488. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15489. <param name="policyName" type="java.lang.String"/>
  15490. <exception name="IOException" type="java.io.IOException"/>
  15491. </method>
  15492. <method name="unsetStoragePolicy"
  15493. abstract="false" native="false" synchronized="false"
  15494. static="false" final="false" visibility="public"
  15495. deprecated="not deprecated">
  15496. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15497. <exception name="IOException" type="java.io.IOException"/>
  15498. </method>
  15499. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  15500. abstract="false" native="false" synchronized="false"
  15501. static="false" final="false" visibility="public"
  15502. deprecated="not deprecated">
  15503. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15504. <exception name="IOException" type="java.io.IOException"/>
  15505. <doc>
  15506. <![CDATA[Retrieve the storage policy for a given file or directory.
  15507. @param src file or directory path.
  15508. @return storage policy for give file.
  15509. @throws IOException]]>
  15510. </doc>
  15511. </method>
  15512. <doc>
  15513. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  15514. mount table. The viewFs file system is implemented completely in memory on
  15515. the client side. The client-side mount table allows a client to provide a
  15516. customized view of a file system namespace that is composed from
  15517. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  15518. For example one could have a mount table that provides links such as
  15519. <ul>
  15520. <li> /user -> hdfs://nnContainingUserDir/user
  15521. <li> /project/foo -> hdfs://nnProject1/projects/foo
  15522. <li> /project/bar -> hdfs://nnProject2/projects/bar
  15523. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  15524. </ul>
  15525. ViewFs is specified with the following URI: <b>viewfs:///</b>
  15526. <p>
  15527. To use viewfs one would typically set the default file system in the
  15528. config (i.e. fs.defaultFS < = viewfs:///) along with the
  15529. mount table config variables as described below.
  15530. <p>
  15531. <b> ** Config variables to specify the mount table entries ** </b>
  15532. <p>
  15533. The file system is initialized from the standard Hadoop config through
  15534. config variables.
  15535. See {@link FsConstants} for URI and Scheme constants;
  15536. See {@link Constants} for config var constants;
  15537. see {@link ConfigUtil} for convenient lib.
  15538. <p>
  15539. All the mount table config entries for view fs are prefixed by
  15540. <b>fs.viewfs.mounttable.</b>
  15541. For example the above example can be specified with the following
  15542. config variables:
  15543. <ul>
  15544. <li> fs.viewfs.mounttable.default.link./user=
  15545. hdfs://nnContainingUserDir/user
  15546. <li> fs.viewfs.mounttable.default.link./project/foo=
  15547. hdfs://nnProject1/projects/foo
  15548. <li> fs.viewfs.mounttable.default.link./project/bar=
  15549. hdfs://nnProject2/projects/bar
  15550. <li> fs.viewfs.mounttable.default.link./tmp=
  15551. hdfs://nnTmp/privateTmpForUserXXX
  15552. </ul>
  15553. The default mount table (when no authority is specified) is
  15554. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  15555. The authority component of a URI can be used to specify a different mount
  15556. table. For example,
  15557. <ul>
  15558. <li> viewfs://sanjayMountable/
  15559. </ul>
  15560. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  15561. <p>
  15562. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  15563. <p>
  15564. One can also use "MergeMounts" to merge several directories (this is
  15565. sometimes called union-mounts or junction-mounts in the literature.
  15566. For example of the home directories are stored on say two file systems
  15567. (because they do not fit on one) then one could specify a mount
  15568. entry such as following merges two dirs:
  15569. <ul>
  15570. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  15571. </ul>
  15572. Such a mergeLink can be specified with the following config var where ","
  15573. is used as the separator for each of links to be merged:
  15574. <ul>
  15575. <li> fs.viewfs.mounttable.default.linkMerge./user=
  15576. hdfs://nnUser1/user,hdfs://nnUser1/user
  15577. </ul>
  15578. A special case of the merge mount is where mount table's root is merged
  15579. with the root (slash) of another file system:
  15580. <ul>
  15581. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  15582. </ul>
  15583. In this cases the root of the mount table is merged with the root of
  15584. <b>hdfs://nn99/ </b>]]>
  15585. </doc>
  15586. </class>
  15587. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  15588. </package>
  15589. <package name="org.apache.hadoop.ha">
  15590. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  15591. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  15592. abstract="false"
  15593. static="false" final="false" visibility="public"
  15594. deprecated="not deprecated">
  15595. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  15596. static="false" final="false" visibility="public"
  15597. deprecated="not deprecated">
  15598. </constructor>
  15599. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  15600. static="false" final="false" visibility="public"
  15601. deprecated="not deprecated">
  15602. </constructor>
  15603. <doc>
  15604. <![CDATA[Indicates that the operator has specified an invalid configuration
  15605. for fencing methods.]]>
  15606. </doc>
  15607. </class>
  15608. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  15609. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  15610. <class name="FailoverFailedException" extends="java.lang.Exception"
  15611. abstract="false"
  15612. static="false" final="false" visibility="public"
  15613. deprecated="not deprecated">
  15614. <constructor name="FailoverFailedException" type="java.lang.String"
  15615. static="false" final="false" visibility="public"
  15616. deprecated="not deprecated">
  15617. </constructor>
  15618. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  15619. static="false" final="false" visibility="public"
  15620. deprecated="not deprecated">
  15621. </constructor>
  15622. <doc>
  15623. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  15624. </doc>
  15625. </class>
  15626. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  15627. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  15628. <interface name="FenceMethod" abstract="true"
  15629. static="false" final="false" visibility="public"
  15630. deprecated="not deprecated">
  15631. <method name="checkArgs"
  15632. abstract="false" native="false" synchronized="false"
  15633. static="false" final="false" visibility="public"
  15634. deprecated="not deprecated">
  15635. <param name="args" type="java.lang.String"/>
  15636. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  15637. <doc>
  15638. <![CDATA[Verify that the given fencing method's arguments are valid.
  15639. @param args the arguments provided in the configuration. This may
  15640. be null if the operator did not configure any arguments.
  15641. @throws BadFencingConfigurationException if the arguments are invalid]]>
  15642. </doc>
  15643. </method>
  15644. <method name="tryFence" return="boolean"
  15645. abstract="false" native="false" synchronized="false"
  15646. static="false" final="false" visibility="public"
  15647. deprecated="not deprecated">
  15648. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  15649. <param name="args" type="java.lang.String"/>
  15650. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  15651. <doc>
  15652. <![CDATA[Attempt to fence the target node.
  15653. @param target the address (host:ipcport) of the service to fence
  15654. @param args the configured arguments, which were checked at startup by
  15655. {@link #checkArgs(String)}
  15656. @return true if fencing was successful, false if unsuccessful or
  15657. indeterminate
  15658. @throws BadFencingConfigurationException if the configuration was
  15659. determined to be invalid only at runtime]]>
  15660. </doc>
  15661. </method>
  15662. <doc>
  15663. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  15664. another node from making continued progress. This might be implemented
  15665. by killing a process on the other node, by denying the other node's
  15666. access to shared storage, or by accessing a PDU to cut the other node's
  15667. power.
  15668. <p>
  15669. Since these methods are often vendor- or device-specific, operators
  15670. may implement this interface in order to achieve fencing.
  15671. <p>
  15672. Fencing is configured by the operator as an ordered list of methods to
  15673. attempt. Each method will be tried in turn, and the next in the list
  15674. will only be attempted if the previous one fails. See {@link NodeFencer}
  15675. for more information.
  15676. <p>
  15677. If an implementation also implements {@link Configurable} then its
  15678. <code>setConf</code> method will be called upon instantiation.]]>
  15679. </doc>
  15680. </interface>
  15681. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  15682. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  15683. <interface name="HAServiceProtocol" abstract="true"
  15684. static="false" final="false" visibility="public"
  15685. deprecated="not deprecated">
  15686. <method name="monitorHealth"
  15687. abstract="false" native="false" synchronized="false"
  15688. static="false" final="false" visibility="public"
  15689. deprecated="not deprecated">
  15690. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  15691. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15692. <exception name="IOException" type="java.io.IOException"/>
  15693. <doc>
  15694. <![CDATA[Monitor the health of service. This periodically called by the HA
  15695. frameworks to monitor the health of the service.
  15696. Service is expected to perform checks to ensure it is functional.
  15697. If the service is not healthy due to failure or partial failure,
  15698. it is expected to throw {@link HealthCheckFailedException}.
  15699. The definition of service not healthy is left to the service.
  15700. Note that when health check of an Active service fails,
  15701. failover to standby may be done.
  15702. @throws HealthCheckFailedException
  15703. if the health check of a service fails.
  15704. @throws AccessControlException
  15705. if access is denied.
  15706. @throws IOException
  15707. if other errors happen]]>
  15708. </doc>
  15709. </method>
  15710. <method name="transitionToActive"
  15711. abstract="false" native="false" synchronized="false"
  15712. static="false" final="false" visibility="public"
  15713. deprecated="not deprecated">
  15714. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15715. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  15716. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15717. <exception name="IOException" type="java.io.IOException"/>
  15718. <doc>
  15719. <![CDATA[Request service to transition to active state. No operation, if the
  15720. service is already in active state.
  15721. @throws ServiceFailedException
  15722. if transition from standby to active fails.
  15723. @throws AccessControlException
  15724. if access is denied.
  15725. @throws IOException
  15726. if other errors happen]]>
  15727. </doc>
  15728. </method>
  15729. <method name="transitionToStandby"
  15730. abstract="false" native="false" synchronized="false"
  15731. static="false" final="false" visibility="public"
  15732. deprecated="not deprecated">
  15733. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15734. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  15735. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15736. <exception name="IOException" type="java.io.IOException"/>
  15737. <doc>
  15738. <![CDATA[Request service to transition to standby state. No operation, if the
  15739. service is already in standby state.
  15740. @throws ServiceFailedException
  15741. if transition from active to standby fails.
  15742. @throws AccessControlException
  15743. if access is denied.
  15744. @throws IOException
  15745. if other errors happen]]>
  15746. </doc>
  15747. </method>
  15748. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  15749. abstract="false" native="false" synchronized="false"
  15750. static="false" final="false" visibility="public"
  15751. deprecated="not deprecated">
  15752. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15753. <exception name="IOException" type="java.io.IOException"/>
  15754. <doc>
  15755. <![CDATA[Return the current status of the service. The status indicates
  15756. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  15757. some additional information.
  15758. @throws AccessControlException
  15759. if access is denied.
  15760. @throws IOException
  15761. if other errors happen
  15762. @see HAServiceStatus]]>
  15763. </doc>
  15764. </method>
  15765. <field name="versionID" type="long"
  15766. transient="false" volatile="false"
  15767. static="true" final="true" visibility="public"
  15768. deprecated="not deprecated">
  15769. <doc>
  15770. <![CDATA[Initial version of the protocol]]>
  15771. </doc>
  15772. </field>
  15773. <doc>
  15774. <![CDATA[Protocol interface that provides High Availability related primitives to
  15775. monitor and fail-over the service.
  15776. This interface could be used by HA frameworks to manage the service.]]>
  15777. </doc>
  15778. </interface>
  15779. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  15780. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  15781. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  15782. abstract="false"
  15783. static="false" final="false" visibility="public"
  15784. deprecated="not deprecated">
  15785. <constructor name="HAServiceProtocolHelper"
  15786. static="false" final="false" visibility="public"
  15787. deprecated="not deprecated">
  15788. </constructor>
  15789. <method name="monitorHealth"
  15790. abstract="false" native="false" synchronized="false"
  15791. static="true" final="false" visibility="public"
  15792. deprecated="not deprecated">
  15793. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  15794. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15795. <exception name="IOException" type="java.io.IOException"/>
  15796. </method>
  15797. <method name="transitionToActive"
  15798. abstract="false" native="false" synchronized="false"
  15799. static="true" final="false" visibility="public"
  15800. deprecated="not deprecated">
  15801. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  15802. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15803. <exception name="IOException" type="java.io.IOException"/>
  15804. </method>
  15805. <method name="transitionToStandby"
  15806. abstract="false" native="false" synchronized="false"
  15807. static="true" final="false" visibility="public"
  15808. deprecated="not deprecated">
  15809. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  15810. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15811. <exception name="IOException" type="java.io.IOException"/>
  15812. </method>
  15813. <doc>
  15814. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  15815. unwraps the {@link RemoteException} to specific exceptions.]]>
  15816. </doc>
  15817. </class>
  15818. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  15819. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  15820. <class name="HAServiceTarget" extends="java.lang.Object"
  15821. abstract="true"
  15822. static="false" final="false" visibility="public"
  15823. deprecated="not deprecated">
  15824. <constructor name="HAServiceTarget"
  15825. static="false" final="false" visibility="public"
  15826. deprecated="not deprecated">
  15827. </constructor>
  15828. <method name="getAddress" return="java.net.InetSocketAddress"
  15829. abstract="true" native="false" synchronized="false"
  15830. static="false" final="false" visibility="public"
  15831. deprecated="not deprecated">
  15832. <doc>
  15833. <![CDATA[@return the IPC address of the target node.]]>
  15834. </doc>
  15835. </method>
  15836. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  15837. abstract="false" native="false" synchronized="false"
  15838. static="false" final="false" visibility="public"
  15839. deprecated="not deprecated">
  15840. <doc>
  15841. <![CDATA[Returns an optional separate RPC server address for health checks at the
  15842. target node. If defined, then this address is used by the health monitor
  15843. for the {@link HAServiceProtocol#monitorHealth()} and
  15844. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  15845. separating out these calls onto separate RPC handlers to protect against
  15846. resource exhaustion in the main RPC handler pool. If null (which is the
  15847. default implementation), then all RPC calls go to the address defined by
  15848. {@link #getAddress()}.
  15849. @return IPC address of the lifeline RPC server on the target node, or null
  15850. if no lifeline RPC server is used]]>
  15851. </doc>
  15852. </method>
  15853. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  15854. abstract="true" native="false" synchronized="false"
  15855. static="false" final="false" visibility="public"
  15856. deprecated="not deprecated">
  15857. <doc>
  15858. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  15859. </doc>
  15860. </method>
  15861. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  15862. abstract="true" native="false" synchronized="false"
  15863. static="false" final="false" visibility="public"
  15864. deprecated="not deprecated">
  15865. <doc>
  15866. <![CDATA[@return a Fencer implementation configured for this target node]]>
  15867. </doc>
  15868. </method>
  15869. <method name="checkFencingConfigured"
  15870. abstract="true" native="false" synchronized="false"
  15871. static="false" final="false" visibility="public"
  15872. deprecated="not deprecated">
  15873. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  15874. <doc>
  15875. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  15876. appears to be invalid. This is divorced from the above
  15877. {@link #getFencer()} method so that the configuration can be checked
  15878. during the pre-flight phase of failover.]]>
  15879. </doc>
  15880. </method>
  15881. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  15882. abstract="false" native="false" synchronized="false"
  15883. static="false" final="false" visibility="public"
  15884. deprecated="not deprecated">
  15885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15886. <param name="timeoutMs" type="int"/>
  15887. <exception name="IOException" type="java.io.IOException"/>
  15888. <doc>
  15889. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  15890. </doc>
  15891. </method>
  15892. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  15893. abstract="false" native="false" synchronized="false"
  15894. static="false" final="false" visibility="public"
  15895. deprecated="not deprecated">
  15896. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15897. <param name="timeoutMs" type="int"/>
  15898. <exception name="IOException" type="java.io.IOException"/>
  15899. <doc>
  15900. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  15901. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  15902. address, then this proxy will connect to that address. Otherwise, the
  15903. returned proxy defaults to using {@link #getAddress()}, which means this
  15904. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  15905. @param conf Configuration
  15906. @param timeoutMs timeout in milliseconds
  15907. @return a proxy to connect to the target HA service for health monitoring
  15908. @throws IOException if there is an error]]>
  15909. </doc>
  15910. </method>
  15911. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  15912. abstract="false" native="false" synchronized="false"
  15913. static="false" final="false" visibility="public"
  15914. deprecated="not deprecated">
  15915. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15916. <param name="timeoutMs" type="int"/>
  15917. <exception name="IOException" type="java.io.IOException"/>
  15918. <doc>
  15919. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  15920. </doc>
  15921. </method>
  15922. <method name="getFencingParameters" return="java.util.Map"
  15923. abstract="false" native="false" synchronized="false"
  15924. static="false" final="true" visibility="public"
  15925. deprecated="not deprecated">
  15926. </method>
  15927. <method name="addFencingParameters"
  15928. abstract="false" native="false" synchronized="false"
  15929. static="false" final="false" visibility="protected"
  15930. deprecated="not deprecated">
  15931. <param name="ret" type="java.util.Map"/>
  15932. <doc>
  15933. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  15934. expose to fencing implementations/scripts. Fencing methods are free
  15935. to use this map as they see fit -- notably, the shell script
  15936. implementation takes each entry, prepends 'target_', substitutes
  15937. '_' for '.', and adds it to the environment of the script.
  15938. Subclass implementations should be sure to delegate to the superclass
  15939. implementation as well as adding their own keys.
  15940. @param ret map which can be mutated to pass parameters to the fencer]]>
  15941. </doc>
  15942. </method>
  15943. <method name="isAutoFailoverEnabled" return="boolean"
  15944. abstract="false" native="false" synchronized="false"
  15945. static="false" final="false" visibility="public"
  15946. deprecated="not deprecated">
  15947. <doc>
  15948. <![CDATA[@return true if auto failover should be considered enabled]]>
  15949. </doc>
  15950. </method>
  15951. <doc>
  15952. <![CDATA[Represents a target of the client side HA administration commands.]]>
  15953. </doc>
  15954. </class>
  15955. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  15956. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  15957. <class name="HealthCheckFailedException" extends="java.io.IOException"
  15958. abstract="false"
  15959. static="false" final="false" visibility="public"
  15960. deprecated="not deprecated">
  15961. <constructor name="HealthCheckFailedException" type="java.lang.String"
  15962. static="false" final="false" visibility="public"
  15963. deprecated="not deprecated">
  15964. </constructor>
  15965. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  15966. static="false" final="false" visibility="public"
  15967. deprecated="not deprecated">
  15968. </constructor>
  15969. <doc>
  15970. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  15971. </doc>
  15972. </class>
  15973. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  15974. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  15975. <class name="ServiceFailedException" extends="java.io.IOException"
  15976. abstract="false"
  15977. static="false" final="false" visibility="public"
  15978. deprecated="not deprecated">
  15979. <constructor name="ServiceFailedException" type="java.lang.String"
  15980. static="false" final="false" visibility="public"
  15981. deprecated="not deprecated">
  15982. </constructor>
  15983. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  15984. static="false" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. </constructor>
  15987. <doc>
  15988. <![CDATA[Exception thrown to indicate that an operation performed
  15989. to modify the state of a service or application failed.]]>
  15990. </doc>
  15991. </class>
  15992. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  15993. </package>
  15994. <package name="org.apache.hadoop.ha.protocolPB">
  15995. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  15996. <interface name="HAServiceProtocolPB" abstract="true"
  15997. static="false" final="false" visibility="public"
  15998. deprecated="not deprecated">
  15999. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  16000. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  16001. </interface>
  16002. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  16003. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  16004. <interface name="ZKFCProtocolPB" abstract="true"
  16005. static="false" final="false" visibility="public"
  16006. deprecated="not deprecated">
  16007. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  16008. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  16009. </interface>
  16010. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  16011. </package>
  16012. <package name="org.apache.hadoop.http.lib">
  16013. <doc>
  16014. <![CDATA[This package provides user-selectable (via configuration) classes that add
  16015. functionality to the web UI. They are configured as a list of classes in the
  16016. configuration parameter <b>hadoop.http.filter.initializers</b>.
  16017. <ul>
  16018. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  16019. users a static configured user.
  16020. </ul>]]>
  16021. </doc>
  16022. </package>
  16023. <package name="org.apache.hadoop.io">
  16024. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  16025. <class name="AbstractMapWritable" extends="java.lang.Object"
  16026. abstract="true"
  16027. static="false" final="false" visibility="public"
  16028. deprecated="not deprecated">
  16029. <implements name="org.apache.hadoop.io.Writable"/>
  16030. <implements name="org.apache.hadoop.conf.Configurable"/>
  16031. <constructor name="AbstractMapWritable"
  16032. static="false" final="false" visibility="protected"
  16033. deprecated="not deprecated">
  16034. <doc>
  16035. <![CDATA[constructor.]]>
  16036. </doc>
  16037. </constructor>
  16038. <method name="addToMap"
  16039. abstract="false" native="false" synchronized="true"
  16040. static="false" final="false" visibility="protected"
  16041. deprecated="not deprecated">
  16042. <param name="clazz" type="java.lang.Class"/>
  16043. <doc>
  16044. <![CDATA[Add a Class to the maps if it is not already present.]]>
  16045. </doc>
  16046. </method>
  16047. <method name="getClass" return="java.lang.Class"
  16048. abstract="false" native="false" synchronized="false"
  16049. static="false" final="false" visibility="protected"
  16050. deprecated="not deprecated">
  16051. <param name="id" type="byte"/>
  16052. <doc>
  16053. <![CDATA[@return the Class class for the specified id]]>
  16054. </doc>
  16055. </method>
  16056. <method name="getId" return="byte"
  16057. abstract="false" native="false" synchronized="false"
  16058. static="false" final="false" visibility="protected"
  16059. deprecated="not deprecated">
  16060. <param name="clazz" type="java.lang.Class"/>
  16061. <doc>
  16062. <![CDATA[@return the id for the specified Class]]>
  16063. </doc>
  16064. </method>
  16065. <method name="copy"
  16066. abstract="false" native="false" synchronized="true"
  16067. static="false" final="false" visibility="protected"
  16068. deprecated="not deprecated">
  16069. <param name="other" type="org.apache.hadoop.io.Writable"/>
  16070. <doc>
  16071. <![CDATA[Used by child copy constructors.]]>
  16072. </doc>
  16073. </method>
  16074. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16075. abstract="false" native="false" synchronized="false"
  16076. static="false" final="false" visibility="public"
  16077. deprecated="not deprecated">
  16078. <doc>
  16079. <![CDATA[@return the conf]]>
  16080. </doc>
  16081. </method>
  16082. <method name="setConf"
  16083. abstract="false" native="false" synchronized="false"
  16084. static="false" final="false" visibility="public"
  16085. deprecated="not deprecated">
  16086. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16087. <doc>
  16088. <![CDATA[@param conf the conf to set]]>
  16089. </doc>
  16090. </method>
  16091. <method name="write"
  16092. abstract="false" native="false" synchronized="false"
  16093. static="false" final="false" visibility="public"
  16094. deprecated="not deprecated">
  16095. <param name="out" type="java.io.DataOutput"/>
  16096. <exception name="IOException" type="java.io.IOException"/>
  16097. </method>
  16098. <method name="readFields"
  16099. abstract="false" native="false" synchronized="false"
  16100. static="false" final="false" visibility="public"
  16101. deprecated="not deprecated">
  16102. <param name="in" type="java.io.DataInput"/>
  16103. <exception name="IOException" type="java.io.IOException"/>
  16104. </method>
  16105. <doc>
  16106. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  16107. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  16108. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  16109. maps travel with the class instead of being static.
  16110. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  16111. in any specific map instance.]]>
  16112. </doc>
  16113. </class>
  16114. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  16115. <!-- start class org.apache.hadoop.io.ArrayFile -->
  16116. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  16117. abstract="false"
  16118. static="false" final="false" visibility="public"
  16119. deprecated="not deprecated">
  16120. <constructor name="ArrayFile"
  16121. static="false" final="false" visibility="protected"
  16122. deprecated="not deprecated">
  16123. </constructor>
  16124. <doc>
  16125. <![CDATA[A dense file-based mapping from integers to values.]]>
  16126. </doc>
  16127. </class>
  16128. <!-- end class org.apache.hadoop.io.ArrayFile -->
  16129. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16130. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  16131. abstract="false"
  16132. static="false" final="false" visibility="public"
  16133. deprecated="not deprecated">
  16134. <implements name="org.apache.hadoop.io.Writable"/>
  16135. <constructor name="ArrayPrimitiveWritable"
  16136. static="false" final="false" visibility="public"
  16137. deprecated="not deprecated">
  16138. <doc>
  16139. <![CDATA[Construct an empty instance, for use during Writable read]]>
  16140. </doc>
  16141. </constructor>
  16142. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  16143. static="false" final="false" visibility="public"
  16144. deprecated="not deprecated">
  16145. <doc>
  16146. <![CDATA[Construct an instance of known type but no value yet
  16147. for use with type-specific wrapper classes]]>
  16148. </doc>
  16149. </constructor>
  16150. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  16151. static="false" final="false" visibility="public"
  16152. deprecated="not deprecated">
  16153. <doc>
  16154. <![CDATA[Wrap an existing array of primitives
  16155. @param value - array of primitives]]>
  16156. </doc>
  16157. </constructor>
  16158. <method name="get" return="java.lang.Object"
  16159. abstract="false" native="false" synchronized="false"
  16160. static="false" final="false" visibility="public"
  16161. deprecated="not deprecated">
  16162. <doc>
  16163. <![CDATA[Get the original array.
  16164. Client must cast it back to type componentType[]
  16165. (or may use type-specific wrapper classes).
  16166. @return - original array as Object]]>
  16167. </doc>
  16168. </method>
  16169. <method name="getComponentType" return="java.lang.Class"
  16170. abstract="false" native="false" synchronized="false"
  16171. static="false" final="false" visibility="public"
  16172. deprecated="not deprecated">
  16173. </method>
  16174. <method name="getDeclaredComponentType" return="java.lang.Class"
  16175. abstract="false" native="false" synchronized="false"
  16176. static="false" final="false" visibility="public"
  16177. deprecated="not deprecated">
  16178. </method>
  16179. <method name="isDeclaredComponentType" return="boolean"
  16180. abstract="false" native="false" synchronized="false"
  16181. static="false" final="false" visibility="public"
  16182. deprecated="not deprecated">
  16183. <param name="componentType" type="java.lang.Class"/>
  16184. </method>
  16185. <method name="set"
  16186. abstract="false" native="false" synchronized="false"
  16187. static="false" final="false" visibility="public"
  16188. deprecated="not deprecated">
  16189. <param name="value" type="java.lang.Object"/>
  16190. </method>
  16191. <method name="write"
  16192. abstract="false" native="false" synchronized="false"
  16193. static="false" final="false" visibility="public"
  16194. deprecated="not deprecated">
  16195. <param name="out" type="java.io.DataOutput"/>
  16196. <exception name="IOException" type="java.io.IOException"/>
  16197. </method>
  16198. <method name="readFields"
  16199. abstract="false" native="false" synchronized="false"
  16200. static="false" final="false" visibility="public"
  16201. deprecated="not deprecated">
  16202. <param name="in" type="java.io.DataInput"/>
  16203. <exception name="IOException" type="java.io.IOException"/>
  16204. </method>
  16205. <doc>
  16206. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  16207. an array of primitives (e.g., int[], long[], etc.), with optimized
  16208. wire format, and without creating new objects per element.
  16209. This is a wrapper class only; it does not make a copy of the
  16210. underlying array.]]>
  16211. </doc>
  16212. </class>
  16213. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16214. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  16215. <class name="ArrayWritable" extends="java.lang.Object"
  16216. abstract="false"
  16217. static="false" final="false" visibility="public"
  16218. deprecated="not deprecated">
  16219. <implements name="org.apache.hadoop.io.Writable"/>
  16220. <constructor name="ArrayWritable" type="java.lang.Class"
  16221. static="false" final="false" visibility="public"
  16222. deprecated="not deprecated">
  16223. </constructor>
  16224. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  16225. static="false" final="false" visibility="public"
  16226. deprecated="not deprecated">
  16227. </constructor>
  16228. <constructor name="ArrayWritable" type="java.lang.String[]"
  16229. static="false" final="false" visibility="public"
  16230. deprecated="not deprecated">
  16231. </constructor>
  16232. <method name="getValueClass" return="java.lang.Class"
  16233. abstract="false" native="false" synchronized="false"
  16234. static="false" final="false" visibility="public"
  16235. deprecated="not deprecated">
  16236. </method>
  16237. <method name="toStrings" return="java.lang.String[]"
  16238. abstract="false" native="false" synchronized="false"
  16239. static="false" final="false" visibility="public"
  16240. deprecated="not deprecated">
  16241. </method>
  16242. <method name="toArray" return="java.lang.Object"
  16243. abstract="false" native="false" synchronized="false"
  16244. static="false" final="false" visibility="public"
  16245. deprecated="not deprecated">
  16246. </method>
  16247. <method name="set"
  16248. abstract="false" native="false" synchronized="false"
  16249. static="false" final="false" visibility="public"
  16250. deprecated="not deprecated">
  16251. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  16252. </method>
  16253. <method name="get" return="org.apache.hadoop.io.Writable[]"
  16254. abstract="false" native="false" synchronized="false"
  16255. static="false" final="false" visibility="public"
  16256. deprecated="not deprecated">
  16257. </method>
  16258. <method name="readFields"
  16259. abstract="false" native="false" synchronized="false"
  16260. static="false" final="false" visibility="public"
  16261. deprecated="not deprecated">
  16262. <param name="in" type="java.io.DataInput"/>
  16263. <exception name="IOException" type="java.io.IOException"/>
  16264. </method>
  16265. <method name="write"
  16266. abstract="false" native="false" synchronized="false"
  16267. static="false" final="false" visibility="public"
  16268. deprecated="not deprecated">
  16269. <param name="out" type="java.io.DataOutput"/>
  16270. <exception name="IOException" type="java.io.IOException"/>
  16271. </method>
  16272. <doc>
  16273. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  16274. writable must all be instances of the same class. If this writable will be
  16275. the input for a Reducer, you will need to create a subclass that sets the
  16276. value to be of the proper type.
  16277. For example:
  16278. <code>
  16279. public class IntArrayWritable extends ArrayWritable {
  16280. public IntArrayWritable() {
  16281. super(IntWritable.class);
  16282. }
  16283. }
  16284. </code>]]>
  16285. </doc>
  16286. </class>
  16287. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  16288. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  16289. <class name="BinaryComparable" extends="java.lang.Object"
  16290. abstract="true"
  16291. static="false" final="false" visibility="public"
  16292. deprecated="not deprecated">
  16293. <implements name="java.lang.Comparable"/>
  16294. <constructor name="BinaryComparable"
  16295. static="false" final="false" visibility="public"
  16296. deprecated="not deprecated">
  16297. </constructor>
  16298. <method name="getLength" return="int"
  16299. abstract="true" native="false" synchronized="false"
  16300. static="false" final="false" visibility="public"
  16301. deprecated="not deprecated">
  16302. <doc>
  16303. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  16304. </doc>
  16305. </method>
  16306. <method name="getBytes" return="byte[]"
  16307. abstract="true" native="false" synchronized="false"
  16308. static="false" final="false" visibility="public"
  16309. deprecated="not deprecated">
  16310. <doc>
  16311. <![CDATA[Return representative byte array for this instance.]]>
  16312. </doc>
  16313. </method>
  16314. <method name="compareTo" return="int"
  16315. abstract="false" native="false" synchronized="false"
  16316. static="false" final="false" visibility="public"
  16317. deprecated="not deprecated">
  16318. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  16319. <doc>
  16320. <![CDATA[Compare bytes from {#getBytes()}.
  16321. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  16322. </doc>
  16323. </method>
  16324. <method name="compareTo" return="int"
  16325. abstract="false" native="false" synchronized="false"
  16326. static="false" final="false" visibility="public"
  16327. deprecated="not deprecated">
  16328. <param name="other" type="byte[]"/>
  16329. <param name="off" type="int"/>
  16330. <param name="len" type="int"/>
  16331. <doc>
  16332. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  16333. </doc>
  16334. </method>
  16335. <method name="equals" return="boolean"
  16336. abstract="false" native="false" synchronized="false"
  16337. static="false" final="false" visibility="public"
  16338. deprecated="not deprecated">
  16339. <param name="other" type="java.lang.Object"/>
  16340. <doc>
  16341. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  16342. </doc>
  16343. </method>
  16344. <method name="hashCode" return="int"
  16345. abstract="false" native="false" synchronized="false"
  16346. static="false" final="false" visibility="public"
  16347. deprecated="not deprecated">
  16348. <doc>
  16349. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  16350. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  16351. </doc>
  16352. </method>
  16353. <doc>
  16354. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  16355. types supporting ordering/permutation by a representative set of bytes.]]>
  16356. </doc>
  16357. </class>
  16358. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  16359. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  16360. <class name="BloomMapFile" extends="java.lang.Object"
  16361. abstract="false"
  16362. static="false" final="false" visibility="public"
  16363. deprecated="not deprecated">
  16364. <constructor name="BloomMapFile"
  16365. static="false" final="false" visibility="public"
  16366. deprecated="not deprecated">
  16367. </constructor>
  16368. <method name="delete"
  16369. abstract="false" native="false" synchronized="false"
  16370. static="true" final="false" visibility="public"
  16371. deprecated="not deprecated">
  16372. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16373. <param name="name" type="java.lang.String"/>
  16374. <exception name="IOException" type="java.io.IOException"/>
  16375. </method>
  16376. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  16377. transient="false" volatile="false"
  16378. static="true" final="true" visibility="public"
  16379. deprecated="not deprecated">
  16380. </field>
  16381. <field name="HASH_COUNT" type="int"
  16382. transient="false" volatile="false"
  16383. static="true" final="true" visibility="public"
  16384. deprecated="not deprecated">
  16385. </field>
  16386. <doc>
  16387. <![CDATA[This class extends {@link MapFile} and provides very much the same
  16388. functionality. However, it uses dynamic Bloom filters to provide
  16389. quick membership test for keys, and it offers a fast version of
  16390. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  16391. case of sparsely populated MapFile-s.]]>
  16392. </doc>
  16393. </class>
  16394. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  16395. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  16396. <class name="BooleanWritable" extends="java.lang.Object"
  16397. abstract="false"
  16398. static="false" final="false" visibility="public"
  16399. deprecated="not deprecated">
  16400. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16401. <constructor name="BooleanWritable"
  16402. static="false" final="false" visibility="public"
  16403. deprecated="not deprecated">
  16404. </constructor>
  16405. <constructor name="BooleanWritable" type="boolean"
  16406. static="false" final="false" visibility="public"
  16407. deprecated="not deprecated">
  16408. </constructor>
  16409. <method name="set"
  16410. abstract="false" native="false" synchronized="false"
  16411. static="false" final="false" visibility="public"
  16412. deprecated="not deprecated">
  16413. <param name="value" type="boolean"/>
  16414. <doc>
  16415. <![CDATA[Set the value of the BooleanWritable]]>
  16416. </doc>
  16417. </method>
  16418. <method name="get" return="boolean"
  16419. abstract="false" native="false" synchronized="false"
  16420. static="false" final="false" visibility="public"
  16421. deprecated="not deprecated">
  16422. <doc>
  16423. <![CDATA[Returns the value of the BooleanWritable]]>
  16424. </doc>
  16425. </method>
  16426. <method name="readFields"
  16427. abstract="false" native="false" synchronized="false"
  16428. static="false" final="false" visibility="public"
  16429. deprecated="not deprecated">
  16430. <param name="in" type="java.io.DataInput"/>
  16431. <exception name="IOException" type="java.io.IOException"/>
  16432. </method>
  16433. <method name="write"
  16434. abstract="false" native="false" synchronized="false"
  16435. static="false" final="false" visibility="public"
  16436. deprecated="not deprecated">
  16437. <param name="out" type="java.io.DataOutput"/>
  16438. <exception name="IOException" type="java.io.IOException"/>
  16439. </method>
  16440. <method name="equals" return="boolean"
  16441. abstract="false" native="false" synchronized="false"
  16442. static="false" final="false" visibility="public"
  16443. deprecated="not deprecated">
  16444. <param name="o" type="java.lang.Object"/>
  16445. </method>
  16446. <method name="hashCode" return="int"
  16447. abstract="false" native="false" synchronized="false"
  16448. static="false" final="false" visibility="public"
  16449. deprecated="not deprecated">
  16450. </method>
  16451. <method name="compareTo" return="int"
  16452. abstract="false" native="false" synchronized="false"
  16453. static="false" final="false" visibility="public"
  16454. deprecated="not deprecated">
  16455. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  16456. </method>
  16457. <method name="toString" return="java.lang.String"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="false" final="false" visibility="public"
  16460. deprecated="not deprecated">
  16461. </method>
  16462. <doc>
  16463. <![CDATA[A WritableComparable for booleans.]]>
  16464. </doc>
  16465. </class>
  16466. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  16467. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  16468. <interface name="ByteBufferPool" abstract="true"
  16469. static="false" final="false" visibility="public"
  16470. deprecated="not deprecated">
  16471. <method name="getBuffer" return="java.nio.ByteBuffer"
  16472. abstract="false" native="false" synchronized="false"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. <param name="direct" type="boolean"/>
  16476. <param name="length" type="int"/>
  16477. <doc>
  16478. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  16479. removing a buffer from its internal cache, or by allocating a
  16480. new buffer.
  16481. @param direct Whether the buffer should be direct.
  16482. @param length The minimum length the buffer will have.
  16483. @return A new ByteBuffer. This ByteBuffer must be direct.
  16484. Its capacity can be less than what was requested, but
  16485. must be at least 1 byte.]]>
  16486. </doc>
  16487. </method>
  16488. <method name="putBuffer"
  16489. abstract="false" native="false" synchronized="false"
  16490. static="false" final="false" visibility="public"
  16491. deprecated="not deprecated">
  16492. <param name="buffer" type="java.nio.ByteBuffer"/>
  16493. <doc>
  16494. <![CDATA[Release a buffer back to the pool.
  16495. The pool may choose to put this buffer into its cache.
  16496. @param buffer a direct bytebuffer]]>
  16497. </doc>
  16498. </method>
  16499. </interface>
  16500. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  16501. <!-- start class org.apache.hadoop.io.BytesWritable -->
  16502. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  16503. abstract="false"
  16504. static="false" final="false" visibility="public"
  16505. deprecated="not deprecated">
  16506. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16507. <constructor name="BytesWritable"
  16508. static="false" final="false" visibility="public"
  16509. deprecated="not deprecated">
  16510. <doc>
  16511. <![CDATA[Create a zero-size sequence.]]>
  16512. </doc>
  16513. </constructor>
  16514. <constructor name="BytesWritable" type="byte[]"
  16515. static="false" final="false" visibility="public"
  16516. deprecated="not deprecated">
  16517. <doc>
  16518. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  16519. @param bytes This array becomes the backing storage for the object.]]>
  16520. </doc>
  16521. </constructor>
  16522. <constructor name="BytesWritable" type="byte[], int"
  16523. static="false" final="false" visibility="public"
  16524. deprecated="not deprecated">
  16525. <doc>
  16526. <![CDATA[Create a BytesWritable using the byte array as the initial value
  16527. and length as the length. Use this constructor if the array is larger
  16528. than the value it represents.
  16529. @param bytes This array becomes the backing storage for the object.
  16530. @param length The number of bytes to use from array.]]>
  16531. </doc>
  16532. </constructor>
  16533. <method name="copyBytes" return="byte[]"
  16534. abstract="false" native="false" synchronized="false"
  16535. static="false" final="false" visibility="public"
  16536. deprecated="not deprecated">
  16537. <doc>
  16538. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  16539. See {@link #getBytes()} for faster access to the underlying array.]]>
  16540. </doc>
  16541. </method>
  16542. <method name="getBytes" return="byte[]"
  16543. abstract="false" native="false" synchronized="false"
  16544. static="false" final="false" visibility="public"
  16545. deprecated="not deprecated">
  16546. <doc>
  16547. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  16548. if you need the returned array to be precisely the length of the data.
  16549. @return The data is only valid between 0 and getLength() - 1.]]>
  16550. </doc>
  16551. </method>
  16552. <method name="get" return="byte[]"
  16553. abstract="false" native="false" synchronized="false"
  16554. static="false" final="false" visibility="public"
  16555. deprecated="Use {@link #getBytes()} instead.">
  16556. <doc>
  16557. <![CDATA[Get the data from the BytesWritable.
  16558. @deprecated Use {@link #getBytes()} instead.]]>
  16559. </doc>
  16560. </method>
  16561. <method name="getLength" return="int"
  16562. abstract="false" native="false" synchronized="false"
  16563. static="false" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. <doc>
  16566. <![CDATA[Get the current size of the buffer.]]>
  16567. </doc>
  16568. </method>
  16569. <method name="getSize" return="int"
  16570. abstract="false" native="false" synchronized="false"
  16571. static="false" final="false" visibility="public"
  16572. deprecated="Use {@link #getLength()} instead.">
  16573. <doc>
  16574. <![CDATA[Get the current size of the buffer.
  16575. @deprecated Use {@link #getLength()} instead.]]>
  16576. </doc>
  16577. </method>
  16578. <method name="setSize"
  16579. abstract="false" native="false" synchronized="false"
  16580. static="false" final="false" visibility="public"
  16581. deprecated="not deprecated">
  16582. <param name="size" type="int"/>
  16583. <doc>
  16584. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  16585. and any new values are undefined. The capacity is changed if it is
  16586. necessary.
  16587. @param size The new number of bytes]]>
  16588. </doc>
  16589. </method>
  16590. <method name="getCapacity" return="int"
  16591. abstract="false" native="false" synchronized="false"
  16592. static="false" final="false" visibility="public"
  16593. deprecated="not deprecated">
  16594. <doc>
  16595. <![CDATA[Get the capacity, which is the maximum size that could handled without
  16596. resizing the backing storage.
  16597. @return The number of bytes]]>
  16598. </doc>
  16599. </method>
  16600. <method name="setCapacity"
  16601. abstract="false" native="false" synchronized="false"
  16602. static="false" final="false" visibility="public"
  16603. deprecated="not deprecated">
  16604. <param name="new_cap" type="int"/>
  16605. <doc>
  16606. <![CDATA[Change the capacity of the backing storage.
  16607. The data is preserved.
  16608. @param new_cap The new capacity in bytes.]]>
  16609. </doc>
  16610. </method>
  16611. <method name="set"
  16612. abstract="false" native="false" synchronized="false"
  16613. static="false" final="false" visibility="public"
  16614. deprecated="not deprecated">
  16615. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  16616. <doc>
  16617. <![CDATA[Set the BytesWritable to the contents of the given newData.
  16618. @param newData the value to set this BytesWritable to.]]>
  16619. </doc>
  16620. </method>
  16621. <method name="set"
  16622. abstract="false" native="false" synchronized="false"
  16623. static="false" final="false" visibility="public"
  16624. deprecated="not deprecated">
  16625. <param name="newData" type="byte[]"/>
  16626. <param name="offset" type="int"/>
  16627. <param name="length" type="int"/>
  16628. <doc>
  16629. <![CDATA[Set the value to a copy of the given byte range
  16630. @param newData the new values to copy in
  16631. @param offset the offset in newData to start at
  16632. @param length the number of bytes to copy]]>
  16633. </doc>
  16634. </method>
  16635. <method name="readFields"
  16636. abstract="false" native="false" synchronized="false"
  16637. static="false" final="false" visibility="public"
  16638. deprecated="not deprecated">
  16639. <param name="in" type="java.io.DataInput"/>
  16640. <exception name="IOException" type="java.io.IOException"/>
  16641. </method>
  16642. <method name="write"
  16643. abstract="false" native="false" synchronized="false"
  16644. static="false" final="false" visibility="public"
  16645. deprecated="not deprecated">
  16646. <param name="out" type="java.io.DataOutput"/>
  16647. <exception name="IOException" type="java.io.IOException"/>
  16648. </method>
  16649. <method name="hashCode" return="int"
  16650. abstract="false" native="false" synchronized="false"
  16651. static="false" final="false" visibility="public"
  16652. deprecated="not deprecated">
  16653. </method>
  16654. <method name="equals" return="boolean"
  16655. abstract="false" native="false" synchronized="false"
  16656. static="false" final="false" visibility="public"
  16657. deprecated="not deprecated">
  16658. <param name="right_obj" type="java.lang.Object"/>
  16659. <doc>
  16660. <![CDATA[Are the two byte sequences equal?]]>
  16661. </doc>
  16662. </method>
  16663. <method name="toString" return="java.lang.String"
  16664. abstract="false" native="false" synchronized="false"
  16665. static="false" final="false" visibility="public"
  16666. deprecated="not deprecated">
  16667. <doc>
  16668. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  16669. </doc>
  16670. </method>
  16671. <doc>
  16672. <![CDATA[A byte sequence that is usable as a key or value.
  16673. It is resizable and distinguishes between the size of the sequence and
  16674. the current capacity. The hash function is the front of the md5 of the
  16675. buffer. The sort order is the same as memcmp.]]>
  16676. </doc>
  16677. </class>
  16678. <!-- end class org.apache.hadoop.io.BytesWritable -->
  16679. <!-- start class org.apache.hadoop.io.ByteWritable -->
  16680. <class name="ByteWritable" extends="java.lang.Object"
  16681. abstract="false"
  16682. static="false" final="false" visibility="public"
  16683. deprecated="not deprecated">
  16684. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16685. <constructor name="ByteWritable"
  16686. static="false" final="false" visibility="public"
  16687. deprecated="not deprecated">
  16688. </constructor>
  16689. <constructor name="ByteWritable" type="byte"
  16690. static="false" final="false" visibility="public"
  16691. deprecated="not deprecated">
  16692. </constructor>
  16693. <method name="set"
  16694. abstract="false" native="false" synchronized="false"
  16695. static="false" final="false" visibility="public"
  16696. deprecated="not deprecated">
  16697. <param name="value" type="byte"/>
  16698. <doc>
  16699. <![CDATA[Set the value of this ByteWritable.]]>
  16700. </doc>
  16701. </method>
  16702. <method name="get" return="byte"
  16703. abstract="false" native="false" synchronized="false"
  16704. static="false" final="false" visibility="public"
  16705. deprecated="not deprecated">
  16706. <doc>
  16707. <![CDATA[Return the value of this ByteWritable.]]>
  16708. </doc>
  16709. </method>
  16710. <method name="readFields"
  16711. abstract="false" native="false" synchronized="false"
  16712. static="false" final="false" visibility="public"
  16713. deprecated="not deprecated">
  16714. <param name="in" type="java.io.DataInput"/>
  16715. <exception name="IOException" type="java.io.IOException"/>
  16716. </method>
  16717. <method name="write"
  16718. abstract="false" native="false" synchronized="false"
  16719. static="false" final="false" visibility="public"
  16720. deprecated="not deprecated">
  16721. <param name="out" type="java.io.DataOutput"/>
  16722. <exception name="IOException" type="java.io.IOException"/>
  16723. </method>
  16724. <method name="equals" return="boolean"
  16725. abstract="false" native="false" synchronized="false"
  16726. static="false" final="false" visibility="public"
  16727. deprecated="not deprecated">
  16728. <param name="o" type="java.lang.Object"/>
  16729. <doc>
  16730. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  16731. </doc>
  16732. </method>
  16733. <method name="hashCode" return="int"
  16734. abstract="false" native="false" synchronized="false"
  16735. static="false" final="false" visibility="public"
  16736. deprecated="not deprecated">
  16737. </method>
  16738. <method name="compareTo" return="int"
  16739. abstract="false" native="false" synchronized="false"
  16740. static="false" final="false" visibility="public"
  16741. deprecated="not deprecated">
  16742. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  16743. <doc>
  16744. <![CDATA[Compares two ByteWritables.]]>
  16745. </doc>
  16746. </method>
  16747. <method name="toString" return="java.lang.String"
  16748. abstract="false" native="false" synchronized="false"
  16749. static="false" final="false" visibility="public"
  16750. deprecated="not deprecated">
  16751. </method>
  16752. <doc>
  16753. <![CDATA[A WritableComparable for a single byte.]]>
  16754. </doc>
  16755. </class>
  16756. <!-- end class org.apache.hadoop.io.ByteWritable -->
  16757. <!-- start interface org.apache.hadoop.io.Closeable -->
  16758. <interface name="Closeable" abstract="true"
  16759. static="false" final="false" visibility="public"
  16760. deprecated="use java.io.Closeable">
  16761. <implements name="java.io.Closeable"/>
  16762. <doc>
  16763. <![CDATA[@deprecated use java.io.Closeable]]>
  16764. </doc>
  16765. </interface>
  16766. <!-- end interface org.apache.hadoop.io.Closeable -->
  16767. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  16768. <class name="CompressedWritable" extends="java.lang.Object"
  16769. abstract="true"
  16770. static="false" final="false" visibility="public"
  16771. deprecated="not deprecated">
  16772. <implements name="org.apache.hadoop.io.Writable"/>
  16773. <constructor name="CompressedWritable"
  16774. static="false" final="false" visibility="public"
  16775. deprecated="not deprecated">
  16776. </constructor>
  16777. <method name="readFields"
  16778. abstract="false" native="false" synchronized="false"
  16779. static="false" final="true" visibility="public"
  16780. deprecated="not deprecated">
  16781. <param name="in" type="java.io.DataInput"/>
  16782. <exception name="IOException" type="java.io.IOException"/>
  16783. </method>
  16784. <method name="ensureInflated"
  16785. abstract="false" native="false" synchronized="false"
  16786. static="false" final="false" visibility="protected"
  16787. deprecated="not deprecated">
  16788. <doc>
  16789. <![CDATA[Must be called by all methods which access fields to ensure that the data
  16790. has been uncompressed.]]>
  16791. </doc>
  16792. </method>
  16793. <method name="readFieldsCompressed"
  16794. abstract="true" native="false" synchronized="false"
  16795. static="false" final="false" visibility="protected"
  16796. deprecated="not deprecated">
  16797. <param name="in" type="java.io.DataInput"/>
  16798. <exception name="IOException" type="java.io.IOException"/>
  16799. <doc>
  16800. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  16801. </doc>
  16802. </method>
  16803. <method name="write"
  16804. abstract="false" native="false" synchronized="false"
  16805. static="false" final="true" visibility="public"
  16806. deprecated="not deprecated">
  16807. <param name="out" type="java.io.DataOutput"/>
  16808. <exception name="IOException" type="java.io.IOException"/>
  16809. </method>
  16810. <method name="writeCompressed"
  16811. abstract="true" native="false" synchronized="false"
  16812. static="false" final="false" visibility="protected"
  16813. deprecated="not deprecated">
  16814. <param name="out" type="java.io.DataOutput"/>
  16815. <exception name="IOException" type="java.io.IOException"/>
  16816. <doc>
  16817. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  16818. </doc>
  16819. </method>
  16820. <doc>
  16821. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  16822. inflate on field access. This is useful for large objects whose fields are
  16823. not be altered during a map or reduce operation: leaving the field data
  16824. compressed makes copying the instance from one file to another much
  16825. faster.]]>
  16826. </doc>
  16827. </class>
  16828. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  16829. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  16830. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  16831. abstract="false"
  16832. static="false" final="false" visibility="public"
  16833. deprecated="not deprecated">
  16834. <method name="constructOutputStream" return="java.io.OutputStream"
  16835. abstract="false" native="false" synchronized="false"
  16836. static="true" final="false" visibility="public"
  16837. deprecated="not deprecated">
  16838. <param name="out" type="java.io.DataOutput"/>
  16839. <doc>
  16840. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  16841. is already an OutputStream, simply returns it. Otherwise, wraps
  16842. it in an OutputStream.
  16843. @param out the DataOutput to wrap
  16844. @return an OutputStream instance that outputs to 'out']]>
  16845. </doc>
  16846. </method>
  16847. <method name="write"
  16848. abstract="false" native="false" synchronized="false"
  16849. static="false" final="false" visibility="public"
  16850. deprecated="not deprecated">
  16851. <param name="b" type="int"/>
  16852. <exception name="IOException" type="java.io.IOException"/>
  16853. </method>
  16854. <method name="write"
  16855. abstract="false" native="false" synchronized="false"
  16856. static="false" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. <param name="b" type="byte[]"/>
  16859. <param name="off" type="int"/>
  16860. <param name="len" type="int"/>
  16861. <exception name="IOException" type="java.io.IOException"/>
  16862. </method>
  16863. <method name="write"
  16864. abstract="false" native="false" synchronized="false"
  16865. static="false" final="false" visibility="public"
  16866. deprecated="not deprecated">
  16867. <param name="b" type="byte[]"/>
  16868. <exception name="IOException" type="java.io.IOException"/>
  16869. </method>
  16870. <doc>
  16871. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  16872. </doc>
  16873. </class>
  16874. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  16875. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  16876. <class name="DefaultStringifier" extends="java.lang.Object"
  16877. abstract="false"
  16878. static="false" final="false" visibility="public"
  16879. deprecated="not deprecated">
  16880. <implements name="org.apache.hadoop.io.Stringifier"/>
  16881. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  16882. static="false" final="false" visibility="public"
  16883. deprecated="not deprecated">
  16884. </constructor>
  16885. <method name="fromString" return="T"
  16886. abstract="false" native="false" synchronized="false"
  16887. static="false" final="false" visibility="public"
  16888. deprecated="not deprecated">
  16889. <param name="str" type="java.lang.String"/>
  16890. <exception name="IOException" type="java.io.IOException"/>
  16891. </method>
  16892. <method name="toString" return="java.lang.String"
  16893. abstract="false" native="false" synchronized="false"
  16894. static="false" final="false" visibility="public"
  16895. deprecated="not deprecated">
  16896. <param name="obj" type="T"/>
  16897. <exception name="IOException" type="java.io.IOException"/>
  16898. </method>
  16899. <method name="close"
  16900. abstract="false" native="false" synchronized="false"
  16901. static="false" final="false" visibility="public"
  16902. deprecated="not deprecated">
  16903. <exception name="IOException" type="java.io.IOException"/>
  16904. </method>
  16905. <method name="store"
  16906. abstract="false" native="false" synchronized="false"
  16907. static="true" final="false" visibility="public"
  16908. deprecated="not deprecated">
  16909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16910. <param name="item" type="K"/>
  16911. <param name="keyName" type="java.lang.String"/>
  16912. <exception name="IOException" type="java.io.IOException"/>
  16913. <doc>
  16914. <![CDATA[Stores the item in the configuration with the given keyName.
  16915. @param <K> the class of the item
  16916. @param conf the configuration to store
  16917. @param item the object to be stored
  16918. @param keyName the name of the key to use
  16919. @throws IOException : forwards Exceptions from the underlying
  16920. {@link Serialization} classes.]]>
  16921. </doc>
  16922. </method>
  16923. <method name="load" return="K"
  16924. abstract="false" native="false" synchronized="false"
  16925. static="true" final="false" visibility="public"
  16926. deprecated="not deprecated">
  16927. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16928. <param name="keyName" type="java.lang.String"/>
  16929. <param name="itemClass" type="java.lang.Class"/>
  16930. <exception name="IOException" type="java.io.IOException"/>
  16931. <doc>
  16932. <![CDATA[Restores the object from the configuration.
  16933. @param <K> the class of the item
  16934. @param conf the configuration to use
  16935. @param keyName the name of the key to use
  16936. @param itemClass the class of the item
  16937. @return restored object
  16938. @throws IOException : forwards Exceptions from the underlying
  16939. {@link Serialization} classes.]]>
  16940. </doc>
  16941. </method>
  16942. <method name="storeArray"
  16943. abstract="false" native="false" synchronized="false"
  16944. static="true" final="false" visibility="public"
  16945. deprecated="not deprecated">
  16946. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16947. <param name="items" type="K[]"/>
  16948. <param name="keyName" type="java.lang.String"/>
  16949. <exception name="IOException" type="java.io.IOException"/>
  16950. <doc>
  16951. <![CDATA[Stores the array of items in the configuration with the given keyName.
  16952. @param <K> the class of the item
  16953. @param conf the configuration to use
  16954. @param items the objects to be stored
  16955. @param keyName the name of the key to use
  16956. @throws IndexOutOfBoundsException if the items array is empty
  16957. @throws IOException : forwards Exceptions from the underlying
  16958. {@link Serialization} classes.]]>
  16959. </doc>
  16960. </method>
  16961. <method name="loadArray" return="K[]"
  16962. abstract="false" native="false" synchronized="false"
  16963. static="true" final="false" visibility="public"
  16964. deprecated="not deprecated">
  16965. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16966. <param name="keyName" type="java.lang.String"/>
  16967. <param name="itemClass" type="java.lang.Class"/>
  16968. <exception name="IOException" type="java.io.IOException"/>
  16969. <doc>
  16970. <![CDATA[Restores the array of objects from the configuration.
  16971. @param <K> the class of the item
  16972. @param conf the configuration to use
  16973. @param keyName the name of the key to use
  16974. @param itemClass the class of the item
  16975. @return restored object
  16976. @throws IOException : forwards Exceptions from the underlying
  16977. {@link Serialization} classes.]]>
  16978. </doc>
  16979. </method>
  16980. <doc>
  16981. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  16982. interface which stringifies the objects using base64 encoding of the
  16983. serialized version of the objects. The {@link Serializer} and
  16984. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  16985. <br>
  16986. DefaultStringifier offers convenience methods to store/load objects to/from
  16987. the configuration.
  16988. @param <T> the class of the objects to stringify]]>
  16989. </doc>
  16990. </class>
  16991. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  16992. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  16993. <class name="DoubleWritable" extends="java.lang.Object"
  16994. abstract="false"
  16995. static="false" final="false" visibility="public"
  16996. deprecated="not deprecated">
  16997. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16998. <constructor name="DoubleWritable"
  16999. static="false" final="false" visibility="public"
  17000. deprecated="not deprecated">
  17001. </constructor>
  17002. <constructor name="DoubleWritable" type="double"
  17003. static="false" final="false" visibility="public"
  17004. deprecated="not deprecated">
  17005. </constructor>
  17006. <method name="readFields"
  17007. abstract="false" native="false" synchronized="false"
  17008. static="false" final="false" visibility="public"
  17009. deprecated="not deprecated">
  17010. <param name="in" type="java.io.DataInput"/>
  17011. <exception name="IOException" type="java.io.IOException"/>
  17012. </method>
  17013. <method name="write"
  17014. abstract="false" native="false" synchronized="false"
  17015. static="false" final="false" visibility="public"
  17016. deprecated="not deprecated">
  17017. <param name="out" type="java.io.DataOutput"/>
  17018. <exception name="IOException" type="java.io.IOException"/>
  17019. </method>
  17020. <method name="set"
  17021. abstract="false" native="false" synchronized="false"
  17022. static="false" final="false" visibility="public"
  17023. deprecated="not deprecated">
  17024. <param name="value" type="double"/>
  17025. </method>
  17026. <method name="get" return="double"
  17027. abstract="false" native="false" synchronized="false"
  17028. static="false" final="false" visibility="public"
  17029. deprecated="not deprecated">
  17030. </method>
  17031. <method name="equals" return="boolean"
  17032. abstract="false" native="false" synchronized="false"
  17033. static="false" final="false" visibility="public"
  17034. deprecated="not deprecated">
  17035. <param name="o" type="java.lang.Object"/>
  17036. <doc>
  17037. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  17038. </doc>
  17039. </method>
  17040. <method name="hashCode" return="int"
  17041. abstract="false" native="false" synchronized="false"
  17042. static="false" final="false" visibility="public"
  17043. deprecated="not deprecated">
  17044. </method>
  17045. <method name="compareTo" return="int"
  17046. abstract="false" native="false" synchronized="false"
  17047. static="false" final="false" visibility="public"
  17048. deprecated="not deprecated">
  17049. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  17050. </method>
  17051. <method name="toString" return="java.lang.String"
  17052. abstract="false" native="false" synchronized="false"
  17053. static="false" final="false" visibility="public"
  17054. deprecated="not deprecated">
  17055. </method>
  17056. <doc>
  17057. <![CDATA[Writable for Double values.]]>
  17058. </doc>
  17059. </class>
  17060. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  17061. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  17062. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  17063. abstract="false"
  17064. static="false" final="true" visibility="public"
  17065. deprecated="not deprecated">
  17066. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  17067. <constructor name="ElasticByteBufferPool"
  17068. static="false" final="false" visibility="public"
  17069. deprecated="not deprecated">
  17070. </constructor>
  17071. <method name="getBuffer" return="java.nio.ByteBuffer"
  17072. abstract="false" native="false" synchronized="true"
  17073. static="false" final="false" visibility="public"
  17074. deprecated="not deprecated">
  17075. <param name="direct" type="boolean"/>
  17076. <param name="length" type="int"/>
  17077. </method>
  17078. <method name="putBuffer"
  17079. abstract="false" native="false" synchronized="true"
  17080. static="false" final="false" visibility="public"
  17081. deprecated="not deprecated">
  17082. <param name="buffer" type="java.nio.ByteBuffer"/>
  17083. </method>
  17084. <doc>
  17085. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  17086. It also caches ByteBuffers after they're released. It will always return
  17087. the smallest cached buffer with at least the capacity you request.
  17088. We don't try to do anything clever here like try to limit the maximum cache
  17089. size.]]>
  17090. </doc>
  17091. </class>
  17092. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  17093. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  17094. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  17095. abstract="false"
  17096. static="false" final="false" visibility="public"
  17097. deprecated="not deprecated">
  17098. <implements name="org.apache.hadoop.io.Writable"/>
  17099. <implements name="org.apache.hadoop.conf.Configurable"/>
  17100. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  17101. static="false" final="false" visibility="public"
  17102. deprecated="not deprecated">
  17103. <doc>
  17104. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  17105. its size is zero, the <tt>elementType</tt> argument must not be null. If
  17106. the argument <tt>value</tt>'s size is bigger than zero, the argument
  17107. <tt>elementType</tt> is not be used.
  17108. @param value
  17109. @param elementType]]>
  17110. </doc>
  17111. </constructor>
  17112. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  17113. static="false" final="false" visibility="public"
  17114. deprecated="not deprecated">
  17115. <doc>
  17116. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  17117. or empty.
  17118. @param value]]>
  17119. </doc>
  17120. </constructor>
  17121. <method name="iterator" return="java.util.Iterator"
  17122. abstract="false" native="false" synchronized="false"
  17123. static="false" final="false" visibility="public"
  17124. deprecated="not deprecated">
  17125. </method>
  17126. <method name="size" return="int"
  17127. abstract="false" native="false" synchronized="false"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. </method>
  17131. <method name="add" return="boolean"
  17132. abstract="false" native="false" synchronized="false"
  17133. static="false" final="false" visibility="public"
  17134. deprecated="not deprecated">
  17135. <param name="e" type="E"/>
  17136. </method>
  17137. <method name="set"
  17138. abstract="false" native="false" synchronized="false"
  17139. static="false" final="false" visibility="public"
  17140. deprecated="not deprecated">
  17141. <param name="value" type="java.util.EnumSet"/>
  17142. <param name="elementType" type="java.lang.Class"/>
  17143. <doc>
  17144. <![CDATA[reset the EnumSetWritable with specified
  17145. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  17146. is null or its size is zero, the <tt>elementType</tt> argument must not be
  17147. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  17148. argument <tt>elementType</tt> is not be used.
  17149. @param value
  17150. @param elementType]]>
  17151. </doc>
  17152. </method>
  17153. <method name="get" return="java.util.EnumSet"
  17154. abstract="false" native="false" synchronized="false"
  17155. static="false" final="false" visibility="public"
  17156. deprecated="not deprecated">
  17157. <doc>
  17158. <![CDATA[Return the value of this EnumSetWritable.]]>
  17159. </doc>
  17160. </method>
  17161. <method name="readFields"
  17162. abstract="false" native="false" synchronized="false"
  17163. static="false" final="false" visibility="public"
  17164. deprecated="not deprecated">
  17165. <param name="in" type="java.io.DataInput"/>
  17166. <exception name="IOException" type="java.io.IOException"/>
  17167. </method>
  17168. <method name="write"
  17169. abstract="false" native="false" synchronized="false"
  17170. static="false" final="false" visibility="public"
  17171. deprecated="not deprecated">
  17172. <param name="out" type="java.io.DataOutput"/>
  17173. <exception name="IOException" type="java.io.IOException"/>
  17174. </method>
  17175. <method name="equals" return="boolean"
  17176. abstract="false" native="false" synchronized="false"
  17177. static="false" final="false" visibility="public"
  17178. deprecated="not deprecated">
  17179. <param name="o" type="java.lang.Object"/>
  17180. <doc>
  17181. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  17182. or both are null.]]>
  17183. </doc>
  17184. </method>
  17185. <method name="getElementType" return="java.lang.Class"
  17186. abstract="false" native="false" synchronized="false"
  17187. static="false" final="false" visibility="public"
  17188. deprecated="not deprecated">
  17189. <doc>
  17190. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  17191. may return null.
  17192. @return the element class]]>
  17193. </doc>
  17194. </method>
  17195. <method name="hashCode" return="int"
  17196. abstract="false" native="false" synchronized="false"
  17197. static="false" final="false" visibility="public"
  17198. deprecated="not deprecated">
  17199. </method>
  17200. <method name="toString" return="java.lang.String"
  17201. abstract="false" native="false" synchronized="false"
  17202. static="false" final="false" visibility="public"
  17203. deprecated="not deprecated">
  17204. </method>
  17205. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17206. abstract="false" native="false" synchronized="false"
  17207. static="false" final="false" visibility="public"
  17208. deprecated="not deprecated">
  17209. </method>
  17210. <method name="setConf"
  17211. abstract="false" native="false" synchronized="false"
  17212. static="false" final="false" visibility="public"
  17213. deprecated="not deprecated">
  17214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17215. </method>
  17216. <doc>
  17217. <![CDATA[A Writable wrapper for EnumSet.]]>
  17218. </doc>
  17219. </class>
  17220. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  17221. <!-- start class org.apache.hadoop.io.FloatWritable -->
  17222. <class name="FloatWritable" extends="java.lang.Object"
  17223. abstract="false"
  17224. static="false" final="false" visibility="public"
  17225. deprecated="not deprecated">
  17226. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17227. <constructor name="FloatWritable"
  17228. static="false" final="false" visibility="public"
  17229. deprecated="not deprecated">
  17230. </constructor>
  17231. <constructor name="FloatWritable" type="float"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. </constructor>
  17235. <method name="set"
  17236. abstract="false" native="false" synchronized="false"
  17237. static="false" final="false" visibility="public"
  17238. deprecated="not deprecated">
  17239. <param name="value" type="float"/>
  17240. <doc>
  17241. <![CDATA[Set the value of this FloatWritable.]]>
  17242. </doc>
  17243. </method>
  17244. <method name="get" return="float"
  17245. abstract="false" native="false" synchronized="false"
  17246. static="false" final="false" visibility="public"
  17247. deprecated="not deprecated">
  17248. <doc>
  17249. <![CDATA[Return the value of this FloatWritable.]]>
  17250. </doc>
  17251. </method>
  17252. <method name="readFields"
  17253. abstract="false" native="false" synchronized="false"
  17254. static="false" final="false" visibility="public"
  17255. deprecated="not deprecated">
  17256. <param name="in" type="java.io.DataInput"/>
  17257. <exception name="IOException" type="java.io.IOException"/>
  17258. </method>
  17259. <method name="write"
  17260. abstract="false" native="false" synchronized="false"
  17261. static="false" final="false" visibility="public"
  17262. deprecated="not deprecated">
  17263. <param name="out" type="java.io.DataOutput"/>
  17264. <exception name="IOException" type="java.io.IOException"/>
  17265. </method>
  17266. <method name="equals" return="boolean"
  17267. abstract="false" native="false" synchronized="false"
  17268. static="false" final="false" visibility="public"
  17269. deprecated="not deprecated">
  17270. <param name="o" type="java.lang.Object"/>
  17271. <doc>
  17272. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  17273. </doc>
  17274. </method>
  17275. <method name="hashCode" return="int"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. </method>
  17280. <method name="compareTo" return="int"
  17281. abstract="false" native="false" synchronized="false"
  17282. static="false" final="false" visibility="public"
  17283. deprecated="not deprecated">
  17284. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  17285. <doc>
  17286. <![CDATA[Compares two FloatWritables.]]>
  17287. </doc>
  17288. </method>
  17289. <method name="toString" return="java.lang.String"
  17290. abstract="false" native="false" synchronized="false"
  17291. static="false" final="false" visibility="public"
  17292. deprecated="not deprecated">
  17293. </method>
  17294. <doc>
  17295. <![CDATA[A WritableComparable for floats.]]>
  17296. </doc>
  17297. </class>
  17298. <!-- end class org.apache.hadoop.io.FloatWritable -->
  17299. <!-- start class org.apache.hadoop.io.GenericWritable -->
  17300. <class name="GenericWritable" extends="java.lang.Object"
  17301. abstract="true"
  17302. static="false" final="false" visibility="public"
  17303. deprecated="not deprecated">
  17304. <implements name="org.apache.hadoop.io.Writable"/>
  17305. <implements name="org.apache.hadoop.conf.Configurable"/>
  17306. <constructor name="GenericWritable"
  17307. static="false" final="false" visibility="public"
  17308. deprecated="not deprecated">
  17309. </constructor>
  17310. <method name="set"
  17311. abstract="false" native="false" synchronized="false"
  17312. static="false" final="false" visibility="public"
  17313. deprecated="not deprecated">
  17314. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  17315. <doc>
  17316. <![CDATA[Set the instance that is wrapped.
  17317. @param obj]]>
  17318. </doc>
  17319. </method>
  17320. <method name="get" return="org.apache.hadoop.io.Writable"
  17321. abstract="false" native="false" synchronized="false"
  17322. static="false" final="false" visibility="public"
  17323. deprecated="not deprecated">
  17324. <doc>
  17325. <![CDATA[Return the wrapped instance.]]>
  17326. </doc>
  17327. </method>
  17328. <method name="toString" return="java.lang.String"
  17329. abstract="false" native="false" synchronized="false"
  17330. static="false" final="false" visibility="public"
  17331. deprecated="not deprecated">
  17332. </method>
  17333. <method name="readFields"
  17334. abstract="false" native="false" synchronized="false"
  17335. static="false" final="false" visibility="public"
  17336. deprecated="not deprecated">
  17337. <param name="in" type="java.io.DataInput"/>
  17338. <exception name="IOException" type="java.io.IOException"/>
  17339. </method>
  17340. <method name="write"
  17341. abstract="false" native="false" synchronized="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <param name="out" type="java.io.DataOutput"/>
  17345. <exception name="IOException" type="java.io.IOException"/>
  17346. </method>
  17347. <method name="getTypes" return="java.lang.Class[]"
  17348. abstract="true" native="false" synchronized="false"
  17349. static="false" final="false" visibility="protected"
  17350. deprecated="not deprecated">
  17351. <doc>
  17352. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  17353. to return a constant array of classes.]]>
  17354. </doc>
  17355. </method>
  17356. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17357. abstract="false" native="false" synchronized="false"
  17358. static="false" final="false" visibility="public"
  17359. deprecated="not deprecated">
  17360. </method>
  17361. <method name="setConf"
  17362. abstract="false" native="false" synchronized="false"
  17363. static="false" final="false" visibility="public"
  17364. deprecated="not deprecated">
  17365. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17366. </method>
  17367. <doc>
  17368. <![CDATA[A wrapper for Writable instances.
  17369. <p>
  17370. When two sequence files, which have same Key type but different Value
  17371. types, are mapped out to reduce, multiple Value types is not allowed.
  17372. In this case, this class can help you wrap instances with different types.
  17373. </p>
  17374. <p>
  17375. Compared with <code>ObjectWritable</code>, this class is much more effective,
  17376. because <code>ObjectWritable</code> will append the class declaration as a String
  17377. into the output file in every Key-Value pair.
  17378. </p>
  17379. <p>
  17380. Generic Writable implements {@link Configurable} interface, so that it will be
  17381. configured by the framework. The configuration is passed to the wrapped objects
  17382. implementing {@link Configurable} interface <i>before deserialization</i>.
  17383. </p>
  17384. how to use it: <br>
  17385. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  17386. 2. Implements the abstract method <code>getTypes()</code>, defines
  17387. the classes which will be wrapped in GenericObject in application.
  17388. Attention: this classes defined in <code>getTypes()</code> method, must
  17389. implement <code>Writable</code> interface.
  17390. <br><br>
  17391. The code looks like this:
  17392. <blockquote><pre>
  17393. public class GenericObject extends GenericWritable {
  17394. private static Class[] CLASSES = {
  17395. ClassType1.class,
  17396. ClassType2.class,
  17397. ClassType3.class,
  17398. };
  17399. protected Class[] getTypes() {
  17400. return CLASSES;
  17401. }
  17402. }
  17403. </pre></blockquote>
  17404. @since Nov 8, 2006]]>
  17405. </doc>
  17406. </class>
  17407. <!-- end class org.apache.hadoop.io.GenericWritable -->
  17408. <!-- start class org.apache.hadoop.io.IntWritable -->
  17409. <class name="IntWritable" extends="java.lang.Object"
  17410. abstract="false"
  17411. static="false" final="false" visibility="public"
  17412. deprecated="not deprecated">
  17413. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17414. <constructor name="IntWritable"
  17415. static="false" final="false" visibility="public"
  17416. deprecated="not deprecated">
  17417. </constructor>
  17418. <constructor name="IntWritable" type="int"
  17419. static="false" final="false" visibility="public"
  17420. deprecated="not deprecated">
  17421. </constructor>
  17422. <method name="set"
  17423. abstract="false" native="false" synchronized="false"
  17424. static="false" final="false" visibility="public"
  17425. deprecated="not deprecated">
  17426. <param name="value" type="int"/>
  17427. <doc>
  17428. <![CDATA[Set the value of this IntWritable.]]>
  17429. </doc>
  17430. </method>
  17431. <method name="get" return="int"
  17432. abstract="false" native="false" synchronized="false"
  17433. static="false" final="false" visibility="public"
  17434. deprecated="not deprecated">
  17435. <doc>
  17436. <![CDATA[Return the value of this IntWritable.]]>
  17437. </doc>
  17438. </method>
  17439. <method name="readFields"
  17440. abstract="false" native="false" synchronized="false"
  17441. static="false" final="false" visibility="public"
  17442. deprecated="not deprecated">
  17443. <param name="in" type="java.io.DataInput"/>
  17444. <exception name="IOException" type="java.io.IOException"/>
  17445. </method>
  17446. <method name="write"
  17447. abstract="false" native="false" synchronized="false"
  17448. static="false" final="false" visibility="public"
  17449. deprecated="not deprecated">
  17450. <param name="out" type="java.io.DataOutput"/>
  17451. <exception name="IOException" type="java.io.IOException"/>
  17452. </method>
  17453. <method name="equals" return="boolean"
  17454. abstract="false" native="false" synchronized="false"
  17455. static="false" final="false" visibility="public"
  17456. deprecated="not deprecated">
  17457. <param name="o" type="java.lang.Object"/>
  17458. <doc>
  17459. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  17460. </doc>
  17461. </method>
  17462. <method name="hashCode" return="int"
  17463. abstract="false" native="false" synchronized="false"
  17464. static="false" final="false" visibility="public"
  17465. deprecated="not deprecated">
  17466. </method>
  17467. <method name="compareTo" return="int"
  17468. abstract="false" native="false" synchronized="false"
  17469. static="false" final="false" visibility="public"
  17470. deprecated="not deprecated">
  17471. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  17472. <doc>
  17473. <![CDATA[Compares two IntWritables.]]>
  17474. </doc>
  17475. </method>
  17476. <method name="toString" return="java.lang.String"
  17477. abstract="false" native="false" synchronized="false"
  17478. static="false" final="false" visibility="public"
  17479. deprecated="not deprecated">
  17480. </method>
  17481. <doc>
  17482. <![CDATA[A WritableComparable for ints.]]>
  17483. </doc>
  17484. </class>
  17485. <!-- end class org.apache.hadoop.io.IntWritable -->
  17486. <!-- start class org.apache.hadoop.io.IOUtils -->
  17487. <class name="IOUtils" extends="java.lang.Object"
  17488. abstract="false"
  17489. static="false" final="false" visibility="public"
  17490. deprecated="not deprecated">
  17491. <constructor name="IOUtils"
  17492. static="false" final="false" visibility="public"
  17493. deprecated="not deprecated">
  17494. </constructor>
  17495. <method name="copyBytes"
  17496. abstract="false" native="false" synchronized="false"
  17497. static="true" final="false" visibility="public"
  17498. deprecated="not deprecated">
  17499. <param name="in" type="java.io.InputStream"/>
  17500. <param name="out" type="java.io.OutputStream"/>
  17501. <param name="buffSize" type="int"/>
  17502. <param name="close" type="boolean"/>
  17503. <exception name="IOException" type="java.io.IOException"/>
  17504. <doc>
  17505. <![CDATA[Copies from one stream to another.
  17506. @param in InputStrem to read from
  17507. @param out OutputStream to write to
  17508. @param buffSize the size of the buffer
  17509. @param close whether or not close the InputStream and
  17510. OutputStream at the end. The streams are closed in the finally clause.]]>
  17511. </doc>
  17512. </method>
  17513. <method name="copyBytes"
  17514. abstract="false" native="false" synchronized="false"
  17515. static="true" final="false" visibility="public"
  17516. deprecated="not deprecated">
  17517. <param name="in" type="java.io.InputStream"/>
  17518. <param name="out" type="java.io.OutputStream"/>
  17519. <param name="buffSize" type="int"/>
  17520. <exception name="IOException" type="java.io.IOException"/>
  17521. <doc>
  17522. <![CDATA[Copies from one stream to another.
  17523. @param in InputStrem to read from
  17524. @param out OutputStream to write to
  17525. @param buffSize the size of the buffer]]>
  17526. </doc>
  17527. </method>
  17528. <method name="copyBytes"
  17529. abstract="false" native="false" synchronized="false"
  17530. static="true" final="false" visibility="public"
  17531. deprecated="not deprecated">
  17532. <param name="in" type="java.io.InputStream"/>
  17533. <param name="out" type="java.io.OutputStream"/>
  17534. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17535. <exception name="IOException" type="java.io.IOException"/>
  17536. <doc>
  17537. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  17538. at the end</strong>.
  17539. @param in InputStrem to read from
  17540. @param out OutputStream to write to
  17541. @param conf the Configuration object]]>
  17542. </doc>
  17543. </method>
  17544. <method name="copyBytes"
  17545. abstract="false" native="false" synchronized="false"
  17546. static="true" final="false" visibility="public"
  17547. deprecated="not deprecated">
  17548. <param name="in" type="java.io.InputStream"/>
  17549. <param name="out" type="java.io.OutputStream"/>
  17550. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17551. <param name="close" type="boolean"/>
  17552. <exception name="IOException" type="java.io.IOException"/>
  17553. <doc>
  17554. <![CDATA[Copies from one stream to another.
  17555. @param in InputStream to read from
  17556. @param out OutputStream to write to
  17557. @param conf the Configuration object
  17558. @param close whether or not close the InputStream and
  17559. OutputStream at the end. The streams are closed in the finally clause.]]>
  17560. </doc>
  17561. </method>
  17562. <method name="copyBytes"
  17563. abstract="false" native="false" synchronized="false"
  17564. static="true" final="false" visibility="public"
  17565. deprecated="not deprecated">
  17566. <param name="in" type="java.io.InputStream"/>
  17567. <param name="out" type="java.io.OutputStream"/>
  17568. <param name="count" type="long"/>
  17569. <param name="close" type="boolean"/>
  17570. <exception name="IOException" type="java.io.IOException"/>
  17571. <doc>
  17572. <![CDATA[Copies count bytes from one stream to another.
  17573. @param in InputStream to read from
  17574. @param out OutputStream to write to
  17575. @param count number of bytes to copy
  17576. @param close whether to close the streams
  17577. @throws IOException if bytes can not be read or written]]>
  17578. </doc>
  17579. </method>
  17580. <method name="wrappedReadForCompressedData" return="int"
  17581. abstract="false" native="false" synchronized="false"
  17582. static="true" final="false" visibility="public"
  17583. deprecated="not deprecated">
  17584. <param name="is" type="java.io.InputStream"/>
  17585. <param name="buf" type="byte[]"/>
  17586. <param name="off" type="int"/>
  17587. <param name="len" type="int"/>
  17588. <exception name="IOException" type="java.io.IOException"/>
  17589. <doc>
  17590. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  17591. thrown by the underlying stream (either IO or decompression-related), and
  17592. re-throws as an IOException.
  17593. @param is - InputStream to be read from
  17594. @param buf - buffer the data is read into
  17595. @param off - offset within buf
  17596. @param len - amount of data to be read
  17597. @return number of bytes read]]>
  17598. </doc>
  17599. </method>
  17600. <method name="readFully"
  17601. abstract="false" native="false" synchronized="false"
  17602. static="true" final="false" visibility="public"
  17603. deprecated="not deprecated">
  17604. <param name="in" type="java.io.InputStream"/>
  17605. <param name="buf" type="byte[]"/>
  17606. <param name="off" type="int"/>
  17607. <param name="len" type="int"/>
  17608. <exception name="IOException" type="java.io.IOException"/>
  17609. <doc>
  17610. <![CDATA[Reads len bytes in a loop.
  17611. @param in InputStream to read from
  17612. @param buf The buffer to fill
  17613. @param off offset from the buffer
  17614. @param len the length of bytes to read
  17615. @throws IOException if it could not read requested number of bytes
  17616. for any reason (including EOF)]]>
  17617. </doc>
  17618. </method>
  17619. <method name="skipFully"
  17620. abstract="false" native="false" synchronized="false"
  17621. static="true" final="false" visibility="public"
  17622. deprecated="not deprecated">
  17623. <param name="in" type="java.io.InputStream"/>
  17624. <param name="len" type="long"/>
  17625. <exception name="IOException" type="java.io.IOException"/>
  17626. <doc>
  17627. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  17628. @param in The InputStream to skip bytes from
  17629. @param len number of bytes to skip.
  17630. @throws IOException if it could not skip requested number of bytes
  17631. for any reason (including EOF)]]>
  17632. </doc>
  17633. </method>
  17634. <method name="cleanup"
  17635. abstract="false" native="false" synchronized="false"
  17636. static="true" final="false" visibility="public"
  17637. deprecated="not deprecated">
  17638. <param name="log" type="org.apache.commons.logging.Log"/>
  17639. <param name="closeables" type="java.io.Closeable[]"/>
  17640. <doc>
  17641. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  17642. null pointers. Must only be used for cleanup in exception handlers.
  17643. @param log the log to record problems to at debug level. Can be null.
  17644. @param closeables the objects to close]]>
  17645. </doc>
  17646. </method>
  17647. <method name="closeStream"
  17648. abstract="false" native="false" synchronized="false"
  17649. static="true" final="false" visibility="public"
  17650. deprecated="not deprecated">
  17651. <param name="stream" type="java.io.Closeable"/>
  17652. <doc>
  17653. <![CDATA[Closes the stream ignoring {@link IOException}.
  17654. Must only be called in cleaning up from exception handlers.
  17655. @param stream the Stream to close]]>
  17656. </doc>
  17657. </method>
  17658. <method name="closeSocket"
  17659. abstract="false" native="false" synchronized="false"
  17660. static="true" final="false" visibility="public"
  17661. deprecated="not deprecated">
  17662. <param name="sock" type="java.net.Socket"/>
  17663. <doc>
  17664. <![CDATA[Closes the socket ignoring {@link IOException}
  17665. @param sock the Socket to close]]>
  17666. </doc>
  17667. </method>
  17668. <method name="writeFully"
  17669. abstract="false" native="false" synchronized="false"
  17670. static="true" final="false" visibility="public"
  17671. deprecated="not deprecated">
  17672. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  17673. <param name="buf" type="java.nio.ByteBuffer"/>
  17674. <exception name="IOException" type="java.io.IOException"/>
  17675. <doc>
  17676. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  17677. @param bc The WritableByteChannel to write to
  17678. @param buf The input buffer
  17679. @throws IOException On I/O error]]>
  17680. </doc>
  17681. </method>
  17682. <method name="writeFully"
  17683. abstract="false" native="false" synchronized="false"
  17684. static="true" final="false" visibility="public"
  17685. deprecated="not deprecated">
  17686. <param name="fc" type="java.nio.channels.FileChannel"/>
  17687. <param name="buf" type="java.nio.ByteBuffer"/>
  17688. <param name="offset" type="long"/>
  17689. <exception name="IOException" type="java.io.IOException"/>
  17690. <doc>
  17691. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  17692. handling short writes.
  17693. @param fc The FileChannel to write to
  17694. @param buf The input buffer
  17695. @param offset The offset in the file to start writing at
  17696. @throws IOException On I/O error]]>
  17697. </doc>
  17698. </method>
  17699. <method name="listDirectory" return="java.util.List"
  17700. abstract="false" native="false" synchronized="false"
  17701. static="true" final="false" visibility="public"
  17702. deprecated="not deprecated">
  17703. <param name="dir" type="java.io.File"/>
  17704. <param name="filter" type="java.io.FilenameFilter"/>
  17705. <exception name="IOException" type="java.io.IOException"/>
  17706. <doc>
  17707. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  17708. This is better than File#listDir because it does not ignore IOExceptions.
  17709. @param dir The directory to list.
  17710. @param filter If non-null, the filter to use when listing
  17711. this directory.
  17712. @return The list of files in the directory.
  17713. @throws IOException On I/O error]]>
  17714. </doc>
  17715. </method>
  17716. <method name="fsync"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="true" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. <param name="fileToSync" type="java.io.File"/>
  17721. <exception name="IOException" type="java.io.IOException"/>
  17722. <doc>
  17723. <![CDATA[Ensure that any writes to the given file is written to the storage device
  17724. that contains it. This method opens channel on given File and closes it
  17725. once the sync is done.<br>
  17726. Borrowed from Uwe Schindler in LUCENE-5588
  17727. @param fileToSync the file to fsync]]>
  17728. </doc>
  17729. </method>
  17730. <method name="fsync"
  17731. abstract="false" native="false" synchronized="false"
  17732. static="true" final="false" visibility="public"
  17733. deprecated="not deprecated">
  17734. <param name="channel" type="java.nio.channels.FileChannel"/>
  17735. <param name="isDir" type="boolean"/>
  17736. <exception name="IOException" type="java.io.IOException"/>
  17737. <doc>
  17738. <![CDATA[Ensure that any writes to the given file is written to the storage device
  17739. that contains it. This method opens channel on given File and closes it
  17740. once the sync is done.
  17741. Borrowed from Uwe Schindler in LUCENE-5588
  17742. @param channel Channel to sync
  17743. @param isDir if true, the given file is a directory (Channel should be
  17744. opened for read and ignore IOExceptions, because not all file
  17745. systems and operating systems allow to fsync on a directory)
  17746. @throws IOException]]>
  17747. </doc>
  17748. </method>
  17749. <doc>
  17750. <![CDATA[An utility class for I/O related functionality.]]>
  17751. </doc>
  17752. </class>
  17753. <!-- end class org.apache.hadoop.io.IOUtils -->
  17754. <!-- start class org.apache.hadoop.io.LongWritable -->
  17755. <class name="LongWritable" extends="java.lang.Object"
  17756. abstract="false"
  17757. static="false" final="false" visibility="public"
  17758. deprecated="not deprecated">
  17759. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17760. <constructor name="LongWritable"
  17761. static="false" final="false" visibility="public"
  17762. deprecated="not deprecated">
  17763. </constructor>
  17764. <constructor name="LongWritable" type="long"
  17765. static="false" final="false" visibility="public"
  17766. deprecated="not deprecated">
  17767. </constructor>
  17768. <method name="set"
  17769. abstract="false" native="false" synchronized="false"
  17770. static="false" final="false" visibility="public"
  17771. deprecated="not deprecated">
  17772. <param name="value" type="long"/>
  17773. <doc>
  17774. <![CDATA[Set the value of this LongWritable.]]>
  17775. </doc>
  17776. </method>
  17777. <method name="get" return="long"
  17778. abstract="false" native="false" synchronized="false"
  17779. static="false" final="false" visibility="public"
  17780. deprecated="not deprecated">
  17781. <doc>
  17782. <![CDATA[Return the value of this LongWritable.]]>
  17783. </doc>
  17784. </method>
  17785. <method name="readFields"
  17786. abstract="false" native="false" synchronized="false"
  17787. static="false" final="false" visibility="public"
  17788. deprecated="not deprecated">
  17789. <param name="in" type="java.io.DataInput"/>
  17790. <exception name="IOException" type="java.io.IOException"/>
  17791. </method>
  17792. <method name="write"
  17793. abstract="false" native="false" synchronized="false"
  17794. static="false" final="false" visibility="public"
  17795. deprecated="not deprecated">
  17796. <param name="out" type="java.io.DataOutput"/>
  17797. <exception name="IOException" type="java.io.IOException"/>
  17798. </method>
  17799. <method name="equals" return="boolean"
  17800. abstract="false" native="false" synchronized="false"
  17801. static="false" final="false" visibility="public"
  17802. deprecated="not deprecated">
  17803. <param name="o" type="java.lang.Object"/>
  17804. <doc>
  17805. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  17806. </doc>
  17807. </method>
  17808. <method name="hashCode" return="int"
  17809. abstract="false" native="false" synchronized="false"
  17810. static="false" final="false" visibility="public"
  17811. deprecated="not deprecated">
  17812. </method>
  17813. <method name="compareTo" return="int"
  17814. abstract="false" native="false" synchronized="false"
  17815. static="false" final="false" visibility="public"
  17816. deprecated="not deprecated">
  17817. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  17818. <doc>
  17819. <![CDATA[Compares two LongWritables.]]>
  17820. </doc>
  17821. </method>
  17822. <method name="toString" return="java.lang.String"
  17823. abstract="false" native="false" synchronized="false"
  17824. static="false" final="false" visibility="public"
  17825. deprecated="not deprecated">
  17826. </method>
  17827. <doc>
  17828. <![CDATA[A WritableComparable for longs.]]>
  17829. </doc>
  17830. </class>
  17831. <!-- end class org.apache.hadoop.io.LongWritable -->
  17832. <!-- start class org.apache.hadoop.io.MapFile -->
  17833. <class name="MapFile" extends="java.lang.Object"
  17834. abstract="false"
  17835. static="false" final="false" visibility="public"
  17836. deprecated="not deprecated">
  17837. <constructor name="MapFile"
  17838. static="false" final="false" visibility="protected"
  17839. deprecated="not deprecated">
  17840. </constructor>
  17841. <method name="rename"
  17842. abstract="false" native="false" synchronized="false"
  17843. static="true" final="false" visibility="public"
  17844. deprecated="not deprecated">
  17845. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17846. <param name="oldName" type="java.lang.String"/>
  17847. <param name="newName" type="java.lang.String"/>
  17848. <exception name="IOException" type="java.io.IOException"/>
  17849. <doc>
  17850. <![CDATA[Renames an existing map directory.]]>
  17851. </doc>
  17852. </method>
  17853. <method name="delete"
  17854. abstract="false" native="false" synchronized="false"
  17855. static="true" final="false" visibility="public"
  17856. deprecated="not deprecated">
  17857. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17858. <param name="name" type="java.lang.String"/>
  17859. <exception name="IOException" type="java.io.IOException"/>
  17860. <doc>
  17861. <![CDATA[Deletes the named map file.]]>
  17862. </doc>
  17863. </method>
  17864. <method name="fix" return="long"
  17865. abstract="false" native="false" synchronized="false"
  17866. static="true" final="false" visibility="public"
  17867. deprecated="not deprecated">
  17868. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17869. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  17870. <param name="keyClass" type="java.lang.Class"/>
  17871. <param name="valueClass" type="java.lang.Class"/>
  17872. <param name="dryrun" type="boolean"/>
  17873. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17874. <exception name="Exception" type="java.lang.Exception"/>
  17875. <doc>
  17876. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  17877. @param fs filesystem
  17878. @param dir directory containing the MapFile data and index
  17879. @param keyClass key class (has to be a subclass of Writable)
  17880. @param valueClass value class (has to be a subclass of Writable)
  17881. @param dryrun do not perform any changes, just report what needs to be done
  17882. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  17883. @throws Exception]]>
  17884. </doc>
  17885. </method>
  17886. <method name="main"
  17887. abstract="false" native="false" synchronized="false"
  17888. static="true" final="false" visibility="public"
  17889. deprecated="not deprecated">
  17890. <param name="args" type="java.lang.String[]"/>
  17891. <exception name="Exception" type="java.lang.Exception"/>
  17892. </method>
  17893. <field name="INDEX_FILE_NAME" type="java.lang.String"
  17894. transient="false" volatile="false"
  17895. static="true" final="true" visibility="public"
  17896. deprecated="not deprecated">
  17897. <doc>
  17898. <![CDATA[The name of the index file.]]>
  17899. </doc>
  17900. </field>
  17901. <field name="DATA_FILE_NAME" type="java.lang.String"
  17902. transient="false" volatile="false"
  17903. static="true" final="true" visibility="public"
  17904. deprecated="not deprecated">
  17905. <doc>
  17906. <![CDATA[The name of the data file.]]>
  17907. </doc>
  17908. </field>
  17909. <doc>
  17910. <![CDATA[A file-based map from keys to values.
  17911. <p>A map is a directory containing two files, the <code>data</code> file,
  17912. containing all keys and values in the map, and a smaller <code>index</code>
  17913. file, containing a fraction of the keys. The fraction is determined by
  17914. {@link Writer#getIndexInterval()}.
  17915. <p>The index file is read entirely into memory. Thus key implementations
  17916. should try to keep themselves small.
  17917. <p>Map files are created by adding entries in-order. To maintain a large
  17918. database, perform updates by copying the previous version of a database and
  17919. merging in a sorted change list, to create a new version of the database in
  17920. a new file. Sorting large change lists can be done with {@link
  17921. SequenceFile.Sorter}.]]>
  17922. </doc>
  17923. </class>
  17924. <!-- end class org.apache.hadoop.io.MapFile -->
  17925. <!-- start class org.apache.hadoop.io.MapWritable -->
  17926. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  17927. abstract="false"
  17928. static="false" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. <implements name="java.util.Map"/>
  17931. <constructor name="MapWritable"
  17932. static="false" final="false" visibility="public"
  17933. deprecated="not deprecated">
  17934. <doc>
  17935. <![CDATA[Default constructor.]]>
  17936. </doc>
  17937. </constructor>
  17938. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. <doc>
  17942. <![CDATA[Copy constructor.
  17943. @param other the map to copy from]]>
  17944. </doc>
  17945. </constructor>
  17946. <method name="clear"
  17947. abstract="false" native="false" synchronized="false"
  17948. static="false" final="false" visibility="public"
  17949. deprecated="not deprecated">
  17950. </method>
  17951. <method name="containsKey" return="boolean"
  17952. abstract="false" native="false" synchronized="false"
  17953. static="false" final="false" visibility="public"
  17954. deprecated="not deprecated">
  17955. <param name="key" type="java.lang.Object"/>
  17956. </method>
  17957. <method name="containsValue" return="boolean"
  17958. abstract="false" native="false" synchronized="false"
  17959. static="false" final="false" visibility="public"
  17960. deprecated="not deprecated">
  17961. <param name="value" type="java.lang.Object"/>
  17962. </method>
  17963. <method name="entrySet" return="java.util.Set"
  17964. abstract="false" native="false" synchronized="false"
  17965. static="false" final="false" visibility="public"
  17966. deprecated="not deprecated">
  17967. </method>
  17968. <method name="equals" return="boolean"
  17969. abstract="false" native="false" synchronized="false"
  17970. static="false" final="false" visibility="public"
  17971. deprecated="not deprecated">
  17972. <param name="obj" type="java.lang.Object"/>
  17973. </method>
  17974. <method name="get" return="org.apache.hadoop.io.Writable"
  17975. abstract="false" native="false" synchronized="false"
  17976. static="false" final="false" visibility="public"
  17977. deprecated="not deprecated">
  17978. <param name="key" type="java.lang.Object"/>
  17979. </method>
  17980. <method name="hashCode" return="int"
  17981. abstract="false" native="false" synchronized="false"
  17982. static="false" final="false" visibility="public"
  17983. deprecated="not deprecated">
  17984. </method>
  17985. <method name="isEmpty" return="boolean"
  17986. abstract="false" native="false" synchronized="false"
  17987. static="false" final="false" visibility="public"
  17988. deprecated="not deprecated">
  17989. </method>
  17990. <method name="keySet" return="java.util.Set"
  17991. abstract="false" native="false" synchronized="false"
  17992. static="false" final="false" visibility="public"
  17993. deprecated="not deprecated">
  17994. </method>
  17995. <method name="put" return="org.apache.hadoop.io.Writable"
  17996. abstract="false" native="false" synchronized="false"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. <param name="key" type="org.apache.hadoop.io.Writable"/>
  18000. <param name="value" type="org.apache.hadoop.io.Writable"/>
  18001. </method>
  18002. <method name="putAll"
  18003. abstract="false" native="false" synchronized="false"
  18004. static="false" final="false" visibility="public"
  18005. deprecated="not deprecated">
  18006. <param name="t" type="java.util.Map"/>
  18007. </method>
  18008. <method name="remove" return="org.apache.hadoop.io.Writable"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. <param name="key" type="java.lang.Object"/>
  18013. </method>
  18014. <method name="size" return="int"
  18015. abstract="false" native="false" synchronized="false"
  18016. static="false" final="false" visibility="public"
  18017. deprecated="not deprecated">
  18018. </method>
  18019. <method name="values" return="java.util.Collection"
  18020. abstract="false" native="false" synchronized="false"
  18021. static="false" final="false" visibility="public"
  18022. deprecated="not deprecated">
  18023. </method>
  18024. <method name="write"
  18025. abstract="false" native="false" synchronized="false"
  18026. static="false" final="false" visibility="public"
  18027. deprecated="not deprecated">
  18028. <param name="out" type="java.io.DataOutput"/>
  18029. <exception name="IOException" type="java.io.IOException"/>
  18030. </method>
  18031. <method name="readFields"
  18032. abstract="false" native="false" synchronized="false"
  18033. static="false" final="false" visibility="public"
  18034. deprecated="not deprecated">
  18035. <param name="in" type="java.io.DataInput"/>
  18036. <exception name="IOException" type="java.io.IOException"/>
  18037. </method>
  18038. <method name="toString" return="java.lang.String"
  18039. abstract="false" native="false" synchronized="false"
  18040. static="false" final="false" visibility="public"
  18041. deprecated="not deprecated">
  18042. </method>
  18043. <doc>
  18044. <![CDATA[A Writable Map.]]>
  18045. </doc>
  18046. </class>
  18047. <!-- end class org.apache.hadoop.io.MapWritable -->
  18048. <!-- start class org.apache.hadoop.io.MD5Hash -->
  18049. <class name="MD5Hash" extends="java.lang.Object"
  18050. abstract="false"
  18051. static="false" final="false" visibility="public"
  18052. deprecated="not deprecated">
  18053. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18054. <constructor name="MD5Hash"
  18055. static="false" final="false" visibility="public"
  18056. deprecated="not deprecated">
  18057. <doc>
  18058. <![CDATA[Constructs an MD5Hash.]]>
  18059. </doc>
  18060. </constructor>
  18061. <constructor name="MD5Hash" type="java.lang.String"
  18062. static="false" final="false" visibility="public"
  18063. deprecated="not deprecated">
  18064. <doc>
  18065. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  18066. </doc>
  18067. </constructor>
  18068. <constructor name="MD5Hash" type="byte[]"
  18069. static="false" final="false" visibility="public"
  18070. deprecated="not deprecated">
  18071. <doc>
  18072. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  18073. </doc>
  18074. </constructor>
  18075. <method name="readFields"
  18076. abstract="false" native="false" synchronized="false"
  18077. static="false" final="false" visibility="public"
  18078. deprecated="not deprecated">
  18079. <param name="in" type="java.io.DataInput"/>
  18080. <exception name="IOException" type="java.io.IOException"/>
  18081. </method>
  18082. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  18083. abstract="false" native="false" synchronized="false"
  18084. static="true" final="false" visibility="public"
  18085. deprecated="not deprecated">
  18086. <param name="in" type="java.io.DataInput"/>
  18087. <exception name="IOException" type="java.io.IOException"/>
  18088. <doc>
  18089. <![CDATA[Constructs, reads and returns an instance.]]>
  18090. </doc>
  18091. </method>
  18092. <method name="write"
  18093. abstract="false" native="false" synchronized="false"
  18094. static="false" final="false" visibility="public"
  18095. deprecated="not deprecated">
  18096. <param name="out" type="java.io.DataOutput"/>
  18097. <exception name="IOException" type="java.io.IOException"/>
  18098. </method>
  18099. <method name="set"
  18100. abstract="false" native="false" synchronized="false"
  18101. static="false" final="false" visibility="public"
  18102. deprecated="not deprecated">
  18103. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18104. <doc>
  18105. <![CDATA[Copy the contents of another instance into this instance.]]>
  18106. </doc>
  18107. </method>
  18108. <method name="getDigest" return="byte[]"
  18109. abstract="false" native="false" synchronized="false"
  18110. static="false" final="false" visibility="public"
  18111. deprecated="not deprecated">
  18112. <doc>
  18113. <![CDATA[Returns the digest bytes.]]>
  18114. </doc>
  18115. </method>
  18116. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18117. abstract="false" native="false" synchronized="false"
  18118. static="true" final="false" visibility="public"
  18119. deprecated="not deprecated">
  18120. <param name="data" type="byte[]"/>
  18121. <doc>
  18122. <![CDATA[Construct a hash value for a byte array.]]>
  18123. </doc>
  18124. </method>
  18125. <method name="getDigester" return="java.security.MessageDigest"
  18126. abstract="false" native="false" synchronized="false"
  18127. static="true" final="false" visibility="public"
  18128. deprecated="not deprecated">
  18129. <doc>
  18130. <![CDATA[Create a thread local MD5 digester]]>
  18131. </doc>
  18132. </method>
  18133. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18134. abstract="false" native="false" synchronized="false"
  18135. static="true" final="false" visibility="public"
  18136. deprecated="not deprecated">
  18137. <param name="in" type="java.io.InputStream"/>
  18138. <exception name="IOException" type="java.io.IOException"/>
  18139. <doc>
  18140. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  18141. </doc>
  18142. </method>
  18143. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18144. abstract="false" native="false" synchronized="false"
  18145. static="true" final="false" visibility="public"
  18146. deprecated="not deprecated">
  18147. <param name="data" type="byte[]"/>
  18148. <param name="start" type="int"/>
  18149. <param name="len" type="int"/>
  18150. <doc>
  18151. <![CDATA[Construct a hash value for a byte array.]]>
  18152. </doc>
  18153. </method>
  18154. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18155. abstract="false" native="false" synchronized="false"
  18156. static="true" final="false" visibility="public"
  18157. deprecated="not deprecated">
  18158. <param name="string" type="java.lang.String"/>
  18159. <doc>
  18160. <![CDATA[Construct a hash value for a String.]]>
  18161. </doc>
  18162. </method>
  18163. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18164. abstract="false" native="false" synchronized="false"
  18165. static="true" final="false" visibility="public"
  18166. deprecated="not deprecated">
  18167. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  18168. <doc>
  18169. <![CDATA[Construct a hash value for a String.]]>
  18170. </doc>
  18171. </method>
  18172. <method name="halfDigest" return="long"
  18173. abstract="false" native="false" synchronized="false"
  18174. static="false" final="false" visibility="public"
  18175. deprecated="not deprecated">
  18176. <doc>
  18177. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  18178. </doc>
  18179. </method>
  18180. <method name="quarterDigest" return="int"
  18181. abstract="false" native="false" synchronized="false"
  18182. static="false" final="false" visibility="public"
  18183. deprecated="not deprecated">
  18184. <doc>
  18185. <![CDATA[Return a 32-bit digest of the MD5.
  18186. @return the first 4 bytes of the md5]]>
  18187. </doc>
  18188. </method>
  18189. <method name="equals" return="boolean"
  18190. abstract="false" native="false" synchronized="false"
  18191. static="false" final="false" visibility="public"
  18192. deprecated="not deprecated">
  18193. <param name="o" type="java.lang.Object"/>
  18194. <doc>
  18195. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  18196. same values.]]>
  18197. </doc>
  18198. </method>
  18199. <method name="hashCode" return="int"
  18200. abstract="false" native="false" synchronized="false"
  18201. static="false" final="false" visibility="public"
  18202. deprecated="not deprecated">
  18203. <doc>
  18204. <![CDATA[Returns a hash code value for this object.
  18205. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  18206. </doc>
  18207. </method>
  18208. <method name="compareTo" return="int"
  18209. abstract="false" native="false" synchronized="false"
  18210. static="false" final="false" visibility="public"
  18211. deprecated="not deprecated">
  18212. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18213. <doc>
  18214. <![CDATA[Compares this object with the specified object for order.]]>
  18215. </doc>
  18216. </method>
  18217. <method name="toString" return="java.lang.String"
  18218. abstract="false" native="false" synchronized="false"
  18219. static="false" final="false" visibility="public"
  18220. deprecated="not deprecated">
  18221. <doc>
  18222. <![CDATA[Returns a string representation of this object.]]>
  18223. </doc>
  18224. </method>
  18225. <method name="setDigest"
  18226. abstract="false" native="false" synchronized="false"
  18227. static="false" final="false" visibility="public"
  18228. deprecated="not deprecated">
  18229. <param name="hex" type="java.lang.String"/>
  18230. <doc>
  18231. <![CDATA[Sets the digest value from a hex string.]]>
  18232. </doc>
  18233. </method>
  18234. <field name="MD5_LEN" type="int"
  18235. transient="false" volatile="false"
  18236. static="true" final="true" visibility="public"
  18237. deprecated="not deprecated">
  18238. </field>
  18239. <doc>
  18240. <![CDATA[A Writable for MD5 hash values.]]>
  18241. </doc>
  18242. </class>
  18243. <!-- end class org.apache.hadoop.io.MD5Hash -->
  18244. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  18245. <class name="MultipleIOException" extends="java.io.IOException"
  18246. abstract="false"
  18247. static="false" final="false" visibility="public"
  18248. deprecated="not deprecated">
  18249. <method name="getExceptions" return="java.util.List"
  18250. abstract="false" native="false" synchronized="false"
  18251. static="false" final="false" visibility="public"
  18252. deprecated="not deprecated">
  18253. <doc>
  18254. <![CDATA[@return the underlying exceptions]]>
  18255. </doc>
  18256. </method>
  18257. <method name="createIOException" return="java.io.IOException"
  18258. abstract="false" native="false" synchronized="false"
  18259. static="true" final="false" visibility="public"
  18260. deprecated="not deprecated">
  18261. <param name="exceptions" type="java.util.List"/>
  18262. <doc>
  18263. <![CDATA[A convenient method to create an {@link IOException}.]]>
  18264. </doc>
  18265. </method>
  18266. <doc>
  18267. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  18268. </doc>
  18269. </class>
  18270. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  18271. <!-- start class org.apache.hadoop.io.NullWritable -->
  18272. <class name="NullWritable" extends="java.lang.Object"
  18273. abstract="false"
  18274. static="false" final="false" visibility="public"
  18275. deprecated="not deprecated">
  18276. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18277. <method name="get" return="org.apache.hadoop.io.NullWritable"
  18278. abstract="false" native="false" synchronized="false"
  18279. static="true" final="false" visibility="public"
  18280. deprecated="not deprecated">
  18281. <doc>
  18282. <![CDATA[Returns the single instance of this class.]]>
  18283. </doc>
  18284. </method>
  18285. <method name="toString" return="java.lang.String"
  18286. abstract="false" native="false" synchronized="false"
  18287. static="false" final="false" visibility="public"
  18288. deprecated="not deprecated">
  18289. </method>
  18290. <method name="hashCode" return="int"
  18291. abstract="false" native="false" synchronized="false"
  18292. static="false" final="false" visibility="public"
  18293. deprecated="not deprecated">
  18294. </method>
  18295. <method name="compareTo" return="int"
  18296. abstract="false" native="false" synchronized="false"
  18297. static="false" final="false" visibility="public"
  18298. deprecated="not deprecated">
  18299. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  18300. </method>
  18301. <method name="equals" return="boolean"
  18302. abstract="false" native="false" synchronized="false"
  18303. static="false" final="false" visibility="public"
  18304. deprecated="not deprecated">
  18305. <param name="other" type="java.lang.Object"/>
  18306. </method>
  18307. <method name="readFields"
  18308. abstract="false" native="false" synchronized="false"
  18309. static="false" final="false" visibility="public"
  18310. deprecated="not deprecated">
  18311. <param name="in" type="java.io.DataInput"/>
  18312. <exception name="IOException" type="java.io.IOException"/>
  18313. </method>
  18314. <method name="write"
  18315. abstract="false" native="false" synchronized="false"
  18316. static="false" final="false" visibility="public"
  18317. deprecated="not deprecated">
  18318. <param name="out" type="java.io.DataOutput"/>
  18319. <exception name="IOException" type="java.io.IOException"/>
  18320. </method>
  18321. <doc>
  18322. <![CDATA[Singleton Writable with no data.]]>
  18323. </doc>
  18324. </class>
  18325. <!-- end class org.apache.hadoop.io.NullWritable -->
  18326. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  18327. <class name="ObjectWritable" extends="java.lang.Object"
  18328. abstract="false"
  18329. static="false" final="false" visibility="public"
  18330. deprecated="not deprecated">
  18331. <implements name="org.apache.hadoop.io.Writable"/>
  18332. <implements name="org.apache.hadoop.conf.Configurable"/>
  18333. <constructor name="ObjectWritable"
  18334. static="false" final="false" visibility="public"
  18335. deprecated="not deprecated">
  18336. </constructor>
  18337. <constructor name="ObjectWritable" type="java.lang.Object"
  18338. static="false" final="false" visibility="public"
  18339. deprecated="not deprecated">
  18340. </constructor>
  18341. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  18342. static="false" final="false" visibility="public"
  18343. deprecated="not deprecated">
  18344. </constructor>
  18345. <method name="get" return="java.lang.Object"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="false" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. <doc>
  18350. <![CDATA[Return the instance, or null if none.]]>
  18351. </doc>
  18352. </method>
  18353. <method name="getDeclaredClass" return="java.lang.Class"
  18354. abstract="false" native="false" synchronized="false"
  18355. static="false" final="false" visibility="public"
  18356. deprecated="not deprecated">
  18357. <doc>
  18358. <![CDATA[Return the class this is meant to be.]]>
  18359. </doc>
  18360. </method>
  18361. <method name="set"
  18362. abstract="false" native="false" synchronized="false"
  18363. static="false" final="false" visibility="public"
  18364. deprecated="not deprecated">
  18365. <param name="instance" type="java.lang.Object"/>
  18366. <doc>
  18367. <![CDATA[Reset the instance.]]>
  18368. </doc>
  18369. </method>
  18370. <method name="toString" return="java.lang.String"
  18371. abstract="false" native="false" synchronized="false"
  18372. static="false" final="false" visibility="public"
  18373. deprecated="not deprecated">
  18374. </method>
  18375. <method name="readFields"
  18376. abstract="false" native="false" synchronized="false"
  18377. static="false" final="false" visibility="public"
  18378. deprecated="not deprecated">
  18379. <param name="in" type="java.io.DataInput"/>
  18380. <exception name="IOException" type="java.io.IOException"/>
  18381. </method>
  18382. <method name="write"
  18383. abstract="false" native="false" synchronized="false"
  18384. static="false" final="false" visibility="public"
  18385. deprecated="not deprecated">
  18386. <param name="out" type="java.io.DataOutput"/>
  18387. <exception name="IOException" type="java.io.IOException"/>
  18388. </method>
  18389. <method name="writeObject"
  18390. abstract="false" native="false" synchronized="false"
  18391. static="true" final="false" visibility="public"
  18392. deprecated="not deprecated">
  18393. <param name="out" type="java.io.DataOutput"/>
  18394. <param name="instance" type="java.lang.Object"/>
  18395. <param name="declaredClass" type="java.lang.Class"/>
  18396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18397. <exception name="IOException" type="java.io.IOException"/>
  18398. <doc>
  18399. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  18400. the preceding.]]>
  18401. </doc>
  18402. </method>
  18403. <method name="writeObject"
  18404. abstract="false" native="false" synchronized="false"
  18405. static="true" final="false" visibility="public"
  18406. deprecated="not deprecated">
  18407. <param name="out" type="java.io.DataOutput"/>
  18408. <param name="instance" type="java.lang.Object"/>
  18409. <param name="declaredClass" type="java.lang.Class"/>
  18410. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18411. <param name="allowCompactArrays" type="boolean"/>
  18412. <exception name="IOException" type="java.io.IOException"/>
  18413. <doc>
  18414. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  18415. the preceding.
  18416. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  18417. usages. Set false for inter-cluster, File, and other persisted output
  18418. usages, to preserve the ability to interchange files with other clusters
  18419. that may not be running the same version of software. Sometime in ~2013
  18420. we can consider removing this parameter and always using the compact format.]]>
  18421. </doc>
  18422. </method>
  18423. <method name="readObject" return="java.lang.Object"
  18424. abstract="false" native="false" synchronized="false"
  18425. static="true" final="false" visibility="public"
  18426. deprecated="not deprecated">
  18427. <param name="in" type="java.io.DataInput"/>
  18428. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18429. <exception name="IOException" type="java.io.IOException"/>
  18430. <doc>
  18431. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  18432. the preceding.]]>
  18433. </doc>
  18434. </method>
  18435. <method name="readObject" return="java.lang.Object"
  18436. abstract="false" native="false" synchronized="false"
  18437. static="true" final="false" visibility="public"
  18438. deprecated="not deprecated">
  18439. <param name="in" type="java.io.DataInput"/>
  18440. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  18441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18442. <exception name="IOException" type="java.io.IOException"/>
  18443. <doc>
  18444. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  18445. the preceding.]]>
  18446. </doc>
  18447. </method>
  18448. <method name="loadClass" return="java.lang.Class"
  18449. abstract="false" native="false" synchronized="false"
  18450. static="true" final="false" visibility="public"
  18451. deprecated="not deprecated">
  18452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18453. <param name="className" type="java.lang.String"/>
  18454. <doc>
  18455. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  18456. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  18457. try load it directly.]]>
  18458. </doc>
  18459. </method>
  18460. <method name="setConf"
  18461. abstract="false" native="false" synchronized="false"
  18462. static="false" final="false" visibility="public"
  18463. deprecated="not deprecated">
  18464. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18465. </method>
  18466. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18467. abstract="false" native="false" synchronized="false"
  18468. static="false" final="false" visibility="public"
  18469. deprecated="not deprecated">
  18470. </method>
  18471. <doc>
  18472. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  18473. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  18474. </doc>
  18475. </class>
  18476. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  18477. <!-- start interface org.apache.hadoop.io.RawComparator -->
  18478. <interface name="RawComparator" abstract="true"
  18479. static="false" final="false" visibility="public"
  18480. deprecated="not deprecated">
  18481. <implements name="java.util.Comparator"/>
  18482. <method name="compare" return="int"
  18483. abstract="false" native="false" synchronized="false"
  18484. static="false" final="false" visibility="public"
  18485. deprecated="not deprecated">
  18486. <param name="b1" type="byte[]"/>
  18487. <param name="s1" type="int"/>
  18488. <param name="l1" type="int"/>
  18489. <param name="b2" type="byte[]"/>
  18490. <param name="s2" type="int"/>
  18491. <param name="l2" type="int"/>
  18492. <doc>
  18493. <![CDATA[Compare two objects in binary.
  18494. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  18495. @param b1 The first byte array.
  18496. @param s1 The position index in b1. The object under comparison's starting index.
  18497. @param l1 The length of the object in b1.
  18498. @param b2 The second byte array.
  18499. @param s2 The position index in b2. The object under comparison's starting index.
  18500. @param l2 The length of the object under comparison in b2.
  18501. @return An integer result of the comparison.]]>
  18502. </doc>
  18503. </method>
  18504. <doc>
  18505. <![CDATA[<p>
  18506. A {@link Comparator} that operates directly on byte representations of
  18507. objects.
  18508. </p>
  18509. @param <T>
  18510. @see DeserializerComparator]]>
  18511. </doc>
  18512. </interface>
  18513. <!-- end interface org.apache.hadoop.io.RawComparator -->
  18514. <!-- start class org.apache.hadoop.io.SequenceFile -->
  18515. <class name="SequenceFile" extends="java.lang.Object"
  18516. abstract="false"
  18517. static="false" final="false" visibility="public"
  18518. deprecated="not deprecated">
  18519. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  18520. abstract="false" native="false" synchronized="false"
  18521. static="true" final="false" visibility="public"
  18522. deprecated="not deprecated">
  18523. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  18524. <doc>
  18525. <![CDATA[Get the compression type for the reduce outputs
  18526. @param job the job config to look in
  18527. @return the kind of compression to use]]>
  18528. </doc>
  18529. </method>
  18530. <method name="setDefaultCompressionType"
  18531. abstract="false" native="false" synchronized="false"
  18532. static="true" final="false" visibility="public"
  18533. deprecated="not deprecated">
  18534. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  18535. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18536. <doc>
  18537. <![CDATA[Set the default compression type for sequence files.
  18538. @param job the configuration to modify
  18539. @param val the new compression type (none, block, record)]]>
  18540. </doc>
  18541. </method>
  18542. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18543. abstract="false" native="false" synchronized="false"
  18544. static="true" final="false" visibility="public"
  18545. deprecated="not deprecated">
  18546. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18547. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  18548. <exception name="IOException" type="java.io.IOException"/>
  18549. <doc>
  18550. <![CDATA[Create a new Writer with the given options.
  18551. @param conf the configuration to use
  18552. @param opts the options to create the file with
  18553. @return a new Writer
  18554. @throws IOException]]>
  18555. </doc>
  18556. </method>
  18557. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18558. abstract="false" native="false" synchronized="false"
  18559. static="true" final="false" visibility="public"
  18560. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18561. instead.">
  18562. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18563. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18564. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18565. <param name="keyClass" type="java.lang.Class"/>
  18566. <param name="valClass" type="java.lang.Class"/>
  18567. <exception name="IOException" type="java.io.IOException"/>
  18568. <doc>
  18569. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18570. @param fs The configured filesystem.
  18571. @param conf The configuration.
  18572. @param name The name of the file.
  18573. @param keyClass The 'key' type.
  18574. @param valClass The 'value' type.
  18575. @return Returns the handle to the constructed SequenceFile Writer.
  18576. @throws IOException
  18577. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18578. instead.]]>
  18579. </doc>
  18580. </method>
  18581. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18582. abstract="false" native="false" synchronized="false"
  18583. static="true" final="false" visibility="public"
  18584. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18585. instead.">
  18586. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18588. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18589. <param name="keyClass" type="java.lang.Class"/>
  18590. <param name="valClass" type="java.lang.Class"/>
  18591. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18592. <exception name="IOException" type="java.io.IOException"/>
  18593. <doc>
  18594. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18595. @param fs The configured filesystem.
  18596. @param conf The configuration.
  18597. @param name The name of the file.
  18598. @param keyClass The 'key' type.
  18599. @param valClass The 'value' type.
  18600. @param compressionType The compression type.
  18601. @return Returns the handle to the constructed SequenceFile Writer.
  18602. @throws IOException
  18603. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18604. instead.]]>
  18605. </doc>
  18606. </method>
  18607. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18608. abstract="false" native="false" synchronized="false"
  18609. static="true" final="false" visibility="public"
  18610. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18611. instead.">
  18612. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18613. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18614. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18615. <param name="keyClass" type="java.lang.Class"/>
  18616. <param name="valClass" type="java.lang.Class"/>
  18617. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18618. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18619. <exception name="IOException" type="java.io.IOException"/>
  18620. <doc>
  18621. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18622. @param fs The configured filesystem.
  18623. @param conf The configuration.
  18624. @param name The name of the file.
  18625. @param keyClass The 'key' type.
  18626. @param valClass The 'value' type.
  18627. @param compressionType The compression type.
  18628. @param progress The Progressable object to track progress.
  18629. @return Returns the handle to the constructed SequenceFile Writer.
  18630. @throws IOException
  18631. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18632. instead.]]>
  18633. </doc>
  18634. </method>
  18635. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18636. abstract="false" native="false" synchronized="false"
  18637. static="true" final="false" visibility="public"
  18638. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18639. instead.">
  18640. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18642. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18643. <param name="keyClass" type="java.lang.Class"/>
  18644. <param name="valClass" type="java.lang.Class"/>
  18645. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18646. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18647. <exception name="IOException" type="java.io.IOException"/>
  18648. <doc>
  18649. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18650. @param fs The configured filesystem.
  18651. @param conf The configuration.
  18652. @param name The name of the file.
  18653. @param keyClass The 'key' type.
  18654. @param valClass The 'value' type.
  18655. @param compressionType The compression type.
  18656. @param codec The compression codec.
  18657. @return Returns the handle to the constructed SequenceFile Writer.
  18658. @throws IOException
  18659. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18660. instead.]]>
  18661. </doc>
  18662. </method>
  18663. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18664. abstract="false" native="false" synchronized="false"
  18665. static="true" final="false" visibility="public"
  18666. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18667. instead.">
  18668. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18669. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18670. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18671. <param name="keyClass" type="java.lang.Class"/>
  18672. <param name="valClass" type="java.lang.Class"/>
  18673. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18674. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18675. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18676. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18677. <exception name="IOException" type="java.io.IOException"/>
  18678. <doc>
  18679. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18680. @param fs The configured filesystem.
  18681. @param conf The configuration.
  18682. @param name The name of the file.
  18683. @param keyClass The 'key' type.
  18684. @param valClass The 'value' type.
  18685. @param compressionType The compression type.
  18686. @param codec The compression codec.
  18687. @param progress The Progressable object to track progress.
  18688. @param metadata The metadata of the file.
  18689. @return Returns the handle to the constructed SequenceFile Writer.
  18690. @throws IOException
  18691. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18692. instead.]]>
  18693. </doc>
  18694. </method>
  18695. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18696. abstract="false" native="false" synchronized="false"
  18697. static="true" final="false" visibility="public"
  18698. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18699. instead.">
  18700. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18702. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18703. <param name="keyClass" type="java.lang.Class"/>
  18704. <param name="valClass" type="java.lang.Class"/>
  18705. <param name="bufferSize" type="int"/>
  18706. <param name="replication" type="short"/>
  18707. <param name="blockSize" type="long"/>
  18708. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18709. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18710. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18711. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18712. <exception name="IOException" type="java.io.IOException"/>
  18713. <doc>
  18714. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18715. @param fs The configured filesystem.
  18716. @param conf The configuration.
  18717. @param name The name of the file.
  18718. @param keyClass The 'key' type.
  18719. @param valClass The 'value' type.
  18720. @param bufferSize buffer size for the underlaying outputstream.
  18721. @param replication replication factor for the file.
  18722. @param blockSize block size for the file.
  18723. @param compressionType The compression type.
  18724. @param codec The compression codec.
  18725. @param progress The Progressable object to track progress.
  18726. @param metadata The metadata of the file.
  18727. @return Returns the handle to the constructed SequenceFile Writer.
  18728. @throws IOException
  18729. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18730. instead.]]>
  18731. </doc>
  18732. </method>
  18733. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18734. abstract="false" native="false" synchronized="false"
  18735. static="true" final="false" visibility="public"
  18736. deprecated="not deprecated">
  18737. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18738. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18739. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18740. <param name="keyClass" type="java.lang.Class"/>
  18741. <param name="valClass" type="java.lang.Class"/>
  18742. <param name="bufferSize" type="int"/>
  18743. <param name="replication" type="short"/>
  18744. <param name="blockSize" type="long"/>
  18745. <param name="createParent" type="boolean"/>
  18746. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18747. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18748. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18749. <exception name="IOException" type="java.io.IOException"/>
  18750. <doc>
  18751. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18752. @param fs The configured filesystem.
  18753. @param conf The configuration.
  18754. @param name The name of the file.
  18755. @param keyClass The 'key' type.
  18756. @param valClass The 'value' type.
  18757. @param bufferSize buffer size for the underlaying outputstream.
  18758. @param replication replication factor for the file.
  18759. @param blockSize block size for the file.
  18760. @param createParent create parent directory if non-existent
  18761. @param compressionType The compression type.
  18762. @param codec The compression codec.
  18763. @param metadata The metadata of the file.
  18764. @return Returns the handle to the constructed SequenceFile Writer.
  18765. @throws IOException]]>
  18766. </doc>
  18767. </method>
  18768. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18769. abstract="false" native="false" synchronized="false"
  18770. static="true" final="false" visibility="public"
  18771. deprecated="not deprecated">
  18772. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  18773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18774. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18775. <param name="keyClass" type="java.lang.Class"/>
  18776. <param name="valClass" type="java.lang.Class"/>
  18777. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18778. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18779. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18780. <param name="createFlag" type="java.util.EnumSet"/>
  18781. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  18782. <exception name="IOException" type="java.io.IOException"/>
  18783. <doc>
  18784. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18785. @param fc The context for the specified file.
  18786. @param conf The configuration.
  18787. @param name The name of the file.
  18788. @param keyClass The 'key' type.
  18789. @param valClass The 'value' type.
  18790. @param compressionType The compression type.
  18791. @param codec The compression codec.
  18792. @param metadata The metadata of the file.
  18793. @param createFlag gives the semantics of create: overwrite, append etc.
  18794. @param opts file creation options; see {@link CreateOpts}.
  18795. @return Returns the handle to the constructed SequenceFile Writer.
  18796. @throws IOException]]>
  18797. </doc>
  18798. </method>
  18799. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18800. abstract="false" native="false" synchronized="false"
  18801. static="true" final="false" visibility="public"
  18802. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18803. instead.">
  18804. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18805. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18806. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18807. <param name="keyClass" type="java.lang.Class"/>
  18808. <param name="valClass" type="java.lang.Class"/>
  18809. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18810. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18811. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18812. <exception name="IOException" type="java.io.IOException"/>
  18813. <doc>
  18814. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18815. @param fs The configured filesystem.
  18816. @param conf The configuration.
  18817. @param name The name of the file.
  18818. @param keyClass The 'key' type.
  18819. @param valClass The 'value' type.
  18820. @param compressionType The compression type.
  18821. @param codec The compression codec.
  18822. @param progress The Progressable object to track progress.
  18823. @return Returns the handle to the constructed SequenceFile Writer.
  18824. @throws IOException
  18825. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18826. instead.]]>
  18827. </doc>
  18828. </method>
  18829. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18830. abstract="false" native="false" synchronized="false"
  18831. static="true" final="false" visibility="public"
  18832. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18833. instead.">
  18834. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18835. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  18836. <param name="keyClass" type="java.lang.Class"/>
  18837. <param name="valClass" type="java.lang.Class"/>
  18838. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18839. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18840. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18841. <exception name="IOException" type="java.io.IOException"/>
  18842. <doc>
  18843. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  18844. @param conf The configuration.
  18845. @param out The stream on top which the writer is to be constructed.
  18846. @param keyClass The 'key' type.
  18847. @param valClass The 'value' type.
  18848. @param compressionType The compression type.
  18849. @param codec The compression codec.
  18850. @param metadata The metadata of the file.
  18851. @return Returns the handle to the constructed SequenceFile Writer.
  18852. @throws IOException
  18853. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18854. instead.]]>
  18855. </doc>
  18856. </method>
  18857. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18858. abstract="false" native="false" synchronized="false"
  18859. static="true" final="false" visibility="public"
  18860. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18861. instead.">
  18862. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18863. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  18864. <param name="keyClass" type="java.lang.Class"/>
  18865. <param name="valClass" type="java.lang.Class"/>
  18866. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18867. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18868. <exception name="IOException" type="java.io.IOException"/>
  18869. <doc>
  18870. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  18871. @param conf The configuration.
  18872. @param out The stream on top which the writer is to be constructed.
  18873. @param keyClass The 'key' type.
  18874. @param valClass The 'value' type.
  18875. @param compressionType The compression type.
  18876. @param codec The compression codec.
  18877. @return Returns the handle to the constructed SequenceFile Writer.
  18878. @throws IOException
  18879. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18880. instead.]]>
  18881. </doc>
  18882. </method>
  18883. <field name="SYNC_INTERVAL" type="int"
  18884. transient="false" volatile="false"
  18885. static="true" final="true" visibility="public"
  18886. deprecated="not deprecated">
  18887. <doc>
  18888. <![CDATA[The number of bytes between sync points.]]>
  18889. </doc>
  18890. </field>
  18891. <doc>
  18892. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  18893. pairs.
  18894. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  18895. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  18896. reading and sorting respectively.</p>
  18897. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  18898. {@link CompressionType} used to compress key/value pairs:
  18899. <ol>
  18900. <li>
  18901. <code>Writer</code> : Uncompressed records.
  18902. </li>
  18903. <li>
  18904. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  18905. values.
  18906. </li>
  18907. <li>
  18908. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  18909. values are collected in 'blocks'
  18910. separately and compressed. The size of
  18911. the 'block' is configurable.
  18912. </ol>
  18913. <p>The actual compression algorithm used to compress key and/or values can be
  18914. specified by using the appropriate {@link CompressionCodec}.</p>
  18915. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  18916. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  18917. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  18918. above <code>SequenceFile</code> formats.</p>
  18919. <h4 id="Formats">SequenceFile Formats</h4>
  18920. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  18921. depending on the <code>CompressionType</code> specified. All of them share a
  18922. <a href="#Header">common header</a> described below.
  18923. <h5 id="Header">SequenceFile Header</h5>
  18924. <ul>
  18925. <li>
  18926. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  18927. version number (e.g. SEQ4 or SEQ6)
  18928. </li>
  18929. <li>
  18930. keyClassName -key class
  18931. </li>
  18932. <li>
  18933. valueClassName - value class
  18934. </li>
  18935. <li>
  18936. compression - A boolean which specifies if compression is turned on for
  18937. keys/values in this file.
  18938. </li>
  18939. <li>
  18940. blockCompression - A boolean which specifies if block-compression is
  18941. turned on for keys/values in this file.
  18942. </li>
  18943. <li>
  18944. compression codec - <code>CompressionCodec</code> class which is used for
  18945. compression of keys and/or values (if compression is
  18946. enabled).
  18947. </li>
  18948. <li>
  18949. metadata - {@link Metadata} for this file.
  18950. </li>
  18951. <li>
  18952. sync - A sync marker to denote end of the header.
  18953. </li>
  18954. </ul>
  18955. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  18956. <ul>
  18957. <li>
  18958. <a href="#Header">Header</a>
  18959. </li>
  18960. <li>
  18961. Record
  18962. <ul>
  18963. <li>Record length</li>
  18964. <li>Key length</li>
  18965. <li>Key</li>
  18966. <li>Value</li>
  18967. </ul>
  18968. </li>
  18969. <li>
  18970. A sync-marker every few <code>100</code> bytes or so.
  18971. </li>
  18972. </ul>
  18973. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  18974. <ul>
  18975. <li>
  18976. <a href="#Header">Header</a>
  18977. </li>
  18978. <li>
  18979. Record
  18980. <ul>
  18981. <li>Record length</li>
  18982. <li>Key length</li>
  18983. <li>Key</li>
  18984. <li><i>Compressed</i> Value</li>
  18985. </ul>
  18986. </li>
  18987. <li>
  18988. A sync-marker every few <code>100</code> bytes or so.
  18989. </li>
  18990. </ul>
  18991. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  18992. <ul>
  18993. <li>
  18994. <a href="#Header">Header</a>
  18995. </li>
  18996. <li>
  18997. Record <i>Block</i>
  18998. <ul>
  18999. <li>Uncompressed number of records in the block</li>
  19000. <li>Compressed key-lengths block-size</li>
  19001. <li>Compressed key-lengths block</li>
  19002. <li>Compressed keys block-size</li>
  19003. <li>Compressed keys block</li>
  19004. <li>Compressed value-lengths block-size</li>
  19005. <li>Compressed value-lengths block</li>
  19006. <li>Compressed values block-size</li>
  19007. <li>Compressed values block</li>
  19008. </ul>
  19009. </li>
  19010. <li>
  19011. A sync-marker every block.
  19012. </li>
  19013. </ul>
  19014. <p>The compressed blocks of key lengths and value lengths consist of the
  19015. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  19016. format.</p>
  19017. @see CompressionCodec]]>
  19018. </doc>
  19019. </class>
  19020. <!-- end class org.apache.hadoop.io.SequenceFile -->
  19021. <!-- start class org.apache.hadoop.io.SetFile -->
  19022. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  19023. abstract="false"
  19024. static="false" final="false" visibility="public"
  19025. deprecated="not deprecated">
  19026. <constructor name="SetFile"
  19027. static="false" final="false" visibility="protected"
  19028. deprecated="not deprecated">
  19029. </constructor>
  19030. <doc>
  19031. <![CDATA[A file-based set of keys.]]>
  19032. </doc>
  19033. </class>
  19034. <!-- end class org.apache.hadoop.io.SetFile -->
  19035. <!-- start class org.apache.hadoop.io.ShortWritable -->
  19036. <class name="ShortWritable" extends="java.lang.Object"
  19037. abstract="false"
  19038. static="false" final="false" visibility="public"
  19039. deprecated="not deprecated">
  19040. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19041. <constructor name="ShortWritable"
  19042. static="false" final="false" visibility="public"
  19043. deprecated="not deprecated">
  19044. </constructor>
  19045. <constructor name="ShortWritable" type="short"
  19046. static="false" final="false" visibility="public"
  19047. deprecated="not deprecated">
  19048. </constructor>
  19049. <method name="set"
  19050. abstract="false" native="false" synchronized="false"
  19051. static="false" final="false" visibility="public"
  19052. deprecated="not deprecated">
  19053. <param name="value" type="short"/>
  19054. <doc>
  19055. <![CDATA[Set the value of this ShortWritable.]]>
  19056. </doc>
  19057. </method>
  19058. <method name="get" return="short"
  19059. abstract="false" native="false" synchronized="false"
  19060. static="false" final="false" visibility="public"
  19061. deprecated="not deprecated">
  19062. <doc>
  19063. <![CDATA[Return the value of this ShortWritable.]]>
  19064. </doc>
  19065. </method>
  19066. <method name="readFields"
  19067. abstract="false" native="false" synchronized="false"
  19068. static="false" final="false" visibility="public"
  19069. deprecated="not deprecated">
  19070. <param name="in" type="java.io.DataInput"/>
  19071. <exception name="IOException" type="java.io.IOException"/>
  19072. <doc>
  19073. <![CDATA[read the short value]]>
  19074. </doc>
  19075. </method>
  19076. <method name="write"
  19077. abstract="false" native="false" synchronized="false"
  19078. static="false" final="false" visibility="public"
  19079. deprecated="not deprecated">
  19080. <param name="out" type="java.io.DataOutput"/>
  19081. <exception name="IOException" type="java.io.IOException"/>
  19082. <doc>
  19083. <![CDATA[write short value]]>
  19084. </doc>
  19085. </method>
  19086. <method name="equals" return="boolean"
  19087. abstract="false" native="false" synchronized="false"
  19088. static="false" final="false" visibility="public"
  19089. deprecated="not deprecated">
  19090. <param name="o" type="java.lang.Object"/>
  19091. <doc>
  19092. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  19093. </doc>
  19094. </method>
  19095. <method name="hashCode" return="int"
  19096. abstract="false" native="false" synchronized="false"
  19097. static="false" final="false" visibility="public"
  19098. deprecated="not deprecated">
  19099. <doc>
  19100. <![CDATA[hash code]]>
  19101. </doc>
  19102. </method>
  19103. <method name="compareTo" return="int"
  19104. abstract="false" native="false" synchronized="false"
  19105. static="false" final="false" visibility="public"
  19106. deprecated="not deprecated">
  19107. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  19108. <doc>
  19109. <![CDATA[Compares two ShortWritable.]]>
  19110. </doc>
  19111. </method>
  19112. <method name="toString" return="java.lang.String"
  19113. abstract="false" native="false" synchronized="false"
  19114. static="false" final="false" visibility="public"
  19115. deprecated="not deprecated">
  19116. <doc>
  19117. <![CDATA[Short values in string format]]>
  19118. </doc>
  19119. </method>
  19120. <doc>
  19121. <![CDATA[A WritableComparable for shorts.]]>
  19122. </doc>
  19123. </class>
  19124. <!-- end class org.apache.hadoop.io.ShortWritable -->
  19125. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  19126. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19127. abstract="false"
  19128. static="false" final="false" visibility="public"
  19129. deprecated="not deprecated">
  19130. <implements name="java.util.SortedMap"/>
  19131. <constructor name="SortedMapWritable"
  19132. static="false" final="false" visibility="public"
  19133. deprecated="not deprecated">
  19134. <doc>
  19135. <![CDATA[default constructor.]]>
  19136. </doc>
  19137. </constructor>
  19138. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  19139. static="false" final="false" visibility="public"
  19140. deprecated="not deprecated">
  19141. <doc>
  19142. <![CDATA[Copy constructor.
  19143. @param other the map to copy from]]>
  19144. </doc>
  19145. </constructor>
  19146. <method name="comparator" return="java.util.Comparator"
  19147. abstract="false" native="false" synchronized="false"
  19148. static="false" final="false" visibility="public"
  19149. deprecated="not deprecated">
  19150. </method>
  19151. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  19152. abstract="false" native="false" synchronized="false"
  19153. static="false" final="false" visibility="public"
  19154. deprecated="not deprecated">
  19155. </method>
  19156. <method name="headMap" return="java.util.SortedMap"
  19157. abstract="false" native="false" synchronized="false"
  19158. static="false" final="false" visibility="public"
  19159. deprecated="not deprecated">
  19160. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  19161. </method>
  19162. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  19163. abstract="false" native="false" synchronized="false"
  19164. static="false" final="false" visibility="public"
  19165. deprecated="not deprecated">
  19166. </method>
  19167. <method name="subMap" return="java.util.SortedMap"
  19168. abstract="false" native="false" synchronized="false"
  19169. static="false" final="false" visibility="public"
  19170. deprecated="not deprecated">
  19171. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  19172. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  19173. </method>
  19174. <method name="tailMap" return="java.util.SortedMap"
  19175. abstract="false" native="false" synchronized="false"
  19176. static="false" final="false" visibility="public"
  19177. deprecated="not deprecated">
  19178. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  19179. </method>
  19180. <method name="clear"
  19181. abstract="false" native="false" synchronized="false"
  19182. static="false" final="false" visibility="public"
  19183. deprecated="not deprecated">
  19184. </method>
  19185. <method name="containsKey" return="boolean"
  19186. abstract="false" native="false" synchronized="false"
  19187. static="false" final="false" visibility="public"
  19188. deprecated="not deprecated">
  19189. <param name="key" type="java.lang.Object"/>
  19190. </method>
  19191. <method name="containsValue" return="boolean"
  19192. abstract="false" native="false" synchronized="false"
  19193. static="false" final="false" visibility="public"
  19194. deprecated="not deprecated">
  19195. <param name="value" type="java.lang.Object"/>
  19196. </method>
  19197. <method name="entrySet" return="java.util.Set"
  19198. abstract="false" native="false" synchronized="false"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. </method>
  19202. <method name="get" return="org.apache.hadoop.io.Writable"
  19203. abstract="false" native="false" synchronized="false"
  19204. static="false" final="false" visibility="public"
  19205. deprecated="not deprecated">
  19206. <param name="key" type="java.lang.Object"/>
  19207. </method>
  19208. <method name="isEmpty" return="boolean"
  19209. abstract="false" native="false" synchronized="false"
  19210. static="false" final="false" visibility="public"
  19211. deprecated="not deprecated">
  19212. </method>
  19213. <method name="keySet" return="java.util.Set"
  19214. abstract="false" native="false" synchronized="false"
  19215. static="false" final="false" visibility="public"
  19216. deprecated="not deprecated">
  19217. </method>
  19218. <method name="put" return="org.apache.hadoop.io.Writable"
  19219. abstract="false" native="false" synchronized="false"
  19220. static="false" final="false" visibility="public"
  19221. deprecated="not deprecated">
  19222. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  19223. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19224. </method>
  19225. <method name="putAll"
  19226. abstract="false" native="false" synchronized="false"
  19227. static="false" final="false" visibility="public"
  19228. deprecated="not deprecated">
  19229. <param name="t" type="java.util.Map"/>
  19230. </method>
  19231. <method name="remove" return="org.apache.hadoop.io.Writable"
  19232. abstract="false" native="false" synchronized="false"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. <param name="key" type="java.lang.Object"/>
  19236. </method>
  19237. <method name="size" return="int"
  19238. abstract="false" native="false" synchronized="false"
  19239. static="false" final="false" visibility="public"
  19240. deprecated="not deprecated">
  19241. </method>
  19242. <method name="values" return="java.util.Collection"
  19243. abstract="false" native="false" synchronized="false"
  19244. static="false" final="false" visibility="public"
  19245. deprecated="not deprecated">
  19246. </method>
  19247. <method name="readFields"
  19248. abstract="false" native="false" synchronized="false"
  19249. static="false" final="false" visibility="public"
  19250. deprecated="not deprecated">
  19251. <param name="in" type="java.io.DataInput"/>
  19252. <exception name="IOException" type="java.io.IOException"/>
  19253. </method>
  19254. <method name="write"
  19255. abstract="false" native="false" synchronized="false"
  19256. static="false" final="false" visibility="public"
  19257. deprecated="not deprecated">
  19258. <param name="out" type="java.io.DataOutput"/>
  19259. <exception name="IOException" type="java.io.IOException"/>
  19260. </method>
  19261. <method name="equals" return="boolean"
  19262. abstract="false" native="false" synchronized="false"
  19263. static="false" final="false" visibility="public"
  19264. deprecated="not deprecated">
  19265. <param name="obj" type="java.lang.Object"/>
  19266. </method>
  19267. <method name="hashCode" return="int"
  19268. abstract="false" native="false" synchronized="false"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. </method>
  19272. <doc>
  19273. <![CDATA[A Writable SortedMap.]]>
  19274. </doc>
  19275. </class>
  19276. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  19277. <!-- start interface org.apache.hadoop.io.Stringifier -->
  19278. <interface name="Stringifier" abstract="true"
  19279. static="false" final="false" visibility="public"
  19280. deprecated="not deprecated">
  19281. <implements name="java.io.Closeable"/>
  19282. <method name="toString" return="java.lang.String"
  19283. abstract="false" native="false" synchronized="false"
  19284. static="false" final="false" visibility="public"
  19285. deprecated="not deprecated">
  19286. <param name="obj" type="T"/>
  19287. <exception name="IOException" type="java.io.IOException"/>
  19288. <doc>
  19289. <![CDATA[Converts the object to a string representation
  19290. @param obj the object to convert
  19291. @return the string representation of the object
  19292. @throws IOException if the object cannot be converted]]>
  19293. </doc>
  19294. </method>
  19295. <method name="fromString" return="T"
  19296. abstract="false" native="false" synchronized="false"
  19297. static="false" final="false" visibility="public"
  19298. deprecated="not deprecated">
  19299. <param name="str" type="java.lang.String"/>
  19300. <exception name="IOException" type="java.io.IOException"/>
  19301. <doc>
  19302. <![CDATA[Restores the object from its string representation.
  19303. @param str the string representation of the object
  19304. @return restored object
  19305. @throws IOException if the object cannot be restored]]>
  19306. </doc>
  19307. </method>
  19308. <method name="close"
  19309. abstract="false" native="false" synchronized="false"
  19310. static="false" final="false" visibility="public"
  19311. deprecated="not deprecated">
  19312. <exception name="IOException" type="java.io.IOException"/>
  19313. <doc>
  19314. <![CDATA[Closes this object.
  19315. @throws IOException if an I/O error occurs]]>
  19316. </doc>
  19317. </method>
  19318. <doc>
  19319. <![CDATA[Stringifier interface offers two methods to convert an object
  19320. to a string representation and restore the object given its
  19321. string representation.
  19322. @param <T> the class of the objects to stringify]]>
  19323. </doc>
  19324. </interface>
  19325. <!-- end interface org.apache.hadoop.io.Stringifier -->
  19326. <!-- start class org.apache.hadoop.io.Text -->
  19327. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  19328. abstract="false"
  19329. static="false" final="false" visibility="public"
  19330. deprecated="not deprecated">
  19331. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19332. <constructor name="Text"
  19333. static="false" final="false" visibility="public"
  19334. deprecated="not deprecated">
  19335. </constructor>
  19336. <constructor name="Text" type="java.lang.String"
  19337. static="false" final="false" visibility="public"
  19338. deprecated="not deprecated">
  19339. <doc>
  19340. <![CDATA[Construct from a string.]]>
  19341. </doc>
  19342. </constructor>
  19343. <constructor name="Text" type="org.apache.hadoop.io.Text"
  19344. static="false" final="false" visibility="public"
  19345. deprecated="not deprecated">
  19346. <doc>
  19347. <![CDATA[Construct from another text.]]>
  19348. </doc>
  19349. </constructor>
  19350. <constructor name="Text" type="byte[]"
  19351. static="false" final="false" visibility="public"
  19352. deprecated="not deprecated">
  19353. <doc>
  19354. <![CDATA[Construct from a byte array.]]>
  19355. </doc>
  19356. </constructor>
  19357. <method name="copyBytes" return="byte[]"
  19358. abstract="false" native="false" synchronized="false"
  19359. static="false" final="false" visibility="public"
  19360. deprecated="not deprecated">
  19361. <doc>
  19362. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  19363. See {@link #getBytes()} for faster access to the underlying array.]]>
  19364. </doc>
  19365. </method>
  19366. <method name="getBytes" return="byte[]"
  19367. abstract="false" native="false" synchronized="false"
  19368. static="false" final="false" visibility="public"
  19369. deprecated="not deprecated">
  19370. <doc>
  19371. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  19372. valid. Please use {@link #copyBytes()} if you
  19373. need the returned array to be precisely the length of the data.]]>
  19374. </doc>
  19375. </method>
  19376. <method name="getLength" return="int"
  19377. abstract="false" native="false" synchronized="false"
  19378. static="false" final="false" visibility="public"
  19379. deprecated="not deprecated">
  19380. <doc>
  19381. <![CDATA[Returns the number of bytes in the byte array]]>
  19382. </doc>
  19383. </method>
  19384. <method name="charAt" return="int"
  19385. abstract="false" native="false" synchronized="false"
  19386. static="false" final="false" visibility="public"
  19387. deprecated="not deprecated">
  19388. <param name="position" type="int"/>
  19389. <doc>
  19390. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  19391. for the character at <code>position</code>. Note that this
  19392. method avoids using the converter or doing String instantiation
  19393. @return the Unicode scalar value at position or -1
  19394. if the position is invalid or points to a
  19395. trailing byte]]>
  19396. </doc>
  19397. </method>
  19398. <method name="find" return="int"
  19399. abstract="false" native="false" synchronized="false"
  19400. static="false" final="false" visibility="public"
  19401. deprecated="not deprecated">
  19402. <param name="what" type="java.lang.String"/>
  19403. </method>
  19404. <method name="find" return="int"
  19405. abstract="false" native="false" synchronized="false"
  19406. static="false" final="false" visibility="public"
  19407. deprecated="not deprecated">
  19408. <param name="what" type="java.lang.String"/>
  19409. <param name="start" type="int"/>
  19410. <doc>
  19411. <![CDATA[Finds any occurence of <code>what</code> in the backing
  19412. buffer, starting as position <code>start</code>. The starting
  19413. position is measured in bytes and the return value is in
  19414. terms of byte position in the buffer. The backing buffer is
  19415. not converted to a string for this operation.
  19416. @return byte position of the first occurence of the search
  19417. string in the UTF-8 buffer or -1 if not found]]>
  19418. </doc>
  19419. </method>
  19420. <method name="set"
  19421. abstract="false" native="false" synchronized="false"
  19422. static="false" final="false" visibility="public"
  19423. deprecated="not deprecated">
  19424. <param name="string" type="java.lang.String"/>
  19425. <doc>
  19426. <![CDATA[Set to contain the contents of a string.]]>
  19427. </doc>
  19428. </method>
  19429. <method name="set"
  19430. abstract="false" native="false" synchronized="false"
  19431. static="false" final="false" visibility="public"
  19432. deprecated="not deprecated">
  19433. <param name="utf8" type="byte[]"/>
  19434. <doc>
  19435. <![CDATA[Set to a utf8 byte array]]>
  19436. </doc>
  19437. </method>
  19438. <method name="set"
  19439. abstract="false" native="false" synchronized="false"
  19440. static="false" final="false" visibility="public"
  19441. deprecated="not deprecated">
  19442. <param name="other" type="org.apache.hadoop.io.Text"/>
  19443. <doc>
  19444. <![CDATA[copy a text.]]>
  19445. </doc>
  19446. </method>
  19447. <method name="set"
  19448. abstract="false" native="false" synchronized="false"
  19449. static="false" final="false" visibility="public"
  19450. deprecated="not deprecated">
  19451. <param name="utf8" type="byte[]"/>
  19452. <param name="start" type="int"/>
  19453. <param name="len" type="int"/>
  19454. <doc>
  19455. <![CDATA[Set the Text to range of bytes
  19456. @param utf8 the data to copy from
  19457. @param start the first position of the new string
  19458. @param len the number of bytes of the new string]]>
  19459. </doc>
  19460. </method>
  19461. <method name="append"
  19462. abstract="false" native="false" synchronized="false"
  19463. static="false" final="false" visibility="public"
  19464. deprecated="not deprecated">
  19465. <param name="utf8" type="byte[]"/>
  19466. <param name="start" type="int"/>
  19467. <param name="len" type="int"/>
  19468. <doc>
  19469. <![CDATA[Append a range of bytes to the end of the given text
  19470. @param utf8 the data to copy from
  19471. @param start the first position to append from utf8
  19472. @param len the number of bytes to append]]>
  19473. </doc>
  19474. </method>
  19475. <method name="clear"
  19476. abstract="false" native="false" synchronized="false"
  19477. static="false" final="false" visibility="public"
  19478. deprecated="not deprecated">
  19479. <doc>
  19480. <![CDATA[Clear the string to empty.
  19481. <em>Note</em>: For performance reasons, this call does not clear the
  19482. underlying byte array that is retrievable via {@link #getBytes()}.
  19483. In order to free the byte-array memory, call {@link #set(byte[])}
  19484. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  19485. </doc>
  19486. </method>
  19487. <method name="toString" return="java.lang.String"
  19488. abstract="false" native="false" synchronized="false"
  19489. static="false" final="false" visibility="public"
  19490. deprecated="not deprecated">
  19491. <doc>
  19492. <![CDATA[Convert text back to string
  19493. @see java.lang.Object#toString()]]>
  19494. </doc>
  19495. </method>
  19496. <method name="readFields"
  19497. abstract="false" native="false" synchronized="false"
  19498. static="false" final="false" visibility="public"
  19499. deprecated="not deprecated">
  19500. <param name="in" type="java.io.DataInput"/>
  19501. <exception name="IOException" type="java.io.IOException"/>
  19502. <doc>
  19503. <![CDATA[deserialize]]>
  19504. </doc>
  19505. </method>
  19506. <method name="readFields"
  19507. abstract="false" native="false" synchronized="false"
  19508. static="false" final="false" visibility="public"
  19509. deprecated="not deprecated">
  19510. <param name="in" type="java.io.DataInput"/>
  19511. <param name="maxLength" type="int"/>
  19512. <exception name="IOException" type="java.io.IOException"/>
  19513. </method>
  19514. <method name="skip"
  19515. abstract="false" native="false" synchronized="false"
  19516. static="true" final="false" visibility="public"
  19517. deprecated="not deprecated">
  19518. <param name="in" type="java.io.DataInput"/>
  19519. <exception name="IOException" type="java.io.IOException"/>
  19520. <doc>
  19521. <![CDATA[Skips over one Text in the input.]]>
  19522. </doc>
  19523. </method>
  19524. <method name="readWithKnownLength"
  19525. abstract="false" native="false" synchronized="false"
  19526. static="false" final="false" visibility="public"
  19527. deprecated="not deprecated">
  19528. <param name="in" type="java.io.DataInput"/>
  19529. <param name="len" type="int"/>
  19530. <exception name="IOException" type="java.io.IOException"/>
  19531. <doc>
  19532. <![CDATA[Read a Text object whose length is already known.
  19533. This allows creating Text from a stream which uses a different serialization
  19534. format.]]>
  19535. </doc>
  19536. </method>
  19537. <method name="write"
  19538. abstract="false" native="false" synchronized="false"
  19539. static="false" final="false" visibility="public"
  19540. deprecated="not deprecated">
  19541. <param name="out" type="java.io.DataOutput"/>
  19542. <exception name="IOException" type="java.io.IOException"/>
  19543. <doc>
  19544. <![CDATA[serialize
  19545. write this object to out
  19546. length uses zero-compressed encoding
  19547. @see Writable#write(DataOutput)]]>
  19548. </doc>
  19549. </method>
  19550. <method name="write"
  19551. abstract="false" native="false" synchronized="false"
  19552. static="false" final="false" visibility="public"
  19553. deprecated="not deprecated">
  19554. <param name="out" type="java.io.DataOutput"/>
  19555. <param name="maxLength" type="int"/>
  19556. <exception name="IOException" type="java.io.IOException"/>
  19557. </method>
  19558. <method name="equals" return="boolean"
  19559. abstract="false" native="false" synchronized="false"
  19560. static="false" final="false" visibility="public"
  19561. deprecated="not deprecated">
  19562. <param name="o" type="java.lang.Object"/>
  19563. <doc>
  19564. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  19565. </doc>
  19566. </method>
  19567. <method name="hashCode" return="int"
  19568. abstract="false" native="false" synchronized="false"
  19569. static="false" final="false" visibility="public"
  19570. deprecated="not deprecated">
  19571. </method>
  19572. <method name="decode" return="java.lang.String"
  19573. abstract="false" native="false" synchronized="false"
  19574. static="true" final="false" visibility="public"
  19575. deprecated="not deprecated">
  19576. <param name="utf8" type="byte[]"/>
  19577. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19578. <doc>
  19579. <![CDATA[Converts the provided byte array to a String using the
  19580. UTF-8 encoding. If the input is malformed,
  19581. replace by a default value.]]>
  19582. </doc>
  19583. </method>
  19584. <method name="decode" return="java.lang.String"
  19585. abstract="false" native="false" synchronized="false"
  19586. static="true" final="false" visibility="public"
  19587. deprecated="not deprecated">
  19588. <param name="utf8" type="byte[]"/>
  19589. <param name="start" type="int"/>
  19590. <param name="length" type="int"/>
  19591. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19592. </method>
  19593. <method name="decode" return="java.lang.String"
  19594. abstract="false" native="false" synchronized="false"
  19595. static="true" final="false" visibility="public"
  19596. deprecated="not deprecated">
  19597. <param name="utf8" type="byte[]"/>
  19598. <param name="start" type="int"/>
  19599. <param name="length" type="int"/>
  19600. <param name="replace" type="boolean"/>
  19601. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19602. <doc>
  19603. <![CDATA[Converts the provided byte array to a String using the
  19604. UTF-8 encoding. If <code>replace</code> is true, then
  19605. malformed input is replaced with the
  19606. substitution character, which is U+FFFD. Otherwise the
  19607. method throws a MalformedInputException.]]>
  19608. </doc>
  19609. </method>
  19610. <method name="encode" return="java.nio.ByteBuffer"
  19611. abstract="false" native="false" synchronized="false"
  19612. static="true" final="false" visibility="public"
  19613. deprecated="not deprecated">
  19614. <param name="string" type="java.lang.String"/>
  19615. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19616. <doc>
  19617. <![CDATA[Converts the provided String to bytes using the
  19618. UTF-8 encoding. If the input is malformed,
  19619. invalid chars are replaced by a default value.
  19620. @return ByteBuffer: bytes stores at ByteBuffer.array()
  19621. and length is ByteBuffer.limit()]]>
  19622. </doc>
  19623. </method>
  19624. <method name="encode" return="java.nio.ByteBuffer"
  19625. abstract="false" native="false" synchronized="false"
  19626. static="true" final="false" visibility="public"
  19627. deprecated="not deprecated">
  19628. <param name="string" type="java.lang.String"/>
  19629. <param name="replace" type="boolean"/>
  19630. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19631. <doc>
  19632. <![CDATA[Converts the provided String to bytes using the
  19633. UTF-8 encoding. If <code>replace</code> is true, then
  19634. malformed input is replaced with the
  19635. substitution character, which is U+FFFD. Otherwise the
  19636. method throws a MalformedInputException.
  19637. @return ByteBuffer: bytes stores at ByteBuffer.array()
  19638. and length is ByteBuffer.limit()]]>
  19639. </doc>
  19640. </method>
  19641. <method name="readString" return="java.lang.String"
  19642. abstract="false" native="false" synchronized="false"
  19643. static="true" final="false" visibility="public"
  19644. deprecated="not deprecated">
  19645. <param name="in" type="java.io.DataInput"/>
  19646. <exception name="IOException" type="java.io.IOException"/>
  19647. <doc>
  19648. <![CDATA[Read a UTF8 encoded string from in]]>
  19649. </doc>
  19650. </method>
  19651. <method name="readString" return="java.lang.String"
  19652. abstract="false" native="false" synchronized="false"
  19653. static="true" final="false" visibility="public"
  19654. deprecated="not deprecated">
  19655. <param name="in" type="java.io.DataInput"/>
  19656. <param name="maxLength" type="int"/>
  19657. <exception name="IOException" type="java.io.IOException"/>
  19658. <doc>
  19659. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  19660. </doc>
  19661. </method>
  19662. <method name="writeString" return="int"
  19663. abstract="false" native="false" synchronized="false"
  19664. static="true" final="false" visibility="public"
  19665. deprecated="not deprecated">
  19666. <param name="out" type="java.io.DataOutput"/>
  19667. <param name="s" type="java.lang.String"/>
  19668. <exception name="IOException" type="java.io.IOException"/>
  19669. <doc>
  19670. <![CDATA[Write a UTF8 encoded string to out]]>
  19671. </doc>
  19672. </method>
  19673. <method name="writeString" return="int"
  19674. abstract="false" native="false" synchronized="false"
  19675. static="true" final="false" visibility="public"
  19676. deprecated="not deprecated">
  19677. <param name="out" type="java.io.DataOutput"/>
  19678. <param name="s" type="java.lang.String"/>
  19679. <param name="maxLength" type="int"/>
  19680. <exception name="IOException" type="java.io.IOException"/>
  19681. <doc>
  19682. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  19683. </doc>
  19684. </method>
  19685. <method name="validateUTF8"
  19686. abstract="false" native="false" synchronized="false"
  19687. static="true" final="false" visibility="public"
  19688. deprecated="not deprecated">
  19689. <param name="utf8" type="byte[]"/>
  19690. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  19691. <doc>
  19692. <![CDATA[Check if a byte array contains valid utf-8
  19693. @param utf8 byte array
  19694. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  19695. </doc>
  19696. </method>
  19697. <method name="validateUTF8"
  19698. abstract="false" native="false" synchronized="false"
  19699. static="true" final="false" visibility="public"
  19700. deprecated="not deprecated">
  19701. <param name="utf8" type="byte[]"/>
  19702. <param name="start" type="int"/>
  19703. <param name="len" type="int"/>
  19704. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  19705. <doc>
  19706. <![CDATA[Check to see if a byte array is valid utf-8
  19707. @param utf8 the array of bytes
  19708. @param start the offset of the first byte in the array
  19709. @param len the length of the byte sequence
  19710. @throws MalformedInputException if the byte array contains invalid bytes]]>
  19711. </doc>
  19712. </method>
  19713. <method name="bytesToCodePoint" return="int"
  19714. abstract="false" native="false" synchronized="false"
  19715. static="true" final="false" visibility="public"
  19716. deprecated="not deprecated">
  19717. <param name="bytes" type="java.nio.ByteBuffer"/>
  19718. <doc>
  19719. <![CDATA[Returns the next code point at the current position in
  19720. the buffer. The buffer's position will be incremented.
  19721. Any mark set on this buffer will be changed by this method!]]>
  19722. </doc>
  19723. </method>
  19724. <method name="utf8Length" return="int"
  19725. abstract="false" native="false" synchronized="false"
  19726. static="true" final="false" visibility="public"
  19727. deprecated="not deprecated">
  19728. <param name="string" type="java.lang.String"/>
  19729. <doc>
  19730. <![CDATA[For the given string, returns the number of UTF-8 bytes
  19731. required to encode the string.
  19732. @param string text to encode
  19733. @return number of UTF-8 bytes required to encode]]>
  19734. </doc>
  19735. </method>
  19736. <field name="DEFAULT_MAX_LEN" type="int"
  19737. transient="false" volatile="false"
  19738. static="true" final="true" visibility="public"
  19739. deprecated="not deprecated">
  19740. </field>
  19741. <doc>
  19742. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  19743. to serialize, deserialize, and compare texts at byte level. The type of
  19744. length is integer and is serialized using zero-compressed format. <p>In
  19745. addition, it provides methods for string traversal without converting the
  19746. byte array to a string. <p>Also includes utilities for
  19747. serializing/deserialing a string, coding/decoding a string, checking if a
  19748. byte array contains valid UTF8 code, calculating the length of an encoded
  19749. string.]]>
  19750. </doc>
  19751. </class>
  19752. <!-- end class org.apache.hadoop.io.Text -->
  19753. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  19754. <class name="TwoDArrayWritable" extends="java.lang.Object"
  19755. abstract="false"
  19756. static="false" final="false" visibility="public"
  19757. deprecated="not deprecated">
  19758. <implements name="org.apache.hadoop.io.Writable"/>
  19759. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  19760. static="false" final="false" visibility="public"
  19761. deprecated="not deprecated">
  19762. </constructor>
  19763. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  19764. static="false" final="false" visibility="public"
  19765. deprecated="not deprecated">
  19766. </constructor>
  19767. <method name="toArray" return="java.lang.Object"
  19768. abstract="false" native="false" synchronized="false"
  19769. static="false" final="false" visibility="public"
  19770. deprecated="not deprecated">
  19771. </method>
  19772. <method name="set"
  19773. abstract="false" native="false" synchronized="false"
  19774. static="false" final="false" visibility="public"
  19775. deprecated="not deprecated">
  19776. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  19777. </method>
  19778. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  19779. abstract="false" native="false" synchronized="false"
  19780. static="false" final="false" visibility="public"
  19781. deprecated="not deprecated">
  19782. </method>
  19783. <method name="readFields"
  19784. abstract="false" native="false" synchronized="false"
  19785. static="false" final="false" visibility="public"
  19786. deprecated="not deprecated">
  19787. <param name="in" type="java.io.DataInput"/>
  19788. <exception name="IOException" type="java.io.IOException"/>
  19789. </method>
  19790. <method name="write"
  19791. abstract="false" native="false" synchronized="false"
  19792. static="false" final="false" visibility="public"
  19793. deprecated="not deprecated">
  19794. <param name="out" type="java.io.DataOutput"/>
  19795. <exception name="IOException" type="java.io.IOException"/>
  19796. </method>
  19797. <doc>
  19798. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  19799. </doc>
  19800. </class>
  19801. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  19802. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  19803. <class name="VersionedWritable" extends="java.lang.Object"
  19804. abstract="true"
  19805. static="false" final="false" visibility="public"
  19806. deprecated="not deprecated">
  19807. <implements name="org.apache.hadoop.io.Writable"/>
  19808. <constructor name="VersionedWritable"
  19809. static="false" final="false" visibility="public"
  19810. deprecated="not deprecated">
  19811. </constructor>
  19812. <method name="getVersion" return="byte"
  19813. abstract="true" native="false" synchronized="false"
  19814. static="false" final="false" visibility="public"
  19815. deprecated="not deprecated">
  19816. <doc>
  19817. <![CDATA[Return the version number of the current implementation.]]>
  19818. </doc>
  19819. </method>
  19820. <method name="write"
  19821. abstract="false" native="false" synchronized="false"
  19822. static="false" final="false" visibility="public"
  19823. deprecated="not deprecated">
  19824. <param name="out" type="java.io.DataOutput"/>
  19825. <exception name="IOException" type="java.io.IOException"/>
  19826. </method>
  19827. <method name="readFields"
  19828. abstract="false" native="false" synchronized="false"
  19829. static="false" final="false" visibility="public"
  19830. deprecated="not deprecated">
  19831. <param name="in" type="java.io.DataInput"/>
  19832. <exception name="IOException" type="java.io.IOException"/>
  19833. </method>
  19834. <doc>
  19835. <![CDATA[A base class for Writables that provides version checking.
  19836. <p>This is useful when a class may evolve, so that instances written by the
  19837. old version of the class may still be processed by the new version. To
  19838. handle this situation, {@link #readFields(DataInput)}
  19839. implementations should catch {@link VersionMismatchException}.]]>
  19840. </doc>
  19841. </class>
  19842. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  19843. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  19844. <class name="VersionMismatchException" extends="java.io.IOException"
  19845. abstract="false"
  19846. static="false" final="false" visibility="public"
  19847. deprecated="not deprecated">
  19848. <constructor name="VersionMismatchException" type="byte, byte"
  19849. static="false" final="false" visibility="public"
  19850. deprecated="not deprecated">
  19851. </constructor>
  19852. <method name="toString" return="java.lang.String"
  19853. abstract="false" native="false" synchronized="false"
  19854. static="false" final="false" visibility="public"
  19855. deprecated="not deprecated">
  19856. <doc>
  19857. <![CDATA[Returns a string representation of this object.]]>
  19858. </doc>
  19859. </method>
  19860. <doc>
  19861. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  19862. version of an object being read does not match the current implementation
  19863. version as returned by {@link VersionedWritable#getVersion()}.]]>
  19864. </doc>
  19865. </class>
  19866. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  19867. <!-- start class org.apache.hadoop.io.VIntWritable -->
  19868. <class name="VIntWritable" extends="java.lang.Object"
  19869. abstract="false"
  19870. static="false" final="false" visibility="public"
  19871. deprecated="not deprecated">
  19872. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19873. <constructor name="VIntWritable"
  19874. static="false" final="false" visibility="public"
  19875. deprecated="not deprecated">
  19876. </constructor>
  19877. <constructor name="VIntWritable" type="int"
  19878. static="false" final="false" visibility="public"
  19879. deprecated="not deprecated">
  19880. </constructor>
  19881. <method name="set"
  19882. abstract="false" native="false" synchronized="false"
  19883. static="false" final="false" visibility="public"
  19884. deprecated="not deprecated">
  19885. <param name="value" type="int"/>
  19886. <doc>
  19887. <![CDATA[Set the value of this VIntWritable.]]>
  19888. </doc>
  19889. </method>
  19890. <method name="get" return="int"
  19891. abstract="false" native="false" synchronized="false"
  19892. static="false" final="false" visibility="public"
  19893. deprecated="not deprecated">
  19894. <doc>
  19895. <![CDATA[Return the value of this VIntWritable.]]>
  19896. </doc>
  19897. </method>
  19898. <method name="readFields"
  19899. abstract="false" native="false" synchronized="false"
  19900. static="false" final="false" visibility="public"
  19901. deprecated="not deprecated">
  19902. <param name="in" type="java.io.DataInput"/>
  19903. <exception name="IOException" type="java.io.IOException"/>
  19904. </method>
  19905. <method name="write"
  19906. abstract="false" native="false" synchronized="false"
  19907. static="false" final="false" visibility="public"
  19908. deprecated="not deprecated">
  19909. <param name="out" type="java.io.DataOutput"/>
  19910. <exception name="IOException" type="java.io.IOException"/>
  19911. </method>
  19912. <method name="equals" return="boolean"
  19913. abstract="false" native="false" synchronized="false"
  19914. static="false" final="false" visibility="public"
  19915. deprecated="not deprecated">
  19916. <param name="o" type="java.lang.Object"/>
  19917. <doc>
  19918. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  19919. </doc>
  19920. </method>
  19921. <method name="hashCode" return="int"
  19922. abstract="false" native="false" synchronized="false"
  19923. static="false" final="false" visibility="public"
  19924. deprecated="not deprecated">
  19925. </method>
  19926. <method name="compareTo" return="int"
  19927. abstract="false" native="false" synchronized="false"
  19928. static="false" final="false" visibility="public"
  19929. deprecated="not deprecated">
  19930. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  19931. <doc>
  19932. <![CDATA[Compares two VIntWritables.]]>
  19933. </doc>
  19934. </method>
  19935. <method name="toString" return="java.lang.String"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="false" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. </method>
  19940. <doc>
  19941. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  19942. Such values take between one and five bytes. Smaller values take fewer bytes.
  19943. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  19944. </doc>
  19945. </class>
  19946. <!-- end class org.apache.hadoop.io.VIntWritable -->
  19947. <!-- start class org.apache.hadoop.io.VLongWritable -->
  19948. <class name="VLongWritable" extends="java.lang.Object"
  19949. abstract="false"
  19950. static="false" final="false" visibility="public"
  19951. deprecated="not deprecated">
  19952. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19953. <constructor name="VLongWritable"
  19954. static="false" final="false" visibility="public"
  19955. deprecated="not deprecated">
  19956. </constructor>
  19957. <constructor name="VLongWritable" type="long"
  19958. static="false" final="false" visibility="public"
  19959. deprecated="not deprecated">
  19960. </constructor>
  19961. <method name="set"
  19962. abstract="false" native="false" synchronized="false"
  19963. static="false" final="false" visibility="public"
  19964. deprecated="not deprecated">
  19965. <param name="value" type="long"/>
  19966. <doc>
  19967. <![CDATA[Set the value of this LongWritable.]]>
  19968. </doc>
  19969. </method>
  19970. <method name="get" return="long"
  19971. abstract="false" native="false" synchronized="false"
  19972. static="false" final="false" visibility="public"
  19973. deprecated="not deprecated">
  19974. <doc>
  19975. <![CDATA[Return the value of this LongWritable.]]>
  19976. </doc>
  19977. </method>
  19978. <method name="readFields"
  19979. abstract="false" native="false" synchronized="false"
  19980. static="false" final="false" visibility="public"
  19981. deprecated="not deprecated">
  19982. <param name="in" type="java.io.DataInput"/>
  19983. <exception name="IOException" type="java.io.IOException"/>
  19984. </method>
  19985. <method name="write"
  19986. abstract="false" native="false" synchronized="false"
  19987. static="false" final="false" visibility="public"
  19988. deprecated="not deprecated">
  19989. <param name="out" type="java.io.DataOutput"/>
  19990. <exception name="IOException" type="java.io.IOException"/>
  19991. </method>
  19992. <method name="equals" return="boolean"
  19993. abstract="false" native="false" synchronized="false"
  19994. static="false" final="false" visibility="public"
  19995. deprecated="not deprecated">
  19996. <param name="o" type="java.lang.Object"/>
  19997. <doc>
  19998. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  19999. </doc>
  20000. </method>
  20001. <method name="hashCode" return="int"
  20002. abstract="false" native="false" synchronized="false"
  20003. static="false" final="false" visibility="public"
  20004. deprecated="not deprecated">
  20005. </method>
  20006. <method name="compareTo" return="int"
  20007. abstract="false" native="false" synchronized="false"
  20008. static="false" final="false" visibility="public"
  20009. deprecated="not deprecated">
  20010. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  20011. <doc>
  20012. <![CDATA[Compares two VLongWritables.]]>
  20013. </doc>
  20014. </method>
  20015. <method name="toString" return="java.lang.String"
  20016. abstract="false" native="false" synchronized="false"
  20017. static="false" final="false" visibility="public"
  20018. deprecated="not deprecated">
  20019. </method>
  20020. <doc>
  20021. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  20022. between one and five bytes. Smaller values take fewer bytes.
  20023. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  20024. </doc>
  20025. </class>
  20026. <!-- end class org.apache.hadoop.io.VLongWritable -->
  20027. <!-- start interface org.apache.hadoop.io.Writable -->
  20028. <interface name="Writable" abstract="true"
  20029. static="false" final="false" visibility="public"
  20030. deprecated="not deprecated">
  20031. <method name="write"
  20032. abstract="false" native="false" synchronized="false"
  20033. static="false" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <param name="out" type="java.io.DataOutput"/>
  20036. <exception name="IOException" type="java.io.IOException"/>
  20037. <doc>
  20038. <![CDATA[Serialize the fields of this object to <code>out</code>.
  20039. @param out <code>DataOuput</code> to serialize this object into.
  20040. @throws IOException]]>
  20041. </doc>
  20042. </method>
  20043. <method name="readFields"
  20044. abstract="false" native="false" synchronized="false"
  20045. static="false" final="false" visibility="public"
  20046. deprecated="not deprecated">
  20047. <param name="in" type="java.io.DataInput"/>
  20048. <exception name="IOException" type="java.io.IOException"/>
  20049. <doc>
  20050. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  20051. <p>For efficiency, implementations should attempt to re-use storage in the
  20052. existing object where possible.</p>
  20053. @param in <code>DataInput</code> to deseriablize this object from.
  20054. @throws IOException]]>
  20055. </doc>
  20056. </method>
  20057. <doc>
  20058. <![CDATA[A serializable object which implements a simple, efficient, serialization
  20059. protocol, based on {@link DataInput} and {@link DataOutput}.
  20060. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  20061. framework implements this interface.</p>
  20062. <p>Implementations typically implement a static <code>read(DataInput)</code>
  20063. method which constructs a new instance, calls {@link #readFields(DataInput)}
  20064. and returns the instance.</p>
  20065. <p>Example:</p>
  20066. <p><blockquote><pre>
  20067. public class MyWritable implements Writable {
  20068. // Some data
  20069. private int counter;
  20070. private long timestamp;
  20071. public void write(DataOutput out) throws IOException {
  20072. out.writeInt(counter);
  20073. out.writeLong(timestamp);
  20074. }
  20075. public void readFields(DataInput in) throws IOException {
  20076. counter = in.readInt();
  20077. timestamp = in.readLong();
  20078. }
  20079. public static MyWritable read(DataInput in) throws IOException {
  20080. MyWritable w = new MyWritable();
  20081. w.readFields(in);
  20082. return w;
  20083. }
  20084. }
  20085. </pre></blockquote></p>]]>
  20086. </doc>
  20087. </interface>
  20088. <!-- end interface org.apache.hadoop.io.Writable -->
  20089. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  20090. <interface name="WritableComparable" abstract="true"
  20091. static="false" final="false" visibility="public"
  20092. deprecated="not deprecated">
  20093. <implements name="org.apache.hadoop.io.Writable"/>
  20094. <implements name="java.lang.Comparable"/>
  20095. <doc>
  20096. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  20097. <p><code>WritableComparable</code>s can be compared to each other, typically
  20098. via <code>Comparator</code>s. Any type which is to be used as a
  20099. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  20100. interface.</p>
  20101. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  20102. keys. It's important that your implementation of hashCode() returns the same
  20103. result across different instances of the JVM. Note also that the default
  20104. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  20105. satisfy this property.</p>
  20106. <p>Example:</p>
  20107. <p><blockquote><pre>
  20108. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  20109. // Some data
  20110. private int counter;
  20111. private long timestamp;
  20112. public void write(DataOutput out) throws IOException {
  20113. out.writeInt(counter);
  20114. out.writeLong(timestamp);
  20115. }
  20116. public void readFields(DataInput in) throws IOException {
  20117. counter = in.readInt();
  20118. timestamp = in.readLong();
  20119. }
  20120. public int compareTo(MyWritableComparable o) {
  20121. int thisValue = this.value;
  20122. int thatValue = o.value;
  20123. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  20124. }
  20125. public int hashCode() {
  20126. final int prime = 31;
  20127. int result = 1;
  20128. result = prime * result + counter;
  20129. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  20130. return result
  20131. }
  20132. }
  20133. </pre></blockquote></p>]]>
  20134. </doc>
  20135. </interface>
  20136. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  20137. <!-- start class org.apache.hadoop.io.WritableComparator -->
  20138. <class name="WritableComparator" extends="java.lang.Object"
  20139. abstract="false"
  20140. static="false" final="false" visibility="public"
  20141. deprecated="not deprecated">
  20142. <implements name="org.apache.hadoop.io.RawComparator"/>
  20143. <implements name="org.apache.hadoop.conf.Configurable"/>
  20144. <constructor name="WritableComparator"
  20145. static="false" final="false" visibility="protected"
  20146. deprecated="not deprecated">
  20147. </constructor>
  20148. <constructor name="WritableComparator" type="java.lang.Class"
  20149. static="false" final="false" visibility="protected"
  20150. deprecated="not deprecated">
  20151. <doc>
  20152. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  20153. </doc>
  20154. </constructor>
  20155. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  20156. static="false" final="false" visibility="protected"
  20157. deprecated="not deprecated">
  20158. </constructor>
  20159. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  20160. static="false" final="false" visibility="protected"
  20161. deprecated="not deprecated">
  20162. </constructor>
  20163. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20164. abstract="false" native="false" synchronized="false"
  20165. static="true" final="false" visibility="public"
  20166. deprecated="not deprecated">
  20167. <param name="c" type="java.lang.Class"/>
  20168. <doc>
  20169. <![CDATA[For backwards compatibility.]]>
  20170. </doc>
  20171. </method>
  20172. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20173. abstract="false" native="false" synchronized="false"
  20174. static="true" final="false" visibility="public"
  20175. deprecated="not deprecated">
  20176. <param name="c" type="java.lang.Class"/>
  20177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20178. <doc>
  20179. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  20180. </doc>
  20181. </method>
  20182. <method name="setConf"
  20183. abstract="false" native="false" synchronized="false"
  20184. static="false" final="false" visibility="public"
  20185. deprecated="not deprecated">
  20186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20187. </method>
  20188. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20189. abstract="false" native="false" synchronized="false"
  20190. static="false" final="false" visibility="public"
  20191. deprecated="not deprecated">
  20192. </method>
  20193. <method name="define"
  20194. abstract="false" native="false" synchronized="false"
  20195. static="true" final="false" visibility="public"
  20196. deprecated="not deprecated">
  20197. <param name="c" type="java.lang.Class"/>
  20198. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  20199. <doc>
  20200. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  20201. implementation. Comparators registered with this method must be
  20202. thread-safe.]]>
  20203. </doc>
  20204. </method>
  20205. <method name="getKeyClass" return="java.lang.Class"
  20206. abstract="false" native="false" synchronized="false"
  20207. static="false" final="false" visibility="public"
  20208. deprecated="not deprecated">
  20209. <doc>
  20210. <![CDATA[Returns the WritableComparable implementation class.]]>
  20211. </doc>
  20212. </method>
  20213. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  20214. abstract="false" native="false" synchronized="false"
  20215. static="false" final="false" visibility="public"
  20216. deprecated="not deprecated">
  20217. <doc>
  20218. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  20219. </doc>
  20220. </method>
  20221. <method name="compare" return="int"
  20222. abstract="false" native="false" synchronized="false"
  20223. static="false" final="false" visibility="public"
  20224. deprecated="not deprecated">
  20225. <param name="b1" type="byte[]"/>
  20226. <param name="s1" type="int"/>
  20227. <param name="l1" type="int"/>
  20228. <param name="b2" type="byte[]"/>
  20229. <param name="s2" type="int"/>
  20230. <param name="l2" type="int"/>
  20231. <doc>
  20232. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  20233. <p>The default implementation reads the data into two {@link
  20234. WritableComparable}s (using {@link
  20235. Writable#readFields(DataInput)}, then calls {@link
  20236. #compare(WritableComparable,WritableComparable)}.]]>
  20237. </doc>
  20238. </method>
  20239. <method name="compare" return="int"
  20240. abstract="false" native="false" synchronized="false"
  20241. static="false" final="false" visibility="public"
  20242. deprecated="not deprecated">
  20243. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  20244. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  20245. <doc>
  20246. <![CDATA[Compare two WritableComparables.
  20247. <p> The default implementation uses the natural ordering, calling {@link
  20248. Comparable#compareTo(Object)}.]]>
  20249. </doc>
  20250. </method>
  20251. <method name="compare" return="int"
  20252. abstract="false" native="false" synchronized="false"
  20253. static="false" final="false" visibility="public"
  20254. deprecated="not deprecated">
  20255. <param name="a" type="java.lang.Object"/>
  20256. <param name="b" type="java.lang.Object"/>
  20257. </method>
  20258. <method name="compareBytes" return="int"
  20259. abstract="false" native="false" synchronized="false"
  20260. static="true" final="false" visibility="public"
  20261. deprecated="not deprecated">
  20262. <param name="b1" type="byte[]"/>
  20263. <param name="s1" type="int"/>
  20264. <param name="l1" type="int"/>
  20265. <param name="b2" type="byte[]"/>
  20266. <param name="s2" type="int"/>
  20267. <param name="l2" type="int"/>
  20268. <doc>
  20269. <![CDATA[Lexicographic order of binary data.]]>
  20270. </doc>
  20271. </method>
  20272. <method name="hashBytes" return="int"
  20273. abstract="false" native="false" synchronized="false"
  20274. static="true" final="false" visibility="public"
  20275. deprecated="not deprecated">
  20276. <param name="bytes" type="byte[]"/>
  20277. <param name="offset" type="int"/>
  20278. <param name="length" type="int"/>
  20279. <doc>
  20280. <![CDATA[Compute hash for binary data.]]>
  20281. </doc>
  20282. </method>
  20283. <method name="hashBytes" return="int"
  20284. abstract="false" native="false" synchronized="false"
  20285. static="true" final="false" visibility="public"
  20286. deprecated="not deprecated">
  20287. <param name="bytes" type="byte[]"/>
  20288. <param name="length" type="int"/>
  20289. <doc>
  20290. <![CDATA[Compute hash for binary data.]]>
  20291. </doc>
  20292. </method>
  20293. <method name="readUnsignedShort" return="int"
  20294. abstract="false" native="false" synchronized="false"
  20295. static="true" final="false" visibility="public"
  20296. deprecated="not deprecated">
  20297. <param name="bytes" type="byte[]"/>
  20298. <param name="start" type="int"/>
  20299. <doc>
  20300. <![CDATA[Parse an unsigned short from a byte array.]]>
  20301. </doc>
  20302. </method>
  20303. <method name="readInt" return="int"
  20304. abstract="false" native="false" synchronized="false"
  20305. static="true" final="false" visibility="public"
  20306. deprecated="not deprecated">
  20307. <param name="bytes" type="byte[]"/>
  20308. <param name="start" type="int"/>
  20309. <doc>
  20310. <![CDATA[Parse an integer from a byte array.]]>
  20311. </doc>
  20312. </method>
  20313. <method name="readFloat" return="float"
  20314. abstract="false" native="false" synchronized="false"
  20315. static="true" final="false" visibility="public"
  20316. deprecated="not deprecated">
  20317. <param name="bytes" type="byte[]"/>
  20318. <param name="start" type="int"/>
  20319. <doc>
  20320. <![CDATA[Parse a float from a byte array.]]>
  20321. </doc>
  20322. </method>
  20323. <method name="readLong" return="long"
  20324. abstract="false" native="false" synchronized="false"
  20325. static="true" final="false" visibility="public"
  20326. deprecated="not deprecated">
  20327. <param name="bytes" type="byte[]"/>
  20328. <param name="start" type="int"/>
  20329. <doc>
  20330. <![CDATA[Parse a long from a byte array.]]>
  20331. </doc>
  20332. </method>
  20333. <method name="readDouble" return="double"
  20334. abstract="false" native="false" synchronized="false"
  20335. static="true" final="false" visibility="public"
  20336. deprecated="not deprecated">
  20337. <param name="bytes" type="byte[]"/>
  20338. <param name="start" type="int"/>
  20339. <doc>
  20340. <![CDATA[Parse a double from a byte array.]]>
  20341. </doc>
  20342. </method>
  20343. <method name="readVLong" return="long"
  20344. abstract="false" native="false" synchronized="false"
  20345. static="true" final="false" visibility="public"
  20346. deprecated="not deprecated">
  20347. <param name="bytes" type="byte[]"/>
  20348. <param name="start" type="int"/>
  20349. <exception name="IOException" type="java.io.IOException"/>
  20350. <doc>
  20351. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  20352. @param bytes byte array with decode long
  20353. @param start starting index
  20354. @throws java.io.IOException
  20355. @return deserialized long]]>
  20356. </doc>
  20357. </method>
  20358. <method name="readVInt" return="int"
  20359. abstract="false" native="false" synchronized="false"
  20360. static="true" final="false" visibility="public"
  20361. deprecated="not deprecated">
  20362. <param name="bytes" type="byte[]"/>
  20363. <param name="start" type="int"/>
  20364. <exception name="IOException" type="java.io.IOException"/>
  20365. <doc>
  20366. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  20367. @param bytes byte array with the encoded integer
  20368. @param start start index
  20369. @throws java.io.IOException
  20370. @return deserialized integer]]>
  20371. </doc>
  20372. </method>
  20373. <doc>
  20374. <![CDATA[A Comparator for {@link WritableComparable}s.
  20375. <p>This base implemenation uses the natural ordering. To define alternate
  20376. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  20377. <p>One may optimize compare-intensive operations by overriding
  20378. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  20379. provided to assist in optimized implementations of this method.]]>
  20380. </doc>
  20381. </class>
  20382. <!-- end class org.apache.hadoop.io.WritableComparator -->
  20383. <!-- start class org.apache.hadoop.io.WritableFactories -->
  20384. <class name="WritableFactories" extends="java.lang.Object"
  20385. abstract="false"
  20386. static="false" final="false" visibility="public"
  20387. deprecated="not deprecated">
  20388. <method name="setFactory"
  20389. abstract="false" native="false" synchronized="false"
  20390. static="true" final="false" visibility="public"
  20391. deprecated="not deprecated">
  20392. <param name="c" type="java.lang.Class"/>
  20393. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  20394. <doc>
  20395. <![CDATA[Define a factory for a class.]]>
  20396. </doc>
  20397. </method>
  20398. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  20399. abstract="false" native="false" synchronized="false"
  20400. static="true" final="false" visibility="public"
  20401. deprecated="not deprecated">
  20402. <param name="c" type="java.lang.Class"/>
  20403. <doc>
  20404. <![CDATA[Define a factory for a class.]]>
  20405. </doc>
  20406. </method>
  20407. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  20408. abstract="false" native="false" synchronized="false"
  20409. static="true" final="false" visibility="public"
  20410. deprecated="not deprecated">
  20411. <param name="c" type="java.lang.Class"/>
  20412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20413. <doc>
  20414. <![CDATA[Create a new instance of a class with a defined factory.]]>
  20415. </doc>
  20416. </method>
  20417. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  20418. abstract="false" native="false" synchronized="false"
  20419. static="true" final="false" visibility="public"
  20420. deprecated="not deprecated">
  20421. <param name="c" type="java.lang.Class"/>
  20422. <doc>
  20423. <![CDATA[Create a new instance of a class with a defined factory.]]>
  20424. </doc>
  20425. </method>
  20426. <doc>
  20427. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  20428. ObjectWritable} to be able to construct instances of non-public classes.]]>
  20429. </doc>
  20430. </class>
  20431. <!-- end class org.apache.hadoop.io.WritableFactories -->
  20432. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  20433. <interface name="WritableFactory" abstract="true"
  20434. static="false" final="false" visibility="public"
  20435. deprecated="not deprecated">
  20436. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  20437. abstract="false" native="false" synchronized="false"
  20438. static="false" final="false" visibility="public"
  20439. deprecated="not deprecated">
  20440. <doc>
  20441. <![CDATA[Return a new instance.]]>
  20442. </doc>
  20443. </method>
  20444. <doc>
  20445. <![CDATA[A factory for a class of Writable.
  20446. @see WritableFactories]]>
  20447. </doc>
  20448. </interface>
  20449. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  20450. <!-- start class org.apache.hadoop.io.WritableUtils -->
  20451. <class name="WritableUtils" extends="java.lang.Object"
  20452. abstract="false"
  20453. static="false" final="true" visibility="public"
  20454. deprecated="not deprecated">
  20455. <constructor name="WritableUtils"
  20456. static="false" final="false" visibility="public"
  20457. deprecated="not deprecated">
  20458. </constructor>
  20459. <method name="readCompressedByteArray" return="byte[]"
  20460. abstract="false" native="false" synchronized="false"
  20461. static="true" final="false" visibility="public"
  20462. deprecated="not deprecated">
  20463. <param name="in" type="java.io.DataInput"/>
  20464. <exception name="IOException" type="java.io.IOException"/>
  20465. </method>
  20466. <method name="skipCompressedByteArray"
  20467. abstract="false" native="false" synchronized="false"
  20468. static="true" final="false" visibility="public"
  20469. deprecated="not deprecated">
  20470. <param name="in" type="java.io.DataInput"/>
  20471. <exception name="IOException" type="java.io.IOException"/>
  20472. </method>
  20473. <method name="writeCompressedByteArray" return="int"
  20474. abstract="false" native="false" synchronized="false"
  20475. static="true" final="false" visibility="public"
  20476. deprecated="not deprecated">
  20477. <param name="out" type="java.io.DataOutput"/>
  20478. <param name="bytes" type="byte[]"/>
  20479. <exception name="IOException" type="java.io.IOException"/>
  20480. </method>
  20481. <method name="readCompressedString" return="java.lang.String"
  20482. abstract="false" native="false" synchronized="false"
  20483. static="true" final="false" visibility="public"
  20484. deprecated="not deprecated">
  20485. <param name="in" type="java.io.DataInput"/>
  20486. <exception name="IOException" type="java.io.IOException"/>
  20487. </method>
  20488. <method name="writeCompressedString" return="int"
  20489. abstract="false" native="false" synchronized="false"
  20490. static="true" final="false" visibility="public"
  20491. deprecated="not deprecated">
  20492. <param name="out" type="java.io.DataOutput"/>
  20493. <param name="s" type="java.lang.String"/>
  20494. <exception name="IOException" type="java.io.IOException"/>
  20495. </method>
  20496. <method name="writeString"
  20497. abstract="false" native="false" synchronized="false"
  20498. static="true" final="false" visibility="public"
  20499. deprecated="not deprecated">
  20500. <param name="out" type="java.io.DataOutput"/>
  20501. <param name="s" type="java.lang.String"/>
  20502. <exception name="IOException" type="java.io.IOException"/>
  20503. </method>
  20504. <method name="readString" return="java.lang.String"
  20505. abstract="false" native="false" synchronized="false"
  20506. static="true" final="false" visibility="public"
  20507. deprecated="not deprecated">
  20508. <param name="in" type="java.io.DataInput"/>
  20509. <exception name="IOException" type="java.io.IOException"/>
  20510. </method>
  20511. <method name="writeStringArray"
  20512. abstract="false" native="false" synchronized="false"
  20513. static="true" final="false" visibility="public"
  20514. deprecated="not deprecated">
  20515. <param name="out" type="java.io.DataOutput"/>
  20516. <param name="s" type="java.lang.String[]"/>
  20517. <exception name="IOException" type="java.io.IOException"/>
  20518. </method>
  20519. <method name="writeCompressedStringArray"
  20520. abstract="false" native="false" synchronized="false"
  20521. static="true" final="false" visibility="public"
  20522. deprecated="not deprecated">
  20523. <param name="out" type="java.io.DataOutput"/>
  20524. <param name="s" type="java.lang.String[]"/>
  20525. <exception name="IOException" type="java.io.IOException"/>
  20526. </method>
  20527. <method name="readStringArray" return="java.lang.String[]"
  20528. abstract="false" native="false" synchronized="false"
  20529. static="true" final="false" visibility="public"
  20530. deprecated="not deprecated">
  20531. <param name="in" type="java.io.DataInput"/>
  20532. <exception name="IOException" type="java.io.IOException"/>
  20533. </method>
  20534. <method name="readCompressedStringArray" return="java.lang.String[]"
  20535. abstract="false" native="false" synchronized="false"
  20536. static="true" final="false" visibility="public"
  20537. deprecated="not deprecated">
  20538. <param name="in" type="java.io.DataInput"/>
  20539. <exception name="IOException" type="java.io.IOException"/>
  20540. </method>
  20541. <method name="displayByteArray"
  20542. abstract="false" native="false" synchronized="false"
  20543. static="true" final="false" visibility="public"
  20544. deprecated="not deprecated">
  20545. <param name="record" type="byte[]"/>
  20546. </method>
  20547. <method name="clone" return="T"
  20548. abstract="false" native="false" synchronized="false"
  20549. static="true" final="false" visibility="public"
  20550. deprecated="not deprecated">
  20551. <param name="orig" type="T"/>
  20552. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20553. <doc>
  20554. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  20555. @param orig The object to copy
  20556. @return The copied object]]>
  20557. </doc>
  20558. </method>
  20559. <method name="cloneInto"
  20560. abstract="false" native="false" synchronized="false"
  20561. static="true" final="false" visibility="public"
  20562. deprecated="use ReflectionUtils.cloneInto instead.">
  20563. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  20564. <param name="src" type="org.apache.hadoop.io.Writable"/>
  20565. <exception name="IOException" type="java.io.IOException"/>
  20566. <doc>
  20567. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  20568. @param dst the object to copy from
  20569. @param src the object to copy into, which is destroyed
  20570. @throws IOException
  20571. @deprecated use ReflectionUtils.cloneInto instead.]]>
  20572. </doc>
  20573. </method>
  20574. <method name="writeVInt"
  20575. abstract="false" native="false" synchronized="false"
  20576. static="true" final="false" visibility="public"
  20577. deprecated="not deprecated">
  20578. <param name="stream" type="java.io.DataOutput"/>
  20579. <param name="i" type="int"/>
  20580. <exception name="IOException" type="java.io.IOException"/>
  20581. <doc>
  20582. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  20583. For -112 <= i <= 127, only one byte is used with the actual value.
  20584. For other values of i, the first byte value indicates whether the
  20585. integer is positive or negative, and the number of bytes that follow.
  20586. If the first byte value v is between -113 and -116, the following integer
  20587. is positive, with number of bytes that follow are -(v+112).
  20588. If the first byte value v is between -121 and -124, the following integer
  20589. is negative, with number of bytes that follow are -(v+120). Bytes are
  20590. stored in the high-non-zero-byte-first order.
  20591. @param stream Binary output stream
  20592. @param i Integer to be serialized
  20593. @throws java.io.IOException]]>
  20594. </doc>
  20595. </method>
  20596. <method name="writeVLong"
  20597. abstract="false" native="false" synchronized="false"
  20598. static="true" final="false" visibility="public"
  20599. deprecated="not deprecated">
  20600. <param name="stream" type="java.io.DataOutput"/>
  20601. <param name="i" type="long"/>
  20602. <exception name="IOException" type="java.io.IOException"/>
  20603. <doc>
  20604. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  20605. For -112 <= i <= 127, only one byte is used with the actual value.
  20606. For other values of i, the first byte value indicates whether the
  20607. long is positive or negative, and the number of bytes that follow.
  20608. If the first byte value v is between -113 and -120, the following long
  20609. is positive, with number of bytes that follow are -(v+112).
  20610. If the first byte value v is between -121 and -128, the following long
  20611. is negative, with number of bytes that follow are -(v+120). Bytes are
  20612. stored in the high-non-zero-byte-first order.
  20613. @param stream Binary output stream
  20614. @param i Long to be serialized
  20615. @throws java.io.IOException]]>
  20616. </doc>
  20617. </method>
  20618. <method name="readVLong" return="long"
  20619. abstract="false" native="false" synchronized="false"
  20620. static="true" final="false" visibility="public"
  20621. deprecated="not deprecated">
  20622. <param name="stream" type="java.io.DataInput"/>
  20623. <exception name="IOException" type="java.io.IOException"/>
  20624. <doc>
  20625. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  20626. @param stream Binary input stream
  20627. @throws java.io.IOException
  20628. @return deserialized long from stream.]]>
  20629. </doc>
  20630. </method>
  20631. <method name="readVInt" return="int"
  20632. abstract="false" native="false" synchronized="false"
  20633. static="true" final="false" visibility="public"
  20634. deprecated="not deprecated">
  20635. <param name="stream" type="java.io.DataInput"/>
  20636. <exception name="IOException" type="java.io.IOException"/>
  20637. <doc>
  20638. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  20639. @param stream Binary input stream
  20640. @throws java.io.IOException
  20641. @return deserialized integer from stream.]]>
  20642. </doc>
  20643. </method>
  20644. <method name="readVIntInRange" return="int"
  20645. abstract="false" native="false" synchronized="false"
  20646. static="true" final="false" visibility="public"
  20647. deprecated="not deprecated">
  20648. <param name="stream" type="java.io.DataInput"/>
  20649. <param name="lower" type="int"/>
  20650. <param name="upper" type="int"/>
  20651. <exception name="IOException" type="java.io.IOException"/>
  20652. <doc>
  20653. <![CDATA[Reads an integer from the input stream and returns it.
  20654. This function validates that the integer is between [lower, upper],
  20655. inclusive.
  20656. @param stream Binary input stream
  20657. @throws java.io.IOException
  20658. @return deserialized integer from stream]]>
  20659. </doc>
  20660. </method>
  20661. <method name="isNegativeVInt" return="boolean"
  20662. abstract="false" native="false" synchronized="false"
  20663. static="true" final="false" visibility="public"
  20664. deprecated="not deprecated">
  20665. <param name="value" type="byte"/>
  20666. <doc>
  20667. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  20668. @param value the first byte
  20669. @return is the value negative]]>
  20670. </doc>
  20671. </method>
  20672. <method name="decodeVIntSize" return="int"
  20673. abstract="false" native="false" synchronized="false"
  20674. static="true" final="false" visibility="public"
  20675. deprecated="not deprecated">
  20676. <param name="value" type="byte"/>
  20677. <doc>
  20678. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  20679. @param value the first byte of the vint/vlong
  20680. @return the total number of bytes (1 to 9)]]>
  20681. </doc>
  20682. </method>
  20683. <method name="getVIntSize" return="int"
  20684. abstract="false" native="false" synchronized="false"
  20685. static="true" final="false" visibility="public"
  20686. deprecated="not deprecated">
  20687. <param name="i" type="long"/>
  20688. <doc>
  20689. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  20690. @return the encoded length]]>
  20691. </doc>
  20692. </method>
  20693. <method name="readEnum" return="T"
  20694. abstract="false" native="false" synchronized="false"
  20695. static="true" final="false" visibility="public"
  20696. deprecated="not deprecated">
  20697. <param name="in" type="java.io.DataInput"/>
  20698. <param name="enumType" type="java.lang.Class"/>
  20699. <exception name="IOException" type="java.io.IOException"/>
  20700. <doc>
  20701. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  20702. using String values.
  20703. @param <T> Enum type
  20704. @param in DataInput to read from
  20705. @param enumType Class type of Enum
  20706. @return Enum represented by String read from DataInput
  20707. @throws IOException]]>
  20708. </doc>
  20709. </method>
  20710. <method name="writeEnum"
  20711. abstract="false" native="false" synchronized="false"
  20712. static="true" final="false" visibility="public"
  20713. deprecated="not deprecated">
  20714. <param name="out" type="java.io.DataOutput"/>
  20715. <param name="enumVal" type="java.lang.Enum"/>
  20716. <exception name="IOException" type="java.io.IOException"/>
  20717. <doc>
  20718. <![CDATA[writes String value of enum to DataOutput.
  20719. @param out Dataoutput stream
  20720. @param enumVal enum value
  20721. @throws IOException]]>
  20722. </doc>
  20723. </method>
  20724. <method name="skipFully"
  20725. abstract="false" native="false" synchronized="false"
  20726. static="true" final="false" visibility="public"
  20727. deprecated="not deprecated">
  20728. <param name="in" type="java.io.DataInput"/>
  20729. <param name="len" type="int"/>
  20730. <exception name="IOException" type="java.io.IOException"/>
  20731. <doc>
  20732. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  20733. @param in input stream
  20734. @param len number of bytes to skip
  20735. @throws IOException when skipped less number of bytes]]>
  20736. </doc>
  20737. </method>
  20738. <method name="toByteArray" return="byte[]"
  20739. abstract="false" native="false" synchronized="false"
  20740. static="true" final="false" visibility="public"
  20741. deprecated="not deprecated">
  20742. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  20743. <doc>
  20744. <![CDATA[Convert writables to a byte array]]>
  20745. </doc>
  20746. </method>
  20747. <method name="readStringSafely" return="java.lang.String"
  20748. abstract="false" native="false" synchronized="false"
  20749. static="true" final="false" visibility="public"
  20750. deprecated="not deprecated">
  20751. <param name="in" type="java.io.DataInput"/>
  20752. <param name="maxLength" type="int"/>
  20753. <exception name="IOException" type="java.io.IOException"/>
  20754. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  20755. <doc>
  20756. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  20757. followed by the given number of bytes.
  20758. @param in the stream to read from
  20759. @param maxLength the largest acceptable length of the encoded string
  20760. @return the bytes as a string
  20761. @throws IOException if reading from the DataInput fails
  20762. @throws IllegalArgumentException if the encoded byte size for string
  20763. is negative or larger than maxSize. Only the vint is read.]]>
  20764. </doc>
  20765. </method>
  20766. </class>
  20767. <!-- end class org.apache.hadoop.io.WritableUtils -->
  20768. <doc>
  20769. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  20770. to databases, and to files.]]>
  20771. </doc>
  20772. </package>
  20773. <package name="org.apache.hadoop.io.compress">
  20774. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  20775. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  20776. abstract="false"
  20777. static="false" final="false" visibility="public"
  20778. deprecated="not deprecated">
  20779. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  20780. static="false" final="false" visibility="public"
  20781. deprecated="not deprecated">
  20782. <doc>
  20783. <![CDATA[Create a {@link BlockCompressorStream}.
  20784. @param out stream
  20785. @param compressor compressor to be used
  20786. @param bufferSize size of buffer
  20787. @param compressionOverhead maximum 'overhead' of the compression
  20788. algorithm with given bufferSize]]>
  20789. </doc>
  20790. </constructor>
  20791. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  20792. static="false" final="false" visibility="public"
  20793. deprecated="not deprecated">
  20794. <doc>
  20795. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  20796. compressor.
  20797. Use default of 512 as bufferSize and compressionOverhead of
  20798. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  20799. @param out stream
  20800. @param compressor compressor to be used]]>
  20801. </doc>
  20802. </constructor>
  20803. <method name="write"
  20804. abstract="false" native="false" synchronized="false"
  20805. static="false" final="false" visibility="public"
  20806. deprecated="not deprecated">
  20807. <param name="b" type="byte[]"/>
  20808. <param name="off" type="int"/>
  20809. <param name="len" type="int"/>
  20810. <exception name="IOException" type="java.io.IOException"/>
  20811. <doc>
  20812. <![CDATA[Write the data provided to the compression codec, compressing no more
  20813. than the buffer size less the compression overhead as specified during
  20814. construction for each block.
  20815. Each block contains the uncompressed length for the block, followed by
  20816. one or more length-prefixed blocks of compressed data.]]>
  20817. </doc>
  20818. </method>
  20819. <method name="finish"
  20820. abstract="false" native="false" synchronized="false"
  20821. static="false" final="false" visibility="public"
  20822. deprecated="not deprecated">
  20823. <exception name="IOException" type="java.io.IOException"/>
  20824. </method>
  20825. <method name="compress"
  20826. abstract="false" native="false" synchronized="false"
  20827. static="false" final="false" visibility="protected"
  20828. deprecated="not deprecated">
  20829. <exception name="IOException" type="java.io.IOException"/>
  20830. </method>
  20831. <doc>
  20832. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  20833. with 'block-based' based compression algorithms, as opposed to
  20834. 'stream-based' compression algorithms.
  20835. It should be noted that this wrapper does not guarantee that blocks will
  20836. be sized for the compressor. If the
  20837. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  20838. effect meaningful compression, it is responsible for it.]]>
  20839. </doc>
  20840. </class>
  20841. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  20842. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  20843. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  20844. abstract="false"
  20845. static="false" final="false" visibility="public"
  20846. deprecated="not deprecated">
  20847. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  20848. static="false" final="false" visibility="public"
  20849. deprecated="not deprecated">
  20850. <exception name="IOException" type="java.io.IOException"/>
  20851. <doc>
  20852. <![CDATA[Create a {@link BlockDecompressorStream}.
  20853. @param in input stream
  20854. @param decompressor decompressor to use
  20855. @param bufferSize size of buffer
  20856. @throws IOException]]>
  20857. </doc>
  20858. </constructor>
  20859. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  20860. static="false" final="false" visibility="public"
  20861. deprecated="not deprecated">
  20862. <exception name="IOException" type="java.io.IOException"/>
  20863. <doc>
  20864. <![CDATA[Create a {@link BlockDecompressorStream}.
  20865. @param in input stream
  20866. @param decompressor decompressor to use
  20867. @throws IOException]]>
  20868. </doc>
  20869. </constructor>
  20870. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  20871. static="false" final="false" visibility="protected"
  20872. deprecated="not deprecated">
  20873. <exception name="IOException" type="java.io.IOException"/>
  20874. </constructor>
  20875. <method name="decompress" return="int"
  20876. abstract="false" native="false" synchronized="false"
  20877. static="false" final="false" visibility="protected"
  20878. deprecated="not deprecated">
  20879. <param name="b" type="byte[]"/>
  20880. <param name="off" type="int"/>
  20881. <param name="len" type="int"/>
  20882. <exception name="IOException" type="java.io.IOException"/>
  20883. </method>
  20884. <method name="getCompressedData" return="int"
  20885. abstract="false" native="false" synchronized="false"
  20886. static="false" final="false" visibility="protected"
  20887. deprecated="not deprecated">
  20888. <exception name="IOException" type="java.io.IOException"/>
  20889. </method>
  20890. <method name="resetState"
  20891. abstract="false" native="false" synchronized="false"
  20892. static="false" final="false" visibility="public"
  20893. deprecated="not deprecated">
  20894. <exception name="IOException" type="java.io.IOException"/>
  20895. </method>
  20896. <doc>
  20897. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  20898. with 'block-based' based compression algorithms, as opposed to
  20899. 'stream-based' compression algorithms.]]>
  20900. </doc>
  20901. </class>
  20902. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  20903. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  20904. <class name="BZip2Codec" extends="java.lang.Object"
  20905. abstract="false"
  20906. static="false" final="false" visibility="public"
  20907. deprecated="not deprecated">
  20908. <implements name="org.apache.hadoop.conf.Configurable"/>
  20909. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  20910. <constructor name="BZip2Codec"
  20911. static="false" final="false" visibility="public"
  20912. deprecated="not deprecated">
  20913. <doc>
  20914. <![CDATA[Creates a new instance of BZip2Codec.]]>
  20915. </doc>
  20916. </constructor>
  20917. <method name="setConf"
  20918. abstract="false" native="false" synchronized="false"
  20919. static="false" final="false" visibility="public"
  20920. deprecated="not deprecated">
  20921. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20922. <doc>
  20923. <![CDATA[Set the configuration to be used by this object.
  20924. @param conf the configuration object.]]>
  20925. </doc>
  20926. </method>
  20927. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20928. abstract="false" native="false" synchronized="false"
  20929. static="false" final="false" visibility="public"
  20930. deprecated="not deprecated">
  20931. <doc>
  20932. <![CDATA[Return the configuration used by this object.
  20933. @return the configuration object used by this objec.]]>
  20934. </doc>
  20935. </method>
  20936. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20937. abstract="false" native="false" synchronized="false"
  20938. static="false" final="false" visibility="public"
  20939. deprecated="not deprecated">
  20940. <param name="out" type="java.io.OutputStream"/>
  20941. <exception name="IOException" type="java.io.IOException"/>
  20942. <doc>
  20943. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  20944. {@link OutputStream}.
  20945. @param out the location for the final output stream
  20946. @return a stream the user can write uncompressed data to, to have it
  20947. compressed
  20948. @throws IOException]]>
  20949. </doc>
  20950. </method>
  20951. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20952. abstract="false" native="false" synchronized="false"
  20953. static="false" final="false" visibility="public"
  20954. deprecated="not deprecated">
  20955. <param name="out" type="java.io.OutputStream"/>
  20956. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20957. <exception name="IOException" type="java.io.IOException"/>
  20958. <doc>
  20959. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  20960. {@link OutputStream} with the given {@link Compressor}.
  20961. @param out the location for the final output stream
  20962. @param compressor compressor to use
  20963. @return a stream the user can write uncompressed data to, to have it
  20964. compressed
  20965. @throws IOException]]>
  20966. </doc>
  20967. </method>
  20968. <method name="getCompressorType" return="java.lang.Class"
  20969. abstract="false" native="false" synchronized="false"
  20970. static="false" final="false" visibility="public"
  20971. deprecated="not deprecated">
  20972. <doc>
  20973. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  20974. @return the type of compressor needed by this codec.]]>
  20975. </doc>
  20976. </method>
  20977. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20978. abstract="false" native="false" synchronized="false"
  20979. static="false" final="false" visibility="public"
  20980. deprecated="not deprecated">
  20981. <doc>
  20982. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  20983. @return a new compressor for use by this codec]]>
  20984. </doc>
  20985. </method>
  20986. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20987. abstract="false" native="false" synchronized="false"
  20988. static="false" final="false" visibility="public"
  20989. deprecated="not deprecated">
  20990. <param name="in" type="java.io.InputStream"/>
  20991. <exception name="IOException" type="java.io.IOException"/>
  20992. <doc>
  20993. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  20994. input stream and return a stream for uncompressed data.
  20995. @param in the stream to read compressed bytes from
  20996. @return a stream to read uncompressed bytes from
  20997. @throws IOException]]>
  20998. </doc>
  20999. </method>
  21000. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21001. abstract="false" native="false" synchronized="false"
  21002. static="false" final="false" visibility="public"
  21003. deprecated="not deprecated">
  21004. <param name="in" type="java.io.InputStream"/>
  21005. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21006. <exception name="IOException" type="java.io.IOException"/>
  21007. <doc>
  21008. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21009. {@link InputStream} with the given {@link Decompressor}, and return a
  21010. stream for uncompressed data.
  21011. @param in the stream to read compressed bytes from
  21012. @param decompressor decompressor to use
  21013. @return a stream to read uncompressed bytes from
  21014. @throws IOException]]>
  21015. </doc>
  21016. </method>
  21017. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  21018. abstract="false" native="false" synchronized="false"
  21019. static="false" final="false" visibility="public"
  21020. deprecated="not deprecated">
  21021. <param name="seekableIn" type="java.io.InputStream"/>
  21022. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21023. <param name="start" type="long"/>
  21024. <param name="end" type="long"/>
  21025. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  21026. <exception name="IOException" type="java.io.IOException"/>
  21027. <doc>
  21028. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  21029. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  21030. @param seekableIn The InputStream
  21031. @param start The start offset into the compressed stream
  21032. @param end The end offset into the compressed stream
  21033. @param readMode Controls whether progress is reported continuously or
  21034. only at block boundaries.
  21035. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  21036. </doc>
  21037. </method>
  21038. <method name="getDecompressorType" return="java.lang.Class"
  21039. abstract="false" native="false" synchronized="false"
  21040. static="false" final="false" visibility="public"
  21041. deprecated="not deprecated">
  21042. <doc>
  21043. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  21044. @return the type of decompressor needed by this codec.]]>
  21045. </doc>
  21046. </method>
  21047. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21048. abstract="false" native="false" synchronized="false"
  21049. static="false" final="false" visibility="public"
  21050. deprecated="not deprecated">
  21051. <doc>
  21052. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  21053. @return a new decompressor for use by this codec]]>
  21054. </doc>
  21055. </method>
  21056. <method name="getDefaultExtension" return="java.lang.String"
  21057. abstract="false" native="false" synchronized="false"
  21058. static="false" final="false" visibility="public"
  21059. deprecated="not deprecated">
  21060. <doc>
  21061. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  21062. @return A String telling the default bzip2 file extension]]>
  21063. </doc>
  21064. </method>
  21065. <doc>
  21066. <![CDATA[This class provides output and input streams for bzip2 compression
  21067. and decompression. It uses the native bzip2 library on the system
  21068. if possible, else it uses a pure-Java implementation of the bzip2
  21069. algorithm. The configuration parameter
  21070. io.compression.codec.bzip2.library can be used to control this
  21071. behavior.
  21072. In the pure-Java mode, the Compressor and Decompressor interfaces
  21073. are not implemented. Therefore, in that mode, those methods of
  21074. CompressionCodec which have a Compressor or Decompressor type
  21075. argument, throw UnsupportedOperationException.
  21076. Currently, support for splittability is available only in the
  21077. pure-Java mode; therefore, if a SplitCompressionInputStream is
  21078. requested, the pure-Java implementation is used, regardless of the
  21079. setting of the configuration parameter mentioned above.]]>
  21080. </doc>
  21081. </class>
  21082. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  21083. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  21084. <class name="CodecPool" extends="java.lang.Object"
  21085. abstract="false"
  21086. static="false" final="false" visibility="public"
  21087. deprecated="not deprecated">
  21088. <constructor name="CodecPool"
  21089. static="false" final="false" visibility="public"
  21090. deprecated="not deprecated">
  21091. </constructor>
  21092. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21093. abstract="false" native="false" synchronized="false"
  21094. static="true" final="false" visibility="public"
  21095. deprecated="not deprecated">
  21096. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21097. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21098. <doc>
  21099. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  21100. pool or a new one.
  21101. @param codec the <code>CompressionCodec</code> for which to get the
  21102. <code>Compressor</code>
  21103. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  21104. @return <code>Compressor</code> for the given
  21105. <code>CompressionCodec</code> from the pool or a new one]]>
  21106. </doc>
  21107. </method>
  21108. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21109. abstract="false" native="false" synchronized="false"
  21110. static="true" final="false" visibility="public"
  21111. deprecated="not deprecated">
  21112. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21113. </method>
  21114. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21115. abstract="false" native="false" synchronized="false"
  21116. static="true" final="false" visibility="public"
  21117. deprecated="not deprecated">
  21118. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21119. <doc>
  21120. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  21121. pool or a new one.
  21122. @param codec the <code>CompressionCodec</code> for which to get the
  21123. <code>Decompressor</code>
  21124. @return <code>Decompressor</code> for the given
  21125. <code>CompressionCodec</code> the pool or a new one]]>
  21126. </doc>
  21127. </method>
  21128. <method name="returnCompressor"
  21129. abstract="false" native="false" synchronized="false"
  21130. static="true" final="false" visibility="public"
  21131. deprecated="not deprecated">
  21132. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21133. <doc>
  21134. <![CDATA[Return the {@link Compressor} to the pool.
  21135. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  21136. </doc>
  21137. </method>
  21138. <method name="returnDecompressor"
  21139. abstract="false" native="false" synchronized="false"
  21140. static="true" final="false" visibility="public"
  21141. deprecated="not deprecated">
  21142. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21143. <doc>
  21144. <![CDATA[Return the {@link Decompressor} to the pool.
  21145. @param decompressor the <code>Decompressor</code> to be returned to the
  21146. pool]]>
  21147. </doc>
  21148. </method>
  21149. <method name="getLeasedCompressorsCount" return="int"
  21150. abstract="false" native="false" synchronized="false"
  21151. static="true" final="false" visibility="public"
  21152. deprecated="not deprecated">
  21153. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21154. <doc>
  21155. <![CDATA[Return the number of leased {@link Compressor}s for this
  21156. {@link CompressionCodec}]]>
  21157. </doc>
  21158. </method>
  21159. <method name="getLeasedDecompressorsCount" return="int"
  21160. abstract="false" native="false" synchronized="false"
  21161. static="true" final="false" visibility="public"
  21162. deprecated="not deprecated">
  21163. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21164. <doc>
  21165. <![CDATA[Return the number of leased {@link Decompressor}s for this
  21166. {@link CompressionCodec}]]>
  21167. </doc>
  21168. </method>
  21169. <doc>
  21170. <![CDATA[A global compressor/decompressor pool used to save and reuse
  21171. (possibly native) compression/decompression codecs.]]>
  21172. </doc>
  21173. </class>
  21174. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  21175. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  21176. <interface name="CompressionCodec" abstract="true"
  21177. static="false" final="false" visibility="public"
  21178. deprecated="not deprecated">
  21179. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21180. abstract="false" native="false" synchronized="false"
  21181. static="false" final="false" visibility="public"
  21182. deprecated="not deprecated">
  21183. <param name="out" type="java.io.OutputStream"/>
  21184. <exception name="IOException" type="java.io.IOException"/>
  21185. <doc>
  21186. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21187. {@link OutputStream}.
  21188. @param out the location for the final output stream
  21189. @return a stream the user can write uncompressed data to have it compressed
  21190. @throws IOException]]>
  21191. </doc>
  21192. </method>
  21193. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21194. abstract="false" native="false" synchronized="false"
  21195. static="false" final="false" visibility="public"
  21196. deprecated="not deprecated">
  21197. <param name="out" type="java.io.OutputStream"/>
  21198. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21199. <exception name="IOException" type="java.io.IOException"/>
  21200. <doc>
  21201. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21202. {@link OutputStream} with the given {@link Compressor}.
  21203. @param out the location for the final output stream
  21204. @param compressor compressor to use
  21205. @return a stream the user can write uncompressed data to have it compressed
  21206. @throws IOException]]>
  21207. </doc>
  21208. </method>
  21209. <method name="getCompressorType" return="java.lang.Class"
  21210. abstract="false" native="false" synchronized="false"
  21211. static="false" final="false" visibility="public"
  21212. deprecated="not deprecated">
  21213. <doc>
  21214. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  21215. @return the type of compressor needed by this codec.]]>
  21216. </doc>
  21217. </method>
  21218. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21219. abstract="false" native="false" synchronized="false"
  21220. static="false" final="false" visibility="public"
  21221. deprecated="not deprecated">
  21222. <doc>
  21223. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  21224. @return a new compressor for use by this codec]]>
  21225. </doc>
  21226. </method>
  21227. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21228. abstract="false" native="false" synchronized="false"
  21229. static="false" final="false" visibility="public"
  21230. deprecated="not deprecated">
  21231. <param name="in" type="java.io.InputStream"/>
  21232. <exception name="IOException" type="java.io.IOException"/>
  21233. <doc>
  21234. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21235. input stream.
  21236. @param in the stream to read compressed bytes from
  21237. @return a stream to read uncompressed bytes from
  21238. @throws IOException]]>
  21239. </doc>
  21240. </method>
  21241. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21242. abstract="false" native="false" synchronized="false"
  21243. static="false" final="false" visibility="public"
  21244. deprecated="not deprecated">
  21245. <param name="in" type="java.io.InputStream"/>
  21246. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21247. <exception name="IOException" type="java.io.IOException"/>
  21248. <doc>
  21249. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21250. {@link InputStream} with the given {@link Decompressor}.
  21251. @param in the stream to read compressed bytes from
  21252. @param decompressor decompressor to use
  21253. @return a stream to read uncompressed bytes from
  21254. @throws IOException]]>
  21255. </doc>
  21256. </method>
  21257. <method name="getDecompressorType" return="java.lang.Class"
  21258. abstract="false" native="false" synchronized="false"
  21259. static="false" final="false" visibility="public"
  21260. deprecated="not deprecated">
  21261. <doc>
  21262. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  21263. @return the type of decompressor needed by this codec.]]>
  21264. </doc>
  21265. </method>
  21266. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21267. abstract="false" native="false" synchronized="false"
  21268. static="false" final="false" visibility="public"
  21269. deprecated="not deprecated">
  21270. <doc>
  21271. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  21272. @return a new decompressor for use by this codec]]>
  21273. </doc>
  21274. </method>
  21275. <method name="getDefaultExtension" return="java.lang.String"
  21276. abstract="false" native="false" synchronized="false"
  21277. static="false" final="false" visibility="public"
  21278. deprecated="not deprecated">
  21279. <doc>
  21280. <![CDATA[Get the default filename extension for this kind of compression.
  21281. @return the extension including the '.']]>
  21282. </doc>
  21283. </method>
  21284. <doc>
  21285. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  21286. </doc>
  21287. </interface>
  21288. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  21289. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  21290. <class name="CompressionCodecFactory" extends="java.lang.Object"
  21291. abstract="false"
  21292. static="false" final="false" visibility="public"
  21293. deprecated="not deprecated">
  21294. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  21295. static="false" final="false" visibility="public"
  21296. deprecated="not deprecated">
  21297. <doc>
  21298. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  21299. and register them. Defaults to gzip and deflate.]]>
  21300. </doc>
  21301. </constructor>
  21302. <method name="toString" return="java.lang.String"
  21303. abstract="false" native="false" synchronized="false"
  21304. static="false" final="false" visibility="public"
  21305. deprecated="not deprecated">
  21306. <doc>
  21307. <![CDATA[Print the extension map out as a string.]]>
  21308. </doc>
  21309. </method>
  21310. <method name="getCodecClasses" return="java.util.List"
  21311. abstract="false" native="false" synchronized="false"
  21312. static="true" final="false" visibility="public"
  21313. deprecated="not deprecated">
  21314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21315. <doc>
  21316. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  21317. listed in the configuration. Codecs specified in configuration come
  21318. later in the returned list, and are considered to override those
  21319. from the ServiceLoader.
  21320. @param conf the configuration to look in
  21321. @return a list of the {@link CompressionCodec} classes]]>
  21322. </doc>
  21323. </method>
  21324. <method name="setCodecClasses"
  21325. abstract="false" native="false" synchronized="false"
  21326. static="true" final="false" visibility="public"
  21327. deprecated="not deprecated">
  21328. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21329. <param name="classes" type="java.util.List"/>
  21330. <doc>
  21331. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  21332. classes specified using this method, {@link CompressionCodec} classes on
  21333. the classpath are discovered using a Java ServiceLoader.
  21334. @param conf the configuration to modify
  21335. @param classes the list of classes to set]]>
  21336. </doc>
  21337. </method>
  21338. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  21339. abstract="false" native="false" synchronized="false"
  21340. static="false" final="false" visibility="public"
  21341. deprecated="not deprecated">
  21342. <param name="file" type="org.apache.hadoop.fs.Path"/>
  21343. <doc>
  21344. <![CDATA[Find the relevant compression codec for the given file based on its
  21345. filename suffix.
  21346. @param file the filename to check
  21347. @return the codec object]]>
  21348. </doc>
  21349. </method>
  21350. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  21351. abstract="false" native="false" synchronized="false"
  21352. static="false" final="false" visibility="public"
  21353. deprecated="not deprecated">
  21354. <param name="classname" type="java.lang.String"/>
  21355. <doc>
  21356. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  21357. @param classname the canonical class name of the codec
  21358. @return the codec object]]>
  21359. </doc>
  21360. </method>
  21361. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  21362. abstract="false" native="false" synchronized="false"
  21363. static="false" final="false" visibility="public"
  21364. deprecated="not deprecated">
  21365. <param name="codecName" type="java.lang.String"/>
  21366. <doc>
  21367. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  21368. or by codec alias.
  21369. <p/>
  21370. Codec aliases are case insensitive.
  21371. <p/>
  21372. The code alias is the short class name (without the package name).
  21373. If the short class name ends with 'Codec', then there are two aliases for
  21374. the codec, the complete short class name and the short class name without
  21375. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  21376. alias are 'gzip' and 'gzipcodec'.
  21377. @param codecName the canonical class name of the codec
  21378. @return the codec object]]>
  21379. </doc>
  21380. </method>
  21381. <method name="getCodecClassByName" return="java.lang.Class"
  21382. abstract="false" native="false" synchronized="false"
  21383. static="false" final="false" visibility="public"
  21384. deprecated="not deprecated">
  21385. <param name="codecName" type="java.lang.String"/>
  21386. <doc>
  21387. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  21388. or by codec alias and returns its implemetation class.
  21389. <p/>
  21390. Codec aliases are case insensitive.
  21391. <p/>
  21392. The code alias is the short class name (without the package name).
  21393. If the short class name ends with 'Codec', then there are two aliases for
  21394. the codec, the complete short class name and the short class name without
  21395. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  21396. alias are 'gzip' and 'gzipcodec'.
  21397. @param codecName the canonical class name of the codec
  21398. @return the codec class]]>
  21399. </doc>
  21400. </method>
  21401. <method name="removeSuffix" return="java.lang.String"
  21402. abstract="false" native="false" synchronized="false"
  21403. static="true" final="false" visibility="public"
  21404. deprecated="not deprecated">
  21405. <param name="filename" type="java.lang.String"/>
  21406. <param name="suffix" type="java.lang.String"/>
  21407. <doc>
  21408. <![CDATA[Removes a suffix from a filename, if it has it.
  21409. @param filename the filename to strip
  21410. @param suffix the suffix to remove
  21411. @return the shortened filename]]>
  21412. </doc>
  21413. </method>
  21414. <method name="main"
  21415. abstract="false" native="false" synchronized="false"
  21416. static="true" final="false" visibility="public"
  21417. deprecated="not deprecated">
  21418. <param name="args" type="java.lang.String[]"/>
  21419. <exception name="Exception" type="java.lang.Exception"/>
  21420. <doc>
  21421. <![CDATA[A little test program.
  21422. @param args]]>
  21423. </doc>
  21424. </method>
  21425. <field name="LOG" type="org.apache.commons.logging.Log"
  21426. transient="false" volatile="false"
  21427. static="true" final="true" visibility="public"
  21428. deprecated="not deprecated">
  21429. </field>
  21430. <doc>
  21431. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  21432. </doc>
  21433. </class>
  21434. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  21435. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  21436. <class name="CompressionInputStream" extends="java.io.InputStream"
  21437. abstract="true"
  21438. static="false" final="false" visibility="public"
  21439. deprecated="not deprecated">
  21440. <implements name="org.apache.hadoop.fs.Seekable"/>
  21441. <constructor name="CompressionInputStream" type="java.io.InputStream"
  21442. static="false" final="false" visibility="protected"
  21443. deprecated="not deprecated">
  21444. <exception name="IOException" type="java.io.IOException"/>
  21445. <doc>
  21446. <![CDATA[Create a compression input stream that reads
  21447. the decompressed bytes from the given stream.
  21448. @param in The input stream to be compressed.
  21449. @throws IOException]]>
  21450. </doc>
  21451. </constructor>
  21452. <method name="close"
  21453. abstract="false" native="false" synchronized="false"
  21454. static="false" final="false" visibility="public"
  21455. deprecated="not deprecated">
  21456. <exception name="IOException" type="java.io.IOException"/>
  21457. </method>
  21458. <method name="read" return="int"
  21459. abstract="true" native="false" synchronized="false"
  21460. static="false" final="false" visibility="public"
  21461. deprecated="not deprecated">
  21462. <param name="b" type="byte[]"/>
  21463. <param name="off" type="int"/>
  21464. <param name="len" type="int"/>
  21465. <exception name="IOException" type="java.io.IOException"/>
  21466. <doc>
  21467. <![CDATA[Read bytes from the stream.
  21468. Made abstract to prevent leakage to underlying stream.]]>
  21469. </doc>
  21470. </method>
  21471. <method name="resetState"
  21472. abstract="true" native="false" synchronized="false"
  21473. static="false" final="false" visibility="public"
  21474. deprecated="not deprecated">
  21475. <exception name="IOException" type="java.io.IOException"/>
  21476. <doc>
  21477. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  21478. as the underlying stream may have been repositioned.]]>
  21479. </doc>
  21480. </method>
  21481. <method name="getPos" return="long"
  21482. abstract="false" native="false" synchronized="false"
  21483. static="false" final="false" visibility="public"
  21484. deprecated="not deprecated">
  21485. <exception name="IOException" type="java.io.IOException"/>
  21486. <doc>
  21487. <![CDATA[This method returns the current position in the stream.
  21488. @return Current position in stream as a long]]>
  21489. </doc>
  21490. </method>
  21491. <method name="seek"
  21492. abstract="false" native="false" synchronized="false"
  21493. static="false" final="false" visibility="public"
  21494. deprecated="not deprecated">
  21495. <param name="pos" type="long"/>
  21496. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  21497. <doc>
  21498. <![CDATA[This method is current not supported.
  21499. @throws UnsupportedOperationException]]>
  21500. </doc>
  21501. </method>
  21502. <method name="seekToNewSource" return="boolean"
  21503. abstract="false" native="false" synchronized="false"
  21504. static="false" final="false" visibility="public"
  21505. deprecated="not deprecated">
  21506. <param name="targetPos" type="long"/>
  21507. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  21508. <doc>
  21509. <![CDATA[This method is current not supported.
  21510. @throws UnsupportedOperationException]]>
  21511. </doc>
  21512. </method>
  21513. <field name="in" type="java.io.InputStream"
  21514. transient="false" volatile="false"
  21515. static="false" final="true" visibility="protected"
  21516. deprecated="not deprecated">
  21517. <doc>
  21518. <![CDATA[The input stream to be compressed.]]>
  21519. </doc>
  21520. </field>
  21521. <field name="maxAvailableData" type="long"
  21522. transient="false" volatile="false"
  21523. static="false" final="false" visibility="protected"
  21524. deprecated="not deprecated">
  21525. </field>
  21526. <doc>
  21527. <![CDATA[A compression input stream.
  21528. <p>Implementations are assumed to be buffered. This permits clients to
  21529. reposition the underlying input stream then call {@link #resetState()},
  21530. without having to also synchronize client buffers.]]>
  21531. </doc>
  21532. </class>
  21533. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  21534. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  21535. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  21536. abstract="true"
  21537. static="false" final="false" visibility="public"
  21538. deprecated="not deprecated">
  21539. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  21540. static="false" final="false" visibility="protected"
  21541. deprecated="not deprecated">
  21542. <doc>
  21543. <![CDATA[Create a compression output stream that writes
  21544. the compressed bytes to the given stream.
  21545. @param out]]>
  21546. </doc>
  21547. </constructor>
  21548. <method name="close"
  21549. abstract="false" native="false" synchronized="false"
  21550. static="false" final="false" visibility="public"
  21551. deprecated="not deprecated">
  21552. <exception name="IOException" type="java.io.IOException"/>
  21553. </method>
  21554. <method name="flush"
  21555. abstract="false" native="false" synchronized="false"
  21556. static="false" final="false" visibility="public"
  21557. deprecated="not deprecated">
  21558. <exception name="IOException" type="java.io.IOException"/>
  21559. </method>
  21560. <method name="write"
  21561. abstract="true" native="false" synchronized="false"
  21562. static="false" final="false" visibility="public"
  21563. deprecated="not deprecated">
  21564. <param name="b" type="byte[]"/>
  21565. <param name="off" type="int"/>
  21566. <param name="len" type="int"/>
  21567. <exception name="IOException" type="java.io.IOException"/>
  21568. <doc>
  21569. <![CDATA[Write compressed bytes to the stream.
  21570. Made abstract to prevent leakage to underlying stream.]]>
  21571. </doc>
  21572. </method>
  21573. <method name="finish"
  21574. abstract="true" native="false" synchronized="false"
  21575. static="false" final="false" visibility="public"
  21576. deprecated="not deprecated">
  21577. <exception name="IOException" type="java.io.IOException"/>
  21578. <doc>
  21579. <![CDATA[Finishes writing compressed data to the output stream
  21580. without closing the underlying stream.]]>
  21581. </doc>
  21582. </method>
  21583. <method name="resetState"
  21584. abstract="true" native="false" synchronized="false"
  21585. static="false" final="false" visibility="public"
  21586. deprecated="not deprecated">
  21587. <exception name="IOException" type="java.io.IOException"/>
  21588. <doc>
  21589. <![CDATA[Reset the compression to the initial state.
  21590. Does not reset the underlying stream.]]>
  21591. </doc>
  21592. </method>
  21593. <field name="out" type="java.io.OutputStream"
  21594. transient="false" volatile="false"
  21595. static="false" final="true" visibility="protected"
  21596. deprecated="not deprecated">
  21597. <doc>
  21598. <![CDATA[The output stream to be compressed.]]>
  21599. </doc>
  21600. </field>
  21601. <doc>
  21602. <![CDATA[A compression output stream.]]>
  21603. </doc>
  21604. </class>
  21605. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  21606. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  21607. <interface name="Compressor" abstract="true"
  21608. static="false" final="false" visibility="public"
  21609. deprecated="not deprecated">
  21610. <method name="setInput"
  21611. abstract="false" native="false" synchronized="false"
  21612. static="false" final="false" visibility="public"
  21613. deprecated="not deprecated">
  21614. <param name="b" type="byte[]"/>
  21615. <param name="off" type="int"/>
  21616. <param name="len" type="int"/>
  21617. <doc>
  21618. <![CDATA[Sets input data for compression.
  21619. This should be called whenever #needsInput() returns
  21620. <code>true</code> indicating that more input data is required.
  21621. @param b Input data
  21622. @param off Start offset
  21623. @param len Length]]>
  21624. </doc>
  21625. </method>
  21626. <method name="needsInput" return="boolean"
  21627. abstract="false" native="false" synchronized="false"
  21628. static="false" final="false" visibility="public"
  21629. deprecated="not deprecated">
  21630. <doc>
  21631. <![CDATA[Returns true if the input data buffer is empty and
  21632. #setInput() should be called to provide more input.
  21633. @return <code>true</code> if the input data buffer is empty and
  21634. #setInput() should be called in order to provide more input.]]>
  21635. </doc>
  21636. </method>
  21637. <method name="setDictionary"
  21638. abstract="false" native="false" synchronized="false"
  21639. static="false" final="false" visibility="public"
  21640. deprecated="not deprecated">
  21641. <param name="b" type="byte[]"/>
  21642. <param name="off" type="int"/>
  21643. <param name="len" type="int"/>
  21644. <doc>
  21645. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  21646. is used when the history buffer can be predetermined.
  21647. @param b Dictionary data bytes
  21648. @param off Start offset
  21649. @param len Length]]>
  21650. </doc>
  21651. </method>
  21652. <method name="getBytesRead" return="long"
  21653. abstract="false" native="false" synchronized="false"
  21654. static="false" final="false" visibility="public"
  21655. deprecated="not deprecated">
  21656. <doc>
  21657. <![CDATA[Return number of uncompressed bytes input so far.]]>
  21658. </doc>
  21659. </method>
  21660. <method name="getBytesWritten" return="long"
  21661. abstract="false" native="false" synchronized="false"
  21662. static="false" final="false" visibility="public"
  21663. deprecated="not deprecated">
  21664. <doc>
  21665. <![CDATA[Return number of compressed bytes output so far.]]>
  21666. </doc>
  21667. </method>
  21668. <method name="finish"
  21669. abstract="false" native="false" synchronized="false"
  21670. static="false" final="false" visibility="public"
  21671. deprecated="not deprecated">
  21672. <doc>
  21673. <![CDATA[When called, indicates that compression should end
  21674. with the current contents of the input buffer.]]>
  21675. </doc>
  21676. </method>
  21677. <method name="finished" return="boolean"
  21678. abstract="false" native="false" synchronized="false"
  21679. static="false" final="false" visibility="public"
  21680. deprecated="not deprecated">
  21681. <doc>
  21682. <![CDATA[Returns true if the end of the compressed
  21683. data output stream has been reached.
  21684. @return <code>true</code> if the end of the compressed
  21685. data output stream has been reached.]]>
  21686. </doc>
  21687. </method>
  21688. <method name="compress" return="int"
  21689. abstract="false" native="false" synchronized="false"
  21690. static="false" final="false" visibility="public"
  21691. deprecated="not deprecated">
  21692. <param name="b" type="byte[]"/>
  21693. <param name="off" type="int"/>
  21694. <param name="len" type="int"/>
  21695. <exception name="IOException" type="java.io.IOException"/>
  21696. <doc>
  21697. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  21698. of bytes of compressed data. A return value of 0 indicates that
  21699. needsInput() should be called in order to determine if more input
  21700. data is required.
  21701. @param b Buffer for the compressed data
  21702. @param off Start offset of the data
  21703. @param len Size of the buffer
  21704. @return The actual number of bytes of compressed data.]]>
  21705. </doc>
  21706. </method>
  21707. <method name="reset"
  21708. abstract="false" native="false" synchronized="false"
  21709. static="false" final="false" visibility="public"
  21710. deprecated="not deprecated">
  21711. <doc>
  21712. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  21713. </doc>
  21714. </method>
  21715. <method name="end"
  21716. abstract="false" native="false" synchronized="false"
  21717. static="false" final="false" visibility="public"
  21718. deprecated="not deprecated">
  21719. <doc>
  21720. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  21721. </doc>
  21722. </method>
  21723. <method name="reinit"
  21724. abstract="false" native="false" synchronized="false"
  21725. static="false" final="false" visibility="public"
  21726. deprecated="not deprecated">
  21727. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21728. <doc>
  21729. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  21730. the given Configuration
  21731. @param conf Configuration from which new setting are fetched]]>
  21732. </doc>
  21733. </method>
  21734. <doc>
  21735. <![CDATA[Specification of a stream-based 'compressor' which can be
  21736. plugged into a {@link CompressionOutputStream} to compress data.
  21737. This is modelled after {@link java.util.zip.Deflater}]]>
  21738. </doc>
  21739. </interface>
  21740. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  21741. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  21742. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  21743. abstract="false"
  21744. static="false" final="false" visibility="public"
  21745. deprecated="not deprecated">
  21746. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  21747. static="false" final="false" visibility="public"
  21748. deprecated="not deprecated">
  21749. </constructor>
  21750. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  21751. static="false" final="false" visibility="public"
  21752. deprecated="not deprecated">
  21753. </constructor>
  21754. <constructor name="CompressorStream" type="java.io.OutputStream"
  21755. static="false" final="false" visibility="protected"
  21756. deprecated="not deprecated">
  21757. <doc>
  21758. <![CDATA[Allow derived classes to directly set the underlying stream.
  21759. @param out Underlying output stream.]]>
  21760. </doc>
  21761. </constructor>
  21762. <method name="write"
  21763. abstract="false" native="false" synchronized="false"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="not deprecated">
  21766. <param name="b" type="byte[]"/>
  21767. <param name="off" type="int"/>
  21768. <param name="len" type="int"/>
  21769. <exception name="IOException" type="java.io.IOException"/>
  21770. </method>
  21771. <method name="compress"
  21772. abstract="false" native="false" synchronized="false"
  21773. static="false" final="false" visibility="protected"
  21774. deprecated="not deprecated">
  21775. <exception name="IOException" type="java.io.IOException"/>
  21776. </method>
  21777. <method name="finish"
  21778. abstract="false" native="false" synchronized="false"
  21779. static="false" final="false" visibility="public"
  21780. deprecated="not deprecated">
  21781. <exception name="IOException" type="java.io.IOException"/>
  21782. </method>
  21783. <method name="resetState"
  21784. abstract="false" native="false" synchronized="false"
  21785. static="false" final="false" visibility="public"
  21786. deprecated="not deprecated">
  21787. <exception name="IOException" type="java.io.IOException"/>
  21788. </method>
  21789. <method name="close"
  21790. abstract="false" native="false" synchronized="false"
  21791. static="false" final="false" visibility="public"
  21792. deprecated="not deprecated">
  21793. <exception name="IOException" type="java.io.IOException"/>
  21794. </method>
  21795. <method name="write"
  21796. abstract="false" native="false" synchronized="false"
  21797. static="false" final="false" visibility="public"
  21798. deprecated="not deprecated">
  21799. <param name="b" type="int"/>
  21800. <exception name="IOException" type="java.io.IOException"/>
  21801. </method>
  21802. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  21803. transient="false" volatile="false"
  21804. static="false" final="false" visibility="protected"
  21805. deprecated="not deprecated">
  21806. </field>
  21807. <field name="buffer" type="byte[]"
  21808. transient="false" volatile="false"
  21809. static="false" final="false" visibility="protected"
  21810. deprecated="not deprecated">
  21811. </field>
  21812. <field name="closed" type="boolean"
  21813. transient="false" volatile="false"
  21814. static="false" final="false" visibility="protected"
  21815. deprecated="not deprecated">
  21816. </field>
  21817. </class>
  21818. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  21819. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  21820. <interface name="Decompressor" abstract="true"
  21821. static="false" final="false" visibility="public"
  21822. deprecated="not deprecated">
  21823. <method name="setInput"
  21824. abstract="false" native="false" synchronized="false"
  21825. static="false" final="false" visibility="public"
  21826. deprecated="not deprecated">
  21827. <param name="b" type="byte[]"/>
  21828. <param name="off" type="int"/>
  21829. <param name="len" type="int"/>
  21830. <doc>
  21831. <![CDATA[Sets input data for decompression.
  21832. This should be called if and only if {@link #needsInput()} returns
  21833. <code>true</code> indicating that more input data is required.
  21834. (Both native and non-native versions of various Decompressors require
  21835. that the data passed in via <code>b[]</code> remain unmodified until
  21836. the caller is explicitly notified--via {@link #needsInput()}--that the
  21837. buffer may be safely modified. With this requirement, an extra
  21838. buffer-copy can be avoided.)
  21839. @param b Input data
  21840. @param off Start offset
  21841. @param len Length]]>
  21842. </doc>
  21843. </method>
  21844. <method name="needsInput" return="boolean"
  21845. abstract="false" native="false" synchronized="false"
  21846. static="false" final="false" visibility="public"
  21847. deprecated="not deprecated">
  21848. <doc>
  21849. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  21850. {@link #setInput(byte[], int, int)} should be called to
  21851. provide more input.
  21852. @return <code>true</code> if the input data buffer is empty and
  21853. {@link #setInput(byte[], int, int)} should be called in
  21854. order to provide more input.]]>
  21855. </doc>
  21856. </method>
  21857. <method name="setDictionary"
  21858. abstract="false" native="false" synchronized="false"
  21859. static="false" final="false" visibility="public"
  21860. deprecated="not deprecated">
  21861. <param name="b" type="byte[]"/>
  21862. <param name="off" type="int"/>
  21863. <param name="len" type="int"/>
  21864. <doc>
  21865. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  21866. is used when the history buffer can be predetermined.
  21867. @param b Dictionary data bytes
  21868. @param off Start offset
  21869. @param len Length]]>
  21870. </doc>
  21871. </method>
  21872. <method name="needsDictionary" return="boolean"
  21873. abstract="false" native="false" synchronized="false"
  21874. static="false" final="false" visibility="public"
  21875. deprecated="not deprecated">
  21876. <doc>
  21877. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  21878. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  21879. </doc>
  21880. </method>
  21881. <method name="finished" return="boolean"
  21882. abstract="false" native="false" synchronized="false"
  21883. static="false" final="false" visibility="public"
  21884. deprecated="not deprecated">
  21885. <doc>
  21886. <![CDATA[Returns <code>true</code> if the end of the decompressed
  21887. data output stream has been reached. Indicates a concatenated data stream
  21888. when finished() returns <code>true</code> and {@link #getRemaining()}
  21889. returns a positive value. finished() will be reset with the
  21890. {@link #reset()} method.
  21891. @return <code>true</code> if the end of the decompressed
  21892. data output stream has been reached.]]>
  21893. </doc>
  21894. </method>
  21895. <method name="decompress" return="int"
  21896. abstract="false" native="false" synchronized="false"
  21897. static="false" final="false" visibility="public"
  21898. deprecated="not deprecated">
  21899. <param name="b" type="byte[]"/>
  21900. <param name="off" type="int"/>
  21901. <param name="len" type="int"/>
  21902. <exception name="IOException" type="java.io.IOException"/>
  21903. <doc>
  21904. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  21905. of bytes of uncompressed data. A return value of 0 indicates that
  21906. {@link #needsInput()} should be called in order to determine if more
  21907. input data is required.
  21908. @param b Buffer for the compressed data
  21909. @param off Start offset of the data
  21910. @param len Size of the buffer
  21911. @return The actual number of bytes of compressed data.
  21912. @throws IOException]]>
  21913. </doc>
  21914. </method>
  21915. <method name="getRemaining" return="int"
  21916. abstract="false" native="false" synchronized="false"
  21917. static="false" final="false" visibility="public"
  21918. deprecated="not deprecated">
  21919. <doc>
  21920. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  21921. Indicates a concatenated data stream if {@link #finished()} returns
  21922. <code>true</code> and getRemaining() returns a positive value. If
  21923. {@link #finished()} returns <code>true</code> and getRemaining() returns
  21924. a zero value, indicates that the end of data stream has been reached and
  21925. is not a concatenated data stream.
  21926. @return The number of bytes remaining in the compressed data buffer.]]>
  21927. </doc>
  21928. </method>
  21929. <method name="reset"
  21930. abstract="false" native="false" synchronized="false"
  21931. static="false" final="false" visibility="public"
  21932. deprecated="not deprecated">
  21933. <doc>
  21934. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  21935. input data can be processed. If {@link #finished()}} returns
  21936. <code>true</code> and {@link #getRemaining()} returns a positive value,
  21937. reset() is called before processing of the next data stream in the
  21938. concatenated data stream. {@link #finished()} will be reset and will
  21939. return <code>false</code> when reset() is called.]]>
  21940. </doc>
  21941. </method>
  21942. <method name="end"
  21943. abstract="false" native="false" synchronized="false"
  21944. static="false" final="false" visibility="public"
  21945. deprecated="not deprecated">
  21946. <doc>
  21947. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  21948. </doc>
  21949. </method>
  21950. <doc>
  21951. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  21952. plugged into a {@link CompressionInputStream} to compress data.
  21953. This is modelled after {@link java.util.zip.Inflater}]]>
  21954. </doc>
  21955. </interface>
  21956. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  21957. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  21958. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  21959. abstract="false"
  21960. static="false" final="false" visibility="public"
  21961. deprecated="not deprecated">
  21962. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  21963. static="false" final="false" visibility="public"
  21964. deprecated="not deprecated">
  21965. <exception name="IOException" type="java.io.IOException"/>
  21966. </constructor>
  21967. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  21968. static="false" final="false" visibility="public"
  21969. deprecated="not deprecated">
  21970. <exception name="IOException" type="java.io.IOException"/>
  21971. </constructor>
  21972. <constructor name="DecompressorStream" type="java.io.InputStream"
  21973. static="false" final="false" visibility="protected"
  21974. deprecated="not deprecated">
  21975. <exception name="IOException" type="java.io.IOException"/>
  21976. <doc>
  21977. <![CDATA[Allow derived classes to directly set the underlying stream.
  21978. @param in Underlying input stream.
  21979. @throws IOException]]>
  21980. </doc>
  21981. </constructor>
  21982. <method name="read" return="int"
  21983. abstract="false" native="false" synchronized="false"
  21984. static="false" final="false" visibility="public"
  21985. deprecated="not deprecated">
  21986. <exception name="IOException" type="java.io.IOException"/>
  21987. </method>
  21988. <method name="read" return="int"
  21989. abstract="false" native="false" synchronized="false"
  21990. static="false" final="false" visibility="public"
  21991. deprecated="not deprecated">
  21992. <param name="b" type="byte[]"/>
  21993. <param name="off" type="int"/>
  21994. <param name="len" type="int"/>
  21995. <exception name="IOException" type="java.io.IOException"/>
  21996. </method>
  21997. <method name="decompress" return="int"
  21998. abstract="false" native="false" synchronized="false"
  21999. static="false" final="false" visibility="protected"
  22000. deprecated="not deprecated">
  22001. <param name="b" type="byte[]"/>
  22002. <param name="off" type="int"/>
  22003. <param name="len" type="int"/>
  22004. <exception name="IOException" type="java.io.IOException"/>
  22005. </method>
  22006. <method name="getCompressedData" return="int"
  22007. abstract="false" native="false" synchronized="false"
  22008. static="false" final="false" visibility="protected"
  22009. deprecated="not deprecated">
  22010. <exception name="IOException" type="java.io.IOException"/>
  22011. </method>
  22012. <method name="checkStream"
  22013. abstract="false" native="false" synchronized="false"
  22014. static="false" final="false" visibility="protected"
  22015. deprecated="not deprecated">
  22016. <exception name="IOException" type="java.io.IOException"/>
  22017. </method>
  22018. <method name="resetState"
  22019. abstract="false" native="false" synchronized="false"
  22020. static="false" final="false" visibility="public"
  22021. deprecated="not deprecated">
  22022. <exception name="IOException" type="java.io.IOException"/>
  22023. </method>
  22024. <method name="skip" return="long"
  22025. abstract="false" native="false" synchronized="false"
  22026. static="false" final="false" visibility="public"
  22027. deprecated="not deprecated">
  22028. <param name="n" type="long"/>
  22029. <exception name="IOException" type="java.io.IOException"/>
  22030. </method>
  22031. <method name="available" return="int"
  22032. abstract="false" native="false" synchronized="false"
  22033. static="false" final="false" visibility="public"
  22034. deprecated="not deprecated">
  22035. <exception name="IOException" type="java.io.IOException"/>
  22036. </method>
  22037. <method name="close"
  22038. abstract="false" native="false" synchronized="false"
  22039. static="false" final="false" visibility="public"
  22040. deprecated="not deprecated">
  22041. <exception name="IOException" type="java.io.IOException"/>
  22042. </method>
  22043. <method name="markSupported" return="boolean"
  22044. abstract="false" native="false" synchronized="false"
  22045. static="false" final="false" visibility="public"
  22046. deprecated="not deprecated">
  22047. </method>
  22048. <method name="mark"
  22049. abstract="false" native="false" synchronized="true"
  22050. static="false" final="false" visibility="public"
  22051. deprecated="not deprecated">
  22052. <param name="readlimit" type="int"/>
  22053. </method>
  22054. <method name="reset"
  22055. abstract="false" native="false" synchronized="true"
  22056. static="false" final="false" visibility="public"
  22057. deprecated="not deprecated">
  22058. <exception name="IOException" type="java.io.IOException"/>
  22059. </method>
  22060. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  22061. transient="false" volatile="false"
  22062. static="false" final="false" visibility="protected"
  22063. deprecated="not deprecated">
  22064. </field>
  22065. <field name="buffer" type="byte[]"
  22066. transient="false" volatile="false"
  22067. static="false" final="false" visibility="protected"
  22068. deprecated="not deprecated">
  22069. </field>
  22070. <field name="eof" type="boolean"
  22071. transient="false" volatile="false"
  22072. static="false" final="false" visibility="protected"
  22073. deprecated="not deprecated">
  22074. </field>
  22075. <field name="closed" type="boolean"
  22076. transient="false" volatile="false"
  22077. static="false" final="false" visibility="protected"
  22078. deprecated="not deprecated">
  22079. </field>
  22080. </class>
  22081. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  22082. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  22083. <class name="DefaultCodec" extends="java.lang.Object"
  22084. abstract="false"
  22085. static="false" final="false" visibility="public"
  22086. deprecated="not deprecated">
  22087. <implements name="org.apache.hadoop.conf.Configurable"/>
  22088. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22089. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  22090. <constructor name="DefaultCodec"
  22091. static="false" final="false" visibility="public"
  22092. deprecated="not deprecated">
  22093. </constructor>
  22094. <method name="setConf"
  22095. abstract="false" native="false" synchronized="false"
  22096. static="false" final="false" visibility="public"
  22097. deprecated="not deprecated">
  22098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22099. </method>
  22100. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22101. abstract="false" native="false" synchronized="false"
  22102. static="false" final="false" visibility="public"
  22103. deprecated="not deprecated">
  22104. </method>
  22105. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22106. abstract="false" native="false" synchronized="false"
  22107. static="false" final="false" visibility="public"
  22108. deprecated="not deprecated">
  22109. <param name="out" type="java.io.OutputStream"/>
  22110. <exception name="IOException" type="java.io.IOException"/>
  22111. </method>
  22112. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22113. abstract="false" native="false" synchronized="false"
  22114. static="false" final="false" visibility="public"
  22115. deprecated="not deprecated">
  22116. <param name="out" type="java.io.OutputStream"/>
  22117. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22118. <exception name="IOException" type="java.io.IOException"/>
  22119. </method>
  22120. <method name="getCompressorType" return="java.lang.Class"
  22121. abstract="false" native="false" synchronized="false"
  22122. static="false" final="false" visibility="public"
  22123. deprecated="not deprecated">
  22124. </method>
  22125. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22126. abstract="false" native="false" synchronized="false"
  22127. static="false" final="false" visibility="public"
  22128. deprecated="not deprecated">
  22129. </method>
  22130. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22131. abstract="false" native="false" synchronized="false"
  22132. static="false" final="false" visibility="public"
  22133. deprecated="not deprecated">
  22134. <param name="in" type="java.io.InputStream"/>
  22135. <exception name="IOException" type="java.io.IOException"/>
  22136. </method>
  22137. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22138. abstract="false" native="false" synchronized="false"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. <param name="in" type="java.io.InputStream"/>
  22142. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22143. <exception name="IOException" type="java.io.IOException"/>
  22144. </method>
  22145. <method name="getDecompressorType" return="java.lang.Class"
  22146. abstract="false" native="false" synchronized="false"
  22147. static="false" final="false" visibility="public"
  22148. deprecated="not deprecated">
  22149. </method>
  22150. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22151. abstract="false" native="false" synchronized="false"
  22152. static="false" final="false" visibility="public"
  22153. deprecated="not deprecated">
  22154. </method>
  22155. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22156. abstract="false" native="false" synchronized="false"
  22157. static="false" final="false" visibility="public"
  22158. deprecated="not deprecated">
  22159. <doc>
  22160. <![CDATA[{@inheritDoc}]]>
  22161. </doc>
  22162. </method>
  22163. <method name="getDefaultExtension" return="java.lang.String"
  22164. abstract="false" native="false" synchronized="false"
  22165. static="false" final="false" visibility="public"
  22166. deprecated="not deprecated">
  22167. </method>
  22168. </class>
  22169. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  22170. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  22171. <interface name="DirectDecompressionCodec" abstract="true"
  22172. static="false" final="false" visibility="public"
  22173. deprecated="not deprecated">
  22174. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22175. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22176. abstract="false" native="false" synchronized="false"
  22177. static="false" final="false" visibility="public"
  22178. deprecated="not deprecated">
  22179. <doc>
  22180. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  22181. @return a new direct decompressor for use by this codec]]>
  22182. </doc>
  22183. </method>
  22184. <doc>
  22185. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  22186. </doc>
  22187. </interface>
  22188. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  22189. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  22190. <interface name="DirectDecompressor" abstract="true"
  22191. static="false" final="false" visibility="public"
  22192. deprecated="not deprecated">
  22193. <method name="decompress"
  22194. abstract="false" native="false" synchronized="false"
  22195. static="false" final="false" visibility="public"
  22196. deprecated="not deprecated">
  22197. <param name="src" type="java.nio.ByteBuffer"/>
  22198. <param name="dst" type="java.nio.ByteBuffer"/>
  22199. <exception name="IOException" type="java.io.IOException"/>
  22200. </method>
  22201. <doc>
  22202. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  22203. </doc>
  22204. </interface>
  22205. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  22206. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  22207. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  22208. abstract="false"
  22209. static="false" final="false" visibility="public"
  22210. deprecated="not deprecated">
  22211. <constructor name="GzipCodec"
  22212. static="false" final="false" visibility="public"
  22213. deprecated="not deprecated">
  22214. </constructor>
  22215. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22216. abstract="false" native="false" synchronized="false"
  22217. static="false" final="false" visibility="public"
  22218. deprecated="not deprecated">
  22219. <param name="out" type="java.io.OutputStream"/>
  22220. <exception name="IOException" type="java.io.IOException"/>
  22221. </method>
  22222. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22223. abstract="false" native="false" synchronized="false"
  22224. static="false" final="false" visibility="public"
  22225. deprecated="not deprecated">
  22226. <param name="out" type="java.io.OutputStream"/>
  22227. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22228. <exception name="IOException" type="java.io.IOException"/>
  22229. </method>
  22230. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22231. abstract="false" native="false" synchronized="false"
  22232. static="false" final="false" visibility="public"
  22233. deprecated="not deprecated">
  22234. </method>
  22235. <method name="getCompressorType" return="java.lang.Class"
  22236. abstract="false" native="false" synchronized="false"
  22237. static="false" final="false" visibility="public"
  22238. deprecated="not deprecated">
  22239. </method>
  22240. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22241. abstract="false" native="false" synchronized="false"
  22242. static="false" final="false" visibility="public"
  22243. deprecated="not deprecated">
  22244. <param name="in" type="java.io.InputStream"/>
  22245. <exception name="IOException" type="java.io.IOException"/>
  22246. </method>
  22247. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22248. abstract="false" native="false" synchronized="false"
  22249. static="false" final="false" visibility="public"
  22250. deprecated="not deprecated">
  22251. <param name="in" type="java.io.InputStream"/>
  22252. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22253. <exception name="IOException" type="java.io.IOException"/>
  22254. </method>
  22255. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22256. abstract="false" native="false" synchronized="false"
  22257. static="false" final="false" visibility="public"
  22258. deprecated="not deprecated">
  22259. </method>
  22260. <method name="getDecompressorType" return="java.lang.Class"
  22261. abstract="false" native="false" synchronized="false"
  22262. static="false" final="false" visibility="public"
  22263. deprecated="not deprecated">
  22264. </method>
  22265. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22266. abstract="false" native="false" synchronized="false"
  22267. static="false" final="false" visibility="public"
  22268. deprecated="not deprecated">
  22269. </method>
  22270. <method name="getDefaultExtension" return="java.lang.String"
  22271. abstract="false" native="false" synchronized="false"
  22272. static="false" final="false" visibility="public"
  22273. deprecated="not deprecated">
  22274. </method>
  22275. <doc>
  22276. <![CDATA[This class creates gzip compressors/decompressors.]]>
  22277. </doc>
  22278. </class>
  22279. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  22280. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  22281. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  22282. abstract="true"
  22283. static="false" final="false" visibility="public"
  22284. deprecated="not deprecated">
  22285. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  22286. static="false" final="false" visibility="public"
  22287. deprecated="not deprecated">
  22288. <exception name="IOException" type="java.io.IOException"/>
  22289. </constructor>
  22290. <method name="setStart"
  22291. abstract="false" native="false" synchronized="false"
  22292. static="false" final="false" visibility="protected"
  22293. deprecated="not deprecated">
  22294. <param name="start" type="long"/>
  22295. </method>
  22296. <method name="setEnd"
  22297. abstract="false" native="false" synchronized="false"
  22298. static="false" final="false" visibility="protected"
  22299. deprecated="not deprecated">
  22300. <param name="end" type="long"/>
  22301. </method>
  22302. <method name="getAdjustedStart" return="long"
  22303. abstract="false" native="false" synchronized="false"
  22304. static="false" final="false" visibility="public"
  22305. deprecated="not deprecated">
  22306. <doc>
  22307. <![CDATA[After calling createInputStream, the values of start or end
  22308. might change. So this method can be used to get the new value of start.
  22309. @return The changed value of start]]>
  22310. </doc>
  22311. </method>
  22312. <method name="getAdjustedEnd" return="long"
  22313. abstract="false" native="false" synchronized="false"
  22314. static="false" final="false" visibility="public"
  22315. deprecated="not deprecated">
  22316. <doc>
  22317. <![CDATA[After calling createInputStream, the values of start or end
  22318. might change. So this method can be used to get the new value of end.
  22319. @return The changed value of end]]>
  22320. </doc>
  22321. </method>
  22322. <doc>
  22323. <![CDATA[An InputStream covering a range of compressed data. The start and end
  22324. offsets requested by a client may be modified by the codec to fit block
  22325. boundaries or other algorithm-dependent requirements.]]>
  22326. </doc>
  22327. </class>
  22328. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  22329. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  22330. <interface name="SplittableCompressionCodec" abstract="true"
  22331. static="false" final="false" visibility="public"
  22332. deprecated="not deprecated">
  22333. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22334. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  22335. abstract="false" native="false" synchronized="false"
  22336. static="false" final="false" visibility="public"
  22337. deprecated="not deprecated">
  22338. <param name="seekableIn" type="java.io.InputStream"/>
  22339. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22340. <param name="start" type="long"/>
  22341. <param name="end" type="long"/>
  22342. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  22343. <exception name="IOException" type="java.io.IOException"/>
  22344. <doc>
  22345. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  22346. the codecs wants the ability to work with the underlying stream positions.
  22347. @param seekableIn The seekable input stream (seeks in compressed data)
  22348. @param start The start offset into the compressed stream. May be changed
  22349. by the underlying codec.
  22350. @param end The end offset into the compressed stream. May be changed by
  22351. the underlying codec.
  22352. @param readMode Controls whether stream position is reported continuously
  22353. from the compressed stream only only at block boundaries.
  22354. @return a stream to read uncompressed bytes from]]>
  22355. </doc>
  22356. </method>
  22357. <doc>
  22358. <![CDATA[This interface is meant to be implemented by those compression codecs
  22359. which are capable to compress / de-compress a stream starting at any
  22360. arbitrary position.
  22361. Especially the process of de-compressing a stream starting at some arbitrary
  22362. position is challenging. Most of the codecs are only able to successfully
  22363. de-compress a stream, if they start from the very beginning till the end.
  22364. One of the reasons is the stored state at the beginning of the stream which
  22365. is crucial for de-compression.
  22366. Yet there are few codecs which do not save the whole state at the beginning
  22367. of the stream and hence can be used to de-compress stream starting at any
  22368. arbitrary points. This interface is meant to be used by such codecs. Such
  22369. codecs are highly valuable, especially in the context of Hadoop, because
  22370. an input compressed file can be split and hence can be worked on by multiple
  22371. machines in parallel.]]>
  22372. </doc>
  22373. </interface>
  22374. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  22375. </package>
  22376. <package name="org.apache.hadoop.io.file.tfile">
  22377. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  22378. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  22379. abstract="false"
  22380. static="false" final="false" visibility="public"
  22381. deprecated="not deprecated">
  22382. <doc>
  22383. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  22384. </doc>
  22385. </class>
  22386. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  22387. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  22388. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  22389. abstract="false"
  22390. static="false" final="false" visibility="public"
  22391. deprecated="not deprecated">
  22392. <doc>
  22393. <![CDATA[Exception - No such Meta Block with the given name.]]>
  22394. </doc>
  22395. </class>
  22396. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  22397. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  22398. <interface name="RawComparable" abstract="true"
  22399. static="false" final="false" visibility="public"
  22400. deprecated="not deprecated">
  22401. <method name="buffer" return="byte[]"
  22402. abstract="false" native="false" synchronized="false"
  22403. static="false" final="false" visibility="public"
  22404. deprecated="not deprecated">
  22405. <doc>
  22406. <![CDATA[Get the underlying byte array.
  22407. @return The underlying byte array.]]>
  22408. </doc>
  22409. </method>
  22410. <method name="offset" return="int"
  22411. abstract="false" native="false" synchronized="false"
  22412. static="false" final="false" visibility="public"
  22413. deprecated="not deprecated">
  22414. <doc>
  22415. <![CDATA[Get the offset of the first byte in the byte array.
  22416. @return The offset of the first byte in the byte array.]]>
  22417. </doc>
  22418. </method>
  22419. <method name="size" return="int"
  22420. abstract="false" native="false" synchronized="false"
  22421. static="false" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. <doc>
  22424. <![CDATA[Get the size of the byte range in the byte array.
  22425. @return The size of the byte range in the byte array.]]>
  22426. </doc>
  22427. </method>
  22428. <doc>
  22429. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  22430. This is useful in places where we need a single object reference to specify a
  22431. range of bytes in a byte array, such as {@link Comparable} or
  22432. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  22433. The actual comparison among RawComparable's requires an external
  22434. RawComparator and it is applications' responsibility to ensure two
  22435. RawComparable are supposed to be semantically comparable with the same
  22436. RawComparator.]]>
  22437. </doc>
  22438. </interface>
  22439. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  22440. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  22441. <class name="TFile" extends="java.lang.Object"
  22442. abstract="false"
  22443. static="false" final="false" visibility="public"
  22444. deprecated="not deprecated">
  22445. <method name="makeComparator" return="java.util.Comparator"
  22446. abstract="false" native="false" synchronized="false"
  22447. static="true" final="false" visibility="public"
  22448. deprecated="not deprecated">
  22449. <param name="name" type="java.lang.String"/>
  22450. <doc>
  22451. <![CDATA[Make a raw comparator from a string name.
  22452. @param name
  22453. Comparator name
  22454. @return A RawComparable comparator.]]>
  22455. </doc>
  22456. </method>
  22457. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  22458. abstract="false" native="false" synchronized="false"
  22459. static="true" final="false" visibility="public"
  22460. deprecated="not deprecated">
  22461. <doc>
  22462. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  22463. TFile.Writer.
  22464. @return Array of strings, each represents a supported compression
  22465. algorithm. Currently, the following compression algorithms are
  22466. supported.
  22467. <ul>
  22468. <li>"none" - No compression.
  22469. <li>"lzo" - LZO compression.
  22470. <li>"gz" - GZIP compression.
  22471. </ul>]]>
  22472. </doc>
  22473. </method>
  22474. <method name="main"
  22475. abstract="false" native="false" synchronized="false"
  22476. static="true" final="false" visibility="public"
  22477. deprecated="not deprecated">
  22478. <param name="args" type="java.lang.String[]"/>
  22479. <doc>
  22480. <![CDATA[Dumping the TFile information.
  22481. @param args
  22482. A list of TFile paths.]]>
  22483. </doc>
  22484. </method>
  22485. <field name="COMPRESSION_GZ" type="java.lang.String"
  22486. transient="false" volatile="false"
  22487. static="true" final="true" visibility="public"
  22488. deprecated="not deprecated">
  22489. <doc>
  22490. <![CDATA[compression: gzip]]>
  22491. </doc>
  22492. </field>
  22493. <field name="COMPRESSION_LZO" type="java.lang.String"
  22494. transient="false" volatile="false"
  22495. static="true" final="true" visibility="public"
  22496. deprecated="not deprecated">
  22497. <doc>
  22498. <![CDATA[compression: lzo]]>
  22499. </doc>
  22500. </field>
  22501. <field name="COMPRESSION_NONE" type="java.lang.String"
  22502. transient="false" volatile="false"
  22503. static="true" final="true" visibility="public"
  22504. deprecated="not deprecated">
  22505. <doc>
  22506. <![CDATA[compression: none]]>
  22507. </doc>
  22508. </field>
  22509. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  22510. transient="false" volatile="false"
  22511. static="true" final="true" visibility="public"
  22512. deprecated="not deprecated">
  22513. <doc>
  22514. <![CDATA[comparator: memcmp]]>
  22515. </doc>
  22516. </field>
  22517. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  22518. transient="false" volatile="false"
  22519. static="true" final="true" visibility="public"
  22520. deprecated="not deprecated">
  22521. <doc>
  22522. <![CDATA[comparator prefix: java class]]>
  22523. </doc>
  22524. </field>
  22525. <doc>
  22526. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  22527. bytes. Keys are restricted to 64KB, value length is not restricted
  22528. (practically limited to the available disk storage). TFile further provides
  22529. the following features:
  22530. <ul>
  22531. <li>Block Compression.
  22532. <li>Named meta data blocks.
  22533. <li>Sorted or unsorted keys.
  22534. <li>Seek by key or by file offset.
  22535. </ul>
  22536. The memory footprint of a TFile includes the following:
  22537. <ul>
  22538. <li>Some constant overhead of reading or writing a compressed block.
  22539. <ul>
  22540. <li>Each compressed block requires one compression/decompression codec for
  22541. I/O.
  22542. <li>Temporary space to buffer the key.
  22543. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  22544. chunk encoded, so that we buffer at most one chunk of user data. By default,
  22545. the chunk buffer is 1MB. Reading chunked value does not require additional
  22546. memory.
  22547. </ul>
  22548. <li>TFile index, which is proportional to the total number of Data Blocks.
  22549. The total amount of memory needed to hold the index can be estimated as
  22550. (56+AvgKeySize)*NumBlocks.
  22551. <li>MetaBlock index, which is proportional to the total number of Meta
  22552. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  22553. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  22554. </ul>
  22555. <p>
  22556. The behavior of TFile can be customized by the following variables through
  22557. Configuration:
  22558. <ul>
  22559. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  22560. to 1MB. Values of the length less than the chunk size is guaranteed to have
  22561. known value length in read time (See
  22562. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  22563. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  22564. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  22565. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  22566. FSDataInputStream. Integer (in bytes). Default to 256KB.
  22567. </ul>
  22568. <p>
  22569. Suggestions on performance optimization.
  22570. <ul>
  22571. <li>Minimum block size. We recommend a setting of minimum block size between
  22572. 256KB to 1MB for general usage. Larger block size is preferred if files are
  22573. primarily for sequential access. However, it would lead to inefficient random
  22574. access (because there are more data to decompress). Smaller blocks are good
  22575. for random access, but require more memory to hold the block index, and may
  22576. be slower to create (because we must flush the compressor stream at the
  22577. conclusion of each data block, which leads to an FS I/O flush). Further, due
  22578. to the internal caching in Compression codec, the smallest possible block
  22579. size would be around 20KB-30KB.
  22580. <li>The current implementation does not offer true multi-threading for
  22581. reading. The implementation uses FSDataInputStream seek()+read(), which is
  22582. shown to be much faster than positioned-read call in single thread mode.
  22583. However, it also means that if multiple threads attempt to access the same
  22584. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  22585. sequentially even if they access different DFS blocks.
  22586. <li>Compression codec. Use "none" if the data is not very compressable (by
  22587. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  22588. as the starting point for experimenting. "gz" overs slightly better
  22589. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  22590. decompress, comparing to "lzo".
  22591. <li>File system buffering, if the underlying FSDataInputStream and
  22592. FSDataOutputStream is already adequately buffered; or if applications
  22593. reads/writes keys and values in large buffers, we can reduce the sizes of
  22594. input/output buffering in TFile layer by setting the configuration parameters
  22595. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  22596. </ul>
  22597. Some design rationale behind TFile can be found at <a
  22598. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  22599. </doc>
  22600. </class>
  22601. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  22602. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  22603. <class name="Utils" extends="java.lang.Object"
  22604. abstract="false"
  22605. static="false" final="true" visibility="public"
  22606. deprecated="not deprecated">
  22607. <method name="writeVInt"
  22608. abstract="false" native="false" synchronized="false"
  22609. static="true" final="false" visibility="public"
  22610. deprecated="not deprecated">
  22611. <param name="out" type="java.io.DataOutput"/>
  22612. <param name="n" type="int"/>
  22613. <exception name="IOException" type="java.io.IOException"/>
  22614. <doc>
  22615. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  22616. <code>Utils#writeVLong(out, n)</code>.
  22617. @param out
  22618. output stream
  22619. @param n
  22620. The integer to be encoded
  22621. @throws IOException
  22622. @see Utils#writeVLong(DataOutput, long)]]>
  22623. </doc>
  22624. </method>
  22625. <method name="writeVLong"
  22626. abstract="false" native="false" synchronized="false"
  22627. static="true" final="false" visibility="public"
  22628. deprecated="not deprecated">
  22629. <param name="out" type="java.io.DataOutput"/>
  22630. <param name="n" type="long"/>
  22631. <exception name="IOException" type="java.io.IOException"/>
  22632. <doc>
  22633. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  22634. <ul>
  22635. <li>if n in [-32, 127): encode in one byte with the actual value.
  22636. Otherwise,
  22637. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  22638. byte[1]=n&0xff. Otherwise,
  22639. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  22640. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  22641. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  22642. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  22643. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  22644. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  22645. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  22646. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  22647. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  22648. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  22649. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  22650. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  22651. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  22652. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  22653. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  22654. byte[7]=n&0xff;
  22655. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  22656. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  22657. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  22658. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  22659. </ul>
  22660. @param out
  22661. output stream
  22662. @param n
  22663. the integer number
  22664. @throws IOException]]>
  22665. </doc>
  22666. </method>
  22667. <method name="readVInt" return="int"
  22668. abstract="false" native="false" synchronized="false"
  22669. static="true" final="false" visibility="public"
  22670. deprecated="not deprecated">
  22671. <param name="in" type="java.io.DataInput"/>
  22672. <exception name="IOException" type="java.io.IOException"/>
  22673. <doc>
  22674. <![CDATA[Decoding the variable-length integer. Synonymous to
  22675. <code>(int)Utils#readVLong(in)</code>.
  22676. @param in
  22677. input stream
  22678. @return the decoded integer
  22679. @throws IOException
  22680. @see Utils#readVLong(DataInput)]]>
  22681. </doc>
  22682. </method>
  22683. <method name="readVLong" return="long"
  22684. abstract="false" native="false" synchronized="false"
  22685. static="true" final="false" visibility="public"
  22686. deprecated="not deprecated">
  22687. <param name="in" type="java.io.DataInput"/>
  22688. <exception name="IOException" type="java.io.IOException"/>
  22689. <doc>
  22690. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  22691. is FB, and the following bytes are NB[*].
  22692. <ul>
  22693. <li>if (FB >= -32), return (long)FB;
  22694. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  22695. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  22696. NB[1]&0xff;
  22697. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  22698. (NB[1]&0xff)<<8 + NB[2]&0xff;
  22699. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  22700. big-endian integer.
  22701. @param in
  22702. input stream
  22703. @return the decoded long integer.
  22704. @throws IOException]]>
  22705. </doc>
  22706. </method>
  22707. <method name="writeString"
  22708. abstract="false" native="false" synchronized="false"
  22709. static="true" final="false" visibility="public"
  22710. deprecated="not deprecated">
  22711. <param name="out" type="java.io.DataOutput"/>
  22712. <param name="s" type="java.lang.String"/>
  22713. <exception name="IOException" type="java.io.IOException"/>
  22714. <doc>
  22715. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  22716. @param out
  22717. @param s
  22718. @throws IOException]]>
  22719. </doc>
  22720. </method>
  22721. <method name="readString" return="java.lang.String"
  22722. abstract="false" native="false" synchronized="false"
  22723. static="true" final="false" visibility="public"
  22724. deprecated="not deprecated">
  22725. <param name="in" type="java.io.DataInput"/>
  22726. <exception name="IOException" type="java.io.IOException"/>
  22727. <doc>
  22728. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  22729. @param in
  22730. The input stream.
  22731. @return The string
  22732. @throws IOException]]>
  22733. </doc>
  22734. </method>
  22735. <method name="lowerBound" return="int"
  22736. abstract="false" native="false" synchronized="false"
  22737. static="true" final="false" visibility="public"
  22738. deprecated="not deprecated">
  22739. <param name="list" type="java.util.List"/>
  22740. <param name="key" type="T"/>
  22741. <param name="cmp" type="java.util.Comparator"/>
  22742. <doc>
  22743. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  22744. that compares greater than or equal to key.
  22745. @param <T>
  22746. Type of the input key.
  22747. @param list
  22748. The list
  22749. @param key
  22750. The input key.
  22751. @param cmp
  22752. Comparator for the key.
  22753. @return The index to the desired element if it exists; or list.size()
  22754. otherwise.]]>
  22755. </doc>
  22756. </method>
  22757. <method name="upperBound" return="int"
  22758. abstract="false" native="false" synchronized="false"
  22759. static="true" final="false" visibility="public"
  22760. deprecated="not deprecated">
  22761. <param name="list" type="java.util.List"/>
  22762. <param name="key" type="T"/>
  22763. <param name="cmp" type="java.util.Comparator"/>
  22764. <doc>
  22765. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  22766. that compares greater than the input key.
  22767. @param <T>
  22768. Type of the input key.
  22769. @param list
  22770. The list
  22771. @param key
  22772. The input key.
  22773. @param cmp
  22774. Comparator for the key.
  22775. @return The index to the desired element if it exists; or list.size()
  22776. otherwise.]]>
  22777. </doc>
  22778. </method>
  22779. <method name="lowerBound" return="int"
  22780. abstract="false" native="false" synchronized="false"
  22781. static="true" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <param name="list" type="java.util.List"/>
  22784. <param name="key" type="T"/>
  22785. <doc>
  22786. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  22787. that compares greater than or equal to key.
  22788. @param <T>
  22789. Type of the input key.
  22790. @param list
  22791. The list
  22792. @param key
  22793. The input key.
  22794. @return The index to the desired element if it exists; or list.size()
  22795. otherwise.]]>
  22796. </doc>
  22797. </method>
  22798. <method name="upperBound" return="int"
  22799. abstract="false" native="false" synchronized="false"
  22800. static="true" final="false" visibility="public"
  22801. deprecated="not deprecated">
  22802. <param name="list" type="java.util.List"/>
  22803. <param name="key" type="T"/>
  22804. <doc>
  22805. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  22806. that compares greater than the input key.
  22807. @param <T>
  22808. Type of the input key.
  22809. @param list
  22810. The list
  22811. @param key
  22812. The input key.
  22813. @return The index to the desired element if it exists; or list.size()
  22814. otherwise.]]>
  22815. </doc>
  22816. </method>
  22817. <doc>
  22818. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  22819. </doc>
  22820. </class>
  22821. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  22822. </package>
  22823. <package name="org.apache.hadoop.io.serializer">
  22824. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22825. <class name="JavaSerialization" extends="java.lang.Object"
  22826. abstract="false"
  22827. static="false" final="false" visibility="public"
  22828. deprecated="not deprecated">
  22829. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22830. <constructor name="JavaSerialization"
  22831. static="false" final="false" visibility="public"
  22832. deprecated="not deprecated">
  22833. </constructor>
  22834. <doc>
  22835. <![CDATA[<p>
  22836. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22837. </p>
  22838. @see JavaSerializationComparator]]>
  22839. </doc>
  22840. </class>
  22841. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22842. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22843. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22844. abstract="false"
  22845. static="false" final="false" visibility="public"
  22846. deprecated="not deprecated">
  22847. <constructor name="JavaSerializationComparator"
  22848. static="false" final="false" visibility="public"
  22849. deprecated="not deprecated">
  22850. <exception name="IOException" type="java.io.IOException"/>
  22851. </constructor>
  22852. <doc>
  22853. <![CDATA[<p>
  22854. A {@link RawComparator} that uses a {@link JavaSerialization}
  22855. {@link Deserializer} to deserialize objects that are then compared via
  22856. their {@link Comparable} interfaces.
  22857. </p>
  22858. @param <T>
  22859. @see JavaSerialization]]>
  22860. </doc>
  22861. </class>
  22862. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22863. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22864. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22865. abstract="false"
  22866. static="false" final="false" visibility="public"
  22867. deprecated="not deprecated">
  22868. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22869. <constructor name="WritableSerialization"
  22870. static="false" final="false" visibility="public"
  22871. deprecated="not deprecated">
  22872. </constructor>
  22873. <doc>
  22874. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22875. {@link Writable#write(java.io.DataOutput)} and
  22876. {@link Writable#readFields(java.io.DataInput)}.]]>
  22877. </doc>
  22878. </class>
  22879. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22880. <doc>
  22881. <![CDATA[<p>
  22882. This package provides a mechanism for using different serialization frameworks
  22883. in Hadoop. The property "io.serializations" defines a list of
  22884. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  22885. {@link org.apache.hadoop.io.serializer.Serializer}s and
  22886. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  22887. </p>
  22888. <p>
  22889. To add a new serialization framework write an implementation of
  22890. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  22891. "io.serializations" property.
  22892. </p>]]>
  22893. </doc>
  22894. </package>
  22895. <package name="org.apache.hadoop.io.serializer.avro">
  22896. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  22897. <interface name="AvroReflectSerializable" abstract="true"
  22898. static="false" final="false" visibility="public"
  22899. deprecated="not deprecated">
  22900. <doc>
  22901. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  22902. this interface can be serialized/deserialized using
  22903. {@link AvroReflectSerialization}.]]>
  22904. </doc>
  22905. </interface>
  22906. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  22907. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  22908. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  22909. abstract="false"
  22910. static="false" final="false" visibility="public"
  22911. deprecated="not deprecated">
  22912. <constructor name="AvroReflectSerialization"
  22913. static="false" final="false" visibility="public"
  22914. deprecated="not deprecated">
  22915. </constructor>
  22916. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  22917. transient="false" volatile="false"
  22918. static="true" final="true" visibility="public"
  22919. deprecated="not deprecated">
  22920. <doc>
  22921. <![CDATA[Key to configure packages that contain classes to be serialized and
  22922. deserialized using this class. Multiple packages can be specified using
  22923. comma-separated list.]]>
  22924. </doc>
  22925. </field>
  22926. <doc>
  22927. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  22928. serialization, it must either be in the package list configured via
  22929. <code>avro.reflect.pkgs</code> or implement
  22930. {@link AvroReflectSerializable} interface.]]>
  22931. </doc>
  22932. </class>
  22933. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  22934. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  22935. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  22936. abstract="true"
  22937. static="false" final="false" visibility="public"
  22938. deprecated="not deprecated">
  22939. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22940. <constructor name="AvroSerialization"
  22941. static="false" final="false" visibility="public"
  22942. deprecated="not deprecated">
  22943. </constructor>
  22944. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  22945. transient="false" volatile="false"
  22946. static="true" final="true" visibility="public"
  22947. deprecated="not deprecated">
  22948. </field>
  22949. <doc>
  22950. <![CDATA[Base class for providing serialization to Avro types.]]>
  22951. </doc>
  22952. </class>
  22953. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  22954. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  22955. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  22956. abstract="false"
  22957. static="false" final="false" visibility="public"
  22958. deprecated="not deprecated">
  22959. <constructor name="AvroSpecificSerialization"
  22960. static="false" final="false" visibility="public"
  22961. deprecated="not deprecated">
  22962. </constructor>
  22963. <doc>
  22964. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  22965. for classes generated by Avro's 'specific' compiler.]]>
  22966. </doc>
  22967. </class>
  22968. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  22969. <doc>
  22970. <![CDATA[<p>
  22971. This package provides Avro serialization in Hadoop. This can be used to
  22972. serialize/deserialize Avro types in Hadoop.
  22973. </p>
  22974. <p>
  22975. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  22976. serialization of classes generated by Avro's 'specific' compiler.
  22977. </p>
  22978. <p>
  22979. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  22980. other classes.
  22981. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  22982. any class which is either in the package list configured via
  22983. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  22984. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  22985. interface.
  22986. </p>]]>
  22987. </doc>
  22988. </package>
  22989. <package name="org.apache.hadoop.ipc.protocolPB">
  22990. </package>
  22991. <package name="org.apache.hadoop.log">
  22992. </package>
  22993. <package name="org.apache.hadoop.log.metrics">
  22994. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  22995. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  22996. abstract="false"
  22997. static="false" final="false" visibility="public"
  22998. deprecated="not deprecated">
  22999. <constructor name="EventCounter"
  23000. static="false" final="false" visibility="public"
  23001. deprecated="not deprecated">
  23002. </constructor>
  23003. <method name="append"
  23004. abstract="false" native="false" synchronized="false"
  23005. static="false" final="false" visibility="public"
  23006. deprecated="not deprecated">
  23007. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  23008. </method>
  23009. <method name="close"
  23010. abstract="false" native="false" synchronized="false"
  23011. static="false" final="false" visibility="public"
  23012. deprecated="not deprecated">
  23013. </method>
  23014. <method name="requiresLayout" return="boolean"
  23015. abstract="false" native="false" synchronized="false"
  23016. static="false" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. </method>
  23019. <doc>
  23020. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23021. fatal, error and warn. The class name is used in log4j.properties]]>
  23022. </doc>
  23023. </class>
  23024. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  23025. </package>
  23026. <package name="org.apache.hadoop.metrics">
  23027. <doc>
  23028. <![CDATA[This package defines an API for reporting performance metric information.
  23029. <p/>
  23030. The API is abstract so that it can be implemented on top of
  23031. a variety of metrics client libraries. The choice of
  23032. client library is a configuration option, and different
  23033. modules within the same application can use
  23034. different metrics implementation libraries.
  23035. <p/>
  23036. Sub-packages:
  23037. <dl>
  23038. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  23039. <dd>The abstract Server Provider Interface package. Those wishing to
  23040. integrate the metrics API with a particular metrics client library should
  23041. extend this package.</dd>
  23042. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  23043. <dd>An implementation package which writes the metric data to
  23044. a file, or sends it to the standard output stream.</dd>
  23045. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  23046. <dd>An implementation package which sends metric data to
  23047. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  23048. </dl>
  23049. <h3>Introduction to the Metrics API</h3>
  23050. Here is a simple example of how to use this package to report a single
  23051. metric value:
  23052. <pre>
  23053. private ContextFactory contextFactory = ContextFactory.getFactory();
  23054. void reportMyMetric(float myMetric) {
  23055. MetricsContext myContext = contextFactory.getContext("myContext");
  23056. MetricsRecord myRecord = myContext.getRecord("myRecord");
  23057. myRecord.setMetric("myMetric", myMetric);
  23058. myRecord.update();
  23059. }
  23060. </pre>
  23061. In this example there are three names:
  23062. <dl>
  23063. <dt><i>myContext</i></dt>
  23064. <dd>The context name will typically identify either the application, or else a
  23065. module within an application or library.</dd>
  23066. <dt><i>myRecord</i></dt>
  23067. <dd>The record name generally identifies some entity for which a set of
  23068. metrics are to be reported. For example, you could have a record named
  23069. "cacheStats" for reporting a number of statistics relating to the usage of
  23070. some cache in your application.</dd>
  23071. <dt><i>myMetric</i></dt>
  23072. <dd>This identifies a particular metric. For example, you might have metrics
  23073. named "cache_hits" and "cache_misses".
  23074. </dd>
  23075. </dl>
  23076. <h3>Tags</h3>
  23077. In some cases it is useful to have multiple records with the same name. For
  23078. example, suppose that you want to report statistics about each disk on a computer.
  23079. In this case, the record name would be something like "diskStats", but you also
  23080. need to identify the disk which is done by adding a <i>tag</i> to the record.
  23081. The code could look something like this:
  23082. <pre>
  23083. private MetricsRecord diskStats =
  23084. contextFactory.getContext("myContext").getRecord("diskStats");
  23085. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  23086. diskStats.setTag("diskName", diskName);
  23087. diskStats.setMetric("diskBusy", diskBusy);
  23088. diskStats.setMetric("diskUsed", diskUsed);
  23089. diskStats.update();
  23090. }
  23091. </pre>
  23092. <h3>Buffering and Callbacks</h3>
  23093. Data is not sent immediately to the metrics system when
  23094. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  23095. internal table, and the contents of the table are sent periodically.
  23096. This can be important for two reasons:
  23097. <ol>
  23098. <li>It means that a programmer is free to put calls to this API in an
  23099. inner loop, since updates can be very frequent without slowing down
  23100. the application significantly.</li>
  23101. <li>Some implementations can gain efficiency by combining many metrics
  23102. into a single UDP message.</li>
  23103. </ol>
  23104. The API provides a timer-based callback via the
  23105. <code>registerUpdater()</code> method. The benefit of this
  23106. versus using <code>java.util.Timer</code> is that the callbacks will be done
  23107. immediately before sending the data, making the data as current as possible.
  23108. <h3>Configuration</h3>
  23109. It is possible to programmatically examine and modify configuration data
  23110. before creating a context, like this:
  23111. <pre>
  23112. ContextFactory factory = ContextFactory.getFactory();
  23113. ... examine and/or modify factory attributes ...
  23114. MetricsContext context = factory.getContext("myContext");
  23115. </pre>
  23116. The factory attributes can be examined and modified using the following
  23117. <code>ContextFactory</code>methods:
  23118. <ul>
  23119. <li><code>Object getAttribute(String attributeName)</code></li>
  23120. <li><code>String[] getAttributeNames()</code></li>
  23121. <li><code>void setAttribute(String name, Object value)</code></li>
  23122. <li><code>void removeAttribute(attributeName)</code></li>
  23123. </ul>
  23124. <p/>
  23125. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  23126. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  23127. on the class path.
  23128. <p/>
  23129. A factory attribute named:
  23130. <pre>
  23131. <i>contextName</i>.class
  23132. </pre>
  23133. should have as its value the fully qualified name of the class to be
  23134. instantiated by a call of the <code>CodeFactory</code> method
  23135. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  23136. specified, the default is to instantiate
  23137. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  23138. <p/>
  23139. Other factory attributes are specific to a particular implementation of this
  23140. API and are documented elsewhere. For example, configuration attributes for
  23141. the file and Ganglia implementations can be found in the javadoc for
  23142. their respective packages.]]>
  23143. </doc>
  23144. </package>
  23145. <package name="org.apache.hadoop.metrics.ganglia">
  23146. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23147. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23148. abstract="false"
  23149. static="false" final="false" visibility="public"
  23150. deprecated="Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  23151. instead.">
  23152. <constructor name="GangliaContext"
  23153. static="false" final="false" visibility="public"
  23154. deprecated="not deprecated">
  23155. <doc>
  23156. <![CDATA[Creates a new instance of GangliaContext]]>
  23157. </doc>
  23158. </constructor>
  23159. <method name="close"
  23160. abstract="false" native="false" synchronized="false"
  23161. static="false" final="false" visibility="public"
  23162. deprecated="not deprecated">
  23163. <doc>
  23164. <![CDATA[method to close the datagram socket]]>
  23165. </doc>
  23166. </method>
  23167. <method name="emitMetric"
  23168. abstract="false" native="false" synchronized="false"
  23169. static="false" final="false" visibility="protected"
  23170. deprecated="not deprecated">
  23171. <param name="name" type="java.lang.String"/>
  23172. <param name="type" type="java.lang.String"/>
  23173. <param name="value" type="java.lang.String"/>
  23174. <exception name="IOException" type="java.io.IOException"/>
  23175. </method>
  23176. <method name="getUnits" return="java.lang.String"
  23177. abstract="false" native="false" synchronized="false"
  23178. static="false" final="false" visibility="protected"
  23179. deprecated="not deprecated">
  23180. <param name="metricName" type="java.lang.String"/>
  23181. </method>
  23182. <method name="getSlope" return="int"
  23183. abstract="false" native="false" synchronized="false"
  23184. static="false" final="false" visibility="protected"
  23185. deprecated="not deprecated">
  23186. <param name="metricName" type="java.lang.String"/>
  23187. </method>
  23188. <method name="getTmax" return="int"
  23189. abstract="false" native="false" synchronized="false"
  23190. static="false" final="false" visibility="protected"
  23191. deprecated="not deprecated">
  23192. <param name="metricName" type="java.lang.String"/>
  23193. </method>
  23194. <method name="getDmax" return="int"
  23195. abstract="false" native="false" synchronized="false"
  23196. static="false" final="false" visibility="protected"
  23197. deprecated="not deprecated">
  23198. <param name="metricName" type="java.lang.String"/>
  23199. </method>
  23200. <method name="xdr_string"
  23201. abstract="false" native="false" synchronized="false"
  23202. static="false" final="false" visibility="protected"
  23203. deprecated="not deprecated">
  23204. <param name="s" type="java.lang.String"/>
  23205. <doc>
  23206. <![CDATA[Puts a string into the buffer by first writing the size of the string
  23207. as an int, followed by the bytes of the string, padded if necessary to
  23208. a multiple of 4.]]>
  23209. </doc>
  23210. </method>
  23211. <method name="xdr_int"
  23212. abstract="false" native="false" synchronized="false"
  23213. static="false" final="false" visibility="protected"
  23214. deprecated="not deprecated">
  23215. <param name="i" type="int"/>
  23216. <doc>
  23217. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  23218. </doc>
  23219. </method>
  23220. <field name="buffer" type="byte[]"
  23221. transient="false" volatile="false"
  23222. static="false" final="false" visibility="protected"
  23223. deprecated="not deprecated">
  23224. </field>
  23225. <field name="offset" type="int"
  23226. transient="false" volatile="false"
  23227. static="false" final="false" visibility="protected"
  23228. deprecated="not deprecated">
  23229. </field>
  23230. <field name="metricsServers" type="java.util.List"
  23231. transient="false" volatile="false"
  23232. static="false" final="false" visibility="protected"
  23233. deprecated="not deprecated">
  23234. </field>
  23235. <field name="datagramSocket" type="java.net.DatagramSocket"
  23236. transient="false" volatile="false"
  23237. static="false" final="false" visibility="protected"
  23238. deprecated="not deprecated">
  23239. </field>
  23240. <doc>
  23241. <![CDATA[Context for sending metrics to Ganglia.
  23242. @deprecated Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  23243. instead.]]>
  23244. </doc>
  23245. </class>
  23246. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23247. <doc>
  23248. <![CDATA[<!--
  23249. * Licensed to the Apache Software Foundation (ASF) under one
  23250. * or more contributor license agreements. See the NOTICE file
  23251. * distributed with this work for additional information
  23252. * regarding copyright ownership. The ASF licenses this file
  23253. * to you under the Apache License, Version 2.0 (the
  23254. * "License"); you may not use this file except in compliance
  23255. * with the License. You may obtain a copy of the License at
  23256. *
  23257. * http://www.apache.org/licenses/LICENSE-2.0
  23258. *
  23259. * Unless required by applicable law or agreed to in writing, software
  23260. * distributed under the License is distributed on an "AS IS" BASIS,
  23261. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23262. * See the License for the specific language governing permissions and
  23263. * limitations under the License.
  23264. -->
  23265. Implementation of the metrics package that sends metric data to
  23266. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  23267. Programmers should not normally need to use this package directly. Instead
  23268. they should use org.hadoop.metrics.
  23269. <p/>
  23270. These are the implementation specific factory attributes
  23271. (See ContextFactory.getFactory()):
  23272. <dl>
  23273. <dt><i>contextName</i>.servers</dt>
  23274. <dd>Space and/or comma separated sequence of servers to which UDP
  23275. messages should be sent.</dd>
  23276. <dt><i>contextName</i>.period</dt>
  23277. <dd>The period in seconds on which the metric data is sent to the
  23278. server(s).</dd>
  23279. <dt><i>contextName</i>.multicast</dt>
  23280. <dd>Enable multicast for Ganglia</dd>
  23281. <dt><i>contextName</i>.multicast.ttl</dt>
  23282. <dd>TTL for multicast packets</dd>
  23283. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  23284. <dd>The units for the specified metric in the specified record.</dd>
  23285. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  23286. <dd>The slope for the specified metric in the specified record.</dd>
  23287. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  23288. <dd>The tmax for the specified metric in the specified record.</dd>
  23289. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  23290. <dd>The dmax for the specified metric in the specified record.</dd>
  23291. </dl>]]>
  23292. </doc>
  23293. </package>
  23294. <package name="org.apache.hadoop.metrics.spi">
  23295. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23296. <class name="AbstractMetricsContext" extends="java.lang.Object"
  23297. abstract="true"
  23298. static="false" final="false" visibility="public"
  23299. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23300. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  23301. <constructor name="AbstractMetricsContext"
  23302. static="false" final="false" visibility="protected"
  23303. deprecated="not deprecated">
  23304. <doc>
  23305. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  23306. </doc>
  23307. </constructor>
  23308. <method name="init"
  23309. abstract="false" native="false" synchronized="false"
  23310. static="false" final="false" visibility="public"
  23311. deprecated="not deprecated">
  23312. <param name="contextName" type="java.lang.String"/>
  23313. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23314. <doc>
  23315. <![CDATA[Initializes the context.]]>
  23316. </doc>
  23317. </method>
  23318. <method name="getAttribute" return="java.lang.String"
  23319. abstract="false" native="false" synchronized="false"
  23320. static="false" final="false" visibility="protected"
  23321. deprecated="not deprecated">
  23322. <param name="attributeName" type="java.lang.String"/>
  23323. <doc>
  23324. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  23325. </doc>
  23326. </method>
  23327. <method name="getAttributeTable" return="java.util.Map"
  23328. abstract="false" native="false" synchronized="false"
  23329. static="false" final="false" visibility="protected"
  23330. deprecated="not deprecated">
  23331. <param name="tableName" type="java.lang.String"/>
  23332. <doc>
  23333. <![CDATA[Returns an attribute-value map derived from the factory attributes
  23334. by finding all factory attributes that begin with
  23335. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  23336. those attributes with the contextName and tableName stripped off.]]>
  23337. </doc>
  23338. </method>
  23339. <method name="getContextName" return="java.lang.String"
  23340. abstract="false" native="false" synchronized="false"
  23341. static="false" final="false" visibility="public"
  23342. deprecated="not deprecated">
  23343. <doc>
  23344. <![CDATA[Returns the context name.]]>
  23345. </doc>
  23346. </method>
  23347. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23348. abstract="false" native="false" synchronized="false"
  23349. static="false" final="false" visibility="public"
  23350. deprecated="not deprecated">
  23351. <doc>
  23352. <![CDATA[Returns the factory by which this context was created.]]>
  23353. </doc>
  23354. </method>
  23355. <method name="startMonitoring"
  23356. abstract="false" native="false" synchronized="true"
  23357. static="false" final="false" visibility="public"
  23358. deprecated="not deprecated">
  23359. <exception name="IOException" type="java.io.IOException"/>
  23360. <doc>
  23361. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  23362. </doc>
  23363. </method>
  23364. <method name="stopMonitoring"
  23365. abstract="false" native="false" synchronized="true"
  23366. static="false" final="false" visibility="public"
  23367. deprecated="not deprecated">
  23368. <doc>
  23369. <![CDATA[Stops monitoring. This does not free buffered data.
  23370. @see #close()]]>
  23371. </doc>
  23372. </method>
  23373. <method name="isMonitoring" return="boolean"
  23374. abstract="false" native="false" synchronized="false"
  23375. static="false" final="false" visibility="public"
  23376. deprecated="not deprecated">
  23377. <doc>
  23378. <![CDATA[Returns true if monitoring is currently in progress.]]>
  23379. </doc>
  23380. </method>
  23381. <method name="close"
  23382. abstract="false" native="false" synchronized="true"
  23383. static="false" final="false" visibility="public"
  23384. deprecated="not deprecated">
  23385. <doc>
  23386. <![CDATA[Stops monitoring and frees buffered data, returning this
  23387. object to its initial state.]]>
  23388. </doc>
  23389. </method>
  23390. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23391. abstract="false" native="false" synchronized="true"
  23392. static="false" final="true" visibility="public"
  23393. deprecated="not deprecated">
  23394. <param name="recordName" type="java.lang.String"/>
  23395. <doc>
  23396. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  23397. Throws an exception if the metrics implementation is configured with a fixed
  23398. set of record names and <code>recordName</code> is not in that set.
  23399. @param recordName the name of the record
  23400. @throws MetricsException if recordName conflicts with configuration data]]>
  23401. </doc>
  23402. </method>
  23403. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23404. abstract="false" native="false" synchronized="false"
  23405. static="false" final="false" visibility="protected"
  23406. deprecated="not deprecated">
  23407. <param name="recordName" type="java.lang.String"/>
  23408. <doc>
  23409. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  23410. @param recordName the name of the record
  23411. @return newly created instance of MetricsRecordImpl or subclass]]>
  23412. </doc>
  23413. </method>
  23414. <method name="registerUpdater"
  23415. abstract="false" native="false" synchronized="true"
  23416. static="false" final="false" visibility="public"
  23417. deprecated="not deprecated">
  23418. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23419. <doc>
  23420. <![CDATA[Registers a callback to be called at time intervals determined by
  23421. the configuration.
  23422. @param updater object to be run periodically; it should update
  23423. some metrics records]]>
  23424. </doc>
  23425. </method>
  23426. <method name="unregisterUpdater"
  23427. abstract="false" native="false" synchronized="true"
  23428. static="false" final="false" visibility="public"
  23429. deprecated="not deprecated">
  23430. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23431. <doc>
  23432. <![CDATA[Removes a callback, if it exists.
  23433. @param updater object to be removed from the callback list]]>
  23434. </doc>
  23435. </method>
  23436. <method name="getAllRecords" return="java.util.Map"
  23437. abstract="false" native="false" synchronized="true"
  23438. static="false" final="false" visibility="public"
  23439. deprecated="not deprecated">
  23440. <doc>
  23441. <![CDATA[Retrieves all the records managed by this MetricsContext.
  23442. Useful for monitoring systems that are polling-based.
  23443. @return A non-null collection of all monitoring records.]]>
  23444. </doc>
  23445. </method>
  23446. <method name="emitRecord"
  23447. abstract="true" native="false" synchronized="false"
  23448. static="false" final="false" visibility="protected"
  23449. deprecated="not deprecated">
  23450. <param name="contextName" type="java.lang.String"/>
  23451. <param name="recordName" type="java.lang.String"/>
  23452. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23453. <exception name="IOException" type="java.io.IOException"/>
  23454. <doc>
  23455. <![CDATA[Sends a record to the metrics system.]]>
  23456. </doc>
  23457. </method>
  23458. <method name="flush"
  23459. abstract="false" native="false" synchronized="false"
  23460. static="false" final="false" visibility="protected"
  23461. deprecated="not deprecated">
  23462. <exception name="IOException" type="java.io.IOException"/>
  23463. <doc>
  23464. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  23465. Subclasses may override it in order to perform some kind of flush.]]>
  23466. </doc>
  23467. </method>
  23468. <method name="update"
  23469. abstract="false" native="false" synchronized="false"
  23470. static="false" final="false" visibility="protected"
  23471. deprecated="not deprecated">
  23472. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23473. <doc>
  23474. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  23475. the internal table of metric data.]]>
  23476. </doc>
  23477. </method>
  23478. <method name="remove"
  23479. abstract="false" native="false" synchronized="false"
  23480. static="false" final="false" visibility="protected"
  23481. deprecated="not deprecated">
  23482. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23483. <doc>
  23484. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  23485. the internal table of metric data. A row matches if it has the same
  23486. tag names and values as record, but it may also have additional
  23487. tags.]]>
  23488. </doc>
  23489. </method>
  23490. <method name="getPeriod" return="int"
  23491. abstract="false" native="false" synchronized="false"
  23492. static="false" final="false" visibility="public"
  23493. deprecated="not deprecated">
  23494. <doc>
  23495. <![CDATA[Returns the timer period.]]>
  23496. </doc>
  23497. </method>
  23498. <method name="setPeriod"
  23499. abstract="false" native="false" synchronized="false"
  23500. static="false" final="false" visibility="protected"
  23501. deprecated="not deprecated">
  23502. <param name="period" type="int"/>
  23503. <doc>
  23504. <![CDATA[Sets the timer period]]>
  23505. </doc>
  23506. </method>
  23507. <method name="parseAndSetPeriod"
  23508. abstract="false" native="false" synchronized="false"
  23509. static="false" final="false" visibility="protected"
  23510. deprecated="not deprecated">
  23511. <param name="attributeName" type="java.lang.String"/>
  23512. <doc>
  23513. <![CDATA[If a period is set in the attribute passed in, override
  23514. the default with it.]]>
  23515. </doc>
  23516. </method>
  23517. <doc>
  23518. <![CDATA[The main class of the Service Provider Interface. This class should be
  23519. extended in order to integrate the Metrics API with a specific metrics
  23520. client library. <p/>
  23521. This class implements the internal table of metric data, and the timer
  23522. on which data is to be sent to the metrics system. Subclasses must
  23523. override the abstract <code>emitRecord</code> method in order to transmit
  23524. the data. <p/>
  23525. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23526. </doc>
  23527. </class>
  23528. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23529. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  23530. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23531. abstract="false"
  23532. static="false" final="false" visibility="public"
  23533. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23534. <constructor name="CompositeContext"
  23535. static="false" final="false" visibility="public"
  23536. deprecated="not deprecated">
  23537. </constructor>
  23538. <doc>
  23539. <![CDATA[@deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23540. </doc>
  23541. </class>
  23542. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  23543. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23544. <class name="MetricsRecordImpl" extends="java.lang.Object"
  23545. abstract="false"
  23546. static="false" final="false" visibility="public"
  23547. deprecated="Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  23548. instead.">
  23549. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  23550. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23551. static="false" final="false" visibility="protected"
  23552. deprecated="not deprecated">
  23553. <doc>
  23554. <![CDATA[Creates a new instance of FileRecord]]>
  23555. </doc>
  23556. </constructor>
  23557. <method name="getRecordName" return="java.lang.String"
  23558. abstract="false" native="false" synchronized="false"
  23559. static="false" final="false" visibility="public"
  23560. deprecated="not deprecated">
  23561. <doc>
  23562. <![CDATA[Returns the record name.
  23563. @return the record name]]>
  23564. </doc>
  23565. </method>
  23566. <method name="setTag"
  23567. abstract="false" native="false" synchronized="false"
  23568. static="false" final="false" visibility="public"
  23569. deprecated="not deprecated">
  23570. <param name="tagName" type="java.lang.String"/>
  23571. <param name="tagValue" type="java.lang.String"/>
  23572. <doc>
  23573. <![CDATA[Sets the named tag to the specified value.
  23574. @param tagName name of the tag
  23575. @param tagValue new value of the tag
  23576. @throws MetricsException if the tagName conflicts with the configuration]]>
  23577. </doc>
  23578. </method>
  23579. <method name="setTag"
  23580. abstract="false" native="false" synchronized="false"
  23581. static="false" final="false" visibility="public"
  23582. deprecated="not deprecated">
  23583. <param name="tagName" type="java.lang.String"/>
  23584. <param name="tagValue" type="int"/>
  23585. <doc>
  23586. <![CDATA[Sets the named tag to the specified value.
  23587. @param tagName name of the tag
  23588. @param tagValue new value of the tag
  23589. @throws MetricsException if the tagName conflicts with the configuration]]>
  23590. </doc>
  23591. </method>
  23592. <method name="setTag"
  23593. abstract="false" native="false" synchronized="false"
  23594. static="false" final="false" visibility="public"
  23595. deprecated="not deprecated">
  23596. <param name="tagName" type="java.lang.String"/>
  23597. <param name="tagValue" type="long"/>
  23598. <doc>
  23599. <![CDATA[Sets the named tag to the specified value.
  23600. @param tagName name of the tag
  23601. @param tagValue new value of the tag
  23602. @throws MetricsException if the tagName conflicts with the configuration]]>
  23603. </doc>
  23604. </method>
  23605. <method name="setTag"
  23606. abstract="false" native="false" synchronized="false"
  23607. static="false" final="false" visibility="public"
  23608. deprecated="not deprecated">
  23609. <param name="tagName" type="java.lang.String"/>
  23610. <param name="tagValue" type="short"/>
  23611. <doc>
  23612. <![CDATA[Sets the named tag to the specified value.
  23613. @param tagName name of the tag
  23614. @param tagValue new value of the tag
  23615. @throws MetricsException if the tagName conflicts with the configuration]]>
  23616. </doc>
  23617. </method>
  23618. <method name="setTag"
  23619. abstract="false" native="false" synchronized="false"
  23620. static="false" final="false" visibility="public"
  23621. deprecated="not deprecated">
  23622. <param name="tagName" type="java.lang.String"/>
  23623. <param name="tagValue" type="byte"/>
  23624. <doc>
  23625. <![CDATA[Sets the named tag to the specified value.
  23626. @param tagName name of the tag
  23627. @param tagValue new value of the tag
  23628. @throws MetricsException if the tagName conflicts with the configuration]]>
  23629. </doc>
  23630. </method>
  23631. <method name="removeTag"
  23632. abstract="false" native="false" synchronized="false"
  23633. static="false" final="false" visibility="public"
  23634. deprecated="not deprecated">
  23635. <param name="tagName" type="java.lang.String"/>
  23636. <doc>
  23637. <![CDATA[Removes any tag of the specified name.]]>
  23638. </doc>
  23639. </method>
  23640. <method name="setMetric"
  23641. abstract="false" native="false" synchronized="false"
  23642. static="false" final="false" visibility="public"
  23643. deprecated="not deprecated">
  23644. <param name="metricName" type="java.lang.String"/>
  23645. <param name="metricValue" type="int"/>
  23646. <doc>
  23647. <![CDATA[Sets the named metric to the specified value.
  23648. @param metricName name of the metric
  23649. @param metricValue new value of the metric
  23650. @throws MetricsException if the metricName or the type of the metricValue
  23651. conflicts with the configuration]]>
  23652. </doc>
  23653. </method>
  23654. <method name="setMetric"
  23655. abstract="false" native="false" synchronized="false"
  23656. static="false" final="false" visibility="public"
  23657. deprecated="not deprecated">
  23658. <param name="metricName" type="java.lang.String"/>
  23659. <param name="metricValue" type="long"/>
  23660. <doc>
  23661. <![CDATA[Sets the named metric to the specified value.
  23662. @param metricName name of the metric
  23663. @param metricValue new value of the metric
  23664. @throws MetricsException if the metricName or the type of the metricValue
  23665. conflicts with the configuration]]>
  23666. </doc>
  23667. </method>
  23668. <method name="setMetric"
  23669. abstract="false" native="false" synchronized="false"
  23670. static="false" final="false" visibility="public"
  23671. deprecated="not deprecated">
  23672. <param name="metricName" type="java.lang.String"/>
  23673. <param name="metricValue" type="short"/>
  23674. <doc>
  23675. <![CDATA[Sets the named metric to the specified value.
  23676. @param metricName name of the metric
  23677. @param metricValue new value of the metric
  23678. @throws MetricsException if the metricName or the type of the metricValue
  23679. conflicts with the configuration]]>
  23680. </doc>
  23681. </method>
  23682. <method name="setMetric"
  23683. abstract="false" native="false" synchronized="false"
  23684. static="false" final="false" visibility="public"
  23685. deprecated="not deprecated">
  23686. <param name="metricName" type="java.lang.String"/>
  23687. <param name="metricValue" type="byte"/>
  23688. <doc>
  23689. <![CDATA[Sets the named metric to the specified value.
  23690. @param metricName name of the metric
  23691. @param metricValue new value of the metric
  23692. @throws MetricsException if the metricName or the type of the metricValue
  23693. conflicts with the configuration]]>
  23694. </doc>
  23695. </method>
  23696. <method name="setMetric"
  23697. abstract="false" native="false" synchronized="false"
  23698. static="false" final="false" visibility="public"
  23699. deprecated="not deprecated">
  23700. <param name="metricName" type="java.lang.String"/>
  23701. <param name="metricValue" type="float"/>
  23702. <doc>
  23703. <![CDATA[Sets the named metric to the specified value.
  23704. @param metricName name of the metric
  23705. @param metricValue new value of the metric
  23706. @throws MetricsException if the metricName or the type of the metricValue
  23707. conflicts with the configuration]]>
  23708. </doc>
  23709. </method>
  23710. <method name="incrMetric"
  23711. abstract="false" native="false" synchronized="false"
  23712. static="false" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <param name="metricName" type="java.lang.String"/>
  23715. <param name="metricValue" type="int"/>
  23716. <doc>
  23717. <![CDATA[Increments the named metric by the specified value.
  23718. @param metricName name of the metric
  23719. @param metricValue incremental value
  23720. @throws MetricsException if the metricName or the type of the metricValue
  23721. conflicts with the configuration]]>
  23722. </doc>
  23723. </method>
  23724. <method name="incrMetric"
  23725. abstract="false" native="false" synchronized="false"
  23726. static="false" final="false" visibility="public"
  23727. deprecated="not deprecated">
  23728. <param name="metricName" type="java.lang.String"/>
  23729. <param name="metricValue" type="long"/>
  23730. <doc>
  23731. <![CDATA[Increments the named metric by the specified value.
  23732. @param metricName name of the metric
  23733. @param metricValue incremental value
  23734. @throws MetricsException if the metricName or the type of the metricValue
  23735. conflicts with the configuration]]>
  23736. </doc>
  23737. </method>
  23738. <method name="incrMetric"
  23739. abstract="false" native="false" synchronized="false"
  23740. static="false" final="false" visibility="public"
  23741. deprecated="not deprecated">
  23742. <param name="metricName" type="java.lang.String"/>
  23743. <param name="metricValue" type="short"/>
  23744. <doc>
  23745. <![CDATA[Increments the named metric by the specified value.
  23746. @param metricName name of the metric
  23747. @param metricValue incremental value
  23748. @throws MetricsException if the metricName or the type of the metricValue
  23749. conflicts with the configuration]]>
  23750. </doc>
  23751. </method>
  23752. <method name="incrMetric"
  23753. abstract="false" native="false" synchronized="false"
  23754. static="false" final="false" visibility="public"
  23755. deprecated="not deprecated">
  23756. <param name="metricName" type="java.lang.String"/>
  23757. <param name="metricValue" type="byte"/>
  23758. <doc>
  23759. <![CDATA[Increments the named metric by the specified value.
  23760. @param metricName name of the metric
  23761. @param metricValue incremental value
  23762. @throws MetricsException if the metricName or the type of the metricValue
  23763. conflicts with the configuration]]>
  23764. </doc>
  23765. </method>
  23766. <method name="incrMetric"
  23767. abstract="false" native="false" synchronized="false"
  23768. static="false" final="false" visibility="public"
  23769. deprecated="not deprecated">
  23770. <param name="metricName" type="java.lang.String"/>
  23771. <param name="metricValue" type="float"/>
  23772. <doc>
  23773. <![CDATA[Increments the named metric by the specified value.
  23774. @param metricName name of the metric
  23775. @param metricValue incremental value
  23776. @throws MetricsException if the metricName or the type of the metricValue
  23777. conflicts with the configuration]]>
  23778. </doc>
  23779. </method>
  23780. <method name="update"
  23781. abstract="false" native="false" synchronized="false"
  23782. static="false" final="false" visibility="public"
  23783. deprecated="not deprecated">
  23784. <doc>
  23785. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  23786. If the tag values match an existing row, that row is updated;
  23787. otherwise, a new row is added.]]>
  23788. </doc>
  23789. </method>
  23790. <method name="remove"
  23791. abstract="false" native="false" synchronized="false"
  23792. static="false" final="false" visibility="public"
  23793. deprecated="not deprecated">
  23794. <doc>
  23795. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  23796. that equal the tags that have been set on this record.]]>
  23797. </doc>
  23798. </method>
  23799. <doc>
  23800. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  23801. from which it was created, and delegates back to it on <code>update</code>
  23802. and <code>remove()</code>.
  23803. @deprecated Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  23804. instead.]]>
  23805. </doc>
  23806. </class>
  23807. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23808. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  23809. <class name="MetricValue" extends="java.lang.Object"
  23810. abstract="false"
  23811. static="false" final="false" visibility="public"
  23812. deprecated="not deprecated">
  23813. <constructor name="MetricValue" type="java.lang.Number, boolean"
  23814. static="false" final="false" visibility="public"
  23815. deprecated="not deprecated">
  23816. <doc>
  23817. <![CDATA[Creates a new instance of MetricValue]]>
  23818. </doc>
  23819. </constructor>
  23820. <method name="isIncrement" return="boolean"
  23821. abstract="false" native="false" synchronized="false"
  23822. static="false" final="false" visibility="public"
  23823. deprecated="not deprecated">
  23824. </method>
  23825. <method name="isAbsolute" return="boolean"
  23826. abstract="false" native="false" synchronized="false"
  23827. static="false" final="false" visibility="public"
  23828. deprecated="not deprecated">
  23829. </method>
  23830. <method name="getNumber" return="java.lang.Number"
  23831. abstract="false" native="false" synchronized="false"
  23832. static="false" final="false" visibility="public"
  23833. deprecated="not deprecated">
  23834. </method>
  23835. <field name="ABSOLUTE" type="boolean"
  23836. transient="false" volatile="false"
  23837. static="true" final="true" visibility="public"
  23838. deprecated="not deprecated">
  23839. </field>
  23840. <field name="INCREMENT" type="boolean"
  23841. transient="false" volatile="false"
  23842. static="true" final="true" visibility="public"
  23843. deprecated="not deprecated">
  23844. </field>
  23845. <doc>
  23846. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  23847. </doc>
  23848. </class>
  23849. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  23850. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  23851. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23852. abstract="false"
  23853. static="false" final="false" visibility="public"
  23854. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23855. <constructor name="NoEmitMetricsContext"
  23856. static="false" final="false" visibility="public"
  23857. deprecated="not deprecated">
  23858. <doc>
  23859. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  23860. </doc>
  23861. </constructor>
  23862. <doc>
  23863. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  23864. does save it for retrieval with getAllRecords().
  23865. This is useful if you want to support {@link MetricsServlet}, but
  23866. not emit metrics in any other way.
  23867. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23868. </doc>
  23869. </class>
  23870. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  23871. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  23872. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23873. abstract="false"
  23874. static="false" final="false" visibility="public"
  23875. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23876. <constructor name="NullContext"
  23877. static="false" final="false" visibility="public"
  23878. deprecated="not deprecated">
  23879. <doc>
  23880. <![CDATA[Creates a new instance of NullContext]]>
  23881. </doc>
  23882. </constructor>
  23883. <doc>
  23884. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  23885. default context, so that no performance data is emitted if no configuration
  23886. data is found.
  23887. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23888. </doc>
  23889. </class>
  23890. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  23891. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  23892. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23893. abstract="false"
  23894. static="false" final="false" visibility="public"
  23895. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23896. <constructor name="NullContextWithUpdateThread"
  23897. static="false" final="false" visibility="public"
  23898. deprecated="not deprecated">
  23899. <doc>
  23900. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  23901. </doc>
  23902. </constructor>
  23903. <doc>
  23904. <![CDATA[A null context which has a thread calling
  23905. periodically when monitoring is started. This keeps the data sampled
  23906. correctly.
  23907. In all other respects, this is like the NULL context: No data is emitted.
  23908. This is suitable for Monitoring systems like JMX which reads the metrics
  23909. when someone reads the data from JMX.
  23910. The default impl of start and stop monitoring:
  23911. is the AbstractMetricsContext is good enough.
  23912. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23913. </doc>
  23914. </class>
  23915. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  23916. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  23917. <class name="OutputRecord" extends="java.lang.Object"
  23918. abstract="false"
  23919. static="false" final="false" visibility="public"
  23920. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23921. <method name="getTagNames" return="java.util.Set"
  23922. abstract="false" native="false" synchronized="false"
  23923. static="false" final="false" visibility="public"
  23924. deprecated="not deprecated">
  23925. <doc>
  23926. <![CDATA[Returns the set of tag names]]>
  23927. </doc>
  23928. </method>
  23929. <method name="getTag" return="java.lang.Object"
  23930. abstract="false" native="false" synchronized="false"
  23931. static="false" final="false" visibility="public"
  23932. deprecated="not deprecated">
  23933. <param name="name" type="java.lang.String"/>
  23934. <doc>
  23935. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  23936. @return the tag value, or null if there is no such tag]]>
  23937. </doc>
  23938. </method>
  23939. <method name="getMetricNames" return="java.util.Set"
  23940. abstract="false" native="false" synchronized="false"
  23941. static="false" final="false" visibility="public"
  23942. deprecated="not deprecated">
  23943. <doc>
  23944. <![CDATA[Returns the set of metric names.]]>
  23945. </doc>
  23946. </method>
  23947. <method name="getMetric" return="java.lang.Number"
  23948. abstract="false" native="false" synchronized="false"
  23949. static="false" final="false" visibility="public"
  23950. deprecated="not deprecated">
  23951. <param name="name" type="java.lang.String"/>
  23952. <doc>
  23953. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  23954. </doc>
  23955. </method>
  23956. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  23957. abstract="false" native="false" synchronized="false"
  23958. static="false" final="false" visibility="public"
  23959. deprecated="not deprecated">
  23960. <doc>
  23961. <![CDATA[Returns a copy of this record's tags.]]>
  23962. </doc>
  23963. </method>
  23964. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  23965. abstract="false" native="false" synchronized="false"
  23966. static="false" final="false" visibility="public"
  23967. deprecated="not deprecated">
  23968. <doc>
  23969. <![CDATA[Returns a copy of this record's metrics.]]>
  23970. </doc>
  23971. </method>
  23972. <doc>
  23973. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  23974. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23975. </doc>
  23976. </class>
  23977. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  23978. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  23979. <class name="Util" extends="java.lang.Object"
  23980. abstract="false"
  23981. static="false" final="false" visibility="public"
  23982. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23983. <method name="parse" return="java.util.List"
  23984. abstract="false" native="false" synchronized="false"
  23985. static="true" final="false" visibility="public"
  23986. deprecated="not deprecated">
  23987. <param name="specs" type="java.lang.String"/>
  23988. <param name="defaultPort" type="int"/>
  23989. <doc>
  23990. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  23991. of the form <i>hostname</i> or <i>hostname:port</i>. If
  23992. the specs string is null, defaults to localhost:defaultPort.
  23993. @return a list of InetSocketAddress objects.]]>
  23994. </doc>
  23995. </method>
  23996. <doc>
  23997. <![CDATA[Static utility methods
  23998. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23999. </doc>
  24000. </class>
  24001. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  24002. <doc>
  24003. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  24004. an interface allowing a variety of metrics reporting implementations to be
  24005. plugged in to the Metrics API. Examples of such implementations can be found
  24006. in the packages <code>org.apache.hadoop.metrics.file</code> and
  24007. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  24008. Plugging in an implementation involves writing a concrete subclass of
  24009. <code>AbstractMetricsContext</code>. The subclass should get its
  24010. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  24011. method.]]>
  24012. </doc>
  24013. </package>
  24014. <package name="org.apache.hadoop.metrics2">
  24015. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  24016. <class name="AbstractMetric" extends="java.lang.Object"
  24017. abstract="true"
  24018. static="false" final="false" visibility="public"
  24019. deprecated="not deprecated">
  24020. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  24021. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  24022. static="false" final="false" visibility="protected"
  24023. deprecated="not deprecated">
  24024. <doc>
  24025. <![CDATA[Construct the metric
  24026. @param info about the metric]]>
  24027. </doc>
  24028. </constructor>
  24029. <method name="name" return="java.lang.String"
  24030. abstract="false" native="false" synchronized="false"
  24031. static="false" final="false" visibility="public"
  24032. deprecated="not deprecated">
  24033. </method>
  24034. <method name="description" return="java.lang.String"
  24035. abstract="false" native="false" synchronized="false"
  24036. static="false" final="false" visibility="public"
  24037. deprecated="not deprecated">
  24038. </method>
  24039. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24040. abstract="false" native="false" synchronized="false"
  24041. static="false" final="false" visibility="protected"
  24042. deprecated="not deprecated">
  24043. </method>
  24044. <method name="value" return="java.lang.Number"
  24045. abstract="true" native="false" synchronized="false"
  24046. static="false" final="false" visibility="public"
  24047. deprecated="not deprecated">
  24048. <doc>
  24049. <![CDATA[Get the value of the metric
  24050. @return the value of the metric]]>
  24051. </doc>
  24052. </method>
  24053. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  24054. abstract="true" native="false" synchronized="false"
  24055. static="false" final="false" visibility="public"
  24056. deprecated="not deprecated">
  24057. <doc>
  24058. <![CDATA[Get the type of the metric
  24059. @return the type of the metric]]>
  24060. </doc>
  24061. </method>
  24062. <method name="visit"
  24063. abstract="true" native="false" synchronized="false"
  24064. static="false" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  24067. <doc>
  24068. <![CDATA[Accept a visitor interface
  24069. @param visitor of the metric]]>
  24070. </doc>
  24071. </method>
  24072. <method name="equals" return="boolean"
  24073. abstract="false" native="false" synchronized="false"
  24074. static="false" final="false" visibility="public"
  24075. deprecated="not deprecated">
  24076. <param name="obj" type="java.lang.Object"/>
  24077. </method>
  24078. <method name="hashCode" return="int"
  24079. abstract="false" native="false" synchronized="false"
  24080. static="false" final="false" visibility="public"
  24081. deprecated="not deprecated">
  24082. </method>
  24083. <method name="toString" return="java.lang.String"
  24084. abstract="false" native="false" synchronized="false"
  24085. static="false" final="false" visibility="public"
  24086. deprecated="not deprecated">
  24087. </method>
  24088. <doc>
  24089. <![CDATA[The immutable metric]]>
  24090. </doc>
  24091. </class>
  24092. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  24093. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  24094. <interface name="MetricsCollector" abstract="true"
  24095. static="false" final="false" visibility="public"
  24096. deprecated="not deprecated">
  24097. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24098. abstract="false" native="false" synchronized="false"
  24099. static="false" final="false" visibility="public"
  24100. deprecated="not deprecated">
  24101. <param name="name" type="java.lang.String"/>
  24102. <doc>
  24103. <![CDATA[Add a metrics record
  24104. @param name of the record
  24105. @return a metrics record builder for the record]]>
  24106. </doc>
  24107. </method>
  24108. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24109. abstract="false" native="false" synchronized="false"
  24110. static="false" final="false" visibility="public"
  24111. deprecated="not deprecated">
  24112. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24113. <doc>
  24114. <![CDATA[Add a metrics record
  24115. @param info of the record
  24116. @return a metrics record builder for the record]]>
  24117. </doc>
  24118. </method>
  24119. <doc>
  24120. <![CDATA[The metrics collector interface]]>
  24121. </doc>
  24122. </interface>
  24123. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  24124. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  24125. <class name="MetricsException" extends="java.lang.RuntimeException"
  24126. abstract="false"
  24127. static="false" final="false" visibility="public"
  24128. deprecated="not deprecated">
  24129. <constructor name="MetricsException" type="java.lang.String"
  24130. static="false" final="false" visibility="public"
  24131. deprecated="not deprecated">
  24132. <doc>
  24133. <![CDATA[Construct the exception with a message
  24134. @param message for the exception]]>
  24135. </doc>
  24136. </constructor>
  24137. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  24138. static="false" final="false" visibility="public"
  24139. deprecated="not deprecated">
  24140. <doc>
  24141. <![CDATA[Construct the exception with a message and a cause
  24142. @param message for the exception
  24143. @param cause of the exception]]>
  24144. </doc>
  24145. </constructor>
  24146. <constructor name="MetricsException" type="java.lang.Throwable"
  24147. static="false" final="false" visibility="public"
  24148. deprecated="not deprecated">
  24149. <doc>
  24150. <![CDATA[Construct the exception with a cause
  24151. @param cause of the exception]]>
  24152. </doc>
  24153. </constructor>
  24154. <doc>
  24155. <![CDATA[A general metrics exception wrapper]]>
  24156. </doc>
  24157. </class>
  24158. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  24159. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  24160. <class name="MetricsFilter" extends="java.lang.Object"
  24161. abstract="true"
  24162. static="false" final="false" visibility="public"
  24163. deprecated="not deprecated">
  24164. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24165. <constructor name="MetricsFilter"
  24166. static="false" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. </constructor>
  24169. <method name="accepts" return="boolean"
  24170. abstract="true" native="false" synchronized="false"
  24171. static="false" final="false" visibility="public"
  24172. deprecated="not deprecated">
  24173. <param name="name" type="java.lang.String"/>
  24174. <doc>
  24175. <![CDATA[Whether to accept the name
  24176. @param name to filter on
  24177. @return true to accept; false otherwise.]]>
  24178. </doc>
  24179. </method>
  24180. <method name="accepts" return="boolean"
  24181. abstract="true" native="false" synchronized="false"
  24182. static="false" final="false" visibility="public"
  24183. deprecated="not deprecated">
  24184. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24185. <doc>
  24186. <![CDATA[Whether to accept the tag
  24187. @param tag to filter on
  24188. @return true to accept; false otherwise]]>
  24189. </doc>
  24190. </method>
  24191. <method name="accepts" return="boolean"
  24192. abstract="true" native="false" synchronized="false"
  24193. static="false" final="false" visibility="public"
  24194. deprecated="not deprecated">
  24195. <param name="tags" type="java.lang.Iterable"/>
  24196. <doc>
  24197. <![CDATA[Whether to accept the tags
  24198. @param tags to filter on
  24199. @return true to accept; false otherwise]]>
  24200. </doc>
  24201. </method>
  24202. <method name="accepts" return="boolean"
  24203. abstract="false" native="false" synchronized="false"
  24204. static="false" final="false" visibility="public"
  24205. deprecated="not deprecated">
  24206. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24207. <doc>
  24208. <![CDATA[Whether to accept the record
  24209. @param record to filter on
  24210. @return true to accept; false otherwise.]]>
  24211. </doc>
  24212. </method>
  24213. <doc>
  24214. <![CDATA[The metrics filter interface]]>
  24215. </doc>
  24216. </class>
  24217. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  24218. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  24219. <interface name="MetricsInfo" abstract="true"
  24220. static="false" final="false" visibility="public"
  24221. deprecated="not deprecated">
  24222. <method name="name" return="java.lang.String"
  24223. abstract="false" native="false" synchronized="false"
  24224. static="false" final="false" visibility="public"
  24225. deprecated="not deprecated">
  24226. <doc>
  24227. <![CDATA[@return the name of the metric/tag]]>
  24228. </doc>
  24229. </method>
  24230. <method name="description" return="java.lang.String"
  24231. abstract="false" native="false" synchronized="false"
  24232. static="false" final="false" visibility="public"
  24233. deprecated="not deprecated">
  24234. <doc>
  24235. <![CDATA[@return the description of the metric/tag]]>
  24236. </doc>
  24237. </method>
  24238. <doc>
  24239. <![CDATA[Interface to provide immutable meta info for metrics]]>
  24240. </doc>
  24241. </interface>
  24242. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  24243. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24244. <interface name="MetricsPlugin" abstract="true"
  24245. static="false" final="false" visibility="public"
  24246. deprecated="not deprecated">
  24247. <method name="init"
  24248. abstract="false" native="false" synchronized="false"
  24249. static="false" final="false" visibility="public"
  24250. deprecated="not deprecated">
  24251. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  24252. <doc>
  24253. <![CDATA[Initialize the plugin
  24254. @param conf the configuration object for the plugin]]>
  24255. </doc>
  24256. </method>
  24257. <doc>
  24258. <![CDATA[The plugin interface for the metrics framework]]>
  24259. </doc>
  24260. </interface>
  24261. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24262. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  24263. <interface name="MetricsRecord" abstract="true"
  24264. static="false" final="false" visibility="public"
  24265. deprecated="not deprecated">
  24266. <method name="timestamp" return="long"
  24267. abstract="false" native="false" synchronized="false"
  24268. static="false" final="false" visibility="public"
  24269. deprecated="not deprecated">
  24270. <doc>
  24271. <![CDATA[Get the timestamp of the metrics
  24272. @return the timestamp]]>
  24273. </doc>
  24274. </method>
  24275. <method name="name" return="java.lang.String"
  24276. abstract="false" native="false" synchronized="false"
  24277. static="false" final="false" visibility="public"
  24278. deprecated="not deprecated">
  24279. <doc>
  24280. <![CDATA[@return the record name]]>
  24281. </doc>
  24282. </method>
  24283. <method name="description" return="java.lang.String"
  24284. abstract="false" native="false" synchronized="false"
  24285. static="false" final="false" visibility="public"
  24286. deprecated="not deprecated">
  24287. <doc>
  24288. <![CDATA[@return the description of the record]]>
  24289. </doc>
  24290. </method>
  24291. <method name="context" return="java.lang.String"
  24292. abstract="false" native="false" synchronized="false"
  24293. static="false" final="false" visibility="public"
  24294. deprecated="not deprecated">
  24295. <doc>
  24296. <![CDATA[@return the context name of the record]]>
  24297. </doc>
  24298. </method>
  24299. <method name="tags" return="java.util.Collection"
  24300. abstract="false" native="false" synchronized="false"
  24301. static="false" final="false" visibility="public"
  24302. deprecated="not deprecated">
  24303. <doc>
  24304. <![CDATA[Get the tags of the record
  24305. Note: returning a collection instead of iterable as we
  24306. need to use tags as keys (hence Collection#hashCode etc.) in maps
  24307. @return an unmodifiable collection of tags]]>
  24308. </doc>
  24309. </method>
  24310. <method name="metrics" return="java.lang.Iterable"
  24311. abstract="false" native="false" synchronized="false"
  24312. static="false" final="false" visibility="public"
  24313. deprecated="not deprecated">
  24314. <doc>
  24315. <![CDATA[Get the metrics of the record
  24316. @return an immutable iterable interface for metrics]]>
  24317. </doc>
  24318. </method>
  24319. <doc>
  24320. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  24321. </doc>
  24322. </interface>
  24323. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  24324. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24325. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  24326. abstract="true"
  24327. static="false" final="false" visibility="public"
  24328. deprecated="not deprecated">
  24329. <constructor name="MetricsRecordBuilder"
  24330. static="false" final="false" visibility="public"
  24331. deprecated="not deprecated">
  24332. </constructor>
  24333. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24334. abstract="true" native="false" synchronized="false"
  24335. static="false" final="false" visibility="public"
  24336. deprecated="not deprecated">
  24337. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24338. <param name="value" type="java.lang.String"/>
  24339. <doc>
  24340. <![CDATA[Add a metrics tag
  24341. @param info metadata of the tag
  24342. @param value of the tag
  24343. @return self]]>
  24344. </doc>
  24345. </method>
  24346. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24347. abstract="true" native="false" synchronized="false"
  24348. static="false" final="false" visibility="public"
  24349. deprecated="not deprecated">
  24350. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24351. <doc>
  24352. <![CDATA[Add an immutable metrics tag object
  24353. @param tag a pre-made tag object (potentially save an object construction)
  24354. @return self]]>
  24355. </doc>
  24356. </method>
  24357. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24358. abstract="true" native="false" synchronized="false"
  24359. static="false" final="false" visibility="public"
  24360. deprecated="not deprecated">
  24361. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24362. <doc>
  24363. <![CDATA[Add a pre-made immutable metric object
  24364. @param metric the pre-made metric to save an object construction
  24365. @return self]]>
  24366. </doc>
  24367. </method>
  24368. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24369. abstract="true" native="false" synchronized="false"
  24370. static="false" final="false" visibility="public"
  24371. deprecated="not deprecated">
  24372. <param name="value" type="java.lang.String"/>
  24373. <doc>
  24374. <![CDATA[Set the context tag
  24375. @param value of the context
  24376. @return self]]>
  24377. </doc>
  24378. </method>
  24379. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24380. abstract="true" native="false" synchronized="false"
  24381. static="false" final="false" visibility="public"
  24382. deprecated="not deprecated">
  24383. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24384. <param name="value" type="int"/>
  24385. <doc>
  24386. <![CDATA[Add an integer metric
  24387. @param info metadata of the metric
  24388. @param value of the metric
  24389. @return self]]>
  24390. </doc>
  24391. </method>
  24392. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24393. abstract="true" native="false" synchronized="false"
  24394. static="false" final="false" visibility="public"
  24395. deprecated="not deprecated">
  24396. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24397. <param name="value" type="long"/>
  24398. <doc>
  24399. <![CDATA[Add an long metric
  24400. @param info metadata of the metric
  24401. @param value of the metric
  24402. @return self]]>
  24403. </doc>
  24404. </method>
  24405. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24406. abstract="true" native="false" synchronized="false"
  24407. static="false" final="false" visibility="public"
  24408. deprecated="not deprecated">
  24409. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24410. <param name="value" type="int"/>
  24411. <doc>
  24412. <![CDATA[Add a integer gauge metric
  24413. @param info metadata of the metric
  24414. @param value of the metric
  24415. @return self]]>
  24416. </doc>
  24417. </method>
  24418. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24419. abstract="true" native="false" synchronized="false"
  24420. static="false" final="false" visibility="public"
  24421. deprecated="not deprecated">
  24422. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24423. <param name="value" type="long"/>
  24424. <doc>
  24425. <![CDATA[Add a long gauge metric
  24426. @param info metadata of the metric
  24427. @param value of the metric
  24428. @return self]]>
  24429. </doc>
  24430. </method>
  24431. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24432. abstract="true" native="false" synchronized="false"
  24433. static="false" final="false" visibility="public"
  24434. deprecated="not deprecated">
  24435. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24436. <param name="value" type="float"/>
  24437. <doc>
  24438. <![CDATA[Add a float gauge metric
  24439. @param info metadata of the metric
  24440. @param value of the metric
  24441. @return self]]>
  24442. </doc>
  24443. </method>
  24444. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24445. abstract="true" native="false" synchronized="false"
  24446. static="false" final="false" visibility="public"
  24447. deprecated="not deprecated">
  24448. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24449. <param name="value" type="double"/>
  24450. <doc>
  24451. <![CDATA[Add a double gauge metric
  24452. @param info metadata of the metric
  24453. @param value of the metric
  24454. @return self]]>
  24455. </doc>
  24456. </method>
  24457. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24458. abstract="true" native="false" synchronized="false"
  24459. static="false" final="false" visibility="public"
  24460. deprecated="not deprecated">
  24461. <doc>
  24462. <![CDATA[@return the parent metrics collector object]]>
  24463. </doc>
  24464. </method>
  24465. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  24466. abstract="false" native="false" synchronized="false"
  24467. static="false" final="false" visibility="public"
  24468. deprecated="not deprecated">
  24469. <doc>
  24470. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  24471. @return the parent metrics collector object]]>
  24472. </doc>
  24473. </method>
  24474. <doc>
  24475. <![CDATA[The metrics record builder interface]]>
  24476. </doc>
  24477. </class>
  24478. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24479. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  24480. <interface name="MetricsSink" abstract="true"
  24481. static="false" final="false" visibility="public"
  24482. deprecated="not deprecated">
  24483. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24484. <method name="putMetrics"
  24485. abstract="false" native="false" synchronized="false"
  24486. static="false" final="false" visibility="public"
  24487. deprecated="not deprecated">
  24488. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24489. <doc>
  24490. <![CDATA[Put a metrics record in the sink
  24491. @param record the record to put]]>
  24492. </doc>
  24493. </method>
  24494. <method name="flush"
  24495. abstract="false" native="false" synchronized="false"
  24496. static="false" final="false" visibility="public"
  24497. deprecated="not deprecated">
  24498. <doc>
  24499. <![CDATA[Flush any buffered metrics]]>
  24500. </doc>
  24501. </method>
  24502. <doc>
  24503. <![CDATA[The metrics sink interface. <p>
  24504. Implementations of this interface consume the {@link MetricsRecord} generated
  24505. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  24506. periodically pushes the {@link MetricsRecord} to the sink using
  24507. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  24508. implements {@link Closeable}, then the MetricsSystem will close the sink when
  24509. it is stopped.]]>
  24510. </doc>
  24511. </interface>
  24512. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  24513. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  24514. <interface name="MetricsSource" abstract="true"
  24515. static="false" final="false" visibility="public"
  24516. deprecated="not deprecated">
  24517. <method name="getMetrics"
  24518. abstract="false" native="false" synchronized="false"
  24519. static="false" final="false" visibility="public"
  24520. deprecated="not deprecated">
  24521. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  24522. <param name="all" type="boolean"/>
  24523. <doc>
  24524. <![CDATA[Get metrics from the source
  24525. @param collector to contain the resulting metrics snapshot
  24526. @param all if true, return all metrics even if unchanged.]]>
  24527. </doc>
  24528. </method>
  24529. <doc>
  24530. <![CDATA[The metrics source interface]]>
  24531. </doc>
  24532. </interface>
  24533. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  24534. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  24535. <class name="MetricsSystem" extends="java.lang.Object"
  24536. abstract="true"
  24537. static="false" final="false" visibility="public"
  24538. deprecated="not deprecated">
  24539. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  24540. <constructor name="MetricsSystem"
  24541. static="false" final="false" visibility="public"
  24542. deprecated="not deprecated">
  24543. </constructor>
  24544. <method name="unregisterSource"
  24545. abstract="true" native="false" synchronized="false"
  24546. static="false" final="false" visibility="public"
  24547. deprecated="not deprecated">
  24548. <param name="name" type="java.lang.String"/>
  24549. <doc>
  24550. <![CDATA[Unregister a metrics source
  24551. @param name of the source. This is the name you use to call register()]]>
  24552. </doc>
  24553. </method>
  24554. <method name="register" return="T"
  24555. abstract="false" native="false" synchronized="false"
  24556. static="false" final="false" visibility="public"
  24557. deprecated="not deprecated">
  24558. <param name="source" type="T"/>
  24559. <doc>
  24560. <![CDATA[Register a metrics source (deriving name and description from the object)
  24561. @param <T> the actual type of the source object
  24562. @param source object to register
  24563. @return the source object
  24564. @exception MetricsException]]>
  24565. </doc>
  24566. </method>
  24567. <method name="register" return="T"
  24568. abstract="true" native="false" synchronized="false"
  24569. static="false" final="false" visibility="public"
  24570. deprecated="not deprecated">
  24571. <param name="name" type="java.lang.String"/>
  24572. <param name="desc" type="java.lang.String"/>
  24573. <param name="source" type="T"/>
  24574. <doc>
  24575. <![CDATA[Register a metrics source
  24576. @param <T> the actual type of the source object
  24577. @param source object to register
  24578. @param name of the source. Must be unique or null (then extracted from
  24579. the annotations of the source object.)
  24580. @param desc the description of the source (or null. See above.)
  24581. @return the source object
  24582. @exception MetricsException]]>
  24583. </doc>
  24584. </method>
  24585. <method name="register"
  24586. abstract="true" native="false" synchronized="false"
  24587. static="false" final="false" visibility="public"
  24588. deprecated="not deprecated">
  24589. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  24590. <doc>
  24591. <![CDATA[Register a callback interface for JMX events
  24592. @param callback the callback object implementing the MBean interface.]]>
  24593. </doc>
  24594. </method>
  24595. <method name="publishMetricsNow"
  24596. abstract="true" native="false" synchronized="false"
  24597. static="false" final="false" visibility="public"
  24598. deprecated="not deprecated">
  24599. <doc>
  24600. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  24601. This is a "soft" request: the expectation is that a best effort will be
  24602. done to synchronously snapshot the metrics from all the sources and put
  24603. them in all the sinks (including flushing the sinks) before returning to
  24604. the caller. If this can't be accomplished in reasonable time it's OK to
  24605. return to the caller before everything is done.]]>
  24606. </doc>
  24607. </method>
  24608. <method name="shutdown" return="boolean"
  24609. abstract="true" native="false" synchronized="false"
  24610. static="false" final="false" visibility="public"
  24611. deprecated="not deprecated">
  24612. <doc>
  24613. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  24614. The MetricsSystemMXBean will be unregistered.
  24615. @return true if shutdown completed]]>
  24616. </doc>
  24617. </method>
  24618. <doc>
  24619. <![CDATA[The metrics system interface]]>
  24620. </doc>
  24621. </class>
  24622. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  24623. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24624. <interface name="MetricsSystemMXBean" abstract="true"
  24625. static="false" final="false" visibility="public"
  24626. deprecated="not deprecated">
  24627. <method name="start"
  24628. abstract="false" native="false" synchronized="false"
  24629. static="false" final="false" visibility="public"
  24630. deprecated="not deprecated">
  24631. <doc>
  24632. <![CDATA[Start the metrics system
  24633. @throws MetricsException]]>
  24634. </doc>
  24635. </method>
  24636. <method name="stop"
  24637. abstract="false" native="false" synchronized="false"
  24638. static="false" final="false" visibility="public"
  24639. deprecated="not deprecated">
  24640. <doc>
  24641. <![CDATA[Stop the metrics system
  24642. @throws MetricsException]]>
  24643. </doc>
  24644. </method>
  24645. <method name="startMetricsMBeans"
  24646. abstract="false" native="false" synchronized="false"
  24647. static="false" final="false" visibility="public"
  24648. deprecated="not deprecated">
  24649. <doc>
  24650. <![CDATA[Start metrics MBeans
  24651. @throws MetricsException]]>
  24652. </doc>
  24653. </method>
  24654. <method name="stopMetricsMBeans"
  24655. abstract="false" native="false" synchronized="false"
  24656. static="false" final="false" visibility="public"
  24657. deprecated="not deprecated">
  24658. <doc>
  24659. <![CDATA[Stop metrics MBeans.
  24660. Note, it doesn't stop the metrics system control MBean,
  24661. i.e this interface.
  24662. @throws MetricsException]]>
  24663. </doc>
  24664. </method>
  24665. <method name="currentConfig" 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[@return the current config
  24671. Avoided getConfig, as it'll turn into a "Config" attribute,
  24672. which doesn't support multiple line values in jconsole.
  24673. @throws MetricsException]]>
  24674. </doc>
  24675. </method>
  24676. <doc>
  24677. <![CDATA[The JMX interface to the metrics system]]>
  24678. </doc>
  24679. </interface>
  24680. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24681. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  24682. <class name="MetricsTag" extends="java.lang.Object"
  24683. abstract="false"
  24684. static="false" final="false" visibility="public"
  24685. deprecated="not deprecated">
  24686. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  24687. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  24688. static="false" final="false" visibility="public"
  24689. deprecated="not deprecated">
  24690. <doc>
  24691. <![CDATA[Construct the tag with name, description and value
  24692. @param info of the tag
  24693. @param value of the tag]]>
  24694. </doc>
  24695. </constructor>
  24696. <method name="name" return="java.lang.String"
  24697. abstract="false" native="false" synchronized="false"
  24698. static="false" final="false" visibility="public"
  24699. deprecated="not deprecated">
  24700. </method>
  24701. <method name="description" return="java.lang.String"
  24702. abstract="false" native="false" synchronized="false"
  24703. static="false" final="false" visibility="public"
  24704. deprecated="not deprecated">
  24705. </method>
  24706. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24707. abstract="false" native="false" synchronized="false"
  24708. static="false" final="false" visibility="public"
  24709. deprecated="not deprecated">
  24710. <doc>
  24711. <![CDATA[@return the info object of the tag]]>
  24712. </doc>
  24713. </method>
  24714. <method name="value" return="java.lang.String"
  24715. abstract="false" native="false" synchronized="false"
  24716. static="false" final="false" visibility="public"
  24717. deprecated="not deprecated">
  24718. <doc>
  24719. <![CDATA[Get the value of the tag
  24720. @return the value]]>
  24721. </doc>
  24722. </method>
  24723. <method name="equals" return="boolean"
  24724. abstract="false" native="false" synchronized="false"
  24725. static="false" final="false" visibility="public"
  24726. deprecated="not deprecated">
  24727. <param name="obj" type="java.lang.Object"/>
  24728. </method>
  24729. <method name="hashCode" return="int"
  24730. abstract="false" native="false" synchronized="false"
  24731. static="false" final="false" visibility="public"
  24732. deprecated="not deprecated">
  24733. </method>
  24734. <method name="toString" return="java.lang.String"
  24735. abstract="false" native="false" synchronized="false"
  24736. static="false" final="false" visibility="public"
  24737. deprecated="not deprecated">
  24738. </method>
  24739. <doc>
  24740. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  24741. </doc>
  24742. </class>
  24743. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  24744. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24745. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24746. abstract="false"
  24747. static="false" final="false" visibility="public"
  24748. deprecated="not deprecated">
  24749. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  24750. static="false" final="false" visibility="public"
  24751. deprecated="not deprecated">
  24752. <doc>
  24753. <![CDATA[Build an instance.
  24754. @param parent parent collector. Unused in this instance; only used for
  24755. the {@link #parent()} method
  24756. @param prefix string before each entry
  24757. @param separator separator between name and value
  24758. @param suffix suffix after each entry]]>
  24759. </doc>
  24760. </constructor>
  24761. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24762. abstract="false" native="false" synchronized="false"
  24763. static="false" final="false" visibility="public"
  24764. deprecated="not deprecated">
  24765. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24766. <param name="value" type="java.lang.Object"/>
  24767. </method>
  24768. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24769. abstract="false" native="false" synchronized="false"
  24770. static="false" final="false" visibility="public"
  24771. deprecated="not deprecated">
  24772. <param name="key" type="java.lang.String"/>
  24773. <param name="value" type="java.lang.String"/>
  24774. <doc>
  24775. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  24776. separated by the separator.
  24777. @param key key
  24778. @param value value
  24779. @return this instance]]>
  24780. </doc>
  24781. </method>
  24782. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24783. abstract="false" native="false" synchronized="false"
  24784. static="false" final="false" visibility="public"
  24785. deprecated="not deprecated">
  24786. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24787. <param name="value" type="java.lang.String"/>
  24788. </method>
  24789. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24790. abstract="false" native="false" synchronized="false"
  24791. static="false" final="false" visibility="public"
  24792. deprecated="not deprecated">
  24793. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24794. </method>
  24795. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24796. abstract="false" native="false" synchronized="false"
  24797. static="false" final="false" visibility="public"
  24798. deprecated="not deprecated">
  24799. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24800. </method>
  24801. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24802. abstract="false" native="false" synchronized="false"
  24803. static="false" final="false" visibility="public"
  24804. deprecated="not deprecated">
  24805. <param name="value" type="java.lang.String"/>
  24806. </method>
  24807. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24808. abstract="false" native="false" synchronized="false"
  24809. static="false" final="false" visibility="public"
  24810. deprecated="not deprecated">
  24811. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24812. <param name="value" type="int"/>
  24813. </method>
  24814. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24815. abstract="false" native="false" synchronized="false"
  24816. static="false" final="false" visibility="public"
  24817. deprecated="not deprecated">
  24818. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24819. <param name="value" type="long"/>
  24820. </method>
  24821. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24822. abstract="false" native="false" synchronized="false"
  24823. static="false" final="false" visibility="public"
  24824. deprecated="not deprecated">
  24825. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24826. <param name="value" type="int"/>
  24827. </method>
  24828. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24829. abstract="false" native="false" synchronized="false"
  24830. static="false" final="false" visibility="public"
  24831. deprecated="not deprecated">
  24832. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24833. <param name="value" type="long"/>
  24834. </method>
  24835. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24836. abstract="false" native="false" synchronized="false"
  24837. static="false" final="false" visibility="public"
  24838. deprecated="not deprecated">
  24839. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24840. <param name="value" type="float"/>
  24841. </method>
  24842. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24843. abstract="false" native="false" synchronized="false"
  24844. static="false" final="false" visibility="public"
  24845. deprecated="not deprecated">
  24846. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24847. <param name="value" type="double"/>
  24848. </method>
  24849. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24850. abstract="false" native="false" synchronized="false"
  24851. static="false" final="false" visibility="public"
  24852. deprecated="not deprecated">
  24853. </method>
  24854. <method name="toString" return="java.lang.String"
  24855. abstract="false" native="false" synchronized="false"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. </method>
  24859. <doc>
  24860. <![CDATA[Build a string dump of the metrics.
  24861. The {@link #toString()} operator dumps out all values collected.
  24862. Every entry is formatted as
  24863. {@code prefix + name + separator + value + suffix}]]>
  24864. </doc>
  24865. </class>
  24866. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24867. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  24868. <interface name="MetricsVisitor" abstract="true"
  24869. static="false" final="false" visibility="public"
  24870. deprecated="not deprecated">
  24871. <method name="gauge"
  24872. abstract="false" native="false" synchronized="false"
  24873. static="false" final="false" visibility="public"
  24874. deprecated="not deprecated">
  24875. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24876. <param name="value" type="int"/>
  24877. <doc>
  24878. <![CDATA[Callback for integer value gauges
  24879. @param info the metric info
  24880. @param value of the metric]]>
  24881. </doc>
  24882. </method>
  24883. <method name="gauge"
  24884. abstract="false" native="false" synchronized="false"
  24885. static="false" final="false" visibility="public"
  24886. deprecated="not deprecated">
  24887. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24888. <param name="value" type="long"/>
  24889. <doc>
  24890. <![CDATA[Callback for long value gauges
  24891. @param info the metric info
  24892. @param value of the metric]]>
  24893. </doc>
  24894. </method>
  24895. <method name="gauge"
  24896. abstract="false" native="false" synchronized="false"
  24897. static="false" final="false" visibility="public"
  24898. deprecated="not deprecated">
  24899. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24900. <param name="value" type="float"/>
  24901. <doc>
  24902. <![CDATA[Callback for float value gauges
  24903. @param info the metric info
  24904. @param value of the metric]]>
  24905. </doc>
  24906. </method>
  24907. <method name="gauge"
  24908. abstract="false" native="false" synchronized="false"
  24909. static="false" final="false" visibility="public"
  24910. deprecated="not deprecated">
  24911. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24912. <param name="value" type="double"/>
  24913. <doc>
  24914. <![CDATA[Callback for double value gauges
  24915. @param info the metric info
  24916. @param value of the metric]]>
  24917. </doc>
  24918. </method>
  24919. <method name="counter"
  24920. abstract="false" native="false" synchronized="false"
  24921. static="false" final="false" visibility="public"
  24922. deprecated="not deprecated">
  24923. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24924. <param name="value" type="int"/>
  24925. <doc>
  24926. <![CDATA[Callback for integer value counters
  24927. @param info the metric info
  24928. @param value of the metric]]>
  24929. </doc>
  24930. </method>
  24931. <method name="counter"
  24932. abstract="false" native="false" synchronized="false"
  24933. static="false" final="false" visibility="public"
  24934. deprecated="not deprecated">
  24935. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24936. <param name="value" type="long"/>
  24937. <doc>
  24938. <![CDATA[Callback for long value counters
  24939. @param info the metric info
  24940. @param value of the metric]]>
  24941. </doc>
  24942. </method>
  24943. <doc>
  24944. <![CDATA[A visitor interface for metrics]]>
  24945. </doc>
  24946. </interface>
  24947. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  24948. </package>
  24949. <package name="org.apache.hadoop.metrics2.annotation">
  24950. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  24951. <class name="Metric" abstract="true"
  24952. static="false" final="false" visibility="public"
  24953. deprecated="not deprecated">
  24954. <implements name="java.lang.annotation.Annotation"/>
  24955. <doc>
  24956. <![CDATA[Annotation interface for a single metric]]>
  24957. </doc>
  24958. </class>
  24959. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  24960. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  24961. <class name="Metrics" abstract="true"
  24962. static="false" final="false" visibility="public"
  24963. deprecated="not deprecated">
  24964. <implements name="java.lang.annotation.Annotation"/>
  24965. <doc>
  24966. <![CDATA[Annotation interface for a group of metrics]]>
  24967. </doc>
  24968. </class>
  24969. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  24970. </package>
  24971. <package name="org.apache.hadoop.metrics2.filter">
  24972. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  24973. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  24974. abstract="false"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="not deprecated">
  24977. <constructor name="GlobFilter"
  24978. static="false" final="false" visibility="public"
  24979. deprecated="not deprecated">
  24980. </constructor>
  24981. <method name="compile" return="java.util.regex.Pattern"
  24982. abstract="false" native="false" synchronized="false"
  24983. static="false" final="false" visibility="protected"
  24984. deprecated="not deprecated">
  24985. <param name="s" type="java.lang.String"/>
  24986. </method>
  24987. <doc>
  24988. <![CDATA[A glob pattern filter for metrics.
  24989. The class name is used in metrics config files]]>
  24990. </doc>
  24991. </class>
  24992. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  24993. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  24994. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  24995. abstract="false"
  24996. static="false" final="false" visibility="public"
  24997. deprecated="not deprecated">
  24998. <constructor name="RegexFilter"
  24999. static="false" final="false" visibility="public"
  25000. deprecated="not deprecated">
  25001. </constructor>
  25002. <method name="compile" return="java.util.regex.Pattern"
  25003. abstract="false" native="false" synchronized="false"
  25004. static="false" final="false" visibility="protected"
  25005. deprecated="not deprecated">
  25006. <param name="s" type="java.lang.String"/>
  25007. </method>
  25008. <doc>
  25009. <![CDATA[A regex pattern filter for metrics]]>
  25010. </doc>
  25011. </class>
  25012. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25013. </package>
  25014. <package name="org.apache.hadoop.metrics2.lib">
  25015. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25016. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  25017. abstract="false"
  25018. static="false" final="true" visibility="public"
  25019. deprecated="not deprecated">
  25020. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  25021. abstract="false" native="false" synchronized="false"
  25022. static="true" final="false" visibility="public"
  25023. deprecated="not deprecated">
  25024. </method>
  25025. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  25026. abstract="false" native="false" synchronized="false"
  25027. static="true" final="false" visibility="public"
  25028. deprecated="not deprecated">
  25029. <param name="name" type="java.lang.String"/>
  25030. </method>
  25031. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  25032. abstract="false" native="false" synchronized="false"
  25033. static="true" final="false" visibility="public"
  25034. deprecated="not deprecated">
  25035. <param name="prefix" type="java.lang.String"/>
  25036. <doc>
  25037. <![CDATA[Convenience method to initialize the metrics system
  25038. @param prefix for the metrics system configuration
  25039. @return the metrics system instance]]>
  25040. </doc>
  25041. </method>
  25042. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  25043. abstract="false" native="false" synchronized="false"
  25044. static="true" final="false" visibility="public"
  25045. deprecated="not deprecated">
  25046. <doc>
  25047. <![CDATA[@return the metrics system object]]>
  25048. </doc>
  25049. </method>
  25050. <method name="shutdown"
  25051. abstract="false" native="false" synchronized="false"
  25052. static="true" final="false" visibility="public"
  25053. deprecated="not deprecated">
  25054. <doc>
  25055. <![CDATA[Shutdown the metrics system]]>
  25056. </doc>
  25057. </method>
  25058. <doc>
  25059. <![CDATA[The default metrics system singleton]]>
  25060. </doc>
  25061. </class>
  25062. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25063. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  25064. <class name="Interns" extends="java.lang.Object"
  25065. abstract="false"
  25066. static="false" final="false" visibility="public"
  25067. deprecated="not deprecated">
  25068. <constructor name="Interns"
  25069. static="false" final="false" visibility="public"
  25070. deprecated="not deprecated">
  25071. </constructor>
  25072. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25073. abstract="false" native="false" synchronized="false"
  25074. static="true" final="false" visibility="public"
  25075. deprecated="not deprecated">
  25076. <param name="name" type="java.lang.String"/>
  25077. <param name="description" type="java.lang.String"/>
  25078. <doc>
  25079. <![CDATA[Get a metric info object.
  25080. @param name Name of metric info object
  25081. @param description Description of metric info object
  25082. @return an interned metric info object]]>
  25083. </doc>
  25084. </method>
  25085. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25086. abstract="false" native="false" synchronized="false"
  25087. static="true" final="false" visibility="public"
  25088. deprecated="not deprecated">
  25089. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25090. <param name="value" type="java.lang.String"/>
  25091. <doc>
  25092. <![CDATA[Get a metrics tag.
  25093. @param info of the tag
  25094. @param value of the tag
  25095. @return an interned metrics tag]]>
  25096. </doc>
  25097. </method>
  25098. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  25099. abstract="false" native="false" synchronized="false"
  25100. static="true" final="false" visibility="public"
  25101. deprecated="not deprecated">
  25102. <param name="name" type="java.lang.String"/>
  25103. <param name="description" type="java.lang.String"/>
  25104. <param name="value" type="java.lang.String"/>
  25105. <doc>
  25106. <![CDATA[Get a metrics tag.
  25107. @param name of the tag
  25108. @param description of the tag
  25109. @param value of the tag
  25110. @return an interned metrics tag]]>
  25111. </doc>
  25112. </method>
  25113. <doc>
  25114. <![CDATA[Helpers to create interned metrics info.]]>
  25115. </doc>
  25116. </class>
  25117. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  25118. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25119. <class name="MetricsRegistry" extends="java.lang.Object"
  25120. abstract="false"
  25121. static="false" final="false" visibility="public"
  25122. deprecated="not deprecated">
  25123. <constructor name="MetricsRegistry" type="java.lang.String"
  25124. static="false" final="false" visibility="public"
  25125. deprecated="not deprecated">
  25126. <doc>
  25127. <![CDATA[Construct the registry with a record name
  25128. @param name of the record of the metrics]]>
  25129. </doc>
  25130. </constructor>
  25131. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  25132. static="false" final="false" visibility="public"
  25133. deprecated="not deprecated">
  25134. <doc>
  25135. <![CDATA[Construct the registry with a metadata object
  25136. @param info the info object for the metrics record/group]]>
  25137. </doc>
  25138. </constructor>
  25139. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25140. abstract="false" native="false" synchronized="false"
  25141. static="false" final="false" visibility="public"
  25142. deprecated="not deprecated">
  25143. <doc>
  25144. <![CDATA[@return the info object of the metrics registry]]>
  25145. </doc>
  25146. </method>
  25147. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  25148. abstract="false" native="false" synchronized="true"
  25149. static="false" final="false" visibility="public"
  25150. deprecated="not deprecated">
  25151. <param name="name" type="java.lang.String"/>
  25152. <doc>
  25153. <![CDATA[Get a metric by name
  25154. @param name of the metric
  25155. @return the metric object]]>
  25156. </doc>
  25157. </method>
  25158. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  25159. abstract="false" native="false" synchronized="true"
  25160. static="false" final="false" visibility="public"
  25161. deprecated="not deprecated">
  25162. <param name="name" type="java.lang.String"/>
  25163. <doc>
  25164. <![CDATA[Get a tag by name
  25165. @param name of the tag
  25166. @return the tag object]]>
  25167. </doc>
  25168. </method>
  25169. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25170. abstract="false" native="false" synchronized="false"
  25171. static="false" final="false" visibility="public"
  25172. deprecated="not deprecated">
  25173. <param name="name" type="java.lang.String"/>
  25174. <param name="desc" type="java.lang.String"/>
  25175. <param name="iVal" type="int"/>
  25176. <doc>
  25177. <![CDATA[Create a mutable integer counter
  25178. @param name of the metric
  25179. @param desc metric description
  25180. @param iVal initial value
  25181. @return a new counter object]]>
  25182. </doc>
  25183. </method>
  25184. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25185. abstract="false" native="false" synchronized="true"
  25186. static="false" final="false" visibility="public"
  25187. deprecated="not deprecated">
  25188. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25189. <param name="iVal" type="int"/>
  25190. <doc>
  25191. <![CDATA[Create a mutable integer counter
  25192. @param info metadata of the metric
  25193. @param iVal initial value
  25194. @return a new counter object]]>
  25195. </doc>
  25196. </method>
  25197. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25198. abstract="false" native="false" synchronized="false"
  25199. static="false" final="false" visibility="public"
  25200. deprecated="not deprecated">
  25201. <param name="name" type="java.lang.String"/>
  25202. <param name="desc" type="java.lang.String"/>
  25203. <param name="iVal" type="long"/>
  25204. <doc>
  25205. <![CDATA[Create a mutable long integer counter
  25206. @param name of the metric
  25207. @param desc metric description
  25208. @param iVal initial value
  25209. @return a new counter object]]>
  25210. </doc>
  25211. </method>
  25212. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25213. abstract="false" native="false" synchronized="true"
  25214. static="false" final="false" visibility="public"
  25215. deprecated="not deprecated">
  25216. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25217. <param name="iVal" type="long"/>
  25218. <doc>
  25219. <![CDATA[Create a mutable long integer counter
  25220. @param info metadata of the metric
  25221. @param iVal initial value
  25222. @return a new counter object]]>
  25223. </doc>
  25224. </method>
  25225. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25226. abstract="false" native="false" synchronized="false"
  25227. static="false" final="false" visibility="public"
  25228. deprecated="not deprecated">
  25229. <param name="name" type="java.lang.String"/>
  25230. <param name="desc" type="java.lang.String"/>
  25231. <param name="iVal" type="int"/>
  25232. <doc>
  25233. <![CDATA[Create a mutable integer gauge
  25234. @param name of the metric
  25235. @param desc metric description
  25236. @param iVal initial value
  25237. @return a new gauge object]]>
  25238. </doc>
  25239. </method>
  25240. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25241. abstract="false" native="false" synchronized="true"
  25242. static="false" final="false" visibility="public"
  25243. deprecated="not deprecated">
  25244. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25245. <param name="iVal" type="int"/>
  25246. <doc>
  25247. <![CDATA[Create a mutable integer gauge
  25248. @param info metadata of the metric
  25249. @param iVal initial value
  25250. @return a new gauge object]]>
  25251. </doc>
  25252. </method>
  25253. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25254. abstract="false" native="false" synchronized="false"
  25255. static="false" final="false" visibility="public"
  25256. deprecated="not deprecated">
  25257. <param name="name" type="java.lang.String"/>
  25258. <param name="desc" type="java.lang.String"/>
  25259. <param name="iVal" type="long"/>
  25260. <doc>
  25261. <![CDATA[Create a mutable long integer gauge
  25262. @param name of the metric
  25263. @param desc metric description
  25264. @param iVal initial value
  25265. @return a new gauge object]]>
  25266. </doc>
  25267. </method>
  25268. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25269. abstract="false" native="false" synchronized="true"
  25270. static="false" final="false" visibility="public"
  25271. deprecated="not deprecated">
  25272. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25273. <param name="iVal" type="long"/>
  25274. <doc>
  25275. <![CDATA[Create a mutable long integer gauge
  25276. @param info metadata of the metric
  25277. @param iVal initial value
  25278. @return a new gauge object]]>
  25279. </doc>
  25280. </method>
  25281. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  25282. abstract="false" native="false" synchronized="true"
  25283. static="false" final="false" visibility="public"
  25284. deprecated="not deprecated">
  25285. <param name="name" type="java.lang.String"/>
  25286. <param name="desc" type="java.lang.String"/>
  25287. <param name="sampleName" type="java.lang.String"/>
  25288. <param name="valueName" type="java.lang.String"/>
  25289. <param name="interval" type="int"/>
  25290. <doc>
  25291. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  25292. @param name of the metric
  25293. @param desc metric description
  25294. @param sampleName of the metric (e.g., "Ops")
  25295. @param valueName of the metric (e.g., "Time" or "Latency")
  25296. @param interval rollover interval of estimator in seconds
  25297. @return a new quantile estimator object
  25298. @throws MetricsException if interval is not a positive integer]]>
  25299. </doc>
  25300. </method>
  25301. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25302. abstract="false" native="false" synchronized="true"
  25303. static="false" final="false" visibility="public"
  25304. deprecated="not deprecated">
  25305. <param name="name" type="java.lang.String"/>
  25306. <param name="desc" type="java.lang.String"/>
  25307. <param name="sampleName" type="java.lang.String"/>
  25308. <param name="valueName" type="java.lang.String"/>
  25309. <param name="extended" type="boolean"/>
  25310. <doc>
  25311. <![CDATA[Create a mutable metric with stats
  25312. @param name of the metric
  25313. @param desc metric description
  25314. @param sampleName of the metric (e.g., "Ops")
  25315. @param valueName of the metric (e.g., "Time" or "Latency")
  25316. @param extended produce extended stat (stdev, min/max etc.) if true.
  25317. @return a new mutable stat metric object]]>
  25318. </doc>
  25319. </method>
  25320. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25321. abstract="false" native="false" synchronized="false"
  25322. static="false" final="false" visibility="public"
  25323. deprecated="not deprecated">
  25324. <param name="name" type="java.lang.String"/>
  25325. <param name="desc" type="java.lang.String"/>
  25326. <param name="sampleName" type="java.lang.String"/>
  25327. <param name="valueName" type="java.lang.String"/>
  25328. <doc>
  25329. <![CDATA[Create a mutable metric with stats
  25330. @param name of the metric
  25331. @param desc metric description
  25332. @param sampleName of the metric (e.g., "Ops")
  25333. @param valueName of the metric (e.g., "Time" or "Latency")
  25334. @return a new mutable metric object]]>
  25335. </doc>
  25336. </method>
  25337. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25338. abstract="false" native="false" synchronized="false"
  25339. static="false" final="false" visibility="public"
  25340. deprecated="not deprecated">
  25341. <param name="name" type="java.lang.String"/>
  25342. <doc>
  25343. <![CDATA[Create a mutable rate metric
  25344. @param name of the metric
  25345. @return a new mutable metric object]]>
  25346. </doc>
  25347. </method>
  25348. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25349. abstract="false" native="false" synchronized="false"
  25350. static="false" final="false" visibility="public"
  25351. deprecated="not deprecated">
  25352. <param name="name" type="java.lang.String"/>
  25353. <param name="description" type="java.lang.String"/>
  25354. <doc>
  25355. <![CDATA[Create a mutable rate metric
  25356. @param name of the metric
  25357. @param description of the metric
  25358. @return a new mutable rate metric object]]>
  25359. </doc>
  25360. </method>
  25361. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25362. abstract="false" native="false" synchronized="false"
  25363. static="false" final="false" visibility="public"
  25364. deprecated="not deprecated">
  25365. <param name="name" type="java.lang.String"/>
  25366. <param name="desc" type="java.lang.String"/>
  25367. <param name="extended" type="boolean"/>
  25368. <doc>
  25369. <![CDATA[Create a mutable rate metric (for throughput measurement)
  25370. @param name of the metric
  25371. @param desc description
  25372. @param extended produce extended stat (stdev/min/max etc.) if true
  25373. @return a new mutable rate metric object]]>
  25374. </doc>
  25375. </method>
  25376. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  25377. abstract="false" native="false" synchronized="true"
  25378. static="false" final="false" visibility="public"
  25379. deprecated="not deprecated">
  25380. <param name="name" type="java.lang.String"/>
  25381. </method>
  25382. <method name="add"
  25383. abstract="false" native="false" synchronized="true"
  25384. static="false" final="false" visibility="public"
  25385. deprecated="not deprecated">
  25386. <param name="name" type="java.lang.String"/>
  25387. <param name="value" type="long"/>
  25388. <doc>
  25389. <![CDATA[Add sample to a stat metric by name.
  25390. @param name of the metric
  25391. @param value of the snapshot to add]]>
  25392. </doc>
  25393. </method>
  25394. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25395. abstract="false" native="false" synchronized="false"
  25396. static="false" final="false" visibility="public"
  25397. deprecated="not deprecated">
  25398. <param name="name" type="java.lang.String"/>
  25399. <doc>
  25400. <![CDATA[Set the metrics context tag
  25401. @param name of the context
  25402. @return the registry itself as a convenience]]>
  25403. </doc>
  25404. </method>
  25405. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25406. abstract="false" native="false" synchronized="false"
  25407. static="false" final="false" visibility="public"
  25408. deprecated="not deprecated">
  25409. <param name="name" type="java.lang.String"/>
  25410. <param name="description" type="java.lang.String"/>
  25411. <param name="value" type="java.lang.String"/>
  25412. <doc>
  25413. <![CDATA[Add a tag to the metrics
  25414. @param name of the tag
  25415. @param description of the tag
  25416. @param value of the tag
  25417. @return the registry (for keep adding tags)]]>
  25418. </doc>
  25419. </method>
  25420. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25421. abstract="false" native="false" synchronized="false"
  25422. static="false" final="false" visibility="public"
  25423. deprecated="not deprecated">
  25424. <param name="name" type="java.lang.String"/>
  25425. <param name="description" type="java.lang.String"/>
  25426. <param name="value" type="java.lang.String"/>
  25427. <param name="override" type="boolean"/>
  25428. <doc>
  25429. <![CDATA[Add a tag to the metrics
  25430. @param name of the tag
  25431. @param description of the tag
  25432. @param value of the tag
  25433. @param override existing tag if true
  25434. @return the registry (for keep adding tags)]]>
  25435. </doc>
  25436. </method>
  25437. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25438. abstract="false" native="false" synchronized="true"
  25439. static="false" final="false" visibility="public"
  25440. deprecated="not deprecated">
  25441. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25442. <param name="value" type="java.lang.String"/>
  25443. <param name="override" type="boolean"/>
  25444. <doc>
  25445. <![CDATA[Add a tag to the metrics
  25446. @param info metadata of the tag
  25447. @param value of the tag
  25448. @param override existing tag if true
  25449. @return the registry (for keep adding tags etc.)]]>
  25450. </doc>
  25451. </method>
  25452. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25453. abstract="false" native="false" synchronized="false"
  25454. static="false" final="false" visibility="public"
  25455. deprecated="not deprecated">
  25456. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25457. <param name="value" type="java.lang.String"/>
  25458. </method>
  25459. <method name="snapshot"
  25460. abstract="false" native="false" synchronized="true"
  25461. static="false" final="false" visibility="public"
  25462. deprecated="not deprecated">
  25463. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25464. <param name="all" type="boolean"/>
  25465. <doc>
  25466. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  25467. @param builder to contain the metrics snapshot
  25468. @param all get all the metrics even if the values are not changed.]]>
  25469. </doc>
  25470. </method>
  25471. <method name="toString" return="java.lang.String"
  25472. abstract="false" native="false" synchronized="false"
  25473. static="false" final="false" visibility="public"
  25474. deprecated="not deprecated">
  25475. </method>
  25476. <doc>
  25477. <![CDATA[An optional metrics registry class for creating and maintaining a
  25478. collection of MetricsMutables, making writing metrics source easier.]]>
  25479. </doc>
  25480. </class>
  25481. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25482. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25483. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25484. abstract="true"
  25485. static="false" final="false" visibility="public"
  25486. deprecated="not deprecated">
  25487. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  25488. static="false" final="false" visibility="protected"
  25489. deprecated="not deprecated">
  25490. </constructor>
  25491. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25492. abstract="false" native="false" synchronized="false"
  25493. static="false" final="false" visibility="protected"
  25494. deprecated="not deprecated">
  25495. </method>
  25496. <method name="incr"
  25497. abstract="true" native="false" synchronized="false"
  25498. static="false" final="false" visibility="public"
  25499. deprecated="not deprecated">
  25500. <doc>
  25501. <![CDATA[Increment the metric value by 1.]]>
  25502. </doc>
  25503. </method>
  25504. <doc>
  25505. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  25506. </doc>
  25507. </class>
  25508. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25509. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25510. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25511. abstract="false"
  25512. static="false" final="false" visibility="public"
  25513. deprecated="not deprecated">
  25514. <method name="incr"
  25515. abstract="false" native="false" synchronized="false"
  25516. static="false" final="false" visibility="public"
  25517. deprecated="not deprecated">
  25518. </method>
  25519. <method name="incr"
  25520. abstract="false" native="false" synchronized="true"
  25521. static="false" final="false" visibility="public"
  25522. deprecated="not deprecated">
  25523. <param name="delta" type="int"/>
  25524. <doc>
  25525. <![CDATA[Increment the value by a delta
  25526. @param delta of the increment]]>
  25527. </doc>
  25528. </method>
  25529. <method name="value" return="int"
  25530. abstract="false" native="false" synchronized="false"
  25531. static="false" final="false" visibility="public"
  25532. deprecated="not deprecated">
  25533. </method>
  25534. <method name="snapshot"
  25535. abstract="false" native="false" synchronized="false"
  25536. static="false" final="false" visibility="public"
  25537. deprecated="not deprecated">
  25538. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25539. <param name="all" type="boolean"/>
  25540. </method>
  25541. <doc>
  25542. <![CDATA[A mutable int counter for implementing metrics sources]]>
  25543. </doc>
  25544. </class>
  25545. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25546. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25547. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25548. abstract="false"
  25549. static="false" final="false" visibility="public"
  25550. deprecated="not deprecated">
  25551. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  25552. static="false" final="false" visibility="public"
  25553. deprecated="not deprecated">
  25554. </constructor>
  25555. <method name="incr"
  25556. abstract="false" native="false" synchronized="false"
  25557. static="false" final="false" visibility="public"
  25558. deprecated="not deprecated">
  25559. </method>
  25560. <method name="incr"
  25561. abstract="false" native="false" synchronized="false"
  25562. static="false" final="false" visibility="public"
  25563. deprecated="not deprecated">
  25564. <param name="delta" type="long"/>
  25565. <doc>
  25566. <![CDATA[Increment the value by a delta
  25567. @param delta of the increment]]>
  25568. </doc>
  25569. </method>
  25570. <method name="value" return="long"
  25571. abstract="false" native="false" synchronized="false"
  25572. static="false" final="false" visibility="public"
  25573. deprecated="not deprecated">
  25574. </method>
  25575. <method name="snapshot"
  25576. abstract="false" native="false" synchronized="false"
  25577. static="false" final="false" visibility="public"
  25578. deprecated="not deprecated">
  25579. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25580. <param name="all" type="boolean"/>
  25581. </method>
  25582. <doc>
  25583. <![CDATA[A mutable long counter]]>
  25584. </doc>
  25585. </class>
  25586. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25587. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25588. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25589. abstract="true"
  25590. static="false" final="false" visibility="public"
  25591. deprecated="not deprecated">
  25592. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  25593. static="false" final="false" visibility="protected"
  25594. deprecated="not deprecated">
  25595. </constructor>
  25596. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25597. abstract="false" native="false" synchronized="false"
  25598. static="false" final="false" visibility="protected"
  25599. deprecated="not deprecated">
  25600. </method>
  25601. <method name="incr"
  25602. abstract="true" native="false" synchronized="false"
  25603. static="false" final="false" visibility="public"
  25604. deprecated="not deprecated">
  25605. <doc>
  25606. <![CDATA[Increment the value of the metric by 1]]>
  25607. </doc>
  25608. </method>
  25609. <method name="decr"
  25610. abstract="true" native="false" synchronized="false"
  25611. static="false" final="false" visibility="public"
  25612. deprecated="not deprecated">
  25613. <doc>
  25614. <![CDATA[Decrement the value of the metric by 1]]>
  25615. </doc>
  25616. </method>
  25617. <doc>
  25618. <![CDATA[The mutable gauge metric interface]]>
  25619. </doc>
  25620. </class>
  25621. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25622. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25623. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25624. abstract="false"
  25625. static="false" final="false" visibility="public"
  25626. deprecated="not deprecated">
  25627. <method name="value" return="int"
  25628. abstract="false" native="false" synchronized="false"
  25629. static="false" final="false" visibility="public"
  25630. deprecated="not deprecated">
  25631. </method>
  25632. <method name="incr"
  25633. abstract="false" native="false" synchronized="false"
  25634. static="false" final="false" visibility="public"
  25635. deprecated="not deprecated">
  25636. </method>
  25637. <method name="incr"
  25638. abstract="false" native="false" synchronized="false"
  25639. static="false" final="false" visibility="public"
  25640. deprecated="not deprecated">
  25641. <param name="delta" type="int"/>
  25642. <doc>
  25643. <![CDATA[Increment by delta
  25644. @param delta of the increment]]>
  25645. </doc>
  25646. </method>
  25647. <method name="decr"
  25648. abstract="false" native="false" synchronized="false"
  25649. static="false" final="false" visibility="public"
  25650. deprecated="not deprecated">
  25651. </method>
  25652. <method name="decr"
  25653. abstract="false" native="false" synchronized="false"
  25654. static="false" final="false" visibility="public"
  25655. deprecated="not deprecated">
  25656. <param name="delta" type="int"/>
  25657. <doc>
  25658. <![CDATA[decrement by delta
  25659. @param delta of the decrement]]>
  25660. </doc>
  25661. </method>
  25662. <method name="set"
  25663. abstract="false" native="false" synchronized="false"
  25664. static="false" final="false" visibility="public"
  25665. deprecated="not deprecated">
  25666. <param name="value" type="int"/>
  25667. <doc>
  25668. <![CDATA[Set the value of the metric
  25669. @param value to set]]>
  25670. </doc>
  25671. </method>
  25672. <method name="snapshot"
  25673. abstract="false" native="false" synchronized="false"
  25674. static="false" final="false" visibility="public"
  25675. deprecated="not deprecated">
  25676. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25677. <param name="all" type="boolean"/>
  25678. </method>
  25679. <doc>
  25680. <![CDATA[A mutable int gauge]]>
  25681. </doc>
  25682. </class>
  25683. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25684. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25685. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25686. abstract="false"
  25687. static="false" final="false" visibility="public"
  25688. deprecated="not deprecated">
  25689. <method name="value" return="long"
  25690. abstract="false" native="false" synchronized="false"
  25691. static="false" final="false" visibility="public"
  25692. deprecated="not deprecated">
  25693. </method>
  25694. <method name="incr"
  25695. abstract="false" native="false" synchronized="false"
  25696. static="false" final="false" visibility="public"
  25697. deprecated="not deprecated">
  25698. </method>
  25699. <method name="incr"
  25700. abstract="false" native="false" synchronized="false"
  25701. static="false" final="false" visibility="public"
  25702. deprecated="not deprecated">
  25703. <param name="delta" type="long"/>
  25704. <doc>
  25705. <![CDATA[Increment by delta
  25706. @param delta of the increment]]>
  25707. </doc>
  25708. </method>
  25709. <method name="decr"
  25710. abstract="false" native="false" synchronized="false"
  25711. static="false" final="false" visibility="public"
  25712. deprecated="not deprecated">
  25713. </method>
  25714. <method name="decr"
  25715. abstract="false" native="false" synchronized="false"
  25716. static="false" final="false" visibility="public"
  25717. deprecated="not deprecated">
  25718. <param name="delta" type="long"/>
  25719. <doc>
  25720. <![CDATA[decrement by delta
  25721. @param delta of the decrement]]>
  25722. </doc>
  25723. </method>
  25724. <method name="set"
  25725. abstract="false" native="false" synchronized="false"
  25726. static="false" final="false" visibility="public"
  25727. deprecated="not deprecated">
  25728. <param name="value" type="long"/>
  25729. <doc>
  25730. <![CDATA[Set the value of the metric
  25731. @param value to set]]>
  25732. </doc>
  25733. </method>
  25734. <method name="snapshot"
  25735. abstract="false" native="false" synchronized="false"
  25736. static="false" final="false" visibility="public"
  25737. deprecated="not deprecated">
  25738. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25739. <param name="all" type="boolean"/>
  25740. </method>
  25741. <doc>
  25742. <![CDATA[A mutable long gauge]]>
  25743. </doc>
  25744. </class>
  25745. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25746. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25747. <class name="MutableMetric" extends="java.lang.Object"
  25748. abstract="true"
  25749. static="false" final="false" visibility="public"
  25750. deprecated="not deprecated">
  25751. <constructor name="MutableMetric"
  25752. static="false" final="false" visibility="public"
  25753. deprecated="not deprecated">
  25754. </constructor>
  25755. <method name="snapshot"
  25756. abstract="true" native="false" synchronized="false"
  25757. static="false" final="false" visibility="public"
  25758. deprecated="not deprecated">
  25759. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25760. <param name="all" type="boolean"/>
  25761. <doc>
  25762. <![CDATA[Get a snapshot of the metric
  25763. @param builder the metrics record builder
  25764. @param all if true, snapshot unchanged metrics as well]]>
  25765. </doc>
  25766. </method>
  25767. <method name="snapshot"
  25768. abstract="false" native="false" synchronized="false"
  25769. static="false" final="false" visibility="public"
  25770. deprecated="not deprecated">
  25771. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25772. <doc>
  25773. <![CDATA[Get a snapshot of metric if changed
  25774. @param builder the metrics record builder]]>
  25775. </doc>
  25776. </method>
  25777. <method name="setChanged"
  25778. abstract="false" native="false" synchronized="false"
  25779. static="false" final="false" visibility="protected"
  25780. deprecated="not deprecated">
  25781. <doc>
  25782. <![CDATA[Set the changed flag in mutable operations]]>
  25783. </doc>
  25784. </method>
  25785. <method name="clearChanged"
  25786. abstract="false" native="false" synchronized="false"
  25787. static="false" final="false" visibility="protected"
  25788. deprecated="not deprecated">
  25789. <doc>
  25790. <![CDATA[Clear the changed flag in the snapshot operations]]>
  25791. </doc>
  25792. </method>
  25793. <method name="changed" return="boolean"
  25794. abstract="false" native="false" synchronized="false"
  25795. static="false" final="false" visibility="public"
  25796. deprecated="not deprecated">
  25797. <doc>
  25798. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  25799. </doc>
  25800. </method>
  25801. <doc>
  25802. <![CDATA[The mutable metric interface]]>
  25803. </doc>
  25804. </class>
  25805. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25806. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  25807. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25808. abstract="false"
  25809. static="false" final="false" visibility="public"
  25810. deprecated="not deprecated">
  25811. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  25812. static="false" final="false" visibility="public"
  25813. deprecated="not deprecated">
  25814. <doc>
  25815. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  25816. over on the specified time interval.
  25817. @param name
  25818. of the metric
  25819. @param description
  25820. long-form textual description of the metric
  25821. @param sampleName
  25822. type of items in the stream (e.g., "Ops")
  25823. @param valueName
  25824. type of the values
  25825. @param interval
  25826. rollover interval (in seconds) of the estimator]]>
  25827. </doc>
  25828. </constructor>
  25829. <method name="snapshot"
  25830. abstract="false" native="false" synchronized="true"
  25831. static="false" final="false" visibility="public"
  25832. deprecated="not deprecated">
  25833. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25834. <param name="all" type="boolean"/>
  25835. </method>
  25836. <method name="add"
  25837. abstract="false" native="false" synchronized="true"
  25838. static="false" final="false" visibility="public"
  25839. deprecated="not deprecated">
  25840. <param name="value" type="long"/>
  25841. </method>
  25842. <method name="getInterval" return="int"
  25843. abstract="false" native="false" synchronized="false"
  25844. static="false" final="false" visibility="public"
  25845. deprecated="not deprecated">
  25846. </method>
  25847. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  25848. transient="false" volatile="false"
  25849. static="true" final="true" visibility="public"
  25850. deprecated="not deprecated">
  25851. </field>
  25852. <field name="previousSnapshot" type="java.util.Map"
  25853. transient="false" volatile="false"
  25854. static="false" final="false" visibility="protected"
  25855. deprecated="not deprecated">
  25856. </field>
  25857. <doc>
  25858. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  25859. quantiles with provably low error bounds. This is particularly useful for
  25860. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  25861. </doc>
  25862. </class>
  25863. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  25864. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  25865. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  25866. abstract="false"
  25867. static="false" final="false" visibility="public"
  25868. deprecated="not deprecated">
  25869. <doc>
  25870. <![CDATA[A convenient mutable metric for throughput measurement]]>
  25871. </doc>
  25872. </class>
  25873. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  25874. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  25875. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25876. abstract="false"
  25877. static="false" final="false" visibility="public"
  25878. deprecated="not deprecated">
  25879. <method name="init"
  25880. abstract="false" native="false" synchronized="false"
  25881. static="false" final="false" visibility="public"
  25882. deprecated="not deprecated">
  25883. <param name="protocol" type="java.lang.Class"/>
  25884. <doc>
  25885. <![CDATA[Initialize the registry with all the methods in a protocol
  25886. so they all show up in the first snapshot.
  25887. Convenient for JMX implementations.
  25888. @param protocol the protocol class]]>
  25889. </doc>
  25890. </method>
  25891. <method name="add"
  25892. abstract="false" native="false" synchronized="false"
  25893. static="false" final="false" visibility="public"
  25894. deprecated="not deprecated">
  25895. <param name="name" type="java.lang.String"/>
  25896. <param name="elapsed" type="long"/>
  25897. <doc>
  25898. <![CDATA[Add a rate sample for a rate metric
  25899. @param name of the rate metric
  25900. @param elapsed time]]>
  25901. </doc>
  25902. </method>
  25903. <method name="snapshot"
  25904. abstract="false" native="false" synchronized="false"
  25905. static="false" final="false" visibility="public"
  25906. deprecated="not deprecated">
  25907. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25908. <param name="all" type="boolean"/>
  25909. </method>
  25910. <doc>
  25911. <![CDATA[Helper class to manage a group of mutable rate metrics
  25912. This class synchronizes all accesses to the metrics it
  25913. contains, so it should not be used in situations where
  25914. there is high contention on the metrics.
  25915. {@link MutableRatesWithAggregation} is preferable in that
  25916. situation.]]>
  25917. </doc>
  25918. </class>
  25919. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  25920. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  25921. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25922. abstract="false"
  25923. static="false" final="false" visibility="public"
  25924. deprecated="not deprecated">
  25925. <constructor name="MutableRatesWithAggregation"
  25926. static="false" final="false" visibility="public"
  25927. deprecated="not deprecated">
  25928. </constructor>
  25929. <method name="init"
  25930. abstract="false" native="false" synchronized="false"
  25931. static="false" final="false" visibility="public"
  25932. deprecated="not deprecated">
  25933. <param name="protocol" type="java.lang.Class"/>
  25934. <doc>
  25935. <![CDATA[Initialize the registry with all the methods in a protocol
  25936. so they all show up in the first snapshot.
  25937. Convenient for JMX implementations.
  25938. @param protocol the protocol class]]>
  25939. </doc>
  25940. </method>
  25941. <method name="add"
  25942. abstract="false" native="false" synchronized="false"
  25943. static="false" final="false" visibility="public"
  25944. deprecated="not deprecated">
  25945. <param name="name" type="java.lang.String"/>
  25946. <param name="elapsed" type="long"/>
  25947. <doc>
  25948. <![CDATA[Add a rate sample for a rate metric.
  25949. @param name of the rate metric
  25950. @param elapsed time]]>
  25951. </doc>
  25952. </method>
  25953. <method name="snapshot"
  25954. abstract="false" native="false" synchronized="true"
  25955. static="false" final="false" visibility="public"
  25956. deprecated="not deprecated">
  25957. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25958. <param name="all" type="boolean"/>
  25959. </method>
  25960. <doc>
  25961. <![CDATA[Helper class to manage a group of mutable rate metrics.
  25962. Each thread will maintain a local rate count, and upon snapshot,
  25963. these values will be aggregated into a global rate. This class
  25964. should only be used for long running threads, as any metrics
  25965. produced between the last snapshot and the death of a thread
  25966. will be lost. This allows for significantly higher concurrency
  25967. than {@link MutableRates}. See HADOOP-24420.]]>
  25968. </doc>
  25969. </class>
  25970. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  25971. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  25972. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25973. abstract="false"
  25974. static="false" final="false" visibility="public"
  25975. deprecated="not deprecated">
  25976. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  25977. static="false" final="false" visibility="public"
  25978. deprecated="not deprecated">
  25979. <doc>
  25980. <![CDATA[Construct a sample statistics metric
  25981. @param name of the metric
  25982. @param description of the metric
  25983. @param sampleName of the metric (e.g. "Ops")
  25984. @param valueName of the metric (e.g. "Time", "Latency")
  25985. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  25986. </doc>
  25987. </constructor>
  25988. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  25989. static="false" final="false" visibility="public"
  25990. deprecated="not deprecated">
  25991. <doc>
  25992. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  25993. @param name of the metric
  25994. @param description of the metric
  25995. @param sampleName of the metric (e.g. "Ops")
  25996. @param valueName of the metric (e.g. "Time", "Latency")]]>
  25997. </doc>
  25998. </constructor>
  25999. <method name="setExtended"
  26000. abstract="false" native="false" synchronized="true"
  26001. static="false" final="false" visibility="public"
  26002. deprecated="not deprecated">
  26003. <param name="extended" type="boolean"/>
  26004. <doc>
  26005. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  26006. @param extended enable/disable displaying extended stats]]>
  26007. </doc>
  26008. </method>
  26009. <method name="add"
  26010. abstract="false" native="false" synchronized="true"
  26011. static="false" final="false" visibility="public"
  26012. deprecated="not deprecated">
  26013. <param name="numSamples" type="long"/>
  26014. <param name="sum" type="long"/>
  26015. <doc>
  26016. <![CDATA[Add a number of samples and their sum to the running stat
  26017. Note that although use of this method will preserve accurate mean values,
  26018. large values for numSamples may result in inaccurate variance values due
  26019. to the use of a single step of the Welford method for variance calculation.
  26020. @param numSamples number of samples
  26021. @param sum of the samples]]>
  26022. </doc>
  26023. </method>
  26024. <method name="add"
  26025. abstract="false" native="false" synchronized="true"
  26026. static="false" final="false" visibility="public"
  26027. deprecated="not deprecated">
  26028. <param name="value" type="long"/>
  26029. <doc>
  26030. <![CDATA[Add a snapshot to the metric
  26031. @param value of the metric]]>
  26032. </doc>
  26033. </method>
  26034. <method name="snapshot"
  26035. abstract="false" native="false" synchronized="true"
  26036. static="false" final="false" visibility="public"
  26037. deprecated="not deprecated">
  26038. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26039. <param name="all" type="boolean"/>
  26040. </method>
  26041. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  26042. abstract="false" native="false" synchronized="false"
  26043. static="false" final="false" visibility="public"
  26044. deprecated="not deprecated">
  26045. <doc>
  26046. <![CDATA[Return a SampleStat object that supports
  26047. calls like StdDev and Mean.
  26048. @return SampleStat]]>
  26049. </doc>
  26050. </method>
  26051. <method name="resetMinMax"
  26052. abstract="false" native="false" synchronized="false"
  26053. static="false" final="false" visibility="public"
  26054. deprecated="not deprecated">
  26055. <doc>
  26056. <![CDATA[Reset the all time min max of the metric]]>
  26057. </doc>
  26058. </method>
  26059. <method name="toString" return="java.lang.String"
  26060. abstract="false" native="false" synchronized="false"
  26061. static="false" final="false" visibility="public"
  26062. deprecated="not deprecated">
  26063. </method>
  26064. <doc>
  26065. <![CDATA[A mutable metric with stats.
  26066. Useful for keeping throughput/latency stats.]]>
  26067. </doc>
  26068. </class>
  26069. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  26070. </package>
  26071. <package name="org.apache.hadoop.metrics2.sink">
  26072. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  26073. <class name="FileSink" extends="java.lang.Object"
  26074. abstract="false"
  26075. static="false" final="false" visibility="public"
  26076. deprecated="not deprecated">
  26077. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26078. <implements name="java.io.Closeable"/>
  26079. <constructor name="FileSink"
  26080. static="false" final="false" visibility="public"
  26081. deprecated="not deprecated">
  26082. </constructor>
  26083. <method name="init"
  26084. abstract="false" native="false" synchronized="false"
  26085. static="false" final="false" visibility="public"
  26086. deprecated="not deprecated">
  26087. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26088. </method>
  26089. <method name="putMetrics"
  26090. abstract="false" native="false" synchronized="false"
  26091. static="false" final="false" visibility="public"
  26092. deprecated="not deprecated">
  26093. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26094. </method>
  26095. <method name="flush"
  26096. abstract="false" native="false" synchronized="false"
  26097. static="false" final="false" visibility="public"
  26098. deprecated="not deprecated">
  26099. </method>
  26100. <method name="close"
  26101. abstract="false" native="false" synchronized="false"
  26102. static="false" final="false" visibility="public"
  26103. deprecated="not deprecated">
  26104. <exception name="IOException" type="java.io.IOException"/>
  26105. </method>
  26106. <doc>
  26107. <![CDATA[A metrics sink that writes to a file]]>
  26108. </doc>
  26109. </class>
  26110. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  26111. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26112. <class name="GraphiteSink" extends="java.lang.Object"
  26113. abstract="false"
  26114. static="false" final="false" visibility="public"
  26115. deprecated="not deprecated">
  26116. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26117. <implements name="java.io.Closeable"/>
  26118. <constructor name="GraphiteSink"
  26119. static="false" final="false" visibility="public"
  26120. deprecated="not deprecated">
  26121. </constructor>
  26122. <method name="init"
  26123. abstract="false" native="false" synchronized="false"
  26124. static="false" final="false" visibility="public"
  26125. deprecated="not deprecated">
  26126. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26127. </method>
  26128. <method name="putMetrics"
  26129. abstract="false" native="false" synchronized="false"
  26130. static="false" final="false" visibility="public"
  26131. deprecated="not deprecated">
  26132. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26133. </method>
  26134. <method name="flush"
  26135. abstract="false" native="false" synchronized="false"
  26136. static="false" final="false" visibility="public"
  26137. deprecated="not deprecated">
  26138. </method>
  26139. <method name="close"
  26140. abstract="false" native="false" synchronized="false"
  26141. static="false" final="false" visibility="public"
  26142. deprecated="not deprecated">
  26143. <exception name="IOException" type="java.io.IOException"/>
  26144. </method>
  26145. <doc>
  26146. <![CDATA[A metrics sink that writes to a Graphite server]]>
  26147. </doc>
  26148. </class>
  26149. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26150. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26151. <class name="StatsDSink" extends="java.lang.Object"
  26152. abstract="false"
  26153. static="false" final="false" visibility="public"
  26154. deprecated="not deprecated">
  26155. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26156. <implements name="java.io.Closeable"/>
  26157. <constructor name="StatsDSink"
  26158. static="false" final="false" visibility="public"
  26159. deprecated="not deprecated">
  26160. </constructor>
  26161. <method name="init"
  26162. abstract="false" native="false" synchronized="false"
  26163. static="false" final="false" visibility="public"
  26164. deprecated="not deprecated">
  26165. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26166. </method>
  26167. <method name="putMetrics"
  26168. abstract="false" native="false" synchronized="false"
  26169. static="false" final="false" visibility="public"
  26170. deprecated="not deprecated">
  26171. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26172. </method>
  26173. <method name="writeMetric"
  26174. abstract="false" native="false" synchronized="false"
  26175. static="false" final="false" visibility="public"
  26176. deprecated="not deprecated">
  26177. <param name="line" type="java.lang.String"/>
  26178. </method>
  26179. <method name="flush"
  26180. abstract="false" native="false" synchronized="false"
  26181. static="false" final="false" visibility="public"
  26182. deprecated="not deprecated">
  26183. </method>
  26184. <method name="close"
  26185. abstract="false" native="false" synchronized="false"
  26186. static="false" final="false" visibility="public"
  26187. deprecated="not deprecated">
  26188. <exception name="IOException" type="java.io.IOException"/>
  26189. </method>
  26190. <doc>
  26191. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  26192. This sink will produce metrics of the form
  26193. '[hostname].servicename.context.name.metricname:value|type'
  26194. where hostname is optional. This is useful when sending to
  26195. a daemon that is running on the localhost and will add the
  26196. hostname to the metric (such as the
  26197. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  26198. <br/>
  26199. To configure this plugin, you will need to add the following
  26200. entries to your hadoop-metrics2.properties file:
  26201. <br/>
  26202. <pre>
  26203. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  26204. [prefix].sink.statsd.server.host=
  26205. [prefix].sink.statsd.server.port=
  26206. [prefix].sink.statsd.skip.hostname=true|false (optional)
  26207. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  26208. </pre>]]>
  26209. </doc>
  26210. </class>
  26211. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26212. </package>
  26213. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  26214. </package>
  26215. <package name="org.apache.hadoop.metrics2.source">
  26216. </package>
  26217. <package name="org.apache.hadoop.metrics2.util">
  26218. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  26219. <class name="MBeans" extends="java.lang.Object"
  26220. abstract="false"
  26221. static="false" final="false" visibility="public"
  26222. deprecated="not deprecated">
  26223. <constructor name="MBeans"
  26224. static="false" final="false" visibility="public"
  26225. deprecated="not deprecated">
  26226. </constructor>
  26227. <method name="register" return="javax.management.ObjectName"
  26228. abstract="false" native="false" synchronized="false"
  26229. static="true" final="false" visibility="public"
  26230. deprecated="not deprecated">
  26231. <param name="serviceName" type="java.lang.String"/>
  26232. <param name="nameName" type="java.lang.String"/>
  26233. <param name="theMbean" type="java.lang.Object"/>
  26234. <doc>
  26235. <![CDATA[Register the MBean using our standard MBeanName format
  26236. "hadoop:service=<serviceName>,name=<nameName>"
  26237. Where the <serviceName> and <nameName> are the supplied parameters
  26238. @param serviceName
  26239. @param nameName
  26240. @param theMbean - the MBean to register
  26241. @return the named used to register the MBean]]>
  26242. </doc>
  26243. </method>
  26244. <method name="getMbeanNameService" return="java.lang.String"
  26245. abstract="false" native="false" synchronized="false"
  26246. static="true" final="false" visibility="public"
  26247. deprecated="not deprecated">
  26248. <param name="objectName" type="javax.management.ObjectName"/>
  26249. </method>
  26250. <method name="getMbeanNameName" return="java.lang.String"
  26251. abstract="false" native="false" synchronized="false"
  26252. static="true" final="false" visibility="public"
  26253. deprecated="not deprecated">
  26254. <param name="objectName" type="javax.management.ObjectName"/>
  26255. </method>
  26256. <method name="unregister"
  26257. abstract="false" native="false" synchronized="false"
  26258. static="true" final="false" visibility="public"
  26259. deprecated="not deprecated">
  26260. <param name="mbeanName" type="javax.management.ObjectName"/>
  26261. </method>
  26262. <doc>
  26263. <![CDATA[This util class provides a method to register an MBean using
  26264. our standard naming convention as described in the doc
  26265. for {link {@link #register(String, String, Object)}]]>
  26266. </doc>
  26267. </class>
  26268. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  26269. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  26270. <class name="MetricsCache" extends="java.lang.Object"
  26271. abstract="false"
  26272. static="false" final="false" visibility="public"
  26273. deprecated="not deprecated">
  26274. <constructor name="MetricsCache"
  26275. static="false" final="false" visibility="public"
  26276. deprecated="not deprecated">
  26277. </constructor>
  26278. <constructor name="MetricsCache" type="int"
  26279. static="false" final="false" visibility="public"
  26280. deprecated="not deprecated">
  26281. <doc>
  26282. <![CDATA[Construct a metrics cache
  26283. @param maxRecsPerName limit of the number records per record name]]>
  26284. </doc>
  26285. </constructor>
  26286. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26287. abstract="false" native="false" synchronized="false"
  26288. static="false" final="false" visibility="public"
  26289. deprecated="not deprecated">
  26290. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26291. <param name="includingTags" type="boolean"/>
  26292. <doc>
  26293. <![CDATA[Update the cache and return the current cached record
  26294. @param mr the update record
  26295. @param includingTags cache tag values (for later lookup by name) if true
  26296. @return the updated cache record]]>
  26297. </doc>
  26298. </method>
  26299. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26300. abstract="false" native="false" synchronized="false"
  26301. static="false" final="false" visibility="public"
  26302. deprecated="not deprecated">
  26303. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26304. <doc>
  26305. <![CDATA[Update the cache and return the current cache record
  26306. @param mr the update record
  26307. @return the updated cache record]]>
  26308. </doc>
  26309. </method>
  26310. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26311. abstract="false" native="false" synchronized="false"
  26312. static="false" final="false" visibility="public"
  26313. deprecated="not deprecated">
  26314. <param name="name" type="java.lang.String"/>
  26315. <param name="tags" type="java.util.Collection"/>
  26316. <doc>
  26317. <![CDATA[Get the cached record
  26318. @param name of the record
  26319. @param tags of the record
  26320. @return the cached record or null]]>
  26321. </doc>
  26322. </method>
  26323. <doc>
  26324. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  26325. </doc>
  26326. </class>
  26327. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  26328. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  26329. <class name="Servers" extends="java.lang.Object"
  26330. abstract="false"
  26331. static="false" final="false" visibility="public"
  26332. deprecated="not deprecated">
  26333. <method name="parse" return="java.util.List"
  26334. abstract="false" native="false" synchronized="false"
  26335. static="true" final="false" visibility="public"
  26336. deprecated="not deprecated">
  26337. <param name="specs" type="java.lang.String"/>
  26338. <param name="defaultPort" type="int"/>
  26339. <doc>
  26340. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  26341. of the form <i>hostname</i> or <i>hostname:port</i>. If
  26342. the specs string is null, defaults to localhost:defaultPort.
  26343. @param specs server specs (see description)
  26344. @param defaultPort the default port if not specified
  26345. @return a list of InetSocketAddress objects.]]>
  26346. </doc>
  26347. </method>
  26348. <doc>
  26349. <![CDATA[Helpers to handle server addresses]]>
  26350. </doc>
  26351. </class>
  26352. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  26353. </package>
  26354. <package name="org.apache.hadoop.net">
  26355. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26356. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  26357. abstract="true"
  26358. static="false" final="false" visibility="public"
  26359. deprecated="not deprecated">
  26360. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26361. <implements name="org.apache.hadoop.conf.Configurable"/>
  26362. <constructor name="AbstractDNSToSwitchMapping"
  26363. static="false" final="false" visibility="protected"
  26364. deprecated="not deprecated">
  26365. <doc>
  26366. <![CDATA[Create an unconfigured instance]]>
  26367. </doc>
  26368. </constructor>
  26369. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  26370. static="false" final="false" visibility="protected"
  26371. deprecated="not deprecated">
  26372. <doc>
  26373. <![CDATA[Create an instance, caching the configuration file.
  26374. This constructor does not call {@link #setConf(Configuration)}; if
  26375. a subclass extracts information in that method, it must call it explicitly.
  26376. @param conf the configuration]]>
  26377. </doc>
  26378. </constructor>
  26379. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26380. abstract="false" native="false" synchronized="false"
  26381. static="false" final="false" visibility="public"
  26382. deprecated="not deprecated">
  26383. </method>
  26384. <method name="setConf"
  26385. abstract="false" native="false" synchronized="false"
  26386. static="false" final="false" visibility="public"
  26387. deprecated="not deprecated">
  26388. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26389. </method>
  26390. <method name="isSingleSwitch" return="boolean"
  26391. abstract="false" native="false" synchronized="false"
  26392. static="false" final="false" visibility="public"
  26393. deprecated="not deprecated">
  26394. <doc>
  26395. <![CDATA[Predicate that indicates that the switch mapping is known to be
  26396. single-switch. The base class returns false: it assumes all mappings are
  26397. multi-rack. Subclasses may override this with methods that are more aware
  26398. of their topologies.
  26399. <p/>
  26400. This method is used when parts of Hadoop need know whether to apply
  26401. single rack vs multi-rack policies, such as during block placement.
  26402. Such algorithms behave differently if they are on multi-switch systems.
  26403. </p>
  26404. @return true if the mapping thinks that it is on a single switch]]>
  26405. </doc>
  26406. </method>
  26407. <method name="getSwitchMap" return="java.util.Map"
  26408. abstract="false" native="false" synchronized="false"
  26409. static="false" final="false" visibility="public"
  26410. deprecated="not deprecated">
  26411. <doc>
  26412. <![CDATA[Get a copy of the map (for diagnostics)
  26413. @return a clone of the map or null for none known]]>
  26414. </doc>
  26415. </method>
  26416. <method name="dumpTopology" return="java.lang.String"
  26417. abstract="false" native="false" synchronized="false"
  26418. static="false" final="false" visibility="public"
  26419. deprecated="not deprecated">
  26420. <doc>
  26421. <![CDATA[Generate a string listing the switch mapping implementation,
  26422. the mapping for every known node and the number of nodes and
  26423. unique switches known about -each entry to a separate line.
  26424. @return a string that can be presented to the ops team or used in
  26425. debug messages.]]>
  26426. </doc>
  26427. </method>
  26428. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  26429. abstract="false" native="false" synchronized="false"
  26430. static="false" final="false" visibility="protected"
  26431. deprecated="not deprecated">
  26432. </method>
  26433. <method name="isMappingSingleSwitch" return="boolean"
  26434. abstract="false" native="false" synchronized="false"
  26435. static="true" final="false" visibility="public"
  26436. deprecated="not deprecated">
  26437. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26438. <doc>
  26439. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  26440. switch.
  26441. <p/>
  26442. This predicate simply assumes that all mappings not derived from
  26443. this class are multi-switch.
  26444. @param mapping the mapping to query
  26445. @return true if the base class says it is single switch, or the mapping
  26446. is not derived from this class.]]>
  26447. </doc>
  26448. </method>
  26449. <doc>
  26450. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  26451. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  26452. recommended, as it makes it easy for the Hadoop developers to add new methods
  26453. to this base class that are automatically picked up by all implementations.
  26454. <p/>
  26455. This class does not extend the <code>Configured</code>
  26456. base class, and should not be changed to do so, as it causes problems
  26457. for subclasses. The constructor of the <code>Configured</code> calls
  26458. the {@link #setConf(Configuration)} method, which will call into the
  26459. subclasses before they have been fully constructed.]]>
  26460. </doc>
  26461. </class>
  26462. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26463. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26464. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  26465. abstract="false"
  26466. static="false" final="false" visibility="public"
  26467. deprecated="not deprecated">
  26468. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26469. static="false" final="false" visibility="public"
  26470. deprecated="not deprecated">
  26471. <doc>
  26472. <![CDATA[cache a raw DNS mapping
  26473. @param rawMapping the raw mapping to cache]]>
  26474. </doc>
  26475. </constructor>
  26476. <method name="resolve" return="java.util.List"
  26477. abstract="false" native="false" synchronized="false"
  26478. static="false" final="false" visibility="public"
  26479. deprecated="not deprecated">
  26480. <param name="names" type="java.util.List"/>
  26481. </method>
  26482. <method name="getSwitchMap" return="java.util.Map"
  26483. abstract="false" native="false" synchronized="false"
  26484. static="false" final="false" visibility="public"
  26485. deprecated="not deprecated">
  26486. <doc>
  26487. <![CDATA[Get the (host x switch) map.
  26488. @return a copy of the cached map of hosts to rack]]>
  26489. </doc>
  26490. </method>
  26491. <method name="toString" return="java.lang.String"
  26492. abstract="false" native="false" synchronized="false"
  26493. static="false" final="false" visibility="public"
  26494. deprecated="not deprecated">
  26495. </method>
  26496. <method name="isSingleSwitch" return="boolean"
  26497. abstract="false" native="false" synchronized="false"
  26498. static="false" final="false" visibility="public"
  26499. deprecated="not deprecated">
  26500. <doc>
  26501. <![CDATA[Delegate the switch topology query to the raw mapping, via
  26502. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  26503. @return true iff the raw mapper is considered single-switch.]]>
  26504. </doc>
  26505. </method>
  26506. <method name="reloadCachedMappings"
  26507. abstract="false" native="false" synchronized="false"
  26508. static="false" final="false" visibility="public"
  26509. deprecated="not deprecated">
  26510. </method>
  26511. <method name="reloadCachedMappings"
  26512. abstract="false" native="false" synchronized="false"
  26513. static="false" final="false" visibility="public"
  26514. deprecated="not deprecated">
  26515. <param name="names" type="java.util.List"/>
  26516. </method>
  26517. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26518. transient="false" volatile="false"
  26519. static="false" final="true" visibility="protected"
  26520. deprecated="not deprecated">
  26521. <doc>
  26522. <![CDATA[The uncached mapping]]>
  26523. </doc>
  26524. </field>
  26525. <doc>
  26526. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  26527. raw DNSToSwitchMapping and stores the resolved network location in
  26528. a cache. The following calls to a resolved network location
  26529. will get its location from the cache.]]>
  26530. </doc>
  26531. </class>
  26532. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26533. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  26534. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  26535. abstract="false"
  26536. static="false" final="false" visibility="public"
  26537. deprecated="not deprecated">
  26538. <constructor name="ConnectTimeoutException" type="java.lang.String"
  26539. static="false" final="false" visibility="public"
  26540. deprecated="not deprecated">
  26541. </constructor>
  26542. <doc>
  26543. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  26544. if it times out while connecting to the remote host.]]>
  26545. </doc>
  26546. </class>
  26547. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  26548. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  26549. <interface name="DNSToSwitchMapping" abstract="true"
  26550. static="false" final="false" visibility="public"
  26551. deprecated="not deprecated">
  26552. <method name="resolve" return="java.util.List"
  26553. abstract="false" native="false" synchronized="false"
  26554. static="false" final="false" visibility="public"
  26555. deprecated="not deprecated">
  26556. <param name="names" type="java.util.List"/>
  26557. <doc>
  26558. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  26559. switch information (network paths). One-to-one correspondence must be
  26560. maintained between the elements in the lists.
  26561. Consider an element in the argument list - x.y.com. The switch information
  26562. that is returned must be a network path of the form /foo/rack,
  26563. where / is the root, and 'foo' is the switch where 'rack' is connected.
  26564. Note the hostname/ip-address is not part of the returned path.
  26565. The network topology of the cluster would determine the number of
  26566. components in the network path.
  26567. <p/>
  26568. If a name cannot be resolved to a rack, the implementation
  26569. should return {@link NetworkTopology#DEFAULT_RACK}. This
  26570. is what the bundled implementations do, though it is not a formal requirement
  26571. @param names the list of hosts to resolve (can be empty)
  26572. @return list of resolved network paths.
  26573. If <i>names</i> is empty, the returned list is also empty]]>
  26574. </doc>
  26575. </method>
  26576. <method name="reloadCachedMappings"
  26577. abstract="false" native="false" synchronized="false"
  26578. static="false" final="false" visibility="public"
  26579. deprecated="not deprecated">
  26580. <doc>
  26581. <![CDATA[Reload all of the cached mappings.
  26582. If there is a cache, this method will clear it, so that future accesses
  26583. will get a chance to see the new data.]]>
  26584. </doc>
  26585. </method>
  26586. <method name="reloadCachedMappings"
  26587. abstract="false" native="false" synchronized="false"
  26588. static="false" final="false" visibility="public"
  26589. deprecated="not deprecated">
  26590. <param name="names" type="java.util.List"/>
  26591. <doc>
  26592. <![CDATA[Reload cached mappings on specific nodes.
  26593. If there is a cache on these nodes, this method will clear it, so that
  26594. future accesses will see updated data.]]>
  26595. </doc>
  26596. </method>
  26597. <doc>
  26598. <![CDATA[An interface that must be implemented to allow pluggable
  26599. DNS-name/IP-address to RackID resolvers.]]>
  26600. </doc>
  26601. </interface>
  26602. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  26603. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  26604. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  26605. abstract="false"
  26606. static="false" final="false" visibility="public"
  26607. deprecated="not deprecated">
  26608. <constructor name="ScriptBasedMapping"
  26609. static="false" final="false" visibility="public"
  26610. deprecated="not deprecated">
  26611. <doc>
  26612. <![CDATA[Create an instance with the default configuration.
  26613. </p>
  26614. Calling {@link #setConf(Configuration)} will trigger a
  26615. re-evaluation of the configuration settings and so be used to
  26616. set up the mapping script.]]>
  26617. </doc>
  26618. </constructor>
  26619. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26620. static="false" final="false" visibility="public"
  26621. deprecated="not deprecated">
  26622. <doc>
  26623. <![CDATA[Create an instance from the given raw mapping
  26624. @param rawMap raw DNSTOSwithMapping]]>
  26625. </doc>
  26626. </constructor>
  26627. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  26628. static="false" final="false" visibility="public"
  26629. deprecated="not deprecated">
  26630. <doc>
  26631. <![CDATA[Create an instance from the given configuration
  26632. @param conf configuration]]>
  26633. </doc>
  26634. </constructor>
  26635. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26636. abstract="false" native="false" synchronized="false"
  26637. static="false" final="false" visibility="public"
  26638. deprecated="not deprecated">
  26639. </method>
  26640. <method name="toString" return="java.lang.String"
  26641. abstract="false" native="false" synchronized="false"
  26642. static="false" final="false" visibility="public"
  26643. deprecated="not deprecated">
  26644. </method>
  26645. <method name="setConf"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="false" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26650. <doc>
  26651. <![CDATA[{@inheritDoc}
  26652. <p/>
  26653. This will get called in the superclass constructor, so a check is needed
  26654. to ensure that the raw mapping is defined before trying to relaying a null
  26655. configuration.
  26656. @param conf]]>
  26657. </doc>
  26658. </method>
  26659. <field name="NO_SCRIPT" type="java.lang.String"
  26660. transient="false" volatile="false"
  26661. static="true" final="true" visibility="public"
  26662. deprecated="not deprecated">
  26663. <doc>
  26664. <![CDATA[Text used in the {@link #toString()} method if there is no string
  26665. {@value}]]>
  26666. </doc>
  26667. </field>
  26668. <doc>
  26669. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  26670. script configured via the
  26671. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  26672. <p/>
  26673. It contains a static class <code>RawScriptBasedMapping</code> that performs
  26674. the work: reading the configuration parameters, executing any defined
  26675. script, handling errors and such like. The outer
  26676. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  26677. queries.
  26678. <p/>
  26679. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  26680. true if and only if a script is defined.]]>
  26681. </doc>
  26682. </class>
  26683. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  26684. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  26685. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  26686. abstract="false"
  26687. static="false" final="false" visibility="public"
  26688. deprecated="not deprecated">
  26689. <implements name="org.apache.hadoop.conf.Configurable"/>
  26690. <constructor name="SocksSocketFactory"
  26691. static="false" final="false" visibility="public"
  26692. deprecated="not deprecated">
  26693. <doc>
  26694. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  26695. </doc>
  26696. </constructor>
  26697. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  26698. static="false" final="false" visibility="public"
  26699. deprecated="not deprecated">
  26700. <doc>
  26701. <![CDATA[Constructor with a supplied Proxy
  26702. @param proxy the proxy to use to create sockets]]>
  26703. </doc>
  26704. </constructor>
  26705. <method name="createSocket" return="java.net.Socket"
  26706. abstract="false" native="false" synchronized="false"
  26707. static="false" final="false" visibility="public"
  26708. deprecated="not deprecated">
  26709. <exception name="IOException" type="java.io.IOException"/>
  26710. </method>
  26711. <method name="createSocket" return="java.net.Socket"
  26712. abstract="false" native="false" synchronized="false"
  26713. static="false" final="false" visibility="public"
  26714. deprecated="not deprecated">
  26715. <param name="addr" type="java.net.InetAddress"/>
  26716. <param name="port" type="int"/>
  26717. <exception name="IOException" type="java.io.IOException"/>
  26718. </method>
  26719. <method name="createSocket" return="java.net.Socket"
  26720. abstract="false" native="false" synchronized="false"
  26721. static="false" final="false" visibility="public"
  26722. deprecated="not deprecated">
  26723. <param name="addr" type="java.net.InetAddress"/>
  26724. <param name="port" type="int"/>
  26725. <param name="localHostAddr" type="java.net.InetAddress"/>
  26726. <param name="localPort" type="int"/>
  26727. <exception name="IOException" type="java.io.IOException"/>
  26728. </method>
  26729. <method name="createSocket" return="java.net.Socket"
  26730. abstract="false" native="false" synchronized="false"
  26731. static="false" final="false" visibility="public"
  26732. deprecated="not deprecated">
  26733. <param name="host" type="java.lang.String"/>
  26734. <param name="port" type="int"/>
  26735. <exception name="IOException" type="java.io.IOException"/>
  26736. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26737. </method>
  26738. <method name="createSocket" return="java.net.Socket"
  26739. abstract="false" native="false" synchronized="false"
  26740. static="false" final="false" visibility="public"
  26741. deprecated="not deprecated">
  26742. <param name="host" type="java.lang.String"/>
  26743. <param name="port" type="int"/>
  26744. <param name="localHostAddr" type="java.net.InetAddress"/>
  26745. <param name="localPort" type="int"/>
  26746. <exception name="IOException" type="java.io.IOException"/>
  26747. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26748. </method>
  26749. <method name="hashCode" return="int"
  26750. abstract="false" native="false" synchronized="false"
  26751. static="false" final="false" visibility="public"
  26752. deprecated="not deprecated">
  26753. </method>
  26754. <method name="equals" return="boolean"
  26755. abstract="false" native="false" synchronized="false"
  26756. static="false" final="false" visibility="public"
  26757. deprecated="not deprecated">
  26758. <param name="obj" type="java.lang.Object"/>
  26759. </method>
  26760. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26761. abstract="false" native="false" synchronized="false"
  26762. static="false" final="false" visibility="public"
  26763. deprecated="not deprecated">
  26764. </method>
  26765. <method name="setConf"
  26766. abstract="false" native="false" synchronized="false"
  26767. static="false" final="false" visibility="public"
  26768. deprecated="not deprecated">
  26769. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26770. </method>
  26771. <doc>
  26772. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  26773. </doc>
  26774. </class>
  26775. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  26776. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  26777. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  26778. abstract="false"
  26779. static="false" final="false" visibility="public"
  26780. deprecated="not deprecated">
  26781. <constructor name="StandardSocketFactory"
  26782. static="false" final="false" visibility="public"
  26783. deprecated="not deprecated">
  26784. <doc>
  26785. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  26786. </doc>
  26787. </constructor>
  26788. <method name="createSocket" return="java.net.Socket"
  26789. abstract="false" native="false" synchronized="false"
  26790. static="false" final="false" visibility="public"
  26791. deprecated="not deprecated">
  26792. <exception name="IOException" type="java.io.IOException"/>
  26793. </method>
  26794. <method name="createSocket" return="java.net.Socket"
  26795. abstract="false" native="false" synchronized="false"
  26796. static="false" final="false" visibility="public"
  26797. deprecated="not deprecated">
  26798. <param name="addr" type="java.net.InetAddress"/>
  26799. <param name="port" type="int"/>
  26800. <exception name="IOException" type="java.io.IOException"/>
  26801. </method>
  26802. <method name="createSocket" return="java.net.Socket"
  26803. abstract="false" native="false" synchronized="false"
  26804. static="false" final="false" visibility="public"
  26805. deprecated="not deprecated">
  26806. <param name="addr" type="java.net.InetAddress"/>
  26807. <param name="port" type="int"/>
  26808. <param name="localHostAddr" type="java.net.InetAddress"/>
  26809. <param name="localPort" type="int"/>
  26810. <exception name="IOException" type="java.io.IOException"/>
  26811. </method>
  26812. <method name="createSocket" return="java.net.Socket"
  26813. abstract="false" native="false" synchronized="false"
  26814. static="false" final="false" visibility="public"
  26815. deprecated="not deprecated">
  26816. <param name="host" type="java.lang.String"/>
  26817. <param name="port" type="int"/>
  26818. <exception name="IOException" type="java.io.IOException"/>
  26819. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26820. </method>
  26821. <method name="createSocket" return="java.net.Socket"
  26822. abstract="false" native="false" synchronized="false"
  26823. static="false" final="false" visibility="public"
  26824. deprecated="not deprecated">
  26825. <param name="host" type="java.lang.String"/>
  26826. <param name="port" type="int"/>
  26827. <param name="localHostAddr" type="java.net.InetAddress"/>
  26828. <param name="localPort" type="int"/>
  26829. <exception name="IOException" type="java.io.IOException"/>
  26830. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26831. </method>
  26832. <method name="equals" return="boolean"
  26833. abstract="false" native="false" synchronized="false"
  26834. static="false" final="false" visibility="public"
  26835. deprecated="not deprecated">
  26836. <param name="obj" type="java.lang.Object"/>
  26837. </method>
  26838. <method name="hashCode" return="int"
  26839. abstract="false" native="false" synchronized="false"
  26840. static="false" final="false" visibility="public"
  26841. deprecated="not deprecated">
  26842. </method>
  26843. <doc>
  26844. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  26845. </doc>
  26846. </class>
  26847. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  26848. <!-- start class org.apache.hadoop.net.TableMapping -->
  26849. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  26850. abstract="false"
  26851. static="false" final="false" visibility="public"
  26852. deprecated="not deprecated">
  26853. <constructor name="TableMapping"
  26854. static="false" final="false" visibility="public"
  26855. deprecated="not deprecated">
  26856. </constructor>
  26857. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26858. abstract="false" native="false" synchronized="false"
  26859. static="false" final="false" visibility="public"
  26860. deprecated="not deprecated">
  26861. </method>
  26862. <method name="setConf"
  26863. abstract="false" native="false" synchronized="false"
  26864. static="false" final="false" visibility="public"
  26865. deprecated="not deprecated">
  26866. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26867. </method>
  26868. <method name="reloadCachedMappings"
  26869. abstract="false" native="false" synchronized="false"
  26870. static="false" final="false" visibility="public"
  26871. deprecated="not deprecated">
  26872. </method>
  26873. <doc>
  26874. <![CDATA[<p>
  26875. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  26876. file. The columns are separated by whitespace. The first column is a DNS or
  26877. IP address and the second column specifies the rack where the address maps.
  26878. </p>
  26879. <p>
  26880. This class uses the configuration parameter {@code
  26881. net.topology.table.file.name} to locate the mapping file.
  26882. </p>
  26883. <p>
  26884. Calls to {@link #resolve(List)} will look up the address as defined in the
  26885. mapping file. If no entry corresponding to the address is found, the value
  26886. {@code /default-rack} is returned.
  26887. </p>]]>
  26888. </doc>
  26889. </class>
  26890. <!-- end class org.apache.hadoop.net.TableMapping -->
  26891. <doc>
  26892. <![CDATA[Network-related classes.]]>
  26893. </doc>
  26894. </package>
  26895. <package name="org.apache.hadoop.net.unix">
  26896. </package>
  26897. <package name="org.apache.hadoop.record">
  26898. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  26899. <class name="BinaryRecordInput" extends="java.lang.Object"
  26900. abstract="false"
  26901. static="false" final="false" visibility="public"
  26902. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26903. <implements name="org.apache.hadoop.record.RecordInput"/>
  26904. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  26905. static="false" final="false" visibility="public"
  26906. deprecated="not deprecated">
  26907. <doc>
  26908. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  26909. </doc>
  26910. </constructor>
  26911. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  26912. static="false" final="false" visibility="public"
  26913. deprecated="not deprecated">
  26914. <doc>
  26915. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  26916. </doc>
  26917. </constructor>
  26918. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  26919. abstract="false" native="false" synchronized="false"
  26920. static="true" final="false" visibility="public"
  26921. deprecated="not deprecated">
  26922. <param name="inp" type="java.io.DataInput"/>
  26923. <doc>
  26924. <![CDATA[Get a thread-local record input for the supplied DataInput.
  26925. @param inp data input stream
  26926. @return binary record input corresponding to the supplied DataInput.]]>
  26927. </doc>
  26928. </method>
  26929. <method name="readByte" return="byte"
  26930. abstract="false" native="false" synchronized="false"
  26931. static="false" final="false" visibility="public"
  26932. deprecated="not deprecated">
  26933. <param name="tag" type="java.lang.String"/>
  26934. <exception name="IOException" type="java.io.IOException"/>
  26935. </method>
  26936. <method name="readBool" return="boolean"
  26937. abstract="false" native="false" synchronized="false"
  26938. static="false" final="false" visibility="public"
  26939. deprecated="not deprecated">
  26940. <param name="tag" type="java.lang.String"/>
  26941. <exception name="IOException" type="java.io.IOException"/>
  26942. </method>
  26943. <method name="readInt" return="int"
  26944. abstract="false" native="false" synchronized="false"
  26945. static="false" final="false" visibility="public"
  26946. deprecated="not deprecated">
  26947. <param name="tag" type="java.lang.String"/>
  26948. <exception name="IOException" type="java.io.IOException"/>
  26949. </method>
  26950. <method name="readLong" return="long"
  26951. abstract="false" native="false" synchronized="false"
  26952. static="false" final="false" visibility="public"
  26953. deprecated="not deprecated">
  26954. <param name="tag" type="java.lang.String"/>
  26955. <exception name="IOException" type="java.io.IOException"/>
  26956. </method>
  26957. <method name="readFloat" return="float"
  26958. abstract="false" native="false" synchronized="false"
  26959. static="false" final="false" visibility="public"
  26960. deprecated="not deprecated">
  26961. <param name="tag" type="java.lang.String"/>
  26962. <exception name="IOException" type="java.io.IOException"/>
  26963. </method>
  26964. <method name="readDouble" return="double"
  26965. abstract="false" native="false" synchronized="false"
  26966. static="false" final="false" visibility="public"
  26967. deprecated="not deprecated">
  26968. <param name="tag" type="java.lang.String"/>
  26969. <exception name="IOException" type="java.io.IOException"/>
  26970. </method>
  26971. <method name="readString" return="java.lang.String"
  26972. abstract="false" native="false" synchronized="false"
  26973. static="false" final="false" visibility="public"
  26974. deprecated="not deprecated">
  26975. <param name="tag" type="java.lang.String"/>
  26976. <exception name="IOException" type="java.io.IOException"/>
  26977. </method>
  26978. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  26979. abstract="false" native="false" synchronized="false"
  26980. static="false" final="false" visibility="public"
  26981. deprecated="not deprecated">
  26982. <param name="tag" type="java.lang.String"/>
  26983. <exception name="IOException" type="java.io.IOException"/>
  26984. </method>
  26985. <method name="startRecord"
  26986. abstract="false" native="false" synchronized="false"
  26987. static="false" final="false" visibility="public"
  26988. deprecated="not deprecated">
  26989. <param name="tag" type="java.lang.String"/>
  26990. <exception name="IOException" type="java.io.IOException"/>
  26991. </method>
  26992. <method name="endRecord"
  26993. abstract="false" native="false" synchronized="false"
  26994. static="false" final="false" visibility="public"
  26995. deprecated="not deprecated">
  26996. <param name="tag" type="java.lang.String"/>
  26997. <exception name="IOException" type="java.io.IOException"/>
  26998. </method>
  26999. <method name="startVector" return="org.apache.hadoop.record.Index"
  27000. abstract="false" native="false" synchronized="false"
  27001. static="false" final="false" visibility="public"
  27002. deprecated="not deprecated">
  27003. <param name="tag" type="java.lang.String"/>
  27004. <exception name="IOException" type="java.io.IOException"/>
  27005. </method>
  27006. <method name="endVector"
  27007. abstract="false" native="false" synchronized="false"
  27008. static="false" final="false" visibility="public"
  27009. deprecated="not deprecated">
  27010. <param name="tag" type="java.lang.String"/>
  27011. <exception name="IOException" type="java.io.IOException"/>
  27012. </method>
  27013. <method name="startMap" return="org.apache.hadoop.record.Index"
  27014. abstract="false" native="false" synchronized="false"
  27015. static="false" final="false" visibility="public"
  27016. deprecated="not deprecated">
  27017. <param name="tag" type="java.lang.String"/>
  27018. <exception name="IOException" type="java.io.IOException"/>
  27019. </method>
  27020. <method name="endMap"
  27021. abstract="false" native="false" synchronized="false"
  27022. static="false" final="false" visibility="public"
  27023. deprecated="not deprecated">
  27024. <param name="tag" type="java.lang.String"/>
  27025. <exception name="IOException" type="java.io.IOException"/>
  27026. </method>
  27027. <doc>
  27028. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27029. </doc>
  27030. </class>
  27031. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  27032. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  27033. <class name="BinaryRecordOutput" extends="java.lang.Object"
  27034. abstract="false"
  27035. static="false" final="false" visibility="public"
  27036. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27037. <implements name="org.apache.hadoop.record.RecordOutput"/>
  27038. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  27039. static="false" final="false" visibility="public"
  27040. deprecated="not deprecated">
  27041. <doc>
  27042. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  27043. </doc>
  27044. </constructor>
  27045. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  27046. static="false" final="false" visibility="public"
  27047. deprecated="not deprecated">
  27048. <doc>
  27049. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  27050. </doc>
  27051. </constructor>
  27052. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  27053. abstract="false" native="false" synchronized="false"
  27054. static="true" final="false" visibility="public"
  27055. deprecated="not deprecated">
  27056. <param name="out" type="java.io.DataOutput"/>
  27057. <doc>
  27058. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  27059. @param out data output stream
  27060. @return binary record output corresponding to the supplied DataOutput.]]>
  27061. </doc>
  27062. </method>
  27063. <method name="writeByte"
  27064. abstract="false" native="false" synchronized="false"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="not deprecated">
  27067. <param name="b" type="byte"/>
  27068. <param name="tag" type="java.lang.String"/>
  27069. <exception name="IOException" type="java.io.IOException"/>
  27070. </method>
  27071. <method name="writeBool"
  27072. abstract="false" native="false" synchronized="false"
  27073. static="false" final="false" visibility="public"
  27074. deprecated="not deprecated">
  27075. <param name="b" type="boolean"/>
  27076. <param name="tag" type="java.lang.String"/>
  27077. <exception name="IOException" type="java.io.IOException"/>
  27078. </method>
  27079. <method name="writeInt"
  27080. abstract="false" native="false" synchronized="false"
  27081. static="false" final="false" visibility="public"
  27082. deprecated="not deprecated">
  27083. <param name="i" type="int"/>
  27084. <param name="tag" type="java.lang.String"/>
  27085. <exception name="IOException" type="java.io.IOException"/>
  27086. </method>
  27087. <method name="writeLong"
  27088. abstract="false" native="false" synchronized="false"
  27089. static="false" final="false" visibility="public"
  27090. deprecated="not deprecated">
  27091. <param name="l" type="long"/>
  27092. <param name="tag" type="java.lang.String"/>
  27093. <exception name="IOException" type="java.io.IOException"/>
  27094. </method>
  27095. <method name="writeFloat"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. <param name="f" type="float"/>
  27100. <param name="tag" type="java.lang.String"/>
  27101. <exception name="IOException" type="java.io.IOException"/>
  27102. </method>
  27103. <method name="writeDouble"
  27104. abstract="false" native="false" synchronized="false"
  27105. static="false" final="false" visibility="public"
  27106. deprecated="not deprecated">
  27107. <param name="d" type="double"/>
  27108. <param name="tag" type="java.lang.String"/>
  27109. <exception name="IOException" type="java.io.IOException"/>
  27110. </method>
  27111. <method name="writeString"
  27112. abstract="false" native="false" synchronized="false"
  27113. static="false" final="false" visibility="public"
  27114. deprecated="not deprecated">
  27115. <param name="s" type="java.lang.String"/>
  27116. <param name="tag" type="java.lang.String"/>
  27117. <exception name="IOException" type="java.io.IOException"/>
  27118. </method>
  27119. <method name="writeBuffer"
  27120. abstract="false" native="false" synchronized="false"
  27121. static="false" final="false" visibility="public"
  27122. deprecated="not deprecated">
  27123. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  27124. <param name="tag" type="java.lang.String"/>
  27125. <exception name="IOException" type="java.io.IOException"/>
  27126. </method>
  27127. <method name="startRecord"
  27128. abstract="false" native="false" synchronized="false"
  27129. static="false" final="false" visibility="public"
  27130. deprecated="not deprecated">
  27131. <param name="r" type="org.apache.hadoop.record.Record"/>
  27132. <param name="tag" type="java.lang.String"/>
  27133. <exception name="IOException" type="java.io.IOException"/>
  27134. </method>
  27135. <method name="endRecord"
  27136. abstract="false" native="false" synchronized="false"
  27137. static="false" final="false" visibility="public"
  27138. deprecated="not deprecated">
  27139. <param name="r" type="org.apache.hadoop.record.Record"/>
  27140. <param name="tag" type="java.lang.String"/>
  27141. <exception name="IOException" type="java.io.IOException"/>
  27142. </method>
  27143. <method name="startVector"
  27144. abstract="false" native="false" synchronized="false"
  27145. static="false" final="false" visibility="public"
  27146. deprecated="not deprecated">
  27147. <param name="v" type="java.util.ArrayList"/>
  27148. <param name="tag" type="java.lang.String"/>
  27149. <exception name="IOException" type="java.io.IOException"/>
  27150. </method>
  27151. <method name="endVector"
  27152. abstract="false" native="false" synchronized="false"
  27153. static="false" final="false" visibility="public"
  27154. deprecated="not deprecated">
  27155. <param name="v" type="java.util.ArrayList"/>
  27156. <param name="tag" type="java.lang.String"/>
  27157. <exception name="IOException" type="java.io.IOException"/>
  27158. </method>
  27159. <method name="startMap"
  27160. abstract="false" native="false" synchronized="false"
  27161. static="false" final="false" visibility="public"
  27162. deprecated="not deprecated">
  27163. <param name="v" type="java.util.TreeMap"/>
  27164. <param name="tag" type="java.lang.String"/>
  27165. <exception name="IOException" type="java.io.IOException"/>
  27166. </method>
  27167. <method name="endMap"
  27168. abstract="false" native="false" synchronized="false"
  27169. static="false" final="false" visibility="public"
  27170. deprecated="not deprecated">
  27171. <param name="v" type="java.util.TreeMap"/>
  27172. <param name="tag" type="java.lang.String"/>
  27173. <exception name="IOException" type="java.io.IOException"/>
  27174. </method>
  27175. <doc>
  27176. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27177. </doc>
  27178. </class>
  27179. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  27180. <!-- start class org.apache.hadoop.record.Buffer -->
  27181. <class name="Buffer" extends="java.lang.Object"
  27182. abstract="false"
  27183. static="false" final="false" visibility="public"
  27184. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  27185. <implements name="java.lang.Comparable"/>
  27186. <implements name="java.lang.Cloneable"/>
  27187. <constructor name="Buffer"
  27188. static="false" final="false" visibility="public"
  27189. deprecated="not deprecated">
  27190. <doc>
  27191. <![CDATA[Create a zero-count sequence.]]>
  27192. </doc>
  27193. </constructor>
  27194. <constructor name="Buffer" type="byte[]"
  27195. static="false" final="false" visibility="public"
  27196. deprecated="not deprecated">
  27197. <doc>
  27198. <![CDATA[Create a Buffer using the byte array as the initial value.
  27199. @param bytes This array becomes the backing storage for the object.]]>
  27200. </doc>
  27201. </constructor>
  27202. <constructor name="Buffer" type="byte[], int, int"
  27203. static="false" final="false" visibility="public"
  27204. deprecated="not deprecated">
  27205. <doc>
  27206. <![CDATA[Create a Buffer using the byte range as the initial value.
  27207. @param bytes Copy of this array becomes the backing storage for the object.
  27208. @param offset offset into byte array
  27209. @param length length of data]]>
  27210. </doc>
  27211. </constructor>
  27212. <method name="set"
  27213. abstract="false" native="false" synchronized="false"
  27214. static="false" final="false" visibility="public"
  27215. deprecated="not deprecated">
  27216. <param name="bytes" type="byte[]"/>
  27217. <doc>
  27218. <![CDATA[Use the specified bytes array as underlying sequence.
  27219. @param bytes byte sequence]]>
  27220. </doc>
  27221. </method>
  27222. <method name="copy"
  27223. abstract="false" native="false" synchronized="false"
  27224. static="false" final="true" visibility="public"
  27225. deprecated="not deprecated">
  27226. <param name="bytes" type="byte[]"/>
  27227. <param name="offset" type="int"/>
  27228. <param name="length" type="int"/>
  27229. <doc>
  27230. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  27231. @param bytes byte array to be assigned
  27232. @param offset offset into byte array
  27233. @param length length of data]]>
  27234. </doc>
  27235. </method>
  27236. <method name="get" return="byte[]"
  27237. abstract="false" native="false" synchronized="false"
  27238. static="false" final="false" visibility="public"
  27239. deprecated="not deprecated">
  27240. <doc>
  27241. <![CDATA[Get the data from the Buffer.
  27242. @return The data is only valid between 0 and getCount() - 1.]]>
  27243. </doc>
  27244. </method>
  27245. <method name="getCount" return="int"
  27246. abstract="false" native="false" synchronized="false"
  27247. static="false" final="false" visibility="public"
  27248. deprecated="not deprecated">
  27249. <doc>
  27250. <![CDATA[Get the current count of the buffer.]]>
  27251. </doc>
  27252. </method>
  27253. <method name="getCapacity" return="int"
  27254. abstract="false" native="false" synchronized="false"
  27255. static="false" final="false" visibility="public"
  27256. deprecated="not deprecated">
  27257. <doc>
  27258. <![CDATA[Get the capacity, which is the maximum count that could handled without
  27259. resizing the backing storage.
  27260. @return The number of bytes]]>
  27261. </doc>
  27262. </method>
  27263. <method name="setCapacity"
  27264. abstract="false" native="false" synchronized="false"
  27265. static="false" final="false" visibility="public"
  27266. deprecated="not deprecated">
  27267. <param name="newCapacity" type="int"/>
  27268. <doc>
  27269. <![CDATA[Change the capacity of the backing storage.
  27270. The data is preserved if newCapacity {@literal >=} getCount().
  27271. @param newCapacity The new capacity in bytes.]]>
  27272. </doc>
  27273. </method>
  27274. <method name="reset"
  27275. abstract="false" native="false" synchronized="false"
  27276. static="false" final="false" visibility="public"
  27277. deprecated="not deprecated">
  27278. <doc>
  27279. <![CDATA[Reset the buffer to 0 size]]>
  27280. </doc>
  27281. </method>
  27282. <method name="truncate"
  27283. abstract="false" native="false" synchronized="false"
  27284. static="false" final="false" visibility="public"
  27285. deprecated="not deprecated">
  27286. <doc>
  27287. <![CDATA[Change the capacity of the backing store to be the same as the current
  27288. count of buffer.]]>
  27289. </doc>
  27290. </method>
  27291. <method name="append"
  27292. abstract="false" native="false" synchronized="false"
  27293. static="false" final="false" visibility="public"
  27294. deprecated="not deprecated">
  27295. <param name="bytes" type="byte[]"/>
  27296. <param name="offset" type="int"/>
  27297. <param name="length" type="int"/>
  27298. <doc>
  27299. <![CDATA[Append specified bytes to the buffer.
  27300. @param bytes byte array to be appended
  27301. @param offset offset into byte array
  27302. @param length length of data]]>
  27303. </doc>
  27304. </method>
  27305. <method name="append"
  27306. abstract="false" native="false" synchronized="false"
  27307. static="false" final="false" visibility="public"
  27308. deprecated="not deprecated">
  27309. <param name="bytes" type="byte[]"/>
  27310. <doc>
  27311. <![CDATA[Append specified bytes to the buffer
  27312. @param bytes byte array to be appended]]>
  27313. </doc>
  27314. </method>
  27315. <method name="hashCode" return="int"
  27316. abstract="false" native="false" synchronized="false"
  27317. static="false" final="false" visibility="public"
  27318. deprecated="not deprecated">
  27319. </method>
  27320. <method name="compareTo" return="int"
  27321. abstract="false" native="false" synchronized="false"
  27322. static="false" final="false" visibility="public"
  27323. deprecated="not deprecated">
  27324. <param name="other" type="java.lang.Object"/>
  27325. <doc>
  27326. <![CDATA[Define the sort order of the Buffer.
  27327. @param other The other buffer
  27328. @return Positive if this is bigger than other, 0 if they are equal, and
  27329. negative if this is smaller than other.]]>
  27330. </doc>
  27331. </method>
  27332. <method name="equals" return="boolean"
  27333. abstract="false" native="false" synchronized="false"
  27334. static="false" final="false" visibility="public"
  27335. deprecated="not deprecated">
  27336. <param name="other" type="java.lang.Object"/>
  27337. </method>
  27338. <method name="toString" return="java.lang.String"
  27339. abstract="false" native="false" synchronized="false"
  27340. static="false" final="false" visibility="public"
  27341. deprecated="not deprecated">
  27342. </method>
  27343. <method name="toString" return="java.lang.String"
  27344. abstract="false" native="false" synchronized="false"
  27345. static="false" final="false" visibility="public"
  27346. deprecated="not deprecated">
  27347. <param name="charsetName" type="java.lang.String"/>
  27348. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  27349. <doc>
  27350. <![CDATA[Convert the byte buffer to a string an specific character encoding
  27351. @param charsetName Valid Java Character Set Name]]>
  27352. </doc>
  27353. </method>
  27354. <method name="clone" return="java.lang.Object"
  27355. abstract="false" native="false" synchronized="false"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  27359. </method>
  27360. <doc>
  27361. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  27362. It is resizable and distinguishes between the count of the sequence and
  27363. the current capacity.
  27364. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  27365. </doc>
  27366. </class>
  27367. <!-- end class org.apache.hadoop.record.Buffer -->
  27368. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  27369. <class name="CsvRecordInput" extends="java.lang.Object"
  27370. abstract="false"
  27371. static="false" final="false" visibility="public"
  27372. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27373. <implements name="org.apache.hadoop.record.RecordInput"/>
  27374. <constructor name="CsvRecordInput" type="java.io.InputStream"
  27375. static="false" final="false" visibility="public"
  27376. deprecated="not deprecated">
  27377. <doc>
  27378. <![CDATA[Creates a new instance of CsvRecordInput]]>
  27379. </doc>
  27380. </constructor>
  27381. <method name="readByte" return="byte"
  27382. abstract="false" native="false" synchronized="false"
  27383. static="false" final="false" visibility="public"
  27384. deprecated="not deprecated">
  27385. <param name="tag" type="java.lang.String"/>
  27386. <exception name="IOException" type="java.io.IOException"/>
  27387. </method>
  27388. <method name="readBool" return="boolean"
  27389. abstract="false" native="false" synchronized="false"
  27390. static="false" final="false" visibility="public"
  27391. deprecated="not deprecated">
  27392. <param name="tag" type="java.lang.String"/>
  27393. <exception name="IOException" type="java.io.IOException"/>
  27394. </method>
  27395. <method name="readInt" return="int"
  27396. abstract="false" native="false" synchronized="false"
  27397. static="false" final="false" visibility="public"
  27398. deprecated="not deprecated">
  27399. <param name="tag" type="java.lang.String"/>
  27400. <exception name="IOException" type="java.io.IOException"/>
  27401. </method>
  27402. <method name="readLong" return="long"
  27403. abstract="false" native="false" synchronized="false"
  27404. static="false" final="false" visibility="public"
  27405. deprecated="not deprecated">
  27406. <param name="tag" type="java.lang.String"/>
  27407. <exception name="IOException" type="java.io.IOException"/>
  27408. </method>
  27409. <method name="readFloat" return="float"
  27410. abstract="false" native="false" synchronized="false"
  27411. static="false" final="false" visibility="public"
  27412. deprecated="not deprecated">
  27413. <param name="tag" type="java.lang.String"/>
  27414. <exception name="IOException" type="java.io.IOException"/>
  27415. </method>
  27416. <method name="readDouble" return="double"
  27417. abstract="false" native="false" synchronized="false"
  27418. static="false" final="false" visibility="public"
  27419. deprecated="not deprecated">
  27420. <param name="tag" type="java.lang.String"/>
  27421. <exception name="IOException" type="java.io.IOException"/>
  27422. </method>
  27423. <method name="readString" return="java.lang.String"
  27424. abstract="false" native="false" synchronized="false"
  27425. static="false" final="false" visibility="public"
  27426. deprecated="not deprecated">
  27427. <param name="tag" type="java.lang.String"/>
  27428. <exception name="IOException" type="java.io.IOException"/>
  27429. </method>
  27430. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  27431. abstract="false" native="false" synchronized="false"
  27432. static="false" final="false" visibility="public"
  27433. deprecated="not deprecated">
  27434. <param name="tag" type="java.lang.String"/>
  27435. <exception name="IOException" type="java.io.IOException"/>
  27436. </method>
  27437. <method name="startRecord"
  27438. abstract="false" native="false" synchronized="false"
  27439. static="false" final="false" visibility="public"
  27440. deprecated="not deprecated">
  27441. <param name="tag" type="java.lang.String"/>
  27442. <exception name="IOException" type="java.io.IOException"/>
  27443. </method>
  27444. <method name="endRecord"
  27445. abstract="false" native="false" synchronized="false"
  27446. static="false" final="false" visibility="public"
  27447. deprecated="not deprecated">
  27448. <param name="tag" type="java.lang.String"/>
  27449. <exception name="IOException" type="java.io.IOException"/>
  27450. </method>
  27451. <method name="startVector" return="org.apache.hadoop.record.Index"
  27452. abstract="false" native="false" synchronized="false"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. <param name="tag" type="java.lang.String"/>
  27456. <exception name="IOException" type="java.io.IOException"/>
  27457. </method>
  27458. <method name="endVector"
  27459. abstract="false" native="false" synchronized="false"
  27460. static="false" final="false" visibility="public"
  27461. deprecated="not deprecated">
  27462. <param name="tag" type="java.lang.String"/>
  27463. <exception name="IOException" type="java.io.IOException"/>
  27464. </method>
  27465. <method name="startMap" return="org.apache.hadoop.record.Index"
  27466. abstract="false" native="false" synchronized="false"
  27467. static="false" final="false" visibility="public"
  27468. deprecated="not deprecated">
  27469. <param name="tag" type="java.lang.String"/>
  27470. <exception name="IOException" type="java.io.IOException"/>
  27471. </method>
  27472. <method name="endMap"
  27473. abstract="false" native="false" synchronized="false"
  27474. static="false" final="false" visibility="public"
  27475. deprecated="not deprecated">
  27476. <param name="tag" type="java.lang.String"/>
  27477. <exception name="IOException" type="java.io.IOException"/>
  27478. </method>
  27479. <doc>
  27480. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27481. </doc>
  27482. </class>
  27483. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  27484. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  27485. <class name="CsvRecordOutput" extends="java.lang.Object"
  27486. abstract="false"
  27487. static="false" final="false" visibility="public"
  27488. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27489. <implements name="org.apache.hadoop.record.RecordOutput"/>
  27490. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  27491. static="false" final="false" visibility="public"
  27492. deprecated="not deprecated">
  27493. <doc>
  27494. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  27495. </doc>
  27496. </constructor>
  27497. <method name="writeByte"
  27498. abstract="false" native="false" synchronized="false"
  27499. static="false" final="false" visibility="public"
  27500. deprecated="not deprecated">
  27501. <param name="b" type="byte"/>
  27502. <param name="tag" type="java.lang.String"/>
  27503. <exception name="IOException" type="java.io.IOException"/>
  27504. </method>
  27505. <method name="writeBool"
  27506. abstract="false" native="false" synchronized="false"
  27507. static="false" final="false" visibility="public"
  27508. deprecated="not deprecated">
  27509. <param name="b" type="boolean"/>
  27510. <param name="tag" type="java.lang.String"/>
  27511. <exception name="IOException" type="java.io.IOException"/>
  27512. </method>
  27513. <method name="writeInt"
  27514. abstract="false" native="false" synchronized="false"
  27515. static="false" final="false" visibility="public"
  27516. deprecated="not deprecated">
  27517. <param name="i" type="int"/>
  27518. <param name="tag" type="java.lang.String"/>
  27519. <exception name="IOException" type="java.io.IOException"/>
  27520. </method>
  27521. <method name="writeLong"
  27522. abstract="false" native="false" synchronized="false"
  27523. static="false" final="false" visibility="public"
  27524. deprecated="not deprecated">
  27525. <param name="l" type="long"/>
  27526. <param name="tag" type="java.lang.String"/>
  27527. <exception name="IOException" type="java.io.IOException"/>
  27528. </method>
  27529. <method name="writeFloat"
  27530. abstract="false" native="false" synchronized="false"
  27531. static="false" final="false" visibility="public"
  27532. deprecated="not deprecated">
  27533. <param name="f" type="float"/>
  27534. <param name="tag" type="java.lang.String"/>
  27535. <exception name="IOException" type="java.io.IOException"/>
  27536. </method>
  27537. <method name="writeDouble"
  27538. abstract="false" native="false" synchronized="false"
  27539. static="false" final="false" visibility="public"
  27540. deprecated="not deprecated">
  27541. <param name="d" type="double"/>
  27542. <param name="tag" type="java.lang.String"/>
  27543. <exception name="IOException" type="java.io.IOException"/>
  27544. </method>
  27545. <method name="writeString"
  27546. abstract="false" native="false" synchronized="false"
  27547. static="false" final="false" visibility="public"
  27548. deprecated="not deprecated">
  27549. <param name="s" type="java.lang.String"/>
  27550. <param name="tag" type="java.lang.String"/>
  27551. <exception name="IOException" type="java.io.IOException"/>
  27552. </method>
  27553. <method name="writeBuffer"
  27554. abstract="false" native="false" synchronized="false"
  27555. static="false" final="false" visibility="public"
  27556. deprecated="not deprecated">
  27557. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  27558. <param name="tag" type="java.lang.String"/>
  27559. <exception name="IOException" type="java.io.IOException"/>
  27560. </method>
  27561. <method name="startRecord"
  27562. abstract="false" native="false" synchronized="false"
  27563. static="false" final="false" visibility="public"
  27564. deprecated="not deprecated">
  27565. <param name="r" type="org.apache.hadoop.record.Record"/>
  27566. <param name="tag" type="java.lang.String"/>
  27567. <exception name="IOException" type="java.io.IOException"/>
  27568. </method>
  27569. <method name="endRecord"
  27570. abstract="false" native="false" synchronized="false"
  27571. static="false" final="false" visibility="public"
  27572. deprecated="not deprecated">
  27573. <param name="r" type="org.apache.hadoop.record.Record"/>
  27574. <param name="tag" type="java.lang.String"/>
  27575. <exception name="IOException" type="java.io.IOException"/>
  27576. </method>
  27577. <method name="startVector"
  27578. abstract="false" native="false" synchronized="false"
  27579. static="false" final="false" visibility="public"
  27580. deprecated="not deprecated">
  27581. <param name="v" type="java.util.ArrayList"/>
  27582. <param name="tag" type="java.lang.String"/>
  27583. <exception name="IOException" type="java.io.IOException"/>
  27584. </method>
  27585. <method name="endVector"
  27586. abstract="false" native="false" synchronized="false"
  27587. static="false" final="false" visibility="public"
  27588. deprecated="not deprecated">
  27589. <param name="v" type="java.util.ArrayList"/>
  27590. <param name="tag" type="java.lang.String"/>
  27591. <exception name="IOException" type="java.io.IOException"/>
  27592. </method>
  27593. <method name="startMap"
  27594. abstract="false" native="false" synchronized="false"
  27595. static="false" final="false" visibility="public"
  27596. deprecated="not deprecated">
  27597. <param name="v" type="java.util.TreeMap"/>
  27598. <param name="tag" type="java.lang.String"/>
  27599. <exception name="IOException" type="java.io.IOException"/>
  27600. </method>
  27601. <method name="endMap"
  27602. abstract="false" native="false" synchronized="false"
  27603. static="false" final="false" visibility="public"
  27604. deprecated="not deprecated">
  27605. <param name="v" type="java.util.TreeMap"/>
  27606. <param name="tag" type="java.lang.String"/>
  27607. <exception name="IOException" type="java.io.IOException"/>
  27608. </method>
  27609. <doc>
  27610. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27611. </doc>
  27612. </class>
  27613. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  27614. <!-- start interface org.apache.hadoop.record.Index -->
  27615. <interface name="Index" abstract="true"
  27616. static="false" final="false" visibility="public"
  27617. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27618. <method name="done" return="boolean"
  27619. abstract="false" native="false" synchronized="false"
  27620. static="false" final="false" visibility="public"
  27621. deprecated="not deprecated">
  27622. </method>
  27623. <method name="incr"
  27624. abstract="false" native="false" synchronized="false"
  27625. static="false" final="false" visibility="public"
  27626. deprecated="not deprecated">
  27627. </method>
  27628. <doc>
  27629. <![CDATA[Interface that acts as an iterator for deserializing maps.
  27630. The deserializer returns an instance that the record uses to
  27631. read vectors and maps. An example of usage is as follows:
  27632. <code>
  27633. Index idx = startVector(...);
  27634. while (!idx.done()) {
  27635. .... // read element of a vector
  27636. idx.incr();
  27637. }
  27638. </code>
  27639. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27640. </doc>
  27641. </interface>
  27642. <!-- end interface org.apache.hadoop.record.Index -->
  27643. <!-- start class org.apache.hadoop.record.Record -->
  27644. <class name="Record" extends="java.lang.Object"
  27645. abstract="true"
  27646. static="false" final="false" visibility="public"
  27647. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27648. <implements name="org.apache.hadoop.io.WritableComparable"/>
  27649. <implements name="java.lang.Cloneable"/>
  27650. <constructor name="Record"
  27651. static="false" final="false" visibility="public"
  27652. deprecated="not deprecated">
  27653. </constructor>
  27654. <method name="serialize"
  27655. abstract="true" native="false" synchronized="false"
  27656. static="false" final="false" visibility="public"
  27657. deprecated="not deprecated">
  27658. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  27659. <param name="tag" type="java.lang.String"/>
  27660. <exception name="IOException" type="java.io.IOException"/>
  27661. <doc>
  27662. <![CDATA[Serialize a record with tag (ususally field name)
  27663. @param rout Record output destination
  27664. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  27665. </doc>
  27666. </method>
  27667. <method name="deserialize"
  27668. abstract="true" native="false" synchronized="false"
  27669. static="false" final="false" visibility="public"
  27670. deprecated="not deprecated">
  27671. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  27672. <param name="tag" type="java.lang.String"/>
  27673. <exception name="IOException" type="java.io.IOException"/>
  27674. <doc>
  27675. <![CDATA[Deserialize a record with a tag (usually field name)
  27676. @param rin Record input source
  27677. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  27678. </doc>
  27679. </method>
  27680. <method name="compareTo" return="int"
  27681. abstract="true" native="false" synchronized="false"
  27682. static="false" final="false" visibility="public"
  27683. deprecated="not deprecated">
  27684. <param name="peer" type="java.lang.Object"/>
  27685. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  27686. </method>
  27687. <method name="serialize"
  27688. abstract="false" native="false" synchronized="false"
  27689. static="false" final="false" visibility="public"
  27690. deprecated="not deprecated">
  27691. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  27692. <exception name="IOException" type="java.io.IOException"/>
  27693. <doc>
  27694. <![CDATA[Serialize a record without a tag
  27695. @param rout Record output destination]]>
  27696. </doc>
  27697. </method>
  27698. <method name="deserialize"
  27699. abstract="false" native="false" synchronized="false"
  27700. static="false" final="false" visibility="public"
  27701. deprecated="not deprecated">
  27702. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  27703. <exception name="IOException" type="java.io.IOException"/>
  27704. <doc>
  27705. <![CDATA[Deserialize a record without a tag
  27706. @param rin Record input source]]>
  27707. </doc>
  27708. </method>
  27709. <method name="write"
  27710. abstract="false" native="false" synchronized="false"
  27711. static="false" final="false" visibility="public"
  27712. deprecated="not deprecated">
  27713. <param name="out" type="java.io.DataOutput"/>
  27714. <exception name="IOException" type="java.io.IOException"/>
  27715. </method>
  27716. <method name="readFields"
  27717. abstract="false" native="false" synchronized="false"
  27718. static="false" final="false" visibility="public"
  27719. deprecated="not deprecated">
  27720. <param name="din" type="java.io.DataInput"/>
  27721. <exception name="IOException" type="java.io.IOException"/>
  27722. </method>
  27723. <method name="toString" return="java.lang.String"
  27724. abstract="false" native="false" synchronized="false"
  27725. static="false" final="false" visibility="public"
  27726. deprecated="not deprecated">
  27727. </method>
  27728. <doc>
  27729. <![CDATA[Abstract class that is extended by generated classes.
  27730. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27731. </doc>
  27732. </class>
  27733. <!-- end class org.apache.hadoop.record.Record -->
  27734. <!-- start class org.apache.hadoop.record.RecordComparator -->
  27735. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  27736. abstract="true"
  27737. static="false" final="false" visibility="public"
  27738. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27739. <constructor name="RecordComparator" type="java.lang.Class"
  27740. static="false" final="false" visibility="protected"
  27741. deprecated="not deprecated">
  27742. <doc>
  27743. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  27744. </doc>
  27745. </constructor>
  27746. <method name="compare" return="int"
  27747. abstract="true" native="false" synchronized="false"
  27748. static="false" final="false" visibility="public"
  27749. deprecated="not deprecated">
  27750. <param name="b1" type="byte[]"/>
  27751. <param name="s1" type="int"/>
  27752. <param name="l1" type="int"/>
  27753. <param name="b2" type="byte[]"/>
  27754. <param name="s2" type="int"/>
  27755. <param name="l2" type="int"/>
  27756. </method>
  27757. <method name="define"
  27758. abstract="false" native="false" synchronized="true"
  27759. static="true" final="false" visibility="public"
  27760. deprecated="not deprecated">
  27761. <param name="c" type="java.lang.Class"/>
  27762. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  27763. <doc>
  27764. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  27765. @param c record classs for which a raw comparator is provided
  27766. @param comparator Raw comparator instance for class c]]>
  27767. </doc>
  27768. </method>
  27769. <doc>
  27770. <![CDATA[A raw record comparator base class
  27771. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27772. </doc>
  27773. </class>
  27774. <!-- end class org.apache.hadoop.record.RecordComparator -->
  27775. <!-- start interface org.apache.hadoop.record.RecordInput -->
  27776. <interface name="RecordInput" abstract="true"
  27777. static="false" final="false" visibility="public"
  27778. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27779. <method name="readByte" return="byte"
  27780. abstract="false" native="false" synchronized="false"
  27781. static="false" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. <param name="tag" type="java.lang.String"/>
  27784. <exception name="IOException" type="java.io.IOException"/>
  27785. <doc>
  27786. <![CDATA[Read a byte from serialized record.
  27787. @param tag Used by tagged serialization formats (such as XML)
  27788. @return value read from serialized record.]]>
  27789. </doc>
  27790. </method>
  27791. <method name="readBool" return="boolean"
  27792. abstract="false" native="false" synchronized="false"
  27793. static="false" final="false" visibility="public"
  27794. deprecated="not deprecated">
  27795. <param name="tag" type="java.lang.String"/>
  27796. <exception name="IOException" type="java.io.IOException"/>
  27797. <doc>
  27798. <![CDATA[Read a boolean from serialized record.
  27799. @param tag Used by tagged serialization formats (such as XML)
  27800. @return value read from serialized record.]]>
  27801. </doc>
  27802. </method>
  27803. <method name="readInt" return="int"
  27804. abstract="false" native="false" synchronized="false"
  27805. static="false" final="false" visibility="public"
  27806. deprecated="not deprecated">
  27807. <param name="tag" type="java.lang.String"/>
  27808. <exception name="IOException" type="java.io.IOException"/>
  27809. <doc>
  27810. <![CDATA[Read an integer from serialized record.
  27811. @param tag Used by tagged serialization formats (such as XML)
  27812. @return value read from serialized record.]]>
  27813. </doc>
  27814. </method>
  27815. <method name="readLong" return="long"
  27816. abstract="false" native="false" synchronized="false"
  27817. static="false" final="false" visibility="public"
  27818. deprecated="not deprecated">
  27819. <param name="tag" type="java.lang.String"/>
  27820. <exception name="IOException" type="java.io.IOException"/>
  27821. <doc>
  27822. <![CDATA[Read a long integer from serialized record.
  27823. @param tag Used by tagged serialization formats (such as XML)
  27824. @return value read from serialized record.]]>
  27825. </doc>
  27826. </method>
  27827. <method name="readFloat" return="float"
  27828. abstract="false" native="false" synchronized="false"
  27829. static="false" final="false" visibility="public"
  27830. deprecated="not deprecated">
  27831. <param name="tag" type="java.lang.String"/>
  27832. <exception name="IOException" type="java.io.IOException"/>
  27833. <doc>
  27834. <![CDATA[Read a single-precision float from serialized record.
  27835. @param tag Used by tagged serialization formats (such as XML)
  27836. @return value read from serialized record.]]>
  27837. </doc>
  27838. </method>
  27839. <method name="readDouble" return="double"
  27840. abstract="false" native="false" synchronized="false"
  27841. static="false" final="false" visibility="public"
  27842. deprecated="not deprecated">
  27843. <param name="tag" type="java.lang.String"/>
  27844. <exception name="IOException" type="java.io.IOException"/>
  27845. <doc>
  27846. <![CDATA[Read a double-precision number from serialized record.
  27847. @param tag Used by tagged serialization formats (such as XML)
  27848. @return value read from serialized record.]]>
  27849. </doc>
  27850. </method>
  27851. <method name="readString" return="java.lang.String"
  27852. abstract="false" native="false" synchronized="false"
  27853. static="false" final="false" visibility="public"
  27854. deprecated="not deprecated">
  27855. <param name="tag" type="java.lang.String"/>
  27856. <exception name="IOException" type="java.io.IOException"/>
  27857. <doc>
  27858. <![CDATA[Read a UTF-8 encoded string from serialized record.
  27859. @param tag Used by tagged serialization formats (such as XML)
  27860. @return value read from serialized record.]]>
  27861. </doc>
  27862. </method>
  27863. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  27864. abstract="false" native="false" synchronized="false"
  27865. static="false" final="false" visibility="public"
  27866. deprecated="not deprecated">
  27867. <param name="tag" type="java.lang.String"/>
  27868. <exception name="IOException" type="java.io.IOException"/>
  27869. <doc>
  27870. <![CDATA[Read byte array from serialized record.
  27871. @param tag Used by tagged serialization formats (such as XML)
  27872. @return value read from serialized record.]]>
  27873. </doc>
  27874. </method>
  27875. <method name="startRecord"
  27876. abstract="false" native="false" synchronized="false"
  27877. static="false" final="false" visibility="public"
  27878. deprecated="not deprecated">
  27879. <param name="tag" type="java.lang.String"/>
  27880. <exception name="IOException" type="java.io.IOException"/>
  27881. <doc>
  27882. <![CDATA[Check the mark for start of the serialized record.
  27883. @param tag Used by tagged serialization formats (such as XML)]]>
  27884. </doc>
  27885. </method>
  27886. <method name="endRecord"
  27887. abstract="false" native="false" synchronized="false"
  27888. static="false" final="false" visibility="public"
  27889. deprecated="not deprecated">
  27890. <param name="tag" type="java.lang.String"/>
  27891. <exception name="IOException" type="java.io.IOException"/>
  27892. <doc>
  27893. <![CDATA[Check the mark for end of the serialized record.
  27894. @param tag Used by tagged serialization formats (such as XML)]]>
  27895. </doc>
  27896. </method>
  27897. <method name="startVector" return="org.apache.hadoop.record.Index"
  27898. abstract="false" native="false" synchronized="false"
  27899. static="false" final="false" visibility="public"
  27900. deprecated="not deprecated">
  27901. <param name="tag" type="java.lang.String"/>
  27902. <exception name="IOException" type="java.io.IOException"/>
  27903. <doc>
  27904. <![CDATA[Check the mark for start of the serialized vector.
  27905. @param tag Used by tagged serialization formats (such as XML)
  27906. @return Index that is used to count the number of elements.]]>
  27907. </doc>
  27908. </method>
  27909. <method name="endVector"
  27910. abstract="false" native="false" synchronized="false"
  27911. static="false" final="false" visibility="public"
  27912. deprecated="not deprecated">
  27913. <param name="tag" type="java.lang.String"/>
  27914. <exception name="IOException" type="java.io.IOException"/>
  27915. <doc>
  27916. <![CDATA[Check the mark for end of the serialized vector.
  27917. @param tag Used by tagged serialization formats (such as XML)]]>
  27918. </doc>
  27919. </method>
  27920. <method name="startMap" return="org.apache.hadoop.record.Index"
  27921. abstract="false" native="false" synchronized="false"
  27922. static="false" final="false" visibility="public"
  27923. deprecated="not deprecated">
  27924. <param name="tag" type="java.lang.String"/>
  27925. <exception name="IOException" type="java.io.IOException"/>
  27926. <doc>
  27927. <![CDATA[Check the mark for start of the serialized map.
  27928. @param tag Used by tagged serialization formats (such as XML)
  27929. @return Index that is used to count the number of map entries.]]>
  27930. </doc>
  27931. </method>
  27932. <method name="endMap"
  27933. abstract="false" native="false" synchronized="false"
  27934. static="false" final="false" visibility="public"
  27935. deprecated="not deprecated">
  27936. <param name="tag" type="java.lang.String"/>
  27937. <exception name="IOException" type="java.io.IOException"/>
  27938. <doc>
  27939. <![CDATA[Check the mark for end of the serialized map.
  27940. @param tag Used by tagged serialization formats (such as XML)]]>
  27941. </doc>
  27942. </method>
  27943. <doc>
  27944. <![CDATA[Interface that all the Deserializers have to implement.
  27945. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27946. </doc>
  27947. </interface>
  27948. <!-- end interface org.apache.hadoop.record.RecordInput -->
  27949. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  27950. <interface name="RecordOutput" abstract="true"
  27951. static="false" final="false" visibility="public"
  27952. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27953. <method name="writeByte"
  27954. abstract="false" native="false" synchronized="false"
  27955. static="false" final="false" visibility="public"
  27956. deprecated="not deprecated">
  27957. <param name="b" type="byte"/>
  27958. <param name="tag" type="java.lang.String"/>
  27959. <exception name="IOException" type="java.io.IOException"/>
  27960. <doc>
  27961. <![CDATA[Write a byte to serialized record.
  27962. @param b Byte to be serialized
  27963. @param tag Used by tagged serialization formats (such as XML)
  27964. @throws IOException Indicates error in serialization]]>
  27965. </doc>
  27966. </method>
  27967. <method name="writeBool"
  27968. abstract="false" native="false" synchronized="false"
  27969. static="false" final="false" visibility="public"
  27970. deprecated="not deprecated">
  27971. <param name="b" type="boolean"/>
  27972. <param name="tag" type="java.lang.String"/>
  27973. <exception name="IOException" type="java.io.IOException"/>
  27974. <doc>
  27975. <![CDATA[Write a boolean to serialized record.
  27976. @param b Boolean to be serialized
  27977. @param tag Used by tagged serialization formats (such as XML)
  27978. @throws IOException Indicates error in serialization]]>
  27979. </doc>
  27980. </method>
  27981. <method name="writeInt"
  27982. abstract="false" native="false" synchronized="false"
  27983. static="false" final="false" visibility="public"
  27984. deprecated="not deprecated">
  27985. <param name="i" type="int"/>
  27986. <param name="tag" type="java.lang.String"/>
  27987. <exception name="IOException" type="java.io.IOException"/>
  27988. <doc>
  27989. <![CDATA[Write an integer to serialized record.
  27990. @param i Integer to be serialized
  27991. @param tag Used by tagged serialization formats (such as XML)
  27992. @throws IOException Indicates error in serialization]]>
  27993. </doc>
  27994. </method>
  27995. <method name="writeLong"
  27996. abstract="false" native="false" synchronized="false"
  27997. static="false" final="false" visibility="public"
  27998. deprecated="not deprecated">
  27999. <param name="l" type="long"/>
  28000. <param name="tag" type="java.lang.String"/>
  28001. <exception name="IOException" type="java.io.IOException"/>
  28002. <doc>
  28003. <![CDATA[Write a long integer to serialized record.
  28004. @param l Long to be serialized
  28005. @param tag Used by tagged serialization formats (such as XML)
  28006. @throws IOException Indicates error in serialization]]>
  28007. </doc>
  28008. </method>
  28009. <method name="writeFloat"
  28010. abstract="false" native="false" synchronized="false"
  28011. static="false" final="false" visibility="public"
  28012. deprecated="not deprecated">
  28013. <param name="f" type="float"/>
  28014. <param name="tag" type="java.lang.String"/>
  28015. <exception name="IOException" type="java.io.IOException"/>
  28016. <doc>
  28017. <![CDATA[Write a single-precision float to serialized record.
  28018. @param f Float to be serialized
  28019. @param tag Used by tagged serialization formats (such as XML)
  28020. @throws IOException Indicates error in serialization]]>
  28021. </doc>
  28022. </method>
  28023. <method name="writeDouble"
  28024. abstract="false" native="false" synchronized="false"
  28025. static="false" final="false" visibility="public"
  28026. deprecated="not deprecated">
  28027. <param name="d" type="double"/>
  28028. <param name="tag" type="java.lang.String"/>
  28029. <exception name="IOException" type="java.io.IOException"/>
  28030. <doc>
  28031. <![CDATA[Write a double precision floating point number to serialized record.
  28032. @param d Double to be serialized
  28033. @param tag Used by tagged serialization formats (such as XML)
  28034. @throws IOException Indicates error in serialization]]>
  28035. </doc>
  28036. </method>
  28037. <method name="writeString"
  28038. abstract="false" native="false" synchronized="false"
  28039. static="false" final="false" visibility="public"
  28040. deprecated="not deprecated">
  28041. <param name="s" type="java.lang.String"/>
  28042. <param name="tag" type="java.lang.String"/>
  28043. <exception name="IOException" type="java.io.IOException"/>
  28044. <doc>
  28045. <![CDATA[Write a unicode string to serialized record.
  28046. @param s String to be serialized
  28047. @param tag Used by tagged serialization formats (such as XML)
  28048. @throws IOException Indicates error in serialization]]>
  28049. </doc>
  28050. </method>
  28051. <method name="writeBuffer"
  28052. abstract="false" native="false" synchronized="false"
  28053. static="false" final="false" visibility="public"
  28054. deprecated="not deprecated">
  28055. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  28056. <param name="tag" type="java.lang.String"/>
  28057. <exception name="IOException" type="java.io.IOException"/>
  28058. <doc>
  28059. <![CDATA[Write a buffer to serialized record.
  28060. @param buf Buffer to be serialized
  28061. @param tag Used by tagged serialization formats (such as XML)
  28062. @throws IOException Indicates error in serialization]]>
  28063. </doc>
  28064. </method>
  28065. <method name="startRecord"
  28066. abstract="false" native="false" synchronized="false"
  28067. static="false" final="false" visibility="public"
  28068. deprecated="not deprecated">
  28069. <param name="r" type="org.apache.hadoop.record.Record"/>
  28070. <param name="tag" type="java.lang.String"/>
  28071. <exception name="IOException" type="java.io.IOException"/>
  28072. <doc>
  28073. <![CDATA[Mark the start of a record to be serialized.
  28074. @param r Record to be serialized
  28075. @param tag Used by tagged serialization formats (such as XML)
  28076. @throws IOException Indicates error in serialization]]>
  28077. </doc>
  28078. </method>
  28079. <method name="endRecord"
  28080. abstract="false" native="false" synchronized="false"
  28081. static="false" final="false" visibility="public"
  28082. deprecated="not deprecated">
  28083. <param name="r" type="org.apache.hadoop.record.Record"/>
  28084. <param name="tag" type="java.lang.String"/>
  28085. <exception name="IOException" type="java.io.IOException"/>
  28086. <doc>
  28087. <![CDATA[Mark the end of a serialized record.
  28088. @param r Record to be serialized
  28089. @param tag Used by tagged serialization formats (such as XML)
  28090. @throws IOException Indicates error in serialization]]>
  28091. </doc>
  28092. </method>
  28093. <method name="startVector"
  28094. abstract="false" native="false" synchronized="false"
  28095. static="false" final="false" visibility="public"
  28096. deprecated="not deprecated">
  28097. <param name="v" type="java.util.ArrayList"/>
  28098. <param name="tag" type="java.lang.String"/>
  28099. <exception name="IOException" type="java.io.IOException"/>
  28100. <doc>
  28101. <![CDATA[Mark the start of a vector to be serialized.
  28102. @param v Vector to be serialized
  28103. @param tag Used by tagged serialization formats (such as XML)
  28104. @throws IOException Indicates error in serialization]]>
  28105. </doc>
  28106. </method>
  28107. <method name="endVector"
  28108. abstract="false" native="false" synchronized="false"
  28109. static="false" final="false" visibility="public"
  28110. deprecated="not deprecated">
  28111. <param name="v" type="java.util.ArrayList"/>
  28112. <param name="tag" type="java.lang.String"/>
  28113. <exception name="IOException" type="java.io.IOException"/>
  28114. <doc>
  28115. <![CDATA[Mark the end of a serialized vector.
  28116. @param v Vector to be serialized
  28117. @param tag Used by tagged serialization formats (such as XML)
  28118. @throws IOException Indicates error in serialization]]>
  28119. </doc>
  28120. </method>
  28121. <method name="startMap"
  28122. abstract="false" native="false" synchronized="false"
  28123. static="false" final="false" visibility="public"
  28124. deprecated="not deprecated">
  28125. <param name="m" type="java.util.TreeMap"/>
  28126. <param name="tag" type="java.lang.String"/>
  28127. <exception name="IOException" type="java.io.IOException"/>
  28128. <doc>
  28129. <![CDATA[Mark the start of a map to be serialized.
  28130. @param m Map to be serialized
  28131. @param tag Used by tagged serialization formats (such as XML)
  28132. @throws IOException Indicates error in serialization]]>
  28133. </doc>
  28134. </method>
  28135. <method name="endMap"
  28136. abstract="false" native="false" synchronized="false"
  28137. static="false" final="false" visibility="public"
  28138. deprecated="not deprecated">
  28139. <param name="m" type="java.util.TreeMap"/>
  28140. <param name="tag" type="java.lang.String"/>
  28141. <exception name="IOException" type="java.io.IOException"/>
  28142. <doc>
  28143. <![CDATA[Mark the end of a serialized map.
  28144. @param m Map to be serialized
  28145. @param tag Used by tagged serialization formats (such as XML)
  28146. @throws IOException Indicates error in serialization]]>
  28147. </doc>
  28148. </method>
  28149. <doc>
  28150. <![CDATA[Interface that all the serializers have to implement.
  28151. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28152. </doc>
  28153. </interface>
  28154. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  28155. <!-- start class org.apache.hadoop.record.Utils -->
  28156. <class name="Utils" extends="java.lang.Object"
  28157. abstract="false"
  28158. static="false" final="false" visibility="public"
  28159. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  28160. <method name="readFloat" return="float"
  28161. abstract="false" native="false" synchronized="false"
  28162. static="true" final="false" visibility="public"
  28163. deprecated="not deprecated">
  28164. <param name="bytes" type="byte[]"/>
  28165. <param name="start" type="int"/>
  28166. <doc>
  28167. <![CDATA[Parse a float from a byte array.]]>
  28168. </doc>
  28169. </method>
  28170. <method name="readDouble" return="double"
  28171. abstract="false" native="false" synchronized="false"
  28172. static="true" final="false" visibility="public"
  28173. deprecated="not deprecated">
  28174. <param name="bytes" type="byte[]"/>
  28175. <param name="start" type="int"/>
  28176. <doc>
  28177. <![CDATA[Parse a double from a byte array.]]>
  28178. </doc>
  28179. </method>
  28180. <method name="readVLong" return="long"
  28181. abstract="false" native="false" synchronized="false"
  28182. static="true" final="false" visibility="public"
  28183. deprecated="not deprecated">
  28184. <param name="bytes" type="byte[]"/>
  28185. <param name="start" type="int"/>
  28186. <exception name="IOException" type="java.io.IOException"/>
  28187. <doc>
  28188. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  28189. @param bytes byte array with decode long
  28190. @param start starting index
  28191. @throws java.io.IOException
  28192. @return deserialized long]]>
  28193. </doc>
  28194. </method>
  28195. <method name="readVInt" return="int"
  28196. abstract="false" native="false" synchronized="false"
  28197. static="true" final="false" visibility="public"
  28198. deprecated="not deprecated">
  28199. <param name="bytes" type="byte[]"/>
  28200. <param name="start" type="int"/>
  28201. <exception name="IOException" type="java.io.IOException"/>
  28202. <doc>
  28203. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  28204. @param bytes byte array with the encoded integer
  28205. @param start start index
  28206. @throws java.io.IOException
  28207. @return deserialized integer]]>
  28208. </doc>
  28209. </method>
  28210. <method name="readVLong" return="long"
  28211. abstract="false" native="false" synchronized="false"
  28212. static="true" final="false" visibility="public"
  28213. deprecated="not deprecated">
  28214. <param name="in" type="java.io.DataInput"/>
  28215. <exception name="IOException" type="java.io.IOException"/>
  28216. <doc>
  28217. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  28218. @param in input stream
  28219. @throws java.io.IOException
  28220. @return deserialized long]]>
  28221. </doc>
  28222. </method>
  28223. <method name="readVInt" return="int"
  28224. abstract="false" native="false" synchronized="false"
  28225. static="true" final="false" visibility="public"
  28226. deprecated="not deprecated">
  28227. <param name="in" type="java.io.DataInput"/>
  28228. <exception name="IOException" type="java.io.IOException"/>
  28229. <doc>
  28230. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  28231. @param in input stream
  28232. @throws java.io.IOException
  28233. @return deserialized integer]]>
  28234. </doc>
  28235. </method>
  28236. <method name="getVIntSize" return="int"
  28237. abstract="false" native="false" synchronized="false"
  28238. static="true" final="false" visibility="public"
  28239. deprecated="not deprecated">
  28240. <param name="i" type="long"/>
  28241. <doc>
  28242. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  28243. @return the encoded length]]>
  28244. </doc>
  28245. </method>
  28246. <method name="writeVLong"
  28247. abstract="false" native="false" synchronized="false"
  28248. static="true" final="false" visibility="public"
  28249. deprecated="not deprecated">
  28250. <param name="stream" type="java.io.DataOutput"/>
  28251. <param name="i" type="long"/>
  28252. <exception name="IOException" type="java.io.IOException"/>
  28253. <doc>
  28254. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  28255. For {@literal -112 <= i <= 127}, only one byte is used with the actual
  28256. value. For other values of i, the first byte value indicates whether the
  28257. long is positive or negative, and the number of bytes that follow.
  28258. If the first byte value v is between -113 and -120, the following long
  28259. is positive, with number of bytes that follow are -(v+112).
  28260. If the first byte value v is between -121 and -128, the following long
  28261. is negative, with number of bytes that follow are -(v+120). Bytes are
  28262. stored in the high-non-zero-byte-first order.
  28263. @param stream Binary output stream
  28264. @param i Long to be serialized
  28265. @throws java.io.IOException]]>
  28266. </doc>
  28267. </method>
  28268. <method name="writeVInt"
  28269. abstract="false" native="false" synchronized="false"
  28270. static="true" final="false" visibility="public"
  28271. deprecated="not deprecated">
  28272. <param name="stream" type="java.io.DataOutput"/>
  28273. <param name="i" type="int"/>
  28274. <exception name="IOException" type="java.io.IOException"/>
  28275. <doc>
  28276. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  28277. @param stream Binary output stream
  28278. @param i int to be serialized
  28279. @throws java.io.IOException]]>
  28280. </doc>
  28281. </method>
  28282. <method name="compareBytes" return="int"
  28283. abstract="false" native="false" synchronized="false"
  28284. static="true" final="false" visibility="public"
  28285. deprecated="not deprecated">
  28286. <param name="b1" type="byte[]"/>
  28287. <param name="s1" type="int"/>
  28288. <param name="l1" type="int"/>
  28289. <param name="b2" type="byte[]"/>
  28290. <param name="s2" type="int"/>
  28291. <param name="l2" type="int"/>
  28292. <doc>
  28293. <![CDATA[Lexicographic order of binary data.]]>
  28294. </doc>
  28295. </method>
  28296. <field name="hexchars" type="char[]"
  28297. transient="false" volatile="false"
  28298. static="true" final="true" visibility="public"
  28299. deprecated="not deprecated">
  28300. </field>
  28301. <doc>
  28302. <![CDATA[Various utility functions for Hadoop record I/O runtime.
  28303. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  28304. </doc>
  28305. </class>
  28306. <!-- end class org.apache.hadoop.record.Utils -->
  28307. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  28308. <class name="XmlRecordInput" extends="java.lang.Object"
  28309. abstract="false"
  28310. static="false" final="false" visibility="public"
  28311. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28312. <implements name="org.apache.hadoop.record.RecordInput"/>
  28313. <constructor name="XmlRecordInput" type="java.io.InputStream"
  28314. static="false" final="false" visibility="public"
  28315. deprecated="not deprecated">
  28316. <doc>
  28317. <![CDATA[Creates a new instance of XmlRecordInput]]>
  28318. </doc>
  28319. </constructor>
  28320. <method name="readByte" return="byte"
  28321. abstract="false" native="false" synchronized="false"
  28322. static="false" final="false" visibility="public"
  28323. deprecated="not deprecated">
  28324. <param name="tag" type="java.lang.String"/>
  28325. <exception name="IOException" type="java.io.IOException"/>
  28326. </method>
  28327. <method name="readBool" return="boolean"
  28328. abstract="false" native="false" synchronized="false"
  28329. static="false" final="false" visibility="public"
  28330. deprecated="not deprecated">
  28331. <param name="tag" type="java.lang.String"/>
  28332. <exception name="IOException" type="java.io.IOException"/>
  28333. </method>
  28334. <method name="readInt" return="int"
  28335. abstract="false" native="false" synchronized="false"
  28336. static="false" final="false" visibility="public"
  28337. deprecated="not deprecated">
  28338. <param name="tag" type="java.lang.String"/>
  28339. <exception name="IOException" type="java.io.IOException"/>
  28340. </method>
  28341. <method name="readLong" return="long"
  28342. abstract="false" native="false" synchronized="false"
  28343. static="false" final="false" visibility="public"
  28344. deprecated="not deprecated">
  28345. <param name="tag" type="java.lang.String"/>
  28346. <exception name="IOException" type="java.io.IOException"/>
  28347. </method>
  28348. <method name="readFloat" return="float"
  28349. abstract="false" native="false" synchronized="false"
  28350. static="false" final="false" visibility="public"
  28351. deprecated="not deprecated">
  28352. <param name="tag" type="java.lang.String"/>
  28353. <exception name="IOException" type="java.io.IOException"/>
  28354. </method>
  28355. <method name="readDouble" return="double"
  28356. abstract="false" native="false" synchronized="false"
  28357. static="false" final="false" visibility="public"
  28358. deprecated="not deprecated">
  28359. <param name="tag" type="java.lang.String"/>
  28360. <exception name="IOException" type="java.io.IOException"/>
  28361. </method>
  28362. <method name="readString" return="java.lang.String"
  28363. abstract="false" native="false" synchronized="false"
  28364. static="false" final="false" visibility="public"
  28365. deprecated="not deprecated">
  28366. <param name="tag" type="java.lang.String"/>
  28367. <exception name="IOException" type="java.io.IOException"/>
  28368. </method>
  28369. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  28370. abstract="false" native="false" synchronized="false"
  28371. static="false" final="false" visibility="public"
  28372. deprecated="not deprecated">
  28373. <param name="tag" type="java.lang.String"/>
  28374. <exception name="IOException" type="java.io.IOException"/>
  28375. </method>
  28376. <method name="startRecord"
  28377. abstract="false" native="false" synchronized="false"
  28378. static="false" final="false" visibility="public"
  28379. deprecated="not deprecated">
  28380. <param name="tag" type="java.lang.String"/>
  28381. <exception name="IOException" type="java.io.IOException"/>
  28382. </method>
  28383. <method name="endRecord"
  28384. abstract="false" native="false" synchronized="false"
  28385. static="false" final="false" visibility="public"
  28386. deprecated="not deprecated">
  28387. <param name="tag" type="java.lang.String"/>
  28388. <exception name="IOException" type="java.io.IOException"/>
  28389. </method>
  28390. <method name="startVector" return="org.apache.hadoop.record.Index"
  28391. abstract="false" native="false" synchronized="false"
  28392. static="false" final="false" visibility="public"
  28393. deprecated="not deprecated">
  28394. <param name="tag" type="java.lang.String"/>
  28395. <exception name="IOException" type="java.io.IOException"/>
  28396. </method>
  28397. <method name="endVector"
  28398. abstract="false" native="false" synchronized="false"
  28399. static="false" final="false" visibility="public"
  28400. deprecated="not deprecated">
  28401. <param name="tag" type="java.lang.String"/>
  28402. <exception name="IOException" type="java.io.IOException"/>
  28403. </method>
  28404. <method name="startMap" return="org.apache.hadoop.record.Index"
  28405. abstract="false" native="false" synchronized="false"
  28406. static="false" final="false" visibility="public"
  28407. deprecated="not deprecated">
  28408. <param name="tag" type="java.lang.String"/>
  28409. <exception name="IOException" type="java.io.IOException"/>
  28410. </method>
  28411. <method name="endMap"
  28412. abstract="false" native="false" synchronized="false"
  28413. static="false" final="false" visibility="public"
  28414. deprecated="not deprecated">
  28415. <param name="tag" type="java.lang.String"/>
  28416. <exception name="IOException" type="java.io.IOException"/>
  28417. </method>
  28418. <doc>
  28419. <![CDATA[XML Deserializer.
  28420. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28421. </doc>
  28422. </class>
  28423. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  28424. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  28425. <class name="XmlRecordOutput" extends="java.lang.Object"
  28426. abstract="false"
  28427. static="false" final="false" visibility="public"
  28428. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28429. <implements name="org.apache.hadoop.record.RecordOutput"/>
  28430. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  28431. static="false" final="false" visibility="public"
  28432. deprecated="not deprecated">
  28433. <doc>
  28434. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  28435. </doc>
  28436. </constructor>
  28437. <method name="writeByte"
  28438. abstract="false" native="false" synchronized="false"
  28439. static="false" final="false" visibility="public"
  28440. deprecated="not deprecated">
  28441. <param name="b" type="byte"/>
  28442. <param name="tag" type="java.lang.String"/>
  28443. <exception name="IOException" type="java.io.IOException"/>
  28444. </method>
  28445. <method name="writeBool"
  28446. abstract="false" native="false" synchronized="false"
  28447. static="false" final="false" visibility="public"
  28448. deprecated="not deprecated">
  28449. <param name="b" type="boolean"/>
  28450. <param name="tag" type="java.lang.String"/>
  28451. <exception name="IOException" type="java.io.IOException"/>
  28452. </method>
  28453. <method name="writeInt"
  28454. abstract="false" native="false" synchronized="false"
  28455. static="false" final="false" visibility="public"
  28456. deprecated="not deprecated">
  28457. <param name="i" type="int"/>
  28458. <param name="tag" type="java.lang.String"/>
  28459. <exception name="IOException" type="java.io.IOException"/>
  28460. </method>
  28461. <method name="writeLong"
  28462. abstract="false" native="false" synchronized="false"
  28463. static="false" final="false" visibility="public"
  28464. deprecated="not deprecated">
  28465. <param name="l" type="long"/>
  28466. <param name="tag" type="java.lang.String"/>
  28467. <exception name="IOException" type="java.io.IOException"/>
  28468. </method>
  28469. <method name="writeFloat"
  28470. abstract="false" native="false" synchronized="false"
  28471. static="false" final="false" visibility="public"
  28472. deprecated="not deprecated">
  28473. <param name="f" type="float"/>
  28474. <param name="tag" type="java.lang.String"/>
  28475. <exception name="IOException" type="java.io.IOException"/>
  28476. </method>
  28477. <method name="writeDouble"
  28478. abstract="false" native="false" synchronized="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <param name="d" type="double"/>
  28482. <param name="tag" type="java.lang.String"/>
  28483. <exception name="IOException" type="java.io.IOException"/>
  28484. </method>
  28485. <method name="writeString"
  28486. abstract="false" native="false" synchronized="false"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. <param name="s" type="java.lang.String"/>
  28490. <param name="tag" type="java.lang.String"/>
  28491. <exception name="IOException" type="java.io.IOException"/>
  28492. </method>
  28493. <method name="writeBuffer"
  28494. abstract="false" native="false" synchronized="false"
  28495. static="false" final="false" visibility="public"
  28496. deprecated="not deprecated">
  28497. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  28498. <param name="tag" type="java.lang.String"/>
  28499. <exception name="IOException" type="java.io.IOException"/>
  28500. </method>
  28501. <method name="startRecord"
  28502. abstract="false" native="false" synchronized="false"
  28503. static="false" final="false" visibility="public"
  28504. deprecated="not deprecated">
  28505. <param name="r" type="org.apache.hadoop.record.Record"/>
  28506. <param name="tag" type="java.lang.String"/>
  28507. <exception name="IOException" type="java.io.IOException"/>
  28508. </method>
  28509. <method name="endRecord"
  28510. abstract="false" native="false" synchronized="false"
  28511. static="false" final="false" visibility="public"
  28512. deprecated="not deprecated">
  28513. <param name="r" type="org.apache.hadoop.record.Record"/>
  28514. <param name="tag" type="java.lang.String"/>
  28515. <exception name="IOException" type="java.io.IOException"/>
  28516. </method>
  28517. <method name="startVector"
  28518. abstract="false" native="false" synchronized="false"
  28519. static="false" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. <param name="v" type="java.util.ArrayList"/>
  28522. <param name="tag" type="java.lang.String"/>
  28523. <exception name="IOException" type="java.io.IOException"/>
  28524. </method>
  28525. <method name="endVector"
  28526. abstract="false" native="false" synchronized="false"
  28527. static="false" final="false" visibility="public"
  28528. deprecated="not deprecated">
  28529. <param name="v" type="java.util.ArrayList"/>
  28530. <param name="tag" type="java.lang.String"/>
  28531. <exception name="IOException" type="java.io.IOException"/>
  28532. </method>
  28533. <method name="startMap"
  28534. abstract="false" native="false" synchronized="false"
  28535. static="false" final="false" visibility="public"
  28536. deprecated="not deprecated">
  28537. <param name="v" type="java.util.TreeMap"/>
  28538. <param name="tag" type="java.lang.String"/>
  28539. <exception name="IOException" type="java.io.IOException"/>
  28540. </method>
  28541. <method name="endMap"
  28542. abstract="false" native="false" synchronized="false"
  28543. static="false" final="false" visibility="public"
  28544. deprecated="not deprecated">
  28545. <param name="v" type="java.util.TreeMap"/>
  28546. <param name="tag" type="java.lang.String"/>
  28547. <exception name="IOException" type="java.io.IOException"/>
  28548. </method>
  28549. <doc>
  28550. <![CDATA[XML Serializer.
  28551. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28552. </doc>
  28553. </class>
  28554. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  28555. <doc>
  28556. <![CDATA[<p>
  28557. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  28558. translator for simplifying serialization and deserialization of records in a
  28559. language-neutral manner.
  28560. </p>
  28561. <p>
  28562. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  28563. </p>
  28564. <h2>Introduction</h2>
  28565. Software systems of any significant complexity require mechanisms for data
  28566. interchange with the outside world. These interchanges typically involve the
  28567. marshaling and unmarshaling of logical units of data to and from data streams
  28568. (files, network connections, memory buffers etc.). Applications usually have
  28569. some code for serializing and deserializing the data types that they manipulate
  28570. embedded in them. The work of serialization has several features that make
  28571. automatic code generation for it worthwhile. Given a particular output encoding
  28572. (binary, XML, etc.), serialization of primitive types and simple compositions
  28573. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  28574. written serialization code can be susceptible to bugs especially when records
  28575. have a large number of fields or a record definition changes between software
  28576. versions. Lastly, it can be very useful for applications written in different
  28577. programming languages to be able to share and interchange data. This can be
  28578. made a lot easier by describing the data records manipulated by these
  28579. applications in a language agnostic manner and using the descriptions to derive
  28580. implementations of serialization in multiple target languages.
  28581. This document describes Hadoop Record I/O, a mechanism that is aimed
  28582. at
  28583. <ul>
  28584. <li> enabling the specification of simple serializable data types (records)
  28585. <li> enabling the generation of code in multiple target languages for
  28586. marshaling and unmarshaling such types
  28587. <li> providing target language specific support that will enable application
  28588. programmers to incorporate generated code into their applications
  28589. </ul>
  28590. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  28591. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  28592. the specification of most record types, they differ widely in what else they
  28593. focus on. The focus in Hadoop Record I/O is on data marshaling and
  28594. multi-lingual support. We take a translator-based approach to serialization.
  28595. Hadoop users have to describe their data in a simple data description
  28596. language. The Hadoop DDL translator rcc generates code that users
  28597. can invoke in order to read/write their data from/to simple stream
  28598. abstractions. Next we list explicitly some of the goals and non-goals of
  28599. Hadoop Record I/O.
  28600. <h3>Goals</h3>
  28601. <ul>
  28602. <li> Support for commonly used primitive types. Hadoop should include as
  28603. primitives commonly used builtin types from programming languages we intend to
  28604. support.
  28605. <li> Support for common data compositions (including recursive compositions).
  28606. Hadoop should support widely used composite types such as structs and
  28607. vectors.
  28608. <li> Code generation in multiple target languages. Hadoop should be capable of
  28609. generating serialization code in multiple target languages and should be
  28610. easily extensible to new target languages. The initial target languages are
  28611. C++ and Java.
  28612. <li> Support for generated target languages. Hadooop should include support
  28613. in the form of headers, libraries, packages for supported target languages
  28614. that enable easy inclusion and use of generated code in applications.
  28615. <li> Support for multiple output encodings. Candidates include
  28616. packed binary, comma-separated text, XML etc.
  28617. <li> Support for specifying record types in a backwards/forwards compatible
  28618. manner. This will probably be in the form of support for optional fields in
  28619. records. This version of the document does not include a description of the
  28620. planned mechanism, we intend to include it in the next iteration.
  28621. </ul>
  28622. <h3>Non-Goals</h3>
  28623. <ul>
  28624. <li> Serializing existing arbitrary C++ classes.
  28625. <li> Serializing complex data structures such as trees, linked lists etc.
  28626. <li> Built-in indexing schemes, compression, or check-sums.
  28627. <li> Dynamic construction of objects from an XML schema.
  28628. </ul>
  28629. The remainder of this document describes the features of Hadoop record I/O
  28630. in more detail. Section 2 describes the data types supported by the system.
  28631. Section 3 lays out the DDL syntax with some examples of simple records.
  28632. Section 4 describes the process of code generation with rcc. Section 5
  28633. describes target language mappings and support for Hadoop types. We include a
  28634. fairly complete description of C++ mappings with intent to include Java and
  28635. others in upcoming iterations of this document. The last section talks about
  28636. supported output encodings.
  28637. <h2>Data Types and Streams</h2>
  28638. This section describes the primitive and composite types supported by Hadoop.
  28639. We aim to support a set of types that can be used to simply and efficiently
  28640. express a wide range of record types in different programming languages.
  28641. <h3>Primitive Types</h3>
  28642. For the most part, the primitive types of Hadoop map directly to primitive
  28643. types in high level programming languages. Special cases are the
  28644. ustring (a Unicode string) and buffer types, which we believe
  28645. find wide use and which are usually implemented in library code and not
  28646. available as language built-ins. Hadoop also supplies these via library code
  28647. when a target language built-in is not present and there is no widely
  28648. adopted "standard" implementation. The complete list of primitive types is:
  28649. <ul>
  28650. <li> byte: An 8-bit unsigned integer.
  28651. <li> boolean: A boolean value.
  28652. <li> int: A 32-bit signed integer.
  28653. <li> long: A 64-bit signed integer.
  28654. <li> float: A single precision floating point number as described by
  28655. IEEE-754.
  28656. <li> double: A double precision floating point number as described by
  28657. IEEE-754.
  28658. <li> ustring: A string consisting of Unicode characters.
  28659. <li> buffer: An arbitrary sequence of bytes.
  28660. </ul>
  28661. <h3>Composite Types</h3>
  28662. Hadoop supports a small set of composite types that enable the description
  28663. of simple aggregate types and containers. A composite type is serialized
  28664. by sequentially serializing it constituent elements. The supported
  28665. composite types are:
  28666. <ul>
  28667. <li> record: An aggregate type like a C-struct. This is a list of
  28668. typed fields that are together considered a single unit of data. A record
  28669. is serialized by sequentially serializing its constituent fields. In addition
  28670. to serialization a record has comparison operations (equality and less-than)
  28671. implemented for it, these are defined as memberwise comparisons.
  28672. <li>vector: A sequence of entries of the same data type, primitive
  28673. or composite.
  28674. <li> map: An associative container mapping instances of a key type to
  28675. instances of a value type. The key and value types may themselves be primitive
  28676. or composite types.
  28677. </ul>
  28678. <h3>Streams</h3>
  28679. Hadoop generates code for serializing and deserializing record types to
  28680. abstract streams. For each target language Hadoop defines very simple input
  28681. and output stream interfaces. Application writers can usually develop
  28682. concrete implementations of these by putting a one method wrapper around
  28683. an existing stream implementation.
  28684. <h2>DDL Syntax and Examples</h2>
  28685. We now describe the syntax of the Hadoop data description language. This is
  28686. followed by a few examples of DDL usage.
  28687. <h3>Hadoop DDL Syntax</h3>
  28688. <pre><code>
  28689. recfile = *include module *record
  28690. include = "include" path
  28691. path = (relative-path / absolute-path)
  28692. module = "module" module-name
  28693. module-name = name *("." name)
  28694. record := "class" name "{" 1*(field) "}"
  28695. field := type name ";"
  28696. name := ALPHA (ALPHA / DIGIT / "_" )*
  28697. type := (ptype / ctype)
  28698. ptype := ("byte" / "boolean" / "int" |
  28699. "long" / "float" / "double"
  28700. "ustring" / "buffer")
  28701. ctype := (("vector" "<" type ">") /
  28702. ("map" "<" type "," type ">" ) ) / name)
  28703. </code></pre>
  28704. A DDL file describes one or more record types. It begins with zero or
  28705. more include declarations, a single mandatory module declaration
  28706. followed by zero or more class declarations. The semantics of each of
  28707. these declarations are described below:
  28708. <ul>
  28709. <li>include: An include declaration specifies a DDL file to be
  28710. referenced when generating code for types in the current DDL file. Record types
  28711. in the current compilation unit may refer to types in all included files.
  28712. File inclusion is recursive. An include does not trigger code
  28713. generation for the referenced file.
  28714. <li> module: Every Hadoop DDL file must have a single module
  28715. declaration that follows the list of includes and precedes all record
  28716. declarations. A module declaration identifies a scope within which
  28717. the names of all types in the current file are visible. Module names are
  28718. mapped to C++ namespaces, Java packages etc. in generated code.
  28719. <li> class: Records types are specified through class
  28720. declarations. A class declaration is like a Java class declaration.
  28721. It specifies a named record type and a list of fields that constitute records
  28722. of the type. Usage is illustrated in the following examples.
  28723. </ul>
  28724. <h3>Examples</h3>
  28725. <ul>
  28726. <li>A simple DDL file links.jr with just one record declaration.
  28727. <pre><code>
  28728. module links {
  28729. class Link {
  28730. ustring URL;
  28731. boolean isRelative;
  28732. ustring anchorText;
  28733. };
  28734. }
  28735. </code></pre>
  28736. <li> A DDL file outlinks.jr which includes another
  28737. <pre><code>
  28738. include "links.jr"
  28739. module outlinks {
  28740. class OutLinks {
  28741. ustring baseURL;
  28742. vector<links.Link> outLinks;
  28743. };
  28744. }
  28745. </code></pre>
  28746. </ul>
  28747. <h2>Code Generation</h2>
  28748. The Hadoop translator is written in Java. Invocation is done by executing a
  28749. wrapper shell script named named rcc. It takes a list of
  28750. record description files as a mandatory argument and an
  28751. optional language argument (the default is Java) --language or
  28752. -l. Thus a typical invocation would look like:
  28753. <pre><code>
  28754. $ rcc -l C++ <filename> ...
  28755. </code></pre>
  28756. <h2>Target Language Mappings and Support</h2>
  28757. For all target languages, the unit of code generation is a record type.
  28758. For each record type, Hadoop generates code for serialization and
  28759. deserialization, record comparison and access to record members.
  28760. <h3>C++</h3>
  28761. Support for including Hadoop generated C++ code in applications comes in the
  28762. form of a header file recordio.hh which needs to be included in source
  28763. that uses Hadoop types and a library librecordio.a which applications need
  28764. to be linked with. The header declares the Hadoop C++ namespace which defines
  28765. appropriate types for the various primitives, the basic interfaces for
  28766. records and streams and enumerates the supported serialization encodings.
  28767. Declarations of these interfaces and a description of their semantics follow:
  28768. <pre><code>
  28769. namespace hadoop {
  28770. enum RecFormat { kBinary, kXML, kCSV };
  28771. class InStream {
  28772. public:
  28773. virtual ssize_t read(void *buf, size_t n) = 0;
  28774. };
  28775. class OutStream {
  28776. public:
  28777. virtual ssize_t write(const void *buf, size_t n) = 0;
  28778. };
  28779. class IOError : public runtime_error {
  28780. public:
  28781. explicit IOError(const std::string& msg);
  28782. };
  28783. class IArchive;
  28784. class OArchive;
  28785. class RecordReader {
  28786. public:
  28787. RecordReader(InStream& in, RecFormat fmt);
  28788. virtual ~RecordReader(void);
  28789. virtual void read(Record& rec);
  28790. };
  28791. class RecordWriter {
  28792. public:
  28793. RecordWriter(OutStream& out, RecFormat fmt);
  28794. virtual ~RecordWriter(void);
  28795. virtual void write(Record& rec);
  28796. };
  28797. class Record {
  28798. public:
  28799. virtual std::string type(void) const = 0;
  28800. virtual std::string signature(void) const = 0;
  28801. protected:
  28802. virtual bool validate(void) const = 0;
  28803. virtual void
  28804. serialize(OArchive& oa, const std::string& tag) const = 0;
  28805. virtual void
  28806. deserialize(IArchive& ia, const std::string& tag) = 0;
  28807. };
  28808. }
  28809. </code></pre>
  28810. <ul>
  28811. <li> RecFormat: An enumeration of the serialization encodings supported
  28812. by this implementation of Hadoop.
  28813. <li> InStream: A simple abstraction for an input stream. This has a
  28814. single public read method that reads n bytes from the stream into
  28815. the buffer buf. Has the same semantics as a blocking read system
  28816. call. Returns the number of bytes read or -1 if an error occurs.
  28817. <li> OutStream: A simple abstraction for an output stream. This has a
  28818. single write method that writes n bytes to the stream from the
  28819. buffer buf. Has the same semantics as a blocking write system
  28820. call. Returns the number of bytes written or -1 if an error occurs.
  28821. <li> RecordReader: A RecordReader reads records one at a time from
  28822. an underlying stream in a specified record format. The reader is instantiated
  28823. with a stream and a serialization format. It has a read method that
  28824. takes an instance of a record and deserializes the record from the stream.
  28825. <li> RecordWriter: A RecordWriter writes records one at a
  28826. time to an underlying stream in a specified record format. The writer is
  28827. instantiated with a stream and a serialization format. It has a
  28828. write method that takes an instance of a record and serializes the
  28829. record to the stream.
  28830. <li> Record: The base class for all generated record types. This has two
  28831. public methods type and signature that return the typename and the
  28832. type signature of the record.
  28833. </ul>
  28834. Two files are generated for each record file (note: not for each record). If a
  28835. record file is named "name.jr", the generated files are
  28836. "name.jr.cc" and "name.jr.hh" containing serialization
  28837. implementations and record type declarations respectively.
  28838. For each record in the DDL file, the generated header file will contain a
  28839. class definition corresponding to the record type, method definitions for the
  28840. generated type will be present in the '.cc' file. The generated class will
  28841. inherit from the abstract class hadoop::Record. The DDL files
  28842. module declaration determines the namespace the record belongs to.
  28843. Each '.' delimited token in the module declaration results in the
  28844. creation of a namespace. For instance, the declaration module docs.links
  28845. results in the creation of a docs namespace and a nested
  28846. docs::links namespace. In the preceding examples, the Link class
  28847. is placed in the links namespace. The header file corresponding to
  28848. the links.jr file will contain:
  28849. <pre><code>
  28850. namespace links {
  28851. class Link : public hadoop::Record {
  28852. // ....
  28853. };
  28854. };
  28855. </code></pre>
  28856. Each field within the record will cause the generation of a private member
  28857. declaration of the appropriate type in the class declaration, and one or more
  28858. acccessor methods. The generated class will implement the serialize and
  28859. deserialize methods defined in hadoop::Record+. It will also
  28860. implement the inspection methods type and signature from
  28861. hadoop::Record. A default constructor and virtual destructor will also
  28862. be generated. Serialization code will read/write records into streams that
  28863. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  28864. For each member of a record an accessor method is generated that returns
  28865. either the member or a reference to the member. For members that are returned
  28866. by value, a setter method is also generated. This is true for primitive
  28867. data members of the types byte, int, long, boolean, float and
  28868. double. For example, for a int field called MyField the folowing
  28869. code is generated.
  28870. <pre><code>
  28871. ...
  28872. private:
  28873. int32_t mMyField;
  28874. ...
  28875. public:
  28876. int32_t getMyField(void) const {
  28877. return mMyField;
  28878. };
  28879. void setMyField(int32_t m) {
  28880. mMyField = m;
  28881. };
  28882. ...
  28883. </code></pre>
  28884. For a ustring or buffer or composite field. The generated code
  28885. only contains accessors that return a reference to the field. A const
  28886. and a non-const accessor are generated. For example:
  28887. <pre><code>
  28888. ...
  28889. private:
  28890. std::string mMyBuf;
  28891. ...
  28892. public:
  28893. std::string& getMyBuf() {
  28894. return mMyBuf;
  28895. };
  28896. const std::string& getMyBuf() const {
  28897. return mMyBuf;
  28898. };
  28899. ...
  28900. </code></pre>
  28901. <h4>Examples</h4>
  28902. Suppose the inclrec.jr file contains:
  28903. <pre><code>
  28904. module inclrec {
  28905. class RI {
  28906. int I32;
  28907. double D;
  28908. ustring S;
  28909. };
  28910. }
  28911. </code></pre>
  28912. and the testrec.jr file contains:
  28913. <pre><code>
  28914. include "inclrec.jr"
  28915. module testrec {
  28916. class R {
  28917. vector<float> VF;
  28918. RI Rec;
  28919. buffer Buf;
  28920. };
  28921. }
  28922. </code></pre>
  28923. Then the invocation of rcc such as:
  28924. <pre><code>
  28925. $ rcc -l c++ inclrec.jr testrec.jr
  28926. </code></pre>
  28927. will result in generation of four files:
  28928. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  28929. The inclrec.jr.hh will contain:
  28930. <pre><code>
  28931. #ifndef _INCLREC_JR_HH_
  28932. #define _INCLREC_JR_HH_
  28933. #include "recordio.hh"
  28934. namespace inclrec {
  28935. class RI : public hadoop::Record {
  28936. private:
  28937. int32_t I32;
  28938. double D;
  28939. std::string S;
  28940. public:
  28941. RI(void);
  28942. virtual ~RI(void);
  28943. virtual bool operator==(const RI& peer) const;
  28944. virtual bool operator<(const RI& peer) const;
  28945. virtual int32_t getI32(void) const { return I32; }
  28946. virtual void setI32(int32_t v) { I32 = v; }
  28947. virtual double getD(void) const { return D; }
  28948. virtual void setD(double v) { D = v; }
  28949. virtual std::string& getS(void) const { return S; }
  28950. virtual const std::string& getS(void) const { return S; }
  28951. virtual std::string type(void) const;
  28952. virtual std::string signature(void) const;
  28953. protected:
  28954. virtual void serialize(hadoop::OArchive& a) const;
  28955. virtual void deserialize(hadoop::IArchive& a);
  28956. };
  28957. } // end namespace inclrec
  28958. #endif /* _INCLREC_JR_HH_ */
  28959. </code></pre>
  28960. The testrec.jr.hh file will contain:
  28961. <pre><code>
  28962. #ifndef _TESTREC_JR_HH_
  28963. #define _TESTREC_JR_HH_
  28964. #include "inclrec.jr.hh"
  28965. namespace testrec {
  28966. class R : public hadoop::Record {
  28967. private:
  28968. std::vector<float> VF;
  28969. inclrec::RI Rec;
  28970. std::string Buf;
  28971. public:
  28972. R(void);
  28973. virtual ~R(void);
  28974. virtual bool operator==(const R& peer) const;
  28975. virtual bool operator<(const R& peer) const;
  28976. virtual std::vector<float>& getVF(void) const;
  28977. virtual const std::vector<float>& getVF(void) const;
  28978. virtual std::string& getBuf(void) const ;
  28979. virtual const std::string& getBuf(void) const;
  28980. virtual inclrec::RI& getRec(void) const;
  28981. virtual const inclrec::RI& getRec(void) const;
  28982. virtual bool serialize(hadoop::OutArchive& a) const;
  28983. virtual bool deserialize(hadoop::InArchive& a);
  28984. virtual std::string type(void) const;
  28985. virtual std::string signature(void) const;
  28986. };
  28987. }; // end namespace testrec
  28988. #endif /* _TESTREC_JR_HH_ */
  28989. </code></pre>
  28990. <h3>Java</h3>
  28991. Code generation for Java is similar to that for C++. A Java class is generated
  28992. for each record type with private members corresponding to the fields. Getters
  28993. and setters for fields are also generated. Some differences arise in the
  28994. way comparison is expressed and in the mapping of modules to packages and
  28995. classes to files. For equality testing, an equals method is generated
  28996. for each record type. As per Java requirements a hashCode method is also
  28997. generated. For comparison a compareTo method is generated for each
  28998. record type. This has the semantics as defined by the Java Comparable
  28999. interface, that is, the method returns a negative integer, zero, or a positive
  29000. integer as the invoked object is less than, equal to, or greater than the
  29001. comparison parameter.
  29002. A .java file is generated per record type as opposed to per DDL
  29003. file as in C++. The module declaration translates to a Java
  29004. package declaration. The module name maps to an identical Java package
  29005. name. In addition to this mapping, the DDL compiler creates the appropriate
  29006. directory hierarchy for the package and places the generated .java
  29007. files in the correct directories.
  29008. <h2>Mapping Summary</h2>
  29009. <pre><code>
  29010. DDL Type C++ Type Java Type
  29011. boolean bool boolean
  29012. byte int8_t byte
  29013. int int32_t int
  29014. long int64_t long
  29015. float float float
  29016. double double double
  29017. ustring std::string java.lang.String
  29018. buffer std::string org.apache.hadoop.record.Buffer
  29019. class type class type class type
  29020. vector<type> std::vector<type> java.util.ArrayList<type>
  29021. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  29022. </code></pre>
  29023. <h2>Data encodings</h2>
  29024. This section describes the format of the data encodings supported by Hadoop.
  29025. Currently, three data encodings are supported, namely binary, CSV and XML.
  29026. <h3>Binary Serialization Format</h3>
  29027. The binary data encoding format is fairly dense. Serialization of composite
  29028. types is simply defined as a concatenation of serializations of the constituent
  29029. elements (lengths are included in vectors and maps).
  29030. Composite types are serialized as follows:
  29031. <ul>
  29032. <li> class: Sequence of serialized members.
  29033. <li> vector: The number of elements serialized as an int. Followed by a
  29034. sequence of serialized elements.
  29035. <li> map: The number of key value pairs serialized as an int. Followed
  29036. by a sequence of serialized (key,value) pairs.
  29037. </ul>
  29038. Serialization of primitives is more interesting, with a zero compression
  29039. optimization for integral types and normalization to UTF-8 for strings.
  29040. Primitive types are serialized as follows:
  29041. <ul>
  29042. <li> byte: Represented by 1 byte, as is.
  29043. <li> boolean: Represented by 1-byte (0 or 1)
  29044. <li> int/long: Integers and longs are serialized zero compressed.
  29045. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  29046. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  29047. the number of trailing bytes, N, as the negative number (-120-N). For example,
  29048. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  29049. This doesn't help much for 4-byte integers but does a reasonably good job with
  29050. longs without bit twiddling.
  29051. <li> float/double: Serialized in IEEE 754 single and double precision
  29052. format in network byte order. This is the format used by Java.
  29053. <li> ustring: Serialized as 4-byte zero compressed length followed by
  29054. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  29055. language representation.
  29056. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  29057. raw bytes in the buffer.
  29058. </ul>
  29059. <h3>CSV Serialization Format</h3>
  29060. The CSV serialization format has a lot more structure than the "standard"
  29061. Excel CSV format, but we believe the additional structure is useful because
  29062. <ul>
  29063. <li> it makes parsing a lot easier without detracting too much from legibility
  29064. <li> the delimiters around composites make it obvious when one is reading a
  29065. sequence of Hadoop records
  29066. </ul>
  29067. Serialization formats for the various types are detailed in the grammar that
  29068. follows. The notable feature of the formats is the use of delimiters for
  29069. indicating the certain field types.
  29070. <ul>
  29071. <li> A string field begins with a single quote (').
  29072. <li> A buffer field begins with a sharp (#).
  29073. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  29074. ends with '}'.
  29075. </ul>
  29076. The CSV format can be described by the following grammar:
  29077. <pre><code>
  29078. record = primitive / struct / vector / map
  29079. primitive = boolean / int / long / float / double / ustring / buffer
  29080. boolean = "T" / "F"
  29081. int = ["-"] 1*DIGIT
  29082. long = ";" ["-"] 1*DIGIT
  29083. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  29084. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  29085. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  29086. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  29087. struct = "s{" record *("," record) "}"
  29088. vector = "v{" [record *("," record)] "}"
  29089. map = "m{" [*(record "," record)] "}"
  29090. </code></pre>
  29091. <h3>XML Serialization Format</h3>
  29092. The XML serialization format is the same used by Apache XML-RPC
  29093. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  29094. XML-RPC format and adds some additional data types. All record I/O types are
  29095. not directly expressible in this format, and access to a DDL is required in
  29096. order to convert these to valid types. All types primitive or composite are
  29097. represented by &lt;value&gt; elements. The particular XML-RPC type is
  29098. indicated by a nested element in the &lt;value&gt; element. The encoding for
  29099. records is always UTF-8. Primitive types are serialized as follows:
  29100. <ul>
  29101. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  29102. integers represented in US-ASCII
  29103. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  29104. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  29105. signed integers represented in US-ASCII.
  29106. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  29107. represented in US-ASCII.
  29108. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  29109. floating point numbers represented in US-ASCII.
  29110. <li> double: XML tag &lt;double&gt;. Values: Double precision
  29111. floating point numbers represented in US-ASCII.
  29112. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  29113. represented as UTF-8. XML does not permit all Unicode characters in literal
  29114. data. In particular, NULLs and control chars are not allowed. Additionally,
  29115. XML processors are required to replace carriage returns with line feeds and to
  29116. replace CRLF sequences with line feeds. Programming languages that we work
  29117. with do not impose these restrictions on string types. To work around these
  29118. restrictions, disallowed characters and CRs are percent escaped in strings.
  29119. The '%' character is also percent escaped.
  29120. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  29121. data. Represented as hexBinary, each byte is replaced by its 2-byte
  29122. hexadecimal representation.
  29123. </ul>
  29124. Composite types are serialized as follows:
  29125. <ul>
  29126. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  29127. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  29128. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  29129. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  29130. by a &lt;value&gt; element.
  29131. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  29132. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  29133. &lt;value&gt; elements each of which represents an element of the vector.
  29134. <li> map: XML tag &lt;array&gt;. Same as vector.
  29135. </ul>
  29136. For example:
  29137. <pre><code>
  29138. class {
  29139. int MY_INT; // value 5
  29140. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  29141. buffer MY_BUF; // value '\00\n\tabc%'
  29142. }
  29143. </code></pre>
  29144. is serialized as
  29145. <pre><code class="XML">
  29146. &lt;value&gt;
  29147. &lt;struct&gt;
  29148. &lt;member&gt;
  29149. &lt;name&gt;MY_INT&lt;/name&gt;
  29150. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  29151. &lt;/member&gt;
  29152. &lt;member&gt;
  29153. &lt;name&gt;MY_VEC&lt;/name&gt;
  29154. &lt;value&gt;
  29155. &lt;array&gt;
  29156. &lt;data&gt;
  29157. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  29158. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  29159. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  29160. &lt;/data&gt;
  29161. &lt;/array&gt;
  29162. &lt;/value&gt;
  29163. &lt;/member&gt;
  29164. &lt;member&gt;
  29165. &lt;name&gt;MY_BUF&lt;/name&gt;
  29166. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  29167. &lt;/member&gt;
  29168. &lt;/struct&gt;
  29169. &lt;/value&gt;
  29170. </code></pre>]]>
  29171. </doc>
  29172. </package>
  29173. <package name="org.apache.hadoop.record.compiler">
  29174. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  29175. <class name="CodeBuffer" extends="java.lang.Object"
  29176. abstract="false"
  29177. static="false" final="false" visibility="public"
  29178. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29179. <method name="toString" return="java.lang.String"
  29180. abstract="false" native="false" synchronized="false"
  29181. static="false" final="false" visibility="public"
  29182. deprecated="not deprecated">
  29183. </method>
  29184. <doc>
  29185. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  29186. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29187. </doc>
  29188. </class>
  29189. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  29190. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  29191. <class name="Consts" extends="java.lang.Object"
  29192. abstract="false"
  29193. static="false" final="false" visibility="public"
  29194. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29195. <field name="RIO_PREFIX" type="java.lang.String"
  29196. transient="false" volatile="false"
  29197. static="true" final="true" visibility="public"
  29198. deprecated="not deprecated">
  29199. </field>
  29200. <field name="RTI_VAR" type="java.lang.String"
  29201. transient="false" volatile="false"
  29202. static="true" final="true" visibility="public"
  29203. deprecated="not deprecated">
  29204. </field>
  29205. <field name="RTI_FILTER" type="java.lang.String"
  29206. transient="false" volatile="false"
  29207. static="true" final="true" visibility="public"
  29208. deprecated="not deprecated">
  29209. </field>
  29210. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  29211. transient="false" volatile="false"
  29212. static="true" final="true" visibility="public"
  29213. deprecated="not deprecated">
  29214. </field>
  29215. <field name="RECORD_OUTPUT" type="java.lang.String"
  29216. transient="false" volatile="false"
  29217. static="true" final="true" visibility="public"
  29218. deprecated="not deprecated">
  29219. </field>
  29220. <field name="RECORD_INPUT" type="java.lang.String"
  29221. transient="false" volatile="false"
  29222. static="true" final="true" visibility="public"
  29223. deprecated="not deprecated">
  29224. </field>
  29225. <field name="TAG" type="java.lang.String"
  29226. transient="false" volatile="false"
  29227. static="true" final="true" visibility="public"
  29228. deprecated="not deprecated">
  29229. </field>
  29230. <doc>
  29231. <![CDATA[const definitions for Record I/O compiler
  29232. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29233. </doc>
  29234. </class>
  29235. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  29236. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  29237. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  29238. abstract="false"
  29239. static="false" final="false" visibility="public"
  29240. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29241. <constructor name="JBoolean"
  29242. static="false" final="false" visibility="public"
  29243. deprecated="not deprecated">
  29244. <doc>
  29245. <![CDATA[Creates a new instance of JBoolean]]>
  29246. </doc>
  29247. </constructor>
  29248. <doc>
  29249. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29250. </doc>
  29251. </class>
  29252. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  29253. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  29254. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  29255. abstract="false"
  29256. static="false" final="false" visibility="public"
  29257. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29258. <constructor name="JBuffer"
  29259. static="false" final="false" visibility="public"
  29260. deprecated="not deprecated">
  29261. <doc>
  29262. <![CDATA[Creates a new instance of JBuffer]]>
  29263. </doc>
  29264. </constructor>
  29265. <doc>
  29266. <![CDATA[Code generator for "buffer" type.
  29267. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29268. </doc>
  29269. </class>
  29270. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  29271. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  29272. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  29273. abstract="false"
  29274. static="false" final="false" visibility="public"
  29275. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29276. <constructor name="JByte"
  29277. static="false" final="false" visibility="public"
  29278. deprecated="not deprecated">
  29279. </constructor>
  29280. <doc>
  29281. <![CDATA[Code generator for "byte" type.
  29282. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29283. </doc>
  29284. </class>
  29285. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  29286. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  29287. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  29288. abstract="false"
  29289. static="false" final="false" visibility="public"
  29290. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29291. <constructor name="JDouble"
  29292. static="false" final="false" visibility="public"
  29293. deprecated="not deprecated">
  29294. <doc>
  29295. <![CDATA[Creates a new instance of JDouble]]>
  29296. </doc>
  29297. </constructor>
  29298. <doc>
  29299. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29300. </doc>
  29301. </class>
  29302. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  29303. <!-- start class org.apache.hadoop.record.compiler.JField -->
  29304. <class name="JField" extends="java.lang.Object"
  29305. abstract="false"
  29306. static="false" final="false" visibility="public"
  29307. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29308. <constructor name="JField" type="java.lang.String, T"
  29309. static="false" final="false" visibility="public"
  29310. deprecated="not deprecated">
  29311. <doc>
  29312. <![CDATA[Creates a new instance of JField]]>
  29313. </doc>
  29314. </constructor>
  29315. <doc>
  29316. <![CDATA[A thin wrappper around record field.
  29317. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29318. </doc>
  29319. </class>
  29320. <!-- end class org.apache.hadoop.record.compiler.JField -->
  29321. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  29322. <class name="JFile" extends="java.lang.Object"
  29323. abstract="false"
  29324. static="false" final="false" visibility="public"
  29325. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29326. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  29327. static="false" final="false" visibility="public"
  29328. deprecated="not deprecated">
  29329. <doc>
  29330. <![CDATA[Creates a new instance of JFile
  29331. @param name possibly full pathname to the file
  29332. @param inclFiles included files (as JFile)
  29333. @param recList List of records defined within this file]]>
  29334. </doc>
  29335. </constructor>
  29336. <method name="genCode" return="int"
  29337. abstract="false" native="false" synchronized="false"
  29338. static="false" final="false" visibility="public"
  29339. deprecated="not deprecated">
  29340. <param name="language" type="java.lang.String"/>
  29341. <param name="destDir" type="java.lang.String"/>
  29342. <param name="options" type="java.util.ArrayList"/>
  29343. <exception name="IOException" type="java.io.IOException"/>
  29344. <doc>
  29345. <![CDATA[Generate record code in given language. Language should be all
  29346. lowercase.]]>
  29347. </doc>
  29348. </method>
  29349. <doc>
  29350. <![CDATA[Container for the Hadoop Record DDL.
  29351. The main components of the file are filename, list of included files,
  29352. and records defined in that file.
  29353. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29354. </doc>
  29355. </class>
  29356. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  29357. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  29358. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  29359. abstract="false"
  29360. static="false" final="false" visibility="public"
  29361. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29362. <constructor name="JFloat"
  29363. static="false" final="false" visibility="public"
  29364. deprecated="not deprecated">
  29365. <doc>
  29366. <![CDATA[Creates a new instance of JFloat]]>
  29367. </doc>
  29368. </constructor>
  29369. <doc>
  29370. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29371. </doc>
  29372. </class>
  29373. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  29374. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  29375. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  29376. abstract="false"
  29377. static="false" final="false" visibility="public"
  29378. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29379. <constructor name="JInt"
  29380. static="false" final="false" visibility="public"
  29381. deprecated="not deprecated">
  29382. <doc>
  29383. <![CDATA[Creates a new instance of JInt]]>
  29384. </doc>
  29385. </constructor>
  29386. <doc>
  29387. <![CDATA[Code generator for "int" type
  29388. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29389. </doc>
  29390. </class>
  29391. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  29392. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  29393. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  29394. abstract="false"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29397. <constructor name="JLong"
  29398. static="false" final="false" visibility="public"
  29399. deprecated="not deprecated">
  29400. <doc>
  29401. <![CDATA[Creates a new instance of JLong]]>
  29402. </doc>
  29403. </constructor>
  29404. <doc>
  29405. <![CDATA[Code generator for "long" type
  29406. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29407. </doc>
  29408. </class>
  29409. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  29410. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  29411. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  29412. abstract="false"
  29413. static="false" final="false" visibility="public"
  29414. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29415. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  29416. static="false" final="false" visibility="public"
  29417. deprecated="not deprecated">
  29418. <doc>
  29419. <![CDATA[Creates a new instance of JMap]]>
  29420. </doc>
  29421. </constructor>
  29422. <doc>
  29423. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29424. </doc>
  29425. </class>
  29426. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  29427. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  29428. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  29429. abstract="false"
  29430. static="false" final="false" visibility="public"
  29431. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29432. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  29433. static="false" final="false" visibility="public"
  29434. deprecated="not deprecated">
  29435. <doc>
  29436. <![CDATA[Creates a new instance of JRecord]]>
  29437. </doc>
  29438. </constructor>
  29439. <doc>
  29440. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29441. </doc>
  29442. </class>
  29443. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  29444. <!-- start class org.apache.hadoop.record.compiler.JString -->
  29445. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  29446. abstract="false"
  29447. static="false" final="false" visibility="public"
  29448. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29449. <constructor name="JString"
  29450. static="false" final="false" visibility="public"
  29451. deprecated="not deprecated">
  29452. <doc>
  29453. <![CDATA[Creates a new instance of JString]]>
  29454. </doc>
  29455. </constructor>
  29456. <doc>
  29457. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29458. </doc>
  29459. </class>
  29460. <!-- end class org.apache.hadoop.record.compiler.JString -->
  29461. <!-- start class org.apache.hadoop.record.compiler.JType -->
  29462. <class name="JType" extends="java.lang.Object"
  29463. abstract="true"
  29464. static="false" final="false" visibility="public"
  29465. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29466. <constructor name="JType"
  29467. static="false" final="false" visibility="public"
  29468. deprecated="not deprecated">
  29469. </constructor>
  29470. <doc>
  29471. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  29472. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29473. </doc>
  29474. </class>
  29475. <!-- end class org.apache.hadoop.record.compiler.JType -->
  29476. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  29477. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  29478. abstract="false"
  29479. static="false" final="false" visibility="public"
  29480. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29481. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  29482. static="false" final="false" visibility="public"
  29483. deprecated="not deprecated">
  29484. <doc>
  29485. <![CDATA[Creates a new instance of JVector]]>
  29486. </doc>
  29487. </constructor>
  29488. <doc>
  29489. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29490. </doc>
  29491. </class>
  29492. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  29493. <doc>
  29494. <![CDATA[<p>
  29495. (DEPRECATED) This package contains classes needed for code generation
  29496. from the hadoop record compiler. CppGenerator and JavaGenerator
  29497. are the main entry points from the parser. There are classes
  29498. corrsponding to every primitive type and compound type
  29499. included in Hadoop record I/O syntax.
  29500. </p>
  29501. <p>
  29502. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  29503. </p>]]>
  29504. </doc>
  29505. </package>
  29506. <package name="org.apache.hadoop.record.compiler.ant">
  29507. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  29508. <class name="RccTask" extends="org.apache.tools.ant.Task"
  29509. abstract="false"
  29510. static="false" final="false" visibility="public"
  29511. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29512. <constructor name="RccTask"
  29513. static="false" final="false" visibility="public"
  29514. deprecated="not deprecated">
  29515. <doc>
  29516. <![CDATA[Creates a new instance of RccTask]]>
  29517. </doc>
  29518. </constructor>
  29519. <method name="setLanguage"
  29520. abstract="false" native="false" synchronized="false"
  29521. static="false" final="false" visibility="public"
  29522. deprecated="not deprecated">
  29523. <param name="language" type="java.lang.String"/>
  29524. <doc>
  29525. <![CDATA[Sets the output language option
  29526. @param language "java"/"c++"]]>
  29527. </doc>
  29528. </method>
  29529. <method name="setFile"
  29530. abstract="false" native="false" synchronized="false"
  29531. static="false" final="false" visibility="public"
  29532. deprecated="not deprecated">
  29533. <param name="file" type="java.io.File"/>
  29534. <doc>
  29535. <![CDATA[Sets the record definition file attribute
  29536. @param file record definition file]]>
  29537. </doc>
  29538. </method>
  29539. <method name="setFailonerror"
  29540. abstract="false" native="false" synchronized="false"
  29541. static="false" final="false" visibility="public"
  29542. deprecated="not deprecated">
  29543. <param name="flag" type="boolean"/>
  29544. <doc>
  29545. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  29546. @param flag true will throw build exception in case of failure (default)]]>
  29547. </doc>
  29548. </method>
  29549. <method name="setDestdir"
  29550. abstract="false" native="false" synchronized="false"
  29551. static="false" final="false" visibility="public"
  29552. deprecated="not deprecated">
  29553. <param name="dir" type="java.io.File"/>
  29554. <doc>
  29555. <![CDATA[Sets directory where output files will be generated
  29556. @param dir output directory]]>
  29557. </doc>
  29558. </method>
  29559. <method name="addFileset"
  29560. abstract="false" native="false" synchronized="false"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  29564. <doc>
  29565. <![CDATA[Adds a fileset that can consist of one or more files
  29566. @param set Set of record definition files]]>
  29567. </doc>
  29568. </method>
  29569. <method name="execute"
  29570. abstract="false" native="false" synchronized="false"
  29571. static="false" final="false" visibility="public"
  29572. deprecated="not deprecated">
  29573. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  29574. <doc>
  29575. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  29576. </doc>
  29577. </method>
  29578. <doc>
  29579. <![CDATA[Hadoop record compiler ant Task
  29580. <p> This task takes the given record definition files and compiles them into
  29581. java or c++
  29582. files. It is then up to the user to compile the generated files.
  29583. <p> The task requires the <code>file</code> or the nested fileset element to be
  29584. specified. Optional attributes are <code>language</code> (set the output
  29585. language, default is "java"),
  29586. <code>destdir</code> (name of the destination directory for generated java/c++
  29587. code, default is ".") and <code>failonerror</code> (specifies error handling
  29588. behavior. default is true).
  29589. <p><h4>Usage</h4>
  29590. <pre>
  29591. &lt;recordcc
  29592. destdir="${basedir}/gensrc"
  29593. language="java"&gt;
  29594. &lt;fileset include="**\/*.jr" /&gt;
  29595. &lt;/recordcc&gt;
  29596. </pre>
  29597. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29598. </doc>
  29599. </class>
  29600. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  29601. </package>
  29602. <package name="org.apache.hadoop.record.compiler.generated">
  29603. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  29604. <class name="ParseException" extends="java.lang.Exception"
  29605. abstract="false"
  29606. static="false" final="false" visibility="public"
  29607. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29608. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  29609. static="false" final="false" visibility="public"
  29610. deprecated="not deprecated">
  29611. <doc>
  29612. <![CDATA[This constructor is used by the method "generateParseException"
  29613. in the generated parser. Calling this constructor generates
  29614. a new object of this type with the fields "currentToken",
  29615. "expectedTokenSequences", and "tokenImage" set. The boolean
  29616. flag "specialConstructor" is also set to true to indicate that
  29617. this constructor was used to create this object.
  29618. This constructor calls its super class with the empty string
  29619. to force the "toString" method of parent class "Throwable" to
  29620. print the error message in the form:
  29621. ParseException: <result of getMessage>]]>
  29622. </doc>
  29623. </constructor>
  29624. <constructor name="ParseException"
  29625. static="false" final="false" visibility="public"
  29626. deprecated="not deprecated">
  29627. <doc>
  29628. <![CDATA[The following constructors are for use by you for whatever
  29629. purpose you can think of. Constructing the exception in this
  29630. manner makes the exception behave in the normal way - i.e., as
  29631. documented in the class "Throwable". The fields "errorToken",
  29632. "expectedTokenSequences", and "tokenImage" do not contain
  29633. relevant information. The JavaCC generated code does not use
  29634. these constructors.]]>
  29635. </doc>
  29636. </constructor>
  29637. <constructor name="ParseException" type="java.lang.String"
  29638. static="false" final="false" visibility="public"
  29639. deprecated="not deprecated">
  29640. </constructor>
  29641. <method name="getMessage" return="java.lang.String"
  29642. abstract="false" native="false" synchronized="false"
  29643. static="false" final="false" visibility="public"
  29644. deprecated="not deprecated">
  29645. <doc>
  29646. <![CDATA[This method has the standard behavior when this object has been
  29647. created using the standard constructors. Otherwise, it uses
  29648. "currentToken" and "expectedTokenSequences" to generate a parse
  29649. error message and returns it. If this object has been created
  29650. due to a parse error, and you do not catch it (it gets thrown
  29651. from the parser), then this method is called during the printing
  29652. of the final stack trace, and hence the correct error message
  29653. gets displayed.]]>
  29654. </doc>
  29655. </method>
  29656. <method name="add_escapes" return="java.lang.String"
  29657. abstract="false" native="false" synchronized="false"
  29658. static="false" final="false" visibility="protected"
  29659. deprecated="not deprecated">
  29660. <param name="str" type="java.lang.String"/>
  29661. <doc>
  29662. <![CDATA[Used to convert raw characters to their escaped version
  29663. when these raw version cannot be used as part of an ASCII
  29664. string literal.]]>
  29665. </doc>
  29666. </method>
  29667. <field name="specialConstructor" type="boolean"
  29668. transient="false" volatile="false"
  29669. static="false" final="false" visibility="protected"
  29670. deprecated="not deprecated">
  29671. <doc>
  29672. <![CDATA[This variable determines which constructor was used to create
  29673. this object and thereby affects the semantics of the
  29674. "getMessage" method (see below).]]>
  29675. </doc>
  29676. </field>
  29677. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  29678. transient="false" volatile="false"
  29679. static="false" final="false" visibility="public"
  29680. deprecated="not deprecated">
  29681. <doc>
  29682. <![CDATA[This is the last token that has been consumed successfully. If
  29683. this object has been created due to a parse error, the token
  29684. followng this token will (therefore) be the first error token.]]>
  29685. </doc>
  29686. </field>
  29687. <field name="expectedTokenSequences" type="int[][]"
  29688. transient="false" volatile="false"
  29689. static="false" final="false" visibility="public"
  29690. deprecated="not deprecated">
  29691. <doc>
  29692. <![CDATA[Each entry in this array is an array of integers. Each array
  29693. of integers represents a sequence of tokens (by their ordinal
  29694. values) that is expected at this point of the parse.]]>
  29695. </doc>
  29696. </field>
  29697. <field name="tokenImage" type="java.lang.String[]"
  29698. transient="false" volatile="false"
  29699. static="false" final="false" visibility="public"
  29700. deprecated="not deprecated">
  29701. <doc>
  29702. <![CDATA[This is a reference to the "tokenImage" array of the generated
  29703. parser within which the parse error occurred. This array is
  29704. defined in the generated ...Constants interface.]]>
  29705. </doc>
  29706. </field>
  29707. <field name="eol" type="java.lang.String"
  29708. transient="false" volatile="false"
  29709. static="false" final="false" visibility="protected"
  29710. deprecated="not deprecated">
  29711. <doc>
  29712. <![CDATA[The end of line string for this machine.]]>
  29713. </doc>
  29714. </field>
  29715. <doc>
  29716. <![CDATA[This exception is thrown when parse errors are encountered.
  29717. You can explicitly create objects of this exception type by
  29718. calling the method generateParseException in the generated
  29719. parser.
  29720. You can modify this class to customize your error reporting
  29721. mechanisms so long as you retain the public fields.
  29722. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29723. </doc>
  29724. </class>
  29725. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  29726. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  29727. <class name="Rcc" extends="java.lang.Object"
  29728. abstract="false"
  29729. static="false" final="false" visibility="public"
  29730. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29731. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  29732. <constructor name="Rcc" type="java.io.InputStream"
  29733. static="false" final="false" visibility="public"
  29734. deprecated="not deprecated">
  29735. </constructor>
  29736. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  29737. static="false" final="false" visibility="public"
  29738. deprecated="not deprecated">
  29739. </constructor>
  29740. <constructor name="Rcc" type="java.io.Reader"
  29741. static="false" final="false" visibility="public"
  29742. deprecated="not deprecated">
  29743. </constructor>
  29744. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  29745. static="false" final="false" visibility="public"
  29746. deprecated="not deprecated">
  29747. </constructor>
  29748. <method name="main"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="true" final="false" visibility="public"
  29751. deprecated="not deprecated">
  29752. <param name="args" type="java.lang.String[]"/>
  29753. </method>
  29754. <method name="usage"
  29755. abstract="false" native="false" synchronized="false"
  29756. static="true" final="false" visibility="public"
  29757. deprecated="not deprecated">
  29758. </method>
  29759. <method name="driver" return="int"
  29760. abstract="false" native="false" synchronized="false"
  29761. static="true" final="false" visibility="public"
  29762. deprecated="not deprecated">
  29763. <param name="args" type="java.lang.String[]"/>
  29764. </method>
  29765. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  29766. abstract="false" native="false" synchronized="false"
  29767. static="false" final="true" visibility="public"
  29768. deprecated="not deprecated">
  29769. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29770. </method>
  29771. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  29772. abstract="false" native="false" synchronized="false"
  29773. static="false" final="true" visibility="public"
  29774. deprecated="not deprecated">
  29775. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29776. </method>
  29777. <method name="Module" return="java.util.ArrayList"
  29778. abstract="false" native="false" synchronized="false"
  29779. static="false" final="true" visibility="public"
  29780. deprecated="not deprecated">
  29781. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29782. </method>
  29783. <method name="ModuleName" return="java.lang.String"
  29784. abstract="false" native="false" synchronized="false"
  29785. static="false" final="true" visibility="public"
  29786. deprecated="not deprecated">
  29787. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29788. </method>
  29789. <method name="RecordList" return="java.util.ArrayList"
  29790. abstract="false" native="false" synchronized="false"
  29791. static="false" final="true" visibility="public"
  29792. deprecated="not deprecated">
  29793. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29794. </method>
  29795. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  29796. abstract="false" native="false" synchronized="false"
  29797. static="false" final="true" visibility="public"
  29798. deprecated="not deprecated">
  29799. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29800. </method>
  29801. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  29802. abstract="false" native="false" synchronized="false"
  29803. static="false" final="true" visibility="public"
  29804. deprecated="not deprecated">
  29805. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29806. </method>
  29807. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  29808. abstract="false" native="false" synchronized="false"
  29809. static="false" final="true" visibility="public"
  29810. deprecated="not deprecated">
  29811. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29812. </method>
  29813. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  29814. abstract="false" native="false" synchronized="false"
  29815. static="false" final="true" visibility="public"
  29816. deprecated="not deprecated">
  29817. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29818. </method>
  29819. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  29820. abstract="false" native="false" synchronized="false"
  29821. static="false" final="true" visibility="public"
  29822. deprecated="not deprecated">
  29823. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29824. </method>
  29825. <method name="ReInit"
  29826. abstract="false" native="false" synchronized="false"
  29827. static="false" final="false" visibility="public"
  29828. deprecated="not deprecated">
  29829. <param name="stream" type="java.io.InputStream"/>
  29830. </method>
  29831. <method name="ReInit"
  29832. abstract="false" native="false" synchronized="false"
  29833. static="false" final="false" visibility="public"
  29834. deprecated="not deprecated">
  29835. <param name="stream" type="java.io.InputStream"/>
  29836. <param name="encoding" type="java.lang.String"/>
  29837. </method>
  29838. <method name="ReInit"
  29839. abstract="false" native="false" synchronized="false"
  29840. static="false" final="false" visibility="public"
  29841. deprecated="not deprecated">
  29842. <param name="stream" type="java.io.Reader"/>
  29843. </method>
  29844. <method name="ReInit"
  29845. abstract="false" native="false" synchronized="false"
  29846. static="false" final="false" visibility="public"
  29847. deprecated="not deprecated">
  29848. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  29849. </method>
  29850. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  29851. abstract="false" native="false" synchronized="false"
  29852. static="false" final="true" visibility="public"
  29853. deprecated="not deprecated">
  29854. </method>
  29855. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  29856. abstract="false" native="false" synchronized="false"
  29857. static="false" final="true" visibility="public"
  29858. deprecated="not deprecated">
  29859. <param name="index" type="int"/>
  29860. </method>
  29861. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  29862. abstract="false" native="false" synchronized="false"
  29863. static="false" final="false" visibility="public"
  29864. deprecated="not deprecated">
  29865. </method>
  29866. <method name="enable_tracing"
  29867. abstract="false" native="false" synchronized="false"
  29868. static="false" final="true" visibility="public"
  29869. deprecated="not deprecated">
  29870. </method>
  29871. <method name="disable_tracing"
  29872. abstract="false" native="false" synchronized="false"
  29873. static="false" final="true" visibility="public"
  29874. deprecated="not deprecated">
  29875. </method>
  29876. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  29877. transient="false" volatile="false"
  29878. static="false" final="false" visibility="public"
  29879. deprecated="not deprecated">
  29880. </field>
  29881. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  29882. transient="false" volatile="false"
  29883. static="false" final="false" visibility="public"
  29884. deprecated="not deprecated">
  29885. </field>
  29886. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  29887. transient="false" volatile="false"
  29888. static="false" final="false" visibility="public"
  29889. deprecated="not deprecated">
  29890. </field>
  29891. <doc>
  29892. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29893. </doc>
  29894. </class>
  29895. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  29896. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  29897. <interface name="RccConstants" abstract="true"
  29898. static="false" final="false" visibility="public"
  29899. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29900. <field name="EOF" type="int"
  29901. transient="false" volatile="false"
  29902. static="true" final="true" visibility="public"
  29903. deprecated="not deprecated">
  29904. </field>
  29905. <field name="MODULE_TKN" type="int"
  29906. transient="false" volatile="false"
  29907. static="true" final="true" visibility="public"
  29908. deprecated="not deprecated">
  29909. </field>
  29910. <field name="RECORD_TKN" type="int"
  29911. transient="false" volatile="false"
  29912. static="true" final="true" visibility="public"
  29913. deprecated="not deprecated">
  29914. </field>
  29915. <field name="INCLUDE_TKN" type="int"
  29916. transient="false" volatile="false"
  29917. static="true" final="true" visibility="public"
  29918. deprecated="not deprecated">
  29919. </field>
  29920. <field name="BYTE_TKN" type="int"
  29921. transient="false" volatile="false"
  29922. static="true" final="true" visibility="public"
  29923. deprecated="not deprecated">
  29924. </field>
  29925. <field name="BOOLEAN_TKN" type="int"
  29926. transient="false" volatile="false"
  29927. static="true" final="true" visibility="public"
  29928. deprecated="not deprecated">
  29929. </field>
  29930. <field name="INT_TKN" type="int"
  29931. transient="false" volatile="false"
  29932. static="true" final="true" visibility="public"
  29933. deprecated="not deprecated">
  29934. </field>
  29935. <field name="LONG_TKN" type="int"
  29936. transient="false" volatile="false"
  29937. static="true" final="true" visibility="public"
  29938. deprecated="not deprecated">
  29939. </field>
  29940. <field name="FLOAT_TKN" type="int"
  29941. transient="false" volatile="false"
  29942. static="true" final="true" visibility="public"
  29943. deprecated="not deprecated">
  29944. </field>
  29945. <field name="DOUBLE_TKN" type="int"
  29946. transient="false" volatile="false"
  29947. static="true" final="true" visibility="public"
  29948. deprecated="not deprecated">
  29949. </field>
  29950. <field name="USTRING_TKN" type="int"
  29951. transient="false" volatile="false"
  29952. static="true" final="true" visibility="public"
  29953. deprecated="not deprecated">
  29954. </field>
  29955. <field name="BUFFER_TKN" type="int"
  29956. transient="false" volatile="false"
  29957. static="true" final="true" visibility="public"
  29958. deprecated="not deprecated">
  29959. </field>
  29960. <field name="VECTOR_TKN" type="int"
  29961. transient="false" volatile="false"
  29962. static="true" final="true" visibility="public"
  29963. deprecated="not deprecated">
  29964. </field>
  29965. <field name="MAP_TKN" type="int"
  29966. transient="false" volatile="false"
  29967. static="true" final="true" visibility="public"
  29968. deprecated="not deprecated">
  29969. </field>
  29970. <field name="LBRACE_TKN" type="int"
  29971. transient="false" volatile="false"
  29972. static="true" final="true" visibility="public"
  29973. deprecated="not deprecated">
  29974. </field>
  29975. <field name="RBRACE_TKN" type="int"
  29976. transient="false" volatile="false"
  29977. static="true" final="true" visibility="public"
  29978. deprecated="not deprecated">
  29979. </field>
  29980. <field name="LT_TKN" type="int"
  29981. transient="false" volatile="false"
  29982. static="true" final="true" visibility="public"
  29983. deprecated="not deprecated">
  29984. </field>
  29985. <field name="GT_TKN" type="int"
  29986. transient="false" volatile="false"
  29987. static="true" final="true" visibility="public"
  29988. deprecated="not deprecated">
  29989. </field>
  29990. <field name="SEMICOLON_TKN" type="int"
  29991. transient="false" volatile="false"
  29992. static="true" final="true" visibility="public"
  29993. deprecated="not deprecated">
  29994. </field>
  29995. <field name="COMMA_TKN" type="int"
  29996. transient="false" volatile="false"
  29997. static="true" final="true" visibility="public"
  29998. deprecated="not deprecated">
  29999. </field>
  30000. <field name="DOT_TKN" type="int"
  30001. transient="false" volatile="false"
  30002. static="true" final="true" visibility="public"
  30003. deprecated="not deprecated">
  30004. </field>
  30005. <field name="CSTRING_TKN" type="int"
  30006. transient="false" volatile="false"
  30007. static="true" final="true" visibility="public"
  30008. deprecated="not deprecated">
  30009. </field>
  30010. <field name="IDENT_TKN" type="int"
  30011. transient="false" volatile="false"
  30012. static="true" final="true" visibility="public"
  30013. deprecated="not deprecated">
  30014. </field>
  30015. <field name="DEFAULT" type="int"
  30016. transient="false" volatile="false"
  30017. static="true" final="true" visibility="public"
  30018. deprecated="not deprecated">
  30019. </field>
  30020. <field name="WithinOneLineComment" type="int"
  30021. transient="false" volatile="false"
  30022. static="true" final="true" visibility="public"
  30023. deprecated="not deprecated">
  30024. </field>
  30025. <field name="WithinMultiLineComment" type="int"
  30026. transient="false" volatile="false"
  30027. static="true" final="true" visibility="public"
  30028. deprecated="not deprecated">
  30029. </field>
  30030. <field name="tokenImage" type="java.lang.String[]"
  30031. transient="false" volatile="false"
  30032. static="true" final="true" visibility="public"
  30033. deprecated="not deprecated">
  30034. </field>
  30035. <doc>
  30036. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30037. </doc>
  30038. </interface>
  30039. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  30040. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  30041. <class name="RccTokenManager" extends="java.lang.Object"
  30042. abstract="false"
  30043. static="false" final="false" visibility="public"
  30044. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30045. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  30046. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  30047. static="false" final="false" visibility="public"
  30048. deprecated="not deprecated">
  30049. </constructor>
  30050. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  30051. static="false" final="false" visibility="public"
  30052. deprecated="not deprecated">
  30053. </constructor>
  30054. <method name="setDebugStream"
  30055. abstract="false" native="false" synchronized="false"
  30056. static="false" final="false" visibility="public"
  30057. deprecated="not deprecated">
  30058. <param name="ds" type="java.io.PrintStream"/>
  30059. </method>
  30060. <method name="ReInit"
  30061. abstract="false" native="false" synchronized="false"
  30062. static="false" final="false" visibility="public"
  30063. deprecated="not deprecated">
  30064. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  30065. </method>
  30066. <method name="ReInit"
  30067. abstract="false" native="false" synchronized="false"
  30068. static="false" final="false" visibility="public"
  30069. deprecated="not deprecated">
  30070. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  30071. <param name="lexState" type="int"/>
  30072. </method>
  30073. <method name="SwitchTo"
  30074. abstract="false" native="false" synchronized="false"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. <param name="lexState" type="int"/>
  30078. </method>
  30079. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  30080. abstract="false" native="false" synchronized="false"
  30081. static="false" final="false" visibility="protected"
  30082. deprecated="not deprecated">
  30083. </method>
  30084. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  30085. abstract="false" native="false" synchronized="false"
  30086. static="false" final="false" visibility="public"
  30087. deprecated="not deprecated">
  30088. </method>
  30089. <field name="debugStream" type="java.io.PrintStream"
  30090. transient="false" volatile="false"
  30091. static="false" final="false" visibility="public"
  30092. deprecated="not deprecated">
  30093. </field>
  30094. <field name="jjstrLiteralImages" type="java.lang.String[]"
  30095. transient="false" volatile="false"
  30096. static="true" final="true" visibility="public"
  30097. deprecated="not deprecated">
  30098. </field>
  30099. <field name="lexStateNames" type="java.lang.String[]"
  30100. transient="false" volatile="false"
  30101. static="true" final="true" visibility="public"
  30102. deprecated="not deprecated">
  30103. </field>
  30104. <field name="jjnewLexState" type="int[]"
  30105. transient="false" volatile="false"
  30106. static="true" final="true" visibility="public"
  30107. deprecated="not deprecated">
  30108. </field>
  30109. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  30110. transient="false" volatile="false"
  30111. static="false" final="false" visibility="protected"
  30112. deprecated="not deprecated">
  30113. </field>
  30114. <field name="curChar" type="char"
  30115. transient="false" volatile="false"
  30116. static="false" final="false" visibility="protected"
  30117. deprecated="not deprecated">
  30118. </field>
  30119. <doc>
  30120. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30121. </doc>
  30122. </class>
  30123. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  30124. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  30125. <class name="SimpleCharStream" extends="java.lang.Object"
  30126. abstract="false"
  30127. static="false" final="false" visibility="public"
  30128. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30129. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  30130. static="false" final="false" visibility="public"
  30131. deprecated="not deprecated">
  30132. </constructor>
  30133. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  30134. static="false" final="false" visibility="public"
  30135. deprecated="not deprecated">
  30136. </constructor>
  30137. <constructor name="SimpleCharStream" type="java.io.Reader"
  30138. static="false" final="false" visibility="public"
  30139. deprecated="not deprecated">
  30140. </constructor>
  30141. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  30142. static="false" final="false" visibility="public"
  30143. deprecated="not deprecated">
  30144. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30145. </constructor>
  30146. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  30147. static="false" final="false" visibility="public"
  30148. deprecated="not deprecated">
  30149. </constructor>
  30150. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  30151. static="false" final="false" visibility="public"
  30152. deprecated="not deprecated">
  30153. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30154. </constructor>
  30155. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  30156. static="false" final="false" visibility="public"
  30157. deprecated="not deprecated">
  30158. </constructor>
  30159. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  30160. static="false" final="false" visibility="public"
  30161. deprecated="not deprecated">
  30162. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30163. </constructor>
  30164. <constructor name="SimpleCharStream" type="java.io.InputStream"
  30165. static="false" final="false" visibility="public"
  30166. deprecated="not deprecated">
  30167. </constructor>
  30168. <method name="setTabSize"
  30169. abstract="false" native="false" synchronized="false"
  30170. static="false" final="false" visibility="protected"
  30171. deprecated="not deprecated">
  30172. <param name="i" type="int"/>
  30173. </method>
  30174. <method name="getTabSize" return="int"
  30175. abstract="false" native="false" synchronized="false"
  30176. static="false" final="false" visibility="protected"
  30177. deprecated="not deprecated">
  30178. <param name="i" type="int"/>
  30179. </method>
  30180. <method name="ExpandBuff"
  30181. abstract="false" native="false" synchronized="false"
  30182. static="false" final="false" visibility="protected"
  30183. deprecated="not deprecated">
  30184. <param name="wrapAround" type="boolean"/>
  30185. </method>
  30186. <method name="FillBuff"
  30187. abstract="false" native="false" synchronized="false"
  30188. static="false" final="false" visibility="protected"
  30189. deprecated="not deprecated">
  30190. <exception name="IOException" type="java.io.IOException"/>
  30191. </method>
  30192. <method name="BeginToken" return="char"
  30193. abstract="false" native="false" synchronized="false"
  30194. static="false" final="false" visibility="public"
  30195. deprecated="not deprecated">
  30196. <exception name="IOException" type="java.io.IOException"/>
  30197. </method>
  30198. <method name="UpdateLineColumn"
  30199. abstract="false" native="false" synchronized="false"
  30200. static="false" final="false" visibility="protected"
  30201. deprecated="not deprecated">
  30202. <param name="c" type="char"/>
  30203. </method>
  30204. <method name="readChar" return="char"
  30205. abstract="false" native="false" synchronized="false"
  30206. static="false" final="false" visibility="public"
  30207. deprecated="not deprecated">
  30208. <exception name="IOException" type="java.io.IOException"/>
  30209. </method>
  30210. <method name="getEndColumn" return="int"
  30211. abstract="false" native="false" synchronized="false"
  30212. static="false" final="false" visibility="public"
  30213. deprecated="not deprecated">
  30214. </method>
  30215. <method name="getEndLine" return="int"
  30216. abstract="false" native="false" synchronized="false"
  30217. static="false" final="false" visibility="public"
  30218. deprecated="not deprecated">
  30219. </method>
  30220. <method name="getBeginColumn" return="int"
  30221. abstract="false" native="false" synchronized="false"
  30222. static="false" final="false" visibility="public"
  30223. deprecated="not deprecated">
  30224. </method>
  30225. <method name="getBeginLine" return="int"
  30226. abstract="false" native="false" synchronized="false"
  30227. static="false" final="false" visibility="public"
  30228. deprecated="not deprecated">
  30229. </method>
  30230. <method name="backup"
  30231. abstract="false" native="false" synchronized="false"
  30232. static="false" final="false" visibility="public"
  30233. deprecated="not deprecated">
  30234. <param name="amount" type="int"/>
  30235. </method>
  30236. <method name="ReInit"
  30237. abstract="false" native="false" synchronized="false"
  30238. static="false" final="false" visibility="public"
  30239. deprecated="not deprecated">
  30240. <param name="dstream" type="java.io.Reader"/>
  30241. <param name="startline" type="int"/>
  30242. <param name="startcolumn" type="int"/>
  30243. <param name="buffersize" type="int"/>
  30244. </method>
  30245. <method name="ReInit"
  30246. abstract="false" native="false" synchronized="false"
  30247. static="false" final="false" visibility="public"
  30248. deprecated="not deprecated">
  30249. <param name="dstream" type="java.io.Reader"/>
  30250. <param name="startline" type="int"/>
  30251. <param name="startcolumn" type="int"/>
  30252. </method>
  30253. <method name="ReInit"
  30254. abstract="false" native="false" synchronized="false"
  30255. static="false" final="false" visibility="public"
  30256. deprecated="not deprecated">
  30257. <param name="dstream" type="java.io.Reader"/>
  30258. </method>
  30259. <method name="ReInit"
  30260. abstract="false" native="false" synchronized="false"
  30261. static="false" final="false" visibility="public"
  30262. deprecated="not deprecated">
  30263. <param name="dstream" type="java.io.InputStream"/>
  30264. <param name="encoding" type="java.lang.String"/>
  30265. <param name="startline" type="int"/>
  30266. <param name="startcolumn" type="int"/>
  30267. <param name="buffersize" type="int"/>
  30268. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30269. </method>
  30270. <method name="ReInit"
  30271. abstract="false" native="false" synchronized="false"
  30272. static="false" final="false" visibility="public"
  30273. deprecated="not deprecated">
  30274. <param name="dstream" type="java.io.InputStream"/>
  30275. <param name="startline" type="int"/>
  30276. <param name="startcolumn" type="int"/>
  30277. <param name="buffersize" type="int"/>
  30278. </method>
  30279. <method name="ReInit"
  30280. abstract="false" native="false" synchronized="false"
  30281. static="false" final="false" visibility="public"
  30282. deprecated="not deprecated">
  30283. <param name="dstream" type="java.io.InputStream"/>
  30284. <param name="encoding" type="java.lang.String"/>
  30285. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30286. </method>
  30287. <method name="ReInit"
  30288. abstract="false" native="false" synchronized="false"
  30289. static="false" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <param name="dstream" type="java.io.InputStream"/>
  30292. </method>
  30293. <method name="ReInit"
  30294. abstract="false" native="false" synchronized="false"
  30295. static="false" final="false" visibility="public"
  30296. deprecated="not deprecated">
  30297. <param name="dstream" type="java.io.InputStream"/>
  30298. <param name="encoding" type="java.lang.String"/>
  30299. <param name="startline" type="int"/>
  30300. <param name="startcolumn" type="int"/>
  30301. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30302. </method>
  30303. <method name="ReInit"
  30304. abstract="false" native="false" synchronized="false"
  30305. static="false" final="false" visibility="public"
  30306. deprecated="not deprecated">
  30307. <param name="dstream" type="java.io.InputStream"/>
  30308. <param name="startline" type="int"/>
  30309. <param name="startcolumn" type="int"/>
  30310. </method>
  30311. <method name="GetImage" return="java.lang.String"
  30312. abstract="false" native="false" synchronized="false"
  30313. static="false" final="false" visibility="public"
  30314. deprecated="not deprecated">
  30315. </method>
  30316. <method name="GetSuffix" return="char[]"
  30317. abstract="false" native="false" synchronized="false"
  30318. static="false" final="false" visibility="public"
  30319. deprecated="not deprecated">
  30320. <param name="len" type="int"/>
  30321. </method>
  30322. <method name="Done"
  30323. abstract="false" native="false" synchronized="false"
  30324. static="false" final="false" visibility="public"
  30325. deprecated="not deprecated">
  30326. </method>
  30327. <method name="adjustBeginLineColumn"
  30328. abstract="false" native="false" synchronized="false"
  30329. static="false" final="false" visibility="public"
  30330. deprecated="not deprecated">
  30331. <param name="newLine" type="int"/>
  30332. <param name="newCol" type="int"/>
  30333. <doc>
  30334. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  30335. </doc>
  30336. </method>
  30337. <field name="staticFlag" type="boolean"
  30338. transient="false" volatile="false"
  30339. static="true" final="true" visibility="public"
  30340. deprecated="not deprecated">
  30341. </field>
  30342. <field name="bufpos" type="int"
  30343. transient="false" volatile="false"
  30344. static="false" final="false" visibility="public"
  30345. deprecated="not deprecated">
  30346. </field>
  30347. <field name="bufline" type="int[]"
  30348. transient="false" volatile="false"
  30349. static="false" final="false" visibility="protected"
  30350. deprecated="not deprecated">
  30351. </field>
  30352. <field name="bufcolumn" type="int[]"
  30353. transient="false" volatile="false"
  30354. static="false" final="false" visibility="protected"
  30355. deprecated="not deprecated">
  30356. </field>
  30357. <field name="column" type="int"
  30358. transient="false" volatile="false"
  30359. static="false" final="false" visibility="protected"
  30360. deprecated="not deprecated">
  30361. </field>
  30362. <field name="line" type="int"
  30363. transient="false" volatile="false"
  30364. static="false" final="false" visibility="protected"
  30365. deprecated="not deprecated">
  30366. </field>
  30367. <field name="prevCharIsCR" type="boolean"
  30368. transient="false" volatile="false"
  30369. static="false" final="false" visibility="protected"
  30370. deprecated="not deprecated">
  30371. </field>
  30372. <field name="prevCharIsLF" type="boolean"
  30373. transient="false" volatile="false"
  30374. static="false" final="false" visibility="protected"
  30375. deprecated="not deprecated">
  30376. </field>
  30377. <field name="inputStream" type="java.io.Reader"
  30378. transient="false" volatile="false"
  30379. static="false" final="false" visibility="protected"
  30380. deprecated="not deprecated">
  30381. </field>
  30382. <field name="buffer" type="char[]"
  30383. transient="false" volatile="false"
  30384. static="false" final="false" visibility="protected"
  30385. deprecated="not deprecated">
  30386. </field>
  30387. <field name="maxNextCharInd" type="int"
  30388. transient="false" volatile="false"
  30389. static="false" final="false" visibility="protected"
  30390. deprecated="not deprecated">
  30391. </field>
  30392. <field name="inBuf" type="int"
  30393. transient="false" volatile="false"
  30394. static="false" final="false" visibility="protected"
  30395. deprecated="not deprecated">
  30396. </field>
  30397. <field name="tabSize" type="int"
  30398. transient="false" volatile="false"
  30399. static="false" final="false" visibility="protected"
  30400. deprecated="not deprecated">
  30401. </field>
  30402. <doc>
  30403. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  30404. contain only ASCII characters (without unicode processing).
  30405. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30406. </doc>
  30407. </class>
  30408. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  30409. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  30410. <class name="Token" extends="java.lang.Object"
  30411. abstract="false"
  30412. static="false" final="false" visibility="public"
  30413. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30414. <constructor name="Token"
  30415. static="false" final="false" visibility="public"
  30416. deprecated="not deprecated">
  30417. </constructor>
  30418. <method name="toString" return="java.lang.String"
  30419. abstract="false" native="false" synchronized="false"
  30420. static="false" final="false" visibility="public"
  30421. deprecated="not deprecated">
  30422. <doc>
  30423. <![CDATA[Returns the image.]]>
  30424. </doc>
  30425. </method>
  30426. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  30427. abstract="false" native="false" synchronized="false"
  30428. static="true" final="true" visibility="public"
  30429. deprecated="not deprecated">
  30430. <param name="ofKind" type="int"/>
  30431. <doc>
  30432. <![CDATA[Returns a new Token object, by default. However, if you want, you
  30433. can create and return subclass objects based on the value of ofKind.
  30434. Simply add the cases to the switch for all those special cases.
  30435. For example, if you have a subclass of Token called IDToken that
  30436. you want to create if ofKind is ID, simlpy add something like :
  30437. case MyParserConstants.ID : return new IDToken();
  30438. to the following switch statement. Then you can cast matchedToken
  30439. variable to the appropriate type and use it in your lexical actions.]]>
  30440. </doc>
  30441. </method>
  30442. <field name="kind" type="int"
  30443. transient="false" volatile="false"
  30444. static="false" final="false" visibility="public"
  30445. deprecated="not deprecated">
  30446. <doc>
  30447. <![CDATA[An integer that describes the kind of this token. This numbering
  30448. system is determined by JavaCCParser, and a table of these numbers is
  30449. stored in the file ...Constants.java.]]>
  30450. </doc>
  30451. </field>
  30452. <field name="beginLine" type="int"
  30453. transient="false" volatile="false"
  30454. static="false" final="false" visibility="public"
  30455. deprecated="not deprecated">
  30456. <doc>
  30457. <![CDATA[beginLine and beginColumn describe the position of the first character
  30458. of this token; endLine and endColumn describe the position of the
  30459. last character of this token.]]>
  30460. </doc>
  30461. </field>
  30462. <field name="beginColumn" type="int"
  30463. transient="false" volatile="false"
  30464. static="false" final="false" visibility="public"
  30465. deprecated="not deprecated">
  30466. <doc>
  30467. <![CDATA[beginLine and beginColumn describe the position of the first character
  30468. of this token; endLine and endColumn describe the position of the
  30469. last character of this token.]]>
  30470. </doc>
  30471. </field>
  30472. <field name="endLine" type="int"
  30473. transient="false" volatile="false"
  30474. static="false" final="false" visibility="public"
  30475. deprecated="not deprecated">
  30476. <doc>
  30477. <![CDATA[beginLine and beginColumn describe the position of the first character
  30478. of this token; endLine and endColumn describe the position of the
  30479. last character of this token.]]>
  30480. </doc>
  30481. </field>
  30482. <field name="endColumn" type="int"
  30483. transient="false" volatile="false"
  30484. static="false" final="false" visibility="public"
  30485. deprecated="not deprecated">
  30486. <doc>
  30487. <![CDATA[beginLine and beginColumn describe the position of the first character
  30488. of this token; endLine and endColumn describe the position of the
  30489. last character of this token.]]>
  30490. </doc>
  30491. </field>
  30492. <field name="image" type="java.lang.String"
  30493. transient="false" volatile="false"
  30494. static="false" final="false" visibility="public"
  30495. deprecated="not deprecated">
  30496. <doc>
  30497. <![CDATA[The string image of the token.]]>
  30498. </doc>
  30499. </field>
  30500. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  30501. transient="false" volatile="false"
  30502. static="false" final="false" visibility="public"
  30503. deprecated="not deprecated">
  30504. <doc>
  30505. <![CDATA[A reference to the next regular (non-special) token from the input
  30506. stream. If this is the last token from the input stream, or if the
  30507. token manager has not read tokens beyond this one, this field is
  30508. set to null. This is true only if this token is also a regular
  30509. token. Otherwise, see below for a description of the contents of
  30510. this field.]]>
  30511. </doc>
  30512. </field>
  30513. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  30514. transient="false" volatile="false"
  30515. static="false" final="false" visibility="public"
  30516. deprecated="not deprecated">
  30517. <doc>
  30518. <![CDATA[This field is used to access special tokens that occur prior to this
  30519. token, but after the immediately preceding regular (non-special) token.
  30520. If there are no such special tokens, this field is set to null.
  30521. When there are more than one such special token, this field refers
  30522. to the last of these special tokens, which in turn refers to the next
  30523. previous special token through its specialToken field, and so on
  30524. until the first special token (whose specialToken field is null).
  30525. The next fields of special tokens refer to other special tokens that
  30526. immediately follow it (without an intervening regular token). If there
  30527. is no such token, this field is null.]]>
  30528. </doc>
  30529. </field>
  30530. <doc>
  30531. <![CDATA[Describes the input token stream.
  30532. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30533. </doc>
  30534. </class>
  30535. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  30536. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  30537. <class name="TokenMgrError" extends="java.lang.Error"
  30538. abstract="false"
  30539. static="false" final="false" visibility="public"
  30540. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30541. <constructor name="TokenMgrError"
  30542. static="false" final="false" visibility="public"
  30543. deprecated="not deprecated">
  30544. </constructor>
  30545. <constructor name="TokenMgrError" type="java.lang.String, int"
  30546. static="false" final="false" visibility="public"
  30547. deprecated="not deprecated">
  30548. </constructor>
  30549. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  30550. static="false" final="false" visibility="public"
  30551. deprecated="not deprecated">
  30552. </constructor>
  30553. <method name="addEscapes" return="java.lang.String"
  30554. abstract="false" native="false" synchronized="false"
  30555. static="true" final="true" visibility="protected"
  30556. deprecated="not deprecated">
  30557. <param name="str" type="java.lang.String"/>
  30558. <doc>
  30559. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  30560. equivalents in the given string]]>
  30561. </doc>
  30562. </method>
  30563. <method name="LexicalError" return="java.lang.String"
  30564. abstract="false" native="false" synchronized="false"
  30565. static="true" final="false" visibility="protected"
  30566. deprecated="not deprecated">
  30567. <param name="EOFSeen" type="boolean"/>
  30568. <param name="lexState" type="int"/>
  30569. <param name="errorLine" type="int"/>
  30570. <param name="errorColumn" type="int"/>
  30571. <param name="errorAfter" type="java.lang.String"/>
  30572. <param name="curChar" type="char"/>
  30573. <doc>
  30574. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  30575. token manager to indicate a lexical error.
  30576. Parameters :
  30577. EOFSeen : indicates if EOF caused the lexicl error
  30578. curLexState : lexical state in which this error occured
  30579. errorLine : line number when the error occured
  30580. errorColumn : column number when the error occured
  30581. errorAfter : prefix that was seen before this error occured
  30582. curchar : the offending character
  30583. Note: You can customize the lexical error message by modifying this method.]]>
  30584. </doc>
  30585. </method>
  30586. <method name="getMessage" return="java.lang.String"
  30587. abstract="false" native="false" synchronized="false"
  30588. static="false" final="false" visibility="public"
  30589. deprecated="not deprecated">
  30590. <doc>
  30591. <![CDATA[You can also modify the body of this method to customize your error messages.
  30592. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  30593. of end-users concern, so you can return something like :
  30594. "Internal Error : Please file a bug report .... "
  30595. from this method for such cases in the release version of your parser.]]>
  30596. </doc>
  30597. </method>
  30598. <doc>
  30599. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30600. </doc>
  30601. </class>
  30602. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  30603. <doc>
  30604. <![CDATA[<p>
  30605. (DEPRECATED) This package contains code generated by JavaCC from the
  30606. Hadoop record syntax file rcc.jj. For details about the
  30607. record file syntax please @see org.apache.hadoop.record.
  30608. </p>
  30609. <p>
  30610. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  30611. </p>]]>
  30612. </doc>
  30613. </package>
  30614. <package name="org.apache.hadoop.record.meta">
  30615. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  30616. <class name="FieldTypeInfo" extends="java.lang.Object"
  30617. abstract="false"
  30618. static="false" final="false" visibility="public"
  30619. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30620. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30621. abstract="false" native="false" synchronized="false"
  30622. static="false" final="false" visibility="public"
  30623. deprecated="not deprecated">
  30624. <doc>
  30625. <![CDATA[get the field's TypeID object]]>
  30626. </doc>
  30627. </method>
  30628. <method name="getFieldID" return="java.lang.String"
  30629. abstract="false" native="false" synchronized="false"
  30630. static="false" final="false" visibility="public"
  30631. deprecated="not deprecated">
  30632. <doc>
  30633. <![CDATA[get the field's id (name)]]>
  30634. </doc>
  30635. </method>
  30636. <method name="equals" return="boolean"
  30637. abstract="false" native="false" synchronized="false"
  30638. static="false" final="false" visibility="public"
  30639. deprecated="not deprecated">
  30640. <param name="o" type="java.lang.Object"/>
  30641. <doc>
  30642. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  30643. </doc>
  30644. </method>
  30645. <method name="hashCode" return="int"
  30646. abstract="false" native="false" synchronized="false"
  30647. static="false" final="false" visibility="public"
  30648. deprecated="not deprecated">
  30649. <doc>
  30650. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30651. be used as a hashmap key]]>
  30652. </doc>
  30653. </method>
  30654. <method name="equals" return="boolean"
  30655. abstract="false" native="false" synchronized="false"
  30656. static="false" final="false" visibility="public"
  30657. deprecated="not deprecated">
  30658. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  30659. </method>
  30660. <doc>
  30661. <![CDATA[Represents a type information for a field, which is made up of its
  30662. ID (name) and its type (a TypeID object).
  30663. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30664. </doc>
  30665. </class>
  30666. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  30667. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  30668. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  30669. abstract="false"
  30670. static="false" final="false" visibility="public"
  30671. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30672. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  30673. static="false" final="false" visibility="public"
  30674. deprecated="not deprecated">
  30675. </constructor>
  30676. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30677. abstract="false" native="false" synchronized="false"
  30678. static="false" final="false" visibility="public"
  30679. deprecated="not deprecated">
  30680. <doc>
  30681. <![CDATA[get the TypeID of the map's key element]]>
  30682. </doc>
  30683. </method>
  30684. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30685. abstract="false" native="false" synchronized="false"
  30686. static="false" final="false" visibility="public"
  30687. deprecated="not deprecated">
  30688. <doc>
  30689. <![CDATA[get the TypeID of the map's value element]]>
  30690. </doc>
  30691. </method>
  30692. <method name="equals" return="boolean"
  30693. abstract="false" native="false" synchronized="false"
  30694. static="false" final="false" visibility="public"
  30695. deprecated="not deprecated">
  30696. <param name="o" type="java.lang.Object"/>
  30697. <doc>
  30698. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  30699. same type]]>
  30700. </doc>
  30701. </method>
  30702. <method name="hashCode" return="int"
  30703. abstract="false" native="false" synchronized="false"
  30704. static="false" final="false" visibility="public"
  30705. deprecated="not deprecated">
  30706. <doc>
  30707. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30708. be used as a hashmap key]]>
  30709. </doc>
  30710. </method>
  30711. <doc>
  30712. <![CDATA[Represents typeID for a Map
  30713. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30714. </doc>
  30715. </class>
  30716. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  30717. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  30718. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  30719. abstract="false"
  30720. static="false" final="false" visibility="public"
  30721. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30722. <constructor name="RecordTypeInfo"
  30723. static="false" final="false" visibility="public"
  30724. deprecated="not deprecated">
  30725. <doc>
  30726. <![CDATA[Create an empty RecordTypeInfo object.]]>
  30727. </doc>
  30728. </constructor>
  30729. <constructor name="RecordTypeInfo" type="java.lang.String"
  30730. static="false" final="false" visibility="public"
  30731. deprecated="not deprecated">
  30732. <doc>
  30733. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  30734. @param name Name of the record]]>
  30735. </doc>
  30736. </constructor>
  30737. <method name="getName" return="java.lang.String"
  30738. abstract="false" native="false" synchronized="false"
  30739. static="false" final="false" visibility="public"
  30740. deprecated="not deprecated">
  30741. <doc>
  30742. <![CDATA[return the name of the record]]>
  30743. </doc>
  30744. </method>
  30745. <method name="setName"
  30746. abstract="false" native="false" synchronized="false"
  30747. static="false" final="false" visibility="public"
  30748. deprecated="not deprecated">
  30749. <param name="name" type="java.lang.String"/>
  30750. <doc>
  30751. <![CDATA[set the name of the record]]>
  30752. </doc>
  30753. </method>
  30754. <method name="addField"
  30755. abstract="false" native="false" synchronized="false"
  30756. static="false" final="false" visibility="public"
  30757. deprecated="not deprecated">
  30758. <param name="fieldName" type="java.lang.String"/>
  30759. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  30760. <doc>
  30761. <![CDATA[Add a field.
  30762. @param fieldName Name of the field
  30763. @param tid Type ID of the field]]>
  30764. </doc>
  30765. </method>
  30766. <method name="getFieldTypeInfos" return="java.util.Collection"
  30767. abstract="false" native="false" synchronized="false"
  30768. static="false" final="false" visibility="public"
  30769. deprecated="not deprecated">
  30770. <doc>
  30771. <![CDATA[Return a collection of field type infos]]>
  30772. </doc>
  30773. </method>
  30774. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  30775. abstract="false" native="false" synchronized="false"
  30776. static="false" final="false" visibility="public"
  30777. deprecated="not deprecated">
  30778. <param name="name" type="java.lang.String"/>
  30779. <doc>
  30780. <![CDATA[Return the type info of a nested record. We only consider nesting
  30781. to one level.
  30782. @param name Name of the nested record]]>
  30783. </doc>
  30784. </method>
  30785. <method name="serialize"
  30786. abstract="false" native="false" synchronized="false"
  30787. static="false" final="false" visibility="public"
  30788. deprecated="not deprecated">
  30789. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30790. <param name="tag" type="java.lang.String"/>
  30791. <exception name="IOException" type="java.io.IOException"/>
  30792. <doc>
  30793. <![CDATA[Serialize the type information for a record]]>
  30794. </doc>
  30795. </method>
  30796. <method name="deserialize"
  30797. abstract="false" native="false" synchronized="false"
  30798. static="false" final="false" visibility="public"
  30799. deprecated="not deprecated">
  30800. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30801. <param name="tag" type="java.lang.String"/>
  30802. <exception name="IOException" type="java.io.IOException"/>
  30803. <doc>
  30804. <![CDATA[Deserialize the type information for a record]]>
  30805. </doc>
  30806. </method>
  30807. <method name="compareTo" return="int"
  30808. abstract="false" native="false" synchronized="false"
  30809. static="false" final="false" visibility="public"
  30810. deprecated="not deprecated">
  30811. <param name="peer_" type="java.lang.Object"/>
  30812. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  30813. <doc>
  30814. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  30815. for anything besides de/serializing.
  30816. So we always throw an exception.
  30817. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  30818. </doc>
  30819. </method>
  30820. <doc>
  30821. <![CDATA[A record's Type Information object which can read/write itself.
  30822. Type information for a record comprises metadata about the record,
  30823. as well as a collection of type information for each field in the record.
  30824. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30825. </doc>
  30826. </class>
  30827. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  30828. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  30829. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  30830. abstract="false"
  30831. static="false" final="false" visibility="public"
  30832. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30833. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  30834. static="false" final="false" visibility="public"
  30835. deprecated="not deprecated">
  30836. <doc>
  30837. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  30838. </doc>
  30839. </constructor>
  30840. <method name="getFieldTypeInfos" return="java.util.Collection"
  30841. abstract="false" native="false" synchronized="false"
  30842. static="false" final="false" visibility="public"
  30843. deprecated="not deprecated">
  30844. </method>
  30845. <method name="equals" return="boolean"
  30846. abstract="false" native="false" synchronized="false"
  30847. static="false" final="false" visibility="public"
  30848. deprecated="not deprecated">
  30849. <param name="o" type="java.lang.Object"/>
  30850. </method>
  30851. <method name="hashCode" return="int"
  30852. abstract="false" native="false" synchronized="false"
  30853. static="false" final="false" visibility="public"
  30854. deprecated="not deprecated">
  30855. </method>
  30856. <doc>
  30857. <![CDATA[Represents typeID for a struct
  30858. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30859. </doc>
  30860. </class>
  30861. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  30862. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  30863. <class name="TypeID" extends="java.lang.Object"
  30864. abstract="false"
  30865. static="false" final="false" visibility="public"
  30866. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30867. <method name="getTypeVal" return="byte"
  30868. abstract="false" native="false" synchronized="false"
  30869. static="false" final="false" visibility="public"
  30870. deprecated="not deprecated">
  30871. <doc>
  30872. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  30873. </doc>
  30874. </method>
  30875. <method name="equals" return="boolean"
  30876. abstract="false" native="false" synchronized="false"
  30877. static="false" final="false" visibility="public"
  30878. deprecated="not deprecated">
  30879. <param name="o" type="java.lang.Object"/>
  30880. <doc>
  30881. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  30882. </doc>
  30883. </method>
  30884. <method name="hashCode" return="int"
  30885. abstract="false" native="false" synchronized="false"
  30886. static="false" final="false" visibility="public"
  30887. deprecated="not deprecated">
  30888. <doc>
  30889. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30890. be used as a hashmap key]]>
  30891. </doc>
  30892. </method>
  30893. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30894. transient="false" volatile="false"
  30895. static="true" final="true" visibility="public"
  30896. deprecated="not deprecated">
  30897. <doc>
  30898. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  30899. </doc>
  30900. </field>
  30901. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30902. transient="false" volatile="false"
  30903. static="true" final="true" visibility="public"
  30904. deprecated="not deprecated">
  30905. </field>
  30906. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30907. transient="false" volatile="false"
  30908. static="true" final="true" visibility="public"
  30909. deprecated="not deprecated">
  30910. </field>
  30911. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30912. transient="false" volatile="false"
  30913. static="true" final="true" visibility="public"
  30914. deprecated="not deprecated">
  30915. </field>
  30916. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30917. transient="false" volatile="false"
  30918. static="true" final="true" visibility="public"
  30919. deprecated="not deprecated">
  30920. </field>
  30921. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30922. transient="false" volatile="false"
  30923. static="true" final="true" visibility="public"
  30924. deprecated="not deprecated">
  30925. </field>
  30926. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30927. transient="false" volatile="false"
  30928. static="true" final="true" visibility="public"
  30929. deprecated="not deprecated">
  30930. </field>
  30931. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30932. transient="false" volatile="false"
  30933. static="true" final="true" visibility="public"
  30934. deprecated="not deprecated">
  30935. </field>
  30936. <field name="typeVal" type="byte"
  30937. transient="false" volatile="false"
  30938. static="false" final="false" visibility="protected"
  30939. deprecated="not deprecated">
  30940. </field>
  30941. <doc>
  30942. <![CDATA[Represents typeID for basic types.
  30943. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30944. </doc>
  30945. </class>
  30946. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  30947. <!-- start class org.apache.hadoop.record.meta.Utils -->
  30948. <class name="Utils" extends="java.lang.Object"
  30949. abstract="false"
  30950. static="false" final="false" visibility="public"
  30951. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30952. <method name="skip"
  30953. abstract="false" native="false" synchronized="false"
  30954. static="true" final="false" visibility="public"
  30955. deprecated="not deprecated">
  30956. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30957. <param name="tag" type="java.lang.String"/>
  30958. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  30959. <exception name="IOException" type="java.io.IOException"/>
  30960. <doc>
  30961. <![CDATA[read/skip bytes from stream based on a type]]>
  30962. </doc>
  30963. </method>
  30964. <doc>
  30965. <![CDATA[Various utility functions for Hadooop record I/O platform.
  30966. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30967. </doc>
  30968. </class>
  30969. <!-- end class org.apache.hadoop.record.meta.Utils -->
  30970. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  30971. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  30972. abstract="false"
  30973. static="false" final="false" visibility="public"
  30974. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30975. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30976. static="false" final="false" visibility="public"
  30977. deprecated="not deprecated">
  30978. </constructor>
  30979. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30980. abstract="false" native="false" synchronized="false"
  30981. static="false" final="false" visibility="public"
  30982. deprecated="not deprecated">
  30983. </method>
  30984. <method name="equals" return="boolean"
  30985. abstract="false" native="false" synchronized="false"
  30986. static="false" final="false" visibility="public"
  30987. deprecated="not deprecated">
  30988. <param name="o" type="java.lang.Object"/>
  30989. <doc>
  30990. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  30991. same type]]>
  30992. </doc>
  30993. </method>
  30994. <method name="hashCode" return="int"
  30995. abstract="false" native="false" synchronized="false"
  30996. static="false" final="false" visibility="public"
  30997. deprecated="not deprecated">
  30998. <doc>
  30999. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  31000. be used as a hashmap key]]>
  31001. </doc>
  31002. </method>
  31003. <doc>
  31004. <![CDATA[Represents typeID for vector.
  31005. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31006. </doc>
  31007. </class>
  31008. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  31009. </package>
  31010. <package name="org.apache.hadoop.security">
  31011. <!-- start class org.apache.hadoop.security.AccessControlException -->
  31012. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  31013. abstract="false"
  31014. static="false" final="false" visibility="public"
  31015. deprecated="not deprecated">
  31016. <constructor name="AccessControlException"
  31017. static="false" final="false" visibility="public"
  31018. deprecated="not deprecated">
  31019. <doc>
  31020. <![CDATA[Default constructor is needed for unwrapping from
  31021. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  31022. </doc>
  31023. </constructor>
  31024. <constructor name="AccessControlException" type="java.lang.String"
  31025. static="false" final="false" visibility="public"
  31026. deprecated="not deprecated">
  31027. <doc>
  31028. <![CDATA[Constructs an {@link AccessControlException}
  31029. with the specified detail message.
  31030. @param s the detail message.]]>
  31031. </doc>
  31032. </constructor>
  31033. <constructor name="AccessControlException" type="java.lang.Throwable"
  31034. static="false" final="false" visibility="public"
  31035. deprecated="not deprecated">
  31036. <doc>
  31037. <![CDATA[Constructs a new exception with the specified cause and a detail
  31038. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  31039. typically contains the class and detail message of <tt>cause</tt>).
  31040. @param cause the cause (which is saved for later retrieval by the
  31041. {@link #getCause()} method). (A <tt>null</tt> value is
  31042. permitted, and indicates that the cause is nonexistent or
  31043. unknown.)]]>
  31044. </doc>
  31045. </constructor>
  31046. <doc>
  31047. <![CDATA[An exception class for access control related issues.]]>
  31048. </doc>
  31049. </class>
  31050. <!-- end class org.apache.hadoop.security.AccessControlException -->
  31051. <!-- start class org.apache.hadoop.security.Credentials -->
  31052. <class name="Credentials" extends="java.lang.Object"
  31053. abstract="false"
  31054. static="false" final="false" visibility="public"
  31055. deprecated="not deprecated">
  31056. <implements name="org.apache.hadoop.io.Writable"/>
  31057. <constructor name="Credentials"
  31058. static="false" final="false" visibility="public"
  31059. deprecated="not deprecated">
  31060. <doc>
  31061. <![CDATA[Create an empty credentials instance]]>
  31062. </doc>
  31063. </constructor>
  31064. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  31065. static="false" final="false" visibility="public"
  31066. deprecated="not deprecated">
  31067. <doc>
  31068. <![CDATA[Create a copy of the given credentials
  31069. @param credentials to copy]]>
  31070. </doc>
  31071. </constructor>
  31072. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  31073. abstract="false" native="false" synchronized="false"
  31074. static="false" final="false" visibility="public"
  31075. deprecated="not deprecated">
  31076. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31077. <doc>
  31078. <![CDATA[Returns the Token object for the alias
  31079. @param alias the alias for the Token
  31080. @return token for this alias]]>
  31081. </doc>
  31082. </method>
  31083. <method name="addToken"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="false" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31088. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  31089. <doc>
  31090. <![CDATA[Add a token in the storage (in memory)
  31091. @param alias the alias for the key
  31092. @param t the token object]]>
  31093. </doc>
  31094. </method>
  31095. <method name="getAllTokens" return="java.util.Collection"
  31096. abstract="false" native="false" synchronized="false"
  31097. static="false" final="false" visibility="public"
  31098. deprecated="not deprecated">
  31099. <doc>
  31100. <![CDATA[Return all the tokens in the in-memory map]]>
  31101. </doc>
  31102. </method>
  31103. <method name="numberOfTokens" return="int"
  31104. abstract="false" native="false" synchronized="false"
  31105. static="false" final="false" visibility="public"
  31106. deprecated="not deprecated">
  31107. <doc>
  31108. <![CDATA[@return number of Tokens in the in-memory map]]>
  31109. </doc>
  31110. </method>
  31111. <method name="getSecretKey" return="byte[]"
  31112. abstract="false" native="false" synchronized="false"
  31113. static="false" final="false" visibility="public"
  31114. deprecated="not deprecated">
  31115. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31116. <doc>
  31117. <![CDATA[Returns the key bytes for the alias
  31118. @param alias the alias for the key
  31119. @return key for this alias]]>
  31120. </doc>
  31121. </method>
  31122. <method name="numberOfSecretKeys" return="int"
  31123. abstract="false" native="false" synchronized="false"
  31124. static="false" final="false" visibility="public"
  31125. deprecated="not deprecated">
  31126. <doc>
  31127. <![CDATA[@return number of keys in the in-memory map]]>
  31128. </doc>
  31129. </method>
  31130. <method name="addSecretKey"
  31131. abstract="false" native="false" synchronized="false"
  31132. static="false" final="false" visibility="public"
  31133. deprecated="not deprecated">
  31134. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31135. <param name="key" type="byte[]"/>
  31136. <doc>
  31137. <![CDATA[Set the key for an alias
  31138. @param alias the alias for the key
  31139. @param key the key bytes]]>
  31140. </doc>
  31141. </method>
  31142. <method name="removeSecretKey"
  31143. abstract="false" native="false" synchronized="false"
  31144. static="false" final="false" visibility="public"
  31145. deprecated="not deprecated">
  31146. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31147. <doc>
  31148. <![CDATA[Remove the key for a given alias.
  31149. @param alias the alias for the key]]>
  31150. </doc>
  31151. </method>
  31152. <method name="getAllSecretKeys" return="java.util.List"
  31153. abstract="false" native="false" synchronized="false"
  31154. static="false" final="false" visibility="public"
  31155. deprecated="not deprecated">
  31156. <doc>
  31157. <![CDATA[Return all the secret key entries in the in-memory map]]>
  31158. </doc>
  31159. </method>
  31160. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  31161. abstract="false" native="false" synchronized="false"
  31162. static="true" final="false" visibility="public"
  31163. deprecated="not deprecated">
  31164. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  31165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31166. <exception name="IOException" type="java.io.IOException"/>
  31167. <doc>
  31168. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  31169. therein in the passed UGI
  31170. @param filename
  31171. @param conf
  31172. @throws IOException]]>
  31173. </doc>
  31174. </method>
  31175. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  31176. abstract="false" native="false" synchronized="false"
  31177. static="true" final="false" visibility="public"
  31178. deprecated="not deprecated">
  31179. <param name="filename" type="java.io.File"/>
  31180. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31181. <exception name="IOException" type="java.io.IOException"/>
  31182. <doc>
  31183. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  31184. therein in the passed UGI
  31185. @param filename
  31186. @param conf
  31187. @throws IOException]]>
  31188. </doc>
  31189. </method>
  31190. <method name="readTokenStorageStream"
  31191. abstract="false" native="false" synchronized="false"
  31192. static="false" final="false" visibility="public"
  31193. deprecated="not deprecated">
  31194. <param name="in" type="java.io.DataInputStream"/>
  31195. <exception name="IOException" type="java.io.IOException"/>
  31196. <doc>
  31197. <![CDATA[Convenience method for reading a token storage file directly from a
  31198. datainputstream]]>
  31199. </doc>
  31200. </method>
  31201. <method name="writeTokenStorageToStream"
  31202. abstract="false" native="false" synchronized="false"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. <param name="os" type="java.io.DataOutputStream"/>
  31206. <exception name="IOException" type="java.io.IOException"/>
  31207. </method>
  31208. <method name="writeTokenStorageFile"
  31209. abstract="false" native="false" synchronized="false"
  31210. static="false" final="false" visibility="public"
  31211. deprecated="not deprecated">
  31212. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  31213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31214. <exception name="IOException" type="java.io.IOException"/>
  31215. </method>
  31216. <method name="write"
  31217. abstract="false" native="false" synchronized="false"
  31218. static="false" final="false" visibility="public"
  31219. deprecated="not deprecated">
  31220. <param name="out" type="java.io.DataOutput"/>
  31221. <exception name="IOException" type="java.io.IOException"/>
  31222. <doc>
  31223. <![CDATA[Stores all the keys to DataOutput
  31224. @param out
  31225. @throws IOException]]>
  31226. </doc>
  31227. </method>
  31228. <method name="readFields"
  31229. abstract="false" native="false" synchronized="false"
  31230. static="false" final="false" visibility="public"
  31231. deprecated="not deprecated">
  31232. <param name="in" type="java.io.DataInput"/>
  31233. <exception name="IOException" type="java.io.IOException"/>
  31234. <doc>
  31235. <![CDATA[Loads all the keys
  31236. @param in
  31237. @throws IOException]]>
  31238. </doc>
  31239. </method>
  31240. <method name="addAll"
  31241. abstract="false" native="false" synchronized="false"
  31242. static="false" final="false" visibility="public"
  31243. deprecated="not deprecated">
  31244. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  31245. <doc>
  31246. <![CDATA[Copy all of the credentials from one credential object into another.
  31247. Existing secrets and tokens are overwritten.
  31248. @param other the credentials to copy]]>
  31249. </doc>
  31250. </method>
  31251. <method name="mergeAll"
  31252. abstract="false" native="false" synchronized="false"
  31253. static="false" final="false" visibility="public"
  31254. deprecated="not deprecated">
  31255. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  31256. <doc>
  31257. <![CDATA[Copy all of the credentials from one credential object into another.
  31258. Existing secrets and tokens are not overwritten.
  31259. @param other the credentials to copy]]>
  31260. </doc>
  31261. </method>
  31262. <doc>
  31263. <![CDATA[A class that provides the facilities of reading and writing
  31264. secret keys and Tokens.]]>
  31265. </doc>
  31266. </class>
  31267. <!-- end class org.apache.hadoop.security.Credentials -->
  31268. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  31269. <interface name="GroupMappingServiceProvider" abstract="true"
  31270. static="false" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. <method name="getGroups" return="java.util.List"
  31273. abstract="false" native="false" synchronized="false"
  31274. static="false" final="false" visibility="public"
  31275. deprecated="not deprecated">
  31276. <param name="user" type="java.lang.String"/>
  31277. <exception name="IOException" type="java.io.IOException"/>
  31278. <doc>
  31279. <![CDATA[Get all various group memberships of a given user.
  31280. Returns EMPTY list in case of non-existing user
  31281. @param user User's name
  31282. @return group memberships of user
  31283. @throws IOException]]>
  31284. </doc>
  31285. </method>
  31286. <method name="cacheGroupsRefresh"
  31287. abstract="false" native="false" synchronized="false"
  31288. static="false" final="false" visibility="public"
  31289. deprecated="not deprecated">
  31290. <exception name="IOException" type="java.io.IOException"/>
  31291. <doc>
  31292. <![CDATA[Refresh the cache of groups and user mapping
  31293. @throws IOException]]>
  31294. </doc>
  31295. </method>
  31296. <method name="cacheGroupsAdd"
  31297. abstract="false" native="false" synchronized="false"
  31298. static="false" final="false" visibility="public"
  31299. deprecated="not deprecated">
  31300. <param name="groups" type="java.util.List"/>
  31301. <exception name="IOException" type="java.io.IOException"/>
  31302. <doc>
  31303. <![CDATA[Caches the group user information
  31304. @param groups list of groups to add to cache
  31305. @throws IOException]]>
  31306. </doc>
  31307. </method>
  31308. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  31309. transient="false" volatile="false"
  31310. static="true" final="true" visibility="public"
  31311. deprecated="not deprecated">
  31312. </field>
  31313. <doc>
  31314. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  31315. used by {@link Groups}.]]>
  31316. </doc>
  31317. </interface>
  31318. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  31319. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  31320. <interface name="IdMappingServiceProvider" abstract="true"
  31321. static="false" final="false" visibility="public"
  31322. deprecated="not deprecated">
  31323. <method name="getUid" return="int"
  31324. abstract="false" native="false" synchronized="false"
  31325. static="false" final="false" visibility="public"
  31326. deprecated="not deprecated">
  31327. <param name="user" type="java.lang.String"/>
  31328. <exception name="IOException" type="java.io.IOException"/>
  31329. </method>
  31330. <method name="getGid" return="int"
  31331. abstract="false" native="false" synchronized="false"
  31332. static="false" final="false" visibility="public"
  31333. deprecated="not deprecated">
  31334. <param name="group" type="java.lang.String"/>
  31335. <exception name="IOException" type="java.io.IOException"/>
  31336. </method>
  31337. <method name="getUserName" return="java.lang.String"
  31338. abstract="false" native="false" synchronized="false"
  31339. static="false" final="false" visibility="public"
  31340. deprecated="not deprecated">
  31341. <param name="uid" type="int"/>
  31342. <param name="unknown" type="java.lang.String"/>
  31343. </method>
  31344. <method name="getGroupName" return="java.lang.String"
  31345. abstract="false" native="false" synchronized="false"
  31346. static="false" final="false" visibility="public"
  31347. deprecated="not deprecated">
  31348. <param name="gid" type="int"/>
  31349. <param name="unknown" type="java.lang.String"/>
  31350. </method>
  31351. <method name="getUidAllowingUnknown" return="int"
  31352. abstract="false" native="false" synchronized="false"
  31353. static="false" final="false" visibility="public"
  31354. deprecated="not deprecated">
  31355. <param name="user" type="java.lang.String"/>
  31356. </method>
  31357. <method name="getGidAllowingUnknown" return="int"
  31358. abstract="false" native="false" synchronized="false"
  31359. static="false" final="false" visibility="public"
  31360. deprecated="not deprecated">
  31361. <param name="group" type="java.lang.String"/>
  31362. </method>
  31363. <doc>
  31364. <![CDATA[An interface for the implementation of <userId, userName> mapping
  31365. and <groupId, groupName> mapping]]>
  31366. </doc>
  31367. </interface>
  31368. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  31369. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  31370. <class name="SecurityUtil" extends="java.lang.Object"
  31371. abstract="false"
  31372. static="false" final="true" visibility="public"
  31373. deprecated="not deprecated">
  31374. <method name="isOriginalTGT" return="boolean"
  31375. abstract="false" native="false" synchronized="false"
  31376. static="true" final="false" visibility="protected"
  31377. deprecated="not deprecated">
  31378. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  31379. <doc>
  31380. <![CDATA[Check whether the server principal is the TGS's principal
  31381. @param ticket the original TGT (the ticket that is obtained when a
  31382. kinit is done)
  31383. @return true or false]]>
  31384. </doc>
  31385. </method>
  31386. <method name="getServerPrincipal" return="java.lang.String"
  31387. abstract="false" native="false" synchronized="false"
  31388. static="true" final="false" visibility="public"
  31389. deprecated="not deprecated">
  31390. <param name="principalConfig" type="java.lang.String"/>
  31391. <param name="hostname" type="java.lang.String"/>
  31392. <exception name="IOException" type="java.io.IOException"/>
  31393. <doc>
  31394. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  31395. names. It replaces hostname pattern with hostname, which should be
  31396. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  31397. dynamically looked-up fqdn of the current host instead.
  31398. @param principalConfig
  31399. the Kerberos principal name conf value to convert
  31400. @param hostname
  31401. the fully-qualified domain name used for substitution
  31402. @return converted Kerberos principal name
  31403. @throws IOException if the client address cannot be determined]]>
  31404. </doc>
  31405. </method>
  31406. <method name="getServerPrincipal" return="java.lang.String"
  31407. abstract="false" native="false" synchronized="false"
  31408. static="true" final="false" visibility="public"
  31409. deprecated="not deprecated">
  31410. <param name="principalConfig" type="java.lang.String"/>
  31411. <param name="addr" type="java.net.InetAddress"/>
  31412. <exception name="IOException" type="java.io.IOException"/>
  31413. <doc>
  31414. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  31415. This method is similar to {@link #getServerPrincipal(String, String)},
  31416. except 1) the reverse DNS lookup from addr to hostname is done only when
  31417. necessary, 2) param addr can't be null (no default behavior of using local
  31418. hostname when addr is null).
  31419. @param principalConfig
  31420. Kerberos principal name pattern to convert
  31421. @param addr
  31422. InetAddress of the host used for substitution
  31423. @return converted Kerberos principal name
  31424. @throws IOException if the client address cannot be determined]]>
  31425. </doc>
  31426. </method>
  31427. <method name="login"
  31428. abstract="false" native="false" synchronized="false"
  31429. static="true" final="false" visibility="public"
  31430. deprecated="not deprecated">
  31431. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31432. <param name="keytabFileKey" type="java.lang.String"/>
  31433. <param name="userNameKey" type="java.lang.String"/>
  31434. <exception name="IOException" type="java.io.IOException"/>
  31435. <doc>
  31436. <![CDATA[Login as a principal specified in config. Substitute $host in
  31437. user's Kerberos principal name with a dynamically looked-up fully-qualified
  31438. domain name of the current host.
  31439. @param conf
  31440. conf to use
  31441. @param keytabFileKey
  31442. the key to look for keytab file in conf
  31443. @param userNameKey
  31444. the key to look for user's Kerberos principal name in conf
  31445. @throws IOException if login fails]]>
  31446. </doc>
  31447. </method>
  31448. <method name="login"
  31449. abstract="false" native="false" synchronized="false"
  31450. static="true" final="false" visibility="public"
  31451. deprecated="not deprecated">
  31452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31453. <param name="keytabFileKey" type="java.lang.String"/>
  31454. <param name="userNameKey" type="java.lang.String"/>
  31455. <param name="hostname" type="java.lang.String"/>
  31456. <exception name="IOException" type="java.io.IOException"/>
  31457. <doc>
  31458. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  31459. name with hostname. If non-secure mode - return. If no keytab available -
  31460. bail out with an exception
  31461. @param conf
  31462. conf to use
  31463. @param keytabFileKey
  31464. the key to look for keytab file in conf
  31465. @param userNameKey
  31466. the key to look for user's Kerberos principal name in conf
  31467. @param hostname
  31468. hostname to use for substitution
  31469. @throws IOException if the config doesn't specify a keytab]]>
  31470. </doc>
  31471. </method>
  31472. <method name="buildDTServiceName" return="java.lang.String"
  31473. abstract="false" native="false" synchronized="false"
  31474. static="true" final="false" visibility="public"
  31475. deprecated="not deprecated">
  31476. <param name="uri" type="java.net.URI"/>
  31477. <param name="defPort" type="int"/>
  31478. <doc>
  31479. <![CDATA[create the service name for a Delegation token
  31480. @param uri of the service
  31481. @param defPort is used if the uri lacks a port
  31482. @return the token service, or null if no authority
  31483. @see #buildTokenService(InetSocketAddress)]]>
  31484. </doc>
  31485. </method>
  31486. <method name="getHostFromPrincipal" return="java.lang.String"
  31487. abstract="false" native="false" synchronized="false"
  31488. static="true" final="false" visibility="public"
  31489. deprecated="not deprecated">
  31490. <param name="principalName" type="java.lang.String"/>
  31491. <doc>
  31492. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  31493. @param principalName principal name of format as described above
  31494. @return host name if the the string conforms to the above format, else null]]>
  31495. </doc>
  31496. </method>
  31497. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  31498. abstract="false" native="false" synchronized="false"
  31499. static="true" final="false" visibility="public"
  31500. deprecated="not deprecated">
  31501. <param name="protocol" type="java.lang.Class"/>
  31502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31503. <doc>
  31504. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  31505. SecurityInfo providers.
  31506. @param protocol the protocol class to get the information for
  31507. @param conf configuration object
  31508. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  31509. </doc>
  31510. </method>
  31511. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  31512. abstract="false" native="false" synchronized="false"
  31513. static="true" final="false" visibility="public"
  31514. deprecated="not deprecated">
  31515. <param name="protocol" type="java.lang.Class"/>
  31516. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31517. <doc>
  31518. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  31519. SecurityInfo providers.
  31520. @param protocol The protocol class to get the information for.
  31521. @param conf Configuration object
  31522. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  31523. </doc>
  31524. </method>
  31525. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  31526. abstract="false" native="false" synchronized="false"
  31527. static="true" final="false" visibility="public"
  31528. deprecated="not deprecated">
  31529. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31530. <doc>
  31531. <![CDATA[Decode the given token's service field into an InetAddress
  31532. @param token from which to obtain the service
  31533. @return InetAddress for the service]]>
  31534. </doc>
  31535. </method>
  31536. <method name="setTokenService"
  31537. abstract="false" native="false" synchronized="false"
  31538. static="true" final="false" visibility="public"
  31539. deprecated="not deprecated">
  31540. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31541. <param name="addr" type="java.net.InetSocketAddress"/>
  31542. <doc>
  31543. <![CDATA[Set the given token's service to the format expected by the RPC client
  31544. @param token a delegation token
  31545. @param addr the socket for the rpc connection]]>
  31546. </doc>
  31547. </method>
  31548. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  31549. abstract="false" native="false" synchronized="false"
  31550. static="true" final="false" visibility="public"
  31551. deprecated="not deprecated">
  31552. <param name="addr" type="java.net.InetSocketAddress"/>
  31553. <doc>
  31554. <![CDATA[Construct the service key for a token
  31555. @param addr InetSocketAddress of remote connection with a token
  31556. @return "ip:port" or "host:port" depending on the value of
  31557. hadoop.security.token.service.use_ip]]>
  31558. </doc>
  31559. </method>
  31560. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  31561. abstract="false" native="false" synchronized="false"
  31562. static="true" final="false" visibility="public"
  31563. deprecated="not deprecated">
  31564. <param name="uri" type="java.net.URI"/>
  31565. <doc>
  31566. <![CDATA[Construct the service key for a token
  31567. @param uri of remote connection with a token
  31568. @return "ip:port" or "host:port" depending on the value of
  31569. hadoop.security.token.service.use_ip]]>
  31570. </doc>
  31571. </method>
  31572. <method name="doAsLoginUserOrFatal" return="T"
  31573. abstract="false" native="false" synchronized="false"
  31574. static="true" final="false" visibility="public"
  31575. deprecated="not deprecated">
  31576. <param name="action" type="java.security.PrivilegedAction"/>
  31577. <doc>
  31578. <![CDATA[Perform the given action as the daemon's login user. If the login
  31579. user cannot be determined, this will log a FATAL error and exit
  31580. the whole JVM.]]>
  31581. </doc>
  31582. </method>
  31583. <method name="doAsLoginUser" return="T"
  31584. abstract="false" native="false" synchronized="false"
  31585. static="true" final="false" visibility="public"
  31586. deprecated="not deprecated">
  31587. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31588. <exception name="IOException" type="java.io.IOException"/>
  31589. <doc>
  31590. <![CDATA[Perform the given action as the daemon's login user. If an
  31591. InterruptedException is thrown, it is converted to an IOException.
  31592. @param action the action to perform
  31593. @return the result of the action
  31594. @throws IOException in the event of error]]>
  31595. </doc>
  31596. </method>
  31597. <method name="doAsCurrentUser" return="T"
  31598. abstract="false" native="false" synchronized="false"
  31599. static="true" final="false" visibility="public"
  31600. deprecated="not deprecated">
  31601. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31602. <exception name="IOException" type="java.io.IOException"/>
  31603. <doc>
  31604. <![CDATA[Perform the given action as the daemon's current user. If an
  31605. InterruptedException is thrown, it is converted to an IOException.
  31606. @param action the action to perform
  31607. @return the result of the action
  31608. @throws IOException in the event of error]]>
  31609. </doc>
  31610. </method>
  31611. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  31612. abstract="false" native="false" synchronized="false"
  31613. static="true" final="false" visibility="public"
  31614. deprecated="not deprecated">
  31615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31616. </method>
  31617. <method name="setAuthenticationMethod"
  31618. abstract="false" native="false" synchronized="false"
  31619. static="true" final="false" visibility="public"
  31620. deprecated="not deprecated">
  31621. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  31622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31623. </method>
  31624. <method name="isPrivilegedPort" return="boolean"
  31625. abstract="false" native="false" synchronized="false"
  31626. static="true" final="false" visibility="public"
  31627. deprecated="not deprecated">
  31628. <param name="port" type="int"/>
  31629. </method>
  31630. <field name="LOG" type="org.apache.commons.logging.Log"
  31631. transient="false" volatile="false"
  31632. static="true" final="true" visibility="public"
  31633. deprecated="not deprecated">
  31634. </field>
  31635. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  31636. transient="false" volatile="false"
  31637. static="true" final="true" visibility="public"
  31638. deprecated="not deprecated">
  31639. </field>
  31640. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  31641. transient="false" volatile="false"
  31642. static="true" final="true" visibility="public"
  31643. deprecated="not deprecated">
  31644. </field>
  31645. <doc>
  31646. <![CDATA[Security Utils.]]>
  31647. </doc>
  31648. </class>
  31649. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  31650. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  31651. <class name="UserGroupInformation" extends="java.lang.Object"
  31652. abstract="false"
  31653. static="false" final="false" visibility="public"
  31654. deprecated="not deprecated">
  31655. <method name="setShouldRenewImmediatelyForTests"
  31656. abstract="false" native="false" synchronized="false"
  31657. static="true" final="false" visibility="public"
  31658. deprecated="not deprecated">
  31659. <param name="immediate" type="boolean"/>
  31660. <doc>
  31661. <![CDATA[For the purposes of unit tests, we want to test login
  31662. from keytab and don't want to wait until the renew
  31663. window (controlled by TICKET_RENEW_WINDOW).
  31664. @param immediate true if we should login without waiting for ticket window]]>
  31665. </doc>
  31666. </method>
  31667. <method name="setConfiguration"
  31668. abstract="false" native="false" synchronized="false"
  31669. static="true" final="false" visibility="public"
  31670. deprecated="not deprecated">
  31671. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31672. <doc>
  31673. <![CDATA[Set the static configuration for UGI.
  31674. In particular, set the security authentication mechanism and the
  31675. group look up service.
  31676. @param conf the configuration to use]]>
  31677. </doc>
  31678. </method>
  31679. <method name="isSecurityEnabled" return="boolean"
  31680. abstract="false" native="false" synchronized="false"
  31681. static="true" final="false" visibility="public"
  31682. deprecated="not deprecated">
  31683. <doc>
  31684. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  31685. user identities or is relying on simple authentication
  31686. @return true if UGI is working in a secure environment]]>
  31687. </doc>
  31688. </method>
  31689. <method name="hasKerberosCredentials" return="boolean"
  31690. abstract="false" native="false" synchronized="false"
  31691. static="false" final="false" visibility="public"
  31692. deprecated="not deprecated">
  31693. <doc>
  31694. <![CDATA[checks if logged in using kerberos
  31695. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  31696. </doc>
  31697. </method>
  31698. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  31699. abstract="false" native="false" synchronized="true"
  31700. static="true" final="false" visibility="public"
  31701. deprecated="not deprecated">
  31702. <exception name="IOException" type="java.io.IOException"/>
  31703. <doc>
  31704. <![CDATA[Return the current user, including any doAs in the current stack.
  31705. @return the current user
  31706. @throws IOException if login fails]]>
  31707. </doc>
  31708. </method>
  31709. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  31710. abstract="false" native="false" synchronized="false"
  31711. static="true" final="false" visibility="public"
  31712. deprecated="not deprecated">
  31713. <param name="ticketCachePath" type="java.lang.String"/>
  31714. <param name="user" type="java.lang.String"/>
  31715. <exception name="IOException" type="java.io.IOException"/>
  31716. <doc>
  31717. <![CDATA[Find the most appropriate UserGroupInformation to use
  31718. @param ticketCachePath The Kerberos ticket cache path, or NULL
  31719. if none is specfied
  31720. @param user The user name, or NULL if none is specified.
  31721. @return The most appropriate UserGroupInformation]]>
  31722. </doc>
  31723. </method>
  31724. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  31725. abstract="false" native="false" synchronized="false"
  31726. static="true" final="false" visibility="public"
  31727. deprecated="not deprecated">
  31728. <param name="ticketCache" type="java.lang.String"/>
  31729. <param name="user" type="java.lang.String"/>
  31730. <exception name="IOException" type="java.io.IOException"/>
  31731. <doc>
  31732. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  31733. @param user The principal name to load from the ticket
  31734. cache
  31735. @param ticketCache the path to the ticket cache file
  31736. @throws IOException if the kerberos login fails]]>
  31737. </doc>
  31738. </method>
  31739. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  31740. abstract="false" native="false" synchronized="false"
  31741. static="true" final="false" visibility="public"
  31742. deprecated="not deprecated">
  31743. <param name="subject" type="javax.security.auth.Subject"/>
  31744. <exception name="IOException" type="java.io.IOException"/>
  31745. <doc>
  31746. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  31747. @param subject The KerberosPrincipal to use in UGI
  31748. @throws IOException if the kerberos login fails]]>
  31749. </doc>
  31750. </method>
  31751. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  31752. abstract="false" native="false" synchronized="true"
  31753. static="true" final="false" visibility="public"
  31754. deprecated="not deprecated">
  31755. <exception name="IOException" type="java.io.IOException"/>
  31756. <doc>
  31757. <![CDATA[Get the currently logged in user.
  31758. @return the logged in user
  31759. @throws IOException if login fails]]>
  31760. </doc>
  31761. </method>
  31762. <method name="trimLoginMethod" return="java.lang.String"
  31763. abstract="false" native="false" synchronized="false"
  31764. static="true" final="false" visibility="public"
  31765. deprecated="not deprecated">
  31766. <param name="userName" type="java.lang.String"/>
  31767. <doc>
  31768. <![CDATA[remove the login method that is followed by a space from the username
  31769. e.g. "jack (auth:SIMPLE)" -> "jack"
  31770. @param userName
  31771. @return userName without login method]]>
  31772. </doc>
  31773. </method>
  31774. <method name="loginUserFromSubject"
  31775. abstract="false" native="false" synchronized="true"
  31776. static="true" final="false" visibility="public"
  31777. deprecated="not deprecated">
  31778. <param name="subject" type="javax.security.auth.Subject"/>
  31779. <exception name="IOException" type="java.io.IOException"/>
  31780. <doc>
  31781. <![CDATA[Log in a user using the given subject
  31782. @param subject the subject to use when logging in a user, or null to
  31783. create a new subject.
  31784. @throws IOException if login fails]]>
  31785. </doc>
  31786. </method>
  31787. <method name="isFromKeytab" return="boolean"
  31788. abstract="false" native="false" synchronized="false"
  31789. static="false" final="false" visibility="public"
  31790. deprecated="not deprecated">
  31791. <doc>
  31792. <![CDATA[Is this user logged in from a keytab file?
  31793. @return true if the credentials are from a keytab file.]]>
  31794. </doc>
  31795. </method>
  31796. <method name="loginUserFromKeytab"
  31797. abstract="false" native="false" synchronized="true"
  31798. static="true" final="false" visibility="public"
  31799. deprecated="not deprecated">
  31800. <param name="user" type="java.lang.String"/>
  31801. <param name="path" type="java.lang.String"/>
  31802. <exception name="IOException" type="java.io.IOException"/>
  31803. <doc>
  31804. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  31805. file and logs them in. They become the currently logged-in user.
  31806. @param user the principal name to load from the keytab
  31807. @param path the path to the keytab file
  31808. @throws IOException if the keytab file can't be read]]>
  31809. </doc>
  31810. </method>
  31811. <method name="logoutUserFromKeytab"
  31812. abstract="false" native="false" synchronized="false"
  31813. static="false" final="false" visibility="public"
  31814. deprecated="not deprecated">
  31815. <exception name="IOException" type="java.io.IOException"/>
  31816. <doc>
  31817. <![CDATA[Log the current user out who previously logged in using keytab.
  31818. This method assumes that the user logged in by calling
  31819. {@link #loginUserFromKeytab(String, String)}.
  31820. @throws IOException if a failure occurred in logout, or if the user did
  31821. not log in by invoking loginUserFromKeyTab() before.]]>
  31822. </doc>
  31823. </method>
  31824. <method name="checkTGTAndReloginFromKeytab"
  31825. abstract="false" native="false" synchronized="true"
  31826. static="false" final="false" visibility="public"
  31827. deprecated="not deprecated">
  31828. <exception name="IOException" type="java.io.IOException"/>
  31829. <doc>
  31830. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  31831. @throws IOException]]>
  31832. </doc>
  31833. </method>
  31834. <method name="reloginFromKeytab"
  31835. abstract="false" native="false" synchronized="true"
  31836. static="false" final="false" visibility="public"
  31837. deprecated="not deprecated">
  31838. <exception name="IOException" type="java.io.IOException"/>
  31839. <doc>
  31840. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  31841. file and logs them in. They become the currently logged-in user. This
  31842. method assumes that {@link #loginUserFromKeytab(String, String)} had
  31843. happened already.
  31844. The Subject field of this UserGroupInformation object is updated to have
  31845. the new credentials.
  31846. @throws IOException on a failure]]>
  31847. </doc>
  31848. </method>
  31849. <method name="reloginFromTicketCache"
  31850. abstract="false" native="false" synchronized="true"
  31851. static="false" final="false" visibility="public"
  31852. deprecated="not deprecated">
  31853. <exception name="IOException" type="java.io.IOException"/>
  31854. <doc>
  31855. <![CDATA[Re-Login a user in from the ticket cache. This
  31856. method assumes that login had happened already.
  31857. The Subject field of this UserGroupInformation object is updated to have
  31858. the new credentials.
  31859. @throws IOException on a failure]]>
  31860. </doc>
  31861. </method>
  31862. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  31863. abstract="false" native="false" synchronized="true"
  31864. static="true" final="false" visibility="public"
  31865. deprecated="not deprecated">
  31866. <param name="user" type="java.lang.String"/>
  31867. <param name="path" type="java.lang.String"/>
  31868. <exception name="IOException" type="java.io.IOException"/>
  31869. <doc>
  31870. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  31871. file and login them in. This new user does not affect the currently
  31872. logged-in user.
  31873. @param user the principal name to load from the keytab
  31874. @param path the path to the keytab file
  31875. @throws IOException if the keytab file can't be read]]>
  31876. </doc>
  31877. </method>
  31878. <method name="isLoginKeytabBased" return="boolean"
  31879. abstract="false" native="false" synchronized="true"
  31880. static="true" final="false" visibility="public"
  31881. deprecated="not deprecated">
  31882. <exception name="IOException" type="java.io.IOException"/>
  31883. <doc>
  31884. <![CDATA[Did the login happen via keytab
  31885. @return true or false]]>
  31886. </doc>
  31887. </method>
  31888. <method name="isLoginTicketBased" return="boolean"
  31889. abstract="false" native="false" synchronized="false"
  31890. static="true" final="false" visibility="public"
  31891. deprecated="not deprecated">
  31892. <exception name="IOException" type="java.io.IOException"/>
  31893. <doc>
  31894. <![CDATA[Did the login happen via ticket cache
  31895. @return true or false]]>
  31896. </doc>
  31897. </method>
  31898. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  31899. abstract="false" native="false" synchronized="false"
  31900. static="true" final="false" visibility="public"
  31901. deprecated="not deprecated">
  31902. <param name="user" type="java.lang.String"/>
  31903. <doc>
  31904. <![CDATA[Create a user from a login name. It is intended to be used for remote
  31905. users in RPC, since it won't have any credentials.
  31906. @param user the full user principal name, must not be empty or null
  31907. @return the UserGroupInformation for the remote user.]]>
  31908. </doc>
  31909. </method>
  31910. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  31911. abstract="false" native="false" synchronized="false"
  31912. static="true" final="false" visibility="public"
  31913. deprecated="not deprecated">
  31914. <param name="user" type="java.lang.String"/>
  31915. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  31916. <doc>
  31917. <![CDATA[Create a user from a login name. It is intended to be used for remote
  31918. users in RPC, since it won't have any credentials.
  31919. @param user the full user principal name, must not be empty or null
  31920. @return the UserGroupInformation for the remote user.]]>
  31921. </doc>
  31922. </method>
  31923. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  31924. abstract="false" native="false" synchronized="false"
  31925. static="true" final="false" visibility="public"
  31926. deprecated="not deprecated">
  31927. <param name="user" type="java.lang.String"/>
  31928. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  31929. <doc>
  31930. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  31931. real user.
  31932. @param user
  31933. @param realUser
  31934. @return proxyUser ugi]]>
  31935. </doc>
  31936. </method>
  31937. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  31938. abstract="false" native="false" synchronized="false"
  31939. static="false" final="false" visibility="public"
  31940. deprecated="not deprecated">
  31941. <doc>
  31942. <![CDATA[get RealUser (vs. EffectiveUser)
  31943. @return realUser running over proxy user]]>
  31944. </doc>
  31945. </method>
  31946. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  31947. abstract="false" native="false" synchronized="false"
  31948. static="true" final="false" visibility="public"
  31949. deprecated="not deprecated">
  31950. <param name="user" type="java.lang.String"/>
  31951. <param name="userGroups" type="java.lang.String[]"/>
  31952. <doc>
  31953. <![CDATA[Create a UGI for testing HDFS and MapReduce
  31954. @param user the full user principal name
  31955. @param userGroups the names of the groups that the user belongs to
  31956. @return a fake user for running unit tests]]>
  31957. </doc>
  31958. </method>
  31959. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  31960. abstract="false" native="false" synchronized="false"
  31961. static="true" final="false" visibility="public"
  31962. deprecated="not deprecated">
  31963. <param name="user" type="java.lang.String"/>
  31964. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  31965. <param name="userGroups" type="java.lang.String[]"/>
  31966. <doc>
  31967. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  31968. @param user
  31969. the full user principal name for effective user
  31970. @param realUser
  31971. UGI of the real user
  31972. @param userGroups
  31973. the names of the groups that the user belongs to
  31974. @return a fake user for running unit tests]]>
  31975. </doc>
  31976. </method>
  31977. <method name="getShortUserName" return="java.lang.String"
  31978. abstract="false" native="false" synchronized="false"
  31979. static="false" final="false" visibility="public"
  31980. deprecated="not deprecated">
  31981. <doc>
  31982. <![CDATA[Get the user's login name.
  31983. @return the user's name up to the first '/' or '@'.]]>
  31984. </doc>
  31985. </method>
  31986. <method name="getPrimaryGroupName" return="java.lang.String"
  31987. abstract="false" native="false" synchronized="false"
  31988. static="false" final="false" visibility="public"
  31989. deprecated="not deprecated">
  31990. <exception name="IOException" type="java.io.IOException"/>
  31991. </method>
  31992. <method name="getUserName" return="java.lang.String"
  31993. abstract="false" native="false" synchronized="false"
  31994. static="false" final="false" visibility="public"
  31995. deprecated="not deprecated">
  31996. <doc>
  31997. <![CDATA[Get the user's full principal name.
  31998. @return the user's full principal name.]]>
  31999. </doc>
  32000. </method>
  32001. <method name="addTokenIdentifier" return="boolean"
  32002. abstract="false" native="false" synchronized="true"
  32003. static="false" final="false" visibility="public"
  32004. deprecated="not deprecated">
  32005. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  32006. <doc>
  32007. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  32008. authenticated by the RPC layer as belonging to the user represented by this
  32009. UGI.
  32010. @param tokenId
  32011. tokenIdentifier to be added
  32012. @return true on successful add of new tokenIdentifier]]>
  32013. </doc>
  32014. </method>
  32015. <method name="getTokenIdentifiers" return="java.util.Set"
  32016. abstract="false" native="false" synchronized="true"
  32017. static="false" final="false" visibility="public"
  32018. deprecated="not deprecated">
  32019. <doc>
  32020. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  32021. @return the set of TokenIdentifiers belonging to this UGI]]>
  32022. </doc>
  32023. </method>
  32024. <method name="addToken" return="boolean"
  32025. abstract="false" native="false" synchronized="false"
  32026. static="false" final="false" visibility="public"
  32027. deprecated="not deprecated">
  32028. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  32029. <doc>
  32030. <![CDATA[Add a token to this UGI
  32031. @param token Token to be added
  32032. @return true on successful add of new token]]>
  32033. </doc>
  32034. </method>
  32035. <method name="addToken" return="boolean"
  32036. abstract="false" native="false" synchronized="false"
  32037. static="false" final="false" visibility="public"
  32038. deprecated="not deprecated">
  32039. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32040. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  32041. <doc>
  32042. <![CDATA[Add a named token to this UGI
  32043. @param alias Name of the token
  32044. @param token Token to be added
  32045. @return true on successful add of new token]]>
  32046. </doc>
  32047. </method>
  32048. <method name="getTokens" return="java.util.Collection"
  32049. abstract="false" native="false" synchronized="false"
  32050. static="false" final="false" visibility="public"
  32051. deprecated="not deprecated">
  32052. <doc>
  32053. <![CDATA[Obtain the collection of tokens associated with this user.
  32054. @return an unmodifiable collection of tokens associated with user]]>
  32055. </doc>
  32056. </method>
  32057. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  32058. abstract="false" native="false" synchronized="false"
  32059. static="false" final="false" visibility="public"
  32060. deprecated="not deprecated">
  32061. <doc>
  32062. <![CDATA[Obtain the tokens in credentials form associated with this user.
  32063. @return Credentials of tokens associated with this user]]>
  32064. </doc>
  32065. </method>
  32066. <method name="addCredentials"
  32067. abstract="false" native="false" synchronized="false"
  32068. static="false" final="false" visibility="public"
  32069. deprecated="not deprecated">
  32070. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  32071. <doc>
  32072. <![CDATA[Add the given Credentials to this user.
  32073. @param credentials of tokens and secrets]]>
  32074. </doc>
  32075. </method>
  32076. <method name="getGroupNames" return="java.lang.String[]"
  32077. abstract="false" native="false" synchronized="false"
  32078. static="false" final="false" visibility="public"
  32079. deprecated="not deprecated">
  32080. <doc>
  32081. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  32082. expensive alternative when checking for a contained element.
  32083. @return the list of users with the primary group first. If the command
  32084. fails, it returns an empty list.]]>
  32085. </doc>
  32086. </method>
  32087. <method name="getGroups" return="java.util.List"
  32088. abstract="false" native="false" synchronized="false"
  32089. static="false" final="false" visibility="public"
  32090. deprecated="not deprecated">
  32091. <doc>
  32092. <![CDATA[Get the group names for this user.
  32093. @return the list of users with the primary group first. If the command
  32094. fails, it returns an empty list.]]>
  32095. </doc>
  32096. </method>
  32097. <method name="toString" return="java.lang.String"
  32098. abstract="false" native="false" synchronized="false"
  32099. static="false" final="false" visibility="public"
  32100. deprecated="not deprecated">
  32101. <doc>
  32102. <![CDATA[Return the username.]]>
  32103. </doc>
  32104. </method>
  32105. <method name="setAuthenticationMethod"
  32106. abstract="false" native="false" synchronized="true"
  32107. static="false" final="false" visibility="public"
  32108. deprecated="not deprecated">
  32109. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  32110. <doc>
  32111. <![CDATA[Sets the authentication method in the subject
  32112. @param authMethod]]>
  32113. </doc>
  32114. </method>
  32115. <method name="setAuthenticationMethod"
  32116. abstract="false" native="false" synchronized="false"
  32117. static="false" final="false" visibility="public"
  32118. deprecated="not deprecated">
  32119. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  32120. <doc>
  32121. <![CDATA[Sets the authentication method in the subject
  32122. @param authMethod]]>
  32123. </doc>
  32124. </method>
  32125. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32126. abstract="false" native="false" synchronized="true"
  32127. static="false" final="false" visibility="public"
  32128. deprecated="not deprecated">
  32129. <doc>
  32130. <![CDATA[Get the authentication method from the subject
  32131. @return AuthenticationMethod in the subject, null if not present.]]>
  32132. </doc>
  32133. </method>
  32134. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32135. abstract="false" native="false" synchronized="true"
  32136. static="false" final="false" visibility="public"
  32137. deprecated="not deprecated">
  32138. <doc>
  32139. <![CDATA[Get the authentication method from the real user's subject. If there
  32140. is no real user, return the given user's authentication method.
  32141. @return AuthenticationMethod in the subject, null if not present.]]>
  32142. </doc>
  32143. </method>
  32144. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32145. abstract="false" native="false" synchronized="false"
  32146. static="true" final="false" visibility="public"
  32147. deprecated="not deprecated">
  32148. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32149. <doc>
  32150. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  32151. PROXY, returns the authentication method of the real user.
  32152. @param ugi
  32153. @return AuthenticationMethod]]>
  32154. </doc>
  32155. </method>
  32156. <method name="equals" return="boolean"
  32157. abstract="false" native="false" synchronized="false"
  32158. static="false" final="false" visibility="public"
  32159. deprecated="not deprecated">
  32160. <param name="o" type="java.lang.Object"/>
  32161. <doc>
  32162. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  32163. </doc>
  32164. </method>
  32165. <method name="hashCode" return="int"
  32166. abstract="false" native="false" synchronized="false"
  32167. static="false" final="false" visibility="public"
  32168. deprecated="not deprecated">
  32169. <doc>
  32170. <![CDATA[Return the hash of the subject.]]>
  32171. </doc>
  32172. </method>
  32173. <method name="getSubject" return="javax.security.auth.Subject"
  32174. abstract="false" native="false" synchronized="false"
  32175. static="false" final="false" visibility="protected"
  32176. deprecated="not deprecated">
  32177. <doc>
  32178. <![CDATA[Get the underlying subject from this ugi.
  32179. @return the subject that represents this user.]]>
  32180. </doc>
  32181. </method>
  32182. <method name="doAs" return="T"
  32183. abstract="false" native="false" synchronized="false"
  32184. static="false" final="false" visibility="public"
  32185. deprecated="not deprecated">
  32186. <param name="action" type="java.security.PrivilegedAction"/>
  32187. <doc>
  32188. <![CDATA[Run the given action as the user.
  32189. @param <T> the return type of the run method
  32190. @param action the method to execute
  32191. @return the value from the run method]]>
  32192. </doc>
  32193. </method>
  32194. <method name="doAs" return="T"
  32195. abstract="false" native="false" synchronized="false"
  32196. static="false" final="false" visibility="public"
  32197. deprecated="not deprecated">
  32198. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  32199. <exception name="IOException" type="java.io.IOException"/>
  32200. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  32201. <doc>
  32202. <![CDATA[Run the given action as the user, potentially throwing an exception.
  32203. @param <T> the return type of the run method
  32204. @param action the method to execute
  32205. @return the value from the run method
  32206. @throws IOException if the action throws an IOException
  32207. @throws Error if the action throws an Error
  32208. @throws RuntimeException if the action throws a RuntimeException
  32209. @throws InterruptedException if the action throws an InterruptedException
  32210. @throws UndeclaredThrowableException if the action throws something else]]>
  32211. </doc>
  32212. </method>
  32213. <method name="logAllUserInfo"
  32214. abstract="false" native="false" synchronized="false"
  32215. static="true" final="false" visibility="public"
  32216. deprecated="not deprecated">
  32217. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32218. <exception name="IOException" type="java.io.IOException"/>
  32219. </method>
  32220. <method name="main"
  32221. abstract="false" native="false" synchronized="false"
  32222. static="true" final="false" visibility="public"
  32223. deprecated="not deprecated">
  32224. <param name="args" type="java.lang.String[]"/>
  32225. <exception name="Exception" type="java.lang.Exception"/>
  32226. <doc>
  32227. <![CDATA[A test method to print out the current user's UGI.
  32228. @param args if there are two arguments, read the user from the keytab
  32229. and print it out.
  32230. @throws Exception]]>
  32231. </doc>
  32232. </method>
  32233. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  32234. transient="false" volatile="false"
  32235. static="true" final="true" visibility="public"
  32236. deprecated="not deprecated">
  32237. <doc>
  32238. <![CDATA[Environment variable pointing to the token cache file]]>
  32239. </doc>
  32240. </field>
  32241. <doc>
  32242. <![CDATA[User and group information for Hadoop.
  32243. This class wraps around a JAAS Subject and provides methods to determine the
  32244. user's username and groups. It supports both the Windows, Unix and Kerberos
  32245. login modules.]]>
  32246. </doc>
  32247. </class>
  32248. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  32249. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  32250. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  32251. abstract="false"
  32252. static="true" final="true" visibility="public"
  32253. deprecated="not deprecated">
  32254. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  32255. abstract="false" native="false" synchronized="false"
  32256. static="true" final="false" visibility="public"
  32257. deprecated="not deprecated">
  32258. </method>
  32259. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32260. abstract="false" native="false" synchronized="false"
  32261. static="true" final="false" visibility="public"
  32262. deprecated="not deprecated">
  32263. <param name="name" type="java.lang.String"/>
  32264. </method>
  32265. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  32266. abstract="false" native="false" synchronized="false"
  32267. static="false" final="false" visibility="public"
  32268. deprecated="not deprecated">
  32269. </method>
  32270. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32271. abstract="false" native="false" synchronized="false"
  32272. static="true" final="false" visibility="public"
  32273. deprecated="not deprecated">
  32274. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  32275. </method>
  32276. <doc>
  32277. <![CDATA[existing types of authentications' methods]]>
  32278. </doc>
  32279. </class>
  32280. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  32281. </package>
  32282. <package name="org.apache.hadoop.security.alias">
  32283. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  32284. <class name="CredentialProvider" extends="java.lang.Object"
  32285. abstract="true"
  32286. static="false" final="false" visibility="public"
  32287. deprecated="not deprecated">
  32288. <constructor name="CredentialProvider"
  32289. static="false" final="false" visibility="public"
  32290. deprecated="not deprecated">
  32291. </constructor>
  32292. <method name="isTransient" return="boolean"
  32293. abstract="false" native="false" synchronized="false"
  32294. static="false" final="false" visibility="public"
  32295. deprecated="not deprecated">
  32296. <doc>
  32297. <![CDATA[Indicates whether this provider represents a store
  32298. that is intended for transient use - such as the UserProvider
  32299. is. These providers are generally used to provide job access to
  32300. passwords rather than for long term storage.
  32301. @return true if transient, false otherwise]]>
  32302. </doc>
  32303. </method>
  32304. <method name="flush"
  32305. abstract="true" native="false" synchronized="false"
  32306. static="false" final="false" visibility="public"
  32307. deprecated="not deprecated">
  32308. <exception name="IOException" type="java.io.IOException"/>
  32309. <doc>
  32310. <![CDATA[Ensures that any changes to the credentials are written to persistent
  32311. store.
  32312. @throws IOException]]>
  32313. </doc>
  32314. </method>
  32315. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  32316. abstract="true" native="false" synchronized="false"
  32317. static="false" final="false" visibility="public"
  32318. deprecated="not deprecated">
  32319. <param name="alias" type="java.lang.String"/>
  32320. <exception name="IOException" type="java.io.IOException"/>
  32321. <doc>
  32322. <![CDATA[Get the credential entry for a specific alias.
  32323. @param alias the name of a specific credential
  32324. @return the credentialEntry
  32325. @throws IOException]]>
  32326. </doc>
  32327. </method>
  32328. <method name="getAliases" return="java.util.List"
  32329. abstract="true" native="false" synchronized="false"
  32330. static="false" final="false" visibility="public"
  32331. deprecated="not deprecated">
  32332. <exception name="IOException" type="java.io.IOException"/>
  32333. <doc>
  32334. <![CDATA[Get the aliases for all credentials.
  32335. @return the list of alias names
  32336. @throws IOException]]>
  32337. </doc>
  32338. </method>
  32339. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  32340. abstract="true" native="false" synchronized="false"
  32341. static="false" final="false" visibility="public"
  32342. deprecated="not deprecated">
  32343. <param name="name" type="java.lang.String"/>
  32344. <param name="credential" type="char[]"/>
  32345. <exception name="IOException" type="java.io.IOException"/>
  32346. <doc>
  32347. <![CDATA[Create a new credential. The given alias must not already exist.
  32348. @param name the alias of the credential
  32349. @param credential the credential value for the alias.
  32350. @throws IOException]]>
  32351. </doc>
  32352. </method>
  32353. <method name="deleteCredentialEntry"
  32354. abstract="true" native="false" synchronized="false"
  32355. static="false" final="false" visibility="public"
  32356. deprecated="not deprecated">
  32357. <param name="name" type="java.lang.String"/>
  32358. <exception name="IOException" type="java.io.IOException"/>
  32359. <doc>
  32360. <![CDATA[Delete the given credential.
  32361. @param name the alias of the credential to delete
  32362. @throws IOException]]>
  32363. </doc>
  32364. </method>
  32365. <method name="needsPassword" return="boolean"
  32366. abstract="false" native="false" synchronized="false"
  32367. static="false" final="false" visibility="public"
  32368. deprecated="not deprecated">
  32369. <exception name="IOException" type="java.io.IOException"/>
  32370. <doc>
  32371. <![CDATA[Does this provider require a password? This means that a password is
  32372. required for normal operation, and it has not been found through normal
  32373. means. If true, the password should be provided by the caller using
  32374. setPassword().
  32375. @return Whether or not the provider requires a password
  32376. @throws IOException]]>
  32377. </doc>
  32378. </method>
  32379. <method name="noPasswordWarning" return="java.lang.String"
  32380. abstract="false" native="false" synchronized="false"
  32381. static="false" final="false" visibility="public"
  32382. deprecated="not deprecated">
  32383. <doc>
  32384. <![CDATA[If a password for the provider is needed, but is not provided, this will
  32385. return a warning and instructions for supplying said password to the
  32386. provider.
  32387. @return A warning and instructions for supplying the password]]>
  32388. </doc>
  32389. </method>
  32390. <method name="noPasswordError" return="java.lang.String"
  32391. abstract="false" native="false" synchronized="false"
  32392. static="false" final="false" visibility="public"
  32393. deprecated="not deprecated">
  32394. <doc>
  32395. <![CDATA[If a password for the provider is needed, but is not provided, this will
  32396. return an error message and instructions for supplying said password to
  32397. the provider.
  32398. @return An error message and instructions for supplying the password]]>
  32399. </doc>
  32400. </method>
  32401. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  32402. transient="false" volatile="false"
  32403. static="true" final="true" visibility="public"
  32404. deprecated="not deprecated">
  32405. </field>
  32406. <doc>
  32407. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  32408. abstraction to separate credential storage from users of them. It
  32409. is intended to support getting or storing passwords in a variety of ways,
  32410. including third party bindings.]]>
  32411. </doc>
  32412. </class>
  32413. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  32414. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  32415. <class name="CredentialProviderFactory" extends="java.lang.Object"
  32416. abstract="true"
  32417. static="false" final="false" visibility="public"
  32418. deprecated="not deprecated">
  32419. <constructor name="CredentialProviderFactory"
  32420. static="false" final="false" visibility="public"
  32421. deprecated="not deprecated">
  32422. </constructor>
  32423. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  32424. abstract="true" native="false" synchronized="false"
  32425. static="false" final="false" visibility="public"
  32426. deprecated="not deprecated">
  32427. <param name="providerName" type="java.net.URI"/>
  32428. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32429. <exception name="IOException" type="java.io.IOException"/>
  32430. </method>
  32431. <method name="getProviders" return="java.util.List"
  32432. abstract="false" native="false" synchronized="false"
  32433. static="true" final="false" visibility="public"
  32434. deprecated="not deprecated">
  32435. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32436. <exception name="IOException" type="java.io.IOException"/>
  32437. </method>
  32438. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  32439. transient="false" volatile="false"
  32440. static="true" final="true" visibility="public"
  32441. deprecated="not deprecated">
  32442. </field>
  32443. <doc>
  32444. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  32445. Configuration. It uses a service loader interface to find the available
  32446. CredentialProviders and create them based on the list of URIs.]]>
  32447. </doc>
  32448. </class>
  32449. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  32450. </package>
  32451. <package name="org.apache.hadoop.security.authorize">
  32452. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  32453. <class name="AccessControlList" extends="java.lang.Object"
  32454. abstract="false"
  32455. static="false" final="false" visibility="public"
  32456. deprecated="not deprecated">
  32457. <implements name="org.apache.hadoop.io.Writable"/>
  32458. <constructor name="AccessControlList"
  32459. static="false" final="false" visibility="public"
  32460. deprecated="not deprecated">
  32461. <doc>
  32462. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  32463. </doc>
  32464. </constructor>
  32465. <constructor name="AccessControlList" type="java.lang.String"
  32466. static="false" final="false" visibility="public"
  32467. deprecated="not deprecated">
  32468. <doc>
  32469. <![CDATA[Construct a new ACL from a String representation of the same.
  32470. The String is a a comma separated list of users and groups.
  32471. The user list comes first and is separated by a space followed
  32472. by the group list. For e.g. "user1,user2 group1,group2"
  32473. @param aclString String representation of the ACL]]>
  32474. </doc>
  32475. </constructor>
  32476. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  32477. static="false" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. <doc>
  32480. <![CDATA[Construct a new ACL from String representation of users and groups
  32481. The arguments are comma separated lists
  32482. @param users comma separated list of users
  32483. @param groups comma separated list of groups]]>
  32484. </doc>
  32485. </constructor>
  32486. <method name="isAllAllowed" return="boolean"
  32487. abstract="false" native="false" synchronized="false"
  32488. static="false" final="false" visibility="public"
  32489. deprecated="not deprecated">
  32490. </method>
  32491. <method name="addUser"
  32492. abstract="false" native="false" synchronized="false"
  32493. static="false" final="false" visibility="public"
  32494. deprecated="not deprecated">
  32495. <param name="user" type="java.lang.String"/>
  32496. <doc>
  32497. <![CDATA[Add user to the names of users allowed for this service.
  32498. @param user
  32499. The user name]]>
  32500. </doc>
  32501. </method>
  32502. <method name="addGroup"
  32503. abstract="false" native="false" synchronized="false"
  32504. static="false" final="false" visibility="public"
  32505. deprecated="not deprecated">
  32506. <param name="group" type="java.lang.String"/>
  32507. <doc>
  32508. <![CDATA[Add group to the names of groups allowed for this service.
  32509. @param group
  32510. The group name]]>
  32511. </doc>
  32512. </method>
  32513. <method name="removeUser"
  32514. abstract="false" native="false" synchronized="false"
  32515. static="false" final="false" visibility="public"
  32516. deprecated="not deprecated">
  32517. <param name="user" type="java.lang.String"/>
  32518. <doc>
  32519. <![CDATA[Remove user from the names of users allowed for this service.
  32520. @param user
  32521. The user name]]>
  32522. </doc>
  32523. </method>
  32524. <method name="removeGroup"
  32525. abstract="false" native="false" synchronized="false"
  32526. static="false" final="false" visibility="public"
  32527. deprecated="not deprecated">
  32528. <param name="group" type="java.lang.String"/>
  32529. <doc>
  32530. <![CDATA[Remove group from the names of groups allowed for this service.
  32531. @param group
  32532. The group name]]>
  32533. </doc>
  32534. </method>
  32535. <method name="getUsers" return="java.util.Collection"
  32536. abstract="false" native="false" synchronized="false"
  32537. static="false" final="false" visibility="public"
  32538. deprecated="not deprecated">
  32539. <doc>
  32540. <![CDATA[Get the names of users allowed for this service.
  32541. @return the set of user names. the set must not be modified.]]>
  32542. </doc>
  32543. </method>
  32544. <method name="getGroups" return="java.util.Collection"
  32545. abstract="false" native="false" synchronized="false"
  32546. static="false" final="false" visibility="public"
  32547. deprecated="not deprecated">
  32548. <doc>
  32549. <![CDATA[Get the names of user groups allowed for this service.
  32550. @return the set of group names. the set must not be modified.]]>
  32551. </doc>
  32552. </method>
  32553. <method name="isUserInList" return="boolean"
  32554. abstract="false" native="false" synchronized="false"
  32555. static="false" final="true" visibility="public"
  32556. deprecated="not deprecated">
  32557. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32558. <doc>
  32559. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  32560. is a member of the Access Control List
  32561. @param ugi UserGroupInformation to check if contained in the ACL
  32562. @return true if ugi is member of the list]]>
  32563. </doc>
  32564. </method>
  32565. <method name="isUserAllowed" return="boolean"
  32566. abstract="false" native="false" synchronized="false"
  32567. static="false" final="false" visibility="public"
  32568. deprecated="not deprecated">
  32569. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32570. </method>
  32571. <method name="toString" return="java.lang.String"
  32572. abstract="false" native="false" synchronized="false"
  32573. static="false" final="false" visibility="public"
  32574. deprecated="not deprecated">
  32575. <doc>
  32576. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  32577. Use {@link #getAclString()} to get the exact String that can be given to
  32578. the constructor of AccessControlList to create a new instance.]]>
  32579. </doc>
  32580. </method>
  32581. <method name="getAclString" return="java.lang.String"
  32582. abstract="false" native="false" synchronized="false"
  32583. static="false" final="false" visibility="public"
  32584. deprecated="not deprecated">
  32585. <doc>
  32586. <![CDATA[Returns the access control list as a String that can be used for building a
  32587. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  32588. </doc>
  32589. </method>
  32590. <method name="write"
  32591. abstract="false" native="false" synchronized="false"
  32592. static="false" final="false" visibility="public"
  32593. deprecated="not deprecated">
  32594. <param name="out" type="java.io.DataOutput"/>
  32595. <exception name="IOException" type="java.io.IOException"/>
  32596. <doc>
  32597. <![CDATA[Serializes the AccessControlList object]]>
  32598. </doc>
  32599. </method>
  32600. <method name="readFields"
  32601. abstract="false" native="false" synchronized="false"
  32602. static="false" final="false" visibility="public"
  32603. deprecated="not deprecated">
  32604. <param name="in" type="java.io.DataInput"/>
  32605. <exception name="IOException" type="java.io.IOException"/>
  32606. <doc>
  32607. <![CDATA[Deserializes the AccessControlList object]]>
  32608. </doc>
  32609. </method>
  32610. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  32611. transient="false" volatile="false"
  32612. static="true" final="true" visibility="public"
  32613. deprecated="not deprecated">
  32614. </field>
  32615. <doc>
  32616. <![CDATA[Class representing a configured access control list.]]>
  32617. </doc>
  32618. </class>
  32619. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  32620. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  32621. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  32622. abstract="false"
  32623. static="false" final="false" visibility="public"
  32624. deprecated="not deprecated">
  32625. <constructor name="AuthorizationException"
  32626. static="false" final="false" visibility="public"
  32627. deprecated="not deprecated">
  32628. </constructor>
  32629. <constructor name="AuthorizationException" type="java.lang.String"
  32630. static="false" final="false" visibility="public"
  32631. deprecated="not deprecated">
  32632. </constructor>
  32633. <constructor name="AuthorizationException" type="java.lang.Throwable"
  32634. static="false" final="false" visibility="public"
  32635. deprecated="not deprecated">
  32636. <doc>
  32637. <![CDATA[Constructs a new exception with the specified cause and a detail
  32638. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32639. typically contains the class and detail message of <tt>cause</tt>).
  32640. @param cause the cause (which is saved for later retrieval by the
  32641. {@link #getCause()} method). (A <tt>null</tt> value is
  32642. permitted, and indicates that the cause is nonexistent or
  32643. unknown.)]]>
  32644. </doc>
  32645. </constructor>
  32646. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  32647. abstract="false" native="false" synchronized="false"
  32648. static="false" final="false" visibility="public"
  32649. deprecated="not deprecated">
  32650. </method>
  32651. <method name="printStackTrace"
  32652. abstract="false" native="false" synchronized="false"
  32653. static="false" final="false" visibility="public"
  32654. deprecated="not deprecated">
  32655. </method>
  32656. <method name="printStackTrace"
  32657. abstract="false" native="false" synchronized="false"
  32658. static="false" final="false" visibility="public"
  32659. deprecated="not deprecated">
  32660. <param name="s" type="java.io.PrintStream"/>
  32661. </method>
  32662. <method name="printStackTrace"
  32663. abstract="false" native="false" synchronized="false"
  32664. static="false" final="false" visibility="public"
  32665. deprecated="not deprecated">
  32666. <param name="s" type="java.io.PrintWriter"/>
  32667. </method>
  32668. <doc>
  32669. <![CDATA[An exception class for authorization-related issues.
  32670. This class <em>does not</em> provide the stack trace for security purposes.]]>
  32671. </doc>
  32672. </class>
  32673. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  32674. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  32675. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  32676. abstract="false"
  32677. static="false" final="false" visibility="public"
  32678. deprecated="not deprecated">
  32679. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  32680. <constructor name="DefaultImpersonationProvider"
  32681. static="false" final="false" visibility="public"
  32682. deprecated="not deprecated">
  32683. </constructor>
  32684. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  32685. abstract="false" native="false" synchronized="true"
  32686. static="true" final="false" visibility="public"
  32687. deprecated="not deprecated">
  32688. </method>
  32689. <method name="setConf"
  32690. abstract="false" native="false" synchronized="false"
  32691. static="false" final="false" visibility="public"
  32692. deprecated="not deprecated">
  32693. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32694. </method>
  32695. <method name="init"
  32696. abstract="false" native="false" synchronized="false"
  32697. static="false" final="false" visibility="public"
  32698. deprecated="not deprecated">
  32699. <param name="configurationPrefix" type="java.lang.String"/>
  32700. </method>
  32701. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  32702. abstract="false" native="false" synchronized="false"
  32703. static="false" final="false" visibility="public"
  32704. deprecated="not deprecated">
  32705. </method>
  32706. <method name="authorize"
  32707. abstract="false" native="false" synchronized="false"
  32708. static="false" final="false" visibility="public"
  32709. deprecated="not deprecated">
  32710. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32711. <param name="remoteAddress" type="java.lang.String"/>
  32712. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32713. </method>
  32714. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  32715. abstract="false" native="false" synchronized="false"
  32716. static="false" final="false" visibility="public"
  32717. deprecated="not deprecated">
  32718. <param name="userName" type="java.lang.String"/>
  32719. <doc>
  32720. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  32721. @param userName name of the superuser
  32722. @return configuration key for superuser usergroups]]>
  32723. </doc>
  32724. </method>
  32725. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  32726. abstract="false" native="false" synchronized="false"
  32727. static="false" final="false" visibility="public"
  32728. deprecated="not deprecated">
  32729. <param name="userName" type="java.lang.String"/>
  32730. <doc>
  32731. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  32732. @param userName name of the superuser
  32733. @return configuration key for superuser groups]]>
  32734. </doc>
  32735. </method>
  32736. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  32737. abstract="false" native="false" synchronized="false"
  32738. static="false" final="false" visibility="public"
  32739. deprecated="not deprecated">
  32740. <param name="userName" type="java.lang.String"/>
  32741. <doc>
  32742. <![CDATA[Return configuration key for superuser ip addresses
  32743. @param userName name of the superuser
  32744. @return configuration key for superuser ip-addresses]]>
  32745. </doc>
  32746. </method>
  32747. <method name="getProxyGroups" return="java.util.Map"
  32748. abstract="false" native="false" synchronized="false"
  32749. static="false" final="false" visibility="public"
  32750. deprecated="not deprecated">
  32751. </method>
  32752. <method name="getProxyHosts" return="java.util.Map"
  32753. abstract="false" native="false" synchronized="false"
  32754. static="false" final="false" visibility="public"
  32755. deprecated="not deprecated">
  32756. </method>
  32757. </class>
  32758. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  32759. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  32760. <interface name="ImpersonationProvider" abstract="true"
  32761. static="false" final="false" visibility="public"
  32762. deprecated="not deprecated">
  32763. <implements name="org.apache.hadoop.conf.Configurable"/>
  32764. <method name="init"
  32765. abstract="false" native="false" synchronized="false"
  32766. static="false" final="false" visibility="public"
  32767. deprecated="not deprecated">
  32768. <param name="configurationPrefix" type="java.lang.String"/>
  32769. <doc>
  32770. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  32771. initializes the provider.
  32772. @param configurationPrefix the configuration prefix for the proxy user
  32773. properties]]>
  32774. </doc>
  32775. </method>
  32776. <method name="authorize"
  32777. abstract="false" native="false" synchronized="false"
  32778. static="false" final="false" visibility="public"
  32779. deprecated="not deprecated">
  32780. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32781. <param name="remoteAddress" type="java.lang.String"/>
  32782. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32783. <doc>
  32784. <![CDATA[Authorize the superuser which is doing doAs
  32785. @param user ugi of the effective or proxy user which contains a real user
  32786. @param remoteAddress the ip address of client
  32787. @throws AuthorizationException]]>
  32788. </doc>
  32789. </method>
  32790. </interface>
  32791. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  32792. </package>
  32793. <package name="org.apache.hadoop.security.http">
  32794. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  32795. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  32796. abstract="false"
  32797. static="false" final="false" visibility="public"
  32798. deprecated="not deprecated">
  32799. <implements name="javax.servlet.Filter"/>
  32800. <constructor name="RestCsrfPreventionFilter"
  32801. static="false" final="false" visibility="public"
  32802. deprecated="not deprecated">
  32803. </constructor>
  32804. <method name="init"
  32805. abstract="false" native="false" synchronized="false"
  32806. static="false" final="false" visibility="public"
  32807. deprecated="not deprecated">
  32808. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  32809. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32810. </method>
  32811. <method name="isBrowser" return="boolean"
  32812. abstract="false" native="false" synchronized="false"
  32813. static="false" final="false" visibility="protected"
  32814. deprecated="not deprecated">
  32815. <param name="userAgent" type="java.lang.String"/>
  32816. <doc>
  32817. <![CDATA[This method interrogates the User-Agent String and returns whether it
  32818. refers to a browser. If its not a browser, then the requirement for the
  32819. CSRF header will not be enforced; if it is a browser, the requirement will
  32820. be enforced.
  32821. <p>
  32822. A User-Agent String is considered to be a browser if it matches
  32823. any of the regex patterns from browser-useragent-regex; the default
  32824. behavior is to consider everything a browser that matches the following:
  32825. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  32826. this method to use different behavior.
  32827. @param userAgent The User-Agent String, or null if there isn't one
  32828. @return true if the User-Agent String refers to a browser, false if not]]>
  32829. </doc>
  32830. </method>
  32831. <method name="handleHttpInteraction"
  32832. abstract="false" native="false" synchronized="false"
  32833. static="false" final="false" visibility="public"
  32834. deprecated="not deprecated">
  32835. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  32836. <exception name="IOException" type="java.io.IOException"/>
  32837. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32838. <doc>
  32839. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  32840. @param httpInteraction caller's HTTP interaction
  32841. @throws IOException if there is an I/O error
  32842. @throws ServletException if the implementation relies on the servlet API
  32843. and a servlet API call has failed]]>
  32844. </doc>
  32845. </method>
  32846. <method name="doFilter"
  32847. abstract="false" native="false" synchronized="false"
  32848. static="false" final="false" visibility="public"
  32849. deprecated="not deprecated">
  32850. <param name="request" type="javax.servlet.ServletRequest"/>
  32851. <param name="response" type="javax.servlet.ServletResponse"/>
  32852. <param name="chain" type="javax.servlet.FilterChain"/>
  32853. <exception name="IOException" type="java.io.IOException"/>
  32854. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32855. </method>
  32856. <method name="destroy"
  32857. abstract="false" native="false" synchronized="false"
  32858. static="false" final="false" visibility="public"
  32859. deprecated="not deprecated">
  32860. </method>
  32861. <method name="getFilterParams" return="java.util.Map"
  32862. abstract="false" native="false" synchronized="false"
  32863. static="true" final="false" visibility="public"
  32864. deprecated="not deprecated">
  32865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32866. <param name="confPrefix" type="java.lang.String"/>
  32867. <doc>
  32868. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  32869. initialization. The mapping includes all properties that start with the
  32870. specified configuration prefix. Property names in the mapping are trimmed
  32871. to remove the configuration prefix.
  32872. @param conf configuration to read
  32873. @param confPrefix configuration prefix
  32874. @return mapping of configuration properties to be used for filter
  32875. initialization]]>
  32876. </doc>
  32877. </method>
  32878. <field name="HEADER_USER_AGENT" type="java.lang.String"
  32879. transient="false" volatile="false"
  32880. static="true" final="true" visibility="public"
  32881. deprecated="not deprecated">
  32882. </field>
  32883. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  32884. transient="false" volatile="false"
  32885. static="true" final="true" visibility="public"
  32886. deprecated="not deprecated">
  32887. </field>
  32888. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  32889. transient="false" volatile="false"
  32890. static="true" final="true" visibility="public"
  32891. deprecated="not deprecated">
  32892. </field>
  32893. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  32894. transient="false" volatile="false"
  32895. static="true" final="true" visibility="public"
  32896. deprecated="not deprecated">
  32897. </field>
  32898. <doc>
  32899. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  32900. attacks for REST APIs. Enabling this filter on an endpoint results in the
  32901. requirement of all client to send a particular (configurable) HTTP header
  32902. with every request. In the absense of this header the filter will reject the
  32903. attempt as a bad request.]]>
  32904. </doc>
  32905. </class>
  32906. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  32907. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  32908. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  32909. abstract="false"
  32910. static="false" final="false" visibility="public"
  32911. deprecated="not deprecated">
  32912. <implements name="javax.servlet.Filter"/>
  32913. <constructor name="XFrameOptionsFilter"
  32914. static="false" final="false" visibility="public"
  32915. deprecated="not deprecated">
  32916. </constructor>
  32917. <method name="destroy"
  32918. abstract="false" native="false" synchronized="false"
  32919. static="false" final="false" visibility="public"
  32920. deprecated="not deprecated">
  32921. </method>
  32922. <method name="doFilter"
  32923. abstract="false" native="false" synchronized="false"
  32924. static="false" final="false" visibility="public"
  32925. deprecated="not deprecated">
  32926. <param name="req" type="javax.servlet.ServletRequest"/>
  32927. <param name="res" type="javax.servlet.ServletResponse"/>
  32928. <param name="chain" type="javax.servlet.FilterChain"/>
  32929. <exception name="IOException" type="java.io.IOException"/>
  32930. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32931. </method>
  32932. <method name="init"
  32933. abstract="false" native="false" synchronized="false"
  32934. static="false" final="false" visibility="public"
  32935. deprecated="not deprecated">
  32936. <param name="config" type="javax.servlet.FilterConfig"/>
  32937. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32938. </method>
  32939. <method name="getFilterParams" return="java.util.Map"
  32940. abstract="false" native="false" synchronized="false"
  32941. static="true" final="false" visibility="public"
  32942. deprecated="not deprecated">
  32943. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32944. <param name="confPrefix" type="java.lang.String"/>
  32945. <doc>
  32946. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  32947. initialization. The mapping includes all properties that start with the
  32948. specified configuration prefix. Property names in the mapping are trimmed
  32949. to remove the configuration prefix.
  32950. @param conf configuration to read
  32951. @param confPrefix configuration prefix
  32952. @return mapping of configuration properties to be used for filter
  32953. initialization]]>
  32954. </doc>
  32955. </method>
  32956. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  32957. transient="false" volatile="false"
  32958. static="true" final="true" visibility="public"
  32959. deprecated="not deprecated">
  32960. </field>
  32961. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  32962. transient="false" volatile="false"
  32963. static="true" final="true" visibility="public"
  32964. deprecated="not deprecated">
  32965. </field>
  32966. <doc>
  32967. <![CDATA[This filter protects webapps from clickjacking attacks that
  32968. are possible through use of Frames to embed the resources in another
  32969. application and intercept clicks to accomplish nefarious things.]]>
  32970. </doc>
  32971. </class>
  32972. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  32973. </package>
  32974. <package name="org.apache.hadoop.security.protocolPB">
  32975. </package>
  32976. <package name="org.apache.hadoop.security.ssl">
  32977. </package>
  32978. <package name="org.apache.hadoop.security.token">
  32979. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  32980. <class name="SecretManager" extends="java.lang.Object"
  32981. abstract="true"
  32982. static="false" final="false" visibility="public"
  32983. deprecated="not deprecated">
  32984. <constructor name="SecretManager"
  32985. static="false" final="false" visibility="public"
  32986. deprecated="not deprecated">
  32987. </constructor>
  32988. <method name="createPassword" return="byte[]"
  32989. abstract="true" native="false" synchronized="false"
  32990. static="false" final="false" visibility="protected"
  32991. deprecated="not deprecated">
  32992. <param name="identifier" type="T"/>
  32993. <doc>
  32994. <![CDATA[Create the password for the given identifier.
  32995. identifier may be modified inside this method.
  32996. @param identifier the identifier to use
  32997. @return the new password]]>
  32998. </doc>
  32999. </method>
  33000. <method name="retrievePassword" return="byte[]"
  33001. abstract="true" native="false" synchronized="false"
  33002. static="false" final="false" visibility="public"
  33003. deprecated="not deprecated">
  33004. <param name="identifier" type="T"/>
  33005. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  33006. <doc>
  33007. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  33008. or registry to make sure the token hasn't expired or been revoked. Returns
  33009. the relevant password.
  33010. @param identifier the identifier to validate
  33011. @return the password to use
  33012. @throws InvalidToken the token was invalid]]>
  33013. </doc>
  33014. </method>
  33015. <method name="retriableRetrievePassword" return="byte[]"
  33016. abstract="false" native="false" synchronized="false"
  33017. static="false" final="false" visibility="public"
  33018. deprecated="not deprecated">
  33019. <param name="identifier" type="T"/>
  33020. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  33021. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  33022. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  33023. <exception name="IOException" type="java.io.IOException"/>
  33024. <doc>
  33025. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  33026. method can throw a {@link RetriableException} or a {@link StandbyException}
  33027. to indicate that client can retry/failover the same operation because of
  33028. temporary issue on the server side.
  33029. @param identifier the identifier to validate
  33030. @return the password to use
  33031. @throws InvalidToken the token was invalid
  33032. @throws StandbyException the server is in standby state, the client can
  33033. try other servers
  33034. @throws RetriableException the token was invalid, and the server thinks
  33035. this may be a temporary issue and suggests the client to retry
  33036. @throws IOException to allow future exceptions to be added without breaking
  33037. compatibility]]>
  33038. </doc>
  33039. </method>
  33040. <method name="createIdentifier" return="T"
  33041. abstract="true" native="false" synchronized="false"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <doc>
  33045. <![CDATA[Create an empty token identifier.
  33046. @return the newly created empty token identifier]]>
  33047. </doc>
  33048. </method>
  33049. <method name="checkAvailableForRead"
  33050. abstract="false" native="false" synchronized="false"
  33051. static="false" final="false" visibility="public"
  33052. deprecated="not deprecated">
  33053. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  33054. <doc>
  33055. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  33056. StandbyException otherwise.
  33057. @throws StandbyException if the secret manager is not available to read
  33058. tokens]]>
  33059. </doc>
  33060. </method>
  33061. <method name="generateSecret" return="javax.crypto.SecretKey"
  33062. abstract="false" native="false" synchronized="false"
  33063. static="false" final="false" visibility="protected"
  33064. deprecated="not deprecated">
  33065. <doc>
  33066. <![CDATA[Generate a new random secret key.
  33067. @return the new key]]>
  33068. </doc>
  33069. </method>
  33070. <method name="createPassword" return="byte[]"
  33071. abstract="false" native="false" synchronized="false"
  33072. static="true" final="false" visibility="protected"
  33073. deprecated="not deprecated">
  33074. <param name="identifier" type="byte[]"/>
  33075. <param name="key" type="javax.crypto.SecretKey"/>
  33076. <doc>
  33077. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  33078. output as password
  33079. @param identifier the bytes of the identifier
  33080. @param key the secret key
  33081. @return the bytes of the generated password]]>
  33082. </doc>
  33083. </method>
  33084. <method name="createSecretKey" return="javax.crypto.SecretKey"
  33085. abstract="false" native="false" synchronized="false"
  33086. static="true" final="false" visibility="protected"
  33087. deprecated="not deprecated">
  33088. <param name="key" type="byte[]"/>
  33089. <doc>
  33090. <![CDATA[Convert the byte[] to a secret key
  33091. @param key the byte[] to create a secret key from
  33092. @return the secret key]]>
  33093. </doc>
  33094. </method>
  33095. <doc>
  33096. <![CDATA[The server-side secret manager for each token type.
  33097. @param <T> The type of the token identifier]]>
  33098. </doc>
  33099. </class>
  33100. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  33101. <!-- start class org.apache.hadoop.security.token.Token -->
  33102. <class name="Token" extends="java.lang.Object"
  33103. abstract="false"
  33104. static="false" final="false" visibility="public"
  33105. deprecated="not deprecated">
  33106. <implements name="org.apache.hadoop.io.Writable"/>
  33107. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  33108. static="false" final="false" visibility="public"
  33109. deprecated="not deprecated">
  33110. <doc>
  33111. <![CDATA[Construct a token given a token identifier and a secret manager for the
  33112. type of the token identifier.
  33113. @param id the token identifier
  33114. @param mgr the secret manager]]>
  33115. </doc>
  33116. </constructor>
  33117. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  33118. static="false" final="false" visibility="public"
  33119. deprecated="not deprecated">
  33120. <doc>
  33121. <![CDATA[Construct a token from the components.
  33122. @param identifier the token identifier
  33123. @param password the token's password
  33124. @param kind the kind of token
  33125. @param service the service for this token]]>
  33126. </doc>
  33127. </constructor>
  33128. <constructor name="Token"
  33129. static="false" final="false" visibility="public"
  33130. deprecated="not deprecated">
  33131. <doc>
  33132. <![CDATA[Default constructor]]>
  33133. </doc>
  33134. </constructor>
  33135. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  33136. static="false" final="false" visibility="public"
  33137. deprecated="not deprecated">
  33138. <doc>
  33139. <![CDATA[Clone a token.
  33140. @param other the token to clone]]>
  33141. </doc>
  33142. </constructor>
  33143. <method name="getIdentifier" return="byte[]"
  33144. abstract="false" native="false" synchronized="false"
  33145. static="false" final="false" visibility="public"
  33146. deprecated="not deprecated">
  33147. <doc>
  33148. <![CDATA[Get the token identifier's byte representation
  33149. @return the token identifier's byte representation]]>
  33150. </doc>
  33151. </method>
  33152. <method name="decodeIdentifier" return="T"
  33153. abstract="false" native="false" synchronized="false"
  33154. static="false" final="false" visibility="public"
  33155. deprecated="not deprecated">
  33156. <exception name="IOException" type="java.io.IOException"/>
  33157. <doc>
  33158. <![CDATA[Get the token identifier object, or null if it could not be constructed
  33159. (because the class could not be loaded, for example).
  33160. @return the token identifier, or null
  33161. @throws IOException]]>
  33162. </doc>
  33163. </method>
  33164. <method name="getPassword" return="byte[]"
  33165. abstract="false" native="false" synchronized="false"
  33166. static="false" final="false" visibility="public"
  33167. deprecated="not deprecated">
  33168. <doc>
  33169. <![CDATA[Get the token password/secret
  33170. @return the token password/secret]]>
  33171. </doc>
  33172. </method>
  33173. <method name="getKind" return="org.apache.hadoop.io.Text"
  33174. abstract="false" native="false" synchronized="true"
  33175. static="false" final="false" visibility="public"
  33176. deprecated="not deprecated">
  33177. <doc>
  33178. <![CDATA[Get the token kind
  33179. @return the kind of the token]]>
  33180. </doc>
  33181. </method>
  33182. <method name="getService" return="org.apache.hadoop.io.Text"
  33183. abstract="false" native="false" synchronized="false"
  33184. static="false" final="false" visibility="public"
  33185. deprecated="not deprecated">
  33186. <doc>
  33187. <![CDATA[Get the service on which the token is supposed to be used
  33188. @return the service name]]>
  33189. </doc>
  33190. </method>
  33191. <method name="setService"
  33192. abstract="false" native="false" synchronized="false"
  33193. static="false" final="false" visibility="public"
  33194. deprecated="not deprecated">
  33195. <param name="newService" type="org.apache.hadoop.io.Text"/>
  33196. <doc>
  33197. <![CDATA[Set the service on which the token is supposed to be used
  33198. @param newService the service name]]>
  33199. </doc>
  33200. </method>
  33201. <method name="isPrivate" return="boolean"
  33202. abstract="false" native="false" synchronized="false"
  33203. static="false" final="false" visibility="public"
  33204. deprecated="not deprecated">
  33205. <doc>
  33206. <![CDATA[Whether this is a private token.
  33207. @return false always for non-private tokens]]>
  33208. </doc>
  33209. </method>
  33210. <method name="isPrivateCloneOf" return="boolean"
  33211. abstract="false" native="false" synchronized="false"
  33212. static="false" final="false" visibility="public"
  33213. deprecated="not deprecated">
  33214. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  33215. <doc>
  33216. <![CDATA[Whether this is a private clone of a public token.
  33217. @param thePublicService the public service name
  33218. @return false always for non-private tokens]]>
  33219. </doc>
  33220. </method>
  33221. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  33222. abstract="false" native="false" synchronized="false"
  33223. static="false" final="false" visibility="public"
  33224. deprecated="not deprecated">
  33225. <param name="newService" type="org.apache.hadoop.io.Text"/>
  33226. <doc>
  33227. <![CDATA[Create a private clone of a public token.
  33228. @param newService the new service name
  33229. @return a private token]]>
  33230. </doc>
  33231. </method>
  33232. <method name="readFields"
  33233. abstract="false" native="false" synchronized="false"
  33234. static="false" final="false" visibility="public"
  33235. deprecated="not deprecated">
  33236. <param name="in" type="java.io.DataInput"/>
  33237. <exception name="IOException" type="java.io.IOException"/>
  33238. </method>
  33239. <method name="write"
  33240. abstract="false" native="false" synchronized="false"
  33241. static="false" final="false" visibility="public"
  33242. deprecated="not deprecated">
  33243. <param name="out" type="java.io.DataOutput"/>
  33244. <exception name="IOException" type="java.io.IOException"/>
  33245. </method>
  33246. <method name="encodeToUrlString" return="java.lang.String"
  33247. abstract="false" native="false" synchronized="false"
  33248. static="false" final="false" visibility="public"
  33249. deprecated="not deprecated">
  33250. <exception name="IOException" type="java.io.IOException"/>
  33251. <doc>
  33252. <![CDATA[Encode this token as a url safe string
  33253. @return the encoded string
  33254. @throws IOException]]>
  33255. </doc>
  33256. </method>
  33257. <method name="decodeFromUrlString"
  33258. abstract="false" native="false" synchronized="false"
  33259. static="false" final="false" visibility="public"
  33260. deprecated="not deprecated">
  33261. <param name="newValue" type="java.lang.String"/>
  33262. <exception name="IOException" type="java.io.IOException"/>
  33263. <doc>
  33264. <![CDATA[Decode the given url safe string into this token.
  33265. @param newValue the encoded string
  33266. @throws IOException]]>
  33267. </doc>
  33268. </method>
  33269. <method name="equals" return="boolean"
  33270. abstract="false" native="false" synchronized="false"
  33271. static="false" final="false" visibility="public"
  33272. deprecated="not deprecated">
  33273. <param name="right" type="java.lang.Object"/>
  33274. </method>
  33275. <method name="hashCode" return="int"
  33276. abstract="false" native="false" synchronized="false"
  33277. static="false" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. </method>
  33280. <method name="toString" return="java.lang.String"
  33281. abstract="false" native="false" synchronized="false"
  33282. static="false" final="false" visibility="public"
  33283. deprecated="not deprecated">
  33284. </method>
  33285. <method name="buildCacheKey" return="java.lang.String"
  33286. abstract="false" native="false" synchronized="false"
  33287. static="false" final="false" visibility="public"
  33288. deprecated="not deprecated">
  33289. </method>
  33290. <method name="isManaged" return="boolean"
  33291. abstract="false" native="false" synchronized="false"
  33292. static="false" final="false" visibility="public"
  33293. deprecated="not deprecated">
  33294. <exception name="IOException" type="java.io.IOException"/>
  33295. <doc>
  33296. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  33297. @return true, if it can be renewed and cancelled.]]>
  33298. </doc>
  33299. </method>
  33300. <method name="renew" return="long"
  33301. abstract="false" native="false" synchronized="false"
  33302. static="false" final="false" visibility="public"
  33303. deprecated="not deprecated">
  33304. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33305. <exception name="IOException" type="java.io.IOException"/>
  33306. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33307. <doc>
  33308. <![CDATA[Renew this delegation token
  33309. @return the new expiration time
  33310. @throws IOException
  33311. @throws InterruptedException]]>
  33312. </doc>
  33313. </method>
  33314. <method name="cancel"
  33315. abstract="false" native="false" synchronized="false"
  33316. static="false" final="false" visibility="public"
  33317. deprecated="not deprecated">
  33318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33319. <exception name="IOException" type="java.io.IOException"/>
  33320. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33321. <doc>
  33322. <![CDATA[Cancel this delegation token
  33323. @throws IOException
  33324. @throws InterruptedException]]>
  33325. </doc>
  33326. </method>
  33327. <field name="LOG" type="org.apache.commons.logging.Log"
  33328. transient="false" volatile="false"
  33329. static="true" final="true" visibility="public"
  33330. deprecated="not deprecated">
  33331. </field>
  33332. <doc>
  33333. <![CDATA[The client-side form of the token.]]>
  33334. </doc>
  33335. </class>
  33336. <!-- end class org.apache.hadoop.security.token.Token -->
  33337. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  33338. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  33339. abstract="false"
  33340. static="true" final="false" visibility="public"
  33341. deprecated="not deprecated">
  33342. <constructor name="Token.TrivialRenewer"
  33343. static="false" final="false" visibility="public"
  33344. deprecated="not deprecated">
  33345. </constructor>
  33346. <method name="getKind" return="org.apache.hadoop.io.Text"
  33347. abstract="false" native="false" synchronized="false"
  33348. static="false" final="false" visibility="protected"
  33349. deprecated="not deprecated">
  33350. </method>
  33351. <method name="handleKind" return="boolean"
  33352. abstract="false" native="false" synchronized="false"
  33353. static="false" final="false" visibility="public"
  33354. deprecated="not deprecated">
  33355. <param name="kind" type="org.apache.hadoop.io.Text"/>
  33356. </method>
  33357. <method name="isManaged" return="boolean"
  33358. abstract="false" native="false" synchronized="false"
  33359. static="false" final="false" visibility="public"
  33360. deprecated="not deprecated">
  33361. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33362. </method>
  33363. <method name="renew" return="long"
  33364. abstract="false" native="false" synchronized="false"
  33365. static="false" final="false" visibility="public"
  33366. deprecated="not deprecated">
  33367. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33369. </method>
  33370. <method name="cancel"
  33371. abstract="false" native="false" synchronized="false"
  33372. static="false" final="false" visibility="public"
  33373. deprecated="not deprecated">
  33374. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33375. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33376. <exception name="IOException" type="java.io.IOException"/>
  33377. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33378. </method>
  33379. <doc>
  33380. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  33381. to implement getKind for their token kind.]]>
  33382. </doc>
  33383. </class>
  33384. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  33385. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  33386. <class name="TokenIdentifier" extends="java.lang.Object"
  33387. abstract="true"
  33388. static="false" final="false" visibility="public"
  33389. deprecated="not deprecated">
  33390. <implements name="org.apache.hadoop.io.Writable"/>
  33391. <constructor name="TokenIdentifier"
  33392. static="false" final="false" visibility="public"
  33393. deprecated="not deprecated">
  33394. </constructor>
  33395. <method name="getKind" return="org.apache.hadoop.io.Text"
  33396. abstract="true" native="false" synchronized="false"
  33397. static="false" final="false" visibility="public"
  33398. deprecated="not deprecated">
  33399. <doc>
  33400. <![CDATA[Get the token kind
  33401. @return the kind of the token]]>
  33402. </doc>
  33403. </method>
  33404. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  33405. abstract="true" native="false" synchronized="false"
  33406. static="false" final="false" visibility="public"
  33407. deprecated="not deprecated">
  33408. <doc>
  33409. <![CDATA[Get the Ugi with the username encoded in the token identifier
  33410. @return the username. null is returned if username in the identifier is
  33411. empty or null.]]>
  33412. </doc>
  33413. </method>
  33414. <method name="getBytes" return="byte[]"
  33415. abstract="false" native="false" synchronized="false"
  33416. static="false" final="false" visibility="public"
  33417. deprecated="not deprecated">
  33418. <doc>
  33419. <![CDATA[Get the bytes for the token identifier
  33420. @return the bytes of the identifier]]>
  33421. </doc>
  33422. </method>
  33423. <method name="getTrackingId" return="java.lang.String"
  33424. abstract="false" native="false" synchronized="false"
  33425. static="false" final="false" visibility="public"
  33426. deprecated="not deprecated">
  33427. <doc>
  33428. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  33429. token across multiple client sessions.
  33430. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  33431. @return tracking identifier]]>
  33432. </doc>
  33433. </method>
  33434. <doc>
  33435. <![CDATA[An identifier that identifies a token, may contain public information
  33436. about a token, including its kind (or type).]]>
  33437. </doc>
  33438. </class>
  33439. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  33440. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  33441. <class name="TokenInfo" abstract="true"
  33442. static="false" final="false" visibility="public"
  33443. deprecated="not deprecated">
  33444. <implements name="java.lang.annotation.Annotation"/>
  33445. <doc>
  33446. <![CDATA[Indicates Token related information to be used]]>
  33447. </doc>
  33448. </class>
  33449. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  33450. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  33451. <class name="TokenRenewer" extends="java.lang.Object"
  33452. abstract="true"
  33453. static="false" final="false" visibility="public"
  33454. deprecated="not deprecated">
  33455. <constructor name="TokenRenewer"
  33456. static="false" final="false" visibility="public"
  33457. deprecated="not deprecated">
  33458. </constructor>
  33459. <method name="handleKind" return="boolean"
  33460. abstract="true" native="false" synchronized="false"
  33461. static="false" final="false" visibility="public"
  33462. deprecated="not deprecated">
  33463. <param name="kind" type="org.apache.hadoop.io.Text"/>
  33464. <doc>
  33465. <![CDATA[Does this renewer handle this kind of token?
  33466. @param kind the kind of the token
  33467. @return true if this renewer can renew it]]>
  33468. </doc>
  33469. </method>
  33470. <method name="isManaged" return="boolean"
  33471. abstract="true" native="false" synchronized="false"
  33472. static="false" final="false" visibility="public"
  33473. deprecated="not deprecated">
  33474. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33475. <exception name="IOException" type="java.io.IOException"/>
  33476. <doc>
  33477. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  33478. cancelled.
  33479. @param token the token being checked
  33480. @return true if the token may be renewed or cancelled
  33481. @throws IOException]]>
  33482. </doc>
  33483. </method>
  33484. <method name="renew" return="long"
  33485. abstract="true" native="false" synchronized="false"
  33486. static="false" final="false" visibility="public"
  33487. deprecated="not deprecated">
  33488. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33489. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33490. <exception name="IOException" type="java.io.IOException"/>
  33491. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33492. <doc>
  33493. <![CDATA[Renew the given token.
  33494. @return the new expiration time
  33495. @throws IOException
  33496. @throws InterruptedException]]>
  33497. </doc>
  33498. </method>
  33499. <method name="cancel"
  33500. abstract="true" native="false" synchronized="false"
  33501. static="false" final="false" visibility="public"
  33502. deprecated="not deprecated">
  33503. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33504. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33505. <exception name="IOException" type="java.io.IOException"/>
  33506. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33507. <doc>
  33508. <![CDATA[Cancel the given token
  33509. @throws IOException
  33510. @throws InterruptedException]]>
  33511. </doc>
  33512. </method>
  33513. <doc>
  33514. <![CDATA[This is the interface for plugins that handle tokens.]]>
  33515. </doc>
  33516. </class>
  33517. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  33518. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  33519. <interface name="TokenSelector" abstract="true"
  33520. static="false" final="false" visibility="public"
  33521. deprecated="not deprecated">
  33522. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  33523. abstract="false" native="false" synchronized="false"
  33524. static="false" final="false" visibility="public"
  33525. deprecated="not deprecated">
  33526. <param name="service" type="org.apache.hadoop.io.Text"/>
  33527. <param name="tokens" type="java.util.Collection"/>
  33528. </method>
  33529. <doc>
  33530. <![CDATA[Select token of type T from tokens for use with named service
  33531. @param <T>
  33532. T extends TokenIdentifier]]>
  33533. </doc>
  33534. </interface>
  33535. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  33536. </package>
  33537. <package name="org.apache.hadoop.security.token.delegation.web">
  33538. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  33539. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  33540. abstract="false"
  33541. static="false" final="false" visibility="public"
  33542. deprecated="not deprecated">
  33543. <constructor name="DelegationTokenAuthenticatedURL"
  33544. static="false" final="false" visibility="public"
  33545. deprecated="not deprecated">
  33546. <doc>
  33547. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33548. <p/>
  33549. An instance of the default {@link DelegationTokenAuthenticator} will be
  33550. used.]]>
  33551. </doc>
  33552. </constructor>
  33553. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33554. static="false" final="false" visibility="public"
  33555. deprecated="not deprecated">
  33556. <doc>
  33557. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33558. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  33559. use, if <code>null</code> the default one will be used.]]>
  33560. </doc>
  33561. </constructor>
  33562. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  33563. static="false" final="false" visibility="public"
  33564. deprecated="not deprecated">
  33565. <doc>
  33566. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  33567. {@link DelegationTokenAuthenticator} class.
  33568. @param connConfigurator a connection configurator.]]>
  33569. </doc>
  33570. </constructor>
  33571. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  33572. static="false" final="false" visibility="public"
  33573. deprecated="not deprecated">
  33574. <doc>
  33575. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33576. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  33577. use, if <code>null</code> the default one will be used.
  33578. @param connConfigurator a connection configurator.]]>
  33579. </doc>
  33580. </constructor>
  33581. <method name="setDefaultDelegationTokenAuthenticator"
  33582. abstract="false" native="false" synchronized="false"
  33583. static="true" final="false" visibility="public"
  33584. deprecated="not deprecated">
  33585. <param name="authenticator" type="java.lang.Class"/>
  33586. <doc>
  33587. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  33588. {@link DelegationTokenAuthenticatedURL} instance is created without
  33589. specifying one.
  33590. The default class is {@link KerberosDelegationTokenAuthenticator}
  33591. @param authenticator the authenticator class to use as default.]]>
  33592. </doc>
  33593. </method>
  33594. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  33595. abstract="false" native="false" synchronized="false"
  33596. static="true" final="false" visibility="public"
  33597. deprecated="not deprecated">
  33598. <doc>
  33599. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  33600. an {@link DelegationTokenAuthenticatedURL} instance is created without
  33601. specifying one.
  33602. <p/>
  33603. The default class is {@link KerberosDelegationTokenAuthenticator}
  33604. @return the delegation token authenticator class to use as default.]]>
  33605. </doc>
  33606. </method>
  33607. <method name="setUseQueryStringForDelegationToken"
  33608. abstract="false" native="false" synchronized="false"
  33609. static="false" final="false" visibility="protected"
  33610. deprecated="not deprecated">
  33611. <param name="useQueryString" type="boolean"/>
  33612. <doc>
  33613. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  33614. By default it is transmitted using the
  33615. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  33616. <p/>
  33617. This method is provided to enable WebHDFS backwards compatibility.
  33618. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  33619. URL query string, <code>FALSE</code> if the delegation token is transmitted
  33620. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  33621. header.]]>
  33622. </doc>
  33623. </method>
  33624. <method name="useQueryStringForDelegationToken" return="boolean"
  33625. abstract="false" native="false" synchronized="false"
  33626. static="false" final="false" visibility="public"
  33627. deprecated="not deprecated">
  33628. <doc>
  33629. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  33630. @return <code>TRUE</code> if the token is transmitted in the URL query
  33631. string, <code>FALSE</code> if the delegation token is transmitted using the
  33632. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  33633. </doc>
  33634. </method>
  33635. <method name="openConnection" return="java.net.HttpURLConnection"
  33636. abstract="false" native="false" synchronized="false"
  33637. static="false" final="false" visibility="public"
  33638. deprecated="not deprecated">
  33639. <param name="url" type="java.net.URL"/>
  33640. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33641. <exception name="IOException" type="java.io.IOException"/>
  33642. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33643. <doc>
  33644. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  33645. Token only if the given auth token is an instance of {@link Token} and
  33646. it contains a Delegation Token, otherwise use the configured
  33647. {@link DelegationTokenAuthenticator} to authenticate the connection.
  33648. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33649. @param token the authentication token being used for the user.
  33650. @return an authenticated {@link HttpURLConnection}.
  33651. @throws IOException if an IO error occurred.
  33652. @throws AuthenticationException if an authentication exception occurred.]]>
  33653. </doc>
  33654. </method>
  33655. <method name="openConnection" return="java.net.HttpURLConnection"
  33656. abstract="false" native="false" synchronized="false"
  33657. static="false" final="false" visibility="public"
  33658. deprecated="not deprecated">
  33659. <param name="url" type="java.net.URL"/>
  33660. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33661. <exception name="IOException" type="java.io.IOException"/>
  33662. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33663. <doc>
  33664. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  33665. Token is present, it will be used taking precedence over the configured
  33666. <code>Authenticator</code>.
  33667. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33668. @param token the authentication token being used for the user.
  33669. @return an authenticated {@link HttpURLConnection}.
  33670. @throws IOException if an IO error occurred.
  33671. @throws AuthenticationException if an authentication exception occurred.]]>
  33672. </doc>
  33673. </method>
  33674. <method name="openConnection" return="java.net.HttpURLConnection"
  33675. abstract="false" native="false" synchronized="false"
  33676. static="false" final="false" visibility="public"
  33677. deprecated="not deprecated">
  33678. <param name="url" type="java.net.URL"/>
  33679. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33680. <param name="doAs" type="java.lang.String"/>
  33681. <exception name="IOException" type="java.io.IOException"/>
  33682. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33683. <doc>
  33684. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  33685. Token is present, it will be used taking precedence over the configured
  33686. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  33687. the request will be done on behalf of the specified <code>doAs</code> user.
  33688. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33689. @param token the authentication token being used for the user.
  33690. @param doAs user to do the the request on behalf of, if NULL the request is
  33691. as self.
  33692. @return an authenticated {@link HttpURLConnection}.
  33693. @throws IOException if an IO error occurred.
  33694. @throws AuthenticationException if an authentication exception occurred.]]>
  33695. </doc>
  33696. </method>
  33697. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33698. abstract="false" native="false" synchronized="false"
  33699. static="false" final="false" visibility="public"
  33700. deprecated="not deprecated">
  33701. <param name="url" type="java.net.URL"/>
  33702. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33703. <param name="renewer" type="java.lang.String"/>
  33704. <exception name="IOException" type="java.io.IOException"/>
  33705. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33706. <doc>
  33707. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33708. for authentication.
  33709. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33710. supported.
  33711. @param token the authentication token being used for the user where the
  33712. Delegation token will be stored.
  33713. @param renewer the renewer user.
  33714. @return a delegation token.
  33715. @throws IOException if an IO error occurred.
  33716. @throws AuthenticationException if an authentication exception occurred.]]>
  33717. </doc>
  33718. </method>
  33719. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33720. abstract="false" native="false" synchronized="false"
  33721. static="false" final="false" visibility="public"
  33722. deprecated="not deprecated">
  33723. <param name="url" type="java.net.URL"/>
  33724. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33725. <param name="renewer" type="java.lang.String"/>
  33726. <param name="doAsUser" type="java.lang.String"/>
  33727. <exception name="IOException" type="java.io.IOException"/>
  33728. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33729. <doc>
  33730. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33731. for authentication.
  33732. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33733. supported.
  33734. @param token the authentication token being used for the user where the
  33735. Delegation token will be stored.
  33736. @param renewer the renewer user.
  33737. @param doAsUser the user to do as, which will be the token owner.
  33738. @return a delegation token.
  33739. @throws IOException if an IO error occurred.
  33740. @throws AuthenticationException if an authentication exception occurred.]]>
  33741. </doc>
  33742. </method>
  33743. <method name="renewDelegationToken" return="long"
  33744. abstract="false" native="false" synchronized="false"
  33745. static="false" final="false" visibility="public"
  33746. deprecated="not deprecated">
  33747. <param name="url" type="java.net.URL"/>
  33748. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33749. <exception name="IOException" type="java.io.IOException"/>
  33750. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33751. <doc>
  33752. <![CDATA[Renews a delegation token from the server end-point using the
  33753. configured <code>Authenticator</code> for authentication.
  33754. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33755. supported.
  33756. @param token the authentication token with the Delegation Token to renew.
  33757. @throws IOException if an IO error occurred.
  33758. @throws AuthenticationException if an authentication exception occurred.]]>
  33759. </doc>
  33760. </method>
  33761. <method name="renewDelegationToken" return="long"
  33762. abstract="false" native="false" synchronized="false"
  33763. static="false" final="false" visibility="public"
  33764. deprecated="not deprecated">
  33765. <param name="url" type="java.net.URL"/>
  33766. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33767. <param name="doAsUser" type="java.lang.String"/>
  33768. <exception name="IOException" type="java.io.IOException"/>
  33769. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33770. <doc>
  33771. <![CDATA[Renews a delegation token from the server end-point using the
  33772. configured <code>Authenticator</code> for authentication.
  33773. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33774. supported.
  33775. @param token the authentication token with the Delegation Token to renew.
  33776. @param doAsUser the user to do as, which will be the token owner.
  33777. @throws IOException if an IO error occurred.
  33778. @throws AuthenticationException if an authentication exception occurred.]]>
  33779. </doc>
  33780. </method>
  33781. <method name="cancelDelegationToken"
  33782. abstract="false" native="false" synchronized="false"
  33783. static="false" final="false" visibility="public"
  33784. deprecated="not deprecated">
  33785. <param name="url" type="java.net.URL"/>
  33786. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33787. <exception name="IOException" type="java.io.IOException"/>
  33788. <doc>
  33789. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33790. being authenticated by the configured <code>Authenticator</code>.
  33791. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33792. are supported.
  33793. @param token the authentication token with the Delegation Token to cancel.
  33794. @throws IOException if an IO error occurred.]]>
  33795. </doc>
  33796. </method>
  33797. <method name="cancelDelegationToken"
  33798. abstract="false" native="false" synchronized="false"
  33799. static="false" final="false" visibility="public"
  33800. deprecated="not deprecated">
  33801. <param name="url" type="java.net.URL"/>
  33802. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33803. <param name="doAsUser" type="java.lang.String"/>
  33804. <exception name="IOException" type="java.io.IOException"/>
  33805. <doc>
  33806. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33807. being authenticated by the configured <code>Authenticator</code>.
  33808. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33809. are supported.
  33810. @param token the authentication token with the Delegation Token to cancel.
  33811. @param doAsUser the user to do as, which will be the token owner.
  33812. @throws IOException if an IO error occurred.]]>
  33813. </doc>
  33814. </method>
  33815. <doc>
  33816. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  33817. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  33818. functionality.
  33819. <p/>
  33820. The authentication mechanisms supported by default are Hadoop Simple
  33821. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  33822. authentication.
  33823. <p/>
  33824. Additional authentication mechanisms can be supported via {@link
  33825. DelegationTokenAuthenticator} implementations.
  33826. <p/>
  33827. The default {@link DelegationTokenAuthenticator} is the {@link
  33828. KerberosDelegationTokenAuthenticator} class which supports
  33829. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  33830. the {@link PseudoDelegationTokenAuthenticator} class.
  33831. <p/>
  33832. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  33833. </doc>
  33834. </class>
  33835. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  33836. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  33837. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  33838. abstract="false"
  33839. static="true" final="false" visibility="public"
  33840. deprecated="not deprecated">
  33841. <constructor name="DelegationTokenAuthenticatedURL.Token"
  33842. static="false" final="false" visibility="public"
  33843. deprecated="not deprecated">
  33844. </constructor>
  33845. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33846. abstract="false" native="false" synchronized="false"
  33847. static="false" final="false" visibility="public"
  33848. deprecated="not deprecated">
  33849. </method>
  33850. <method name="setDelegationToken"
  33851. abstract="false" native="false" synchronized="false"
  33852. static="false" final="false" visibility="public"
  33853. deprecated="not deprecated">
  33854. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  33855. </method>
  33856. <doc>
  33857. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  33858. </doc>
  33859. </class>
  33860. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  33861. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  33862. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  33863. abstract="true"
  33864. static="false" final="false" visibility="public"
  33865. deprecated="not deprecated">
  33866. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  33867. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  33868. static="false" final="false" visibility="public"
  33869. deprecated="not deprecated">
  33870. </constructor>
  33871. <method name="setConnectionConfigurator"
  33872. abstract="false" native="false" synchronized="false"
  33873. static="false" final="false" visibility="public"
  33874. deprecated="not deprecated">
  33875. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  33876. </method>
  33877. <method name="authenticate"
  33878. abstract="false" native="false" synchronized="false"
  33879. static="false" final="false" visibility="public"
  33880. deprecated="not deprecated">
  33881. <param name="url" type="java.net.URL"/>
  33882. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33883. <exception name="IOException" type="java.io.IOException"/>
  33884. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33885. </method>
  33886. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33887. abstract="false" native="false" synchronized="false"
  33888. static="false" final="false" visibility="public"
  33889. deprecated="not deprecated">
  33890. <param name="url" type="java.net.URL"/>
  33891. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33892. <param name="renewer" type="java.lang.String"/>
  33893. <exception name="IOException" type="java.io.IOException"/>
  33894. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33895. <doc>
  33896. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33897. for authentication.
  33898. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33899. supported.
  33900. @param token the authentication token being used for the user where the
  33901. Delegation token will be stored.
  33902. @param renewer the renewer user.
  33903. @throws IOException if an IO error occurred.
  33904. @throws AuthenticationException if an authentication exception occurred.]]>
  33905. </doc>
  33906. </method>
  33907. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33908. abstract="false" native="false" synchronized="false"
  33909. static="false" final="false" visibility="public"
  33910. deprecated="not deprecated">
  33911. <param name="url" type="java.net.URL"/>
  33912. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33913. <param name="renewer" type="java.lang.String"/>
  33914. <param name="doAsUser" type="java.lang.String"/>
  33915. <exception name="IOException" type="java.io.IOException"/>
  33916. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33917. <doc>
  33918. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33919. for authentication.
  33920. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33921. supported.
  33922. @param token the authentication token being used for the user where the
  33923. Delegation token will be stored.
  33924. @param renewer the renewer user.
  33925. @param doAsUser the user to do as, which will be the token owner.
  33926. @throws IOException if an IO error occurred.
  33927. @throws AuthenticationException if an authentication exception occurred.]]>
  33928. </doc>
  33929. </method>
  33930. <method name="renewDelegationToken" return="long"
  33931. abstract="false" native="false" synchronized="false"
  33932. static="false" final="false" visibility="public"
  33933. deprecated="not deprecated">
  33934. <param name="url" type="java.net.URL"/>
  33935. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33936. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33937. <exception name="IOException" type="java.io.IOException"/>
  33938. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33939. <doc>
  33940. <![CDATA[Renews a delegation token from the server end-point using the
  33941. configured <code>Authenticator</code> for authentication.
  33942. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33943. supported.
  33944. @param token the authentication token with the Delegation Token to renew.
  33945. @throws IOException if an IO error occurred.
  33946. @throws AuthenticationException if an authentication exception occurred.]]>
  33947. </doc>
  33948. </method>
  33949. <method name="renewDelegationToken" return="long"
  33950. abstract="false" native="false" synchronized="false"
  33951. static="false" final="false" visibility="public"
  33952. deprecated="not deprecated">
  33953. <param name="url" type="java.net.URL"/>
  33954. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33955. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33956. <param name="doAsUser" type="java.lang.String"/>
  33957. <exception name="IOException" type="java.io.IOException"/>
  33958. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33959. <doc>
  33960. <![CDATA[Renews a delegation token from the server end-point using the
  33961. configured <code>Authenticator</code> for authentication.
  33962. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33963. supported.
  33964. @param token the authentication token with the Delegation Token to renew.
  33965. @param doAsUser the user to do as, which will be the token owner.
  33966. @throws IOException if an IO error occurred.
  33967. @throws AuthenticationException if an authentication exception occurred.]]>
  33968. </doc>
  33969. </method>
  33970. <method name="cancelDelegationToken"
  33971. abstract="false" native="false" synchronized="false"
  33972. static="false" final="false" visibility="public"
  33973. deprecated="not deprecated">
  33974. <param name="url" type="java.net.URL"/>
  33975. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33976. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33977. <exception name="IOException" type="java.io.IOException"/>
  33978. <doc>
  33979. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33980. being authenticated by the configured <code>Authenticator</code>.
  33981. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33982. are supported.
  33983. @param token the authentication token with the Delegation Token to cancel.
  33984. @throws IOException if an IO error occurred.]]>
  33985. </doc>
  33986. </method>
  33987. <method name="cancelDelegationToken"
  33988. abstract="false" native="false" synchronized="false"
  33989. static="false" final="false" visibility="public"
  33990. deprecated="not deprecated">
  33991. <param name="url" type="java.net.URL"/>
  33992. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33993. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33994. <param name="doAsUser" type="java.lang.String"/>
  33995. <exception name="IOException" type="java.io.IOException"/>
  33996. <doc>
  33997. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33998. being authenticated by the configured <code>Authenticator</code>.
  33999. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  34000. are supported.
  34001. @param token the authentication token with the Delegation Token to cancel.
  34002. @param doAsUser the user to do as, which will be the token owner.
  34003. @throws IOException if an IO error occurred.]]>
  34004. </doc>
  34005. </method>
  34006. <field name="OP_PARAM" type="java.lang.String"
  34007. transient="false" volatile="false"
  34008. static="true" final="true" visibility="public"
  34009. deprecated="not deprecated">
  34010. </field>
  34011. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  34012. transient="false" volatile="false"
  34013. static="true" final="true" visibility="public"
  34014. deprecated="not deprecated">
  34015. </field>
  34016. <field name="DELEGATION_PARAM" type="java.lang.String"
  34017. transient="false" volatile="false"
  34018. static="true" final="true" visibility="public"
  34019. deprecated="not deprecated">
  34020. </field>
  34021. <field name="TOKEN_PARAM" type="java.lang.String"
  34022. transient="false" volatile="false"
  34023. static="true" final="true" visibility="public"
  34024. deprecated="not deprecated">
  34025. </field>
  34026. <field name="RENEWER_PARAM" type="java.lang.String"
  34027. transient="false" volatile="false"
  34028. static="true" final="true" visibility="public"
  34029. deprecated="not deprecated">
  34030. </field>
  34031. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  34032. transient="false" volatile="false"
  34033. static="true" final="true" visibility="public"
  34034. deprecated="not deprecated">
  34035. </field>
  34036. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  34037. transient="false" volatile="false"
  34038. static="true" final="true" visibility="public"
  34039. deprecated="not deprecated">
  34040. </field>
  34041. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  34042. transient="false" volatile="false"
  34043. static="true" final="true" visibility="public"
  34044. deprecated="not deprecated">
  34045. </field>
  34046. <doc>
  34047. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  34048. Delegation Token support.]]>
  34049. </doc>
  34050. </class>
  34051. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  34052. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  34053. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  34054. abstract="false"
  34055. static="false" final="false" visibility="public"
  34056. deprecated="not deprecated">
  34057. <constructor name="KerberosDelegationTokenAuthenticator"
  34058. static="false" final="false" visibility="public"
  34059. deprecated="not deprecated">
  34060. </constructor>
  34061. <doc>
  34062. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  34063. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  34064. Token operations.
  34065. <p/>
  34066. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  34067. endpoint does not trigger a SPNEGO authentication]]>
  34068. </doc>
  34069. </class>
  34070. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  34071. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  34072. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  34073. abstract="false"
  34074. static="false" final="false" visibility="public"
  34075. deprecated="not deprecated">
  34076. <constructor name="PseudoDelegationTokenAuthenticator"
  34077. static="false" final="false" visibility="public"
  34078. deprecated="not deprecated">
  34079. </constructor>
  34080. <doc>
  34081. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  34082. Hadoop's pseudo authentication mechanism that accepts
  34083. the user name specified as a query string parameter and support for Hadoop
  34084. Delegation Token operations.
  34085. <p/>
  34086. This mimics the model of Hadoop Simple authentication trusting the
  34087. {@link UserGroupInformation#getCurrentUser()} value.]]>
  34088. </doc>
  34089. </class>
  34090. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  34091. </package>
  34092. <package name="org.apache.hadoop.service">
  34093. <!-- start class org.apache.hadoop.service.AbstractService -->
  34094. <class name="AbstractService" extends="java.lang.Object"
  34095. abstract="true"
  34096. static="false" final="false" visibility="public"
  34097. deprecated="not deprecated">
  34098. <implements name="org.apache.hadoop.service.Service"/>
  34099. <constructor name="AbstractService" type="java.lang.String"
  34100. static="false" final="false" visibility="public"
  34101. deprecated="not deprecated">
  34102. <doc>
  34103. <![CDATA[Construct the service.
  34104. @param name service name]]>
  34105. </doc>
  34106. </constructor>
  34107. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  34108. abstract="false" native="false" synchronized="false"
  34109. static="false" final="true" visibility="public"
  34110. deprecated="not deprecated">
  34111. </method>
  34112. <method name="getFailureCause" return="java.lang.Throwable"
  34113. abstract="false" native="false" synchronized="true"
  34114. static="false" final="true" visibility="public"
  34115. deprecated="not deprecated">
  34116. </method>
  34117. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  34118. abstract="false" native="false" synchronized="true"
  34119. static="false" final="false" visibility="public"
  34120. deprecated="not deprecated">
  34121. </method>
  34122. <method name="setConfig"
  34123. abstract="false" native="false" synchronized="false"
  34124. static="false" final="false" visibility="protected"
  34125. deprecated="not deprecated">
  34126. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34127. <doc>
  34128. <![CDATA[Set the configuration for this service.
  34129. This method is called during {@link #init(Configuration)}
  34130. and should only be needed if for some reason a service implementation
  34131. needs to override that initial setting -for example replacing
  34132. it with a new subclass of {@link Configuration}
  34133. @param conf new configuration.]]>
  34134. </doc>
  34135. </method>
  34136. <method name="init"
  34137. abstract="false" native="false" synchronized="false"
  34138. static="false" final="false" visibility="public"
  34139. deprecated="not deprecated">
  34140. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34141. <doc>
  34142. <![CDATA[{@inheritDoc}
  34143. This invokes {@link #serviceInit}
  34144. @param conf the configuration of the service. This must not be null
  34145. @throws ServiceStateException if the configuration was null,
  34146. the state change not permitted, or something else went wrong]]>
  34147. </doc>
  34148. </method>
  34149. <method name="start"
  34150. abstract="false" native="false" synchronized="false"
  34151. static="false" final="false" visibility="public"
  34152. deprecated="not deprecated">
  34153. <doc>
  34154. <![CDATA[{@inheritDoc}
  34155. @throws ServiceStateException if the current service state does not permit
  34156. this action]]>
  34157. </doc>
  34158. </method>
  34159. <method name="stop"
  34160. abstract="false" native="false" synchronized="false"
  34161. static="false" final="false" visibility="public"
  34162. deprecated="not deprecated">
  34163. <doc>
  34164. <![CDATA[{@inheritDoc}]]>
  34165. </doc>
  34166. </method>
  34167. <method name="close"
  34168. abstract="false" native="false" synchronized="false"
  34169. static="false" final="true" visibility="public"
  34170. deprecated="not deprecated">
  34171. <exception name="IOException" type="java.io.IOException"/>
  34172. <doc>
  34173. <![CDATA[Relay to {@link #stop()}
  34174. @throws IOException]]>
  34175. </doc>
  34176. </method>
  34177. <method name="noteFailure"
  34178. abstract="false" native="false" synchronized="false"
  34179. static="false" final="true" visibility="protected"
  34180. deprecated="not deprecated">
  34181. <param name="exception" type="java.lang.Exception"/>
  34182. <doc>
  34183. <![CDATA[Failure handling: record the exception
  34184. that triggered it -if there was not one already.
  34185. Services are free to call this themselves.
  34186. @param exception the exception]]>
  34187. </doc>
  34188. </method>
  34189. <method name="waitForServiceToStop" return="boolean"
  34190. abstract="false" native="false" synchronized="false"
  34191. static="false" final="true" visibility="public"
  34192. deprecated="not deprecated">
  34193. <param name="timeout" type="long"/>
  34194. </method>
  34195. <method name="serviceInit"
  34196. abstract="false" native="false" synchronized="false"
  34197. static="false" final="false" visibility="protected"
  34198. deprecated="not deprecated">
  34199. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34200. <exception name="Exception" type="java.lang.Exception"/>
  34201. <doc>
  34202. <![CDATA[All initialization code needed by a service.
  34203. This method will only ever be called once during the lifecycle of
  34204. a specific service instance.
  34205. Implementations do not need to be synchronized as the logic
  34206. in {@link #init(Configuration)} prevents re-entrancy.
  34207. The base implementation checks to see if the subclass has created
  34208. a new configuration instance, and if so, updates the base class value
  34209. @param conf configuration
  34210. @throws Exception on a failure -these will be caught,
  34211. possibly wrapped, and wil; trigger a service stop]]>
  34212. </doc>
  34213. </method>
  34214. <method name="serviceStart"
  34215. abstract="false" native="false" synchronized="false"
  34216. static="false" final="false" visibility="protected"
  34217. deprecated="not deprecated">
  34218. <exception name="Exception" type="java.lang.Exception"/>
  34219. <doc>
  34220. <![CDATA[Actions called during the INITED to STARTED transition.
  34221. This method will only ever be called once during the lifecycle of
  34222. a specific service instance.
  34223. Implementations do not need to be synchronized as the logic
  34224. in {@link #start()} prevents re-entrancy.
  34225. @throws Exception if needed -these will be caught,
  34226. wrapped, and trigger a service stop]]>
  34227. </doc>
  34228. </method>
  34229. <method name="serviceStop"
  34230. abstract="false" native="false" synchronized="false"
  34231. static="false" final="false" visibility="protected"
  34232. deprecated="not deprecated">
  34233. <exception name="Exception" type="java.lang.Exception"/>
  34234. <doc>
  34235. <![CDATA[Actions called during the transition to the STOPPED state.
  34236. This method will only ever be called once during the lifecycle of
  34237. a specific service instance.
  34238. Implementations do not need to be synchronized as the logic
  34239. in {@link #stop()} prevents re-entrancy.
  34240. Implementations MUST write this to be robust against failures, including
  34241. checks for null references -and for the first failure to not stop other
  34242. attempts to shut down parts of the service.
  34243. @throws Exception if needed -these will be caught and logged.]]>
  34244. </doc>
  34245. </method>
  34246. <method name="registerServiceListener"
  34247. abstract="false" native="false" synchronized="false"
  34248. static="false" final="false" visibility="public"
  34249. deprecated="not deprecated">
  34250. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34251. </method>
  34252. <method name="unregisterServiceListener"
  34253. abstract="false" native="false" synchronized="false"
  34254. static="false" final="false" visibility="public"
  34255. deprecated="not deprecated">
  34256. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34257. </method>
  34258. <method name="registerGlobalListener"
  34259. abstract="false" native="false" synchronized="false"
  34260. static="true" final="false" visibility="public"
  34261. deprecated="not deprecated">
  34262. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34263. <doc>
  34264. <![CDATA[Register a global listener, which receives notifications
  34265. from the state change events of all services in the JVM
  34266. @param l listener]]>
  34267. </doc>
  34268. </method>
  34269. <method name="unregisterGlobalListener" return="boolean"
  34270. abstract="false" native="false" synchronized="false"
  34271. static="true" final="false" visibility="public"
  34272. deprecated="not deprecated">
  34273. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34274. <doc>
  34275. <![CDATA[unregister a global listener.
  34276. @param l listener to unregister
  34277. @return true if the listener was found (and then deleted)]]>
  34278. </doc>
  34279. </method>
  34280. <method name="getName" return="java.lang.String"
  34281. abstract="false" native="false" synchronized="false"
  34282. static="false" final="false" visibility="public"
  34283. deprecated="not deprecated">
  34284. </method>
  34285. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  34286. abstract="false" native="false" synchronized="true"
  34287. static="false" final="false" visibility="public"
  34288. deprecated="not deprecated">
  34289. </method>
  34290. <method name="getStartTime" return="long"
  34291. abstract="false" native="false" synchronized="false"
  34292. static="false" final="false" visibility="public"
  34293. deprecated="not deprecated">
  34294. </method>
  34295. <method name="getLifecycleHistory" return="java.util.List"
  34296. abstract="false" native="false" synchronized="true"
  34297. static="false" final="false" visibility="public"
  34298. deprecated="not deprecated">
  34299. </method>
  34300. <method name="isInState" return="boolean"
  34301. abstract="false" native="false" synchronized="false"
  34302. static="false" final="true" visibility="public"
  34303. deprecated="not deprecated">
  34304. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  34305. </method>
  34306. <method name="toString" return="java.lang.String"
  34307. abstract="false" native="false" synchronized="false"
  34308. static="false" final="false" visibility="public"
  34309. deprecated="not deprecated">
  34310. </method>
  34311. <method name="putBlocker"
  34312. abstract="false" native="false" synchronized="false"
  34313. static="false" final="false" visibility="protected"
  34314. deprecated="not deprecated">
  34315. <param name="name" type="java.lang.String"/>
  34316. <param name="details" type="java.lang.String"/>
  34317. <doc>
  34318. <![CDATA[Put a blocker to the blocker map -replacing any
  34319. with the same name.
  34320. @param name blocker name
  34321. @param details any specifics on the block. This must be non-null.]]>
  34322. </doc>
  34323. </method>
  34324. <method name="removeBlocker"
  34325. abstract="false" native="false" synchronized="false"
  34326. static="false" final="false" visibility="public"
  34327. deprecated="not deprecated">
  34328. <param name="name" type="java.lang.String"/>
  34329. <doc>
  34330. <![CDATA[Remove a blocker from the blocker map -
  34331. this is a no-op if the blocker is not present
  34332. @param name the name of the blocker]]>
  34333. </doc>
  34334. </method>
  34335. <method name="getBlockers" return="java.util.Map"
  34336. abstract="false" native="false" synchronized="false"
  34337. static="false" final="false" visibility="public"
  34338. deprecated="not deprecated">
  34339. </method>
  34340. <doc>
  34341. <![CDATA[This is the base implementation class for services.]]>
  34342. </doc>
  34343. </class>
  34344. <!-- end class org.apache.hadoop.service.AbstractService -->
  34345. <!-- start class org.apache.hadoop.service.CompositeService -->
  34346. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  34347. abstract="false"
  34348. static="false" final="false" visibility="public"
  34349. deprecated="not deprecated">
  34350. <constructor name="CompositeService" type="java.lang.String"
  34351. static="false" final="false" visibility="public"
  34352. deprecated="not deprecated">
  34353. </constructor>
  34354. <method name="getServices" return="java.util.List"
  34355. abstract="false" native="false" synchronized="false"
  34356. static="false" final="false" visibility="public"
  34357. deprecated="not deprecated">
  34358. <doc>
  34359. <![CDATA[Get a cloned list of services
  34360. @return a list of child services at the time of invocation -
  34361. added services will not be picked up.]]>
  34362. </doc>
  34363. </method>
  34364. <method name="addService"
  34365. abstract="false" native="false" synchronized="false"
  34366. static="false" final="false" visibility="protected"
  34367. deprecated="not deprecated">
  34368. <param name="service" type="org.apache.hadoop.service.Service"/>
  34369. <doc>
  34370. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  34371. {@link CompositeService}
  34372. @param service the {@link Service} to be added]]>
  34373. </doc>
  34374. </method>
  34375. <method name="addIfService" return="boolean"
  34376. abstract="false" native="false" synchronized="false"
  34377. static="false" final="false" visibility="protected"
  34378. deprecated="not deprecated">
  34379. <param name="object" type="java.lang.Object"/>
  34380. <doc>
  34381. <![CDATA[If the passed object is an instance of {@link Service},
  34382. add it to the list of services managed by this {@link CompositeService}
  34383. @param object
  34384. @return true if a service is added, false otherwise.]]>
  34385. </doc>
  34386. </method>
  34387. <method name="removeService" return="boolean"
  34388. abstract="false" native="false" synchronized="true"
  34389. static="false" final="false" visibility="protected"
  34390. deprecated="not deprecated">
  34391. <param name="service" type="org.apache.hadoop.service.Service"/>
  34392. </method>
  34393. <method name="serviceInit"
  34394. abstract="false" native="false" synchronized="false"
  34395. static="false" final="false" visibility="protected"
  34396. deprecated="not deprecated">
  34397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34398. <exception name="Exception" type="java.lang.Exception"/>
  34399. </method>
  34400. <method name="serviceStart"
  34401. abstract="false" native="false" synchronized="false"
  34402. static="false" final="false" visibility="protected"
  34403. deprecated="not deprecated">
  34404. <exception name="Exception" type="java.lang.Exception"/>
  34405. </method>
  34406. <method name="serviceStop"
  34407. abstract="false" native="false" synchronized="false"
  34408. static="false" final="false" visibility="protected"
  34409. deprecated="not deprecated">
  34410. <exception name="Exception" type="java.lang.Exception"/>
  34411. </method>
  34412. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  34413. transient="false" volatile="false"
  34414. static="true" final="true" visibility="protected"
  34415. deprecated="not deprecated">
  34416. <doc>
  34417. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  34418. only try to close started services (which assumes
  34419. that the service implementations may not handle the stop() operation
  34420. except when started.
  34421. Irrespective of this policy, if a child service fails during
  34422. its init() or start() operations, it will have stop() called on it.]]>
  34423. </doc>
  34424. </field>
  34425. <doc>
  34426. <![CDATA[Composition of services.]]>
  34427. </doc>
  34428. </class>
  34429. <!-- end class org.apache.hadoop.service.CompositeService -->
  34430. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  34431. <class name="LifecycleEvent" extends="java.lang.Object"
  34432. abstract="false"
  34433. static="false" final="false" visibility="public"
  34434. deprecated="not deprecated">
  34435. <implements name="java.io.Serializable"/>
  34436. <constructor name="LifecycleEvent"
  34437. static="false" final="false" visibility="public"
  34438. deprecated="not deprecated">
  34439. </constructor>
  34440. <field name="time" type="long"
  34441. transient="false" volatile="false"
  34442. static="false" final="false" visibility="public"
  34443. deprecated="not deprecated">
  34444. <doc>
  34445. <![CDATA[Local time in milliseconds when the event occurred]]>
  34446. </doc>
  34447. </field>
  34448. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  34449. transient="false" volatile="false"
  34450. static="false" final="false" visibility="public"
  34451. deprecated="not deprecated">
  34452. <doc>
  34453. <![CDATA[new state]]>
  34454. </doc>
  34455. </field>
  34456. <doc>
  34457. <![CDATA[A serializable lifecycle event: the time a state
  34458. transition occurred, and what state was entered.]]>
  34459. </doc>
  34460. </class>
  34461. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  34462. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  34463. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  34464. abstract="false"
  34465. static="false" final="false" visibility="public"
  34466. deprecated="not deprecated">
  34467. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34468. <constructor name="LoggingStateChangeListener" type="org.apache.commons.logging.Log"
  34469. static="false" final="false" visibility="public"
  34470. deprecated="not deprecated">
  34471. <doc>
  34472. <![CDATA[Log events to the given log
  34473. @param log destination for events]]>
  34474. </doc>
  34475. </constructor>
  34476. <constructor name="LoggingStateChangeListener"
  34477. static="false" final="false" visibility="public"
  34478. deprecated="not deprecated">
  34479. <doc>
  34480. <![CDATA[Log events to the static log for this class]]>
  34481. </doc>
  34482. </constructor>
  34483. <method name="stateChanged"
  34484. abstract="false" native="false" synchronized="false"
  34485. static="false" final="false" visibility="public"
  34486. deprecated="not deprecated">
  34487. <param name="service" type="org.apache.hadoop.service.Service"/>
  34488. <doc>
  34489. <![CDATA[Callback for a state change event: log it
  34490. @param service the service that has changed.]]>
  34491. </doc>
  34492. </method>
  34493. <doc>
  34494. <![CDATA[This is a state change listener that logs events at INFO level]]>
  34495. </doc>
  34496. </class>
  34497. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  34498. <!-- start interface org.apache.hadoop.service.Service -->
  34499. <interface name="Service" abstract="true"
  34500. static="false" final="false" visibility="public"
  34501. deprecated="not deprecated">
  34502. <implements name="java.io.Closeable"/>
  34503. <method name="init"
  34504. abstract="false" native="false" synchronized="false"
  34505. static="false" final="false" visibility="public"
  34506. deprecated="not deprecated">
  34507. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  34508. <doc>
  34509. <![CDATA[Initialize the service.
  34510. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  34511. unless the operation failed and an exception was raised, in which case
  34512. {@link #stop()} MUST be invoked and the service enter the state
  34513. {@link STATE#STOPPED}.
  34514. @param config the configuration of the service
  34515. @throws RuntimeException on any failure during the operation]]>
  34516. </doc>
  34517. </method>
  34518. <method name="start"
  34519. abstract="false" native="false" synchronized="false"
  34520. static="false" final="false" visibility="public"
  34521. deprecated="not deprecated">
  34522. <doc>
  34523. <![CDATA[Start the service.
  34524. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  34525. unless the operation failed and an exception was raised, in which case
  34526. {@link #stop()} MUST be invoked and the service enter the state
  34527. {@link STATE#STOPPED}.
  34528. @throws RuntimeException on any failure during the operation]]>
  34529. </doc>
  34530. </method>
  34531. <method name="stop"
  34532. abstract="false" native="false" synchronized="false"
  34533. static="false" final="false" visibility="public"
  34534. deprecated="not deprecated">
  34535. <doc>
  34536. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  34537. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  34538. to stop all parts of the service.
  34539. The implementation must be designed to complete regardless of the service
  34540. state, including the initialized/uninitialized state of all its internal
  34541. fields.
  34542. @throws RuntimeException on any failure during the stop operation]]>
  34543. </doc>
  34544. </method>
  34545. <method name="close"
  34546. abstract="false" native="false" synchronized="false"
  34547. static="false" final="false" visibility="public"
  34548. deprecated="not deprecated">
  34549. <exception name="IOException" type="java.io.IOException"/>
  34550. <doc>
  34551. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  34552. clauses.
  34553. Implementation classes MUST relay this directly to {@link #stop()}
  34554. @throws IOException never
  34555. @throws RuntimeException on any failure during the stop operation]]>
  34556. </doc>
  34557. </method>
  34558. <method name="registerServiceListener"
  34559. abstract="false" native="false" synchronized="false"
  34560. static="false" final="false" visibility="public"
  34561. deprecated="not deprecated">
  34562. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34563. <doc>
  34564. <![CDATA[Register a listener to the service state change events.
  34565. If the supplied listener is already listening to this service,
  34566. this method is a no-op.
  34567. @param listener a new listener]]>
  34568. </doc>
  34569. </method>
  34570. <method name="unregisterServiceListener"
  34571. abstract="false" native="false" synchronized="false"
  34572. static="false" final="false" visibility="public"
  34573. deprecated="not deprecated">
  34574. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34575. <doc>
  34576. <![CDATA[Unregister a previously registered listener of the service state
  34577. change events. No-op if the listener is already unregistered.
  34578. @param listener the listener to unregister.]]>
  34579. </doc>
  34580. </method>
  34581. <method name="getName" return="java.lang.String"
  34582. abstract="false" native="false" synchronized="false"
  34583. static="false" final="false" visibility="public"
  34584. deprecated="not deprecated">
  34585. <doc>
  34586. <![CDATA[Get the name of this service.
  34587. @return the service name]]>
  34588. </doc>
  34589. </method>
  34590. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  34591. abstract="false" native="false" synchronized="false"
  34592. static="false" final="false" visibility="public"
  34593. deprecated="not deprecated">
  34594. <doc>
  34595. <![CDATA[Get the configuration of this service.
  34596. This is normally not a clone and may be manipulated, though there are no
  34597. guarantees as to what the consequences of such actions may be
  34598. @return the current configuration, unless a specific implentation chooses
  34599. otherwise.]]>
  34600. </doc>
  34601. </method>
  34602. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  34603. abstract="false" native="false" synchronized="false"
  34604. static="false" final="false" visibility="public"
  34605. deprecated="not deprecated">
  34606. <doc>
  34607. <![CDATA[Get the current service state
  34608. @return the state of the service]]>
  34609. </doc>
  34610. </method>
  34611. <method name="getStartTime" return="long"
  34612. abstract="false" native="false" synchronized="false"
  34613. static="false" final="false" visibility="public"
  34614. deprecated="not deprecated">
  34615. <doc>
  34616. <![CDATA[Get the service start time
  34617. @return the start time of the service. This will be zero if the service
  34618. has not yet been started.]]>
  34619. </doc>
  34620. </method>
  34621. <method name="isInState" return="boolean"
  34622. abstract="false" native="false" synchronized="false"
  34623. static="false" final="false" visibility="public"
  34624. deprecated="not deprecated">
  34625. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  34626. <doc>
  34627. <![CDATA[Query to see if the service is in a specific state.
  34628. In a multi-threaded system, the state may not hold for very long.
  34629. @param state the expected state
  34630. @return true if, at the time of invocation, the service was in that state.]]>
  34631. </doc>
  34632. </method>
  34633. <method name="getFailureCause" return="java.lang.Throwable"
  34634. abstract="false" native="false" synchronized="false"
  34635. static="false" final="false" visibility="public"
  34636. deprecated="not deprecated">
  34637. <doc>
  34638. <![CDATA[Get the first exception raised during the service failure. If null,
  34639. no exception was logged
  34640. @return the failure logged during a transition to the stopped state]]>
  34641. </doc>
  34642. </method>
  34643. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  34644. abstract="false" native="false" synchronized="false"
  34645. static="false" final="false" visibility="public"
  34646. deprecated="not deprecated">
  34647. <doc>
  34648. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  34649. @return the state or null if there was no failure]]>
  34650. </doc>
  34651. </method>
  34652. <method name="waitForServiceToStop" return="boolean"
  34653. abstract="false" native="false" synchronized="false"
  34654. static="false" final="false" visibility="public"
  34655. deprecated="not deprecated">
  34656. <param name="timeout" type="long"/>
  34657. <doc>
  34658. <![CDATA[Block waiting for the service to stop; uses the termination notification
  34659. object to do so.
  34660. This method will only return after all the service stop actions
  34661. have been executed (to success or failure), or the timeout elapsed
  34662. This method can be called before the service is inited or started; this is
  34663. to eliminate any race condition with the service stopping before
  34664. this event occurs.
  34665. @param timeout timeout in milliseconds. A value of zero means "forever"
  34666. @return true iff the service stopped in the time period]]>
  34667. </doc>
  34668. </method>
  34669. <method name="getLifecycleHistory" return="java.util.List"
  34670. abstract="false" native="false" synchronized="false"
  34671. static="false" final="false" visibility="public"
  34672. deprecated="not deprecated">
  34673. <doc>
  34674. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  34675. @return a possibly empty but never null list of lifecycle events.]]>
  34676. </doc>
  34677. </method>
  34678. <method name="getBlockers" return="java.util.Map"
  34679. abstract="false" native="false" synchronized="false"
  34680. static="false" final="false" visibility="public"
  34681. deprecated="not deprecated">
  34682. <doc>
  34683. <![CDATA[Get the blockers on a service -remote dependencies
  34684. that are stopping the service from being <i>live</i>.
  34685. @return a (snapshotted) map of blocker name-&gt;description values]]>
  34686. </doc>
  34687. </method>
  34688. <doc>
  34689. <![CDATA[Service LifeCycle.]]>
  34690. </doc>
  34691. </interface>
  34692. <!-- end interface org.apache.hadoop.service.Service -->
  34693. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  34694. <class name="ServiceOperations" extends="java.lang.Object"
  34695. abstract="false"
  34696. static="false" final="true" visibility="public"
  34697. deprecated="not deprecated">
  34698. <method name="stop"
  34699. abstract="false" native="false" synchronized="false"
  34700. static="true" final="false" visibility="public"
  34701. deprecated="not deprecated">
  34702. <param name="service" type="org.apache.hadoop.service.Service"/>
  34703. <doc>
  34704. <![CDATA[Stop a service.
  34705. <p/>Do nothing if the service is null or not
  34706. in a state in which it can be/needs to be stopped.
  34707. <p/>
  34708. The service state is checked <i>before</i> the operation begins.
  34709. This process is <i>not</i> thread safe.
  34710. @param service a service or null]]>
  34711. </doc>
  34712. </method>
  34713. <method name="stopQuietly" return="java.lang.Exception"
  34714. abstract="false" native="false" synchronized="false"
  34715. static="true" final="false" visibility="public"
  34716. deprecated="not deprecated">
  34717. <param name="service" type="org.apache.hadoop.service.Service"/>
  34718. <doc>
  34719. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34720. logged at warn level. (but not Throwables). This operation is intended to
  34721. be used in cleanup operations
  34722. @param service a service; may be null
  34723. @return any exception that was caught; null if none was.]]>
  34724. </doc>
  34725. </method>
  34726. <method name="stopQuietly" return="java.lang.Exception"
  34727. abstract="false" native="false" synchronized="false"
  34728. static="true" final="false" visibility="public"
  34729. deprecated="not deprecated">
  34730. <param name="log" type="org.apache.commons.logging.Log"/>
  34731. <param name="service" type="org.apache.hadoop.service.Service"/>
  34732. <doc>
  34733. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34734. logged at warn level. (but not Throwables). This operation is intended to
  34735. be used in cleanup operations
  34736. @param log the log to warn at
  34737. @param service a service; may be null
  34738. @return any exception that was caught; null if none was.
  34739. @see ServiceOperations#stopQuietly(Service)]]>
  34740. </doc>
  34741. </method>
  34742. <doc>
  34743. <![CDATA[This class contains a set of methods to work with services, especially
  34744. to walk them through their lifecycle.]]>
  34745. </doc>
  34746. </class>
  34747. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  34748. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  34749. <interface name="ServiceStateChangeListener" abstract="true"
  34750. static="false" final="false" visibility="public"
  34751. deprecated="not deprecated">
  34752. <method name="stateChanged"
  34753. abstract="false" native="false" synchronized="false"
  34754. static="false" final="false" visibility="public"
  34755. deprecated="not deprecated">
  34756. <param name="service" type="org.apache.hadoop.service.Service"/>
  34757. <doc>
  34758. <![CDATA[Callback to notify of a state change. The service will already
  34759. have changed state before this callback is invoked.
  34760. This operation is invoked on the thread that initiated the state change,
  34761. while the service itself in in a sychronized section.
  34762. <ol>
  34763. <li>Any long-lived operation here will prevent the service state
  34764. change from completing in a timely manner.</li>
  34765. <li>If another thread is somehow invoked from the listener, and
  34766. that thread invokes the methods of the service (including
  34767. subclass-specific methods), there is a risk of a deadlock.</li>
  34768. </ol>
  34769. @param service the service that has changed.]]>
  34770. </doc>
  34771. </method>
  34772. <doc>
  34773. <![CDATA[Interface to notify state changes of a service.]]>
  34774. </doc>
  34775. </interface>
  34776. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  34777. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  34778. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  34779. abstract="false"
  34780. static="false" final="false" visibility="public"
  34781. deprecated="not deprecated">
  34782. <constructor name="ServiceStateException" type="java.lang.String"
  34783. static="false" final="false" visibility="public"
  34784. deprecated="not deprecated">
  34785. </constructor>
  34786. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  34787. static="false" final="false" visibility="public"
  34788. deprecated="not deprecated">
  34789. </constructor>
  34790. <constructor name="ServiceStateException" type="java.lang.Throwable"
  34791. static="false" final="false" visibility="public"
  34792. deprecated="not deprecated">
  34793. </constructor>
  34794. <method name="convert" return="java.lang.RuntimeException"
  34795. abstract="false" native="false" synchronized="false"
  34796. static="true" final="false" visibility="public"
  34797. deprecated="not deprecated">
  34798. <param name="fault" type="java.lang.Throwable"/>
  34799. <doc>
  34800. <![CDATA[Convert any exception into a {@link RuntimeException}.
  34801. If the caught exception is already of that type, it is typecast to a
  34802. {@link RuntimeException} and returned.
  34803. All other exception types are wrapped in a new instance of
  34804. ServiceStateException
  34805. @param fault exception or throwable
  34806. @return a ServiceStateException to rethrow]]>
  34807. </doc>
  34808. </method>
  34809. <method name="convert" return="java.lang.RuntimeException"
  34810. abstract="false" native="false" synchronized="false"
  34811. static="true" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. <param name="text" type="java.lang.String"/>
  34814. <param name="fault" type="java.lang.Throwable"/>
  34815. <doc>
  34816. <![CDATA[Convert any exception into a {@link RuntimeException}.
  34817. If the caught exception is already of that type, it is typecast to a
  34818. {@link RuntimeException} and returned.
  34819. All other exception types are wrapped in a new instance of
  34820. ServiceStateException
  34821. @param text text to use if a new exception is created
  34822. @param fault exception or throwable
  34823. @return a ServiceStateException to rethrow]]>
  34824. </doc>
  34825. </method>
  34826. <doc>
  34827. <![CDATA[Exception that is raised on state change operations.]]>
  34828. </doc>
  34829. </class>
  34830. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  34831. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  34832. <class name="ServiceStateModel" extends="java.lang.Object"
  34833. abstract="false"
  34834. static="false" final="false" visibility="public"
  34835. deprecated="not deprecated">
  34836. <constructor name="ServiceStateModel" type="java.lang.String"
  34837. static="false" final="false" visibility="public"
  34838. deprecated="not deprecated">
  34839. <doc>
  34840. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  34841. state.]]>
  34842. </doc>
  34843. </constructor>
  34844. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  34845. static="false" final="false" visibility="public"
  34846. deprecated="not deprecated">
  34847. <doc>
  34848. <![CDATA[Create a service state model instance in the chosen state
  34849. @param state the starting state]]>
  34850. </doc>
  34851. </constructor>
  34852. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  34853. abstract="false" native="false" synchronized="false"
  34854. static="false" final="false" visibility="public"
  34855. deprecated="not deprecated">
  34856. <doc>
  34857. <![CDATA[Query the service state. This is a non-blocking operation.
  34858. @return the state]]>
  34859. </doc>
  34860. </method>
  34861. <method name="isInState" return="boolean"
  34862. abstract="false" native="false" synchronized="false"
  34863. static="false" final="false" visibility="public"
  34864. deprecated="not deprecated">
  34865. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34866. <doc>
  34867. <![CDATA[Query that the state is in a specific state
  34868. @param proposed proposed new state
  34869. @return the state]]>
  34870. </doc>
  34871. </method>
  34872. <method name="ensureCurrentState"
  34873. abstract="false" native="false" synchronized="false"
  34874. static="false" final="false" visibility="public"
  34875. deprecated="not deprecated">
  34876. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  34877. <doc>
  34878. <![CDATA[Verify that that a service is in a given state.
  34879. @param expectedState the desired state
  34880. @throws ServiceStateException if the service state is different from
  34881. the desired state]]>
  34882. </doc>
  34883. </method>
  34884. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  34885. abstract="false" native="false" synchronized="true"
  34886. static="false" final="false" visibility="public"
  34887. deprecated="not deprecated">
  34888. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34889. <doc>
  34890. <![CDATA[Enter a state -thread safe.
  34891. @param proposed proposed new state
  34892. @return the original state
  34893. @throws ServiceStateException if the transition is not permitted]]>
  34894. </doc>
  34895. </method>
  34896. <method name="checkStateTransition"
  34897. abstract="false" native="false" synchronized="false"
  34898. static="true" final="false" visibility="public"
  34899. deprecated="not deprecated">
  34900. <param name="name" type="java.lang.String"/>
  34901. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  34902. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34903. <doc>
  34904. <![CDATA[Check that a state tansition is valid and
  34905. throw an exception if not
  34906. @param name name of the service (can be null)
  34907. @param state current state
  34908. @param proposed proposed new state]]>
  34909. </doc>
  34910. </method>
  34911. <method name="isValidStateTransition" return="boolean"
  34912. abstract="false" native="false" synchronized="false"
  34913. static="true" final="false" visibility="public"
  34914. deprecated="not deprecated">
  34915. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  34916. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34917. <doc>
  34918. <![CDATA[Is a state transition valid?
  34919. There are no checks for current==proposed
  34920. as that is considered a non-transition.
  34921. using an array kills off all branch misprediction costs, at the expense
  34922. of cache line misses.
  34923. @param current current state
  34924. @param proposed proposed new state
  34925. @return true if the transition to a new state is valid]]>
  34926. </doc>
  34927. </method>
  34928. <method name="toString" return="java.lang.String"
  34929. abstract="false" native="false" synchronized="false"
  34930. static="false" final="false" visibility="public"
  34931. deprecated="not deprecated">
  34932. <doc>
  34933. <![CDATA[return the state text as the toString() value
  34934. @return the current state's description]]>
  34935. </doc>
  34936. </method>
  34937. <doc>
  34938. <![CDATA[Implements the service state model.]]>
  34939. </doc>
  34940. </class>
  34941. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  34942. </package>
  34943. <package name="org.apache.hadoop.tools">
  34944. </package>
  34945. <package name="org.apache.hadoop.tools.protocolPB">
  34946. </package>
  34947. <package name="org.apache.hadoop.tracing">
  34948. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  34949. <class name="SpanReceiverInfo" extends="java.lang.Object"
  34950. abstract="false"
  34951. static="false" final="false" visibility="public"
  34952. deprecated="not deprecated">
  34953. <method name="getId" return="long"
  34954. abstract="false" native="false" synchronized="false"
  34955. static="false" final="false" visibility="public"
  34956. deprecated="not deprecated">
  34957. </method>
  34958. <method name="getClassName" return="java.lang.String"
  34959. abstract="false" native="false" synchronized="false"
  34960. static="false" final="false" visibility="public"
  34961. deprecated="not deprecated">
  34962. </method>
  34963. </class>
  34964. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  34965. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  34966. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  34967. abstract="false"
  34968. static="false" final="false" visibility="public"
  34969. deprecated="not deprecated">
  34970. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  34971. static="false" final="false" visibility="public"
  34972. deprecated="not deprecated">
  34973. </constructor>
  34974. <method name="addConfigurationPair"
  34975. abstract="false" native="false" synchronized="false"
  34976. static="false" final="false" visibility="public"
  34977. deprecated="not deprecated">
  34978. <param name="key" type="java.lang.String"/>
  34979. <param name="value" type="java.lang.String"/>
  34980. </method>
  34981. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  34982. abstract="false" native="false" synchronized="false"
  34983. static="false" final="false" visibility="public"
  34984. deprecated="not deprecated">
  34985. </method>
  34986. </class>
  34987. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  34988. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  34989. <interface name="TraceAdminProtocol" abstract="true"
  34990. static="false" final="false" visibility="public"
  34991. deprecated="not deprecated">
  34992. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  34993. abstract="false" native="false" synchronized="false"
  34994. static="false" final="false" visibility="public"
  34995. deprecated="not deprecated">
  34996. <exception name="IOException" type="java.io.IOException"/>
  34997. <doc>
  34998. <![CDATA[List the currently active trace span receivers.
  34999. @throws IOException On error.]]>
  35000. </doc>
  35001. </method>
  35002. <method name="addSpanReceiver" return="long"
  35003. abstract="false" native="false" synchronized="false"
  35004. static="false" final="false" visibility="public"
  35005. deprecated="not deprecated">
  35006. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  35007. <exception name="IOException" type="java.io.IOException"/>
  35008. <doc>
  35009. <![CDATA[Add a new trace span receiver.
  35010. @param desc The span receiver description.
  35011. @return The ID of the new trace span receiver.
  35012. @throws IOException On error.]]>
  35013. </doc>
  35014. </method>
  35015. <method name="removeSpanReceiver"
  35016. abstract="false" native="false" synchronized="false"
  35017. static="false" final="false" visibility="public"
  35018. deprecated="not deprecated">
  35019. <param name="spanReceiverId" type="long"/>
  35020. <exception name="IOException" type="java.io.IOException"/>
  35021. <doc>
  35022. <![CDATA[Remove a trace span receiver.
  35023. @param spanReceiverId The id of the span receiver to remove.
  35024. @throws IOException On error.]]>
  35025. </doc>
  35026. </method>
  35027. <field name="versionID" type="long"
  35028. transient="false" volatile="false"
  35029. static="true" final="true" visibility="public"
  35030. deprecated="not deprecated">
  35031. </field>
  35032. <doc>
  35033. <![CDATA[Protocol interface that provides tracing.]]>
  35034. </doc>
  35035. </interface>
  35036. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  35037. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  35038. <interface name="TraceAdminProtocolPB" abstract="true"
  35039. static="false" final="false" visibility="public"
  35040. deprecated="not deprecated">
  35041. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  35042. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  35043. </interface>
  35044. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  35045. </package>
  35046. <package name="org.apache.hadoop.util">
  35047. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  35048. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  35049. abstract="false"
  35050. static="false" final="false" visibility="public"
  35051. deprecated="not deprecated">
  35052. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  35053. static="false" final="false" visibility="public"
  35054. deprecated="not deprecated">
  35055. </constructor>
  35056. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  35057. static="false" final="false" visibility="public"
  35058. deprecated="not deprecated">
  35059. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  35060. </constructor>
  35061. <method name="getResource" return="java.net.URL"
  35062. abstract="false" native="false" synchronized="false"
  35063. static="false" final="false" visibility="public"
  35064. deprecated="not deprecated">
  35065. <param name="name" type="java.lang.String"/>
  35066. </method>
  35067. <method name="loadClass" return="java.lang.Class"
  35068. abstract="false" native="false" synchronized="false"
  35069. static="false" final="false" visibility="public"
  35070. deprecated="not deprecated">
  35071. <param name="name" type="java.lang.String"/>
  35072. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  35073. </method>
  35074. <method name="loadClass" return="java.lang.Class"
  35075. abstract="false" native="false" synchronized="true"
  35076. static="false" final="false" visibility="protected"
  35077. deprecated="not deprecated">
  35078. <param name="name" type="java.lang.String"/>
  35079. <param name="resolve" type="boolean"/>
  35080. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  35081. </method>
  35082. <method name="isSystemClass" return="boolean"
  35083. abstract="false" native="false" synchronized="false"
  35084. static="true" final="false" visibility="public"
  35085. deprecated="not deprecated">
  35086. <param name="name" type="java.lang.String"/>
  35087. <param name="systemClasses" type="java.util.List"/>
  35088. <doc>
  35089. <![CDATA[Checks if a class should be included as a system class.
  35090. A class is a system class if and only if it matches one of the positive
  35091. patterns and none of the negative ones.
  35092. @param name the class name to check
  35093. @param systemClasses a list of system class configurations.
  35094. @return true if the class is a system class]]>
  35095. </doc>
  35096. </method>
  35097. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  35098. transient="false" volatile="false"
  35099. static="true" final="true" visibility="public"
  35100. deprecated="not deprecated">
  35101. <doc>
  35102. <![CDATA[Default value of the system classes if the user did not override them.
  35103. JDK classes, hadoop classes and resources, and some select third-party
  35104. classes are considered system classes, and are not loaded by the
  35105. application classloader.]]>
  35106. </doc>
  35107. </field>
  35108. <doc>
  35109. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  35110. application JARs are loaded in preference to the parent loader.]]>
  35111. </doc>
  35112. </class>
  35113. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  35114. <!-- start interface org.apache.hadoop.util.IPList -->
  35115. <interface name="IPList" abstract="true"
  35116. static="false" final="false" visibility="public"
  35117. deprecated="not deprecated">
  35118. <method name="isIn" return="boolean"
  35119. abstract="false" native="false" synchronized="false"
  35120. static="false" final="false" visibility="public"
  35121. deprecated="not deprecated">
  35122. <param name="ipAddress" type="java.lang.String"/>
  35123. <doc>
  35124. <![CDATA[returns true if the ipAddress is in the IPList.
  35125. @param ipAddress
  35126. @return boolean value indicating whether the ipAddress is in the IPList]]>
  35127. </doc>
  35128. </method>
  35129. </interface>
  35130. <!-- end interface org.apache.hadoop.util.IPList -->
  35131. <!-- start interface org.apache.hadoop.util.Progressable -->
  35132. <interface name="Progressable" abstract="true"
  35133. static="false" final="false" visibility="public"
  35134. deprecated="not deprecated">
  35135. <method name="progress"
  35136. abstract="false" native="false" synchronized="false"
  35137. static="false" final="false" visibility="public"
  35138. deprecated="not deprecated">
  35139. <doc>
  35140. <![CDATA[Report progress to the Hadoop framework.]]>
  35141. </doc>
  35142. </method>
  35143. <doc>
  35144. <![CDATA[A facility for reporting progress.
  35145. <p>Clients and/or applications can use the provided <code>Progressable</code>
  35146. to explicitly report progress to the Hadoop framework. This is especially
  35147. important for operations which take significant amount of time since,
  35148. in-lieu of the reported progress, the framework has to assume that an error
  35149. has occured and time-out the operation.</p>]]>
  35150. </doc>
  35151. </interface>
  35152. <!-- end interface org.apache.hadoop.util.Progressable -->
  35153. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  35154. <class name="PureJavaCrc32" extends="java.lang.Object"
  35155. abstract="false"
  35156. static="false" final="false" visibility="public"
  35157. deprecated="not deprecated">
  35158. <implements name="java.util.zip.Checksum"/>
  35159. <constructor name="PureJavaCrc32"
  35160. static="false" final="false" visibility="public"
  35161. deprecated="not deprecated">
  35162. <doc>
  35163. <![CDATA[Create a new PureJavaCrc32 object.]]>
  35164. </doc>
  35165. </constructor>
  35166. <method name="getValue" return="long"
  35167. abstract="false" native="false" synchronized="false"
  35168. static="false" final="false" visibility="public"
  35169. deprecated="not deprecated">
  35170. </method>
  35171. <method name="reset"
  35172. abstract="false" native="false" synchronized="false"
  35173. static="false" final="false" visibility="public"
  35174. deprecated="not deprecated">
  35175. </method>
  35176. <method name="update"
  35177. abstract="false" native="false" synchronized="false"
  35178. static="false" final="false" visibility="public"
  35179. deprecated="not deprecated">
  35180. <param name="b" type="byte[]"/>
  35181. <param name="offset" type="int"/>
  35182. <param name="len" type="int"/>
  35183. </method>
  35184. <method name="update"
  35185. abstract="false" native="false" synchronized="false"
  35186. static="false" final="true" visibility="public"
  35187. deprecated="not deprecated">
  35188. <param name="b" type="int"/>
  35189. </method>
  35190. <doc>
  35191. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  35192. the same polynomial as the built-in native CRC32.
  35193. This is to avoid the JNI overhead for certain uses of Checksumming
  35194. where many small pieces of data are checksummed in succession.
  35195. The current version is ~10x to 1.8x as fast as Sun's native
  35196. java.util.zip.CRC32 in Java 1.6
  35197. @see java.util.zip.CRC32]]>
  35198. </doc>
  35199. </class>
  35200. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  35201. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  35202. <class name="PureJavaCrc32C" extends="java.lang.Object"
  35203. abstract="false"
  35204. static="false" final="false" visibility="public"
  35205. deprecated="not deprecated">
  35206. <implements name="java.util.zip.Checksum"/>
  35207. <constructor name="PureJavaCrc32C"
  35208. static="false" final="false" visibility="public"
  35209. deprecated="not deprecated">
  35210. <doc>
  35211. <![CDATA[Create a new PureJavaCrc32 object.]]>
  35212. </doc>
  35213. </constructor>
  35214. <method name="getValue" return="long"
  35215. abstract="false" native="false" synchronized="false"
  35216. static="false" final="false" visibility="public"
  35217. deprecated="not deprecated">
  35218. </method>
  35219. <method name="reset"
  35220. abstract="false" native="false" synchronized="false"
  35221. static="false" final="false" visibility="public"
  35222. deprecated="not deprecated">
  35223. </method>
  35224. <method name="update"
  35225. abstract="false" native="false" synchronized="false"
  35226. static="false" final="false" visibility="public"
  35227. deprecated="not deprecated">
  35228. <param name="b" type="byte[]"/>
  35229. <param name="off" type="int"/>
  35230. <param name="len" type="int"/>
  35231. </method>
  35232. <method name="update"
  35233. abstract="false" native="false" synchronized="false"
  35234. static="false" final="true" visibility="public"
  35235. deprecated="not deprecated">
  35236. <param name="b" type="int"/>
  35237. </method>
  35238. <doc>
  35239. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  35240. the CRC32-C polynomial, the same polynomial used by iSCSI
  35241. and implemented on many Intel chipsets supporting SSE4.2.]]>
  35242. </doc>
  35243. </class>
  35244. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  35245. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  35246. <class name="ReflectionUtils" extends="java.lang.Object"
  35247. abstract="false"
  35248. static="false" final="false" visibility="public"
  35249. deprecated="not deprecated">
  35250. <constructor name="ReflectionUtils"
  35251. static="false" final="false" visibility="public"
  35252. deprecated="not deprecated">
  35253. </constructor>
  35254. <method name="setConf"
  35255. abstract="false" native="false" synchronized="false"
  35256. static="true" final="false" visibility="public"
  35257. deprecated="not deprecated">
  35258. <param name="theObject" type="java.lang.Object"/>
  35259. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35260. <doc>
  35261. <![CDATA[Check and set 'configuration' if necessary.
  35262. @param theObject object for which to set configuration
  35263. @param conf Configuration]]>
  35264. </doc>
  35265. </method>
  35266. <method name="newInstance" return="T"
  35267. abstract="false" native="false" synchronized="false"
  35268. static="true" final="false" visibility="public"
  35269. deprecated="not deprecated">
  35270. <param name="theClass" type="java.lang.Class"/>
  35271. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35272. <doc>
  35273. <![CDATA[Create an object for the given class and initialize it from conf
  35274. @param theClass class of which an object is created
  35275. @param conf Configuration
  35276. @return a new object]]>
  35277. </doc>
  35278. </method>
  35279. <method name="setContentionTracing"
  35280. abstract="false" native="false" synchronized="false"
  35281. static="true" final="false" visibility="public"
  35282. deprecated="not deprecated">
  35283. <param name="val" type="boolean"/>
  35284. </method>
  35285. <method name="printThreadInfo"
  35286. abstract="false" native="false" synchronized="true"
  35287. static="true" final="false" visibility="public"
  35288. deprecated="not deprecated">
  35289. <param name="stream" type="java.io.PrintStream"/>
  35290. <param name="title" type="java.lang.String"/>
  35291. <doc>
  35292. <![CDATA[Print all of the thread's information and stack traces.
  35293. @param stream the stream to
  35294. @param title a string title for the stack trace]]>
  35295. </doc>
  35296. </method>
  35297. <method name="logThreadInfo"
  35298. abstract="false" native="false" synchronized="false"
  35299. static="true" final="false" visibility="public"
  35300. deprecated="not deprecated">
  35301. <param name="log" type="org.apache.commons.logging.Log"/>
  35302. <param name="title" type="java.lang.String"/>
  35303. <param name="minInterval" type="long"/>
  35304. <doc>
  35305. <![CDATA[Log the current thread stacks at INFO level.
  35306. @param log the logger that logs the stack trace
  35307. @param title a descriptive title for the call stacks
  35308. @param minInterval the minimum time from the last]]>
  35309. </doc>
  35310. </method>
  35311. <method name="getClass" return="java.lang.Class"
  35312. abstract="false" native="false" synchronized="false"
  35313. static="true" final="false" visibility="public"
  35314. deprecated="not deprecated">
  35315. <param name="o" type="T"/>
  35316. <doc>
  35317. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  35318. @param o object whose correctly-typed <code>Class</code> is to be obtained
  35319. @return the correctly typed <code>Class</code> of the given object.]]>
  35320. </doc>
  35321. </method>
  35322. <method name="copy" return="T"
  35323. abstract="false" native="false" synchronized="false"
  35324. static="true" final="false" visibility="public"
  35325. deprecated="not deprecated">
  35326. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35327. <param name="src" type="T"/>
  35328. <param name="dst" type="T"/>
  35329. <exception name="IOException" type="java.io.IOException"/>
  35330. <doc>
  35331. <![CDATA[Make a copy of the writable object using serialization to a buffer
  35332. @param src the object to copy from
  35333. @param dst the object to copy into, which is destroyed
  35334. @return dst param (the copy)
  35335. @throws IOException]]>
  35336. </doc>
  35337. </method>
  35338. <method name="cloneWritableInto"
  35339. abstract="false" native="false" synchronized="false"
  35340. static="true" final="false" visibility="public"
  35341. deprecated="not deprecated">
  35342. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  35343. <param name="src" type="org.apache.hadoop.io.Writable"/>
  35344. <exception name="IOException" type="java.io.IOException"/>
  35345. </method>
  35346. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  35347. abstract="false" native="false" synchronized="false"
  35348. static="true" final="false" visibility="public"
  35349. deprecated="not deprecated">
  35350. <param name="clazz" type="java.lang.Class"/>
  35351. <doc>
  35352. <![CDATA[Gets all the declared fields of a class including fields declared in
  35353. superclasses.]]>
  35354. </doc>
  35355. </method>
  35356. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  35357. abstract="false" native="false" synchronized="false"
  35358. static="true" final="false" visibility="public"
  35359. deprecated="not deprecated">
  35360. <param name="clazz" type="java.lang.Class"/>
  35361. <doc>
  35362. <![CDATA[Gets all the declared methods of a class including methods declared in
  35363. superclasses.]]>
  35364. </doc>
  35365. </method>
  35366. <doc>
  35367. <![CDATA[General reflection utils]]>
  35368. </doc>
  35369. </class>
  35370. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  35371. <!-- start class org.apache.hadoop.util.Shell -->
  35372. <class name="Shell" extends="java.lang.Object"
  35373. abstract="true"
  35374. static="false" final="false" visibility="public"
  35375. deprecated="not deprecated">
  35376. <constructor name="Shell"
  35377. static="false" final="false" visibility="protected"
  35378. deprecated="not deprecated">
  35379. <doc>
  35380. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  35381. not merged with stdout.]]>
  35382. </doc>
  35383. </constructor>
  35384. <constructor name="Shell" type="long"
  35385. static="false" final="false" visibility="protected"
  35386. deprecated="not deprecated">
  35387. <doc>
  35388. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  35389. not merged with stdout.
  35390. @param interval interval in milliseconds between command executions.]]>
  35391. </doc>
  35392. </constructor>
  35393. <constructor name="Shell" type="long, boolean"
  35394. static="false" final="false" visibility="protected"
  35395. deprecated="not deprecated">
  35396. <doc>
  35397. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  35398. method is invoked with a given elapsed time between calls.
  35399. @param interval the minimum duration in milliseconds to wait before
  35400. re-executing the command. If set to 0, there is no minimum.
  35401. @param redirectErrorStream should the error stream be merged with
  35402. the normal output stream?]]>
  35403. </doc>
  35404. </constructor>
  35405. <method name="isJava7OrAbove" return="boolean"
  35406. abstract="false" native="false" synchronized="false"
  35407. static="true" final="false" visibility="public"
  35408. deprecated="This call isn't needed any more: please remove uses of it.">
  35409. <doc>
  35410. <![CDATA[query to see if system is Java 7 or later.
  35411. Now that Hadoop requires Java 7 or later, this always returns true.
  35412. @deprecated This call isn't needed any more: please remove uses of it.
  35413. @return true, always.]]>
  35414. </doc>
  35415. </method>
  35416. <method name="checkWindowsCommandLineLength"
  35417. abstract="false" native="false" synchronized="false"
  35418. static="true" final="false" visibility="public"
  35419. deprecated="not deprecated">
  35420. <param name="commands" type="java.lang.String[]"/>
  35421. <exception name="IOException" type="java.io.IOException"/>
  35422. <doc>
  35423. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  35424. line length Note that the input is expected to already include space
  35425. delimiters, no extra count will be added for delimiters.
  35426. @param commands command parts, including any space delimiters]]>
  35427. </doc>
  35428. </method>
  35429. <method name="getGroupsCommand" return="java.lang.String[]"
  35430. abstract="false" native="false" synchronized="false"
  35431. static="true" final="false" visibility="public"
  35432. deprecated="not deprecated">
  35433. <doc>
  35434. <![CDATA[a Unix command to get the current user's groups list.]]>
  35435. </doc>
  35436. </method>
  35437. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  35438. abstract="false" native="false" synchronized="false"
  35439. static="true" final="false" visibility="public"
  35440. deprecated="not deprecated">
  35441. <param name="user" type="java.lang.String"/>
  35442. <doc>
  35443. <![CDATA[A command to get a given user's groups list.
  35444. If the OS is not WINDOWS, the command will get the user's primary group
  35445. first and finally get the groups list which includes the primary group.
  35446. i.e. the user's primary group will be included twice.]]>
  35447. </doc>
  35448. </method>
  35449. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  35450. abstract="false" native="false" synchronized="false"
  35451. static="true" final="false" visibility="public"
  35452. deprecated="not deprecated">
  35453. <param name="user" type="java.lang.String"/>
  35454. <doc>
  35455. <![CDATA[A command to get a given user's group id list.
  35456. The command will get the user's primary group
  35457. first and finally get the groups list which includes the primary group.
  35458. i.e. the user's primary group will be included twice.
  35459. This command does not support Windows and will only return group names.]]>
  35460. </doc>
  35461. </method>
  35462. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  35463. abstract="false" native="false" synchronized="false"
  35464. static="true" final="false" visibility="public"
  35465. deprecated="not deprecated">
  35466. <param name="netgroup" type="java.lang.String"/>
  35467. <doc>
  35468. <![CDATA[A command to get a given netgroup's user list.]]>
  35469. </doc>
  35470. </method>
  35471. <method name="getGetPermissionCommand" return="java.lang.String[]"
  35472. abstract="false" native="false" synchronized="false"
  35473. static="true" final="false" visibility="public"
  35474. deprecated="not deprecated">
  35475. <doc>
  35476. <![CDATA[Return a command to get permission information.]]>
  35477. </doc>
  35478. </method>
  35479. <method name="getSetPermissionCommand" return="java.lang.String[]"
  35480. abstract="false" native="false" synchronized="false"
  35481. static="true" final="false" visibility="public"
  35482. deprecated="not deprecated">
  35483. <param name="perm" type="java.lang.String"/>
  35484. <param name="recursive" type="boolean"/>
  35485. <doc>
  35486. <![CDATA[Return a command to set permission.]]>
  35487. </doc>
  35488. </method>
  35489. <method name="getSetPermissionCommand" return="java.lang.String[]"
  35490. abstract="false" native="false" synchronized="false"
  35491. static="true" final="false" visibility="public"
  35492. deprecated="not deprecated">
  35493. <param name="perm" type="java.lang.String"/>
  35494. <param name="recursive" type="boolean"/>
  35495. <param name="file" type="java.lang.String"/>
  35496. <doc>
  35497. <![CDATA[Return a command to set permission for specific file.
  35498. @param perm String permission to set
  35499. @param recursive boolean true to apply to all sub-directories recursively
  35500. @param file String file to set
  35501. @return String[] containing command and arguments]]>
  35502. </doc>
  35503. </method>
  35504. <method name="getSetOwnerCommand" return="java.lang.String[]"
  35505. abstract="false" native="false" synchronized="false"
  35506. static="true" final="false" visibility="public"
  35507. deprecated="not deprecated">
  35508. <param name="owner" type="java.lang.String"/>
  35509. <doc>
  35510. <![CDATA[Return a command to set owner.]]>
  35511. </doc>
  35512. </method>
  35513. <method name="getSymlinkCommand" return="java.lang.String[]"
  35514. abstract="false" native="false" synchronized="false"
  35515. static="true" final="false" visibility="public"
  35516. deprecated="not deprecated">
  35517. <param name="target" type="java.lang.String"/>
  35518. <param name="link" type="java.lang.String"/>
  35519. <doc>
  35520. <![CDATA[Return a command to create symbolic links.]]>
  35521. </doc>
  35522. </method>
  35523. <method name="getReadlinkCommand" return="java.lang.String[]"
  35524. abstract="false" native="false" synchronized="false"
  35525. static="true" final="false" visibility="public"
  35526. deprecated="not deprecated">
  35527. <param name="link" type="java.lang.String"/>
  35528. <doc>
  35529. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  35530. </doc>
  35531. </method>
  35532. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  35533. abstract="false" native="false" synchronized="false"
  35534. static="true" final="false" visibility="public"
  35535. deprecated="not deprecated">
  35536. <param name="pid" type="java.lang.String"/>
  35537. <doc>
  35538. <![CDATA[Return a command for determining if process with specified pid is alive.
  35539. @param pid process ID
  35540. @return a <code>kill -0</code> command or equivalent]]>
  35541. </doc>
  35542. </method>
  35543. <method name="getSignalKillCommand" return="java.lang.String[]"
  35544. abstract="false" native="false" synchronized="false"
  35545. static="true" final="false" visibility="public"
  35546. deprecated="not deprecated">
  35547. <param name="code" type="int"/>
  35548. <param name="pid" type="java.lang.String"/>
  35549. <doc>
  35550. <![CDATA[Return a command to send a signal to a given pid.]]>
  35551. </doc>
  35552. </method>
  35553. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  35554. abstract="false" native="false" synchronized="false"
  35555. static="true" final="false" visibility="public"
  35556. deprecated="not deprecated">
  35557. <doc>
  35558. <![CDATA[Return a regular expression string that match environment variables.]]>
  35559. </doc>
  35560. </method>
  35561. <method name="appendScriptExtension" return="java.io.File"
  35562. abstract="false" native="false" synchronized="false"
  35563. static="true" final="false" visibility="public"
  35564. deprecated="not deprecated">
  35565. <param name="parent" type="java.io.File"/>
  35566. <param name="basename" type="java.lang.String"/>
  35567. <doc>
  35568. <![CDATA[Returns a File referencing a script with the given basename, inside the
  35569. given parent directory. The file extension is inferred by platform:
  35570. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  35571. @param parent File parent directory
  35572. @param basename String script file basename
  35573. @return File referencing the script in the directory]]>
  35574. </doc>
  35575. </method>
  35576. <method name="appendScriptExtension" return="java.lang.String"
  35577. abstract="false" native="false" synchronized="false"
  35578. static="true" final="false" visibility="public"
  35579. deprecated="not deprecated">
  35580. <param name="basename" type="java.lang.String"/>
  35581. <doc>
  35582. <![CDATA[Returns a script file name with the given basename.
  35583. The file extension is inferred by platform:
  35584. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  35585. @param basename String script file basename
  35586. @return String script file name]]>
  35587. </doc>
  35588. </method>
  35589. <method name="getRunScriptCommand" return="java.lang.String[]"
  35590. abstract="false" native="false" synchronized="false"
  35591. static="true" final="false" visibility="public"
  35592. deprecated="not deprecated">
  35593. <param name="script" type="java.io.File"/>
  35594. <doc>
  35595. <![CDATA[Returns a command to run the given script. The script interpreter is
  35596. inferred by platform: cmd on Windows or bash otherwise.
  35597. @param script File script to run
  35598. @return String[] command to run the script]]>
  35599. </doc>
  35600. </method>
  35601. <method name="getHadoopHome" return="java.lang.String"
  35602. abstract="false" native="false" synchronized="false"
  35603. static="true" final="false" visibility="public"
  35604. deprecated="not deprecated">
  35605. <exception name="IOException" type="java.io.IOException"/>
  35606. <doc>
  35607. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  35608. @return the home dir
  35609. @throws IOException if the home directory cannot be located.]]>
  35610. </doc>
  35611. </method>
  35612. <method name="getQualifiedBin" return="java.io.File"
  35613. abstract="false" native="false" synchronized="false"
  35614. static="true" final="false" visibility="public"
  35615. deprecated="not deprecated">
  35616. <param name="executable" type="java.lang.String"/>
  35617. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  35618. <doc>
  35619. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  35620. bin location. This is primarily useful for disambiguating call-outs
  35621. to executable sub-components of Hadoop to avoid clashes with other
  35622. executables that may be in the path. Caveat: this call doesn't
  35623. just format the path to the bin directory. It also checks for file
  35624. existence of the composed path. The output of this call should be
  35625. cached by callers.
  35626. @param executable executable
  35627. @return executable file reference
  35628. @throws FileNotFoundException if the path does not exist]]>
  35629. </doc>
  35630. </method>
  35631. <method name="getQualifiedBinPath" return="java.lang.String"
  35632. abstract="false" native="false" synchronized="false"
  35633. static="true" final="false" visibility="public"
  35634. deprecated="not deprecated">
  35635. <param name="executable" type="java.lang.String"/>
  35636. <exception name="IOException" type="java.io.IOException"/>
  35637. <doc>
  35638. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  35639. bin location. This is primarily useful for disambiguating call-outs
  35640. to executable sub-components of Hadoop to avoid clashes with other
  35641. executables that may be in the path. Caveat: this call doesn't
  35642. just format the path to the bin directory. It also checks for file
  35643. existence of the composed path. The output of this call should be
  35644. cached by callers.
  35645. @param executable executable
  35646. @return executable file reference
  35647. @throws FileNotFoundException if the path does not exist
  35648. @throws IOException on path canonicalization failures]]>
  35649. </doc>
  35650. </method>
  35651. <method name="hasWinutilsPath" return="boolean"
  35652. abstract="false" native="false" synchronized="false"
  35653. static="true" final="false" visibility="public"
  35654. deprecated="not deprecated">
  35655. <doc>
  35656. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  35657. If true, then {@link #WINUTILS} is non-null, and both
  35658. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  35659. will successfully return this value. Always false on non-windows systems.
  35660. @return true if there is a valid path to the binary]]>
  35661. </doc>
  35662. </method>
  35663. <method name="getWinUtilsPath" return="java.lang.String"
  35664. abstract="false" native="false" synchronized="false"
  35665. static="true" final="false" visibility="public"
  35666. deprecated="not deprecated">
  35667. <doc>
  35668. <![CDATA[Locate the winutils binary, or fail with a meaningful
  35669. exception and stack trace as an RTE.
  35670. This method is for use in methods which don't explicitly throw
  35671. an <code>IOException</code>.
  35672. @return the path to {@link #WINUTILS_EXE}
  35673. @throws RuntimeException if the path is not resolvable]]>
  35674. </doc>
  35675. </method>
  35676. <method name="getWinUtilsFile" return="java.io.File"
  35677. abstract="false" native="false" synchronized="false"
  35678. static="true" final="false" visibility="public"
  35679. deprecated="not deprecated">
  35680. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  35681. <doc>
  35682. <![CDATA[Get a file reference to winutils.
  35683. Always raises an exception if there isn't one
  35684. @return the file instance referring to the winutils bin.
  35685. @throws FileNotFoundException on any failure to locate that file.]]>
  35686. </doc>
  35687. </method>
  35688. <method name="checkIsBashSupported" return="boolean"
  35689. abstract="false" native="false" synchronized="false"
  35690. static="true" final="false" visibility="public"
  35691. deprecated="not deprecated">
  35692. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  35693. </method>
  35694. <method name="setEnvironment"
  35695. abstract="false" native="false" synchronized="false"
  35696. static="false" final="false" visibility="protected"
  35697. deprecated="not deprecated">
  35698. <param name="env" type="java.util.Map"/>
  35699. <doc>
  35700. <![CDATA[Set the environment for the command.
  35701. @param env Mapping of environment variables]]>
  35702. </doc>
  35703. </method>
  35704. <method name="setWorkingDirectory"
  35705. abstract="false" native="false" synchronized="false"
  35706. static="false" final="false" visibility="protected"
  35707. deprecated="not deprecated">
  35708. <param name="dir" type="java.io.File"/>
  35709. <doc>
  35710. <![CDATA[Set the working directory.
  35711. @param dir The directory where the command will be executed]]>
  35712. </doc>
  35713. </method>
  35714. <method name="run"
  35715. abstract="false" native="false" synchronized="false"
  35716. static="false" final="false" visibility="protected"
  35717. deprecated="not deprecated">
  35718. <exception name="IOException" type="java.io.IOException"/>
  35719. <doc>
  35720. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  35721. </doc>
  35722. </method>
  35723. <method name="getExecString" return="java.lang.String[]"
  35724. abstract="true" native="false" synchronized="false"
  35725. static="false" final="false" visibility="protected"
  35726. deprecated="not deprecated">
  35727. <doc>
  35728. <![CDATA[return an array containing the command name and its parameters.]]>
  35729. </doc>
  35730. </method>
  35731. <method name="parseExecResult"
  35732. abstract="true" native="false" synchronized="false"
  35733. static="false" final="false" visibility="protected"
  35734. deprecated="not deprecated">
  35735. <param name="lines" type="java.io.BufferedReader"/>
  35736. <exception name="IOException" type="java.io.IOException"/>
  35737. <doc>
  35738. <![CDATA[Parse the execution result]]>
  35739. </doc>
  35740. </method>
  35741. <method name="getEnvironment" return="java.lang.String"
  35742. abstract="false" native="false" synchronized="false"
  35743. static="false" final="false" visibility="public"
  35744. deprecated="not deprecated">
  35745. <param name="env" type="java.lang.String"/>
  35746. <doc>
  35747. <![CDATA[Get an environment variable.
  35748. @param env the environment var
  35749. @return the value or null if it was unset.]]>
  35750. </doc>
  35751. </method>
  35752. <method name="getProcess" return="java.lang.Process"
  35753. abstract="false" native="false" synchronized="false"
  35754. static="false" final="false" visibility="public"
  35755. deprecated="not deprecated">
  35756. <doc>
  35757. <![CDATA[get the current sub-process executing the given command.
  35758. @return process executing the command]]>
  35759. </doc>
  35760. </method>
  35761. <method name="getExitCode" return="int"
  35762. abstract="false" native="false" synchronized="false"
  35763. static="false" final="false" visibility="public"
  35764. deprecated="not deprecated">
  35765. <doc>
  35766. <![CDATA[get the exit code.
  35767. @return the exit code of the process]]>
  35768. </doc>
  35769. </method>
  35770. <method name="isTimedOut" return="boolean"
  35771. abstract="false" native="false" synchronized="false"
  35772. static="false" final="false" visibility="public"
  35773. deprecated="not deprecated">
  35774. <doc>
  35775. <![CDATA[To check if the passed script to shell command executor timed out or
  35776. not.
  35777. @return if the script timed out.]]>
  35778. </doc>
  35779. </method>
  35780. <method name="execCommand" return="java.lang.String"
  35781. abstract="false" native="false" synchronized="false"
  35782. static="true" final="false" visibility="public"
  35783. deprecated="not deprecated">
  35784. <param name="cmd" type="java.lang.String[]"/>
  35785. <exception name="IOException" type="java.io.IOException"/>
  35786. <doc>
  35787. <![CDATA[Static method to execute a shell command.
  35788. Covers most of the simple cases without requiring the user to implement
  35789. the <code>Shell</code> interface.
  35790. @param cmd shell command to execute.
  35791. @return the output of the executed command.]]>
  35792. </doc>
  35793. </method>
  35794. <method name="execCommand" return="java.lang.String"
  35795. abstract="false" native="false" synchronized="false"
  35796. static="true" final="false" visibility="public"
  35797. deprecated="not deprecated">
  35798. <param name="env" type="java.util.Map"/>
  35799. <param name="cmd" type="java.lang.String[]"/>
  35800. <param name="timeout" type="long"/>
  35801. <exception name="IOException" type="java.io.IOException"/>
  35802. <doc>
  35803. <![CDATA[Static method to execute a shell command.
  35804. Covers most of the simple cases without requiring the user to implement
  35805. the <code>Shell</code> interface.
  35806. @param env the map of environment key=value
  35807. @param cmd shell command to execute.
  35808. @param timeout time in milliseconds after which script should be marked timeout
  35809. @return the output of the executed command.
  35810. @throws IOException on any problem.]]>
  35811. </doc>
  35812. </method>
  35813. <method name="execCommand" return="java.lang.String"
  35814. abstract="false" native="false" synchronized="false"
  35815. static="true" final="false" visibility="public"
  35816. deprecated="not deprecated">
  35817. <param name="env" type="java.util.Map"/>
  35818. <param name="cmd" type="java.lang.String[]"/>
  35819. <exception name="IOException" type="java.io.IOException"/>
  35820. <doc>
  35821. <![CDATA[Static method to execute a shell command.
  35822. Covers most of the simple cases without requiring the user to implement
  35823. the <code>Shell</code> interface.
  35824. @param env the map of environment key=value
  35825. @param cmd shell command to execute.
  35826. @return the output of the executed command.
  35827. @throws IOException on any problem.]]>
  35828. </doc>
  35829. </method>
  35830. <field name="LOG" type="org.slf4j.Logger"
  35831. transient="false" volatile="false"
  35832. static="true" final="true" visibility="public"
  35833. deprecated="not deprecated">
  35834. </field>
  35835. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  35836. transient="false" volatile="false"
  35837. static="true" final="true" visibility="public"
  35838. deprecated="not deprecated">
  35839. <doc>
  35840. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  35841. </doc>
  35842. </field>
  35843. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  35844. transient="false" volatile="false"
  35845. static="true" final="true" visibility="public"
  35846. deprecated="not deprecated">
  35847. <doc>
  35848. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  35849. </doc>
  35850. </field>
  35851. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  35852. transient="false" volatile="false"
  35853. static="true" final="true" visibility="public"
  35854. deprecated="not deprecated">
  35855. <doc>
  35856. <![CDATA[Maximum command line length in Windows
  35857. KB830473 documents this as 8191]]>
  35858. </doc>
  35859. </field>
  35860. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  35861. transient="false" volatile="false"
  35862. static="true" final="true" visibility="public"
  35863. deprecated="use the correctly spelled constant.">
  35864. <doc>
  35865. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  35866. @deprecated use the correctly spelled constant.]]>
  35867. </doc>
  35868. </field>
  35869. <field name="USER_NAME_COMMAND" type="java.lang.String"
  35870. transient="false" volatile="false"
  35871. static="true" final="true" visibility="public"
  35872. deprecated="not deprecated">
  35873. <doc>
  35874. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  35875. </doc>
  35876. </field>
  35877. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  35878. transient="false" volatile="false"
  35879. static="true" final="true" visibility="public"
  35880. deprecated="not deprecated">
  35881. <doc>
  35882. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  35883. </doc>
  35884. </field>
  35885. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  35886. transient="false" volatile="false"
  35887. static="true" final="true" visibility="public"
  35888. deprecated="not deprecated">
  35889. <doc>
  35890. <![CDATA[Get the type of the operating system, as determined from parsing
  35891. the <code>os.name</code> property.]]>
  35892. </doc>
  35893. </field>
  35894. <field name="WINDOWS" type="boolean"
  35895. transient="false" volatile="false"
  35896. static="true" final="true" visibility="public"
  35897. deprecated="not deprecated">
  35898. </field>
  35899. <field name="SOLARIS" type="boolean"
  35900. transient="false" volatile="false"
  35901. static="true" final="true" visibility="public"
  35902. deprecated="not deprecated">
  35903. </field>
  35904. <field name="MAC" type="boolean"
  35905. transient="false" volatile="false"
  35906. static="true" final="true" visibility="public"
  35907. deprecated="not deprecated">
  35908. </field>
  35909. <field name="FREEBSD" type="boolean"
  35910. transient="false" volatile="false"
  35911. static="true" final="true" visibility="public"
  35912. deprecated="not deprecated">
  35913. </field>
  35914. <field name="LINUX" type="boolean"
  35915. transient="false" volatile="false"
  35916. static="true" final="true" visibility="public"
  35917. deprecated="not deprecated">
  35918. </field>
  35919. <field name="OTHER" type="boolean"
  35920. transient="false" volatile="false"
  35921. static="true" final="true" visibility="public"
  35922. deprecated="not deprecated">
  35923. </field>
  35924. <field name="PPC_64" type="boolean"
  35925. transient="false" volatile="false"
  35926. static="true" final="true" visibility="public"
  35927. deprecated="not deprecated">
  35928. </field>
  35929. <field name="ENV_NAME_REGEX" type="java.lang.String"
  35930. transient="false" volatile="false"
  35931. static="true" final="true" visibility="public"
  35932. deprecated="not deprecated">
  35933. <doc>
  35934. <![CDATA[Regular expression for environment variables: {@value}.]]>
  35935. </doc>
  35936. </field>
  35937. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  35938. transient="false" volatile="false"
  35939. static="true" final="true" visibility="public"
  35940. deprecated="not deprecated">
  35941. <doc>
  35942. <![CDATA[a Unix command to set permission: {@value}.]]>
  35943. </doc>
  35944. </field>
  35945. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  35946. transient="false" volatile="false"
  35947. static="true" final="true" visibility="public"
  35948. deprecated="not deprecated">
  35949. <doc>
  35950. <![CDATA[a Unix command to set owner: {@value}.]]>
  35951. </doc>
  35952. </field>
  35953. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  35954. transient="false" volatile="false"
  35955. static="true" final="true" visibility="public"
  35956. deprecated="not deprecated">
  35957. <doc>
  35958. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  35959. </doc>
  35960. </field>
  35961. <field name="LINK_COMMAND" type="java.lang.String"
  35962. transient="false" volatile="false"
  35963. static="true" final="true" visibility="public"
  35964. deprecated="not deprecated">
  35965. <doc>
  35966. <![CDATA[a Unix command to create a link: {@value}.]]>
  35967. </doc>
  35968. </field>
  35969. <field name="READ_LINK_COMMAND" type="java.lang.String"
  35970. transient="false" volatile="false"
  35971. static="true" final="true" visibility="public"
  35972. deprecated="not deprecated">
  35973. <doc>
  35974. <![CDATA[a Unix command to get a link target: {@value}.]]>
  35975. </doc>
  35976. </field>
  35977. <field name="timeOutInterval" type="long"
  35978. transient="false" volatile="false"
  35979. static="false" final="false" visibility="protected"
  35980. deprecated="not deprecated">
  35981. <doc>
  35982. <![CDATA[Time after which the executing script would be timedout.]]>
  35983. </doc>
  35984. </field>
  35985. <field name="inheritParentEnv" type="boolean"
  35986. transient="false" volatile="false"
  35987. static="false" final="false" visibility="protected"
  35988. deprecated="not deprecated">
  35989. <doc>
  35990. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  35991. </doc>
  35992. </field>
  35993. <field name="WINUTILS" type="java.lang.String"
  35994. transient="false" volatile="false"
  35995. static="true" final="true" visibility="public"
  35996. deprecated="use one of the exception-raising getter methods,
  35997. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  35998. <doc>
  35999. <![CDATA[Location of winutils as a string; null if not found.
  36000. <p>
  36001. <i>Important: caller must check for this value being null</i>.
  36002. The lack of such checks has led to many support issues being raised.
  36003. <p>
  36004. @deprecated use one of the exception-raising getter methods,
  36005. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  36006. </doc>
  36007. </field>
  36008. <field name="isSetsidAvailable" type="boolean"
  36009. transient="false" volatile="false"
  36010. static="true" final="true" visibility="public"
  36011. deprecated="not deprecated">
  36012. <doc>
  36013. <![CDATA[Flag which is true if setsid exists.]]>
  36014. </doc>
  36015. </field>
  36016. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  36017. transient="false" volatile="false"
  36018. static="true" final="true" visibility="public"
  36019. deprecated="not deprecated">
  36020. <doc>
  36021. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  36022. </doc>
  36023. </field>
  36024. <doc>
  36025. <![CDATA[A base class for running a Shell command.
  36026. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  36027. <code>df</code>. It also offers facilities to gate commands by
  36028. time-intervals.]]>
  36029. </doc>
  36030. </class>
  36031. <!-- end class org.apache.hadoop.util.Shell -->
  36032. <!-- start class org.apache.hadoop.util.StringInterner -->
  36033. <class name="StringInterner" extends="java.lang.Object"
  36034. abstract="false"
  36035. static="false" final="false" visibility="public"
  36036. deprecated="not deprecated">
  36037. <constructor name="StringInterner"
  36038. static="false" final="false" visibility="public"
  36039. deprecated="not deprecated">
  36040. </constructor>
  36041. <method name="strongIntern" return="java.lang.String"
  36042. abstract="false" native="false" synchronized="false"
  36043. static="true" final="false" visibility="public"
  36044. deprecated="not deprecated">
  36045. <param name="sample" type="java.lang.String"/>
  36046. <doc>
  36047. <![CDATA[Interns and returns a reference to the representative instance
  36048. for any of a collection of string instances that are equal to each other.
  36049. Retains strong reference to the instance,
  36050. thus preventing it from being garbage-collected.
  36051. @param sample string instance to be interned
  36052. @return strong reference to interned string instance]]>
  36053. </doc>
  36054. </method>
  36055. <method name="weakIntern" return="java.lang.String"
  36056. abstract="false" native="false" synchronized="false"
  36057. static="true" final="false" visibility="public"
  36058. deprecated="not deprecated">
  36059. <param name="sample" type="java.lang.String"/>
  36060. <doc>
  36061. <![CDATA[Interns and returns a reference to the representative instance
  36062. for any of a collection of string instances that are equal to each other.
  36063. Retains weak reference to the instance,
  36064. and so does not prevent it from being garbage-collected.
  36065. @param sample string instance to be interned
  36066. @return weak reference to interned string instance]]>
  36067. </doc>
  36068. </method>
  36069. <doc>
  36070. <![CDATA[Provides equivalent behavior to String.intern() to optimize performance,
  36071. whereby does not consume memory in the permanent generation.]]>
  36072. </doc>
  36073. </class>
  36074. <!-- end class org.apache.hadoop.util.StringInterner -->
  36075. <!-- start class org.apache.hadoop.util.SysInfo -->
  36076. <class name="SysInfo" extends="java.lang.Object"
  36077. abstract="true"
  36078. static="false" final="false" visibility="public"
  36079. deprecated="not deprecated">
  36080. <constructor name="SysInfo"
  36081. static="false" final="false" visibility="public"
  36082. deprecated="not deprecated">
  36083. </constructor>
  36084. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  36085. abstract="false" native="false" synchronized="false"
  36086. static="true" final="false" visibility="public"
  36087. deprecated="not deprecated">
  36088. <doc>
  36089. <![CDATA[Return default OS instance.
  36090. @throws UnsupportedOperationException If cannot determine OS.
  36091. @return Default instance for the detected OS.]]>
  36092. </doc>
  36093. </method>
  36094. <method name="getVirtualMemorySize" return="long"
  36095. abstract="true" native="false" synchronized="false"
  36096. static="false" final="false" visibility="public"
  36097. deprecated="not deprecated">
  36098. <doc>
  36099. <![CDATA[Obtain the total size of the virtual memory present in the system.
  36100. @return virtual memory size in bytes.]]>
  36101. </doc>
  36102. </method>
  36103. <method name="getPhysicalMemorySize" return="long"
  36104. abstract="true" native="false" synchronized="false"
  36105. static="false" final="false" visibility="public"
  36106. deprecated="not deprecated">
  36107. <doc>
  36108. <![CDATA[Obtain the total size of the physical memory present in the system.
  36109. @return physical memory size bytes.]]>
  36110. </doc>
  36111. </method>
  36112. <method name="getAvailableVirtualMemorySize" return="long"
  36113. abstract="true" native="false" synchronized="false"
  36114. static="false" final="false" visibility="public"
  36115. deprecated="not deprecated">
  36116. <doc>
  36117. <![CDATA[Obtain the total size of the available virtual memory present
  36118. in the system.
  36119. @return available virtual memory size in bytes.]]>
  36120. </doc>
  36121. </method>
  36122. <method name="getAvailablePhysicalMemorySize" return="long"
  36123. abstract="true" native="false" synchronized="false"
  36124. static="false" final="false" visibility="public"
  36125. deprecated="not deprecated">
  36126. <doc>
  36127. <![CDATA[Obtain the total size of the available physical memory present
  36128. in the system.
  36129. @return available physical memory size bytes.]]>
  36130. </doc>
  36131. </method>
  36132. <method name="getNumProcessors" return="int"
  36133. abstract="true" native="false" synchronized="false"
  36134. static="false" final="false" visibility="public"
  36135. deprecated="not deprecated">
  36136. <doc>
  36137. <![CDATA[Obtain the total number of logical processors present on the system.
  36138. @return number of logical processors]]>
  36139. </doc>
  36140. </method>
  36141. <method name="getNumCores" return="int"
  36142. abstract="true" native="false" synchronized="false"
  36143. static="false" final="false" visibility="public"
  36144. deprecated="not deprecated">
  36145. <doc>
  36146. <![CDATA[Obtain total number of physical cores present on the system.
  36147. @return number of physical cores]]>
  36148. </doc>
  36149. </method>
  36150. <method name="getCpuFrequency" return="long"
  36151. abstract="true" native="false" synchronized="false"
  36152. static="false" final="false" visibility="public"
  36153. deprecated="not deprecated">
  36154. <doc>
  36155. <![CDATA[Obtain the CPU frequency of on the system.
  36156. @return CPU frequency in kHz]]>
  36157. </doc>
  36158. </method>
  36159. <method name="getCumulativeCpuTime" return="long"
  36160. abstract="true" native="false" synchronized="false"
  36161. static="false" final="false" visibility="public"
  36162. deprecated="not deprecated">
  36163. <doc>
  36164. <![CDATA[Obtain the cumulative CPU time since the system is on.
  36165. @return cumulative CPU time in milliseconds]]>
  36166. </doc>
  36167. </method>
  36168. <method name="getCpuUsagePercentage" return="float"
  36169. abstract="true" native="false" synchronized="false"
  36170. static="false" final="false" visibility="public"
  36171. deprecated="not deprecated">
  36172. <doc>
  36173. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  36174. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  36175. </doc>
  36176. </method>
  36177. <method name="getNumVCoresUsed" return="float"
  36178. abstract="true" native="false" synchronized="false"
  36179. static="false" final="false" visibility="public"
  36180. deprecated="not deprecated">
  36181. <doc>
  36182. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  36183. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  36184. </doc>
  36185. </method>
  36186. <method name="getNetworkBytesRead" return="long"
  36187. abstract="true" native="false" synchronized="false"
  36188. static="false" final="false" visibility="public"
  36189. deprecated="not deprecated">
  36190. <doc>
  36191. <![CDATA[Obtain the aggregated number of bytes read over the network.
  36192. @return total number of bytes read.]]>
  36193. </doc>
  36194. </method>
  36195. <method name="getNetworkBytesWritten" return="long"
  36196. abstract="true" native="false" synchronized="false"
  36197. static="false" final="false" visibility="public"
  36198. deprecated="not deprecated">
  36199. <doc>
  36200. <![CDATA[Obtain the aggregated number of bytes written to the network.
  36201. @return total number of bytes written.]]>
  36202. </doc>
  36203. </method>
  36204. <method name="getStorageBytesRead" return="long"
  36205. abstract="true" native="false" synchronized="false"
  36206. static="false" final="false" visibility="public"
  36207. deprecated="not deprecated">
  36208. <doc>
  36209. <![CDATA[Obtain the aggregated number of bytes read from disks.
  36210. @return total number of bytes read.]]>
  36211. </doc>
  36212. </method>
  36213. <method name="getStorageBytesWritten" return="long"
  36214. abstract="true" native="false" synchronized="false"
  36215. static="false" final="false" visibility="public"
  36216. deprecated="not deprecated">
  36217. <doc>
  36218. <![CDATA[Obtain the aggregated number of bytes written to disks.
  36219. @return total number of bytes written.]]>
  36220. </doc>
  36221. </method>
  36222. <doc>
  36223. <![CDATA[Plugin to calculate resource information on the system.]]>
  36224. </doc>
  36225. </class>
  36226. <!-- end class org.apache.hadoop.util.SysInfo -->
  36227. <!-- start interface org.apache.hadoop.util.Tool -->
  36228. <interface name="Tool" abstract="true"
  36229. static="false" final="false" visibility="public"
  36230. deprecated="not deprecated">
  36231. <implements name="org.apache.hadoop.conf.Configurable"/>
  36232. <method name="run" return="int"
  36233. abstract="false" native="false" synchronized="false"
  36234. static="false" final="false" visibility="public"
  36235. deprecated="not deprecated">
  36236. <param name="args" type="java.lang.String[]"/>
  36237. <exception name="Exception" type="java.lang.Exception"/>
  36238. <doc>
  36239. <![CDATA[Execute the command with the given arguments.
  36240. @param args command specific arguments.
  36241. @return exit code.
  36242. @throws Exception]]>
  36243. </doc>
  36244. </method>
  36245. <doc>
  36246. <![CDATA[A tool interface that supports handling of generic command-line options.
  36247. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  36248. The tool/application should delegate the handling of
  36249. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  36250. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  36251. and only handle its custom arguments.</p>
  36252. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  36253. <p><blockquote><pre>
  36254. public class MyApp extends Configured implements Tool {
  36255. public int run(String[] args) throws Exception {
  36256. // <code>Configuration</code> processed by <code>ToolRunner</code>
  36257. Configuration conf = getConf();
  36258. // Create a JobConf using the processed <code>conf</code>
  36259. JobConf job = new JobConf(conf, MyApp.class);
  36260. // Process custom command-line options
  36261. Path in = new Path(args[1]);
  36262. Path out = new Path(args[2]);
  36263. // Specify various job-specific parameters
  36264. job.setJobName("my-app");
  36265. job.setInputPath(in);
  36266. job.setOutputPath(out);
  36267. job.setMapperClass(MyMapper.class);
  36268. job.setReducerClass(MyReducer.class);
  36269. // Submit the job, then poll for progress until the job is complete
  36270. RunningJob runningJob = JobClient.runJob(job);
  36271. if (runningJob.isSuccessful()) {
  36272. return 0;
  36273. } else {
  36274. return 1;
  36275. }
  36276. }
  36277. public static void main(String[] args) throws Exception {
  36278. // Let <code>ToolRunner</code> handle generic command-line options
  36279. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  36280. System.exit(res);
  36281. }
  36282. }
  36283. </pre></blockquote></p>
  36284. @see GenericOptionsParser
  36285. @see ToolRunner]]>
  36286. </doc>
  36287. </interface>
  36288. <!-- end interface org.apache.hadoop.util.Tool -->
  36289. <!-- start class org.apache.hadoop.util.ToolRunner -->
  36290. <class name="ToolRunner" extends="java.lang.Object"
  36291. abstract="false"
  36292. static="false" final="false" visibility="public"
  36293. deprecated="not deprecated">
  36294. <constructor name="ToolRunner"
  36295. static="false" final="false" visibility="public"
  36296. deprecated="not deprecated">
  36297. </constructor>
  36298. <method name="run" return="int"
  36299. abstract="false" native="false" synchronized="false"
  36300. static="true" final="false" visibility="public"
  36301. deprecated="not deprecated">
  36302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36303. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  36304. <param name="args" type="java.lang.String[]"/>
  36305. <exception name="Exception" type="java.lang.Exception"/>
  36306. <doc>
  36307. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  36308. parsing with the given generic arguments. Uses the given
  36309. <code>Configuration</code>, or builds one if null.
  36310. Sets the <code>Tool</code>'s configuration with the possibly modified
  36311. version of the <code>conf</code>.
  36312. @param conf <code>Configuration</code> for the <code>Tool</code>.
  36313. @param tool <code>Tool</code> to run.
  36314. @param args command-line arguments to the tool.
  36315. @return exit code of the {@link Tool#run(String[])} method.]]>
  36316. </doc>
  36317. </method>
  36318. <method name="run" return="int"
  36319. abstract="false" native="false" synchronized="false"
  36320. static="true" final="false" visibility="public"
  36321. deprecated="not deprecated">
  36322. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  36323. <param name="args" type="java.lang.String[]"/>
  36324. <exception name="Exception" type="java.lang.Exception"/>
  36325. <doc>
  36326. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  36327. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  36328. @param tool <code>Tool</code> to run.
  36329. @param args command-line arguments to the tool.
  36330. @return exit code of the {@link Tool#run(String[])} method.]]>
  36331. </doc>
  36332. </method>
  36333. <method name="printGenericCommandUsage"
  36334. abstract="false" native="false" synchronized="false"
  36335. static="true" final="false" visibility="public"
  36336. deprecated="not deprecated">
  36337. <param name="out" type="java.io.PrintStream"/>
  36338. <doc>
  36339. <![CDATA[Prints generic command-line argurments and usage information.
  36340. @param out stream to write usage information to.]]>
  36341. </doc>
  36342. </method>
  36343. <method name="confirmPrompt" return="boolean"
  36344. abstract="false" native="false" synchronized="false"
  36345. static="true" final="false" visibility="public"
  36346. deprecated="not deprecated">
  36347. <param name="prompt" type="java.lang.String"/>
  36348. <exception name="IOException" type="java.io.IOException"/>
  36349. <doc>
  36350. <![CDATA[Print out a prompt to the user, and return true if the user
  36351. responds with "y" or "yes". (case insensitive)]]>
  36352. </doc>
  36353. </method>
  36354. <doc>
  36355. <![CDATA[A utility to help run {@link Tool}s.
  36356. <p><code>ToolRunner</code> can be used to run classes implementing
  36357. <code>Tool</code> interface. It works in conjunction with
  36358. {@link GenericOptionsParser} to parse the
  36359. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  36360. generic hadoop command line arguments</a> and modifies the
  36361. <code>Configuration</code> of the <code>Tool</code>. The
  36362. application-specific options are passed along without being modified.
  36363. </p>
  36364. @see Tool
  36365. @see GenericOptionsParser]]>
  36366. </doc>
  36367. </class>
  36368. <!-- end class org.apache.hadoop.util.ToolRunner -->
  36369. <!-- start class org.apache.hadoop.util.VersionInfo -->
  36370. <class name="VersionInfo" extends="java.lang.Object"
  36371. abstract="false"
  36372. static="false" final="false" visibility="public"
  36373. deprecated="not deprecated">
  36374. <constructor name="VersionInfo" type="java.lang.String"
  36375. static="false" final="false" visibility="protected"
  36376. deprecated="not deprecated">
  36377. </constructor>
  36378. <method name="_getVersion" return="java.lang.String"
  36379. abstract="false" native="false" synchronized="false"
  36380. static="false" final="false" visibility="protected"
  36381. deprecated="not deprecated">
  36382. </method>
  36383. <method name="_getRevision" return="java.lang.String"
  36384. abstract="false" native="false" synchronized="false"
  36385. static="false" final="false" visibility="protected"
  36386. deprecated="not deprecated">
  36387. </method>
  36388. <method name="_getBranch" return="java.lang.String"
  36389. abstract="false" native="false" synchronized="false"
  36390. static="false" final="false" visibility="protected"
  36391. deprecated="not deprecated">
  36392. </method>
  36393. <method name="_getDate" return="java.lang.String"
  36394. abstract="false" native="false" synchronized="false"
  36395. static="false" final="false" visibility="protected"
  36396. deprecated="not deprecated">
  36397. </method>
  36398. <method name="_getUser" return="java.lang.String"
  36399. abstract="false" native="false" synchronized="false"
  36400. static="false" final="false" visibility="protected"
  36401. deprecated="not deprecated">
  36402. </method>
  36403. <method name="_getUrl" return="java.lang.String"
  36404. abstract="false" native="false" synchronized="false"
  36405. static="false" final="false" visibility="protected"
  36406. deprecated="not deprecated">
  36407. </method>
  36408. <method name="_getSrcChecksum" return="java.lang.String"
  36409. abstract="false" native="false" synchronized="false"
  36410. static="false" final="false" visibility="protected"
  36411. deprecated="not deprecated">
  36412. </method>
  36413. <method name="_getBuildVersion" return="java.lang.String"
  36414. abstract="false" native="false" synchronized="false"
  36415. static="false" final="false" visibility="protected"
  36416. deprecated="not deprecated">
  36417. </method>
  36418. <method name="_getProtocVersion" return="java.lang.String"
  36419. abstract="false" native="false" synchronized="false"
  36420. static="false" final="false" visibility="protected"
  36421. deprecated="not deprecated">
  36422. </method>
  36423. <method name="getVersion" return="java.lang.String"
  36424. abstract="false" native="false" synchronized="false"
  36425. static="true" final="false" visibility="public"
  36426. deprecated="not deprecated">
  36427. <doc>
  36428. <![CDATA[Get the Hadoop version.
  36429. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  36430. </doc>
  36431. </method>
  36432. <method name="getRevision" return="java.lang.String"
  36433. abstract="false" native="false" synchronized="false"
  36434. static="true" final="false" visibility="public"
  36435. deprecated="not deprecated">
  36436. <doc>
  36437. <![CDATA[Get the Git commit hash of the repository when compiled.
  36438. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  36439. </doc>
  36440. </method>
  36441. <method name="getBranch" return="java.lang.String"
  36442. abstract="false" native="false" synchronized="false"
  36443. static="true" final="false" visibility="public"
  36444. deprecated="not deprecated">
  36445. <doc>
  36446. <![CDATA[Get the branch on which this originated.
  36447. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  36448. </doc>
  36449. </method>
  36450. <method name="getDate" return="java.lang.String"
  36451. abstract="false" native="false" synchronized="false"
  36452. static="true" final="false" visibility="public"
  36453. deprecated="not deprecated">
  36454. <doc>
  36455. <![CDATA[The date that Hadoop was compiled.
  36456. @return the compilation date in unix date format]]>
  36457. </doc>
  36458. </method>
  36459. <method name="getUser" return="java.lang.String"
  36460. abstract="false" native="false" synchronized="false"
  36461. static="true" final="false" visibility="public"
  36462. deprecated="not deprecated">
  36463. <doc>
  36464. <![CDATA[The user that compiled Hadoop.
  36465. @return the username of the user]]>
  36466. </doc>
  36467. </method>
  36468. <method name="getUrl" return="java.lang.String"
  36469. abstract="false" native="false" synchronized="false"
  36470. static="true" final="false" visibility="public"
  36471. deprecated="not deprecated">
  36472. <doc>
  36473. <![CDATA[Get the URL for the Hadoop repository.
  36474. @return the URL of the Hadoop repository]]>
  36475. </doc>
  36476. </method>
  36477. <method name="getSrcChecksum" return="java.lang.String"
  36478. abstract="false" native="false" synchronized="false"
  36479. static="true" final="false" visibility="public"
  36480. deprecated="not deprecated">
  36481. <doc>
  36482. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  36483. @return the checksum of the source files]]>
  36484. </doc>
  36485. </method>
  36486. <method name="getBuildVersion" return="java.lang.String"
  36487. abstract="false" native="false" synchronized="false"
  36488. static="true" final="false" visibility="public"
  36489. deprecated="not deprecated">
  36490. <doc>
  36491. <![CDATA[Returns the buildVersion which includes version,
  36492. revision, user and date.
  36493. @return the buildVersion]]>
  36494. </doc>
  36495. </method>
  36496. <method name="getProtocVersion" return="java.lang.String"
  36497. abstract="false" native="false" synchronized="false"
  36498. static="true" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <doc>
  36501. <![CDATA[Returns the protoc version used for the build.
  36502. @return the protoc version]]>
  36503. </doc>
  36504. </method>
  36505. <method name="main"
  36506. abstract="false" native="false" synchronized="false"
  36507. static="true" final="false" visibility="public"
  36508. deprecated="not deprecated">
  36509. <param name="args" type="java.lang.String[]"/>
  36510. </method>
  36511. <doc>
  36512. <![CDATA[This class returns build information about Hadoop components.]]>
  36513. </doc>
  36514. </class>
  36515. <!-- end class org.apache.hadoop.util.VersionInfo -->
  36516. <doc>
  36517. <![CDATA[Common utilities.]]>
  36518. </doc>
  36519. </package>
  36520. <package name="org.apache.hadoop.util.bloom">
  36521. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  36522. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  36523. abstract="false"
  36524. static="false" final="false" visibility="public"
  36525. deprecated="not deprecated">
  36526. <constructor name="BloomFilter"
  36527. static="false" final="false" visibility="public"
  36528. deprecated="not deprecated">
  36529. <doc>
  36530. <![CDATA[Default constructor - use with readFields]]>
  36531. </doc>
  36532. </constructor>
  36533. <constructor name="BloomFilter" type="int, int, int"
  36534. static="false" final="false" visibility="public"
  36535. deprecated="not deprecated">
  36536. <doc>
  36537. <![CDATA[Constructor
  36538. @param vectorSize The vector size of <i>this</i> filter.
  36539. @param nbHash The number of hash function to consider.
  36540. @param hashType type of the hashing function (see
  36541. {@link org.apache.hadoop.util.hash.Hash}).]]>
  36542. </doc>
  36543. </constructor>
  36544. <method name="add"
  36545. abstract="false" native="false" synchronized="false"
  36546. static="false" final="false" visibility="public"
  36547. deprecated="not deprecated">
  36548. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36549. </method>
  36550. <method name="and"
  36551. abstract="false" native="false" synchronized="false"
  36552. static="false" final="false" visibility="public"
  36553. deprecated="not deprecated">
  36554. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36555. </method>
  36556. <method name="membershipTest" return="boolean"
  36557. abstract="false" native="false" synchronized="false"
  36558. static="false" final="false" visibility="public"
  36559. deprecated="not deprecated">
  36560. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36561. </method>
  36562. <method name="not"
  36563. abstract="false" native="false" synchronized="false"
  36564. static="false" final="false" visibility="public"
  36565. deprecated="not deprecated">
  36566. </method>
  36567. <method name="or"
  36568. abstract="false" native="false" synchronized="false"
  36569. static="false" final="false" visibility="public"
  36570. deprecated="not deprecated">
  36571. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36572. </method>
  36573. <method name="xor"
  36574. abstract="false" native="false" synchronized="false"
  36575. static="false" final="false" visibility="public"
  36576. deprecated="not deprecated">
  36577. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36578. </method>
  36579. <method name="toString" return="java.lang.String"
  36580. abstract="false" native="false" synchronized="false"
  36581. static="false" final="false" visibility="public"
  36582. deprecated="not deprecated">
  36583. </method>
  36584. <method name="getVectorSize" return="int"
  36585. abstract="false" native="false" synchronized="false"
  36586. static="false" final="false" visibility="public"
  36587. deprecated="not deprecated">
  36588. <doc>
  36589. <![CDATA[@return size of the the bloomfilter]]>
  36590. </doc>
  36591. </method>
  36592. <method name="write"
  36593. abstract="false" native="false" synchronized="false"
  36594. static="false" final="false" visibility="public"
  36595. deprecated="not deprecated">
  36596. <param name="out" type="java.io.DataOutput"/>
  36597. <exception name="IOException" type="java.io.IOException"/>
  36598. </method>
  36599. <method name="readFields"
  36600. abstract="false" native="false" synchronized="false"
  36601. static="false" final="false" visibility="public"
  36602. deprecated="not deprecated">
  36603. <param name="in" type="java.io.DataInput"/>
  36604. <exception name="IOException" type="java.io.IOException"/>
  36605. </method>
  36606. <doc>
  36607. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  36608. <p>
  36609. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  36610. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  36611. offers for the transmission of set membership information between networked hosts. A sender encodes
  36612. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  36613. representation. Computation and space costs for construction are linear in the number of elements.
  36614. The receiver uses the filter to test whether various elements are members of the set. Though the
  36615. filter will occasionally return a false positive, it will never return a false negative. When creating
  36616. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  36617. <p>
  36618. Originally created by
  36619. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36620. @see Filter The general behavior of a filter
  36621. @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>]]>
  36622. </doc>
  36623. </class>
  36624. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  36625. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  36626. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  36627. abstract="false"
  36628. static="false" final="true" visibility="public"
  36629. deprecated="not deprecated">
  36630. <constructor name="CountingBloomFilter"
  36631. static="false" final="false" visibility="public"
  36632. deprecated="not deprecated">
  36633. <doc>
  36634. <![CDATA[Default constructor - use with readFields]]>
  36635. </doc>
  36636. </constructor>
  36637. <constructor name="CountingBloomFilter" type="int, int, int"
  36638. static="false" final="false" visibility="public"
  36639. deprecated="not deprecated">
  36640. <doc>
  36641. <![CDATA[Constructor
  36642. @param vectorSize The vector size of <i>this</i> filter.
  36643. @param nbHash The number of hash function to consider.
  36644. @param hashType type of the hashing function (see
  36645. {@link org.apache.hadoop.util.hash.Hash}).]]>
  36646. </doc>
  36647. </constructor>
  36648. <method name="add"
  36649. abstract="false" native="false" synchronized="false"
  36650. static="false" final="false" visibility="public"
  36651. deprecated="not deprecated">
  36652. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36653. </method>
  36654. <method name="delete"
  36655. abstract="false" native="false" synchronized="false"
  36656. static="false" final="false" visibility="public"
  36657. deprecated="not deprecated">
  36658. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36659. <doc>
  36660. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  36661. <p>
  36662. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  36663. @param key The key to remove.]]>
  36664. </doc>
  36665. </method>
  36666. <method name="and"
  36667. abstract="false" native="false" synchronized="false"
  36668. static="false" final="false" visibility="public"
  36669. deprecated="not deprecated">
  36670. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36671. </method>
  36672. <method name="membershipTest" return="boolean"
  36673. abstract="false" native="false" synchronized="false"
  36674. static="false" final="false" visibility="public"
  36675. deprecated="not deprecated">
  36676. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36677. </method>
  36678. <method name="approximateCount" return="int"
  36679. abstract="false" native="false" synchronized="false"
  36680. static="false" final="false" visibility="public"
  36681. deprecated="not deprecated">
  36682. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36683. <doc>
  36684. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  36685. times the key was added to the filter. This allows the filter to be
  36686. used as an approximate <code>key -&gt; count</code> map.
  36687. <p>NOTE: due to the bucket size of this filter, inserting the same
  36688. key more than 15 times will cause an overflow at all filter positions
  36689. associated with this key, and it will significantly increase the error
  36690. rate for this and other keys. For this reason the filter can only be
  36691. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  36692. @param key key to be tested
  36693. @return 0 if the key is not present. Otherwise, a positive value v will
  36694. be returned such that <code>v == count</code> with probability equal to the
  36695. error rate of this filter, and <code>v &gt; count</code> otherwise.
  36696. Additionally, if the filter experienced an underflow as a result of
  36697. {@link #delete(Key)} operation, the return value may be lower than the
  36698. <code>count</code> with the probability of the false negative rate of such
  36699. filter.]]>
  36700. </doc>
  36701. </method>
  36702. <method name="not"
  36703. abstract="false" native="false" synchronized="false"
  36704. static="false" final="false" visibility="public"
  36705. deprecated="not deprecated">
  36706. </method>
  36707. <method name="or"
  36708. abstract="false" native="false" synchronized="false"
  36709. static="false" final="false" visibility="public"
  36710. deprecated="not deprecated">
  36711. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36712. </method>
  36713. <method name="xor"
  36714. abstract="false" native="false" synchronized="false"
  36715. static="false" final="false" visibility="public"
  36716. deprecated="not deprecated">
  36717. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36718. </method>
  36719. <method name="toString" return="java.lang.String"
  36720. abstract="false" native="false" synchronized="false"
  36721. static="false" final="false" visibility="public"
  36722. deprecated="not deprecated">
  36723. </method>
  36724. <method name="write"
  36725. abstract="false" native="false" synchronized="false"
  36726. static="false" final="false" visibility="public"
  36727. deprecated="not deprecated">
  36728. <param name="out" type="java.io.DataOutput"/>
  36729. <exception name="IOException" type="java.io.IOException"/>
  36730. </method>
  36731. <method name="readFields"
  36732. abstract="false" native="false" synchronized="false"
  36733. static="false" final="false" visibility="public"
  36734. deprecated="not deprecated">
  36735. <param name="in" type="java.io.DataInput"/>
  36736. <exception name="IOException" type="java.io.IOException"/>
  36737. </method>
  36738. <doc>
  36739. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  36740. 2000 paper.
  36741. <p>
  36742. A counting Bloom filter is an improvement to standard a Bloom filter as it
  36743. allows dynamic additions and deletions of set membership information. This
  36744. is achieved through the use of a counting vector instead of a bit vector.
  36745. <p>
  36746. Originally created by
  36747. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36748. @see Filter The general behavior of a filter
  36749. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  36750. </doc>
  36751. </class>
  36752. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  36753. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  36754. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  36755. abstract="false"
  36756. static="false" final="false" visibility="public"
  36757. deprecated="not deprecated">
  36758. <constructor name="DynamicBloomFilter"
  36759. static="false" final="false" visibility="public"
  36760. deprecated="not deprecated">
  36761. <doc>
  36762. <![CDATA[Zero-args constructor for the serialization.]]>
  36763. </doc>
  36764. </constructor>
  36765. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  36766. static="false" final="false" visibility="public"
  36767. deprecated="not deprecated">
  36768. <doc>
  36769. <![CDATA[Constructor.
  36770. <p>
  36771. Builds an empty Dynamic Bloom filter.
  36772. @param vectorSize The number of bits in the vector.
  36773. @param nbHash The number of hash function to consider.
  36774. @param hashType type of the hashing function (see
  36775. {@link org.apache.hadoop.util.hash.Hash}).
  36776. @param nr The threshold for the maximum number of keys to record in a
  36777. dynamic Bloom filter row.]]>
  36778. </doc>
  36779. </constructor>
  36780. <method name="add"
  36781. abstract="false" native="false" synchronized="false"
  36782. static="false" final="false" visibility="public"
  36783. deprecated="not deprecated">
  36784. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36785. </method>
  36786. <method name="and"
  36787. abstract="false" native="false" synchronized="false"
  36788. static="false" final="false" visibility="public"
  36789. deprecated="not deprecated">
  36790. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36791. </method>
  36792. <method name="membershipTest" return="boolean"
  36793. abstract="false" native="false" synchronized="false"
  36794. static="false" final="false" visibility="public"
  36795. deprecated="not deprecated">
  36796. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36797. </method>
  36798. <method name="not"
  36799. abstract="false" native="false" synchronized="false"
  36800. static="false" final="false" visibility="public"
  36801. deprecated="not deprecated">
  36802. </method>
  36803. <method name="or"
  36804. abstract="false" native="false" synchronized="false"
  36805. static="false" final="false" visibility="public"
  36806. deprecated="not deprecated">
  36807. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36808. </method>
  36809. <method name="xor"
  36810. abstract="false" native="false" synchronized="false"
  36811. static="false" final="false" visibility="public"
  36812. deprecated="not deprecated">
  36813. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36814. </method>
  36815. <method name="toString" return="java.lang.String"
  36816. abstract="false" native="false" synchronized="false"
  36817. static="false" final="false" visibility="public"
  36818. deprecated="not deprecated">
  36819. </method>
  36820. <method name="write"
  36821. abstract="false" native="false" synchronized="false"
  36822. static="false" final="false" visibility="public"
  36823. deprecated="not deprecated">
  36824. <param name="out" type="java.io.DataOutput"/>
  36825. <exception name="IOException" type="java.io.IOException"/>
  36826. </method>
  36827. <method name="readFields"
  36828. abstract="false" native="false" synchronized="false"
  36829. static="false" final="false" visibility="public"
  36830. deprecated="not deprecated">
  36831. <param name="in" type="java.io.DataInput"/>
  36832. <exception name="IOException" type="java.io.IOException"/>
  36833. </method>
  36834. <doc>
  36835. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  36836. <p>
  36837. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  36838. each of the <code>s</code> rows is a standard Bloom filter. The creation
  36839. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  36840. bit matrix, i.e., it is composed of a single standard Bloom filter.
  36841. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  36842. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  36843. the cardinality of the set <code>A</code> to record in the filter).
  36844. <p>
  36845. As the size of <code>A</code> grows during the execution of the application,
  36846. several keys must be inserted in the DBF. When inserting a key into the DBF,
  36847. one must first get an active Bloom filter in the matrix. A Bloom filter is
  36848. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  36849. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  36850. If an active Bloom filter is found, the key is inserted and
  36851. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  36852. is no active Bloom filter, a new one is created (i.e., a new row is added to
  36853. the matrix) according to the current size of <code>A</code> and the element
  36854. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  36855. this new Bloom filter is set to one. A given key is said to belong to the
  36856. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  36857. <p>
  36858. Originally created by
  36859. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36860. @see Filter The general behavior of a filter
  36861. @see BloomFilter A Bloom filter
  36862. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  36863. </doc>
  36864. </class>
  36865. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  36866. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  36867. <class name="HashFunction" extends="java.lang.Object"
  36868. abstract="false"
  36869. static="false" final="true" visibility="public"
  36870. deprecated="not deprecated">
  36871. <constructor name="HashFunction" type="int, int, int"
  36872. static="false" final="false" visibility="public"
  36873. deprecated="not deprecated">
  36874. <doc>
  36875. <![CDATA[Constructor.
  36876. <p>
  36877. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  36878. @param maxValue The maximum highest returned value.
  36879. @param nbHash The number of resulting hashed values.
  36880. @param hashType type of the hashing function (see {@link Hash}).]]>
  36881. </doc>
  36882. </constructor>
  36883. <method name="clear"
  36884. abstract="false" native="false" synchronized="false"
  36885. static="false" final="false" visibility="public"
  36886. deprecated="not deprecated">
  36887. <doc>
  36888. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  36889. </doc>
  36890. </method>
  36891. <method name="hash" return="int[]"
  36892. abstract="false" native="false" synchronized="false"
  36893. static="false" final="false" visibility="public"
  36894. deprecated="not deprecated">
  36895. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  36896. <doc>
  36897. <![CDATA[Hashes a specified key into several integers.
  36898. @param k The specified key.
  36899. @return The array of hashed values.]]>
  36900. </doc>
  36901. </method>
  36902. <doc>
  36903. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  36904. @see Key The general behavior of a key being stored in a filter
  36905. @see Filter The general behavior of a filter]]>
  36906. </doc>
  36907. </class>
  36908. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  36909. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  36910. <interface name="RemoveScheme" abstract="true"
  36911. static="false" final="false" visibility="public"
  36912. deprecated="not deprecated">
  36913. <field name="RANDOM" type="short"
  36914. transient="false" volatile="false"
  36915. static="true" final="true" visibility="public"
  36916. deprecated="not deprecated">
  36917. <doc>
  36918. <![CDATA[Random selection.
  36919. <p>
  36920. The idea is to randomly select a bit to reset.]]>
  36921. </doc>
  36922. </field>
  36923. <field name="MINIMUM_FN" type="short"
  36924. transient="false" volatile="false"
  36925. static="true" final="true" visibility="public"
  36926. deprecated="not deprecated">
  36927. <doc>
  36928. <![CDATA[MinimumFN Selection.
  36929. <p>
  36930. The idea is to select the bit to reset that will generate the minimum
  36931. number of false negative.]]>
  36932. </doc>
  36933. </field>
  36934. <field name="MAXIMUM_FP" type="short"
  36935. transient="false" volatile="false"
  36936. static="true" final="true" visibility="public"
  36937. deprecated="not deprecated">
  36938. <doc>
  36939. <![CDATA[MaximumFP Selection.
  36940. <p>
  36941. The idea is to select the bit to reset that will remove the maximum number
  36942. of false positive.]]>
  36943. </doc>
  36944. </field>
  36945. <field name="RATIO" type="short"
  36946. transient="false" volatile="false"
  36947. static="true" final="true" visibility="public"
  36948. deprecated="not deprecated">
  36949. <doc>
  36950. <![CDATA[Ratio Selection.
  36951. <p>
  36952. The idea is to select the bit to reset that will, at the same time, remove
  36953. the maximum number of false positve while minimizing the amount of false
  36954. negative generated.]]>
  36955. </doc>
  36956. </field>
  36957. <doc>
  36958. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  36959. <p>
  36960. Originally created by
  36961. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  36962. </doc>
  36963. </interface>
  36964. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  36965. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  36966. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  36967. abstract="false"
  36968. static="false" final="true" visibility="public"
  36969. deprecated="not deprecated">
  36970. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  36971. <constructor name="RetouchedBloomFilter"
  36972. static="false" final="false" visibility="public"
  36973. deprecated="not deprecated">
  36974. <doc>
  36975. <![CDATA[Default constructor - use with readFields]]>
  36976. </doc>
  36977. </constructor>
  36978. <constructor name="RetouchedBloomFilter" type="int, int, int"
  36979. static="false" final="false" visibility="public"
  36980. deprecated="not deprecated">
  36981. <doc>
  36982. <![CDATA[Constructor
  36983. @param vectorSize The vector size of <i>this</i> filter.
  36984. @param nbHash The number of hash function to consider.
  36985. @param hashType type of the hashing function (see
  36986. {@link org.apache.hadoop.util.hash.Hash}).]]>
  36987. </doc>
  36988. </constructor>
  36989. <method name="add"
  36990. abstract="false" native="false" synchronized="false"
  36991. static="false" final="false" visibility="public"
  36992. deprecated="not deprecated">
  36993. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36994. </method>
  36995. <method name="addFalsePositive"
  36996. abstract="false" native="false" synchronized="false"
  36997. static="false" final="false" visibility="public"
  36998. deprecated="not deprecated">
  36999. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  37000. <doc>
  37001. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  37002. <p>
  37003. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  37004. @param key The false positive key to add.]]>
  37005. </doc>
  37006. </method>
  37007. <method name="addFalsePositive"
  37008. abstract="false" native="false" synchronized="false"
  37009. static="false" final="false" visibility="public"
  37010. deprecated="not deprecated">
  37011. <param name="coll" type="java.util.Collection"/>
  37012. <doc>
  37013. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  37014. @param coll The collection of false positive.]]>
  37015. </doc>
  37016. </method>
  37017. <method name="addFalsePositive"
  37018. abstract="false" native="false" synchronized="false"
  37019. static="false" final="false" visibility="public"
  37020. deprecated="not deprecated">
  37021. <param name="keys" type="java.util.List"/>
  37022. <doc>
  37023. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  37024. @param keys The list of false positive.]]>
  37025. </doc>
  37026. </method>
  37027. <method name="addFalsePositive"
  37028. abstract="false" native="false" synchronized="false"
  37029. static="false" final="false" visibility="public"
  37030. deprecated="not deprecated">
  37031. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  37032. <doc>
  37033. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  37034. @param keys The array of false positive.]]>
  37035. </doc>
  37036. </method>
  37037. <method name="selectiveClearing"
  37038. abstract="false" native="false" synchronized="false"
  37039. static="false" final="false" visibility="public"
  37040. deprecated="not deprecated">
  37041. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  37042. <param name="scheme" type="short"/>
  37043. <doc>
  37044. <![CDATA[Performs the selective clearing for a given key.
  37045. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  37046. @param scheme The selective clearing scheme to apply.]]>
  37047. </doc>
  37048. </method>
  37049. <method name="write"
  37050. abstract="false" native="false" synchronized="false"
  37051. static="false" final="false" visibility="public"
  37052. deprecated="not deprecated">
  37053. <param name="out" type="java.io.DataOutput"/>
  37054. <exception name="IOException" type="java.io.IOException"/>
  37055. </method>
  37056. <method name="readFields"
  37057. abstract="false" native="false" synchronized="false"
  37058. static="false" final="false" visibility="public"
  37059. deprecated="not deprecated">
  37060. <param name="in" type="java.io.DataInput"/>
  37061. <exception name="IOException" type="java.io.IOException"/>
  37062. </method>
  37063. <doc>
  37064. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  37065. <p>
  37066. It allows the removal of selected false positives at the cost of introducing
  37067. random false negatives, and with the benefit of eliminating some random false
  37068. positives at the same time.
  37069. <p>
  37070. Originally created by
  37071. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  37072. @see Filter The general behavior of a filter
  37073. @see BloomFilter A Bloom filter
  37074. @see RemoveScheme The different selective clearing algorithms
  37075. @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>]]>
  37076. </doc>
  37077. </class>
  37078. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  37079. </package>
  37080. <package name="org.apache.hadoop.util.curator">
  37081. </package>
  37082. <package name="org.apache.hadoop.util.hash">
  37083. </package>
  37084. </api>